Skip to content

Commit

Permalink
Initialize arr w/ zero (#1782)
Browse files Browse the repository at this point in the history
  • Loading branch information
grod220 authored Sep 12, 2024
1 parent de9bd06 commit e5b7a74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/types/src/staking.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export const isDelegationTokenForValidator = (
*/
export const calculateCommissionAsPercentage = (validatorInfo: ValidatorInfo): number => {
const fundingStreams = getFundingStreamsFromValidatorInfo(validatorInfo);
const totalBps = fundingStreams.map(getRateBpsFromFundingStream).reduce(toSum);
const totalBps = fundingStreams.map(getRateBpsFromFundingStream).reduce(toSum, 0);

return totalBps / 100;
};
Expand Down

0 comments on commit e5b7a74

Please sign in to comment.