Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there any examples about swap other token for eth #10

Open
Eternity714 opened this issue Sep 16, 2022 · 5 comments
Open

Is there any examples about swap other token for eth #10

Eternity714 opened this issue Sep 16, 2022 · 5 comments

Comments

@Eternity714
Copy link

Dear sir,
I want to swap other token (i.e usdt or dai) for eth, but I can't find any example in this repo, can you provide some support。

(please forgive my bad english and writing format)

@Eternity714
Copy link
Author

Sorry, i can only see eth for dai and eth for dai for usdt, can you be more detailed?

@juanfranblanco
Copy link
Member

juanfranblanco commented Sep 16, 2022

Those are the examples on how to swap using Uniswap. If you are looking to do the reverse, check the other methods overloads, principle is the same.

@Eternity714
Copy link
Author

Got it !!! thanks for help

public Task<string> SwapExactTokensForETHRequestAsync(BigInteger amountIn, BigInteger amountOutMin, List<string> path, string to, BigInteger deadline)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants