Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

uniswap.make_trade_output with eth output renders a wETH rather than ETH#122

ToposFinance started this conversation inGeneral
Discussion options

uniswap.make_trade_output(usdt, eth, 1 * 10 ** 18, recipient) gives wETH in my test. perhaps it doesn't matter.

You must be logged in to vote

Replies: 2 comments

Comment options

actually, it definitely matters....

You must be logged in to vote
0 replies
Comment options

Well, bothexactInputSingle() andexactOutputSingle() methods act this way if you're talking about version=3. At the moment,make_trade() andmake_trade_output() wrap them. If you need ETH exactly, you should call manually smth like
uniswap.router.functions.unwrapWETH9(qty, uniswap.address).call()
after successful swap. To make that automaticallyuniV3router.multicall() should be wrapped.

You must be logged in to vote
0 replies
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Category
General
Labels
None yet
2 participants
@ToposFinance@liquid-8

[8]ページ先頭

©2009-2025 Movatter.jp