ETH Price: $1,949.97 (-1.21%)
 

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
Mass Harvest205978182024-08-24 10:19:23547 days ago1724494763IN
0xfD8Bcc62...CC645BbBE
0 ETH0.000198480.90752963
Mass Harvest195818982024-04-04 10:46:35689 days ago1712227595IN
0xfD8Bcc62...CC645BbBE
0 ETH0.0017010517.94875374
Mass Harvest183192572023-10-10 9:47:47866 days ago1696931267IN
0xfD8Bcc62...CC645BbBE
0 ETH0.000607025.74229632
Mass Harvest182115572023-09-25 8:17:35881 days ago1695629855IN
0xfD8Bcc62...CC645BbBE
0 ETH0.001749658
Mass Harvest180807122023-09-06 23:35:23899 days ago1694043323IN
0xfD8Bcc62...CC645BbBE
0 ETH0.001358989
Mass Harvest179557242023-08-20 11:41:23917 days ago1692531683IN
0xfD8Bcc62...CC645BbBE
0 ETH0.0026511512.12196377
Mass Harvest179460892023-08-19 3:17:23918 days ago1692415043IN
0xfD8Bcc62...CC645BbBE
0 ETH0.0025596814.78586134
Mass Harvest178555272023-08-06 11:10:11931 days ago1691320211IN
0xfD8Bcc62...CC645BbBE
0 ETH0.0025528811.67260362
Mass Harvest175710432023-06-27 13:40:35971 days ago1687873235IN
0xfD8Bcc62...CC645BbBE
0 ETH0.0033268215.21135291
Mass Harvest174992162023-06-17 11:25:47981 days ago1687001147IN
0xfD8Bcc62...CC645BbBE
0 ETH0.0035870915.21197578
Mass Harvest174368222023-06-08 16:41:47990 days ago1686242507IN
0xfD8Bcc62...CC645BbBE
0 ETH0.0061309826
Mass Harvest174202842023-06-06 8:39:11992 days ago1686040751IN
0xfD8Bcc62...CC645BbBE
0 ETH0.0023336620.09371894
Mass Harvest174073592023-06-04 12:51:35994 days ago1685883095IN
0xfD8Bcc62...CC645BbBE
0 ETH0.004369919.98065595
Mass Harvest173977472023-06-03 4:21:23995 days ago1685766083IN
0xfD8Bcc62...CC645BbBE
0 ETH0.0026111321.18358276
Mass Harvest173491542023-05-27 8:17:591002 days ago1685175479IN
0xfD8Bcc62...CC645BbBE
0 ETH0.0047879421.8920693
Mass Harvest172991282023-05-20 7:22:591009 days ago1684567379IN
0xfD8Bcc62...CC645BbBE
0 ETH0.0033187728.57589543
Mass Harvest172565062023-05-14 7:00:111015 days ago1684047611IN
0xfD8Bcc62...CC645BbBE
0 ETH0.0076547435
Mass Harvest171528502023-04-29 16:11:591030 days ago1682784719IN
0xfD8Bcc62...CC645BbBE
0 ETH0.0013112840
Mass Harvest171528502023-04-29 16:11:591030 days ago1682784719IN
0xfD8Bcc62...CC645BbBE
0 ETH0.0013112840
Mass Harvest171222322023-04-25 8:57:111034 days ago1682413031IN
0xfD8Bcc62...CC645BbBE
0 ETH0.0030871530.29740456
Mass Harvest171070382023-04-23 5:49:111036 days ago1682228951IN
0xfD8Bcc62...CC645BbBE
0 ETH0.0108255240
Mass Harvest170612112023-04-16 18:28:111043 days ago1681669691IN
0xfD8Bcc62...CC645BbBE
0 ETH0.0039000224.1303565
Mass Harvest170554822023-04-15 22:56:471043 days ago1681599407IN
0xfD8Bcc62...CC645BbBE
0 ETH0.0050792720.61269668
Mass Harvest170042342023-04-08 14:21:111051 days ago1680963671IN
0xfD8Bcc62...CC645BbBE
0 ETH0.002735919.91181089
Mass Harvest169893802023-04-06 11:49:231053 days ago1680781763IN
0xfD8Bcc62...CC645BbBE
0 ETH0.0036714325.02612917
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 0x2b31D07A...c00dFB21b
The constructor portion of the code might be different and could alter the actual behaviour of the contract

Contract Name:
YieldFarmToken

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 1000 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity Standard Json-Input format)

// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.6.0;

import "@openzeppelin/contracts-ethereum-package/contracts/math/SafeMath.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "./interfaces/IStaking.sol";

contract YieldFarmToken {
    // lib
    using SafeMath for uint;
    using SafeMath for uint128;

    // state variables

    // addreses
    address private _poolTokenAddress;
    address private _communityVault;

    // contracts
    IERC20 private _rewardToken;
    IStaking private _staking;

    uint public totalDistributedAmount;
    uint public numberOfEpochs;
    uint128 public  epochsDelayedFromStakingContract;
    uint[] private epochs;
    uint private _totalAmountPerEpoch;
    uint128 public lastInitializedEpoch;
    mapping(address => uint128) private lastEpochIdHarvested;
    uint public epochDuration; // init from staking contract
    uint public epochStart; // init from staking contract

    // events
    event MassHarvest(address indexed user, uint256 epochsHarvested, uint256 totalValue);
    event Harvest(address indexed user, uint128 indexed epochId, uint256 amount);

    // constructor
    constructor(address poolToken, address rewardToken, address stakeContract, address communityVault, uint distributedAmount, uint noOfEpochs, uint128 epochsDelayed) public {
        _rewardToken = IERC20(rewardToken);
        _poolTokenAddress = poolToken;
        _staking = IStaking(stakeContract);
        _communityVault = communityVault;
        totalDistributedAmount = distributedAmount;
        numberOfEpochs = noOfEpochs;
        epochs = new uint[](numberOfEpochs + 1);
        epochsDelayedFromStakingContract = epochsDelayed;
        epochDuration = _staking.epochDuration();
        epochStart = _staking.epoch1Start() + epochDuration.mul(epochsDelayedFromStakingContract);
        _totalAmountPerEpoch = totalDistributedAmount.div(numberOfEpochs);
    }

    // public methods
    // public method to harvest all the unharvested epochs until current epoch - 1
    function massHarvest() external returns (uint){
        uint totalDistributedValue;
        uint epochId = _getEpochId().sub(1); // fails in epoch 0
        // force max number of epochs
        if (epochId > numberOfEpochs) {
            epochId = numberOfEpochs;
        }

        for (uint128 i = lastEpochIdHarvested[msg.sender] + 1; i <= epochId; i++) {
            // i = epochId
            // compute distributed Value and do one single transfer at the end
            totalDistributedValue += _harvest(i);
        }

        emit MassHarvest(msg.sender, epochId - lastEpochIdHarvested[msg.sender], totalDistributedValue);

        if (totalDistributedValue > 0) {
            _rewardToken.transferFrom(_communityVault, msg.sender, totalDistributedValue);
        }

        return totalDistributedValue;
    }
    function harvest (uint128 epochId) external returns (uint){
        // checks for requested epoch
        require (_getEpochId() > epochId, "This epoch is in the future");
        require(epochId <= numberOfEpochs, "Maximum number of epochs is 12");
        require (lastEpochIdHarvested[msg.sender].add(1) == epochId, "Harvest in order");
        uint userReward = _harvest(epochId);
        if (userReward > 0) {
            _rewardToken.transferFrom(_communityVault, msg.sender, userReward);
        }
        emit Harvest(msg.sender, epochId, userReward);
        return userReward;
    }

    // views
    // calls to the staking smart contract to retrieve the epoch total pool size
    function getPoolSize(uint128 epochId) external view returns (uint) {
        return _getPoolSize(epochId);
    }

    function getCurrentEpoch() external view returns (uint) {
        return _getEpochId();
    }

    // calls to the staking smart contract to retrieve user balance for an epoch
    function getEpochStake(address userAddress, uint128 epochId) external view returns (uint) {
        return _getUserBalancePerEpoch(userAddress, epochId);
    }

    function userLastEpochIdHarvested() external view returns (uint){
        return lastEpochIdHarvested[msg.sender];
    }

    // internal methods

    function _initEpoch(uint128 epochId) internal {
        require(lastInitializedEpoch.add(1) == epochId, "Epoch can be init only in order");
        lastInitializedEpoch = epochId;
        // call the staking smart contract to init the epoch
        epochs[epochId] = _getPoolSize(epochId);
    }

    function _harvest (uint128 epochId) internal returns (uint) {
        // try to initialize an epoch. if it can't it fails
        // if it fails either user either a BarnBridge account will init not init epochs
        if (lastInitializedEpoch < epochId) {
            _initEpoch(epochId);
        }
        // Set user state for last harvested
        lastEpochIdHarvested[msg.sender] = epochId;
        // compute and return user total reward. For optimization reasons the transfer have been moved to an upper layer (i.e. massHarvest needs to do a single transfer)

        // exit if there is no stake on the epoch
        if (epochs[epochId] == 0) {
            return 0;
        }
        return _totalAmountPerEpoch
        .mul(_getUserBalancePerEpoch(msg.sender, epochId))
        .div(epochs[epochId]);
    }

    // retrieve _poolTokenAddress token balance
    function _getPoolSize(uint128 epochId) internal view returns (uint) {
        return _staking.getEpochPoolSize(_poolTokenAddress, _stakingEpochId(epochId));
    }

    // retrieve _poolTokenAddress token balance per user per epoch
    function _getUserBalancePerEpoch(address userAddress, uint128 epochId) internal view returns (uint){
        return _staking.getEpochUserBalance(userAddress, _poolTokenAddress, _stakingEpochId(epochId));
    }

    // compute epoch id from block.timestamp and epochStart date
    function _getEpochId() internal view returns (uint128 epochId) {
        if (block.timestamp < epochStart) {
            return 0;
        }
        epochId = uint128(block.timestamp.sub(epochStart).div(epochDuration).add(1));
    }

    // get the staking epoch
    function _stakingEpochId(uint128 epochId) internal view returns (uint128) {
        return epochId + epochsDelayedFromStakingContract;
    }
}

pragma solidity ^0.6.0;

/**
 * @dev Wrappers over Solidity's arithmetic operations with added overflow
 * checks.
 *
 * Arithmetic operations in Solidity wrap on overflow. This can easily result
 * in bugs, because programmers usually assume that an overflow raises an
 * error, which is the standard behavior in high level programming languages.
 * `SafeMath` restores this intuition by reverting the transaction when an
 * operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a + b;
        require(c >= a, "SafeMath: addition overflow");

        return c;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return sub(a, b, "SafeMath: subtraction overflow");
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b <= a, errorMessage);
        uint256 c = a - b;

        return c;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
        // benefit is lost if 'b' is also tested.
        // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
        if (a == 0) {
            return 0;
        }

        uint256 c = a * b;
        require(c / a == b, "SafeMath: multiplication overflow");

        return c;
    }

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return div(a, b, "SafeMath: division by zero");
    }

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        // Solidity only automatically asserts when dividing by 0
        require(b > 0, errorMessage);
        uint256 c = a / b;
        // assert(a == b * c + a % b); // There is no case in which this doesn't hold

        return c;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return mod(a, b, "SafeMath: modulo by zero");
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts with custom message when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b != 0, errorMessage);
        return a % b;
    }
}

// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @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 `recipient`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address recipient, 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 `sender` to `recipient` 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 sender, address recipient, uint256 amount) external returns (bool);

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

// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.6.0;

import "@openzeppelin/contracts/access/Ownable.sol";

interface IStaking {

    function getEpochId(uint timestamp) external view returns (uint); // get epoch id
    function getEpochUserBalance(address user, address token, uint128 epoch) external view returns(uint);
    function getEpochPoolSize(address token, uint128 epoch) external view returns (uint);
    function epoch1Start() external view returns (uint);
    function epochDuration() external view returns (uint);
}

// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <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 () internal {
        address msgSender = _msgSender();
        _owner = msgSender;
        emit OwnershipTransferred(address(0), 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 {
        emit OwnershipTransferred(_owner, address(0));
        _owner = 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");
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }
}

// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <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 GSN 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 payable) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes memory) {
        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        return msg.data;
    }
}

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

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"address","name":"poolToken","type":"address"},{"internalType":"address","name":"rewardToken","type":"address"},{"internalType":"address","name":"stakeContract","type":"address"},{"internalType":"address","name":"communityVault","type":"address"},{"internalType":"uint256","name":"distributedAmount","type":"uint256"},{"internalType":"uint256","name":"noOfEpochs","type":"uint256"},{"internalType":"uint128","name":"epochsDelayed","type":"uint128"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint128","name":"epochId","type":"uint128"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Harvest","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"epochsHarvested","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"totalValue","type":"uint256"}],"name":"MassHarvest","type":"event"},{"inputs":[],"name":"epochDuration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"epochStart","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"epochsDelayedFromStakingContract","outputs":[{"internalType":"uint128","name":"","type":"uint128"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getCurrentEpoch","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"userAddress","type":"address"},{"internalType":"uint128","name":"epochId","type":"uint128"}],"name":"getEpochStake","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint128","name":"epochId","type":"uint128"}],"name":"getPoolSize","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint128","name":"epochId","type":"uint128"}],"name":"harvest","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"lastInitializedEpoch","outputs":[{"internalType":"uint128","name":"","type":"uint128"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"massHarvest","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"numberOfEpochs","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalDistributedAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"userLastEpochIdHarvested","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]

0x60806040523480156200001157600080fd5b506040516200100d3803806200100d833981810160405260e08110156200003757600080fd5b508051602082015160408301516060840151608085015160a086015160c090960151600280546001600160a01b038088166001600160a01b03199283161790925560008054838a1690831617905560038054838816908316179055600180549286169290911691909117815560048390556005889055959694959394929391929182016001600160401b0381118015620000d057600080fd5b50604051908082528060200260200182016040528015620000fb578160200160208202803683370190505b5080516200011291600791602090910190620003d2565b50600680546001600160801b0319166001600160801b038316179055600354604080516327f843b560e11b815290516001600160a01b0390921691634ff0876a91600480820192602092909190829003018186803b1580156200017457600080fd5b505afa15801562000189573d6000803e3d6000fd5b505050506040513d6020811015620001a057600080fd5b5051600b819055600654620001cb91906001600160801b03166200027a602090811b620005f017901c565b600360009054906101000a90046001600160a01b03166001600160a01b031663f4a4341d6040518163ffffffff1660e01b815260040160206040518083038186803b1580156200021a57600080fd5b505afa1580156200022f573d6000803e3d6000fd5b505050506040513d60208110156200024657600080fd5b505101600c556005546004546200026991620002e1602090811b6200064917901c565b600855506200043995505050505050565b6000826200028b57506000620002db565b828202828482816200029957fe5b0414620002d85760405162461bcd60e51b815260040180806020018281038252602181526020018062000fec6021913960400191505060405180910390fd5b90505b92915050565b6000620002d883836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f0000000000008152506200032b60201b60201c565b60008183620003bb5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156200037f57818101518382015260200162000365565b50505050905090810190601f168015620003ad5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b506000838581620003c857fe5b0495945050505050565b82805482825590600052602060002090810192821562000410579160200282015b8281111562000410578251825591602001919060010190620003f3565b506200041e92915062000422565b5090565b5b808211156200041e576000815560010162000423565b610ba380620004496000396000f3fe608060405234801561001057600080fd5b50600436106100d45760003560e01c80634ff0876a11610081578063a43564eb1161005b578063a43564eb1461017c578063b97dd9e2146101a2578063f7e251f8146101aa576100d4565b80634ff0876a146101645780639c7ec8811461016c578063a1c130d414610174576100d4565b806317368841116100b2578063173688411461011f578063290e454414610127578063433124511461012f576100d4565b806305441ff1146100d957806315b5a029146100fd57806315e5a1e514610117575b600080fd5b6100e16101d0565b604080516001600160801b039092168252519081900360200190f35b6101056101df565b60408051918252519081900360200190f35b6101056101e5565b6101056101eb565b6101056101f1565b6101056004803603604081101561014557600080fd5b5080356001600160a01b031690602001356001600160801b0316610357565b61010561036c565b6100e1610372565b610105610381565b6101056004803603602081101561019257600080fd5b50356001600160801b031661039d565b6101056105cd565b610105600480360360208110156101c057600080fd5b50356001600160801b03166105e5565b6006546001600160801b031681565b60045481565b600c5481565b60055481565b6000806000610212600161020361068b565b6001600160801b0316906106d0565b905060055481111561022357506005545b336000908152600a60205260409020546001600160801b03166001015b81816001600160801b0316116102655761025981610712565b90920191600101610240565b50336000818152600a60209081526040918290205482516001600160801b039091168503815290810185905281517fb68dafc1da13dc868096d0b87347c831d0bda92d178317eb1dec7f788444485c929181900390910190a2811561035057600254600154604080516323b872dd60e01b81526001600160a01b03928316600482015233602482015260448101869052905191909216916323b872dd9160648083019260209291908290030181600087803b15801561032357600080fd5b505af1158015610337573d6000803e3d6000fd5b505050506040513d602081101561034d57600080fd5b50505b5090505b90565b600061036383836107cc565b90505b92915050565b600b5481565b6009546001600160801b031681565b336000908152600a60205260409020546001600160801b031690565b6000816001600160801b03166103b161068b565b6001600160801b03161161040c576040805162461bcd60e51b815260206004820152601b60248201527f546869732065706f636820697320696e20746865206675747572650000000000604482015290519081900360640190fd5b600554826001600160801b0316111561046c576040805162461bcd60e51b815260206004820152601e60248201527f4d6178696d756d206e756d626572206f662065706f6368732069732031320000604482015290519081900360640190fd5b336000908152600a60205260409020546001600160801b038084169161049491166001610883565b146104e6576040805162461bcd60e51b815260206004820152601060248201527f4861727665737420696e206f7264657200000000000000000000000000000000604482015290519081900360640190fd5b60006104f183610712565b9050801561058557600254600154604080516323b872dd60e01b81526001600160a01b03928316600482015233602482015260448101859052905191909216916323b872dd9160648083019260209291908290030181600087803b15801561055857600080fd5b505af115801561056c573d6000803e3d6000fd5b505050506040513d602081101561058257600080fd5b50505b6040805182815290516001600160801b0385169133917f04ad45a69eeed9c390c3a678fed2d4b90bde98e742de9936d5e0915bf3d0ea4e9181900360200190a390505b919050565b60006105d761068b565b6001600160801b0316905090565b6000610366826108dd565b6000826105ff57506000610366565b8282028284828161060c57fe5b04146103635760405162461bcd60e51b8152600401808060200182810382526021815260200180610b4d6021913960400191505060405180910390fd5b600061036383836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250610981565b6000600c5442101561069f57506000610354565b6106cb60016106c5600b546106bf600c54426106d090919063ffffffff16565b90610649565b90610883565b905090565b600061036383836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250610a23565b6009546000906001600160801b03808416911610156107345761073482610a7d565b336000908152600a6020526040902080546fffffffffffffffffffffffffffffffff19166001600160801b03841690811790915560078054909190811061077757fe5b906000526020600020015460001415610792575060006105c8565b6103666007836001600160801b0316815481106107ab57fe5b90600052602060002001546106bf6107c333866107cc565b600854906105f0565b6003546000805490916001600160a01b0390811691638c028dd0918691166107f386610b3c565b6040518463ffffffff1660e01b815260040180846001600160a01b03168152602001836001600160a01b03168152602001826001600160801b03168152602001935050505060206040518083038186803b15801561085057600080fd5b505afa158015610864573d6000803e3d6000fd5b505050506040513d602081101561087a57600080fd5b50519392505050565b600082820183811015610363576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b6003546000805490916001600160a01b0390811691632ca32d7e911661090285610b3c565b6040518363ffffffff1660e01b815260040180836001600160a01b03168152602001826001600160801b031681526020019250505060206040518083038186803b15801561094f57600080fd5b505afa158015610963573d6000803e3d6000fd5b505050506040513d602081101561097957600080fd5b505192915050565b60008183610a0d5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156109d25781810151838201526020016109ba565b50505050905090810190601f1680156109ff5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b506000838581610a1957fe5b0495945050505050565b60008184841115610a755760405162461bcd60e51b81526020600482018181528351602484015283519092839260449091019190850190808383600083156109d25781810151838201526020016109ba565b505050900390565b6009546001600160801b0380831691610a9891166001610883565b14610aea576040805162461bcd60e51b815260206004820152601f60248201527f45706f63682063616e20626520696e6974206f6e6c7920696e206f7264657200604482015290519081900360640190fd5b600980546fffffffffffffffffffffffffffffffff19166001600160801b038316179055610b17816108dd565b6007826001600160801b031681548110610b2d57fe5b60009182526020909120015550565b6006546001600160801b0316019056fe536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77a26469706673582212207972d956e86c86bbb15b021134779e5cd16ab77a797f2ee79b7f1fbc12ca96bf64736f6c634300060c0033536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f770000000000000000000000005b64c8d934b5e180cf1ca814584c2655d81c5b5c000000000000000000000000da0c94c73d127ee191955fb46bacd7ff999b2bcd0000000000000000000000007f4fe6776a9617847485d43db0d3a9b734e459c500000000000000000000000064bbbdf946463183763cdaf91f1ab9b7370fbf830000000000000000000000000000000000000000000006c6b935b8bbd40000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000003c

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100d45760003560e01c80634ff0876a11610081578063a43564eb1161005b578063a43564eb1461017c578063b97dd9e2146101a2578063f7e251f8146101aa576100d4565b80634ff0876a146101645780639c7ec8811461016c578063a1c130d414610174576100d4565b806317368841116100b2578063173688411461011f578063290e454414610127578063433124511461012f576100d4565b806305441ff1146100d957806315b5a029146100fd57806315e5a1e514610117575b600080fd5b6100e16101d0565b604080516001600160801b039092168252519081900360200190f35b6101056101df565b60408051918252519081900360200190f35b6101056101e5565b6101056101eb565b6101056101f1565b6101056004803603604081101561014557600080fd5b5080356001600160a01b031690602001356001600160801b0316610357565b61010561036c565b6100e1610372565b610105610381565b6101056004803603602081101561019257600080fd5b50356001600160801b031661039d565b6101056105cd565b610105600480360360208110156101c057600080fd5b50356001600160801b03166105e5565b6006546001600160801b031681565b60045481565b600c5481565b60055481565b6000806000610212600161020361068b565b6001600160801b0316906106d0565b905060055481111561022357506005545b336000908152600a60205260409020546001600160801b03166001015b81816001600160801b0316116102655761025981610712565b90920191600101610240565b50336000818152600a60209081526040918290205482516001600160801b039091168503815290810185905281517fb68dafc1da13dc868096d0b87347c831d0bda92d178317eb1dec7f788444485c929181900390910190a2811561035057600254600154604080516323b872dd60e01b81526001600160a01b03928316600482015233602482015260448101869052905191909216916323b872dd9160648083019260209291908290030181600087803b15801561032357600080fd5b505af1158015610337573d6000803e3d6000fd5b505050506040513d602081101561034d57600080fd5b50505b5090505b90565b600061036383836107cc565b90505b92915050565b600b5481565b6009546001600160801b031681565b336000908152600a60205260409020546001600160801b031690565b6000816001600160801b03166103b161068b565b6001600160801b03161161040c576040805162461bcd60e51b815260206004820152601b60248201527f546869732065706f636820697320696e20746865206675747572650000000000604482015290519081900360640190fd5b600554826001600160801b0316111561046c576040805162461bcd60e51b815260206004820152601e60248201527f4d6178696d756d206e756d626572206f662065706f6368732069732031320000604482015290519081900360640190fd5b336000908152600a60205260409020546001600160801b038084169161049491166001610883565b146104e6576040805162461bcd60e51b815260206004820152601060248201527f4861727665737420696e206f7264657200000000000000000000000000000000604482015290519081900360640190fd5b60006104f183610712565b9050801561058557600254600154604080516323b872dd60e01b81526001600160a01b03928316600482015233602482015260448101859052905191909216916323b872dd9160648083019260209291908290030181600087803b15801561055857600080fd5b505af115801561056c573d6000803e3d6000fd5b505050506040513d602081101561058257600080fd5b50505b6040805182815290516001600160801b0385169133917f04ad45a69eeed9c390c3a678fed2d4b90bde98e742de9936d5e0915bf3d0ea4e9181900360200190a390505b919050565b60006105d761068b565b6001600160801b0316905090565b6000610366826108dd565b6000826105ff57506000610366565b8282028284828161060c57fe5b04146103635760405162461bcd60e51b8152600401808060200182810382526021815260200180610b4d6021913960400191505060405180910390fd5b600061036383836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250610981565b6000600c5442101561069f57506000610354565b6106cb60016106c5600b546106bf600c54426106d090919063ffffffff16565b90610649565b90610883565b905090565b600061036383836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250610a23565b6009546000906001600160801b03808416911610156107345761073482610a7d565b336000908152600a6020526040902080546fffffffffffffffffffffffffffffffff19166001600160801b03841690811790915560078054909190811061077757fe5b906000526020600020015460001415610792575060006105c8565b6103666007836001600160801b0316815481106107ab57fe5b90600052602060002001546106bf6107c333866107cc565b600854906105f0565b6003546000805490916001600160a01b0390811691638c028dd0918691166107f386610b3c565b6040518463ffffffff1660e01b815260040180846001600160a01b03168152602001836001600160a01b03168152602001826001600160801b03168152602001935050505060206040518083038186803b15801561085057600080fd5b505afa158015610864573d6000803e3d6000fd5b505050506040513d602081101561087a57600080fd5b50519392505050565b600082820183811015610363576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b6003546000805490916001600160a01b0390811691632ca32d7e911661090285610b3c565b6040518363ffffffff1660e01b815260040180836001600160a01b03168152602001826001600160801b031681526020019250505060206040518083038186803b15801561094f57600080fd5b505afa158015610963573d6000803e3d6000fd5b505050506040513d602081101561097957600080fd5b505192915050565b60008183610a0d5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156109d25781810151838201526020016109ba565b50505050905090810190601f1680156109ff5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b506000838581610a1957fe5b0495945050505050565b60008184841115610a755760405162461bcd60e51b81526020600482018181528351602484015283519092839260449091019190850190808383600083156109d25781810151838201526020016109ba565b505050900390565b6009546001600160801b0380831691610a9891166001610883565b14610aea576040805162461bcd60e51b815260206004820152601f60248201527f45706f63682063616e20626520696e6974206f6e6c7920696e206f7264657200604482015290519081900360640190fd5b600980546fffffffffffffffffffffffffffffffff19166001600160801b038316179055610b17816108dd565b6007826001600160801b031681548110610b2d57fe5b60009182526020909120015550565b6006546001600160801b0316019056fe536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77a26469706673582212207972d956e86c86bbb15b021134779e5cd16ab77a797f2ee79b7f1fbc12ca96bf64736f6c634300060c0033

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.