diff --git a/src/pages/MyEarnings/ElasticPools/SinglePool/index.tsx b/src/pages/MyEarnings/ElasticPools/SinglePool/index.tsx index 469e318d70..09956acb03 100644 --- a/src/pages/MyEarnings/ElasticPools/SinglePool/index.tsx +++ b/src/pages/MyEarnings/ElasticPools/SinglePool/index.tsx @@ -157,7 +157,7 @@ const SinglePool: React.FC = ({ poolEarning, chainId, positionEarnings, p poolEarning.token1.id, +poolEarning.token1.decimals, poolEarning.token1.symbol, - poolEarning.token0.name, + poolEarning.token1.name, ) return [currency0, currency1] diff --git a/src/pages/MyEarnings/ElasticPools/SinglePosition/PriceRangeChart.tsx b/src/pages/MyEarnings/ElasticPools/SinglePosition/PriceRangeChart.tsx index ec3cdc7197..0edaf23c05 100644 --- a/src/pages/MyEarnings/ElasticPools/SinglePosition/PriceRangeChart.tsx +++ b/src/pages/MyEarnings/ElasticPools/SinglePosition/PriceRangeChart.tsx @@ -36,9 +36,8 @@ const PriceRangeChart: React.FC = ({ position, disabled }) => { const token1 = unwrappedToken(position.pool.token1) const [baseCurrency, setBaseCurrency] = useState(token0) - const quoteCurrency = baseCurrency === token0 ? token1 : token0 - - const isRateReversed = quoteCurrency === token0 + const quoteCurrency = baseCurrency.equals(token0) ? token1 : token0 + const isRateReversed = quoteCurrency.equals(token0) const tickAtLimit = useIsTickAtLimit(position.pool.fee, position.tickLower, position.tickUpper)