yuichiroaoki / poly-flashloan-bot

Flashloan Bot on Polygon
https://yuichiroaoki.medium.com/flashloan-bot-on-polygon-part-2-3eae0ac33986?sk=80821da4ca1d0462c7c9ae617df56bdd
MIT License
302 stars 192 forks source link

A big delay from the bot to the contract #75

Open xabozhu opened 2 years ago

xabozhu commented 2 years ago

https://polygonscan.com/address/0xf651b785aa4aac0edcf2220ad88a9d2b52f640ff Here is my contract and here were all the opportunities my bot found, but there was a big delay in between, anyone knows how to shorten it? image These are the opportunities it found today, but when it goes to the contract, each of them had an around 20 mins delay. image This is the opportunity it found 4 days ago, also had an around 20 mins delay.

Sshimaninja commented 2 years ago

Yes, it's because 1 inch is used to aggregate opportunities, but it routes through to many protocols looking for a decent buying price to be useful for arbitrage.

Basically the bot is not profitable in its current state and is unlikely to be updated. Check previous issues for more info.

On Thu, May 5, 2022, 8:56 PM xabozhu @.***> wrote:

https://polygonscan.com/address/0xf651b785aa4aac0edcf2220ad88a9d2b52f640ff Here is my contract and here were all the opportunities my bot found, but there was a big delay in between, anyone knows how to shorten it? [image: image] https://user-images.githubusercontent.com/16949851/167014989-dcf9b43d-13fe-4796-a0fd-128bfe42dfe9.png These are the opportunities it found today, but when it goes to the contract, each of them had an around 20 mins delay. [image: image] https://user-images.githubusercontent.com/16949851/167015223-236ecd25-d014-428e-ad77-83c781dc1cf7.png This is the opportunity it found 4 days ago, also had an around 20 mins delay.

— Reply to this email directly, view it on GitHub https://github.com/yuichiroaoki/poly-flashloan-bot/issues/75, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADKNRTQMHMEXM7H2KZKDK2TVIQRW5ANCNFSM5VGDLLXQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>

xabozhu commented 2 years ago

do

Yes, it's because 1 inch is used to aggregate opportunities, but it routes through to many protocols looking for a decent buying price to be useful for arbitrage. Basically the bot is not profitable in its current state and is unlikely to be updated. Check previous issues for more info. On Thu, May 5, 2022, 8:56 PM xabozhu @.> wrote: https://polygonscan.com/address/0xf651b785aa4aac0edcf2220ad88a9d2b52f640ff Here is my contract and here were all the opportunities my bot found, but there was a big delay in between, anyone knows how to shorten it? [image: image] https://user-images.githubusercontent.com/16949851/167014989-dcf9b43d-13fe-4796-a0fd-128bfe42dfe9.png These are the opportunities it found today, but when it goes to the contract, each of them had an around 20 mins delay. [image: image] https://user-images.githubusercontent.com/16949851/167015223-236ecd25-d014-428e-ad77-83c781dc1cf7.png This is the opportunity it found 4 days ago, also had an around 20 mins delay. — Reply to this email directly, view it on GitHub <#75>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADKNRTQMHMEXM7H2KZKDK2TVIQRW5ANCNFSM5VGDLLXQ . You are receiving this because you are subscribed to this thread.Message ID: @.>

do you know how to fix it in the code? i don't know how to change the bot code, I can easily read them but dont know where exactly to modify, so it will scan directly from the defi pool instead of 1inch