Skip to content

Commit

Permalink
fix: fix incentive user rewards amount
Browse files Browse the repository at this point in the history
  • Loading branch information
qwer951123 committed Nov 24, 2023
1 parent 03bc9ce commit 5b1f73b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,5 @@
"typescript": "^5.0.4"
},
"packageManager": "yarn@3.5.0",
"stableVersion": "4.1.9-9"
"stableVersion": "4.1.9-10"
}
2 changes: 1 addition & 1 deletion packages/sdk/src/incentive/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ export class Incentive implements BaseSDK {
const withdrawnReward = withdrawns.find((withdrawn) => withdrawn.token.isEqual(token));

const claimableReward = ratio
.mul(item.claimableReward)
.mul(item.totalReward)
.minus(withdrawnReward?.withdrawnReward || FixedPointNumber.ZERO)
.add(pendingReward?.reward || FixedPointNumber.ZERO)
.max(FixedPointNumber.ZERO);
Expand Down

0 comments on commit 5b1f73b

Please sign in to comment.