Comments (12)
@Sahilkhurana I think that USDC/USDT pool is dodo v1 contract and doesn't have the flash loan function, so the tx failed.
You can use WMATIC/USDC pool.
from poly-flashloan-bot.
Yes. All you can do is increasing gas fee.
from poly-flashloan-bot.
Yes, increasing extraGas might help.
poly-flashloan-bot/src/flashloan.ts
Line 46 in 4590e26
from poly-flashloan-bot.
@yuichiroaoki I did try it and it still won't succeed. I noticed that there is a gap of 3-4 blocks in detecting the opportunity and the block # to which the Txn makes its way on MATIC network. I think this duration is enough to lose the arbitrage opportunity due to which the flashloan fails.
from poly-flashloan-bot.
Probably because the dodo pool didn't have enough tokens for you to borrow.
You should check the loan token balance of dodo pool before the execution of flash loan call.
from poly-flashloan-bot.
Hi,
Have successfully deployed the contract. The bot did spot an opportunity but Tx failed with above error. Any idea what might be wrong?
Thanks
Did you find a profitable arbitrage opportunity? Did you modified anything of the configuration of the flash loan, the gas fee or the token?
I am really interested in this project but I have not been successful yet :(
Thanks for your help 👍
from poly-flashloan-bot.
Thanks @yuichiroaoki I was using ETH/USDC pool which Ideally should have sufficient token balance. Anyways, I updated to a bigger pool which has better token balance. The bot spotted another opportunity but the transaction again failed.
https://polygonscan.com/tx/0x11b74a634b4491bf66ec0a472c3a4e44d15467193b92644542b44c34bba3182f
Did it get front run by someone?
Hi @rinconcsc , I have modified the configurations in the following way
- Added some more token pools from Dodo for flash loan - specifically USDC/USDT pool
- Token selection for Arb - I guess its mostly about doing research on coins/token which might be prone to variation and cross checking the exchanges with liquidity on these pools and selecting the right exchange/token combination.
Having said that, as I have written here, I am yet to have a successful transaction.
from poly-flashloan-bot.
@yuichiroaoki Thank you ! I didn't realize this and seems to be the issue for above transaction. Now sticking to WMATIC/USDC pool and check if I am able to find another opportunity.
from poly-flashloan-bot.
@yuichiroaoki I did change the pool and the bot could spot few opportunities post that. One of the opportunities was as big as 3% (USD 300) but all of 3 Txns failed with 'Fail with error 'Not enough amount to return loan'
Too slow?
https://polygonscan.com/tx/0xaac8ab6f48ec1d4b39790b316269462e951dfd667b18e173a7a1c5d184ee4192
https://polygonscan.com/tx/0xad898c4e5832039834a6890b1e8f3eafe9d8359f3a245d938cadc31231cd84a0
https://polygonscan.com/tx/0xd096ff213ac959e5ff4526ab6b732fbf91f31a25ae694f606a278838e262f161
from poly-flashloan-bot.
extraGas variable in flashloan.ts is the best way to handle this? . I had earlier tried playing with gasLimit which led me run into errors.
from poly-flashloan-bot.
@Sahilkhurana so this means that the bot is still not profitable?
from poly-flashloan-bot.
Yes @rinconcsc .I have been able to spot opportunities but unfortunately all 50+ transactions have failed.
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 1
- 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...
- 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 14
- 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.