-
Notifications
You must be signed in to change notification settings - Fork 99
Open
Description
When I use IDODOSellHelper.querySellQuoteToken and then IDODOV1.buyBaseToken, I find that the former sometimes has a slight deviation, causing the latter to fail to swap successfully.
I tried two different cases and failed one case. In USDC-USDT pair, I get 1860941078966 from IDODOSellHelper.querySellQuoteToken as amountOut, but the amountOut is too large to buyBaseToken, I have to decrease it by 4 to 1860941078962 for success swap. Though it's a minor deviation but the tx fails.
So how to fix the problem?
Metadata
Metadata
Assignees
Labels
No labels