Skip to content

Commit

Permalink
chore: removed unnecessary division
Browse files Browse the repository at this point in the history
  • Loading branch information
onmax committed Nov 27, 2024
1 parent 4e54e94 commit 8ff200d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/nimiq-rewards-calculator/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ export function calculateStakingRewards(params: CalculateStakingRewardsParams):
- Math.log(DECAY_PER_DAY * genesisSupply)
)
}
gainRatio = gainRatio * (1 - fee) / 1e5
gainRatio = gainRatio * (1 - fee)
const totalAmount = amount * (1 + gainRatio)
return { totalAmount, gain: totalAmount - amount, gainRatio }
}

0 comments on commit 8ff200d

Please sign in to comment.