Git Product home page Git Product logo

Comments (7)

yuichiroaoki avatar yuichiroaoki commented on May 23, 2024

Hi.
Did you update your code?? That error comes from the bot code.
You can try running the following commands:

git pull origin main
yarn install 
yarn build
yarn start

from poly-flashloan-bot.

GNMarques avatar GNMarques commented on May 23, 2024

Thank you very much for yor help.
I will try

from poly-flashloan-bot.

GNMarques avatar GNMarques commented on May 23, 2024

I was getting "Error: Failed to fetch data from 1inch". I run the program again it looks ok.
Does it happear anything in the console.log?

from poly-flashloan-bot.

yuichiroaoki avatar yuichiroaoki commented on May 23, 2024

That is expected behavior and meaning the bot is working correctly.
When the bot execute the flashloan and there's not an arbitrage opportunity, the transaction will be reverted with that message.

https://github.com/yuichiroaoki/poly-flash/blob/c2b8e78c0d7c57005715362ba17ba76639feba3e/contracts/Flashloan.sol#L131

from poly-flashloan-bot.

GNMarques avatar GNMarques commented on May 23, 2024

Nice thanks. I will wait for a while I let you know when I find a deal.
Did you try it?
I checked on polygonscan your contract (0x0e0ec2c716b5ba2512af9d3790d8804da42ddd58) have some transactions reverted did you solve that issue?

from poly-flashloan-bot.

leuhk avatar leuhk commented on May 23, 2024

I think there's an issue with the 1inch quote API? Keeps returning an error with status code 400

from poly-flashloan-bot.

yuichiroaoki avatar yuichiroaoki commented on May 23, 2024

Nice thanks. I will wait for a while I let you know when I find a deal. Did you try it? I checked on polygonscan your contract (0x0e0ec2c716b5ba2512af9d3790d8804da42ddd58) have some transactions reverted did you solve that issue?

Some people modified the code and run flashloan with that contract, so I'm not sure why.

However, the following error message is expected when you run flashloan with no arbitrage opportunities.
Fail with error 'Not enough amount to return loan'

image

from poly-flashloan-bot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.