From 4cdfefcc7595572fad6849207cb402a326d54331 Mon Sep 17 00:00:00 2001 From: PraetorP Date: Wed, 15 Nov 2023 16:46:11 +0700 Subject: [PATCH] refactor(test app promo): fix comment --- js-packages/tests/sub/appPromotion/appPromotion.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js-packages/tests/sub/appPromotion/appPromotion.test.ts b/js-packages/tests/sub/appPromotion/appPromotion.test.ts index 92c2790477..9d3b3912fd 100644 --- a/js-packages/tests/sub/appPromotion/appPromotion.test.ts +++ b/js-packages/tests/sub/appPromotion/appPromotion.test.ts @@ -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) {