Skip to content

Commit

Permalink
SOV-4609: fix ambient liq balance
Browse files Browse the repository at this point in the history
  • Loading branch information
pietro-maximoff committed Nov 28, 2024
1 parent 2c0fc90 commit 5b59bb4
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ export const useGetAmbientPositions = (pool: AmbientLiquidityPool) => {

if (ambientIndex !== -1) {
const ambientPosition = positions[ambientIndex];
ambientPosition.ambientLiq = liqBalance;
ambientPosition.ambientLiq =
ambientPosition.ambientLiq || liqBalance; // Update the ambient position with the latest balance
} else if (parseFloat(liqBalance) > 0) {
positions.push({
ambientLiq: liqBalance,
Expand Down

0 comments on commit 5b59bb4

Please sign in to comment.