ETH Price: $2,311.54 (+0.19%)

Contract

0xA558B62E92c42DF15aE161fddcc1d12C3049E5c3
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Unstake197869212024-05-03 3:31:23138 days ago1714707083IN
0xA558B62E...C3049E5c3
0 ETH0.000427515.69656444
Unstake196026122024-04-07 8:25:11164 days ago1712478311IN
0xA558B62E...C3049E5c3
0 ETH0.0008020113.3404848
Unstake191063332024-01-28 16:50:35233 days ago1706460635IN
0xA558B62E...C3049E5c3
0 ETH0.0007130111.86008956
Unstake190559012024-01-21 14:41:47240 days ago1705848107IN
0xA558B62E...C3049E5c3
0 ETH0.0010552114.06049011
Unstake190245312024-01-17 5:30:47245 days ago1705469447IN
0xA558B62E...C3049E5c3
0 ETH0.0021645528.8422839
Unstake190095862024-01-15 3:25:35247 days ago1705289135IN
0xA558B62E...C3049E5c3
0 ETH0.001179819.62448074
Unstake189680252024-01-09 7:48:59253 days ago1704786539IN
0xA558B62E...C3049E5c3
0 ETH0.0009919213.21716588
Unstake175826332023-06-29 4:38:47447 days ago1688013527IN
0xA558B62E...C3049E5c3
0 ETH0.0009913316.48959177
Unstake172089502023-05-07 13:26:11500 days ago1683465971IN
0xA558B62E...C3049E5c3
0 ETH0.0067697190.20514834
Unstake171151822023-04-24 9:13:23513 days ago1682327603IN
0xA558B62E...C3049E5c3
0 ETH0.0029780839.68243669
Unstake170800512023-04-19 10:26:59518 days ago1681900019IN
0xA558B62E...C3049E5c3
0 ETH0.0046416261.84870331
Stake170736132023-04-18 12:37:59519 days ago1681821479IN
0xA558B62E...C3049E5c3
0 ETH0.00542644.44124661
Stake170657842023-04-17 10:03:35520 days ago1681725815IN
0xA558B62E...C3049E5c3
0 ETH0.0036721628.94161126
Unstake170094672023-04-09 8:08:11528 days ago1681027691IN
0xA558B62E...C3049E5c3
0 ETH0.0015592820.77720722
Stake169234372023-03-28 4:21:59540 days ago1679977319IN
0xA558B62E...C3049E5c3
0 ETH0.0026452920.84842794
Unstake168892482023-03-23 9:07:11545 days ago1679562431IN
0xA558B62E...C3049E5c3
0 ETH0.0007737912.87100585
Unstake168107822023-03-12 8:33:47556 days ago1678610027IN
0xA558B62E...C3049E5c3
0 ETH0.00163321.75944331
Unstake168097812023-03-12 5:10:23556 days ago1678597823IN
0xA558B62E...C3049E5c3
0 ETH0.0014229718.96086329
Stake167973662023-03-10 11:14:47558 days ago1678446887IN
0xA558B62E...C3049E5c3
0 ETH0.003909832.0228923
Unstake167270882023-02-28 13:55:23567 days ago1677592523IN
0xA558B62E...C3049E5c3
0 ETH0.0018496824.64666317
Stake166638782023-02-19 16:39:23576 days ago1676824763IN
0xA558B62E...C3049E5c3
0 ETH0.0047582738.9760556
Stake166635992023-02-19 15:42:47576 days ago1676821367IN
0xA558B62E...C3049E5c3
0 ETH0.0036634730.00534226
Stake166586442023-02-18 23:01:11577 days ago1676761271IN
0xA558B62E...C3049E5c3
0 ETH0.0024147619.7779404
Unstake166560462023-02-18 14:15:35577 days ago1676729735IN
0xA558B62E...C3049E5c3
0 ETH0.0031520142
Stake166535332023-02-18 5:45:11578 days ago1676699111IN
0xA558B62E...C3049E5c3
0 ETH0.0026301921.54240683
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
AYORStaking

Compiler Version
v0.8.18+commit.87f61d96

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 8 : AYORStaking.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import '@openzeppelin/contracts/access/Ownable.sol';
import '@openzeppelin/contracts/security/Pausable.sol';
import '@openzeppelin/contracts/security/ReentrancyGuard.sol';
import '@openzeppelin/contracts/token/ERC721/IERC721.sol';
import '@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol';

contract AYORStaking is Ownable, Pausable, ReentrancyGuard, IERC721Receiver {
    IERC721 public immutable ayor;
    uint256 public totalStaked;

    struct Stake {
        uint256 tokenId;
        uint256 timestamp;
    }

    event AYORStaked(address owner, uint256 tokenId);
    event AYORUnstaked(address owner, uint256 tokenId);

    mapping(address => Stake) public staked;
    mapping(uint256 => address) public staker;

    constructor(IERC721 _ayor) {
        ayor = _ayor;
    }

    function stake(uint256 tokenId) external whenNotPaused nonReentrant {
        require(ayor.ownerOf(tokenId) == msg.sender, 'Not your token');
        require(staked[msg.sender].timestamp == 0, 'Already staked');

        staked[msg.sender] = Stake({tokenId: tokenId, timestamp: block.timestamp});
        staker[tokenId] = msg.sender;
        totalStaked += 1;

        ayor.safeTransferFrom(msg.sender, address(this), tokenId);

        emit AYORStaked(msg.sender, tokenId);
    }

    function unstake() external nonReentrant {
        require(staked[msg.sender].timestamp > 0, 'No token staked');

        _unstake(msg.sender);
    }

    function ayorStuck(uint256[] memory tokens) external onlyOwner nonReentrant {
        for (uint256 i = 0; i < tokens.length; i++) {
            uint256 tokenId = tokens[i];
            if (staker[tokenId] != address(0)) {
                _unstake(staker[tokenId]);
            }
        }
    }

    function _unstake(address user) internal {
        Stake memory s = staked[user];
        if (s.timestamp > 0) {
            emit AYORUnstaked(user, s.tokenId);

            ayor.safeTransferFrom(address(this), user, s.tokenId);

            totalStaked -= 1;
            delete staker[s.tokenId];
            delete staked[user];
        }
    }

    function isStaking(address user) external view returns (bool) {
        return staked[user].timestamp > 0;
    }

    function pause() external onlyOwner {
        _pause();
    }

    function unpause() external onlyOwner {
        _unpause();
    }

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

File 2 of 8 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (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);
    }
}

File 3 of 8 : Pausable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/Pausable.sol)

pragma solidity ^0.8.0;

import "../utils/Context.sol";

/**
 * @dev Contract module which allows children to implement an emergency stop
 * mechanism that can be triggered by an authorized account.
 *
 * This module is used through inheritance. It will make available the
 * modifiers `whenNotPaused` and `whenPaused`, which can be applied to
 * the functions of your contract. Note that they will not be pausable by
 * simply including this module, only once the modifiers are put in place.
 */
abstract contract Pausable is Context {
    /**
     * @dev Emitted when the pause is triggered by `account`.
     */
    event Paused(address account);

    /**
     * @dev Emitted when the pause is lifted by `account`.
     */
    event Unpaused(address account);

    bool private _paused;

    /**
     * @dev Initializes the contract in unpaused state.
     */
    constructor() {
        _paused = false;
    }

    /**
     * @dev Returns true if the contract is paused, and false otherwise.
     */
    function paused() public view virtual returns (bool) {
        return _paused;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is not paused.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    modifier whenNotPaused() {
        require(!paused(), "Pausable: paused");
        _;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is paused.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    modifier whenPaused() {
        require(paused(), "Pausable: not paused");
        _;
    }

    /**
     * @dev Triggers stopped state.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    function _pause() internal virtual whenNotPaused {
        _paused = true;
        emit Paused(_msgSender());
    }

    /**
     * @dev Returns to normal state.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    function _unpause() internal virtual whenPaused {
        _paused = false;
        emit Unpaused(_msgSender());
    }
}

File 4 of 8 : 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 5 of 8 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (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`, 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 be 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 Returns the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) external view returns (address operator);

    /**
     * @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 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);

    /**
     * @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;
}

File 6 of 8 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (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 `IERC721.onERC721Received.selector`.
     */
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

File 7 of 8 : 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 8 of 8 : 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"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"contract IERC721","name":"_ayor","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"owner","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"AYORStaked","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"owner","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"AYORUnstaked","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"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"ayor","outputs":[{"internalType":"contract IERC721","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokens","type":"uint256[]"}],"name":"ayorStuck","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"isStaking","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"stake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"staked","outputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"timestamp","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"staker","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalStaked","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unstake","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60a060405234801561001057600080fd5b50604051610edf380380610edf83398101604081905261002f916100aa565b6100383361005a565b6000805460ff60a01b19169055600180556001600160a01b03166080526100da565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000602082840312156100bc57600080fd5b81516001600160a01b03811681146100d357600080fd5b9392505050565b608051610dd561010a600039600081816101a201528181610468015281816105f001526108b50152610dd56000f3fe608060405234801561001057600080fd5b50600436106100f55760003560e01c8063817b1cd211610097578063a694fc3a11610066578063a694fc3a14610248578063ea38fab01461025b578063f2fde38b14610284578063f99b5fef1461029757600080fd5b8063817b1cd2146101dc5780638456cb59146101f35780638da5cb5b146101fb57806398807d841461020c57600080fd5b80635c975abb116100d35780635c975abb146101495780636f49712b14610167578063715018a61461019557806376188fb51461019d57600080fd5b8063150b7a02146100fa5780632def6620146101375780633f4ba83a14610141575b600080fd5b610119610108366004610af5565b630a85bd0160e11b95945050505050565b6040516001600160e01b031990911681526020015b60405180910390f35b61013f6102aa565b005b61013f61033a565b600054600160a01b900460ff165b604051901515815260200161012e565b610157610175366004610b94565b6001600160a01b0316600090815260036020526040902060010154151590565b61013f61036e565b6101c47f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b03909116815260200161012e565b6101e560025481565b60405190815260200161012e565b61013f6103a2565b6000546001600160a01b03166101c4565b61023361021a366004610b94565b6003602052600090815260409020805460019091015482565b6040805192835260208301919091520161012e565b61013f610256366004610bb8565b6103d4565b6101c4610269366004610bb8565b6004602052600090815260409020546001600160a01b031681565b61013f610292366004610b94565b610695565b61013f6102a5366004610be7565b610730565b6002600154036102d55760405162461bcd60e51b81526004016102cc90610ca5565b60405180910390fd5b60026001908155336000908152600360205260409020015461032b5760405162461bcd60e51b815260206004820152600f60248201526e139bc81d1bdad95b881cdd185ad959608a1b60448201526064016102cc565b6103343361080a565b60018055565b6000546001600160a01b031633146103645760405162461bcd60e51b81526004016102cc90610cdc565b61036c61096b565b565b6000546001600160a01b031633146103985760405162461bcd60e51b81526004016102cc90610cdc565b61036c6000610a08565b6000546001600160a01b031633146103cc5760405162461bcd60e51b81526004016102cc90610cdc565b61036c610a58565b600054600160a01b900460ff16156104215760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b60448201526064016102cc565b6002600154036104435760405162461bcd60e51b81526004016102cc90610ca5565b60026001556040516331a9108f60e11b81526004810182905233906001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690636352211e90602401602060405180830381865afa1580156104af573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104d39190610d11565b6001600160a01b03161461051a5760405162461bcd60e51b815260206004820152600e60248201526d2737ba103cb7bab9103a37b5b2b760911b60448201526064016102cc565b336000908152600360205260409020600101541561056b5760405162461bcd60e51b815260206004820152600e60248201526d105b1c9958591e481cdd185ad95960921b60448201526064016102cc565b60408051808201825282815242602080830191825233600081815260038352858120945185559251600194850155858352600490915292812080546001600160a01b03191690931790925560028054919290916105c9908490610d44565b9091555050604051632142170760e11b8152336004820152306024820152604481018290527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906342842e0e90606401600060405180830381600087803b15801561063c57600080fd5b505af1158015610650573d6000803e3d6000fd5b505060408051338152602081018590527fd820409be78272534893ca30820adb28ca7ba6709bf6ab5b90faa4ce996af6c5935001905060405180910390a15060018055565b6000546001600160a01b031633146106bf5760405162461bcd60e51b81526004016102cc90610cdc565b6001600160a01b0381166107245760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016102cc565b61072d81610a08565b50565b6000546001600160a01b0316331461075a5760405162461bcd60e51b81526004016102cc90610cdc565b60026001540361077c5760405162461bcd60e51b81526004016102cc90610ca5565b600260015560005b81518110156108025760008282815181106107a1576107a1610d5d565b602090810291909101810151600081815260049092526040909120549091506001600160a01b0316156107ef576000818152600460205260409020546107ef906001600160a01b031661080a565b50806107fa81610d73565b915050610784565b505060018055565b6001600160a01b0381166000908152600360209081526040918290208251808401909352805483526001015490820181905215610967578051604080516001600160a01b038516815260208101929092527ff735965d1e55d90d07923ae99ddc4a56f713452a9c88bc6fdce1d9717b077716910160405180910390a18051604051632142170760e11b81523060048201526001600160a01b03848116602483015260448201929092527f0000000000000000000000000000000000000000000000000000000000000000909116906342842e0e90606401600060405180830381600087803b1580156108fb57600080fd5b505af115801561090f573d6000803e3d6000fd5b505050506001600260008282546109269190610d8c565b90915550508051600090815260046020908152604080832080546001600160a01b03191690556001600160a01b038516835260039091528120818155600101555b5050565b600054600160a01b900460ff166109bb5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b60448201526064016102cc565b6000805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600054600160a01b900460ff1615610aa55760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b60448201526064016102cc565b6000805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586109eb3390565b6001600160a01b038116811461072d57600080fd5b600080600080600060808688031215610b0d57600080fd5b8535610b1881610ae0565b94506020860135610b2881610ae0565b935060408601359250606086013567ffffffffffffffff80821115610b4c57600080fd5b818801915088601f830112610b6057600080fd5b813581811115610b6f57600080fd5b896020828501011115610b8157600080fd5b9699959850939650602001949392505050565b600060208284031215610ba657600080fd5b8135610bb181610ae0565b9392505050565b600060208284031215610bca57600080fd5b5035919050565b634e487b7160e01b600052604160045260246000fd5b60006020808385031215610bfa57600080fd5b823567ffffffffffffffff80821115610c1257600080fd5b818501915085601f830112610c2657600080fd5b813581811115610c3857610c38610bd1565b8060051b604051601f19603f83011681018181108582111715610c5d57610c5d610bd1565b604052918252848201925083810185019188831115610c7b57600080fd5b938501935b82851015610c9957843584529385019392850192610c80565b98975050505050505050565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600060208284031215610d2357600080fd5b8151610bb181610ae0565b634e487b7160e01b600052601160045260246000fd5b80820180821115610d5757610d57610d2e565b92915050565b634e487b7160e01b600052603260045260246000fd5b600060018201610d8557610d85610d2e565b5060010190565b81810381811115610d5757610d57610d2e56fea2646970667358221220554dbb4fc8ef17131ebb820665010d5d60a1f7ac74d3501cef29eb7b9cc257d064736f6c63430008120033000000000000000000000000198e6462d93940c856114c6b475de4c3da51d6da

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100f55760003560e01c8063817b1cd211610097578063a694fc3a11610066578063a694fc3a14610248578063ea38fab01461025b578063f2fde38b14610284578063f99b5fef1461029757600080fd5b8063817b1cd2146101dc5780638456cb59146101f35780638da5cb5b146101fb57806398807d841461020c57600080fd5b80635c975abb116100d35780635c975abb146101495780636f49712b14610167578063715018a61461019557806376188fb51461019d57600080fd5b8063150b7a02146100fa5780632def6620146101375780633f4ba83a14610141575b600080fd5b610119610108366004610af5565b630a85bd0160e11b95945050505050565b6040516001600160e01b031990911681526020015b60405180910390f35b61013f6102aa565b005b61013f61033a565b600054600160a01b900460ff165b604051901515815260200161012e565b610157610175366004610b94565b6001600160a01b0316600090815260036020526040902060010154151590565b61013f61036e565b6101c47f000000000000000000000000198e6462d93940c856114c6b475de4c3da51d6da81565b6040516001600160a01b03909116815260200161012e565b6101e560025481565b60405190815260200161012e565b61013f6103a2565b6000546001600160a01b03166101c4565b61023361021a366004610b94565b6003602052600090815260409020805460019091015482565b6040805192835260208301919091520161012e565b61013f610256366004610bb8565b6103d4565b6101c4610269366004610bb8565b6004602052600090815260409020546001600160a01b031681565b61013f610292366004610b94565b610695565b61013f6102a5366004610be7565b610730565b6002600154036102d55760405162461bcd60e51b81526004016102cc90610ca5565b60405180910390fd5b60026001908155336000908152600360205260409020015461032b5760405162461bcd60e51b815260206004820152600f60248201526e139bc81d1bdad95b881cdd185ad959608a1b60448201526064016102cc565b6103343361080a565b60018055565b6000546001600160a01b031633146103645760405162461bcd60e51b81526004016102cc90610cdc565b61036c61096b565b565b6000546001600160a01b031633146103985760405162461bcd60e51b81526004016102cc90610cdc565b61036c6000610a08565b6000546001600160a01b031633146103cc5760405162461bcd60e51b81526004016102cc90610cdc565b61036c610a58565b600054600160a01b900460ff16156104215760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b60448201526064016102cc565b6002600154036104435760405162461bcd60e51b81526004016102cc90610ca5565b60026001556040516331a9108f60e11b81526004810182905233906001600160a01b037f000000000000000000000000198e6462d93940c856114c6b475de4c3da51d6da1690636352211e90602401602060405180830381865afa1580156104af573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104d39190610d11565b6001600160a01b03161461051a5760405162461bcd60e51b815260206004820152600e60248201526d2737ba103cb7bab9103a37b5b2b760911b60448201526064016102cc565b336000908152600360205260409020600101541561056b5760405162461bcd60e51b815260206004820152600e60248201526d105b1c9958591e481cdd185ad95960921b60448201526064016102cc565b60408051808201825282815242602080830191825233600081815260038352858120945185559251600194850155858352600490915292812080546001600160a01b03191690931790925560028054919290916105c9908490610d44565b9091555050604051632142170760e11b8152336004820152306024820152604481018290527f000000000000000000000000198e6462d93940c856114c6b475de4c3da51d6da6001600160a01b0316906342842e0e90606401600060405180830381600087803b15801561063c57600080fd5b505af1158015610650573d6000803e3d6000fd5b505060408051338152602081018590527fd820409be78272534893ca30820adb28ca7ba6709bf6ab5b90faa4ce996af6c5935001905060405180910390a15060018055565b6000546001600160a01b031633146106bf5760405162461bcd60e51b81526004016102cc90610cdc565b6001600160a01b0381166107245760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016102cc565b61072d81610a08565b50565b6000546001600160a01b0316331461075a5760405162461bcd60e51b81526004016102cc90610cdc565b60026001540361077c5760405162461bcd60e51b81526004016102cc90610ca5565b600260015560005b81518110156108025760008282815181106107a1576107a1610d5d565b602090810291909101810151600081815260049092526040909120549091506001600160a01b0316156107ef576000818152600460205260409020546107ef906001600160a01b031661080a565b50806107fa81610d73565b915050610784565b505060018055565b6001600160a01b0381166000908152600360209081526040918290208251808401909352805483526001015490820181905215610967578051604080516001600160a01b038516815260208101929092527ff735965d1e55d90d07923ae99ddc4a56f713452a9c88bc6fdce1d9717b077716910160405180910390a18051604051632142170760e11b81523060048201526001600160a01b03848116602483015260448201929092527f000000000000000000000000198e6462d93940c856114c6b475de4c3da51d6da909116906342842e0e90606401600060405180830381600087803b1580156108fb57600080fd5b505af115801561090f573d6000803e3d6000fd5b505050506001600260008282546109269190610d8c565b90915550508051600090815260046020908152604080832080546001600160a01b03191690556001600160a01b038516835260039091528120818155600101555b5050565b600054600160a01b900460ff166109bb5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b60448201526064016102cc565b6000805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600054600160a01b900460ff1615610aa55760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b60448201526064016102cc565b6000805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586109eb3390565b6001600160a01b038116811461072d57600080fd5b600080600080600060808688031215610b0d57600080fd5b8535610b1881610ae0565b94506020860135610b2881610ae0565b935060408601359250606086013567ffffffffffffffff80821115610b4c57600080fd5b818801915088601f830112610b6057600080fd5b813581811115610b6f57600080fd5b896020828501011115610b8157600080fd5b9699959850939650602001949392505050565b600060208284031215610ba657600080fd5b8135610bb181610ae0565b9392505050565b600060208284031215610bca57600080fd5b5035919050565b634e487b7160e01b600052604160045260246000fd5b60006020808385031215610bfa57600080fd5b823567ffffffffffffffff80821115610c1257600080fd5b818501915085601f830112610c2657600080fd5b813581811115610c3857610c38610bd1565b8060051b604051601f19603f83011681018181108582111715610c5d57610c5d610bd1565b604052918252848201925083810185019188831115610c7b57600080fd5b938501935b82851015610c9957843584529385019392850192610c80565b98975050505050505050565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600060208284031215610d2357600080fd5b8151610bb181610ae0565b634e487b7160e01b600052601160045260246000fd5b80820180821115610d5757610d57610d2e565b92915050565b634e487b7160e01b600052603260045260246000fd5b600060018201610d8557610d85610d2e565b5060010190565b81810381811115610d5757610d57610d2e56fea2646970667358221220554dbb4fc8ef17131ebb820665010d5d60a1f7ac74d3501cef29eb7b9cc257d064736f6c63430008120033

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

000000000000000000000000198e6462d93940c856114c6b475de4c3da51d6da

-----Decoded View---------------
Arg [0] : _ayor (address): 0x198e6462d93940c856114C6b475De4c3Da51D6dA

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000198e6462d93940c856114c6b475de4c3da51d6da


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.