Skip to content

querySellQuoteToken has little  #46

@CSWellesSun

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?

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