Skip to content

Commit

Permalink
fix: incorrect marketParams used
Browse files Browse the repository at this point in the history
  • Loading branch information
QGarchery committed Nov 24, 2024
1 parent 804d67d commit d4d5e56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/forge/BaseTest.sol
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ contract BaseTest is Test {
uint256 maxRepaidAssets = morpho.collateral(_id, borrower).mulDivDown(collateralPrice, ORACLE_PRICE_SCALE)
.wDivDown(_liquidationIncentiveFactor(_marketParams.lltv));

(,, uint256 totalBorrowAssets, uint256 totalBorrowShares) = morpho.expectedMarketBalances(marketParams);
(,, uint256 totalBorrowAssets, uint256 totalBorrowShares) = morpho.expectedMarketBalances(_marketParams);
uint256 maxRepaidShares = maxRepaidAssets.toSharesDown(totalBorrowAssets, totalBorrowShares);

uint256 borrowShares = morpho.borrowShares(_id, borrower);
Expand Down

0 comments on commit d4d5e56

Please sign in to comment.