Skip to content

Commit

Permalink
fix meteora pending fees computation (#467)
Browse files Browse the repository at this point in the history
  • Loading branch information
silviutroscot authored Jun 3, 2024
1 parent 1402486 commit abf2257
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/kamino-sdk/src/Kamino.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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],
Expand Down

0 comments on commit abf2257

Please sign in to comment.