You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Description
Fixes: #2887
# Changes
Adjust returned native token prices when the quoted token has a
different amount of decimals than the native token to be inline with all
other native price estimator implementations.
Additionally I also removed the option to quote without denominating in
any token mainly to reduce complexity.
## How to test
Added an `ignored` unit test that checks that prices make sense.
Also compared prices returned for `wxdai` and `usdc` with prices logged
in our infra.
Problem
The CoinGecko native price estimator does not normalize the prices for the tokens which don't have 18 decimals.
Impact
We cannot enable CoinGecko until this issue is fixed.
To reproduce
Request the native price for a stablecoin, which usually have less than 18 decimals.
Expected behaviour
We expect to return the same price as 1inch native price estimator does (it is the easiest comparison).
Screenshots/logs
We can see how the price of USDc differs in decimals.
Additional context
Normalization PR for 1inch: #2603
The text was updated successfully, but these errors were encountered: