ETH Price: $2,436.95 (-0.19%)
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
0x60806040157447142022-10-14 6:59:11753 days ago1665730751IN
 Create: StakeOG
0 ETH0.0092117913.11414089
White List Mint157405532022-10-13 17:01:47753 days ago1665680507IN
0x204664F3...8D05c5a2F
0 ETH0.0006071726.38981539
White List Mint157293822022-10-12 3:35:47755 days ago1665545747IN
0x204664F3...8D05c5a2F
0 ETH0.0004028118.32310954

Advanced mode:
Parent Transaction Hash Block From To
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
StakeOG

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 7 : StakeOG.sol
// 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(uint256 indexed owner, uint256 end, uint256[] tokenIds);
    event UnstakeEvent(uint256 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)
            );
        }
    }

    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);
        }
    }

    function onERC721Received(
        address,
        address,
        uint256,
        bytes calldata
    ) external pure override returns (bytes4) {
        return this.onERC721Received.selector;
    }
}

File 2 of 7 : Ownable.sol
// 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);
    }
}

File 3 of 7 : IERC721.sol
// 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);
}

File 4 of 7 : IERC721Receiver.sol
// 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);
}

File 5 of 7 : ReentrancyGuard.sol
// 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;
    }
}

File 6 of 7 : Context.sol
// 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;
    }
}

File 7 of 7 : IERC165.sol
// 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);
}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "metadata": {
    "useLiteralContent": true
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"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":"uint256","name":"owner","type":"uint256"},{"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":"uint256","name":"owner","type":"uint256"},{"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"}]

608060405234801561001057600080fd5b50604051610b61380380610b6183398101604081905261002f916100b1565b61003833610061565b60018055600280546001600160a01b0319166001600160a01b03929092169190911790556100df565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000602082840312156100c2578081fd5b81516001600160a01b03811681146100d8578182fd5b9392505050565b610a73806100ee6000396000f3fe608060405234801561001057600080fd5b50600436106100885760003560e01c8063d5a44f861161005b578063d5a44f861461010c578063e449f34114610167578063eac002031461017a578063f2fde38b1461018d57600080fd5b8063150b7a021461008d578063715018a6146100ca578063857b767b146100d45780638da5cb5b146100e7575b600080fd5b6100ac61009b3660046108a3565b630a85bd0160e11b95945050505050565b6040516001600160e01b031990911681526020015b60405180910390f35b6100d26101a0565b005b6100d26100e236600461097d565b6101b4565b6000546001600160a01b03165b6040516001600160a01b0390911681526020016100c1565b61014461011a3660046109c7565b60036020526000908152604090208054600182015460029092015490916001600160a01b03169083565b604080519384526001600160a01b039092166020840152908201526060016100c1565b6100d261017536600461093d565b6104a9565b6002546100f4906001600160a01b031681565b6100d261019b366004610864565b6106f7565b6101a8610770565b6101b260006107ca565b565b6002600154141561020c5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064015b60405180910390fd5b6002600181905581106102565760405162461bcd60e51b8152602060048201526012602482015271496e76616c6964207374616b65207479706560701b6044820152606401610203565b816102965760405162461bcd60e51b815260206004820152601060248201526f496e76616c696420746f6b656e49647360801b6044820152606401610203565b60005b8281101561049f5760008484838181106102c357634e487b7160e01b600052603260045260246000fd5b6002546040516331a9108f60e11b8152602092909202939093013560048201819052935033926001600160a01b03169150636352211e9060240160206040518083038186803b15801561031557600080fd5b505afa158015610329573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061034d9190610887565b6001600160a01b0316146103a35760405162461bcd60e51b815260206004820152601b60248201527f5374616b654f473a204e6f74206f776e6572206f6620746f6b656e00000000006044820152606401610203565b600254604051632142170760e11b8152336004820152306024820152604481018390526001600160a01b03909116906342842e0e90606401600060405180830381600087803b1580156103f557600080fd5b505af1158015610409573d6000803e3d6000fd5b5050604080516060810182528481523360208201529250820190508415610433576217bb00610438565b620d2f005b6104479062ffffff16426109df565b905260009182526003602090815260409283902082518155908201516001820180546001600160a01b0319166001600160a01b0390921691909117905591015160029091015580610497816109f7565b915050610299565b5050600180555050565b600260015414156104fc5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610203565b6002600155806105415760405162461bcd60e51b815260206004820152601060248201526f496e76616c696420746f6b656e49647360801b6044820152606401610203565b60005b818110156106ee57600083838381811061056e57634e487b7160e01b600052603260045260246000fd5b905060200201359050426003600083815260200190815260200160002060020154106105dc5760405162461bcd60e51b815260206004820152601860248201527f5374616b654f473a205374616b65206e6f7420656e64656400000000000000006044820152606401610203565b6000818152600360205260409020600101546001600160a01b031633146106455760405162461bcd60e51b815260206004820152601b60248201527f5374616b654f473a204e6f74206f776e6572206f6620746f6b656e00000000006044820152606401610203565b6000818152600360205260408082208281556001810180546001600160a01b031916905560029081019290925590549051632142170760e11b8152306004820152336024820152604481018390526001600160a01b03909116906342842e0e90606401600060405180830381600087803b1580156106c257600080fd5b505af11580156106d6573d6000803e3d6000fd5b505050505080806106e6906109f7565b915050610544565b50506001805550565b6106ff610770565b6001600160a01b0381166107645760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610203565b61076d816107ca565b50565b6000546001600160a01b031633146101b25760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610203565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60008083601f84011261082b578182fd5b50813567ffffffffffffffff811115610842578182fd5b6020830191508360208260051b850101111561085d57600080fd5b9250929050565b600060208284031215610875578081fd5b813561088081610a28565b9392505050565b600060208284031215610898578081fd5b815161088081610a28565b6000806000806000608086880312156108ba578081fd5b85356108c581610a28565b945060208601356108d581610a28565b935060408601359250606086013567ffffffffffffffff808211156108f8578283fd5b818801915088601f83011261090b578283fd5b813581811115610919578384fd5b89602082850101111561092a578384fd5b9699959850939650602001949392505050565b6000806020838503121561094f578182fd5b823567ffffffffffffffff811115610965578283fd5b6109718582860161081a565b90969095509350505050565b600080600060408486031215610991578283fd5b833567ffffffffffffffff8111156109a7578384fd5b6109b38682870161081a565b909790965060209590950135949350505050565b6000602082840312156109d8578081fd5b5035919050565b600082198211156109f2576109f2610a12565b500190565b6000600019821415610a0b57610a0b610a12565b5060010190565b634e487b7160e01b600052601160045260246000fd5b6001600160a01b038116811461076d57600080fdfea2646970667358221220dbc6ecade30b6b6925af86897755dabc5a5db98a7b8ccb329f898f17ee26500f64736f6c634300080400330000000000000000000000001ce12492c036a9bd761b172fa38f2d494cffe01b

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100885760003560e01c8063d5a44f861161005b578063d5a44f861461010c578063e449f34114610167578063eac002031461017a578063f2fde38b1461018d57600080fd5b8063150b7a021461008d578063715018a6146100ca578063857b767b146100d45780638da5cb5b146100e7575b600080fd5b6100ac61009b3660046108a3565b630a85bd0160e11b95945050505050565b6040516001600160e01b031990911681526020015b60405180910390f35b6100d26101a0565b005b6100d26100e236600461097d565b6101b4565b6000546001600160a01b03165b6040516001600160a01b0390911681526020016100c1565b61014461011a3660046109c7565b60036020526000908152604090208054600182015460029092015490916001600160a01b03169083565b604080519384526001600160a01b039092166020840152908201526060016100c1565b6100d261017536600461093d565b6104a9565b6002546100f4906001600160a01b031681565b6100d261019b366004610864565b6106f7565b6101a8610770565b6101b260006107ca565b565b6002600154141561020c5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064015b60405180910390fd5b6002600181905581106102565760405162461bcd60e51b8152602060048201526012602482015271496e76616c6964207374616b65207479706560701b6044820152606401610203565b816102965760405162461bcd60e51b815260206004820152601060248201526f496e76616c696420746f6b656e49647360801b6044820152606401610203565b60005b8281101561049f5760008484838181106102c357634e487b7160e01b600052603260045260246000fd5b6002546040516331a9108f60e11b8152602092909202939093013560048201819052935033926001600160a01b03169150636352211e9060240160206040518083038186803b15801561031557600080fd5b505afa158015610329573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061034d9190610887565b6001600160a01b0316146103a35760405162461bcd60e51b815260206004820152601b60248201527f5374616b654f473a204e6f74206f776e6572206f6620746f6b656e00000000006044820152606401610203565b600254604051632142170760e11b8152336004820152306024820152604481018390526001600160a01b03909116906342842e0e90606401600060405180830381600087803b1580156103f557600080fd5b505af1158015610409573d6000803e3d6000fd5b5050604080516060810182528481523360208201529250820190508415610433576217bb00610438565b620d2f005b6104479062ffffff16426109df565b905260009182526003602090815260409283902082518155908201516001820180546001600160a01b0319166001600160a01b0390921691909117905591015160029091015580610497816109f7565b915050610299565b5050600180555050565b600260015414156104fc5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610203565b6002600155806105415760405162461bcd60e51b815260206004820152601060248201526f496e76616c696420746f6b656e49647360801b6044820152606401610203565b60005b818110156106ee57600083838381811061056e57634e487b7160e01b600052603260045260246000fd5b905060200201359050426003600083815260200190815260200160002060020154106105dc5760405162461bcd60e51b815260206004820152601860248201527f5374616b654f473a205374616b65206e6f7420656e64656400000000000000006044820152606401610203565b6000818152600360205260409020600101546001600160a01b031633146106455760405162461bcd60e51b815260206004820152601b60248201527f5374616b654f473a204e6f74206f776e6572206f6620746f6b656e00000000006044820152606401610203565b6000818152600360205260408082208281556001810180546001600160a01b031916905560029081019290925590549051632142170760e11b8152306004820152336024820152604481018390526001600160a01b03909116906342842e0e90606401600060405180830381600087803b1580156106c257600080fd5b505af11580156106d6573d6000803e3d6000fd5b505050505080806106e6906109f7565b915050610544565b50506001805550565b6106ff610770565b6001600160a01b0381166107645760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610203565b61076d816107ca565b50565b6000546001600160a01b031633146101b25760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610203565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60008083601f84011261082b578182fd5b50813567ffffffffffffffff811115610842578182fd5b6020830191508360208260051b850101111561085d57600080fd5b9250929050565b600060208284031215610875578081fd5b813561088081610a28565b9392505050565b600060208284031215610898578081fd5b815161088081610a28565b6000806000806000608086880312156108ba578081fd5b85356108c581610a28565b945060208601356108d581610a28565b935060408601359250606086013567ffffffffffffffff808211156108f8578283fd5b818801915088601f83011261090b578283fd5b813581811115610919578384fd5b89602082850101111561092a578384fd5b9699959850939650602001949392505050565b6000806020838503121561094f578182fd5b823567ffffffffffffffff811115610965578283fd5b6109718582860161081a565b90969095509350505050565b600080600060408486031215610991578283fd5b833567ffffffffffffffff8111156109a7578384fd5b6109b38682870161081a565b909790965060209590950135949350505050565b6000602082840312156109d8578081fd5b5035919050565b600082198211156109f2576109f2610a12565b500190565b6000600019821415610a0b57610a0b610a12565b5060010190565b634e487b7160e01b600052601160045260246000fd5b6001600160a01b038116811461076d57600080fdfea2646970667358221220dbc6ecade30b6b6925af86897755dabc5a5db98a7b8ccb329f898f17ee26500f64736f6c63430008040033

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


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
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.