Coder Social home page Coder Social logo

Comments (9)

MichiTheBlock avatar MichiTheBlock commented on August 16, 2024 1

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.

Zisan-uzum avatar Zisan-uzum commented on August 16, 2024

I'm having same issue even though I got testnet ether from faucet

from aave-flashloan-mix.

danielschutz avatar danielschutz commented on August 16, 2024

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.

Zisan-uzum avatar Zisan-uzum commented on August 16, 2024

Nope even though I change the value to 100 in line 19 it gives same error

from aave-flashloan-mix.

danielschutz avatar danielschutz commented on August 16, 2024

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.

Adnaan1010 avatar Adnaan1010 commented on August 16, 2024

I am expert

from aave-flashloan-mix.

MichiTheBlock avatar MichiTheBlock commented on August 16, 2024

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.

efraser123 avatar efraser123 commented on August 16, 2024

from aave-flashloan-mix.

PP-AR-T avatar PP-AR-T commented on August 16, 2024

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)

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.