Skip to content

Commit

Permalink
feat(fix): Ensure unclaimed payouts are ints (#2336)
Browse files Browse the repository at this point in the history
  • Loading branch information
rossbulat authored Nov 19, 2024
1 parent 1cdef69 commit 9b59277
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/app/src/contexts/Payouts/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,8 @@ export const PayoutsProvider = ({ children }: { children: ReactNode }) => {
.minus(valCut)
.multipliedBy(staked)
.dividedBy(total)
.plus(isValidator ? valCut : 0);
.plus(isValidator ? valCut : 0)
.integerValue(BigNumber.ROUND_DOWN);

if (!unclaimedPayout.isZero()) {
unclaimed[era] = {
Expand Down

0 comments on commit 9b59277

Please sign in to comment.