-
get WETH address
-
deposit eth and get weth (after approve)
-
get user data to see how much we can borrow
-
calculate the amount we want to borrow
-
borrow from the pool contract
-
repay to the contract(after approve)
-
update: the mainnet fork does not make sense and cannot borrow DAI!!!
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|