diff --git a/.changeset/twelve-steaks-call.md b/.changeset/twelve-steaks-call.md new file mode 100644 index 000000000..559f9e437 --- /dev/null +++ b/.changeset/twelve-steaks-call.md @@ -0,0 +1,5 @@ +--- +'backend': patch +--- + +fix onchain balances for v3 diff --git a/modules/sources/contracts/v3/fetch-pool-data.ts b/modules/sources/contracts/v3/fetch-pool-data.ts index 7e1ffe367..ddd647682 100644 --- a/modules/sources/contracts/v3/fetch-pool-data.ts +++ b/modules/sources/contracts/v3/fetch-pool-data.ts @@ -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,