Skip to content

querySellQuoteToken has little  #46

Description

@CSWellesSun

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions