Skip to content

Commit c748134

Browse files
committed
clean up
1 parent 4299f6b commit c748134

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/RescueStrategy.sol

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import {IERC20Metadata} from "openzeppelin-contracts/interfaces/IERC20Metadata.s
66
import {IERC4626} from "openzeppelin-contracts/interfaces/IERC4626.sol";
77
import {EVCUtil} from "ethereum-vault-connector/utils/EVCUtil.sol";
88
import {IEVC} from "ethereum-vault-connector/interfaces/IEthereumVaultConnector.sol";
9-
import {IEulerEarn} from "./interfaces/IEulerEarn.sol";
9+
import {IEulerEarn, IEulerEarnBase} from "./interfaces/IEulerEarn.sol";
1010
import {IEulerEarnFactory} from "./interfaces/IEulerEarnFactory.sol";
1111
import {SafeERC20Permit2Lib} from "./libraries/SafeERC20Permit2Lib.sol";
1212
import {SafeERC20} from "openzeppelin-contracts/token/ERC20/utils/SafeERC20.sol";
@@ -87,7 +87,7 @@ contract RescueStrategy is IERC4626 {
8787
if (!rescueActive && msg.sender == earnVault) {
8888
// if reentrancy locked - earn is calling from `withdraw`, which should be prevented
8989
// if unlocked - let it through because `maxWithdrawFromStrategy` is called, which is relied upon by the Lens contract
90-
(bool success, bytes memory reason) = earnVault.staticcall(abi.encodeWithSignature("setFee(uint256)", 0));
90+
(bool success, bytes memory reason) = earnVault.staticcall(abi.encodeCall(IEulerEarnBase.setFee, (0)));
9191
require(!success, "expected revert"); // if reentrancy was unlocked, attempt to set it will panic
9292

9393
if (bytes4(reason) == ReentrancyGuard.ReentrancyGuardReentrantCall.selector)

0 commit comments

Comments
 (0)