pendulum-chain / pendulum-squids

The subsquid squids we use for Pendulum/Amplitude/Foucoco.
GNU General Public License v3.0
0 stars 0 forks source link

Composition of Zenlink pair not shown properly #36

Closed ebma closed 11 months ago

ebma commented 11 months ago

The Zenlink UI currently shows a pool composition of 2014450 AMPE to 0 KSM for the AMPE/KSM pool. This is not true as the pairAccount of the pool 6jM63XCYUjHhdfXy9YMa2fKa9z4nqyJTb4DQxjm5mqsXBBQ5 has a balance of ~100 KSM.

image image

TODO

We need to investigate this issue and make sure that the reserve1 parameter of the following query is not 0 but displays the amount of KSM that the pool has.

query MyQuery {
  pairById(id:"2124-2-1099511628544") {
    id
    reserve0
    reserve1
    reserveETH
    reserveUSD
    token0Price
    token1Price
    totalSupply
    trackedReserveETH
    volumeToken0
    volumeToken1
    volumeUSD
    liquidityProviderCount
    txCount
    untrackedVolumeUSD
  }
  bundleById(id: "1") {
    id
    ethPrice
  }
}