Skip to content

Commit

Permalink
tests: try to withdraw twice
Browse files Browse the repository at this point in the history
  • Loading branch information
0xtekgrinder committed Apr 15, 2024
1 parent f7680c9 commit dae57c9
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions test/fuzz/EmergencyWithdrawal.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,12 @@ contract EmergencyWithdrawalFuzz is Fixture {
for (uint i = 0; i < accounts.length; i++) {
assertEq(Angle.balanceOf(accounts[i]), 0);

vm.startPrank(accounts[i]);
vm.prank(accounts[i]);
veANGLE.withdraw_fast();
vm.stopPrank();
assertEq(Angle.balanceOf(accounts[i]), balances[i]);

vm.prank(accounts[i]);
veANGLE.withdraw_fast();
assertEq(Angle.balanceOf(accounts[i]), balances[i]);
}
}
Expand Down Expand Up @@ -72,10 +74,12 @@ contract EmergencyWithdrawalFuzz is Fixture {

vm.warp(block.timestamp + timeWraps[i]);

vm.startPrank(accounts[i]);
vm.prank(accounts[i]);
veANGLE.withdraw_fast();
vm.stopPrank();
assertEq(Angle.balanceOf(accounts[i]), balances[i]);

vm.prank(accounts[i]);
veANGLE.withdraw_fast();
assertEq(Angle.balanceOf(accounts[i]), balances[i]);
}
}
Expand Down

0 comments on commit dae57c9

Please sign in to comment.