ETH Price: $3,446.61 (-0.55%)
Gas: 4 Gwei

Contract

0xf47640c60e677eC78a2046eeEf1fe3065baB9e04
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Value
Unstake201448942024-06-22 4:34:4710 days ago1719030887IN
0xf47640c6...65baB9e04
0 ETH0.000084742.95296198
Unstake201448942024-06-22 4:34:4710 days ago1719030887IN
0xf47640c6...65baB9e04
0 ETH0.000084742.95296198
Transfer*201448942024-06-22 4:34:4710 days ago1719030887IN
0xf47640c6...65baB9e04
0 ETH0.0002940413.95296198
Unstake201448942024-06-22 4:34:4710 days ago1719030887IN
0xf47640c6...65baB9e04
0 ETH0.000084742.95296198
Unstake201448942024-06-22 4:34:4710 days ago1719030887IN
0xf47640c6...65baB9e04
0 ETH0.000256938.95296198
Unstake201448942024-06-22 4:34:4710 days ago1719030887IN
0xf47640c6...65baB9e04
0 ETH0.000232362.95296198
Unstake189013652023-12-30 22:41:11184 days ago1703976071IN
0xf47640c6...65baB9e04
0 ETH0.0012379415.73214564
Unstake189012032023-12-30 22:08:11184 days ago1703974091IN
0xf47640c6...65baB9e04
0 ETH0.0008653414.05038886
Unstake188345692023-12-21 13:34:23193 days ago1703165663IN
0xf47640c6...65baB9e04
0 ETH0.0026853941.81812158
Unstake188345672023-12-21 13:33:59193 days ago1703165639IN
0xf47640c6...65baB9e04
0 ETH0.0026231242.59074364
Unstake181543732023-09-17 7:45:47289 days ago1694936747IN
0xf47640c6...65baB9e04
0 ETH0.00092438.48955931
Unstake181543702023-09-17 7:45:11289 days ago1694936711IN
0xf47640c6...65baB9e04
0 ETH0.000952838.96801323
Unstake181543692023-09-17 7:44:59289 days ago1694936699IN
0xf47640c6...65baB9e04
0 ETH0.000855468.25572134
Unstake181543682023-09-17 7:44:35289 days ago1694936675IN
0xf47640c6...65baB9e04
0 ETH0.000858718.502598
Unstake181543652023-09-17 7:43:47289 days ago1694936627IN
0xf47640c6...65baB9e04
0 ETH0.000795268.08464814
Unstake181543632023-09-17 7:43:23289 days ago1694936603IN
0xf47640c6...65baB9e04
0 ETH0.000763977.97965684
Unstake181543612023-09-17 7:42:59289 days ago1694936579IN
0xf47640c6...65baB9e04
0 ETH0.000787738.45993848
Unstake181543592023-09-17 7:42:35289 days ago1694936555IN
0xf47640c6...65baB9e04
0 ETH0.000798538.82492831
Unstake181543572023-09-17 7:42:11289 days ago1694936531IN
0xf47640c6...65baB9e04
0 ETH0.000760998.6614921
Unstake181543552023-09-17 7:41:47289 days ago1694936507IN
0xf47640c6...65baB9e04
0 ETH0.000672557.8909328
Unstake181543542023-09-17 7:41:23289 days ago1694936483IN
0xf47640c6...65baB9e04
0 ETH0.000685038.2928833
Unstake181543512023-09-17 7:40:47289 days ago1694936447IN
0xf47640c6...65baB9e04
0 ETH0.000643988.0519872
Unstake181543492023-09-17 7:40:23289 days ago1694936423IN
0xf47640c6...65baB9e04
0 ETH0.00057867.48019431
Unstake181543472023-09-17 7:39:59289 days ago1694936399IN
0xf47640c6...65baB9e04
0 ETH0.000611198.17939441
Unstake181543242023-09-17 7:34:59289 days ago1694936099IN
0xf47640c6...65baB9e04
0 ETH0.00059138.20148495
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:
BapesFutureStake

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
Yes with 1000 runs

Other Settings:
default evmVersion
File 1 of 6 : BapesFutureStake.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;

import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol";
import "@openzeppelin/contracts/access/Ownable.sol";

contract BapesFutureStake is Ownable {
  event Staked(address owner, uint256 tokenId, uint256 timestamp);
  event Unstaked(address owner, uint256 tokenId, uint256 timestamp);

  struct Stake {
    address owner;
    uint256 tokenId;
    uint256 timestamp;
  }

  IERC721 private bapesFuture;

  mapping(address => Stake[]) private stakes;

  bool isPaused = true;

  constructor() {
    bapesFuture = IERC721(0xc67b9897D793a823F0E9CF850aA1b0d23E3f8d09);
  }

  function onERC721Received(
    address,
    address,
    uint256,
    bytes calldata
  ) external returns (bytes4) {
    return bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"));
  }

  function stake(uint256[] memory _tokens) external {
    require(!isPaused, "Staking is paused.");
    require(bapesFuture.balanceOf(msg.sender) >= _tokens.length, "You do not have enough NFTs.");

    uint256 timestamp = block.timestamp;

    for (uint256 i = 0; i < _tokens.length; i++) {
      bapesFuture.safeTransferFrom(msg.sender, address(this), _tokens[i]);

      stakes[msg.sender].push(Stake(msg.sender, _tokens[i], timestamp));

      emit Staked(msg.sender, _tokens[i], timestamp);
    }
  }

  function unstake(uint256 _tokenId) external {
    uint256 senderStakes = stakes[msg.sender].length;

    require(senderStakes > 0, "Address has no stakes.");

    for (uint256 i = 0; i < senderStakes; i++) {
      if (stakes[msg.sender][i].tokenId == _tokenId && stakes[msg.sender][i].timestamp != 0) {
        uint256 elapsedMins = (block.timestamp - stakes[msg.sender][i].timestamp) / 60;
        uint256 elapsedDays = elapsedMins / 1440;

        require(elapsedDays >= 90, "Can not unstake before 90 days.");

        bapesFuture.safeTransferFrom(address(this), msg.sender, _tokenId);

        stakes[msg.sender][i].timestamp = 0;

        emit Unstaked(msg.sender, _tokenId, block.timestamp);

        break;
      }

      if (i == senderStakes - 1) {
        revert("Provided token id not staked.");
      }
    }
  }

  function getStakes(address _address) external view returns (Stake[] memory) {
    uint256 addressStakes = stakes[_address].length;

    require(addressStakes > 0, "Address has no stakes.");

    Stake[] memory res = new Stake[](addressStakes);

    for (uint256 i = 0; i < addressStakes; i++) {
      if (stakes[_address][i].timestamp != 0) {
        res[i] = Stake(stakes[_address][i].owner, stakes[_address][i].tokenId, stakes[_address][i].timestamp);
      }
    }

    return res;
  }

  function togglePause(bool _state) external onlyOwner {
    isPaused = _state;
  }
}

File 2 of 6 : 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 3 of 6 : 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 4 of 6 : 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 5 of 6 : 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);
}

File 6 of 6 : 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;
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[],"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":false,"internalType":"address","name":"owner","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"Staked","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"owner","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"Unstaked","type":"event"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"getStakes","outputs":[{"components":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"timestamp","type":"uint256"}],"internalType":"struct BapesFutureStake.Stake[]","name":"","type":"tuple[]"}],"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":"nonpayable","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":"_tokens","type":"uint256[]"}],"name":"stake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"togglePause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"unstake","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040526003805460ff1916600117905534801561001d57600080fd5b5061002733610052565b600180546001600160a01b03191673c67b9897d793a823f0e9cf850aa1b0d23e3f8d091790556100a2565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610f51806100b16000396000f3fe608060405234801561001057600080fd5b50600436106100885760003560e01c8063715018a61161005b578063715018a6146101365780637ba6f4581461013e5780638da5cb5b1461015e578063f2fde38b1461017957600080fd5b80630fbf0a931461008d578063150b7a02146100a25780632e17de781461011057806357d159c614610123575b600080fd5b6100a061009b366004610d0a565b61018c565b005b6100da6100b0366004610c6f565b7f150b7a023d4804d13e8c85fb27262cb750cf6ba9f9dd3bb30d90f482ceeb4b1f95945050505050565b6040517fffffffff0000000000000000000000000000000000000000000000000000000090911681526020015b60405180910390f35b6100a061011e366004610df1565b6104ca565b6100a0610131366004610dcf565b6107cd565b6100a061083a565b61015161014c366004610c4d565b6108a0565b6040516101079190610e23565b6000546040516001600160a01b039091168152602001610107565b6100a0610187366004610c4d565b610af2565b60035460ff16156101e45760405162461bcd60e51b815260206004820152601260248201527f5374616b696e67206973207061757365642e000000000000000000000000000060448201526064015b60405180910390fd5b80516001546040517f70a082310000000000000000000000000000000000000000000000000000000081523360048201526001600160a01b03909116906370a082319060240160206040518083038186803b15801561024257600080fd5b505afa158015610256573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061027a9190610e0a565b10156102c85760405162461bcd60e51b815260206004820152601c60248201527f596f7520646f206e6f74206861766520656e6f756768204e4654732e0000000060448201526064016101db565b4260005b82518110156104c55760015483516001600160a01b03909116906342842e0e903390309087908690811061030257610302610eef565b60209081029190910101516040517fffffffff0000000000000000000000000000000000000000000000000000000060e086901b1681526001600160a01b0393841660048201529290911660248301526044820152606401600060405180830381600087803b15801561037457600080fd5b505af1158015610388573d6000803e3d6000fd5b5050505060026000336001600160a01b03166001600160a01b031681526020019081526020016000206040518060600160405280336001600160a01b031681526020018584815181106103dd576103dd610eef565b60209081029190910181015182529081018590528254600180820185556000948552938290208351600390920201805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0390921691909117815590820151928101929092556040015160029091015582517f1449c6dd7851abc30abf37f57715f492010519147cc2652fbc38202c18a6ee9090339085908490811061048257610482610eef565b602090810291909101810151604080516001600160a01b03909416845291830152810184905260600160405180910390a1806104bd81610ebe565b9150506102cc565b505050565b33600090815260026020526040902054806105275760405162461bcd60e51b815260206004820152601660248201527f4164647265737320686173206e6f207374616b65732e0000000000000000000060448201526064016101db565b60005b818110156104c55733600090815260026020526040902080548491908390811061055657610556610eef565b9060005260206000209060030201600101541480156105a8575033600090815260026020526040902080548290811061059157610591610eef565b906000526020600020906003020160020154600014155b15610761573360009081526002602052604081208054603c9190849081106105d2576105d2610eef565b906000526020600020906003020160020154426105ef9190610ea7565b6105f99190610e85565b905060006106096105a083610e85565b9050605a81101561065c5760405162461bcd60e51b815260206004820152601f60248201527f43616e206e6f7420756e7374616b65206265666f726520393020646179732e0060448201526064016101db565b6001546040517f42842e0e000000000000000000000000000000000000000000000000000000008152306004820152336024820152604481018790526001600160a01b03909116906342842e0e90606401600060405180830381600087803b1580156106c757600080fd5b505af11580156106db573d6000803e3d6000fd5b5050336000908152600260205260408120805491935091508590811061070357610703610eef565b6000918252602091829020600260039092020101919091556040805133815291820187905242908201527f7fc4727e062e336010f2c282598ef5f14facb3de68cf8195c2f23e1454b2b74e9060600160405180910390a15050505050565b61076c600183610ea7565b8114156107bb5760405162461bcd60e51b815260206004820152601d60248201527f50726f766964656420746f6b656e206964206e6f74207374616b65642e00000060448201526064016101db565b806107c581610ebe565b91505061052a565b6000546001600160a01b031633146108275760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016101db565b6003805460ff1916911515919091179055565b6000546001600160a01b031633146108945760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016101db565b61089e6000610bd4565b565b6001600160a01b038116600090815260026020526040902054606090806109095760405162461bcd60e51b815260206004820152601660248201527f4164647265737320686173206e6f207374616b65732e0000000000000000000060448201526064016101db565b60008167ffffffffffffffff81111561092457610924610f05565b60405190808252806020026020018201604052801561098257816020015b61096f604051806060016040528060006001600160a01b0316815260200160008152602001600081525090565b8152602001906001900390816109425790505b50905060005b82811015610aea576001600160a01b03851660009081526002602052604090208054829081106109ba576109ba610eef565b906000526020600020906003020160020154600014610ad857604051806060016040528060026000886001600160a01b03166001600160a01b031681526020019081526020016000208381548110610a1457610a14610eef565b600091825260208083206003909202909101546001600160a01b039081168452891682526002815260409091208054929091019184908110610a5857610a58610eef565b906000526020600020906003020160010154815260200160026000886001600160a01b03166001600160a01b031681526020019081526020016000208381548110610aa557610aa5610eef565b906000526020600020906003020160020154815250828281518110610acc57610acc610eef565b60200260200101819052505b80610ae281610ebe565b915050610988565b509392505050565b6000546001600160a01b03163314610b4c5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016101db565b6001600160a01b038116610bc85760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016101db565b610bd181610bd4565b50565b600080546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80356001600160a01b0381168114610c4857600080fd5b919050565b600060208284031215610c5f57600080fd5b610c6882610c31565b9392505050565b600080600080600060808688031215610c8757600080fd5b610c9086610c31565b9450610c9e60208701610c31565b935060408601359250606086013567ffffffffffffffff80821115610cc257600080fd5b818801915088601f830112610cd657600080fd5b813581811115610ce557600080fd5b896020828501011115610cf757600080fd5b9699959850939650602001949392505050565b60006020808385031215610d1d57600080fd5b823567ffffffffffffffff80821115610d3557600080fd5b818501915085601f830112610d4957600080fd5b813581811115610d5b57610d5b610f05565b8060051b604051601f19603f83011681018181108582111715610d8057610d80610f05565b604052828152858101935084860182860187018a1015610d9f57600080fd5b600095505b83861015610dc2578035855260019590950194938601938601610da4565b5098975050505050505050565b600060208284031215610de157600080fd5b81358015158114610c6857600080fd5b600060208284031215610e0357600080fd5b5035919050565b600060208284031215610e1c57600080fd5b5051919050565b602080825282518282018190526000919060409081850190868401855b82811015610e7857815180516001600160a01b0316855286810151878601528501518585015260609093019290850190600101610e40565b5091979650505050505050565b600082610ea257634e487b7160e01b600052601260045260246000fd5b500490565b600082821015610eb957610eb9610ed9565b500390565b6000600019821415610ed257610ed2610ed9565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fdfea2646970667358221220e4f3abd98f2df6d1c4034a722ff6ee962fb43f39908eb48a17277fb87220838764736f6c63430008070033

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100885760003560e01c8063715018a61161005b578063715018a6146101365780637ba6f4581461013e5780638da5cb5b1461015e578063f2fde38b1461017957600080fd5b80630fbf0a931461008d578063150b7a02146100a25780632e17de781461011057806357d159c614610123575b600080fd5b6100a061009b366004610d0a565b61018c565b005b6100da6100b0366004610c6f565b7f150b7a023d4804d13e8c85fb27262cb750cf6ba9f9dd3bb30d90f482ceeb4b1f95945050505050565b6040517fffffffff0000000000000000000000000000000000000000000000000000000090911681526020015b60405180910390f35b6100a061011e366004610df1565b6104ca565b6100a0610131366004610dcf565b6107cd565b6100a061083a565b61015161014c366004610c4d565b6108a0565b6040516101079190610e23565b6000546040516001600160a01b039091168152602001610107565b6100a0610187366004610c4d565b610af2565b60035460ff16156101e45760405162461bcd60e51b815260206004820152601260248201527f5374616b696e67206973207061757365642e000000000000000000000000000060448201526064015b60405180910390fd5b80516001546040517f70a082310000000000000000000000000000000000000000000000000000000081523360048201526001600160a01b03909116906370a082319060240160206040518083038186803b15801561024257600080fd5b505afa158015610256573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061027a9190610e0a565b10156102c85760405162461bcd60e51b815260206004820152601c60248201527f596f7520646f206e6f74206861766520656e6f756768204e4654732e0000000060448201526064016101db565b4260005b82518110156104c55760015483516001600160a01b03909116906342842e0e903390309087908690811061030257610302610eef565b60209081029190910101516040517fffffffff0000000000000000000000000000000000000000000000000000000060e086901b1681526001600160a01b0393841660048201529290911660248301526044820152606401600060405180830381600087803b15801561037457600080fd5b505af1158015610388573d6000803e3d6000fd5b5050505060026000336001600160a01b03166001600160a01b031681526020019081526020016000206040518060600160405280336001600160a01b031681526020018584815181106103dd576103dd610eef565b60209081029190910181015182529081018590528254600180820185556000948552938290208351600390920201805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0390921691909117815590820151928101929092556040015160029091015582517f1449c6dd7851abc30abf37f57715f492010519147cc2652fbc38202c18a6ee9090339085908490811061048257610482610eef565b602090810291909101810151604080516001600160a01b03909416845291830152810184905260600160405180910390a1806104bd81610ebe565b9150506102cc565b505050565b33600090815260026020526040902054806105275760405162461bcd60e51b815260206004820152601660248201527f4164647265737320686173206e6f207374616b65732e0000000000000000000060448201526064016101db565b60005b818110156104c55733600090815260026020526040902080548491908390811061055657610556610eef565b9060005260206000209060030201600101541480156105a8575033600090815260026020526040902080548290811061059157610591610eef565b906000526020600020906003020160020154600014155b15610761573360009081526002602052604081208054603c9190849081106105d2576105d2610eef565b906000526020600020906003020160020154426105ef9190610ea7565b6105f99190610e85565b905060006106096105a083610e85565b9050605a81101561065c5760405162461bcd60e51b815260206004820152601f60248201527f43616e206e6f7420756e7374616b65206265666f726520393020646179732e0060448201526064016101db565b6001546040517f42842e0e000000000000000000000000000000000000000000000000000000008152306004820152336024820152604481018790526001600160a01b03909116906342842e0e90606401600060405180830381600087803b1580156106c757600080fd5b505af11580156106db573d6000803e3d6000fd5b5050336000908152600260205260408120805491935091508590811061070357610703610eef565b6000918252602091829020600260039092020101919091556040805133815291820187905242908201527f7fc4727e062e336010f2c282598ef5f14facb3de68cf8195c2f23e1454b2b74e9060600160405180910390a15050505050565b61076c600183610ea7565b8114156107bb5760405162461bcd60e51b815260206004820152601d60248201527f50726f766964656420746f6b656e206964206e6f74207374616b65642e00000060448201526064016101db565b806107c581610ebe565b91505061052a565b6000546001600160a01b031633146108275760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016101db565b6003805460ff1916911515919091179055565b6000546001600160a01b031633146108945760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016101db565b61089e6000610bd4565b565b6001600160a01b038116600090815260026020526040902054606090806109095760405162461bcd60e51b815260206004820152601660248201527f4164647265737320686173206e6f207374616b65732e0000000000000000000060448201526064016101db565b60008167ffffffffffffffff81111561092457610924610f05565b60405190808252806020026020018201604052801561098257816020015b61096f604051806060016040528060006001600160a01b0316815260200160008152602001600081525090565b8152602001906001900390816109425790505b50905060005b82811015610aea576001600160a01b03851660009081526002602052604090208054829081106109ba576109ba610eef565b906000526020600020906003020160020154600014610ad857604051806060016040528060026000886001600160a01b03166001600160a01b031681526020019081526020016000208381548110610a1457610a14610eef565b600091825260208083206003909202909101546001600160a01b039081168452891682526002815260409091208054929091019184908110610a5857610a58610eef565b906000526020600020906003020160010154815260200160026000886001600160a01b03166001600160a01b031681526020019081526020016000208381548110610aa557610aa5610eef565b906000526020600020906003020160020154815250828281518110610acc57610acc610eef565b60200260200101819052505b80610ae281610ebe565b915050610988565b509392505050565b6000546001600160a01b03163314610b4c5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016101db565b6001600160a01b038116610bc85760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016101db565b610bd181610bd4565b50565b600080546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80356001600160a01b0381168114610c4857600080fd5b919050565b600060208284031215610c5f57600080fd5b610c6882610c31565b9392505050565b600080600080600060808688031215610c8757600080fd5b610c9086610c31565b9450610c9e60208701610c31565b935060408601359250606086013567ffffffffffffffff80821115610cc257600080fd5b818801915088601f830112610cd657600080fd5b813581811115610ce557600080fd5b896020828501011115610cf757600080fd5b9699959850939650602001949392505050565b60006020808385031215610d1d57600080fd5b823567ffffffffffffffff80821115610d3557600080fd5b818501915085601f830112610d4957600080fd5b813581811115610d5b57610d5b610f05565b8060051b604051601f19603f83011681018181108582111715610d8057610d80610f05565b604052828152858101935084860182860187018a1015610d9f57600080fd5b600095505b83861015610dc2578035855260019590950194938601938601610da4565b5098975050505050505050565b600060208284031215610de157600080fd5b81358015158114610c6857600080fd5b600060208284031215610e0357600080fd5b5035919050565b600060208284031215610e1c57600080fd5b5051919050565b602080825282518282018190526000919060409081850190868401855b82811015610e7857815180516001600160a01b0316855286810151878601528501518585015260609093019290850190600101610e40565b5091979650505050505050565b600082610ea257634e487b7160e01b600052601260045260246000fd5b500490565b600082821015610eb957610eb9610ed9565b500390565b6000600019821415610ed257610ed2610ed9565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fdfea2646970667358221220e4f3abd98f2df6d1c4034a722ff6ee962fb43f39908eb48a17277fb87220838764736f6c63430008070033

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.