humanwhoexplores / smart-contracts

this repo contains my workbook for practicing smart contracts
0 stars 0 forks source link

Make a Flash Loan on Ethereum TestNet on AAVE #15

Open humanwhoexplores opened 3 years ago

humanwhoexplores commented 3 years ago

https://www.quicknode.com/guides/defi/how-to-make-a-flash-loan-using-aave trannsaction pening

humanwhoexplores commented 3 years ago

check in. :- what i have done till now :- I am able to deploy the contract on Kovan Successfully

humanwhoexplores commented 3 years ago

The process to deploy the contract is

humanwhoexplores commented 3 years ago

Open Remix -> COMPILE section select compiler version to 0.6.6 -> Hit Compile : the box should show 'FlashLoan.sol' , also in account it should show my account and environment as 'Injected Web3'

humanwhoexplores commented 3 years ago

We need to manually specify the LendingPoolAddressProvider

humanwhoexplores commented 3 years ago

https://docs.aave.com/developers/v/1.0/deployed-contracts/deployed-contract-instances
0x506B0B2CF20FAA8f38a4E2B524EE43e1f4458Cc5 This is the address of LendingPoolAddressProvider

humanwhoexplores commented 3 years ago

Hit Deploy : it deploys the Contract

humanwhoexplores commented 3 years ago

I need help here

humanwhoexplores commented 3 years ago

We need to Fund the FlashLoanContract

humanwhoexplores commented 3 years ago

we need to add some DAI to our Flash Loan contract. This is because Flash Loans need funds in the contract to successfully execute.

humanwhoexplores commented 3 years ago

Mint some DAI to your account and here is the problem THE Minted DAI is not getting to my wallet

humanwhoexplores commented 3 years ago

hence the blockage,

humanwhoexplores commented 3 years ago

blocked due to Insufficient funds in KOVAN

humanwhoexplores commented 3 years ago

need more Funds