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
The Zenlink UI showed wrong prices for DOT and XLM on the Pendulum pools, e.g. this one. The PEN price was correct. All token prices are derived relative to the price of the native asset (in this case PEN) so this suggests that the calculation of the relative prices is wrong.
To fix this, I deployed a new squid pendulum-squid@v27 which does not contain any code changes. When comparing the relative token prices between pendulum-squid v26 and v27, it's clear that they are different although the base price is the same.
Query:
query MyQuery {
tokens(orderBy: id_ASC) {
decimals
derivedETH
id
name
}
bundleById(id: "1") {
ethPrice
id
}
}
The price of each token is denoted as ethPrice * derivedETH = tokenPrice. So e.g. the derived price for XLM on the v27 indexer would be 0.0245976878 * 5.4274148283 = 0.133501855508 USD which roughly matches the expected price.
TODO
Investigate how the relative prices ended up being incorrect on the v26 indexer and why they are correct on v27.
The text was updated successfully, but these errors were encountered:
@pendulum-chain/product this is for solving a bug that recently caused the Zenlink UI to show different prices. The issue was fixed temporarily by deploying a new squid but the underlying issue should still be solved as we might face the same situation soon.
It depends. We don't know how likely this is to reoccur. It seems like the prices are still normal/correct at the moment and if the product team doesn't think it's urgent we can always fix it by redeploying the squid.
Context
The Zenlink UI showed wrong prices for DOT and XLM on the Pendulum pools, e.g. this one. The PEN price was correct. All token prices are derived relative to the price of the native asset (in this case PEN) so this suggests that the calculation of the relative prices is wrong.
To fix this, I deployed a new squid pendulum-squid@v27 which does not contain any code changes. When comparing the relative token prices between pendulum-squid v26 and v27, it's clear that they are different although the base price is the same.
Query:
v26:
v27
The price of each token is denoted as
ethPrice * derivedETH = tokenPrice
. So e.g. the derived price for XLM on the v27 indexer would be0.0245976878 * 5.4274148283 = 0.133501855508 USD
which roughly matches the expected price.TODO
Investigate how the relative prices ended up being incorrect on the v26 indexer and why they are correct on v27.
The text was updated successfully, but these errors were encountered: