Comments (10)
What about the gas limit??
from poly-flashloan-bot.
I have the gas limit at 15 000 000 and also tried 20 000 000. Anything over 20 give a gas limit exceeded error.
Iām ran this over the smart contract you already have in there though, so I thought I would deploy my own with your poly-flash contract to see if that would fix it but I ran into an issue with the contract, I logged the contract issue on the contract issues section. Iām new to all this and appreciate the help.
from poly-flashloan-bot.
Do you have enough matic value on your wallet?? Probably 1 matic would be enough to execute flashloan call.
from poly-flashloan-bot.
Yes I definitely have enough.
from poly-flashloan-bot.
I just ran the bot again on Video Studio Code using the smart contract address that you made (I still get errors trying to make my own contract). I got this error.
C:\Users\User\Poly Bot1\poly-flashloan-bot\node_modules@ethersproject\logger\lib\index.js:199
var error = new Error(message);
^
Error: insufficient funds for intrinsic transaction cost (error={"reason":"processing response error","code":"SERVER_ERROR","body":"{"jsonrpc":
"2.0", "id": 51, "error": {"code": -32000, "message": "insufficient funds for gas * price + value"}}","error":{"code":-32000},"requestBody":"{"method":"eth_sendRawTransaction","params":["0xf9048d808506fc23ac0083e4e1c0940e0ec2c716b5ba2512af9d3790d8804da42ddd5880b90424b27f6a2500000000000000000000000000000000000000000000000000000000000000200000000000000000000000002144ee9e47998e0d7ea990252d6fe63107a3101800000000000000000000000000000000000000000000000000000002540be4000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000024000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000400000000000000000000000001b02da8cb0d097eb8d57a175b88c7d8b479975060000000000000000000000000000000000000000000000000000000000000003000000000000000000000000c2132d05d31c914a87c6611c10748aeb04b58e8f0000000000000000000000007ceb23fd6bc0add59e62ac25578270cff1b9f6190000000000000000000000002791bca1f2de4661ed88a30c99a7a9449aa841740000000000000000000000000000000000000000000000000000000000000040000000000000000000000000c0788a3ad43d79aa53b09c2eacc313a787d1d60700000000000000000000000000000000000000000000000000000000000000020000000000000000000000002791bca1f2de4661ed88a30c99a7a9449aa841740000000000000000000000008f3cf7ad23cd3cadbd9735aff958023239c6a06300000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000400000000000000000000000001b02da8cb0d097eb8d57a175b88c7d8b4799750600000000000000000000000000000000000000000000000000000000000000030000000000000000000000008f3cf7ad23cd3cadbd9735aff958023239c6a0630000000000000000000000007ceb23fd6bc0add59e62ac25578270cff1b9f6190000000000000000000000002791bca1f2de4661ed88a30c99a7a9449aa8417400000000000000000000000000000000000000000000000000000000000000400000000000000000000000005c6ec38fb0e2609672bdf628b1fd605a523e592300000000000000000000000000000000000000000000000000000000000000020000000000000000000000002791bca1f2de4661ed88a30c99a7a9449aa84174000000000000000000000000c2132d05d31c914a87c6611c10748aeb04b58e8f820135a016abbfd349e46074822272e0c6ad6154262df79efb2b540f521f24f74e092fb0a07d1cf5ca878546cd9463b362f8b464e996f14d4555d91c21762867580a63931f"],"id":51,"jsonrpc":"2.0"}","requestMethod":"POST","url":"REDACTED"}, method="sendTransaction", transaction="0xf9048d808506fc23ac0083e4e1c0940e0ec2c716b5ba2512af9d3790d8804da42ddd5880b90424b27f6a2500000000000000000000000000000000000000000000000000000000000000200000000000000000000000002144ee9e47998e0d7ea990252d6fe63107a3101800000000000000000000000000000000000000000000000000000002540be4000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000024000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000400000000000000000000000001b02da8cb0d097eb8d57a175b88c7d8b479975060000000000000000000000000000000000000000000000000000000000000003000000000000000000000000c2132d05d31c914a87c6611c10748aeb04b58e8f0000000000000000000000007ceb23fd6bc0add59e62ac25578270cff1b9f6190000000000000000000000002791bca1f2de4661ed88a30c99a7a9449aa841740000000000000000000000000000000000000000000000000000000000000040000000000000000000000000c0788a3ad43d79aa53b09c2eacc313a787d1d60700000000000000000000000000000000000000000000000000000000000000020000000000000000000000002791bca1f2de4661ed88a30c99a7a9449aa841740000000000000000000000008f3cf7ad23cd3cadbd9735aff958023239c6a06300000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000400000000000000000000000001b02da8cb0d097eb8d57a175b88c7d8b4799750600000000000000000000000000000000000000000000000000000000000000030000000000000000000000008f3cf7ad23cd3cadbd9735aff958023239c6a0630000000000000000000000007ceb23fd6bc0add59e62ac25578270cff1b9f6190000000000000000000000002791bca1f2de4661ed88a30c99a7a9449aa8417400000000000000000000000000000000000000000000000000000000000000400000000000000000000000005c6ec38fb0e2609672bdf628b1fd605a523e592300000000000000000000000000000000000000000000000000000000000000020000000000000000000000002791bca1f2de4661ed88a30c99a7a9449aa84174000000000000000000000000c2132d05d31c914a87c6611c10748aeb04b58e8f820135a016abbfd349e46074822272e0c6ad6154262df79efb2b540f521f24f74e092fb0a07d1cf5ca878546cd9463b362f8b464e996f14d4555d91c21762867580a63931f", code=INSUFFICIENT_FUNDS, version=providers/5.5.1)
at Logger.makeError (C:\Users\User\Poly Bot1\poly-flashloan-bot\node_modules@ethersproject\logger\lib\index.js:199:21)
at Logger.throwError (C:\Users\User\Poly Bot1\poly-flashloan-bot\node_modules@ethersproject\logger\lib\index.js:208:20)
at checkError (C:\Users\User\Poly Bot1\poly-flashloan-bot\node_modules@ethersproject\providers\lib\json-rpc-provider.js:95:16)
at JsonRpcProvider. (C:\Users\User\Poly Bot1\poly-flashloan-bot\node_modules@ethersproject\providers\lib\json-rpc-provider.js:659:47)
at step (C:\Users\User\Poly Bot1\poly-flashloan-bot\node_modules@ethersproject\providers\lib\json-rpc-provider.js:48:23)
at Object.throw (C:\Users\User\Poly Bot1\poly-flashloan-bot\node_modules@ethersproject\providers\lib\json-rpc-provider.js:29:53)
at rejected (C:\Users\User\Poly Bot1\poly-flashloan-bot\node_modules@ethersproject\providers\lib\json-rpc-provider.js:21:65)
at runMicrotasks ()
at processTicksAndRejections (node:internal/process/task_queues:96:5) {
from poly-flashloan-bot.
Issue solved.
from poly-flashloan-bot.
@MetaNynja Hi, I meet the same question, could you share how to solve it?
from poly-flashloan-bot.
@MetaNynja Hi, I meet the same question, could you share how to solve it?
Hey, I accidentally put my wallet address instead of my private key. Make sure you're using the private key and not the wallet address.
from poly-flashloan-bot.
@MetaNynja Hi, I meet the same question, could you share how to solve it?
Hey, I accidentally put my wallet address instead of my private key. Make sure you're using the private key and not the wallet address.
Yep, I solved the problem, and not the private key problem, it's the gas fee, when I set a high gas fee, it can run correctly. Than you for you reply!
And could you run the code to make a completely arbitrage process? When I run the code, it will run correctly, but fail in arbitrage, it will return Fail with error 'Not enough amount to return loan
in transaction as below link, do you have any idea about it, Thank you!
https://polygonscan.com/tx/0xda035267038ac478b14e924bb1a96222d1d8aabc305d9c09b03c2c99b2023223
from poly-flashloan-bot.
@MetaNynja Hi, I meet the same question, could you share how to solve it?
Hey, I accidentally put my wallet address instead of my private key. Make sure you're using the private key and not the wallet address.
Yep, I solved the problem, and not the private key problem, it's the gas fee, when I set a high gas fee, it can run correctly. Than you for you reply!
And could you run the code to make a completely arbitrage process? When I run the code, it will run correctly, but fail in arbitrage, it will return
Fail with error 'Not enough amount to return loan
in transaction as below link, do you have any idea about it, Thank you!https://polygonscan.com/tx/0xda035267038ac478b14e924bb1a96222d1d8aabc305d9c09b03c2c99b2023223
I have the same problem. I think it's because the price changes too quickly and the arbitrage opportunity gets missed.
from poly-flashloan-bot.
Related Issues (20)
- Connect to smart contract HOT 2
- Trade array doesn't read string of protocols - messes up router setup! HOT 2
- SetInterval
- > [8/8] RUN yarn build: #12 40.25 src/index.ts(8,3): error TS2305: Module '"./config"' has no exported member 'tradingRoutes'. HOT 7
- Nothing happens... HOT 1
- Docker giving error, and yarn hanging infinitely. HOT 6
- build but no output HOT 1
- error when i get oppurtinity
- ENS Error on Yarn Start HOT 1
- Nothing posting to logs
- getting 0 confirmations transactions everytime i get oppurtunity HOT 1
- reason: 'insufficient funds for intrinsic transaction cost', HOT 4
- "Yarn Start" and nothing happens. HOT 4
- Discord and telegram group HOT 15
- Fail with error 'SafeERC20: low-level call failed' HOT 12
- Failed to estimate price: missing revert data in call exception !! HOT 3
- Analysis - % Diff inter Exchanges, Fee Uniswap, Fee Flash Loan - Very Difficult Opportunities HOT 3
- Testing - Error encountered during contract execution [execution reverted] HOT 3
- Error: EACCES: permission denied, mkdir 'log'
- Not enough amount to return loan HOT 11
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
š Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ššš
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ā¤ļø Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from poly-flashloan-bot.