Skip to content

Commit

Permalink
chore: remove debug assertion messages
Browse files Browse the repository at this point in the history
  • Loading branch information
amusingaxl committed Oct 22, 2024
1 parent 845da0a commit 59f4e27
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions src/DssVest.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -312,32 +312,32 @@ contract DssVestTest is DSTest {
uint256 id = mVest.create(address(this), 100 * days_vest, block.timestamp + 10 days, 100 days, 0, address(0));
assertTrue(mVest.valid(id));

assertEq(mVest.accrued(id), 0, "1");
assertEq(mVest.accrued(id), 0);
hevm.warp(block.timestamp + 43200);
assertEq(mVest.unpaid(id), 0, "2"); // inside cliff
assertEq(mVest.accrued(id), 0, "3");
assertEq(mVest.unpaid(id), 0); // inside cliff
assertEq(mVest.accrued(id), 0);
hevm.warp(block.timestamp + 12 hours + 11 days);
assertEq(mVest.unpaid(id), days_vest * 2, "3.1"); // past cliff
assertEq(mVest.accrued(id), days_vest * 2, "4");
assertEq(mVest.accrued(id), days_vest * 2);
hevm.warp(block.timestamp + 2 days);
assertEq(mVest.unpaid(id), days_vest * 4, "5"); // past cliff
assertEq(mVest.accrued(id), days_vest * 4, "6");
assertEq(mVest.unpaid(id), days_vest * 4); // past cliff
assertEq(mVest.accrued(id), days_vest * 4);
mVest.vest(id);
assertEq(mVest.unpaid(id), 0, "7");
assertEq(mVest.accrued(id), days_vest * 4, "8");
assertEq(gem.balanceOf(address(this)), days_vest * 4, "9");
assertEq(mVest.accrued(id), days_vest * 4);
assertEq(gem.balanceOf(address(this)), days_vest * 4);
hevm.warp(block.timestamp + 10 days);
assertEq(mVest.unpaid(id), days_vest * 10, "10");
assertEq(mVest.accrued(id), days_vest * 14, "11");
assertEq(mVest.unpaid(id), days_vest * 10);
assertEq(mVest.accrued(id), days_vest * 14);
mVest.vest(id);
assertEq(mVest.unpaid(id), 0, "12");
assertEq(mVest.accrued(id), days_vest * 14, "13");
assertEq(gem.balanceOf(address(this)), days_vest * 14, "14");
assertEq(mVest.accrued(id), days_vest * 14);
assertEq(gem.balanceOf(address(this)), days_vest * 14);
hevm.warp(block.timestamp + 120 days); // vesting complete
assertEq(mVest.unpaid(id), days_vest * 86, "15");
assertEq(mVest.accrued(id), days_vest * 100, "16");
assertEq(mVest.unpaid(id), days_vest * 86);
assertEq(mVest.accrued(id), days_vest * 100);
mVest.vest(id);
assertEq(gem.balanceOf(address(this)), 100 * days_vest, "17");
assertEq(gem.balanceOf(address(this)), 100 * days_vest);
}

function testFutureAccrual() public {
Expand Down

0 comments on commit 59f4e27

Please sign in to comment.