Skip to content

Defi: Swap, Deposit, Borrow, Approve ERC20, Borrow & Repay. Verify via Etherscan and Aave UI

Notifications You must be signed in to change notification settings

formulaRoot/aave_brownie_py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Objectives:

  1. Swap ETH to WETH (Wrapped Ether) to enable ETH to work with other ERC20 Tokens
  2. Deposit the swapped WETH into Aave[https://docs.aave.com/developers/core-contracts/pool] using the deposit()
  3. Borrow assest with the ETH as Collateral
  • Approve sending out ERC20 tokens. Other contracts need to be approve before they can use your tokens
  • Chech how much you can borrow
  • Borrow
  1. Pay everything back
  • Repay the borrowed tokens

Additional Tasks:

  1. Interact with decentralized exchanges (DEX)
  • Paraswap
  • Uniswap

Testing:

  1. Integration Test: Kovan
  2. Unit test: Mainnet-fork