Coder Social home page Coder Social logo

Comments (3)

iamdefinitelyahuman avatar iamdefinitelyahuman commented on July 17, 2024

That's a common error message thrown by a node when your transaction will revert. Hard to say why it's reverting without more context.

In cases like this I usually test using Ganache's --fork mode, where the full range of debug functionality is available and a mistake doesn't cost me any money. This article might help - https://medium.com/@iamdefinitelyahuman/ethereum-mainnet-testing-with-python-and-brownie-82a61dee0222

from aave-flashloan-mix.

sandybradley avatar sandybradley commented on July 17, 2024

Thank you for your prompt response, Ben.

I did read through all the documentation and tested most functionality on the mainnet fork. My contract is an experimental simple arbitrageur, based on the example flashloan from aave (v0.5.0) and using 1split (https://etherscan.io/address/1split.eth) for 2 swaps. The only thing I could not get to work on the fork mode were the swaps themselves. I figure the 1split contract would only work on the mainnet so gave it a go. The only arb opportunity to test it on yesterday was eth-chai , which was what produced the error in the previous message. I tried to do the same Eth-Chai trades on Furucombo (https://furucombo.app/combo), and the transactions also failed for unknown reasons.

I'll do some more testing and let you know how I get on. Thanks again.

from aave-flashloan-mix.

sandybradley avatar sandybradley commented on July 17, 2024

As an update, I fixed this issue by providing a gas limit:

tx = flashloan.flashloan(eth_reserve,10000000000000000,chai_reserve, {"from": acct, "gas": 800000 })

from aave-flashloan-mix.

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.