futureversecom / trn-seed

Implementation of The Root Network node in Rust, based on the Substrate framework.

Home Page:https://www.therootnetwork.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Bug | Dex | RPC] Error when trying to `getAmountsOut` for assets with different decimals

aidan-starke opened this issue · comments

getAmountsOut RPC call works fine with e.g. XRP-ROOT but fails with XRP-SYLO

You can test this at https://trn-substrate-portal.vercel.app/

Screenshot 2023-03-28 at 1 39 22 PM

I have also seen this one, but I think it is just from entering too big a number
Screenshot 2023-03-28 at 1 45 32 PM

NOTE: The current liquidity pool for XRP-SYLO is 6429 XRP to 544902 SYLO, so maybe just because of that?

Screenshot 2023-03-28 at 1 47 17 PM

Resolved by #530