Feature Tip: Add private address tag to any address under My Name Tag !
Overview
ETH Balance
0.002991344504253367 ETH
Eth Value
$9.31 (@ $3,113.22/ETH)More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 1,426 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Pay Commission | 21208788 | 17 hrs ago | IN | 0.00299134 ETH | 0.00033643 | ||||
Withdraw | 21201640 | 41 hrs ago | IN | 0 ETH | 0.00044007 | ||||
Pay Commission | 21201418 | 42 hrs ago | IN | 0.00158723 ETH | 0.00041406 | ||||
Pay Commission | 21195078 | 2 days ago | IN | 0.00148865 ETH | 0.00044032 | ||||
Pay Commission | 21189091 | 3 days ago | IN | 0.00145986 ETH | 0.00066475 | ||||
Pay Commission | 21187833 | 3 days ago | IN | 0.00263489 ETH | 0.00066297 | ||||
Pay Commission | 21174782 | 5 days ago | IN | 0.00137446 ETH | 0.00063144 | ||||
Pay Commission | 21157955 | 7 days ago | IN | 0.00165212 ETH | 0.00078046 | ||||
Pay Commission | 21155923 | 8 days ago | IN | 0.00141135 ETH | 0.00026014 | ||||
Pay Commission | 21155918 | 8 days ago | IN | 0.00141135 ETH | 0.00027119 | ||||
Pay Commission | 21151597 | 8 days ago | IN | 0.00157523 ETH | 0.00026624 | ||||
Pay Commission | 21148482 | 9 days ago | IN | 0.00148081 ETH | 0.00029904 | ||||
Pay Commission | 21143255 | 9 days ago | IN | 0.00153599 ETH | 0.00042714 | ||||
Pay Commission | 21136307 | 10 days ago | IN | 0.00160196 ETH | 0.00031774 | ||||
Pay Commission | 21134818 | 11 days ago | IN | 0.0015917 ETH | 0.0006392 | ||||
Pay Commission | 21124491 | 12 days ago | IN | 0.00195867 ETH | 0.00018839 | ||||
Pay Commission | 21120748 | 13 days ago | IN | 0.00184984 ETH | 0.00014059 | ||||
Pay Commission | 21107541 | 14 days ago | IN | 0 ETH | 0.00028128 | ||||
Pay Commission | 21107533 | 14 days ago | IN | 0 ETH | 0.00028377 | ||||
Pay Commission | 21107529 | 14 days ago | IN | 0 ETH | 0.00024384 | ||||
Pay Commission | 21107496 | 14 days ago | IN | 0.00184062 ETH | 0.00023923 | ||||
Pay Commission | 21107484 | 14 days ago | IN | 0.00184062 ETH | 0.00024437 | ||||
Pay Commission | 21102531 | 15 days ago | IN | 0.00180577 ETH | 0.00011804 | ||||
Pay Commission | 21097584 | 16 days ago | IN | 0.00179689 ETH | 0.00008894 | ||||
Pay Commission | 21055365 | 22 days ago | IN | 0 ETH | 0.00010754 |
Loading...
Loading
Contract Name:
KongsStakingCommissions
Compiler Version
v0.8.19+commit.7dd6d404
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.19; import "./IKongsStakingCommissions.sol"; import "@openzeppelin/contracts/token/ERC721/IERC721.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; /** * @title Kongs Staking Comissions v1.0 * @author DeployLabs.io * * @notice This contract is used for collecting commissions for staking Alpha and Omega Kong NFTs. */ contract KongsStakingCommissions is IKongsStakingCommissions, Ownable { function payCommission(uint256 uuid) external payable { emit CommissionPaid(uuid, msg.sender, msg.value); } function withdraw(address payable to) external onlyOwner { uint256 balance = address(this).balance; if (balance == 0) revert KongsStaking__NothingToWithdraw(); if (to == address(0)) revert KongsStaking__ZeroAddressProhibited(); to.transfer(balance); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby disabling any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom(address from, address to, uint256 tokenId, bytes calldata data) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom(address from, address to, uint256 tokenId) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721 * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must * understand this adds an external call which potentially creates a reentrancy vulnerability. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom(address from, address to, uint256 tokenId) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.19; /** * @title Kongs Staking Commissions Interface v1.0 * @author DeployLabs.io * * @notice This in an interface for the Kongs Staking Comission contract. */ interface IKongsStakingCommissions { event CommissionPaid(uint256 indexed uuid, address indexed payer, uint256 amount); error KongsStaking__NothingToWithdraw(); error KongsStaking__ZeroAddressProhibited(); /** * @notice Pay the commission for staking a Kong. * @param uuid The UUID of the payment. */ function payCommission(uint256 uuid) external payable; /** * @notice Withdraw the contract balance. * @param to The address to withdraw to. */ function withdraw(address payable to) external; }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "metadata": { "useLiteralContent": true }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"name":"KongsStaking__NothingToWithdraw","type":"error"},{"inputs":[],"name":"KongsStaking__ZeroAddressProhibited","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"uuid","type":"uint256"},{"indexed":true,"internalType":"address","name":"payer","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"CommissionPaid","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"uuid","type":"uint256"}],"name":"payCommission","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"to","type":"address"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060405234801561001057600080fd5b5061002d61002261003260201b60201c565b61003a60201b60201c565b6100fe565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b61074a8061010d6000396000f3fe60806040526004361061004a5760003560e01c8063466a78dd1461004f57806351cff8d91461006b578063715018a6146100945780638da5cb5b146100ab578063f2fde38b146100d6575b600080fd5b6100696004803603810190610064919061048e565b6100ff565b005b34801561007757600080fd5b50610092600480360381019061008d9190610519565b610151565b005b3480156100a057600080fd5b506100a9610249565b005b3480156100b757600080fd5b506100c061025d565b6040516100cd9190610567565b60405180910390f35b3480156100e257600080fd5b506100fd60048036038101906100f891906105ae565b610286565b005b3373ffffffffffffffffffffffffffffffffffffffff16817fec530ab710fdaa2b5968fe15f486992441a96f643219cf0150904aa5b9eedf823460405161014691906105ea565b60405180910390a350565b610159610309565b600047905060008103610198576040517f51a6186300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036101fe576040517f295aaca500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8173ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050158015610244573d6000803e3d6000fd5b505050565b610251610309565b61025b6000610387565b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b61028e610309565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036102fd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016102f490610688565b60405180910390fd5b61030681610387565b50565b61031161044b565b73ffffffffffffffffffffffffffffffffffffffff1661032f61025d565b73ffffffffffffffffffffffffffffffffffffffff1614610385576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161037c906106f4565b60405180910390fd5b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600033905090565b600080fd5b6000819050919050565b61046b81610458565b811461047657600080fd5b50565b60008135905061048881610462565b92915050565b6000602082840312156104a4576104a3610453565b5b60006104b284828501610479565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006104e6826104bb565b9050919050565b6104f6816104db565b811461050157600080fd5b50565b600081359050610513816104ed565b92915050565b60006020828403121561052f5761052e610453565b5b600061053d84828501610504565b91505092915050565b6000610551826104bb565b9050919050565b61056181610546565b82525050565b600060208201905061057c6000830184610558565b92915050565b61058b81610546565b811461059657600080fd5b50565b6000813590506105a881610582565b92915050565b6000602082840312156105c4576105c3610453565b5b60006105d284828501610599565b91505092915050565b6105e481610458565b82525050565b60006020820190506105ff60008301846105db565b92915050565b600082825260208201905092915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000610672602683610605565b915061067d82610616565b604082019050919050565b600060208201905081810360008301526106a181610665565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006106de602083610605565b91506106e9826106a8565b602082019050919050565b6000602082019050818103600083015261070d816106d1565b905091905056fea2646970667358221220218237b0ea9e5ac9264da56c3c60bc7a341bca7d17e887e1e21150d75b94922364736f6c63430008130033
Deployed Bytecode
0x60806040526004361061004a5760003560e01c8063466a78dd1461004f57806351cff8d91461006b578063715018a6146100945780638da5cb5b146100ab578063f2fde38b146100d6575b600080fd5b6100696004803603810190610064919061048e565b6100ff565b005b34801561007757600080fd5b50610092600480360381019061008d9190610519565b610151565b005b3480156100a057600080fd5b506100a9610249565b005b3480156100b757600080fd5b506100c061025d565b6040516100cd9190610567565b60405180910390f35b3480156100e257600080fd5b506100fd60048036038101906100f891906105ae565b610286565b005b3373ffffffffffffffffffffffffffffffffffffffff16817fec530ab710fdaa2b5968fe15f486992441a96f643219cf0150904aa5b9eedf823460405161014691906105ea565b60405180910390a350565b610159610309565b600047905060008103610198576040517f51a6186300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036101fe576040517f295aaca500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8173ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050158015610244573d6000803e3d6000fd5b505050565b610251610309565b61025b6000610387565b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b61028e610309565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036102fd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016102f490610688565b60405180910390fd5b61030681610387565b50565b61031161044b565b73ffffffffffffffffffffffffffffffffffffffff1661032f61025d565b73ffffffffffffffffffffffffffffffffffffffff1614610385576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161037c906106f4565b60405180910390fd5b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600033905090565b600080fd5b6000819050919050565b61046b81610458565b811461047657600080fd5b50565b60008135905061048881610462565b92915050565b6000602082840312156104a4576104a3610453565b5b60006104b284828501610479565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006104e6826104bb565b9050919050565b6104f6816104db565b811461050157600080fd5b50565b600081359050610513816104ed565b92915050565b60006020828403121561052f5761052e610453565b5b600061053d84828501610504565b91505092915050565b6000610551826104bb565b9050919050565b61056181610546565b82525050565b600060208201905061057c6000830184610558565b92915050565b61058b81610546565b811461059657600080fd5b50565b6000813590506105a881610582565b92915050565b6000602082840312156105c4576105c3610453565b5b60006105d284828501610599565b91505092915050565b6105e481610458565b82525050565b60006020820190506105ff60008301846105db565b92915050565b600082825260208201905092915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000610672602683610605565b915061067d82610616565b604082019050919050565b600060208201905081810360008301526106a181610665565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006106de602083610605565b91506106e9826106a8565b602082019050919050565b6000602082019050818103600083015261070d816106d1565b905091905056fea2646970667358221220218237b0ea9e5ac9264da56c3c60bc7a341bca7d17e887e1e21150d75b94922364736f6c63430008130033
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.