Skip to content

Commit

Permalink
SOV-4609: fix display ambient liq balance (#1056)
Browse files Browse the repository at this point in the history
* SOV-4609: fix ambient liq balance

* Create wild-donkeys-unite.md

* chore: update ambient balance
  • Loading branch information
pietro-maximoff authored Nov 29, 2024
1 parent 08fa89a commit e3c19da
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/wild-donkeys-unite.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"frontend": patch
---

SOV-4609: fix display ambient liq balance
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,10 @@ export const useGetAmbientPositions = (pool: AmbientLiquidityPool) => {
const liqBalance = wallet.gt(0) ? wallet.toString() : lpTokenBalance;

if (ambientIndex !== -1) {
const ambientPosition = positions[ambientIndex];
ambientPosition.ambientLiq = liqBalance;
if (parseFloat(liqBalance) > 0) {
const ambientPosition = positions[ambientIndex];
ambientPosition.ambientLiq = liqBalance;
}
} else if (parseFloat(liqBalance) > 0) {
positions.push({
ambientLiq: liqBalance,
Expand Down

0 comments on commit e3c19da

Please sign in to comment.