- Notifications
You must be signed in to change notification settings - Fork386
incredible swap#198
-
Hello, i did a swap a little while ago and inexplicably lost 13,900 usdt i just used the instruction uniswap.make_trade(usdt, symbolUniswap, 13900 * 1000000) where: But i only received the equialent of 17 usdt instead of 13,9k. |
BetaWas this translation helpful?Give feedback.
All reactions
😕 3
Replies: 4 comments 11 replies
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
-
Impossible to say without looking at the tx. Edit: Also, your address for the UNI token is not correct. Seems to be for something else called VXV:https://etherscan.io/token/0x7d29a64504629172a429e64183d6673b9dacbfce Edit 2: Looks like you may have tried to swap using Uniswap v2, which has almost no liquidity for the VXV token:https://v2.info.uniswap.org/pair/0x0c9c5daf1d7cd8b10e9fc5e7a10762f0a8d1c335
Edit 3: Found the txhttps://etherscan.io/tx/0xb6e8e667ed8489ae071c4327b24bdec1193e9e76ba767421e72370ece1859420/ Indeed, the estimated price was exactly what you got. Sorry this happened to you. You need to be careful to use a pool that has liquidity (and always check the estimated price before executing!). Thinking of ways to make this clearer in the docs. |
BetaWas this translation helpful?Give feedback.
All reactions
👍 2
-
Thanks for the reply. In fact, when analyzing the transaction, I used a cashless pool. uniswap = Uniswap (address = address, private_key = private_key, version = 2, provider = provider) If I enter version = 3, is Uniswap V3 supported or do I need to update something? Thank you very much |
BetaWas this translation helpful?Give feedback.
All reactions
-
Answered by@liquid-8 below. Working on improving docs and adding a |
BetaWas this translation helpful?Give feedback.
All reactions
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
-
You can define a method that returns the pool's contract for the given pair of tokens. Code snippet:
Then just analyze this contract in the way you like: programmatically or via third-part tools like Etherscan.
If you use the latest version then yes, that's all you need to do, basically. Addition: you need direct pool @ uniV3 for your pair of tokens to trade as current version doesn't support multihop swaps. Also, you have to set proper value for V3 fee. |
BetaWas this translation helpful?Give feedback.
All reactions
-
Thank you very much |
BetaWas this translation helpful?Give feedback.
All reactions
-
Sorry again, but i got this error: object has no attribute 'factory_contract' how can i solve it please? |
BetaWas this translation helpful?Give feedback.
All reactions
-
Nope. Is there a way to get money back? |
BetaWas this translation helpful?Give feedback.
All reactions
-
I don't know. I contacted with them on twitter. Have no reply yet... |
BetaWas this translation helpful?Give feedback.
All reactions
-
who did you contact? |
BetaWas this translation helpful?Give feedback.
All reactions
-
I answered@FILAgiao in#208 (comment) |
BetaWas this translation helpful?Give feedback.
All reactions
-
Just DM uniswap. |
BetaWas this translation helpful?Give feedback.
All reactions
-
The same problem comes to me...lost almost 1.5k$,i do should read that instruction carefully... |
BetaWas this translation helpful?Give feedback.
All reactions
❤️ 1