More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 239 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Stake | 16033974 | 763 days ago | IN | 0 ETH | 0.0016776 | ||||
Stake | 15994796 | 768 days ago | IN | 0 ETH | 0.00763723 | ||||
Stake | 15989221 | 769 days ago | IN | 0 ETH | 0.00161865 | ||||
Stake | 15988286 | 769 days ago | IN | 0 ETH | 0.00181324 | ||||
Stake | 15978006 | 771 days ago | IN | 0 ETH | 0.01243312 | ||||
Stake | 15971333 | 771 days ago | IN | 0 ETH | 0.00311461 | ||||
Stake | 15969294 | 772 days ago | IN | 0 ETH | 0.00258554 | ||||
Stake | 15956140 | 774 days ago | IN | 0 ETH | 0.00191132 | ||||
Stake | 15956136 | 774 days ago | IN | 0 ETH | 0.00184396 | ||||
Stake | 15953876 | 774 days ago | IN | 0 ETH | 0.00180583 | ||||
Stake | 15917103 | 779 days ago | IN | 0 ETH | 0.0049788 | ||||
Stake | 15911081 | 780 days ago | IN | 0 ETH | 0.00131518 | ||||
Stake | 15911078 | 780 days ago | IN | 0 ETH | 0.00263745 | ||||
Stake | 15907377 | 780 days ago | IN | 0 ETH | 0.00353459 | ||||
Stake | 15904409 | 781 days ago | IN | 0 ETH | 0.00451716 | ||||
Stake | 15898494 | 782 days ago | IN | 0 ETH | 0.00269663 | ||||
Stake | 15896296 | 782 days ago | IN | 0 ETH | 0.00591685 | ||||
Stake | 15887922 | 783 days ago | IN | 0 ETH | 0.00474549 | ||||
Stake | 15886309 | 783 days ago | IN | 0 ETH | 0.00313412 | ||||
Stake | 15886289 | 783 days ago | IN | 0 ETH | 0.0018717 | ||||
Stake | 15880791 | 784 days ago | IN | 0 ETH | 0.00702969 | ||||
Stake | 15880735 | 784 days ago | IN | 0 ETH | 0.02071576 | ||||
Stake | 15879660 | 784 days ago | IN | 0 ETH | 0.00157835 | ||||
Stake | 15878970 | 784 days ago | IN | 0 ETH | 0.00131528 | ||||
Stake | 15876783 | 785 days ago | IN | 0 ETH | 0.00245901 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
StakeOG
Compiler Version
v0.8.4+commit.c7e474f2
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.8.0; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol"; import "@openzeppelin/contracts/token/ERC721/IERC721.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; contract StakeOG is Ownable, IERC721Receiver, ReentrancyGuard { struct StakeStatus { uint256 tokenId; address owner; uint256 end; } IERC721 public ogPass; mapping(uint256 => StakeStatus) public stakes; constructor(address og) { ogPass = IERC721(og); } event StakeEvent(address indexed owner, uint256 end, uint256[] tokenIds); event UnstakeEvent(address indexed owner, uint256[] tokenIds); /** * stakeType 0: 15 days,1 : 30 days */ function stake(uint[] calldata tokenIds, uint stakeType) public nonReentrant { require(stakeType < 2, "Invalid stake type"); require(tokenIds.length > 0, "Invalid tokenIds"); for (uint i = 0; i < tokenIds.length; i++) { uint256 tokenId = tokenIds[i]; require( ogPass.ownerOf(tokenId) == msg.sender, "StakeOG: Not owner of token" ); ogPass.safeTransferFrom(msg.sender, address(this), tokenId); stakes[tokenId] = StakeStatus( tokenId, msg.sender, block.timestamp + (stakeType == 0 ? 10 days : 18 days) ); } emit StakeEvent(msg.sender, block.timestamp + (stakeType == 0 ? 10 days : 18 days), tokenIds); } function unstake(uint256[] calldata tokenIds) public nonReentrant { require(tokenIds.length > 0, "Invalid tokenIds"); for (uint i = 0; i < tokenIds.length; i++) { uint256 tokenId = tokenIds[i]; require( stakes[tokenId].end < block.timestamp, "StakeOG: Stake not ended" ); require( stakes[tokenId].owner == msg.sender, "StakeOG: Not owner of token" ); delete stakes[tokenId]; ogPass.safeTransferFrom(address(this), msg.sender, tokenId); } emit UnstakeEvent(msg.sender, tokenIds); } function onERC721Received( address, address, uint256, bytes calldata ) external pure override returns (bytes4) { return this.onERC721Received.selector; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.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 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); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (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 (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.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: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * 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); }
{ "optimizer": { "enabled": true, "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":[{"internalType":"address","name":"og","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"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":false,"internalType":"uint256","name":"end","type":"uint256"},{"indexed":false,"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"StakeEvent","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"UnstakeEvent","type":"event"},{"inputs":[],"name":"ogPass","outputs":[{"internalType":"contract IERC721","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC721Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"},{"internalType":"uint256","name":"stakeType","type":"uint256"}],"name":"stake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"stakes","outputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"end","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"unstake","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060405234801561001057600080fd5b50604051610c75380380610c7583398101604081905261002f916100b1565b61003833610061565b60018055600280546001600160a01b0319166001600160a01b03929092169190911790556100df565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000602082840312156100c2578081fd5b81516001600160a01b03811681146100d8578182fd5b9392505050565b610b87806100ee6000396000f3fe608060405234801561001057600080fd5b50600436106100885760003560e01c8063d5a44f861161005b578063d5a44f861461010c578063e449f34114610167578063eac002031461017a578063f2fde38b1461018d57600080fd5b8063150b7a021461008d578063715018a6146100ca578063857b767b146100d45780638da5cb5b146100e7575b600080fd5b6100ac61009b366004610944565b630a85bd0160e11b95945050505050565b6040516001600160e01b031990911681526020015b60405180910390f35b6100d26101a0565b005b6100d26100e2366004610a1e565b6101b4565b6000546001600160a01b03165b6040516001600160a01b0390911681526020016100c1565b61014461011a366004610a68565b60036020526000908152604090208054600182015460029092015490916001600160a01b03169083565b604080519384526001600160a01b039092166020840152908201526060016100c1565b6100d26101753660046109de565b610507565b6002546100f4906001600160a01b031681565b6100d261019b366004610905565b610798565b6101a8610811565b6101b2600061086b565b565b6002600154141561020c5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064015b60405180910390fd5b6002600181905581106102565760405162461bcd60e51b8152602060048201526012602482015271496e76616c6964207374616b65207479706560701b6044820152606401610203565b816102965760405162461bcd60e51b815260206004820152601060248201526f496e76616c696420746f6b656e49647360801b6044820152606401610203565b60005b8281101561049f5760008484838181106102c357634e487b7160e01b600052603260045260246000fd5b6002546040516331a9108f60e11b8152602092909202939093013560048201819052935033926001600160a01b03169150636352211e9060240160206040518083038186803b15801561031557600080fd5b505afa158015610329573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061034d9190610928565b6001600160a01b0316146103a35760405162461bcd60e51b815260206004820152601b60248201527f5374616b654f473a204e6f74206f776e6572206f6620746f6b656e00000000006044820152606401610203565b600254604051632142170760e11b8152336004820152306024820152604481018390526001600160a01b03909116906342842e0e90606401600060405180830381600087803b1580156103f557600080fd5b505af1158015610409573d6000803e3d6000fd5b5050604080516060810182528481523360208201529250820190508415610433576217bb00610438565b620d2f005b6104479062ffffff1642610af3565b905260009182526003602090815260409283902082518155908201516001820180546001600160a01b0319166001600160a01b039092169190911790559101516002909101558061049781610b0b565b915050610299565b50337fba58e9c1d2341edab439d719de61fa62a96ca3b4f22e0f76dffa00d7ce3f914282156104d1576217bb006104d6565b620d2f005b6104e59062ffffff1642610af3565b85856040516104f693929190610ad0565b60405180910390a250506001805550565b6002600154141561055a5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610203565b60026001558061059f5760405162461bcd60e51b815260206004820152601060248201526f496e76616c696420746f6b656e49647360801b6044820152606401610203565b60005b8181101561074c5760008383838181106105cc57634e487b7160e01b600052603260045260246000fd5b9050602002013590504260036000838152602001908152602001600020600201541061063a5760405162461bcd60e51b815260206004820152601860248201527f5374616b654f473a205374616b65206e6f7420656e64656400000000000000006044820152606401610203565b6000818152600360205260409020600101546001600160a01b031633146106a35760405162461bcd60e51b815260206004820152601b60248201527f5374616b654f473a204e6f74206f776e6572206f6620746f6b656e00000000006044820152606401610203565b6000818152600360205260408082208281556001810180546001600160a01b031916905560029081019290925590549051632142170760e11b8152306004820152336024820152604481018390526001600160a01b03909116906342842e0e90606401600060405180830381600087803b15801561072057600080fd5b505af1158015610734573d6000803e3d6000fd5b5050505050808061074490610b0b565b9150506105a2565b50336001600160a01b03167f3ee0b004ddf0713768f7c73cf00e254e6cedd62dd83c0facebf8c69f4dd403928383604051610788929190610ab4565b60405180910390a2505060018055565b6107a0610811565b6001600160a01b0381166108055760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610203565b61080e8161086b565b50565b6000546001600160a01b031633146101b25760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610203565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60008083601f8401126108cc578182fd5b50813567ffffffffffffffff8111156108e3578182fd5b6020830191508360208260051b85010111156108fe57600080fd5b9250929050565b600060208284031215610916578081fd5b813561092181610b3c565b9392505050565b600060208284031215610939578081fd5b815161092181610b3c565b60008060008060006080868803121561095b578081fd5b853561096681610b3c565b9450602086013561097681610b3c565b935060408601359250606086013567ffffffffffffffff80821115610999578283fd5b818801915088601f8301126109ac578283fd5b8135818111156109ba578384fd5b8960208285010111156109cb578384fd5b9699959850939650602001949392505050565b600080602083850312156109f0578182fd5b823567ffffffffffffffff811115610a06578283fd5b610a12858286016108bb565b90969095509350505050565b600080600060408486031215610a32578283fd5b833567ffffffffffffffff811115610a48578384fd5b610a54868287016108bb565b909790965060209590950135949350505050565b600060208284031215610a79578081fd5b5035919050565b81835260006001600160fb1b03831115610a98578081fd5b8260051b80836020870137939093016020019283525090919050565b602081526000610ac8602083018486610a80565b949350505050565b838152604060208201526000610aea604083018486610a80565b95945050505050565b60008219821115610b0657610b06610b26565b500190565b6000600019821415610b1f57610b1f610b26565b5060010190565b634e487b7160e01b600052601160045260246000fd5b6001600160a01b038116811461080e57600080fdfea264697066735822122096c513b9c8b9a8c202cd40146072f8e83f5b6527239d38468615823447b1fac164736f6c634300080400330000000000000000000000001ce12492c036a9bd761b172fa38f2d494cffe01b
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100885760003560e01c8063d5a44f861161005b578063d5a44f861461010c578063e449f34114610167578063eac002031461017a578063f2fde38b1461018d57600080fd5b8063150b7a021461008d578063715018a6146100ca578063857b767b146100d45780638da5cb5b146100e7575b600080fd5b6100ac61009b366004610944565b630a85bd0160e11b95945050505050565b6040516001600160e01b031990911681526020015b60405180910390f35b6100d26101a0565b005b6100d26100e2366004610a1e565b6101b4565b6000546001600160a01b03165b6040516001600160a01b0390911681526020016100c1565b61014461011a366004610a68565b60036020526000908152604090208054600182015460029092015490916001600160a01b03169083565b604080519384526001600160a01b039092166020840152908201526060016100c1565b6100d26101753660046109de565b610507565b6002546100f4906001600160a01b031681565b6100d261019b366004610905565b610798565b6101a8610811565b6101b2600061086b565b565b6002600154141561020c5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064015b60405180910390fd5b6002600181905581106102565760405162461bcd60e51b8152602060048201526012602482015271496e76616c6964207374616b65207479706560701b6044820152606401610203565b816102965760405162461bcd60e51b815260206004820152601060248201526f496e76616c696420746f6b656e49647360801b6044820152606401610203565b60005b8281101561049f5760008484838181106102c357634e487b7160e01b600052603260045260246000fd5b6002546040516331a9108f60e11b8152602092909202939093013560048201819052935033926001600160a01b03169150636352211e9060240160206040518083038186803b15801561031557600080fd5b505afa158015610329573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061034d9190610928565b6001600160a01b0316146103a35760405162461bcd60e51b815260206004820152601b60248201527f5374616b654f473a204e6f74206f776e6572206f6620746f6b656e00000000006044820152606401610203565b600254604051632142170760e11b8152336004820152306024820152604481018390526001600160a01b03909116906342842e0e90606401600060405180830381600087803b1580156103f557600080fd5b505af1158015610409573d6000803e3d6000fd5b5050604080516060810182528481523360208201529250820190508415610433576217bb00610438565b620d2f005b6104479062ffffff1642610af3565b905260009182526003602090815260409283902082518155908201516001820180546001600160a01b0319166001600160a01b039092169190911790559101516002909101558061049781610b0b565b915050610299565b50337fba58e9c1d2341edab439d719de61fa62a96ca3b4f22e0f76dffa00d7ce3f914282156104d1576217bb006104d6565b620d2f005b6104e59062ffffff1642610af3565b85856040516104f693929190610ad0565b60405180910390a250506001805550565b6002600154141561055a5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610203565b60026001558061059f5760405162461bcd60e51b815260206004820152601060248201526f496e76616c696420746f6b656e49647360801b6044820152606401610203565b60005b8181101561074c5760008383838181106105cc57634e487b7160e01b600052603260045260246000fd5b9050602002013590504260036000838152602001908152602001600020600201541061063a5760405162461bcd60e51b815260206004820152601860248201527f5374616b654f473a205374616b65206e6f7420656e64656400000000000000006044820152606401610203565b6000818152600360205260409020600101546001600160a01b031633146106a35760405162461bcd60e51b815260206004820152601b60248201527f5374616b654f473a204e6f74206f776e6572206f6620746f6b656e00000000006044820152606401610203565b6000818152600360205260408082208281556001810180546001600160a01b031916905560029081019290925590549051632142170760e11b8152306004820152336024820152604481018390526001600160a01b03909116906342842e0e90606401600060405180830381600087803b15801561072057600080fd5b505af1158015610734573d6000803e3d6000fd5b5050505050808061074490610b0b565b9150506105a2565b50336001600160a01b03167f3ee0b004ddf0713768f7c73cf00e254e6cedd62dd83c0facebf8c69f4dd403928383604051610788929190610ab4565b60405180910390a2505060018055565b6107a0610811565b6001600160a01b0381166108055760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610203565b61080e8161086b565b50565b6000546001600160a01b031633146101b25760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610203565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60008083601f8401126108cc578182fd5b50813567ffffffffffffffff8111156108e3578182fd5b6020830191508360208260051b85010111156108fe57600080fd5b9250929050565b600060208284031215610916578081fd5b813561092181610b3c565b9392505050565b600060208284031215610939578081fd5b815161092181610b3c565b60008060008060006080868803121561095b578081fd5b853561096681610b3c565b9450602086013561097681610b3c565b935060408601359250606086013567ffffffffffffffff80821115610999578283fd5b818801915088601f8301126109ac578283fd5b8135818111156109ba578384fd5b8960208285010111156109cb578384fd5b9699959850939650602001949392505050565b600080602083850312156109f0578182fd5b823567ffffffffffffffff811115610a06578283fd5b610a12858286016108bb565b90969095509350505050565b600080600060408486031215610a32578283fd5b833567ffffffffffffffff811115610a48578384fd5b610a54868287016108bb565b909790965060209590950135949350505050565b600060208284031215610a79578081fd5b5035919050565b81835260006001600160fb1b03831115610a98578081fd5b8260051b80836020870137939093016020019283525090919050565b602081526000610ac8602083018486610a80565b949350505050565b838152604060208201526000610aea604083018486610a80565b95945050505050565b60008219821115610b0657610b06610b26565b500190565b6000600019821415610b1f57610b1f610b26565b5060010190565b634e487b7160e01b600052601160045260246000fd5b6001600160a01b038116811461080e57600080fdfea264697066735822122096c513b9c8b9a8c202cd40146072f8e83f5b6527239d38468615823447b1fac164736f6c63430008040033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000001ce12492c036a9bd761b172fa38f2d494cffe01b
-----Decoded View---------------
Arg [0] : og (address): 0x1ce12492C036A9Bd761B172Fa38f2D494Cffe01b
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000001ce12492c036a9bd761b172fa38f2d494cffe01b
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ 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.