Skip to content

Commit

Permalink
feat(tests): deleting a useless attribute in testHealthFactorBorrow
Browse files Browse the repository at this point in the history
  • Loading branch information
tomrpl committed Oct 31, 2023
1 parent d0879c5 commit 9e9b32c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/Snippets.sol
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,7 @@ contract Snippets {
);
address onBehalf = user;
address receiver = user;

morpho.withdrawCollateral(marketParams, amount, onBehalf, receiver);
}

Expand All @@ -269,6 +270,7 @@ contract Snippets {
uint256 shares = 0;
address onBehalf = user;
address receiver = user;

(assetsWithdrawn, sharesWithdrawn) = morpho.withdraw(
marketParams,
amount,
Expand Down
2 changes: 1 addition & 1 deletion test/forge/TestIntegrationSnippets.sol
Original file line number Diff line number Diff line change
Expand Up @@ -253,10 +253,10 @@ contract TestIntegrationSnippets is BaseTest {

function testHealthfactor0Borrow(
uint256 amountSupplied,
uint256 amountBorrowed,
uint256 timeElapsed,
uint256 fee
) public {
uint256 amountBorrowed;
vm.assume(amountBorrowed == 0);
_generatePendingInterest(
amountSupplied,
Expand Down

0 comments on commit 9e9b32c

Please sign in to comment.