Skip to content

Commit

Permalink
fix: corresponding delta for compound
Browse files Browse the repository at this point in the history
  • Loading branch information
QGarchery committed Mar 14, 2024
1 parent a905267 commit 72bf09c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions test/prod/compound/TestUpgradeLens.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -116,10 +116,7 @@ contract TestUpgradeLens is TestSetup {
supplyAmount
);

(uint256 supplyDelta, uint256 borrowDelta, , ) = morpho.deltas(
supplyMarket.poolToken
);

(uint256 supplyDelta, , , ) = morpho.deltas(supplyMarket.poolToken);
if (supplyDelta > 0) continue;

_tip(supplyMarket.underlying, address(user), supplyAmount);
Expand All @@ -134,6 +131,7 @@ contract TestUpgradeLens is TestSetup {
string.concat(supplyMarket.symbol, " supply rate")
);

(, uint256 borrowDelta, , ) = morpho.deltas(borrowMarket.poolToken);
if (borrowDelta > 0 || borrowMarket.status.isBorrowPaused) continue;

(uint256 expectedBorrowRate, , , ) = lens.getNextUserBorrowRatePerBlock(
Expand Down

0 comments on commit 72bf09c

Please sign in to comment.