Skip to content

Commit

Permalink
assumptions on unstake tests
Browse files Browse the repository at this point in the history
  • Loading branch information
anajuliabit committed Jun 24, 2024
1 parent ef43bc1 commit e012410
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/Staking.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -1071,6 +1071,7 @@ contract Unstake is StakingTest {
address _depositor2,
uint256 _amount1
) public {
vm.assume(_depositor1 != _depositor2);
_amount1 = _boundToRealisticStake(_amount1);

_mintGovToken(_depositor1, _amount1);
Expand Down Expand Up @@ -1105,6 +1106,8 @@ contract Unstake is StakingTest {
address _anyone,
uint256 _amount
) public {
vm.assume(_depositor != _anyone);

_amount = _boundToRealisticStake(_amount);

_mintGovToken(_depositor, _amount);
Expand Down

0 comments on commit e012410

Please sign in to comment.