Description:
Smart contract deployed on Ethereum.
Blockchain: Ethereum
Source Code: View Code On The Blockchain
Solidity Source Code:
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.30;
contract ArkTreasury {
address public owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
modifier onlyOwner(){ require(msg.sender == owner, "not owner"); _; }
constructor(address owner_){ owner = owner_; emit OwnershipTransferred(address(0), owner_); }
receive() external payable {}
function transferOwnership(address newOwner) external onlyOwner {
require(newOwner != address(0), "zero");
emit OwnershipTransferred(owner, newOwner);
owner = newOwner;
}
function sweep(address payable to) external onlyOwner {
to.transfer(address(this).balance);
}
}
Submitted on: 2025-09-30 10:24:29
Comments
Log in to comment.
No comments yet.