Skip to content

Commit 8ff200d

Browse files
committed
chore: removed unnecessary division
1 parent 4e54e94 commit 8ff200d

File tree

1 file changed

+1
-1
lines changed
  • packages/nimiq-rewards-calculator/src

1 file changed

+1
-1
lines changed

packages/nimiq-rewards-calculator/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ export function calculateStakingRewards(params: CalculateStakingRewardsParams):
9090
- Math.log(DECAY_PER_DAY * genesisSupply)
9191
)
9292
}
93-
gainRatio = gainRatio * (1 - fee) / 1e5
93+
gainRatio = gainRatio * (1 - fee)
9494
const totalAmount = amount * (1 + gainRatio)
9595
return { totalAmount, gain: totalAmount - amount, gainRatio }
9696
}

0 commit comments

Comments
 (0)