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

querySellQuoteToken has little #46

Open
CSWellesSun opened this issue Nov 10, 2024 · 0 comments
Open

querySellQuoteToken has little #46

CSWellesSun opened this issue Nov 10, 2024 · 0 comments

Comments

@CSWellesSun
Copy link

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?

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

1 participant