how swap from 1 token to usdt without direct pair? and fees on swap from token to eth #67
-
question 1: question 2: |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Hi @facilficom ! |
Beta Was this translation helpful? Give feedback.
-
Ok, thanks! So, if I understand correctly what you try to achieve, you'd like to swap the remaining tokens to else:
chain_builder = chain_builder.sweep(FunctionRecipient.CUSTOM, token_bought, 0, OWNER_WALLET_ADDRESS) In this case, if you have the right path, you can use the method The tricky part would be to have the right path. For that, you may want to give a try to the: uniswap-smart-path For your issue with a 3-token path, could you please share a minimal example and a link to the failed transaction? |
Beta Was this translation helpful? Give feedback.
This is the decoded input data used in the transaction you linked: