Skip to content

Commit

Permalink
fix your positions
Browse files Browse the repository at this point in the history
  • Loading branch information
haunv3 committed Aug 27, 2024
1 parent 33db729 commit d1d00db
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/pages/Pool-V3/components/PoolDetail/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ const PoolV3Detail = () => {
setLiquidity(liquidityDistribution);
return;
}

const pool = poolList.find((p) => poolKeyToString(p.pool_key) === poolKeyString);
const liquidity = await SingletonOraiswapV3.getLiquidityByPool(pool, poolPrice, allPosition);
setLiquidity(liquidity);
Expand Down Expand Up @@ -130,6 +130,7 @@ const PoolV3Detail = () => {
try {
setLoading(true);
if (!(poolList.length && userPositions.length && poolPrice && address)) return setDataPosition([]);
if (dataPosition.length) return;
const feeClaimData = await getFeeClaimData(address);

const positionsMap = convertPosition({
Expand Down

0 comments on commit d1d00db

Please sign in to comment.