- Approve our
ETH
to be swapped forWETH
- Swap an
amount
ofETH
forWETH
- Using
deposit_to_aave
we deposit theWETH
as collateral - We use that collateral to borrow
DAI
withborrow_erc20
- Then, we pay it back!
- We can view the txs on etherscan to see what's going on under the hood.
Genius2021/Defi-farm-contract-JS
This project accepts supported tokens to be staked as well as unstaked. Stakes are rewarded with interest. Such tokens include DAI, WETH and Elon tokens.
JavaScriptMIT