Skip to content

Commit

Permalink
chore: enable rescueFunds for wstETH
Browse files Browse the repository at this point in the history
  • Loading branch information
samparsky committed Sep 27, 2023
1 parent d781b30 commit bf088de
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/solady
Submodule solady updated 142 files
4 changes: 1 addition & 3 deletions src/lido/LidoSplit.sol
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,7 @@ contract LidoSplit is Clone {
/// Uses token == address(0) to represent ETH
/// @return balance Amount of ETH rescued
function rescueFunds(address token) external returns (uint256 balance) {
if (token == address(stETH) || token == address(wstETH)) {
revert Invalid_Address();
}
if (token == address(stETH)) revert Invalid_Address();

if (token == ETH_ADDRESS) {
balance = address(this).balance;
Expand Down

0 comments on commit bf088de

Please sign in to comment.