Skip to content

Commit

Permalink
Merge branch 'test/skip-lens-delta-rate' into test/skip-lens-over-uti…
Browse files Browse the repository at this point in the history
…lized
  • Loading branch information
QGarchery committed Mar 14, 2024
2 parents a17e5bc + 72bf09c commit 03d629c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
6 changes: 2 additions & 4 deletions test/prod/aave-v2/TestUpgradeLens.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,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 @@ -101,6 +98,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.getNextUserBorrowRatePerYear(
Expand Down
6 changes: 2 additions & 4 deletions test/prod/compound/TestUpgradeLens.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -122,10 +122,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 @@ -140,6 +137,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 03d629c

Please sign in to comment.