We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c748134 commit 021331bCopy full SHA for 021331b
src/RescueStrategy.sol
@@ -90,7 +90,7 @@ contract RescueStrategy is IERC4626 {
90
(bool success, bytes memory reason) = earnVault.staticcall(abi.encodeCall(IEulerEarnBase.setFee, (0)));
91
require(!success, "expected revert"); // if reentrancy was unlocked, attempt to set it will panic
92
93
- if (bytes4(reason) == ReentrancyGuard.ReentrancyGuardReentrantCall.selector)
+ if (reason.length == 4 && bytes4(reason) == ReentrancyGuard.ReentrancyGuardReentrantCall.selector)
94
revert("vault operations are paused - maxWithdraw");
95
}
96
return 0;
0 commit comments