Skip to content

Commit

Permalink
test: fix invariant test
Browse files Browse the repository at this point in the history
  • Loading branch information
Schlagonia committed Sep 4, 2024
1 parent 06a354f commit 59ece7f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/test/handlers/StrategyHandler.sol
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ contract StrategyHandler is ExtendedTest {
}

function reportProfit(uint256 _amount) public countCall("reportProfit") {
_amount = bound(_amount, 1, strategy.totalAssets() / 2);
_amount = bound(_amount, 1_000, strategy.totalAssets() / 2);

// Simulate earning interest
asset.mint(address(strategy), _amount);
Expand Down Expand Up @@ -152,7 +152,7 @@ contract StrategyHandler is ExtendedTest {
}

function tend(uint256 _amount) public countCall("tend") {
_amount = bound(_amount, 1, strategy.totalAssets() / 2);
_amount = bound(_amount, 1_000, strategy.totalAssets() / 2);
asset.mint(address(strategy), _amount);

vm.prank(setup.keeper());
Expand Down

0 comments on commit 59ece7f

Please sign in to comment.