Skip to content

Commit

Permalink
test: fix CI.
Browse files Browse the repository at this point in the history
  • Loading branch information
clement-ux committed Oct 3, 2024
1 parent aa7ee5f commit f499fb7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
11 changes: 9 additions & 2 deletions test/fork/LidoFixedPriceMultiLpARM/Deposit.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,9 @@ contract Fork_Concrete_LidoARM_Deposit_Test_ is Fork_Shared_Test_ {
assertEq(weth.balanceOf(address(lidoARM)), wethBalanceBefore, "WETH ARM balance before");
assertEq(lidoARM.outstandingEther(), 0, "Outstanding ether before");
assertEq(lidoARM.feesAccrued(), 0, "Fees accrued before");
assertEq(lidoARM.lastAvailableAssets(), MIN_TOTAL_SUPPLY, "last available assets before");
assertApproxEqAbs(
lidoARM.lastAvailableAssets(), MIN_TOTAL_SUPPLY, STETH_ERROR_ROUNDING, "last available assets before"
);
assertEq(lidoARM.balanceOf(alice), 0, "alice shares before");
assertEq(lidoARM.totalSupply(), MIN_TOTAL_SUPPLY, "total supply before");
assertEq(lidoARM.totalAssets(), MIN_TOTAL_SUPPLY, "total assets before");
Expand Down Expand Up @@ -353,7 +355,12 @@ contract Fork_Concrete_LidoARM_Deposit_Test_ is Fork_Shared_Test_ {
assertEq(weth.balanceOf(address(lidoARM)), wethBalanceBefore + amount, "WETH ARM balance after");
assertEq(lidoARM.outstandingEther(), 0, "Outstanding ether after");
assertEq(lidoARM.feesAccrued(), 0, "Fees accrued after"); // No perfs so no fees
assertEq(lidoARM.lastAvailableAssets(), MIN_TOTAL_SUPPLY + amount, "last available assets after");
assertApproxEqAbs(
lidoARM.lastAvailableAssets(),
MIN_TOTAL_SUPPLY + amount,
STETH_ERROR_ROUNDING,
"last available assets after"
);
assertEq(lidoARM.balanceOf(alice), shares, "alice shares after");
assertEq(lidoARM.totalSupply(), MIN_TOTAL_SUPPLY + amount, "total supply after");
assertEq(lidoARM.totalAssets(), MIN_TOTAL_SUPPLY + amount, "total assets after");
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
// SPDX-License-Identifier: MIT
pragma solidity 0.8.23;

import {console} from "forge-std/Console.sol";

// Test imports
import {Fork_Shared_Test_} from "test/fork/shared/Shared.sol";

Expand Down

0 comments on commit f499fb7

Please sign in to comment.