You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
When I use
IDODOSellHelper.querySellQuoteToken
and thenIDODOV1.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 tobuyBaseToken
, 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?
The text was updated successfully, but these errors were encountered: