Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 999 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Withdraw | 15705179 | 811 days ago | IN | 0 ETH | 0.00228938 | ||||
Burn | 15704503 | 812 days ago | IN | 0 ETH | 0.0005974 | ||||
Burn | 15703750 | 812 days ago | IN | 0 ETH | 0.00035842 | ||||
Burn | 15703742 | 812 days ago | IN | 0 ETH | 0.00037767 | ||||
Burn | 15703605 | 812 days ago | IN | 0 ETH | 0.00028894 | ||||
Burn | 15703418 | 812 days ago | IN | 0 ETH | 0.00080412 | ||||
Burn | 15702155 | 812 days ago | IN | 0 ETH | 0.00037424 | ||||
Burn | 15700319 | 812 days ago | IN | 0 ETH | 0.0007505 | ||||
Burn | 15699663 | 812 days ago | IN | 0 ETH | 0.00030783 | ||||
Burn | 15699662 | 812 days ago | IN | 0 ETH | 0.0003584 | ||||
Burn | 15699162 | 812 days ago | IN | 0 ETH | 0.00053094 | ||||
Burn | 15698809 | 812 days ago | IN | 0 ETH | 0.00048142 | ||||
Burn | 15697868 | 812 days ago | IN | 0 ETH | 0.00040079 | ||||
Burn | 15697868 | 812 days ago | IN | 0 ETH | 0.00071382 | ||||
Burn | 15696855 | 813 days ago | IN | 0 ETH | 0.00123916 | ||||
Burn | 15696777 | 813 days ago | IN | 0 ETH | 0.00058471 | ||||
Burn | 15696574 | 813 days ago | IN | 0 ETH | 0.00066904 | ||||
Burn | 15695856 | 813 days ago | IN | 0 ETH | 0.00036035 | ||||
Burn | 15695717 | 813 days ago | IN | 0 ETH | 0.00061925 | ||||
Burn | 15695696 | 813 days ago | IN | 0 ETH | 0.00029234 | ||||
Burn | 15695683 | 813 days ago | IN | 0 ETH | 0.00088798 | ||||
Burn | 15695571 | 813 days ago | IN | 0 ETH | 0.00035345 | ||||
Burn | 15695545 | 813 days ago | IN | 0 ETH | 0.00037181 | ||||
Burn | 15695175 | 813 days ago | IN | 0 ETH | 0.00044644 | ||||
Transfer | 15694611 | 813 days ago | IN | 5 ETH | 0.00012484 |
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block |
From
|
To
|
|||
---|---|---|---|---|---|---|
15705179 | 811 days ago | 9.1520433 ETH | ||||
15704503 | 812 days ago | 0.05 ETH | ||||
15703750 | 812 days ago | 0.05 ETH | ||||
15703742 | 812 days ago | 0.05 ETH | ||||
15703605 | 812 days ago | 0.05 ETH | ||||
15703418 | 812 days ago | 0.2 ETH | ||||
15702155 | 812 days ago | 0.1 ETH | ||||
15700319 | 812 days ago | 0.1 ETH | ||||
15699663 | 812 days ago | 0.05 ETH | ||||
15699662 | 812 days ago | 0.1 ETH | ||||
15699162 | 812 days ago | 0.05 ETH | ||||
15698809 | 812 days ago | 0.05 ETH | ||||
15697868 | 812 days ago | 0.05 ETH | ||||
15696855 | 813 days ago | 0.2 ETH | ||||
15696777 | 813 days ago | 0.05 ETH | ||||
15696574 | 813 days ago | 0.05 ETH | ||||
15695856 | 813 days ago | 0.05 ETH | ||||
15695717 | 813 days ago | 0.2 ETH | ||||
15695696 | 813 days ago | 0.05 ETH | ||||
15695683 | 813 days ago | 0.3 ETH | ||||
15695571 | 813 days ago | 0.05 ETH | ||||
15695545 | 813 days ago | 0.05 ETH | ||||
15695175 | 813 days ago | 0.1 ETH | ||||
15694385 | 813 days ago | 0.05 ETH | ||||
15694194 | 813 days ago | 0.05 ETH |
Loading...
Loading
Contract Name:
RoboBurn
Compiler Version
v0.8.10+commit.fc410830
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity >=0.4.22 <0.9.0; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; interface IRobo { function burn(uint256 tokenId) external; function ownerOf(uint256 tokenId) external view returns (address); } interface IRoboBurn { function burn(uint256[] memory tokenIds) external; } contract RoboBurn is IRoboBurn, Ownable, ReentrancyGuard { address public immutable robo; uint256 public immutable price; uint256 public immutable endTime; constructor(address robo_) { robo = robo_; price = 0.05 ether; endTime = block.timestamp + 15 days; } function burn(uint256[] memory tokenIds) external override nonReentrant { uint256 total = 0; for (uint256 i = 0; i < tokenIds.length; i++) { for (uint256 j = i + 1; j < tokenIds.length; j++) { require(tokenIds[i] != tokenIds[j], "Duplicate tokenId"); } require( IRobo(robo).ownerOf(tokenIds[i]) == _msgSender(), "Caller is not owner" ); IRobo(robo).burn(tokenIds[i]); total = total + price; } _widthdraw(_msgSender(), total); } function withdraw() external onlyOwner nonReentrant { require(block.timestamp >= endTime, "Too early"); _widthdraw(_msgSender(), address(this).balance); } function _widthdraw(address recipient, uint256 amount) private { (bool success, ) = recipient.call{value: amount}(""); require(success, "ETH_TRANSFER_FAILED"); } receive() external payable {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (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.0 (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.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 Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing 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); } }
{ "remappings": [], "optimizer": { "enabled": true, "runs": 200 }, "evmVersion": "london", "libraries": {}, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"robo_","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"endTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"robo","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
60e060405234801561001057600080fd5b50604051610acd380380610acd83398101604081905261002f916100ba565b6100383361006a565b600180556001600160a01b03811660805266b1a2bc2ec5000060a052610061426213c6806100ea565b60c05250610110565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000602082840312156100cc57600080fd5b81516001600160a01b03811681146100e357600080fd5b9392505050565b6000821982111561010b57634e487b7160e01b600052601160045260246000fd5b500190565b60805160a05160c05161097361015a60003960008181609d015261026501526000818161017601526105a501526000818161014201528181610418015261050c01526109736000f3fe60806040526004361061007f5760003560e01c80638e6d6ba71161004e5780638e6d6ba714610130578063a035b1fe14610164578063b80f55c914610198578063f2fde38b146101b857600080fd5b80633197cbb61461008b5780633ccfd60b146100d2578063715018a6146100e95780638da5cb5b146100fe57600080fd5b3661008657005b600080fd5b34801561009757600080fd5b506100bf7f000000000000000000000000000000000000000000000000000000000000000081565b6040519081526020015b60405180910390f35b3480156100de57600080fd5b506100e76101d8565b005b3480156100f557600080fd5b506100e76102cf565b34801561010a57600080fd5b506000546001600160a01b03165b6040516001600160a01b0390911681526020016100c9565b34801561013c57600080fd5b506101187f000000000000000000000000000000000000000000000000000000000000000081565b34801561017057600080fd5b506100bf7f000000000000000000000000000000000000000000000000000000000000000081565b3480156101a457600080fd5b506100e76101b3366004610795565b610305565b3480156101c457600080fd5b506100e76101d3366004610868565b6105f6565b6000546001600160a01b0316331461020b5760405162461bcd60e51b81526004016102029061088c565b60405180910390fd5b6002600154141561025e5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610202565b60026001557f00000000000000000000000000000000000000000000000000000000000000004210156102bf5760405162461bcd60e51b8152602060048201526009602482015268546f6f206561726c7960b81b6044820152606401610202565b6102c93347610691565b60018055565b6000546001600160a01b031633146102f95760405162461bcd60e51b81526004016102029061088c565b610303600061072f565b565b600260015414156103585760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610202565b60026001556000805b82518110156105e35760006103778260016108d7565b90505b835181101561040b57838181518110610395576103956108ef565b60200260200101518483815181106103af576103af6108ef565b602002602001015114156103f95760405162461bcd60e51b8152602060048201526011602482015270111d5c1b1a58d85d19481d1bdad95b9259607a1b6044820152606401610202565b8061040381610905565b91505061037a565b50336001600160a01b03167f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316636352211e858481518110610457576104576108ef565b60200260200101516040518263ffffffff1660e01b815260040161047d91815260200190565b602060405180830381865afa15801561049a573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104be9190610920565b6001600160a01b03161461050a5760405162461bcd60e51b815260206004820152601360248201527221b0b63632b91034b9903737ba1037bbb732b960691b6044820152606401610202565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166342966c6884838151811061054b5761054b6108ef565b60200260200101516040518263ffffffff1660e01b815260040161057191815260200190565b600060405180830381600087803b15801561058b57600080fd5b505af115801561059f573d6000803e3d6000fd5b505050507f0000000000000000000000000000000000000000000000000000000000000000826105cf91906108d7565b9150806105db81610905565b915050610361565b506105ee3382610691565b505060018055565b6000546001600160a01b031633146106205760405162461bcd60e51b81526004016102029061088c565b6001600160a01b0381166106855760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610202565b61068e8161072f565b50565b6000826001600160a01b03168260405160006040518083038185875af1925050503d80600081146106de576040519150601f19603f3d011682016040523d82523d6000602084013e6106e3565b606091505b505090508061072a5760405162461bcd60e51b815260206004820152601360248201527211551217d514905394d1915497d19052531151606a1b6044820152606401610202565b505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b634e487b7160e01b600052604160045260246000fd5b600060208083850312156107a857600080fd5b823567ffffffffffffffff808211156107c057600080fd5b818501915085601f8301126107d457600080fd5b8135818111156107e6576107e661077f565b8060051b604051601f19603f8301168101818110858211171561080b5761080b61077f565b60405291825284820192508381018501918883111561082957600080fd5b938501935b828510156108475784358452938501939285019261082e565b98975050505050505050565b6001600160a01b038116811461068e57600080fd5b60006020828403121561087a57600080fd5b813561088581610853565b9392505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052601160045260246000fd5b600082198211156108ea576108ea6108c1565b500190565b634e487b7160e01b600052603260045260246000fd5b6000600019821415610919576109196108c1565b5060010190565b60006020828403121561093257600080fd5b81516108858161085356fea26469706673582212207818aaaed71ee512185a7995c23a246895035773f4211b3435dc68b4f056466364736f6c634300080a00330000000000000000000000004ceb477a068350bc652cabff127f87ad874b11f9
Deployed Bytecode
0x60806040526004361061007f5760003560e01c80638e6d6ba71161004e5780638e6d6ba714610130578063a035b1fe14610164578063b80f55c914610198578063f2fde38b146101b857600080fd5b80633197cbb61461008b5780633ccfd60b146100d2578063715018a6146100e95780638da5cb5b146100fe57600080fd5b3661008657005b600080fd5b34801561009757600080fd5b506100bf7f00000000000000000000000000000000000000000000000000000000633ef9b781565b6040519081526020015b60405180910390f35b3480156100de57600080fd5b506100e76101d8565b005b3480156100f557600080fd5b506100e76102cf565b34801561010a57600080fd5b506000546001600160a01b03165b6040516001600160a01b0390911681526020016100c9565b34801561013c57600080fd5b506101187f0000000000000000000000004ceb477a068350bc652cabff127f87ad874b11f981565b34801561017057600080fd5b506100bf7f00000000000000000000000000000000000000000000000000b1a2bc2ec5000081565b3480156101a457600080fd5b506100e76101b3366004610795565b610305565b3480156101c457600080fd5b506100e76101d3366004610868565b6105f6565b6000546001600160a01b0316331461020b5760405162461bcd60e51b81526004016102029061088c565b60405180910390fd5b6002600154141561025e5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610202565b60026001557f00000000000000000000000000000000000000000000000000000000633ef9b74210156102bf5760405162461bcd60e51b8152602060048201526009602482015268546f6f206561726c7960b81b6044820152606401610202565b6102c93347610691565b60018055565b6000546001600160a01b031633146102f95760405162461bcd60e51b81526004016102029061088c565b610303600061072f565b565b600260015414156103585760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610202565b60026001556000805b82518110156105e35760006103778260016108d7565b90505b835181101561040b57838181518110610395576103956108ef565b60200260200101518483815181106103af576103af6108ef565b602002602001015114156103f95760405162461bcd60e51b8152602060048201526011602482015270111d5c1b1a58d85d19481d1bdad95b9259607a1b6044820152606401610202565b8061040381610905565b91505061037a565b50336001600160a01b03167f0000000000000000000000004ceb477a068350bc652cabff127f87ad874b11f96001600160a01b0316636352211e858481518110610457576104576108ef565b60200260200101516040518263ffffffff1660e01b815260040161047d91815260200190565b602060405180830381865afa15801561049a573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104be9190610920565b6001600160a01b03161461050a5760405162461bcd60e51b815260206004820152601360248201527221b0b63632b91034b9903737ba1037bbb732b960691b6044820152606401610202565b7f0000000000000000000000004ceb477a068350bc652cabff127f87ad874b11f96001600160a01b03166342966c6884838151811061054b5761054b6108ef565b60200260200101516040518263ffffffff1660e01b815260040161057191815260200190565b600060405180830381600087803b15801561058b57600080fd5b505af115801561059f573d6000803e3d6000fd5b505050507f00000000000000000000000000000000000000000000000000b1a2bc2ec50000826105cf91906108d7565b9150806105db81610905565b915050610361565b506105ee3382610691565b505060018055565b6000546001600160a01b031633146106205760405162461bcd60e51b81526004016102029061088c565b6001600160a01b0381166106855760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610202565b61068e8161072f565b50565b6000826001600160a01b03168260405160006040518083038185875af1925050503d80600081146106de576040519150601f19603f3d011682016040523d82523d6000602084013e6106e3565b606091505b505090508061072a5760405162461bcd60e51b815260206004820152601360248201527211551217d514905394d1915497d19052531151606a1b6044820152606401610202565b505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b634e487b7160e01b600052604160045260246000fd5b600060208083850312156107a857600080fd5b823567ffffffffffffffff808211156107c057600080fd5b818501915085601f8301126107d457600080fd5b8135818111156107e6576107e661077f565b8060051b604051601f19603f8301168101818110858211171561080b5761080b61077f565b60405291825284820192508381018501918883111561082957600080fd5b938501935b828510156108475784358452938501939285019261082e565b98975050505050505050565b6001600160a01b038116811461068e57600080fd5b60006020828403121561087a57600080fd5b813561088581610853565b9392505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052601160045260246000fd5b600082198211156108ea576108ea6108c1565b500190565b634e487b7160e01b600052603260045260246000fd5b6000600019821415610919576109196108c1565b5060010190565b60006020828403121561093257600080fd5b81516108858161085356fea26469706673582212207818aaaed71ee512185a7995c23a246895035773f4211b3435dc68b4f056466364736f6c634300080a0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000004ceb477a068350bc652cabff127f87ad874b11f9
-----Decoded View---------------
Arg [0] : robo_ (address): 0x4CEB477A068350BC652caBFf127f87AD874B11F9
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000004ceb477a068350bc652cabff127f87ad874b11f9
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
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.