Skip to content

problem about unwrap #51

Closed Answered by Elnaril
whlustb asked this question in Q&A
Mar 30, 2024 · 3 comments · 3 replies
Discussion options

You must be logged in to vote

1/ The unwrap_weth() method unwraps weth that are in the router's balance, not in you wallet.

2/ In your last transaction, you instructed the router to send the result of the swap directly to you, so there is no remaining weth to unwrap ...
The recipient of the swap method should be FunctionRecipient.ROUTER in this case.

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@Elnaril
Comment options

Comment options

You must be logged in to vote
2 replies
@whlustb
Comment options

@Elnaril
Comment options

Answer selected by Elnaril
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