Skip to content

Commit

Permalink
update hardhat test
Browse files Browse the repository at this point in the history
expired reward schedules are removed after the program is funded again.
  • Loading branch information
itirabasso committed Feb 8, 2023
1 parent 3424aba commit 25fa14f
Showing 1 changed file with 3 additions and 13 deletions.
16 changes: 3 additions & 13 deletions test/AludelV3.ts
Original file line number Diff line number Diff line change
Expand Up @@ -654,24 +654,14 @@ describe("AludelV3", function () {
.mul(BASE_SHARES_PER_WEI)
.div(2)
);
expect(data.rewardSchedules.length).to.eq(2);
expect(data.rewardSchedules[0].duration).to.eq(
defaultRewardScaling.time
);
expect(data.rewardSchedules.length).to.eq(1);
expect(data.rewardSchedules[0].duration).to.eq(defaultRewardScaling.time);
expect(data.rewardSchedules[0].start).to.eq(await getTimestamp());
expect(data.rewardSchedules[0].shares).to.eq(
subtractFundingFee(amplInitialSupply)
.mul(BASE_SHARES_PER_WEI)
.div(2)
);
expect(data.rewardSchedules[1].duration).to.eq(
defaultRewardScaling.time
);
expect(data.rewardSchedules[1].start).to.eq(await getTimestamp());
expect(data.rewardSchedules[1].shares).to.eq(
subtractFundingFee(amplInitialSupply)
.mul(BASE_SHARES_PER_WEI)
.div(2)
);
});
it("should emit event", async function () {
await expect(
Expand Down

0 comments on commit 25fa14f

Please sign in to comment.