Skip to content

Commit 0d49e27

Browse files
Fix liquidPool tests
1 parent 520f875 commit 0d49e27

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/staking/LiquidPool.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,18 +19,18 @@ import {
1919
import { expect } from "chai";
2020

2121
const D1 = 60 * 60 * 24;
22-
const MILLION = 1_000_000;
22+
const BILLION = 1_000_000_000;
2323

2424
const T = 20000000000;
2525

2626
const nodeStake = ethers.utils.parseEther("500");
2727
const maxNodeCount = 10;
2828

29-
const interest = 0.10 * MILLION; // 10%
29+
const interest = 0.10 * BILLION; // 10%
3030
const interestPeriod = D1; // 1 day
3131
const minStakeValue = 1;
3232
const lockPeriod = 30 * D1; // 30 days
33-
const penalty = 0.10 * MILLION; // 10%
33+
const penalty = 0.10 * BILLION; // 10%
3434

3535

3636
describe("LiquidPool", function () {
@@ -379,7 +379,7 @@ describe("LiquidPool", function () {
379379
});
380380

381381
it("should revert if interest is too high", async function () {
382-
await expect(liquidPool.setInterest(MILLION + 1, 2 * D1)).to.be.reverted;
382+
await expect(liquidPool.setInterest(BILLION + 1, 2 * D1)).to.be.reverted;
383383
});
384384

385385
it("should revert if not admin", async function () {

0 commit comments

Comments
 (0)