Skip to content

Commit

Permalink
fix type in compute fn
Browse files Browse the repository at this point in the history
  • Loading branch information
thesoftwarejedi committed Oct 4, 2021
1 parent 2ba88cb commit c0cd453
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/user.js
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ class User {
if (singleStaking) {
b = 0;
} else {
b = balanceStaked.mul(rwds[0]).sub(completeB).div(U64_MAX).add(pendingB).toNumber();
b = balanceStaked.mul(rwds[1]).sub(completeB).div(U64_MAX).add(pendingB).toNumber();
}
return [a, b];

Expand Down Expand Up @@ -577,4 +577,4 @@ class User {
module.exports = {
claimForUsers,
User
};
};

0 comments on commit c0cd453

Please sign in to comment.