ETH Price: $2,122.53 (-0.87%)

Contract

0x8EBd6c7D2B79CA4Dc5FBdEc239a8Bb0F214212b8
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

More Info

Private Name Tags

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Unstake190745042024-01-24 5:45:59786 days ago1706075159IN
0x8EBd6c7D...F214212b8
0 ETH0.001117338.82589882
Unstake189176972024-01-02 5:42:35808 days ago1704174155IN
0x8EBd6c7D...F214212b8
0 ETH0.0037578112.30994266
Unstake181726222023-09-19 21:25:11912 days ago1695158711IN
0x8EBd6c7D...F214212b8
0 ETH0.0045360514.0711052
Unstake180542212023-09-03 6:35:59929 days ago1693722959IN
0x8EBd6c7D...F214212b8
0 ETH0.0035031510.70212024
Unstake180040102023-08-27 5:46:59936 days ago1693115219IN
0x8EBd6c7D...F214212b8
0 ETH0.0033507310.23647392
Unstake179600902023-08-21 2:20:47942 days ago1692584447IN
0x8EBd6c7D...F214212b8
0 ETH0.004579513.98985661
Unstake179083742023-08-13 20:38:23949 days ago1691959103IN
0x8EBd6c7D...F214212b8
0 ETH0.0056858717.36967956
Unstake179083662023-08-13 20:36:47949 days ago1691959007IN
0x8EBd6c7D...F214212b8
0 ETH0.005388818.02365598
Unstake178277172023-08-02 13:49:35961 days ago1690984175IN
0x8EBd6c7D...F214212b8
0 ETH0.0075275924.26339058
Unstake177503702023-07-22 18:11:11972 days ago1690049471IN
0x8EBd6c7D...F214212b8
0 ETH0.0080779224.67800441
Unstake177369052023-07-20 20:57:47973 days ago1689886667IN
0x8EBd6c7D...F214212b8
0 ETH0.0108147633.03904428
Unstake177071522023-07-16 16:51:35978 days ago1689526295IN
0x8EBd6c7D...F214212b8
0 ETH0.0046083814.85401442
Unstake176920252023-07-14 13:33:35980 days ago1689341615IN
0x8EBd6c7D...F214212b8
0 ETH0.0089240327.26185172
Unstake176825182023-07-13 5:28:59981 days ago1689226139IN
0x8EBd6c7D...F214212b8
0 ETH0.0042631913.74139701
Unstake176121562023-07-03 8:08:35991 days ago1688371715IN
0x8EBd6c7D...F214212b8
0 ETH0.00455614.68519998
Unstake176050332023-07-02 8:06:23992 days ago1688285183IN
0x8EBd6c7D...F214212b8
0 ETH0.0034467912.97173931
Unstake175515512023-06-24 19:48:47999 days ago1687636127IN
0x8EBd6c7D...F214212b8
0 ETH0.0041932613.51703521
Unstake175230592023-06-20 19:43:471003 days ago1687290227IN
0x8EBd6c7D...F214212b8
0 ETH0.004500914.5075765
Unstake175219862023-06-20 16:06:111004 days ago1687277171IN
0x8EBd6c7D...F214212b8
0 ETH0.0094014828.72147657
Unstake175193072023-06-20 7:04:111004 days ago1687244651IN
0x8EBd6c7D...F214212b8
0 ETH0.0048414815.60535113
Unstake175188582023-06-20 5:33:591004 days ago1687239239IN
0x8EBd6c7D...F214212b8
0 ETH0.0064157919.59949098
Unstake175030462023-06-18 0:17:111006 days ago1687047431IN
0x8EBd6c7D...F214212b8
0 ETH0.0053246416.26614853
Unstake174899812023-06-16 4:19:351008 days ago1686889175IN
0x8EBd6c7D...F214212b8
0 ETH0.0049661516.00783062
Unstake174894472023-06-16 2:30:471008 days ago1686882647IN
0x8EBd6c7D...F214212b8
0 ETH0.0047056415.1675196
Unstake174802232023-06-14 19:22:231010 days ago1686770543IN
0x8EBd6c7D...F214212b8
0 ETH0.0073694423.75361956
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading

Similar Match Source Code
This contract matches the deployed Bytecode of the Source Code for Contract 0x3FAD541e...CaEF26a40
The constructor portion of the code might be different and could alter the actual behaviour of the contract

Contract Name:
HATEStaking

Compiler Version
v0.8.19+commit.7dd6d404

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity Standard Json-Input format)

// SPDX-License-Identifier: AGPL-3.0
pragma solidity 0.8.19;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol";
import "./interface/IsHATE.sol";
import "./interface/IDistributor.sol";

contract HATEStaking is Ownable{
    /* ========== EVENTS ========== */

    event DistributorSet(address distributor);

    /* ========== DATA STRUCTURES ========== */

    struct Epoch {
        uint256 length; // in seconds
        uint256 number; // since inception
        uint256 end; // timestamp
        uint256 distribute; // amount
    }

    struct Claim {
        uint256 deposit; // if forfeiting
        uint256 gons; // staked balance
        uint256 expiry; // end of warmup period
        bool lock; // prevents malicious delays for claim
    }

    /* ========== STATE VARIABLES ========== */

    IERC20 public immutable HATE;
    IsHATE public immutable sHATE;

    Epoch public epoch;

    IDistributor public distributor;

    /* ========== CONSTRUCTOR ========== */

    constructor(address _HATE, address _sHATE, uint256 _epochLength) {
        require(_HATE != address(0), "Zero address: HATE");
        HATE = IERC20(_HATE);
        require(_sHATE != address(0), "Zero address: sHATE");
        sHATE = IsHATE(_sHATE);

        epoch = Epoch({length: _epochLength, number: 0, end: block.timestamp + _epochLength, distribute: 0});
    }

    /* ========== MUTATIVE FUNCTIONS ========== */

    /**
     * @notice stake HATE
     * @param _to address
     * @param _amount uint
     */
    function stake(address _to, uint256 _amount) external {
        HATE.transferFrom(msg.sender, address(this), _amount);
        rebase();
        sHATE.transfer(_to, _amount);
    }

    /**
     * @notice redeem sHATE for HATEs
     * @param _to address
     * @param _amount uint
     */
    function unstake(address _to, uint256 _amount, bool _rebase) external {
        if (_rebase) rebase();
        sHATE.transferFrom(msg.sender, address(this), _amount);
        require(_amount <= HATE.balanceOf(address(this)), "Insufficient HATE balance in contract");
        HATE.transfer(_to, _amount);
    }

    /**
     * @notice trigger rebase if epoch over
     */
    function rebase() public {
        if (epoch.end <= block.timestamp) {
            sHATE.rebase(epoch.distribute, epoch.number);

            epoch.end = epoch.end + epoch.length;
            epoch.number++;

            if (address(distributor) != address(0)) {
                distributor.distribute();
            }

            uint256 balance = HATE.balanceOf(address(this));
            uint256 staked = sHATE.circulatingSupply();

            if (balance <= staked) {
                epoch.distribute = 0;
            } else {
                epoch.distribute = balance - staked;
            }
        }
    }

    /* ========== INTERNAL FUNCTIONS ========== */

    /**
     * @notice send staker their amount as sHATE
     * @param _to address
     * @param _amount uint
     */
    function _send(address _to, uint256 _amount) internal returns (uint256) {
        sHATE.transfer(_to, _amount); // send as sHATE (equal unit as HATE)
        return _amount;
    }

    /* ========== VIEW FUNCTIONS ========== */

    /**
     * @notice returns the sHATE index, which tracks rebase growth
     * @return uint
     */
    function index() public view returns (uint256) {
        return sHATE.index();
    }

    /**
     * @notice seconds until the next epoch begins
     */
    function secondsToNextEpoch() external view returns (uint256) {
        return epoch.end - block.timestamp;
    }

    /* ========== MANAGERIAL FUNCTIONS ========== */

    /**
     * @notice sets the contract address for LP staking
     * @param _distributor address
     */
    function setDistributor(address _distributor) external onlyOwner {
        distributor = IDistributor(_distributor);
        emit DistributorSet(_distributor);
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _transferOwnership(_msgSender());
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _transferOwnership(address(0));
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";

/**
 * @dev Interface for the optional metadata functions from the ERC20 standard.
 *
 * _Available since v4.1._
 */
interface IERC20Metadata is IERC20 {
    /**
     * @dev Returns the name of the token.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the symbol of the token.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the decimals places of the token.
     */
    function decimals() external view returns (uint8);
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);

    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `from` to `to` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 amount
    ) external returns (bool);
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

/**
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}

// SPDX-License-Identifier: AGPL-3.0
pragma solidity 0.8.19;

interface IDistributor {
    function distribute() external;

    function nextRewardAt(uint256 _rate) external view returns (uint256);

    function nextRewardFor(address _recipient) external view returns (uint256);

    function addRecipient(address _recipient, uint256 _rewardRate) external;

    function removeRecipient(uint256 _index) external;

    function setAdjustment(
        uint256 _index,
        bool _add,
        uint256 _rate,
        uint256 _target
    ) external;
}

// SPDX-License-Identifier: AGPL-3.0
pragma solidity 0.8.19;

import "@openzeppelin/contracts/token/ERC20/IERC20.sol";

interface IsHATE is IERC20 {
    function rebase(uint256 amount_, uint epoch_) external returns (uint256);

    function circulatingSupply() external view returns (uint256);

    function gonsForBalance(uint amount) external view returns (uint);

    function balanceForGons(uint gons) external view returns (uint);

    function index() external view returns (uint);
}

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

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"address","name":"_HATE","type":"address"},{"internalType":"address","name":"_sHATE","type":"address"},{"internalType":"uint256","name":"_epochLength","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"distributor","type":"address"}],"name":"DistributorSet","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"},{"inputs":[],"name":"HATE","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"distributor","outputs":[{"internalType":"contract IDistributor","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"epoch","outputs":[{"internalType":"uint256","name":"length","type":"uint256"},{"internalType":"uint256","name":"number","type":"uint256"},{"internalType":"uint256","name":"end","type":"uint256"},{"internalType":"uint256","name":"distribute","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"index","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rebase","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"sHATE","outputs":[{"internalType":"contract IsHATE","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"secondsToNextEpoch","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_distributor","type":"address"}],"name":"setDistributor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"stake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"bool","name":"_rebase","type":"bool"}],"name":"unstake","outputs":[],"stateMutability":"nonpayable","type":"function"}]

0x60c06040523480156200001157600080fd5b50604051620019123803806200191283398181016040528101906200003791906200037a565b620000576200004b6200020960201b60201c565b6200021160201b60201c565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603620000c9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620000c09062000437565b60405180910390fd5b8273ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff1681525050600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036200016f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200016690620004a9565b60405180910390fd5b8173ffffffffffffffffffffffffffffffffffffffff1660a08173ffffffffffffffffffffffffffffffffffffffff16815250506040518060800160405280828152602001600081526020018242620001c99190620004fa565b8152602001600081525060016000820151816000015560208201518160010155604082015181600201556060820151816003015590505050505062000535565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006200030782620002da565b9050919050565b6200031981620002fa565b81146200032557600080fd5b50565b60008151905062000339816200030e565b92915050565b6000819050919050565b62000354816200033f565b81146200036057600080fd5b50565b600081519050620003748162000349565b92915050565b600080600060608486031215620003965762000395620002d5565b5b6000620003a68682870162000328565b9350506020620003b98682870162000328565b9250506040620003cc8682870162000363565b9150509250925092565b600082825260208201905092915050565b7f5a65726f20616464726573733a20484154450000000000000000000000000000600082015250565b60006200041f601283620003d6565b91506200042c82620003e7565b602082019050919050565b60006020820190508181036000830152620004528162000410565b9050919050565b7f5a65726f20616464726573733a20734841544500000000000000000000000000600082015250565b600062000491601383620003d6565b91506200049e8262000459565b602082019050919050565b60006020820190508181036000830152620004c48162000482565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600062000507826200033f565b915062000514836200033f565b92508282019050808211156200052f576200052e620004cb565b5b92915050565b60805160a0516113786200059a600039600081816102620152818161048501528181610519015281816106dc0152818161078b01526109e501526000818161022f01528181610303015281816103df01528181610633015261094701526113786000f3fe608060405234801561001057600080fd5b50600436106100cf5760003560e01c80638da5cb5b1161008c578063adc9772e11610066578063adc9772e146101cd578063af14052c146101e9578063bfe10928146101f3578063f2fde38b14610211576100cf565b80638da5cb5b14610170578063900cf0cf1461018e5780639483c1d7146101af576100cf565b80630d48c5d6146100d457806321d0af34146100f25780632986c0e51461010e57806360e0d00a1461012c578063715018a61461014a57806375619ab514610154575b600080fd5b6100dc61022d565b6040516100e99190610d18565b60405180910390f35b61010c60048036038101906101079190610de4565b610251565b005b610116610481565b6040516101239190610e46565b60405180910390f35b610134610517565b6040516101419190610e82565b60405180910390f35b61015261053b565b005b61016e60048036038101906101699190610e9d565b61054f565b005b6101786105d2565b6040516101859190610ed9565b60405180910390f35b6101966105fb565b6040516101a69493929190610ef4565b60405180910390f35b6101b7610619565b6040516101c49190610e46565b60405180910390f35b6101e760048036038101906101e29190610f39565b610631565b005b6101f161077d565b005b6101fb610aa6565b6040516102089190610f9a565b60405180910390f35b61022b60048036038101906102269190610e9d565b610acc565b005b7f000000000000000000000000000000000000000000000000000000000000000081565b80156102605761025f61077d565b5b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166323b872dd3330856040518463ffffffff1660e01b81526004016102bd93929190610fb5565b6020604051808303816000875af11580156102dc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103009190611001565b507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b815260040161035a9190610ed9565b602060405180830381865afa158015610377573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061039b9190611043565b8211156103dd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103d4906110f3565b60405180910390fd5b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663a9059cbb84846040518363ffffffff1660e01b8152600401610438929190611113565b6020604051808303816000875af1158015610457573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061047b9190611001565b50505050565b60007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16632986c0e56040518163ffffffff1660e01b8152600401602060405180830381865afa1580156104ee573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105129190611043565b905090565b7f000000000000000000000000000000000000000000000000000000000000000081565b610543610b4f565b61054d6000610bcd565b565b610557610b4f565b80600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507f86719c518c7d99ac94b3d405d462ea876ba5cd0a978461dc9a7c9862a9485886816040516105c79190610ed9565b60405180910390a150565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60018060000154908060010154908060020154908060030154905084565b60004260016002015461062c919061116b565b905090565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166323b872dd3330846040518463ffffffff1660e01b815260040161068e93929190610fb5565b6020604051808303816000875af11580156106ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106d19190611001565b506106da61077d565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663a9059cbb83836040518363ffffffff1660e01b8152600401610735929190611113565b6020604051808303816000875af1158015610754573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107789190611001565b505050565b4260016002015411610aa4577f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663058ecdb460016003015460018001546040518363ffffffff1660e01b81526004016107ed92919061119f565b6020604051808303816000875af115801561080c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108309190611043565b5060016000015460016002015461084791906111c8565b600160020181905550600180016000815480929190610865906111fc565b9190505550600073ffffffffffffffffffffffffffffffffffffffff16600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161461094357600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663e4fc6b6d6040518163ffffffff1660e01b8152600401600060405180830381600087803b15801561092a57600080fd5b505af115801561093e573d6000803e3d6000fd5b505050505b60007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b815260040161099e9190610ed9565b602060405180830381865afa1580156109bb573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109df9190611043565b905060007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16639358928b6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610a4e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a729190611043565b9050808211610a8b576000600160030181905550610aa1565b8082610a97919061116b565b6001600301819055505b50505b565b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b610ad4610b4f565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610b43576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b3a906112b6565b60405180910390fd5b610b4c81610bcd565b50565b610b57610c91565b73ffffffffffffffffffffffffffffffffffffffff16610b756105d2565b73ffffffffffffffffffffffffffffffffffffffff1614610bcb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bc290611322565b60405180910390fd5b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600033905090565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b6000610cde610cd9610cd484610c99565b610cb9565b610c99565b9050919050565b6000610cf082610cc3565b9050919050565b6000610d0282610ce5565b9050919050565b610d1281610cf7565b82525050565b6000602082019050610d2d6000830184610d09565b92915050565b600080fd5b6000610d4382610c99565b9050919050565b610d5381610d38565b8114610d5e57600080fd5b50565b600081359050610d7081610d4a565b92915050565b6000819050919050565b610d8981610d76565b8114610d9457600080fd5b50565b600081359050610da681610d80565b92915050565b60008115159050919050565b610dc181610dac565b8114610dcc57600080fd5b50565b600081359050610dde81610db8565b92915050565b600080600060608486031215610dfd57610dfc610d33565b5b6000610e0b86828701610d61565b9350506020610e1c86828701610d97565b9250506040610e2d86828701610dcf565b9150509250925092565b610e4081610d76565b82525050565b6000602082019050610e5b6000830184610e37565b92915050565b6000610e6c82610ce5565b9050919050565b610e7c81610e61565b82525050565b6000602082019050610e976000830184610e73565b92915050565b600060208284031215610eb357610eb2610d33565b5b6000610ec184828501610d61565b91505092915050565b610ed381610d38565b82525050565b6000602082019050610eee6000830184610eca565b92915050565b6000608082019050610f096000830187610e37565b610f166020830186610e37565b610f236040830185610e37565b610f306060830184610e37565b95945050505050565b60008060408385031215610f5057610f4f610d33565b5b6000610f5e85828601610d61565b9250506020610f6f85828601610d97565b9150509250929050565b6000610f8482610ce5565b9050919050565b610f9481610f79565b82525050565b6000602082019050610faf6000830184610f8b565b92915050565b6000606082019050610fca6000830186610eca565b610fd76020830185610eca565b610fe46040830184610e37565b949350505050565b600081519050610ffb81610db8565b92915050565b60006020828403121561101757611016610d33565b5b600061102584828501610fec565b91505092915050565b60008151905061103d81610d80565b92915050565b60006020828403121561105957611058610d33565b5b60006110678482850161102e565b91505092915050565b600082825260208201905092915050565b7f496e73756666696369656e7420484154452062616c616e636520696e20636f6e60008201527f7472616374000000000000000000000000000000000000000000000000000000602082015250565b60006110dd602583611070565b91506110e882611081565b604082019050919050565b6000602082019050818103600083015261110c816110d0565b9050919050565b60006040820190506111286000830185610eca565b6111356020830184610e37565b9392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061117682610d76565b915061118183610d76565b92508282039050818111156111995761119861113c565b5b92915050565b60006040820190506111b46000830185610e37565b6111c16020830184610e37565b9392505050565b60006111d382610d76565b91506111de83610d76565b92508282019050808211156111f6576111f561113c565b5b92915050565b600061120782610d76565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036112395761123861113c565b5b600182019050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006112a0602683611070565b91506112ab82611244565b604082019050919050565b600060208201905081810360008301526112cf81611293565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b600061130c602083611070565b9150611317826112d6565b602082019050919050565b6000602082019050818103600083015261133b816112ff565b905091905056fea264697066735822122040f3eba3969cfc8c7dce76eb728fba0f6cba8242de09efbcc7179603f3643adf64736f6c634300081300330000000000000000000000007b768470590b8a0d28fc714d0a70754d556d14ed000000000000000000000000f829d7014db17d6dce448be958c7e4983cdb1f770000000000000000000000000000000000000000000000000000000000007080

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100cf5760003560e01c80638da5cb5b1161008c578063adc9772e11610066578063adc9772e146101cd578063af14052c146101e9578063bfe10928146101f3578063f2fde38b14610211576100cf565b80638da5cb5b14610170578063900cf0cf1461018e5780639483c1d7146101af576100cf565b80630d48c5d6146100d457806321d0af34146100f25780632986c0e51461010e57806360e0d00a1461012c578063715018a61461014a57806375619ab514610154575b600080fd5b6100dc61022d565b6040516100e99190610d18565b60405180910390f35b61010c60048036038101906101079190610de4565b610251565b005b610116610481565b6040516101239190610e46565b60405180910390f35b610134610517565b6040516101419190610e82565b60405180910390f35b61015261053b565b005b61016e60048036038101906101699190610e9d565b61054f565b005b6101786105d2565b6040516101859190610ed9565b60405180910390f35b6101966105fb565b6040516101a69493929190610ef4565b60405180910390f35b6101b7610619565b6040516101c49190610e46565b60405180910390f35b6101e760048036038101906101e29190610f39565b610631565b005b6101f161077d565b005b6101fb610aa6565b6040516102089190610f9a565b60405180910390f35b61022b60048036038101906102269190610e9d565b610acc565b005b7f0000000000000000000000007b768470590b8a0d28fc714d0a70754d556d14ed81565b80156102605761025f61077d565b5b7f000000000000000000000000f829d7014db17d6dce448be958c7e4983cdb1f7773ffffffffffffffffffffffffffffffffffffffff166323b872dd3330856040518463ffffffff1660e01b81526004016102bd93929190610fb5565b6020604051808303816000875af11580156102dc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103009190611001565b507f0000000000000000000000007b768470590b8a0d28fc714d0a70754d556d14ed73ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b815260040161035a9190610ed9565b602060405180830381865afa158015610377573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061039b9190611043565b8211156103dd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103d4906110f3565b60405180910390fd5b7f0000000000000000000000007b768470590b8a0d28fc714d0a70754d556d14ed73ffffffffffffffffffffffffffffffffffffffff1663a9059cbb84846040518363ffffffff1660e01b8152600401610438929190611113565b6020604051808303816000875af1158015610457573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061047b9190611001565b50505050565b60007f000000000000000000000000f829d7014db17d6dce448be958c7e4983cdb1f7773ffffffffffffffffffffffffffffffffffffffff16632986c0e56040518163ffffffff1660e01b8152600401602060405180830381865afa1580156104ee573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105129190611043565b905090565b7f000000000000000000000000f829d7014db17d6dce448be958c7e4983cdb1f7781565b610543610b4f565b61054d6000610bcd565b565b610557610b4f565b80600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507f86719c518c7d99ac94b3d405d462ea876ba5cd0a978461dc9a7c9862a9485886816040516105c79190610ed9565b60405180910390a150565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60018060000154908060010154908060020154908060030154905084565b60004260016002015461062c919061116b565b905090565b7f0000000000000000000000007b768470590b8a0d28fc714d0a70754d556d14ed73ffffffffffffffffffffffffffffffffffffffff166323b872dd3330846040518463ffffffff1660e01b815260040161068e93929190610fb5565b6020604051808303816000875af11580156106ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106d19190611001565b506106da61077d565b7f000000000000000000000000f829d7014db17d6dce448be958c7e4983cdb1f7773ffffffffffffffffffffffffffffffffffffffff1663a9059cbb83836040518363ffffffff1660e01b8152600401610735929190611113565b6020604051808303816000875af1158015610754573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107789190611001565b505050565b4260016002015411610aa4577f000000000000000000000000f829d7014db17d6dce448be958c7e4983cdb1f7773ffffffffffffffffffffffffffffffffffffffff1663058ecdb460016003015460018001546040518363ffffffff1660e01b81526004016107ed92919061119f565b6020604051808303816000875af115801561080c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108309190611043565b5060016000015460016002015461084791906111c8565b600160020181905550600180016000815480929190610865906111fc565b9190505550600073ffffffffffffffffffffffffffffffffffffffff16600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161461094357600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663e4fc6b6d6040518163ffffffff1660e01b8152600401600060405180830381600087803b15801561092a57600080fd5b505af115801561093e573d6000803e3d6000fd5b505050505b60007f0000000000000000000000007b768470590b8a0d28fc714d0a70754d556d14ed73ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b815260040161099e9190610ed9565b602060405180830381865afa1580156109bb573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109df9190611043565b905060007f000000000000000000000000f829d7014db17d6dce448be958c7e4983cdb1f7773ffffffffffffffffffffffffffffffffffffffff16639358928b6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610a4e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a729190611043565b9050808211610a8b576000600160030181905550610aa1565b8082610a97919061116b565b6001600301819055505b50505b565b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b610ad4610b4f565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610b43576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b3a906112b6565b60405180910390fd5b610b4c81610bcd565b50565b610b57610c91565b73ffffffffffffffffffffffffffffffffffffffff16610b756105d2565b73ffffffffffffffffffffffffffffffffffffffff1614610bcb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bc290611322565b60405180910390fd5b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600033905090565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b6000610cde610cd9610cd484610c99565b610cb9565b610c99565b9050919050565b6000610cf082610cc3565b9050919050565b6000610d0282610ce5565b9050919050565b610d1281610cf7565b82525050565b6000602082019050610d2d6000830184610d09565b92915050565b600080fd5b6000610d4382610c99565b9050919050565b610d5381610d38565b8114610d5e57600080fd5b50565b600081359050610d7081610d4a565b92915050565b6000819050919050565b610d8981610d76565b8114610d9457600080fd5b50565b600081359050610da681610d80565b92915050565b60008115159050919050565b610dc181610dac565b8114610dcc57600080fd5b50565b600081359050610dde81610db8565b92915050565b600080600060608486031215610dfd57610dfc610d33565b5b6000610e0b86828701610d61565b9350506020610e1c86828701610d97565b9250506040610e2d86828701610dcf565b9150509250925092565b610e4081610d76565b82525050565b6000602082019050610e5b6000830184610e37565b92915050565b6000610e6c82610ce5565b9050919050565b610e7c81610e61565b82525050565b6000602082019050610e976000830184610e73565b92915050565b600060208284031215610eb357610eb2610d33565b5b6000610ec184828501610d61565b91505092915050565b610ed381610d38565b82525050565b6000602082019050610eee6000830184610eca565b92915050565b6000608082019050610f096000830187610e37565b610f166020830186610e37565b610f236040830185610e37565b610f306060830184610e37565b95945050505050565b60008060408385031215610f5057610f4f610d33565b5b6000610f5e85828601610d61565b9250506020610f6f85828601610d97565b9150509250929050565b6000610f8482610ce5565b9050919050565b610f9481610f79565b82525050565b6000602082019050610faf6000830184610f8b565b92915050565b6000606082019050610fca6000830186610eca565b610fd76020830185610eca565b610fe46040830184610e37565b949350505050565b600081519050610ffb81610db8565b92915050565b60006020828403121561101757611016610d33565b5b600061102584828501610fec565b91505092915050565b60008151905061103d81610d80565b92915050565b60006020828403121561105957611058610d33565b5b60006110678482850161102e565b91505092915050565b600082825260208201905092915050565b7f496e73756666696369656e7420484154452062616c616e636520696e20636f6e60008201527f7472616374000000000000000000000000000000000000000000000000000000602082015250565b60006110dd602583611070565b91506110e882611081565b604082019050919050565b6000602082019050818103600083015261110c816110d0565b9050919050565b60006040820190506111286000830185610eca565b6111356020830184610e37565b9392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061117682610d76565b915061118183610d76565b92508282039050818111156111995761119861113c565b5b92915050565b60006040820190506111b46000830185610e37565b6111c16020830184610e37565b9392505050565b60006111d382610d76565b91506111de83610d76565b92508282019050808211156111f6576111f561113c565b5b92915050565b600061120782610d76565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036112395761123861113c565b5b600182019050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006112a0602683611070565b91506112ab82611244565b604082019050919050565b600060208201905081810360008301526112cf81611293565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b600061130c602083611070565b9150611317826112d6565b602082019050919050565b6000602082019050818103600083015261133b816112ff565b905091905056fea264697066735822122040f3eba3969cfc8c7dce76eb728fba0f6cba8242de09efbcc7179603f3643adf64736f6c63430008130033

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading
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.