Skip to content

Commit

Permalink
fix onchain balances for v3 (#1272)
Browse files Browse the repository at this point in the history
  • Loading branch information
gmbronco authored Dec 11, 2024
1 parent 4de64f4 commit 0887858
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/twelve-steaks-call.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'backend': patch
---

fix onchain balances for v3
2 changes: 1 addition & 1 deletion modules/sources/contracts/v3/fetch-pool-data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export async function fetchPoolData(
isPoolInRecoveryMode: config?.isPoolInRecoveryMode,
tokens: poolTokenInfo?.[0].map((token: string, i: number) => ({
address: token.toLowerCase(),
balance: poolTokenInfo[2][i],
balance: poolTokenInfo[3][i],
paysYieldFees: poolTokenInfo[1][i].paysYieldFees,
rateProvider: poolTokenInfo[1][i].rateProvider,
rate: poolTokenRates ? poolTokenRates[1][i] : 1000000000000000000n,
Expand Down

0 comments on commit 0887858

Please sign in to comment.