Skip to content

Commit

Permalink
refactor(test app promo): fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
PraetorP committed Nov 16, 2023
1 parent e8d6f25 commit 4cdfefc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js-packages/tests/sub/appPromotion/appPromotion.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -983,7 +983,7 @@ async function payUntilRewardFor(account: string, helper: DevUniqueHelper) {
function calculateIncome(base: bigint, iter = 0, calcPeriod: bigint = UNLOCKING_PERIOD): bigint {
const DAY = 7200n;
const ACCURACY = 1_000_000_000n;
// 5n / 10_000n = 0.05% p/day
// 453_256n / 1_000_000_000n = 0.0453256% /day
const income = base + base * (ACCURACY * (calcPeriod * 453_256n) / (1_000_000_000n * DAY)) / ACCURACY ;

if(iter > 1) {
Expand Down

0 comments on commit 4cdfefc

Please sign in to comment.