Comments (9)
Nope even though I change the value to 100 in line 19 it gives same error
you can easily change the amount, but you have to deploy that thing before running.
so change line 91 of FlashloanV2.sol to:
uint256 amount = 1000000000000000; //borrow 0.001 eth
and adapt your run_flash_loan_v2.py line 18:
weth.transfer(flashloan, 10000000000000000, {"from": acct})
so the funding of the flashloan and the Flashloan amount are fixed now.
now deploy it with:
brownie run scripts/deployment_v2.py --network kovan
and you should now be able to run:
brownie run scripts/run_flash_loan_v2.py --network kovan
if it runs you can check the txid and should see we are lending 0.001 and pay them back with the fee
Good luck!
from aave-flashloan-mix.
I'm having same issue even though I got testnet ether from faucet
from aave-flashloan-mix.
get_weth.py mints 1 WETH, which is likely more than you got from the faucet. You can reduce the value in line 19 to smaller value.
from aave-flashloan-mix.
Nope even though I change the value to 100 in line 19 it gives same error
from aave-flashloan-mix.
Does your error message say Required 100 and got: 0
?
If it says got: 0, it means your wallet doesn't have ether.
Did you use a Kovan faucet? Can you see the funds on kovan.etherscan.io?
from aave-flashloan-mix.
I am expert
from aave-flashloan-mix.
It needs the eth to transfer your eth to weth + some eth for the gas. I could recommend you to get a good amount of eth here:
https://faucet.paradigm.xyz/
this worked for me... dont get why the send only 0.001 eth on kovan testnet and you can trigger it 3 times in 24h...
hope this helps
from aave-flashloan-mix.
from aave-flashloan-mix.
This solution by MichiTheBlock worked for me, but don't understand, are you not allowed to loan theorically unlimited funds using a flashloan?? why you are limited by the funds deposited in the created flashloan contract?
from aave-flashloan-mix.
Related Issues (20)
- 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
- 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
- issue with FlashLoan.deploy()
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.