Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
HrikB committed Feb 5, 2024
1 parent cfad846 commit d794cd6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
10 changes: 6 additions & 4 deletions test/fork/concrete/WstEthHandlerFork.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -341,8 +341,9 @@ contract WstEthHandler_Zap_ForkTest is WstEthHandler_ForkBase {
uint256 resultingAdditionalWstEthCollateral =
IWstEth(address(MAINNET_WSTETH)).getWstETHByStETH(resultingAdditionalStEthCollateral);

uint256 maxResultingDebt =
MAINNET_WSTETH.getEthAmountInForLstAmountOut(resultingAdditionalWstEthCollateral - wstEthDepositAmount) * 1.005e18; // Some slippage tolerance
uint256 maxResultingDebt = MAINNET_WSTETH.getEthAmountInForLstAmountOut(
resultingAdditionalWstEthCollateral - wstEthDepositAmount
) * 1.005e18; // Some slippage tolerance
uint160 sqrtPriceLimitX96 = 0;

IERC20(address(MAINNET_STETH)).approve(address(wstEthHandler), stEthDepositAmount);
Expand Down Expand Up @@ -395,8 +396,9 @@ contract WstEthHandler_Zap_ForkTest is WstEthHandler_ForkBase {
uint256 resultingAdditionalWstEthCollateral =
IWstEth(address(MAINNET_WSTETH)).getWstETHByStETH(resultingAdditionalStEthCollateral);

uint256 maxResultingDebt =
MAINNET_WSTETH.getEthAmountInForLstAmountOut(resultingAdditionalWstEthCollateral - wstEthDepositAmount) * 1.005e18; // Some slippage tolerance
uint256 maxResultingDebt = MAINNET_WSTETH.getEthAmountInForLstAmountOut(
resultingAdditionalWstEthCollateral - wstEthDepositAmount
) * 1.005e18; // Some slippage tolerance
uint160 sqrtPriceLimitX96 = 0;

IERC20(address(MAINNET_STETH)).approve(address(wstEthHandler), stEthDepositAmount);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@ pragma solidity 0.8.21;

import { IonHandler_ForkBase } from "../../../helpers/IonHandlerForkBase.sol";
import { WadRayMath, RAY } from "../../../../src/libraries/math/WadRayMath.sol";
import {
BalancerFlashloanDirectMintHandler
} from "../../../../src/flash/handlers/base/BalancerFlashloanDirectMintHandler.sol";
import { BalancerFlashloanDirectMintHandler } from
"../../../../src/flash/handlers/base/BalancerFlashloanDirectMintHandler.sol";

import { IERC20 } from "@openzeppelin/contracts/interfaces/IERC20.sol";

Expand Down

0 comments on commit d794cd6

Please sign in to comment.