diff --git a/packages/protocol/contracts/team/proving/ProverSet.sol b/packages/protocol/contracts/team/proving/ProverSet.sol index 7eb1537a22e..cc91dbd5bf2 100644 --- a/packages/protocol/contracts/team/proving/ProverSet.sol +++ b/packages/protocol/contracts/team/proving/ProverSet.sol @@ -7,6 +7,7 @@ import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "../../common/EssentialContract.sol"; import "../../common/LibStrings.sol"; +import "../../libs/LibAddress.sol"; import "../../L1/ITaikoL1.sol"; interface IHasRecipient { @@ -77,6 +78,11 @@ contract ProverSet is EssentialContract, IERC1271 { IERC20(tkoToken()).transfer(admin, _amount); } + /// @notice Withdraws ETH back to the owner address. + function withdrawEtherToAdmin(uint256 _amount) external onlyAuthorized { + LibAddress.sendEtherAndVerify(admin, _amount); + } + /// @notice Propose a Taiko block. function proposeBlock( bytes calldata _params,