git.delta.rocks / unique-network / refs/commits / f1d694ef3f58

difftreelog

tests: fix vesting test

Max Andreev2022-12-25parent: #e42f99d.patch.diff
in: master
Increase periods length for forkless tests

1 file changed

modifiedtests/src/vesting.test.tsdiffbeforeafterboth
32 // arrange32 // arrange
33 const [sender, recepient] = await helper.arrange.createAccounts([1000n, 1n], donor);33 const [sender, recepient] = await helper.arrange.createAccounts([1000n, 1n], donor);
34 const currentRelayBlock = await helper.chain.getRelayBlockNumber();34 const currentRelayBlock = await helper.chain.getRelayBlockNumber();
35 const SCHEDULE_1_PERIOD = 4n; // 6 blocks one period35 const SCHEDULE_1_PERIOD = 6n; // 6 blocks one period
36 const SCHEDULE_1_START = currentRelayBlock + 6n; // Block when 1 schedule starts36 const SCHEDULE_1_START = currentRelayBlock + 6n; // Block when 1 schedule starts
37 const SCHEDULE_2_PERIOD = 8n; // 12 blocks one period37 const SCHEDULE_2_PERIOD = 12n; // 12 blocks one period
38 const SCHEDULE_2_START = currentRelayBlock + 12n; // Block when 2 schedule starts38 const SCHEDULE_2_START = currentRelayBlock + 12n; // Block when 2 schedule starts
39 const schedule1 = {start: SCHEDULE_1_START, period: SCHEDULE_1_PERIOD, periodCount: 2n, perPeriod: 50n * nominal};39 const schedule1 = {start: SCHEDULE_1_START, period: SCHEDULE_1_PERIOD, periodCount: 2n, perPeriod: 50n * nominal};
40 const schedule2 = {start: SCHEDULE_2_START, period: SCHEDULE_2_PERIOD, periodCount: 2n, perPeriod: 100n * nominal};40 const schedule2 = {start: SCHEDULE_2_START, period: SCHEDULE_2_PERIOD, periodCount: 2n, perPeriod: 100n * nominal};