Skip to content

Lesson 13: depositing WETH in Aave through aaveBorrorw.js #2003

Answered by othaime-en
ManuWeb3 asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @ManuWeb3 the getWeth() function allowed us to programmatically deposit ETH into the WETH contract and get back WETH right? Well... creating the function was a simple demonstration of how to achieve that and it was a good functionality too. However, for us to interact with the deposit() function of the lendingPool contract we only need the amount in wei form not in WETH. Checkout this section of the documentation to understand it more.
So in as much as the getWeth() function was really useful, we didn't need it in this scenario.

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by ManuWeb3
Comment options

You must be logged in to vote
5 replies
@ManuWeb3
Comment options

@othaime-en
Comment options

@ManuWeb3
Comment options

@othaime-en
Comment options

@ManuWeb3
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants