From abf225701aa76b3734cbfb26c0805b17c58d958b Mon Sep 17 00:00:00 2001 From: Silviu Troscot Date: Mon, 3 Jun 2024 12:53:01 +0300 Subject: [PATCH] fix meteora pending fees computation (#467) --- packages/kamino-sdk/src/Kamino.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/kamino-sdk/src/Kamino.ts b/packages/kamino-sdk/src/Kamino.ts index 0995a49d..65149bba 100644 --- a/packages/kamino-sdk/src/Kamino.ts +++ b/packages/kamino-sdk/src/Kamino.ts @@ -4844,8 +4844,8 @@ export class Kamino { b: ZERO, }; for (let feeInfo of meteoraPosition.feeInfos) { - pendingFees.a = pendingFees.a.add(new Decimal(meteoraPosition.feeInfos[0].feeXPending.toString())); - pendingFees.b = pendingFees.b.add(new Decimal(meteoraPosition.feeInfos[1].feeXPending.toString())); + pendingFees.a = pendingFees.a.add(feeInfo.feeXPending.toString()); + pendingFees.b = pendingFees.b.add(feeInfo.feeYPending.toString()); } result.push({ strategy: meteoraStrategies[index],