Comments (3)
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.
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.
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)
- Unable to expand environment variable in host setting: 'https://kovan.infura.io/v3/$WEB3_INFURA_PROJECT_ID' HOT 3
- Gas estimation failed: If you wish to broadcast, you must set the gas limit manually. HOT 1
- 401 Client Error: Unauthorized for url: https://kovan
- VirtualMachineError: revert HOT 2
- [Quickstart Kovan] ValueError: Gas estimation failed: 'The execution failed due to an exception.' HOT 34
- Will this rune on Polygon with some modification HOT 1
- ConnectionError: Status 404 when retrieving repo brownie-mix/aave-flash information from GHAPI: 'Not Found' HOT 1
- Insufficient funds error message after running get_weth.py HOT 9
- Error when I run the get WETH command: brownie run scripts/get_weth.py --network kovan HOT 3
- Flash
- can't run brownie tests HOT 2
- New Brownie Mix for Gitlab
- flashloan.flashloan() got an unexpected argument 'block_identifier'
- How to withdraw from the smart contract to the wallet HOT 11
- Increasing the loan amount
- "ConnectionError" with "api-kovan.etherscan.io". Why? pls!
- private key must be exactly 32 bytes long
- Gas fees issue HOT 2
- aave v3 flash loan HOT 2
- It cannot be tested as the kovan network shutted down after the merge HOT 1
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 aave-flashloan-mix.