@@ -139,13 +139,6 @@ contract BaseTest is Test {
139
139
return bound (blocks, 1 , type (uint32 ).max);
140
140
}
141
141
142
- /// @dev Bounds the fuzzing input to a non-zero address.
143
- /// @dev This function should be used in place of `vm.assume` in invariant test handler functions:
144
- /// https://github.com/foundry-rs/foundry/issues/4190.
145
- function _boundAddressNotZero (address input ) internal view virtual returns (address ) {
146
- return address (uint160 (bound (uint256 (uint160 (input)), 1 , type (uint160 ).max)));
147
- }
148
-
149
142
function _supply (uint256 amount ) internal {
150
143
loanToken.setBalance (address (this ), amount);
151
144
morpho.supply (marketParams, amount, 0 , address (this ), hex "" );
@@ -194,7 +187,7 @@ contract BaseTest is Test {
194
187
195
188
uint256 maxCollateral =
196
189
amountBorrowed.wDivDown (marketParams.lltv).mulDivDown (ORACLE_PRICE_SCALE, priceCollateral);
197
- amountCollateral = bound (amountBorrowed , 0 , Math.min (maxCollateral, MAX_COLLATERAL_ASSETS));
190
+ amountCollateral = bound (amountCollateral , 0 , Math.min (maxCollateral, MAX_COLLATERAL_ASSETS));
198
191
199
192
vm.assume (amountCollateral > 0 );
200
193
return (amountCollateral, amountBorrowed, priceCollateral);
0 commit comments