Skip to content

Commit

Permalink
test: fuzz amount in testShouldWithdrawP2PSupplyWhenBorrowCapExceeded…
Browse files Browse the repository at this point in the history
…WithIdleSupply

Signed-off-by: MathisGD <[email protected]>
  • Loading branch information
MathisGD authored Oct 17, 2024
1 parent 39dc3a2 commit 991e055
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/integration/TestIntegrationWithdraw.sol
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ contract TestIntegrationWithdraw is IntegrationTest {
user.supply(market.underlying, test.supplied, onBehalf);

_increaseIdleSupply(promoter2, market, test.supplied);
amount = morpho.market(market.underlying).idleSupply;
amount = bound(amount, 1, morpho.market(market.underlying).idleSupply);

borrowCap = _boundBorrowCapExceeded(market, test.supplied, borrowCap);
_setBorrowCap(market, borrowCap);
Expand Down

0 comments on commit 991e055

Please sign in to comment.