Skip to content

Commit

Permalink
feat(protocol): add withdraw eth function to proverset (#17800)
Browse files Browse the repository at this point in the history
Co-authored-by: Daniel Wang <[email protected]>
  • Loading branch information
RogerLamTd and dantaik authored Jul 16, 2024
1 parent b70cc57 commit bb2abc5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/protocol/contracts/team/proving/ProverSet.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit bb2abc5

Please sign in to comment.