How to Withdraw the fund deposited ?How to withdraw funds from aave using python? #785
Unanswered
rishab-nahar
asked this question in
Q&A
Replies: 1 comment
-
Hello @rishab-nahar , you need two things, the token you are going to use and a provider for the lending pool, both are on your brownie-config.yaml, the approve function comes directly from openzeppelin contracts and is meant to be used as a filter to allow or disallow transfers on that token. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In Chapter 10, we see how to deposit eth(weth),borrow DAI using weth as collateral and then repaying the debt.But How are we supposed to withdraw our fund out of the Lending pool to our account...?
Looking at Lending pool.withdraw whose function definition looks as follows.
function withdraw(
address asset,
uint256 amount,
address to
) external returns (uint256);
we need to send address of the asset but I don't know what is the asset (weth,eth,aeth ..?),and also about how will approve_erc20 work ..?
Any help will be appreciated.
Beta Was this translation helpful? Give feedback.
All reactions