Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

SDK 10.0 returning in dollars instead of token amount #19

Open
Wesleyleung opened this issue Feb 5, 2025 · 0 comments
Open

SDK 10.0 returning in dollars instead of token amount #19

Wesleyleung opened this issue Feb 5, 2025 · 0 comments

Comments

@Wesleyleung
Copy link

We noticed that for some quotes (maybe only for Shuttle) where the error code is AMOUNT_TOO_SMALL, the min amount in the msg field is in dollars instead of input token units. For example:

{
    "code": "AMOUNT_TOO_SMALL",
    "msg": "Amount too small (min ~0.0013 ETH)",
    "data": {
        "minAmountIn": 0.0013
    }
}

vs

{"code":"AMOUNT_TOO_SMALL","msg":"Amount too small (min ~100$)"}
Is it possible for the min to be in token units instead of dollars?
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant