Skip to content
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.

Commit

Permalink
Update condition to check for denominator
Browse files Browse the repository at this point in the history
  • Loading branch information
priojeetpriyom committed Dec 20, 2023
1 parent 77a1954 commit f8e0fef
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ const calcSelfStakeReward = async (generatorAddress, blockReward, commissionAmou
);

// Return commission as 0 if self stake is 0
if (selfStakes <= 0) {
if (totalStakes <= BigInt('0')) {
return BigInt('0');
}

Expand Down

0 comments on commit f8e0fef

Please sign in to comment.