Skip to content

Commit

Permalink
fix: balance calculation update path (#1033)
Browse files Browse the repository at this point in the history
  • Loading branch information
gmbronco authored Oct 7, 2024
1 parent c0fc647 commit 8b1d6ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/pool/lib/pool-on-chain-data.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -258,12 +258,12 @@ export class PoolOnChainDataService {
balanceUSD:
poolToken.address === pool.address
? 0
: tokenPrices.find(
: (tokenPrices.find(
(tokenPrice) =>
tokenPrice.tokenAddress.toLowerCase() ===
poolToken.address.toLowerCase() &&
tokenPrice.chain === poolToken.chain,
)?.price || 0 * parseFloat(balance),
)?.price || 0) * parseFloat(balance),
},
}),
);
Expand Down

0 comments on commit 8b1d6ff

Please sign in to comment.