ETH Price: $2,003.94 (-3.41%)
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

More Info

Private Name Tags

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Withdraw245129012026-02-22 14:06:474 days ago1771769207IN
0xae1Fc394...94C88BC24
0 ETH0.000003070.04613409
Harvest239590142025-12-07 5:56:1181 days ago1765086971IN
0xae1Fc394...94C88BC24
0 ETH0.000132232.24747878
Withdraw236366142025-10-23 0:24:59126 days ago1761179099IN
0xae1Fc394...94C88BC24
0 ETH0.000006510.09786406
Harvest225037632025-05-17 15:51:35285 days ago1747497095IN
0xae1Fc394...94C88BC24
0 ETH0.000148111.34915702
Withdraw215598022025-01-05 17:34:47417 days ago1736098487IN
0xae1Fc394...94C88BC24
0 ETH0.0008441712.67353188
Withdraw210440022024-10-25 17:03:59489 days ago1729875839IN
0xae1Fc394...94C88BC24
0 ETH0.0008859112.11638978
Harvest210439992024-10-25 17:03:23489 days ago1729875803IN
0xae1Fc394...94C88BC24
0 ETH0.0012795611.65562171
Withdraw204014902024-07-28 0:33:47578 days ago1722126827IN
0xae1Fc394...94C88BC24
0 ETH0.000145281.98735068
Harvest204014852024-07-28 0:32:47578 days ago1722126767IN
0xae1Fc394...94C88BC24
0 ETH0.000193562.08848073
Withdraw194707842024-03-19 19:10:11708 days ago1710875411IN
0xae1Fc394...94C88BC24
0 ETH0.0024875837.35282746
Withdraw And Har...194063712024-03-10 18:05:35718 days ago1710093935IN
0xae1Fc394...94C88BC24
0 ETH0.008815464.74727536
Withdraw And Har...188925452023-12-29 16:53:23790 days ago1703868803IN
0xae1Fc394...94C88BC24
0 ETH0.0042843835.99510701
Harvest188398692023-12-22 7:22:11797 days ago1703229731IN
0xae1Fc394...94C88BC24
0 ETH0.0043406739.54370417
Harvest186625502023-11-27 11:01:11822 days ago1701082871IN
0xae1Fc394...94C88BC24
0 ETH0.0034792431.69256258
Withdraw And Har...180259242023-08-30 7:27:11911 days ago1693380431IN
0xae1Fc394...94C88BC24
0 ETH0.0022391118.80616318
Withdraw180258792023-08-30 7:17:59911 days ago1693379879IN
0xae1Fc394...94C88BC24
0 ETH0.0014188919.48070537
Withdraw And Har...180258652023-08-30 7:15:11911 days ago1693379711IN
0xae1Fc394...94C88BC24
0 ETH0.0013217917.95214218
Withdraw And Har...180258612023-08-30 7:14:23911 days ago1693379663IN
0xae1Fc394...94C88BC24
0 ETH0.0013983218.99149961
Harvest179127792023-08-14 11:26:47927 days ago1692012407IN
0xae1Fc394...94C88BC24
0 ETH0.0014263912.99305957
Withdraw177611122023-07-24 6:14:59948 days ago1690179299IN
0xae1Fc394...94C88BC24
0 ETH0.0012994514.40371422
Harvest177610512023-07-24 6:02:47948 days ago1690178567IN
0xae1Fc394...94C88BC24
0 ETH0.0015313213.94894308
Withdraw174532952023-06-11 0:22:11991 days ago1686442931IN
0xae1Fc394...94C88BC24
0 ETH0.0011026215.08524006
Harvest174532682023-06-11 0:16:47991 days ago1686442607IN
0xae1Fc394...94C88BC24
0 ETH0.0017355215.80901698
Harvest174069262023-06-04 11:23:59998 days ago1685877839IN
0xae1Fc394...94C88BC24
0 ETH0.0019070421.69363259
Withdraw174069152023-06-04 11:21:47998 days ago1685877707IN
0xae1Fc394...94C88BC24
0 ETH0.0019053221.12211572
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 0x6755630c...19dB34922
The constructor portion of the code might be different and could alter the actual behaviour of the contract

Contract Name:
SingleStaking

Compiler Version
v0.8.6+commit.11564f7e

Optimization Enabled:
Yes with 800 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity Standard Json-Input format)

// SPDX-License-Identifier: MIT
// Reference: copied from https://github.com/sushiswap/sushiswap/blob/canary/contracts/MasterChefV2.sol
// Reference: https://github.com/sushiswap/sushiswap/blob/canary/contracts/MiniChefV2.sol

pragma solidity >=0.8.4;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "@openzeppelin/contracts/utils/Multicall.sol";
import "./interfaces/IRewarder.sol";
import "./libraries/SafeMath.sol";
import "./libraries/SignedSafeMath.sol";

// @notice Staking contract to reward Tokens for stakers
contract SingleStaking is Ownable, Multicall {
    using SafeMath for uint256;
    using SafeMath128 for uint128;
    using SafeERC20 for IERC20;
    using SignedSafeMath for int256;

    /// @notice Info of each stakers.
    /// `amount` LP token amount the user has provided.
    /// `rewardDebt` The amount of Token entitled to the user.
    struct UserInfo {
        uint256 amount;
        int256 rewardDebt;
    }

    // The amount of RewardToken entitled to a user but is pending to be distributed is:
    //
    //   pending reward = (user.amount * pool.accRewardPerShare) - user.rewardDebt
    //
    // Whenever a user deposits or withdraws LP tokens to a pool. Here's what happens:
    //   1. The pool's `accRewardPerShare` (and `lastRewardBlock`) gets updated.
    //   2. User receives the pending reward sent to his/her address.
    //   3. User's `amount` gets updated.
    //   4. User's `rewardDebt` gets updated.

    /// @notice Info of each Staking pool.
    /// `allocPoint` The amount of allocation points assigned to the pool.
    /// Also known as the amount of Token to distribute per block.
    struct PoolInfo {
        uint128 accRewardPerShare;
        uint64 lastRewardBlock;
        uint64 allocPoint;
    }

    /// @notice Address of Reward Token contract.
    IERC20 public immutable rewardToken;

    /// @notice Info of each Staking pool.
    PoolInfo[] public poolInfo;
    /// @notice Address of the LP token for each Staking pool.
    IERC20[] public lpToken;
    /// @notice Address of each `IRewarder` contract in Staking.
    IRewarder[] public rewarder;
    
    // @notice reward owner address which owns reward tokens
    address public rewardOwner;

    /// @notice Info of each user that stakes LP tokens.
    mapping(uint256 => mapping(address => UserInfo)) public userInfo;
    /// @dev Total allocation points. Must be the sum of all allocation points in all pools.
    uint256 public totalAllocPoint;

    uint256 public blockReward;
    uint256 private constant ACC_PRECISION = 1e12;

    event Deposit(address indexed user, uint256 indexed pid, uint256 amount, address indexed to);
    event Withdraw(address indexed user, uint256 indexed pid, uint256 amount, address indexed to);
    event EmergencyWithdraw(address indexed user, uint256 indexed pid, uint256 amount, address indexed to);
    event Harvest(address indexed user, uint256 indexed pid, uint256 amount);
    event LogPoolAddition(uint256 indexed pid, uint256 allocPoint, IERC20 indexed lpToken, IRewarder indexed rewarder);
    event LogSetPool(uint256 indexed pid, uint256 allocPoint, IRewarder indexed rewarder, bool overwrite);
    event LogUpdatePool(uint256 indexed pid, uint64 lastRewardBlock, uint256 lpSupply, uint256 accRewardPerShare);
    event LogInit();
    event LogBlockReward(uint256 blockReward);

    /// @param _rewardToken The reward token contract address.
    /// @param _blockReward Initial Token Reward per block.
    constructor(IERC20 _rewardToken, address _rewardOwner, uint256 _blockReward) public {
        rewardToken = _rewardToken;
        blockReward = _blockReward;
        rewardOwner = _rewardOwner;
    }

    /// @notice Sets the reward owner.
    function setRewardOwner(address _rewardOwner) public onlyOwner {
        rewardOwner = _rewardOwner;
    }

    /// @notice set block reward.
    function setBlockReward(uint256 _blockReward) public onlyOwner {
        massUpdatePools();
        blockReward = _blockReward;
        emit LogBlockReward(_blockReward);
    }

    /// @notice Returns the number of Staking pools.
    function poolLength() public view returns (uint256 pools) {
        pools = poolInfo.length;
    }

    function checkPoolDuplicate(IERC20 _lpToken) public {
        uint256 length = lpToken.length;
        for (uint256 pid = 0; pid < length; ++pid) {
            require(lpToken[pid] != _lpToken, "Staking: existing pool");
        }
    }

    /// @notice Add a new LP to the pool. Can only be called by the owner.
    /// DO NOT add the same LP token more than once. Rewards will be messed up if you do.
    /// @param allocPoint AP of the new pool.
    /// @param _lpToken Address of the LP ERC-20 token.
    /// @param _rewarder Address of the rewarder delegate.
    function add(
        uint256 allocPoint,
        IERC20 _lpToken,
        IRewarder _rewarder
    ) public onlyOwner {
        checkPoolDuplicate(_lpToken);

        uint256 lastRewardBlock = block.number;
        totalAllocPoint = totalAllocPoint.add(allocPoint);
        lpToken.push(_lpToken);
        rewarder.push(_rewarder);

        poolInfo.push(
            PoolInfo({ allocPoint: allocPoint.to64(), lastRewardBlock: lastRewardBlock.to64(), accRewardPerShare: 0 })
        );
        emit LogPoolAddition(lpToken.length.sub(1), allocPoint, _lpToken, _rewarder);
    }

    /// @notice Update the given pool's Reward token allocation point and `IRewarder` contract. Can only be called by the owner.
    /// @param _pid The index of the pool. See `poolInfo`.
    /// @param _allocPoint New AP of the pool.
    /// @param _rewarder Address of the rewarder delegate.
    /// @param overwrite True if _rewarder should be `set`. Otherwise `_rewarder` is ignored.
    function set(
        uint256 _pid,
        uint256 _allocPoint,
        IRewarder _rewarder,
        bool overwrite
    ) public onlyOwner {
        massUpdatePools();
        totalAllocPoint = totalAllocPoint.sub(poolInfo[_pid].allocPoint).add(_allocPoint);
        poolInfo[_pid].allocPoint = _allocPoint.to64();
        if (overwrite) {
            rewarder[_pid] = _rewarder;
        }
        emit LogSetPool(_pid, _allocPoint, overwrite ? _rewarder : rewarder[_pid], overwrite);
    }

    /// @notice View function to see pending Rewards on frontend.
    /// @param _pid The index of the pool. See `poolInfo`.
    /// @param _user Address of user.
    /// @return pending Token reward for a given user.
    function pendingRewards(uint256 _pid, address _user) external view returns (uint256 pending) {
        PoolInfo memory pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][_user];
        uint256 accRewardPerShare = pool.accRewardPerShare;
        uint256 lpSupply = lpToken[_pid].balanceOf(address(this));
        if (block.number > pool.lastRewardBlock && lpSupply != 0) {
            uint256 blocks = block.number.sub(pool.lastRewardBlock);
            uint256 rewards = blocks.mul(blockReward).mul(pool.allocPoint) / totalAllocPoint;
            accRewardPerShare = accRewardPerShare.add(rewards.mul(ACC_PRECISION) / lpSupply);
        }
        pending = int256(user.amount.mul(accRewardPerShare) / ACC_PRECISION).sub(user.rewardDebt).toUInt256();
    }

    /// @notice Update reward variables for all pools. Be careful of gas spending!
    function massUpdatePools() public {
        uint256 length = poolInfo.length;
        for (uint256 pid = 0; pid < length; ++pid) {
            updatePool(pid);
        }
    }

    /// @notice Update reward variables of the given pool.
    /// @param pid The index of the pool. See `poolInfo`.
    /// @return pool Returns the pool that was updated.
    function updatePool(uint256 pid) public returns (PoolInfo memory pool) {
        pool = poolInfo[pid];
        if (block.number > pool.lastRewardBlock) {
            uint256 lpSupply = lpToken[pid].balanceOf(address(this));
            if (lpSupply > 0) {
                uint256 blocks = block.number.sub(pool.lastRewardBlock);
                uint256 rewards = blocks.mul(blockReward).mul(pool.allocPoint) / totalAllocPoint;
                pool.accRewardPerShare = pool.accRewardPerShare.add((rewards.mul(ACC_PRECISION) / lpSupply).to128());
            }
            pool.lastRewardBlock = block.number.to64();
            poolInfo[pid] = pool;
            emit LogUpdatePool(pid, pool.lastRewardBlock, lpSupply, pool.accRewardPerShare);
        }
    }

    /// @notice Deposit LP tokens to Staking contract for Reward token allocation.
    /// @param pid The index of the pool. See `poolInfo`.
    /// @param amount LP token amount to deposit.
    /// @param to The receiver of `amount` deposit benefit.
    function deposit(
        uint256 pid,
        uint256 amount,
        address to
    ) public {
        PoolInfo memory pool = updatePool(pid);
        UserInfo storage user = userInfo[pid][to];

        // Effects
        user.amount = user.amount.add(amount);
        user.rewardDebt = user.rewardDebt.add(int256(amount.mul(pool.accRewardPerShare) / ACC_PRECISION));

        // Interactions
        IRewarder _rewarder = rewarder[pid];
        if (address(_rewarder) != address(0)) {
            _rewarder.onTokenReward(pid, to, to, 0, user.amount);
        }

        lpToken[pid].safeTransferFrom(msg.sender, address(this), amount);

        emit Deposit(msg.sender, pid, amount, to);
    }

    /// @notice Withdraw LP tokens from Staking contract.
    /// @param pid The index of the pool. See `poolInfo`.
    /// @param amount LP token amount to withdraw.
    /// @param to Receiver of the LP tokens.
    function withdraw(
        uint256 pid,
        uint256 amount,
        address to
    ) public {
        PoolInfo memory pool = updatePool(pid);
        UserInfo storage user = userInfo[pid][msg.sender];

        // Effects
        user.rewardDebt = user.rewardDebt.sub(int256(amount.mul(pool.accRewardPerShare) / ACC_PRECISION));
        user.amount = user.amount.sub(amount);

        // Interactions
        IRewarder _rewarder = rewarder[pid];
        if (address(_rewarder) != address(0)) {
            _rewarder.onTokenReward(pid, msg.sender, to, 0, user.amount);
        }

        lpToken[pid].safeTransfer(to, amount);

        emit Withdraw(msg.sender, pid, amount, to);
    }

    /// @notice Harvest proceeds for transaction sender to `to`.
    /// @param pid The index of the pool. See `poolInfo`.
    /// @param to Receiver of Token rewards.
    function harvest(uint256 pid, address to) public {
        PoolInfo memory pool = updatePool(pid);
        UserInfo storage user = userInfo[pid][msg.sender];
        int256 accumulatedRewards = int256(user.amount.mul(pool.accRewardPerShare) / ACC_PRECISION);
        uint256 _pendingRewards = accumulatedRewards.sub(user.rewardDebt).toUInt256();

        // Effects
        user.rewardDebt = accumulatedRewards;

        // Interactions
        if (_pendingRewards != 0) {
            rewardToken.safeTransferFrom(rewardOwner, to, _pendingRewards);
        }

        IRewarder _rewarder = rewarder[pid];
        if (address(_rewarder) != address(0)) {
            _rewarder.onTokenReward(pid, msg.sender, to, _pendingRewards, user.amount);
        }

        emit Harvest(msg.sender, pid, _pendingRewards);
    }

    /// @notice Withdraw LP tokens from Staking contract and harvest proceeds for transaction sender to `to`.
    /// @param pid The index of the pool. See `poolInfo`.
    /// @param amount LP token amount to withdraw.
    /// @param to Receiver of the LP tokens and Token rewards.
    function withdrawAndHarvest(
        uint256 pid,
        uint256 amount,
        address to
    ) public {
        PoolInfo memory pool = updatePool(pid);
        UserInfo storage user = userInfo[pid][msg.sender];
        int256 accumulatedRewards = int256(user.amount.mul(pool.accRewardPerShare) / ACC_PRECISION);
        uint256 _pendingRewards = accumulatedRewards.sub(user.rewardDebt).toUInt256();

        // Effects
        user.rewardDebt = accumulatedRewards.sub(int256(amount.mul(pool.accRewardPerShare) / ACC_PRECISION));
        user.amount = user.amount.sub(amount);

        // Interactions
        rewardToken.safeTransferFrom(rewardOwner, to, _pendingRewards);

        IRewarder _rewarder = rewarder[pid];
        if (address(_rewarder) != address(0)) {
            _rewarder.onTokenReward(pid, msg.sender, to, _pendingRewards, user.amount);
        }

        lpToken[pid].safeTransfer(to, amount);

        emit Withdraw(msg.sender, pid, amount, to);
        emit Harvest(msg.sender, pid, _pendingRewards);
    }

    /// @notice Withdraw without caring about rewards. EMERGENCY ONLY.
    /// @param pid The index of the pool. See `poolInfo`.
    /// @param to Receiver of the LP tokens.
    function emergencyWithdraw(uint256 pid, address to) public {
        UserInfo storage user = userInfo[pid][msg.sender];
        uint256 amount = user.amount;
        user.amount = 0;
        user.rewardDebt = 0;

        IRewarder _rewarder = rewarder[pid];
        if (address(_rewarder) != address(0)) {
            _rewarder.onTokenReward(pid, msg.sender, to, 0, 0);
        }

        // Note: transfer can fail or succeed if `amount` is zero.
        lpToken[pid].safeTransfer(to, amount);
        emit EmergencyWithdraw(msg.sender, pid, amount, to);
    }
}

// SPDX-License-Identifier: MIT

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() {
        _setOwner(_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 {
        _setOwner(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");
        _setOwner(newOwner);
    }

    function _setOwner(address newOwner) private {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC20.sol";
import "../../../utils/Address.sol";

/**
 * @title SafeERC20
 * @dev Wrappers around ERC20 operations that throw on failure (when the token
 * contract returns false). Tokens that return no value (and instead revert or
 * throw on failure) are also supported, non-reverting calls are assumed to be
 * successful.
 * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeERC20 {
    using Address for address;

    function safeTransfer(
        IERC20 token,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    function safeTransferFrom(
        IERC20 token,
        address from,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
    }

    /**
     * @dev Deprecated. This function has issues similar to the ones found in
     * {IERC20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    function safeApprove(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        require(
            (value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

    function safeIncreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        uint256 newAllowance = token.allowance(address(this), spender) + value;
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    function safeDecreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        unchecked {
            uint256 oldAllowance = token.allowance(address(this), spender);
            require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
            uint256 newAllowance = oldAllowance - value;
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
        }
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function _callOptionalReturn(IERC20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that
        // the target address contains contract code and also asserts for success in the low-level call.

        bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
        if (returndata.length > 0) {
            // Return data is optional
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

File 4 of 10 : Multicall.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./Address.sol";

/**
 * @dev Provides a function to batch together multiple calls in a single external call.
 *
 * _Available since v4.1._
 */
abstract contract Multicall {
    /**
     * @dev Receives and executes a batch of function calls on this contract.
     */
    function multicall(bytes[] calldata data) external returns (bytes[] memory results) {
        results = new bytes[](data.length);
        for (uint256 i = 0; i < data.length; i++) {
            results[i] = Address.functionDelegateCall(address(this), data[i]);
        }
        return results;
    }
}

// SPDX-License-Identifier: MIT

pragma solidity >=0.8.4;

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

interface IRewarder {
    function onTokenReward(uint256 pid, address user, address recipient, uint256 tokenAmount, uint256 newLpAmount) external;
    function pendingTokens(uint256 pid, address user, uint256 tokenAmount) external view returns (IERC20[] memory, uint256[] memory);
}

// SPDX-License-Identifier: MIT
pragma solidity >=0.8.4;

/// reference: https://github.com/boringcrypto/BoringSolidity/blob/master/contracts/libraries/BoringMath.sol
/// changelog: renamed "BoringMath" => "SafeMath"
/// @notice A library for performing overflow-/underflow-safe math,
/// updated with awesomeness from of DappHub (https://github.com/dapphub/ds-math).
library SafeMath {
    function add(uint256 a, uint256 b) internal pure returns (uint256 c) {
        require((c = a + b) >= b, "SafeMath: Add Overflow");
    }

    function sub(uint256 a, uint256 b) internal pure returns (uint256 c) {
        require((c = a - b) <= a, "SafeMath: Underflow");
    }

    function mul(uint256 a, uint256 b) internal pure returns (uint256 c) {
        require(b == 0 || (c = a * b) / b == a, "SafeMath: Mul Overflow");
    }

    function to128(uint256 a) internal pure returns (uint128 c) {
        require(a <= type(uint128).max, "SafeMath: uint128 Overflow");
        c = uint128(a);
    }

    function to64(uint256 a) internal pure returns (uint64 c) {
        require(a <= type(uint64).max, "SafeMath: uint64 Overflow");
        c = uint64(a);
    }

    function to32(uint256 a) internal pure returns (uint32 c) {
        require(a <= type(uint32).max, "SafeMath: uint32 Overflow");
        c = uint32(a);
    }
}

/// @notice A library for performing overflow-/underflow-safe addition and subtraction on uint128.
library SafeMath128 {
    function add(uint128 a, uint128 b) internal pure returns (uint128 c) {
        require((c = a + b) >= b, "SafeMath: Add Overflow");
    }

    function sub(uint128 a, uint128 b) internal pure returns (uint128 c) {
        require((c = a - b) <= a, "SafeMath: Underflow");
    }
}

/// @notice A library for performing overflow-/underflow-safe addition and subtraction on uint64.
library SafeMath64 {
    function add(uint64 a, uint64 b) internal pure returns (uint64 c) {
        require((c = a + b) >= b, "SafeMath: Add Overflow");
    }

    function sub(uint64 a, uint64 b) internal pure returns (uint64 c) {
        require((c = a - b) <= a, "SafeMath: Underflow");
    }
}

/// @notice A library for performing overflow-/underflow-safe addition and subtraction on uint32.
library SafeMath32 {
    function add(uint32 a, uint32 b) internal pure returns (uint32 c) {
        require((c = a + b) >= b, "SafeMath: Add Overflow");
    }

    function sub(uint32 a, uint32 b) internal pure returns (uint32 c) {
        require((c = a - b) <= a, "SafeMath: Underflow");
    }
}

// SPDX-License-Identifier: MIT

pragma solidity >=0.8.4;

library SignedSafeMath {
    int256 constant private _INT256_MIN = -2**255;

    /**
     * @dev Returns the multiplication of two signed integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(int256 a, int256 b) internal pure returns (int256) {
        // 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;
        }

        require(!(a == -1 && b == _INT256_MIN), "SignedSafeMath: multiplication overflow");

        int256 c = a * b;
        require(c / a == b, "SignedSafeMath: multiplication overflow");

        return c;
    }

    /**
     * @dev Returns the integer division of two signed 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(int256 a, int256 b) internal pure returns (int256) {
        require(b != 0, "SignedSafeMath: division by zero");
        require(!(b == -1 && a == _INT256_MIN), "SignedSafeMath: division overflow");

        int256 c = a / b;

        return c;
    }

    /**
     * @dev Returns the subtraction of two signed integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(int256 a, int256 b) internal pure returns (int256) {
        int256 c = a - b;
        require((b >= 0 && c <= a) || (b < 0 && c > a), "SignedSafeMath: subtraction overflow");

        return c;
    }

    /**
     * @dev Returns the addition of two signed integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(int256 a, int256 b) internal pure returns (int256) {
        int256 c = a + b;
        require((b >= 0 && c >= a) || (b < 0 && c < a), "SignedSafeMath: addition overflow");

        return c;
    }

    function toUInt256(int256 a) internal pure returns (uint256) {
        require(a >= 0, "Integer < 0");
        return uint256(a);
    }
}

// SPDX-License-Identifier: MIT

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: MIT

pragma solidity ^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: MIT

pragma solidity ^0.8.0;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        (bool success, ) = recipient.call{value: amount}("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain `call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionCall(target, data, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        require(isContract(target), "Address: call to non-contract");

        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        require(isContract(target), "Address: static call to non-contract");

        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionDelegateCall(target, data, "Address: low-level delegate call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(isContract(target), "Address: delegate call to non-contract");

        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

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

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"contract IERC20","name":"_rewardToken","type":"address"},{"internalType":"address","name":"_rewardOwner","type":"address"},{"internalType":"uint256","name":"_blockReward","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"EmergencyWithdraw","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Harvest","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"blockReward","type":"uint256"}],"name":"LogBlockReward","type":"event"},{"anonymous":false,"inputs":[],"name":"LogInit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"allocPoint","type":"uint256"},{"indexed":true,"internalType":"contract IERC20","name":"lpToken","type":"address"},{"indexed":true,"internalType":"contract IRewarder","name":"rewarder","type":"address"}],"name":"LogPoolAddition","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"allocPoint","type":"uint256"},{"indexed":true,"internalType":"contract IRewarder","name":"rewarder","type":"address"},{"indexed":false,"internalType":"bool","name":"overwrite","type":"bool"}],"name":"LogSetPool","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint64","name":"lastRewardBlock","type":"uint64"},{"indexed":false,"internalType":"uint256","name":"lpSupply","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"accRewardPerShare","type":"uint256"}],"name":"LogUpdatePool","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"Withdraw","type":"event"},{"inputs":[{"internalType":"uint256","name":"allocPoint","type":"uint256"},{"internalType":"contract IERC20","name":"_lpToken","type":"address"},{"internalType":"contract IRewarder","name":"_rewarder","type":"address"}],"name":"add","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"blockReward","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"_lpToken","type":"address"}],"name":"checkPoolDuplicate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"pid","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"to","type":"address"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"pid","type":"uint256"},{"internalType":"address","name":"to","type":"address"}],"name":"emergencyWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"pid","type":"uint256"},{"internalType":"address","name":"to","type":"address"}],"name":"harvest","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"lpToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"massUpdatePools","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes[]","name":"data","type":"bytes[]"}],"name":"multicall","outputs":[{"internalType":"bytes[]","name":"results","type":"bytes[]"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"address","name":"_user","type":"address"}],"name":"pendingRewards","outputs":[{"internalType":"uint256","name":"pending","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"poolInfo","outputs":[{"internalType":"uint128","name":"accRewardPerShare","type":"uint128"},{"internalType":"uint64","name":"lastRewardBlock","type":"uint64"},{"internalType":"uint64","name":"allocPoint","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"poolLength","outputs":[{"internalType":"uint256","name":"pools","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rewardOwner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"rewarder","outputs":[{"internalType":"contract IRewarder","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_allocPoint","type":"uint256"},{"internalType":"contract IRewarder","name":"_rewarder","type":"address"},{"internalType":"bool","name":"overwrite","type":"bool"}],"name":"set","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_blockReward","type":"uint256"}],"name":"setBlockReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_rewardOwner","type":"address"}],"name":"setRewardOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"totalAllocPoint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"pid","type":"uint256"}],"name":"updatePool","outputs":[{"components":[{"internalType":"uint128","name":"accRewardPerShare","type":"uint128"},{"internalType":"uint64","name":"lastRewardBlock","type":"uint64"},{"internalType":"uint64","name":"allocPoint","type":"uint64"}],"internalType":"struct SingleStaking.PoolInfo","name":"pool","type":"tuple"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"","type":"address"}],"name":"userInfo","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"int256","name":"rewardDebt","type":"int256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"pid","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"to","type":"address"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"pid","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"to","type":"address"}],"name":"withdrawAndHarvest","outputs":[],"stateMutability":"nonpayable","type":"function"}]

0x60a06040523480156200001157600080fd5b50604051620028f0380380620028f08339810160408190526200003491620000cd565b6200003f336200007d565b60609290921b6001600160601b031916608052600791909155600480546001600160a01b0319166001600160a01b039092169190911790556200012e565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600080600060608486031215620000e357600080fd5b8351620000f08162000115565b6020850151909350620001038162000115565b80925050604084015190509250925092565b6001600160a01b03811681146200012b57600080fd5b50565b60805160601c6127956200015b60003960008181610433015281816106da01526117fd01526127956000f3fe608060405234801561001057600080fd5b50600436106101ae5760003560e01c806378ed5d1f116100ee578063ab7de09811610097578063d18df53c11610071578063d18df53c146103f5578063d1abb90714610408578063f2fde38b1461041b578063f7c618c11461042e57600080fd5b8063ab7de098146103af578063ac9650d8146103c2578063c346253d146103e257600080fd5b80638da5cb5b116100c85780638da5cb5b146103445780638dbdbe6d1461035557806393f1a40b1461036857600080fd5b806378ed5d1f146102f357806385049c391461031e57806388bba42f1461033157600080fd5b80631a18e7071161015b5780634809b429116101355780634809b4291461028057806351eb05a614610293578063630b5ba1146102e3578063715018a6146102eb57600080fd5b80631a18e707146102475780632f940c701461025a578063322d0d4a1461026d57600080fd5b80631526fe271161018c5780631526fe27146101e857806317caf6f11461022b57806318fccc761461023457600080fd5b8063081e3eda146101b35780630ac168a1146101ca5780630ad58d2f146101d3575b600080fd5b6001545b6040519081526020015b60405180910390f35b6101b760075481565b6101e66101e1366004612418565b610455565b005b6101fb6101f6366004612374565b610600565b604080516001600160801b03909416845267ffffffffffffffff92831660208501529116908201526060016101c1565b6101b760065481565b6101e66102423660046123a6565b610646565b6101e6610255366004612374565b6107f1565b6101e66102683660046123a6565b610893565b6101e661027b3660046122c5565b6109d1565b6101e661028e3660046122c5565b610a74565b6102a66102a1366004612374565b610afd565b6040805182516001600160801b0316815260208084015167ffffffffffffffff9081169183019190915292820151909216908201526060016101c1565b6101e6610dce565b6101e6610dfa565b610306610301366004612374565b610e60565b6040516001600160a01b0390911681526020016101c1565b600454610306906001600160a01b031681565b6101e661033f366004612446565b610e8a565b6000546001600160a01b0316610306565b6101e6610363366004612418565b611055565b61039a6103763660046123a6565b60056020908152600092835260408084209091529082529020805460019091015482565b604080519283526020830191909152016101c1565b6101e66103bd3660046123d6565b6111fc565b6103d56103d03660046122e2565b611425565b6040516101c191906124d8565b6103066103f0366004612374565b61151b565b6101b76104033660046123a6565b61152b565b6101e6610416366004612418565b61172e565b6101e66104293660046122c5565b61197b565b6103067f000000000000000000000000000000000000000000000000000000000000000081565b600061046084610afd565b600085815260056020908152604080832033845290915290208151919250906104b39064e8d4a510009061049e9087906001600160801b0316611a5d565b6104a8919061261e565b600183015490611acd565b600182015580546104c49085611b61565b81556003805460009190879081106104de576104de612712565b6000918252602090912001546001600160a01b031690508015610576578154604051634a2f4b4360e01b8152600481018890523360248201526001600160a01b03868116604483015260006064830152608482019290925290821690634a2f4b439060a401600060405180830381600087803b15801561055d57600080fd5b505af1158015610571573d6000803e3d6000fd5b505050505b6105aa84866002898154811061058e5761058e612712565b6000918252602090912001546001600160a01b03169190611bbf565b836001600160a01b031686336001600160a01b03167f8166bf25f8a2b7ed3c85049207da4358d16edbed977d23fa2ee6f0dde3ec2132886040516105f091815260200190565b60405180910390a4505050505050565b6001818154811061061057600080fd5b6000918252602090912001546001600160801b038116915067ffffffffffffffff600160801b8204811691600160c01b90041683565b600061065183610afd565b6000848152600560209081526040808320338452909152812082518154939450909264e8d4a510009161068d91906001600160801b0316611a5d565b610697919061261e565b905060006106ba6106b5846001015484611acd90919063ffffffff16565b611c4f565b600184018390559050801561070457600454610704906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000811691168784611ca5565b60006003878154811061071957610719612712565b6000918252602090912001546001600160a01b0316905080156107b1578354604051634a2f4b4360e01b8152600481018990523360248201526001600160a01b03888116604483015260648201859052608482019290925290821690634a2f4b439060a401600060405180830381600087803b15801561079857600080fd5b505af11580156107ac573d6000803e3d6000fd5b505050505b604051828152879033907f71bab65ced2e5750775a0613be067df48ef06cf92a496ebf7663ae06609249549060200160405180910390a350505050505050565b6000546001600160a01b031633146108505760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b610858610dce565b60078190556040518181527f6eaeb72062d2bc4e2cc8146176ebae51b223a5b5a2397b7db752ac39250eb4639060200160405180910390a150565b600082815260056020908152604080832033845290915281208054828255600182018390556003805492939192869081106108d0576108d0612712565b6000918252602090912001546001600160a01b03169050801561096457604051634a2f4b4360e01b8152600481018690523360248201526001600160a01b0385811660448301526000606483018190526084830152821690634a2f4b439060a401600060405180830381600087803b15801561094b57600080fd5b505af115801561095f573d6000803e3d6000fd5b505050505b61097c84836002888154811061058e5761058e612712565b836001600160a01b031685336001600160a01b03167f2cac5e20e1541d836381527a43f651851e302817b71dc8e810284e69210c1c6b856040516109c291815260200190565b60405180910390a45050505050565b60025460005b81811015610a6f57826001600160a01b0316600282815481106109fc576109fc612712565b6000918252602090912001546001600160a01b03161415610a5f5760405162461bcd60e51b815260206004820152601660248201527f5374616b696e673a206578697374696e6720706f6f6c000000000000000000006044820152606401610847565b610a68816126e1565b90506109d7565b505050565b6000546001600160a01b03163314610ace5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610847565b6004805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b604080516060810182526000808252602082018190529181019190915260018281548110610b2d57610b2d612712565b60009182526020918290206040805160608101825292909101546001600160801b038116835267ffffffffffffffff600160801b82048116948401859052600160c01b90910416908201529150431115610dc957600060028381548110610b9657610b96612712565b6000918252602090912001546040516370a0823160e01b81523060048201526001600160a01b03909116906370a082319060240160206040518083038186803b158015610be257600080fd5b505afa158015610bf6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c1a919061238d565b90508015610cc9576000610c45836020015167ffffffffffffffff1643611b6190919063ffffffff16565b90506000600654610c79856040015167ffffffffffffffff16610c7360075486611a5d90919063ffffffff16565b90611a5d565b610c83919061261e565b9050610cbb610caa84610c9b8464e8d4a51000611a5d565b610ca5919061261e565b611ce3565b85516001600160801b031690611d3c565b6001600160801b0316845250505b610cd243611dac565b67ffffffffffffffff1660208301526001805483919085908110610cf857610cf8612712565b60009182526020918290208351910180548484015160409586015167ffffffffffffffff908116600160c01b0277ffffffffffffffffffffffffffffffffffffffffffffffff928216600160801b0277ffffffffffffffffffffffffffffffffffffffffffffffff199094166001600160801b039687161793909317919091169190911790915585830151865185519190921681529283018590521681830152905184917f0fc9545022a542541ad085d091fb09a2ab36fee366a4576ab63714ea907ad353919081900360600190a2505b919050565b60015460005b81811015610df657610de581610afd565b50610def816126e1565b9050610dd4565b5050565b6000546001600160a01b03163314610e545760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610847565b610e5e6000611e06565b565b60028181548110610e7057600080fd5b6000918252602090912001546001600160a01b0316905081565b6000546001600160a01b03163314610ee45760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610847565b610eec610dce565b610f3283610f2c60018781548110610f0657610f06612712565b60009182526020909120015460065490600160c01b900467ffffffffffffffff16611b61565b90611e63565b600655610f3e83611dac565b60018581548110610f5157610f51612712565b9060005260206000200160000160186101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055508015610fcd578160038581548110610f9e57610f9e612712565b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b031602179055505b80610fff5760038481548110610fe557610fe5612712565b6000918252602090912001546001600160a01b0316611001565b815b6001600160a01b0316847f95895a6ab1df54420d241b55243258a33e61b2194db66c1179ec521aae8e186585846040516110479291909182521515602082015260400190565b60405180910390a350505050565b600061106084610afd565b60008581526005602090815260408083206001600160a01b038716845290915290208054919250906110929085611e63565b815581516110ca9064e8d4a51000906110b59087906001600160801b0316611a5d565b6110bf919061261e565b600183015490611ec1565b81600101819055506000600386815481106110e7576110e7612712565b6000918252602090912001546001600160a01b031690508015611180578154604051634a2f4b4360e01b8152600481018890526001600160a01b0386811660248301819052604483015260006064830152608482019290925290821690634a2f4b439060a401600060405180830381600087803b15801561116757600080fd5b505af115801561117b573d6000803e3d6000fd5b505050505b6111b633308760028a8154811061119957611199612712565b6000918252602090912001546001600160a01b0316929190611ca5565b836001600160a01b031686336001600160a01b03167f02d7e648dd130fc184d383e55bb126ac4c9c60e8f94bf05acdf557ba2d540b47886040516105f091815260200190565b6000546001600160a01b031633146112565760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610847565b61125f826109d1565b600654439061126e9085611e63565b6006556002805460018181019092557f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace0180546001600160a01b0380871673ffffffffffffffffffffffffffffffffffffffff199283161790925560038054808501825560009182527fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b0180549387169390921692909217905560408051606081019091529081526020810161132384611dac565b67ffffffffffffffff16815260200161133b87611dac565b67ffffffffffffffff9081169091528254600181810185556000948552602094859020845192018054958501516040909501518416600160c01b0277ffffffffffffffffffffffffffffffffffffffffffffffff95909416600160801b0277ffffffffffffffffffffffffffffffffffffffffffffffff199096166001600160801b039093169290921794909417929092161790556002546001600160a01b0380851692908616916113ec91611b61565b6040518781527f81ee0f8c5c46e2cb41984886f77a84181724abb86c32a5f6de539b07509d45e59060200160405180910390a450505050565b60608167ffffffffffffffff81111561144057611440612728565b60405190808252806020026020018201604052801561147357816020015b606081526020019060019003908161145e5790505b50905060005b82811015611513576114e33085858481811061149757611497612712565b90506020028101906114a9919061254d565b8080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250611f4c92505050565b8282815181106114f5576114f5612712565b6020026020010181905250808061150b906126e1565b915050611479565b505b92915050565b60038181548110610e7057600080fd5b6000806001848154811061154157611541612712565b600091825260208083206040805160608101825291909301546001600160801b03808216835267ffffffffffffffff600160801b8304811684860152600160c01b90920490911682850152888552600583528385206001600160a01b03891686529092529183208251600280549496509194921692889081106115c6576115c6612712565b6000918252602090912001546040516370a0823160e01b81523060048201526001600160a01b03909116906370a082319060240160206040518083038186803b15801561161257600080fd5b505afa158015611626573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061164a919061238d565b9050836020015167ffffffffffffffff164311801561166857508015155b156116f3576000611690856020015167ffffffffffffffff1643611b6190919063ffffffff16565b905060006006546116be876040015167ffffffffffffffff16610c7360075486611a5d90919063ffffffff16565b6116c8919061261e565b90506116ee836116dd8364e8d4a51000611a5d565b6116e7919061261e565b8590611e63565b935050505b60018301548354611723916106b59164e8d4a51000906117139087611a5d565b61171d919061261e565b90611acd565b979650505050505050565b600061173984610afd565b6000858152600560209081526040808320338452909152812082518154939450909264e8d4a510009161177591906001600160801b0316611a5d565b61177f919061261e565b9050600061179d6106b5846001015484611acd90919063ffffffff16565b90506117d964e8d4a510006117c886600001516001600160801b031689611a5d90919063ffffffff16565b6117d2919061261e565b8390611acd565b600184015582546117ea9087611b61565b8355600454611827906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000811691168784611ca5565b60006003888154811061183c5761183c612712565b6000918252602090912001546001600160a01b0316905080156118d4578354604051634a2f4b4360e01b8152600481018a90523360248201526001600160a01b03888116604483015260648201859052608482019290925290821690634a2f4b439060a401600060405180830381600087803b1580156118bb57600080fd5b505af11580156118cf573d6000803e3d6000fd5b505050505b6118ec868860028b8154811061058e5761058e612712565b856001600160a01b031688336001600160a01b03167f8166bf25f8a2b7ed3c85049207da4358d16edbed977d23fa2ee6f0dde3ec21328a60405161193291815260200190565b60405180910390a4604051828152889033907f71bab65ced2e5750775a0613be067df48ef06cf92a496ebf7663ae06609249549060200160405180910390a35050505050505050565b6000546001600160a01b031633146119d55760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610847565b6001600160a01b038116611a515760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610847565b611a5a81611e06565b50565b6000811580611a8157508282611a738183612640565b9250611a7f908361261e565b145b6115155760405162461bcd60e51b815260206004820152601660248201527f536166654d6174683a204d756c204f766572666c6f77000000000000000000006044820152606401610847565b600080611ada838561265f565b905060008312158015611aed5750838113155b80611b025750600083128015611b0257508381135b611b5a5760405162461bcd60e51b8152602060048201526024808201527f5369676e6564536166654d6174683a207375627472616374696f6e206f766572604482015263666c6f7760e01b6064820152608401610847565b9392505050565b600082611b6e838261269e565b91508111156115155760405162461bcd60e51b815260206004820152601360248201527f536166654d6174683a20556e646572666c6f77000000000000000000000000006044820152606401610847565b6040516001600160a01b038316602482015260448101829052610a6f90849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff0000000000000000000000000000000000000000000000000000000090931692909217909152611f71565b600080821215611ca15760405162461bcd60e51b815260206004820152600b60248201527f496e7465676572203c20300000000000000000000000000000000000000000006044820152606401610847565b5090565b6040516001600160a01b0380851660248301528316604482015260648101829052611cdd9085906323b872dd60e01b90608401611beb565b50505050565b60006001600160801b03821115611ca15760405162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a2075696e74313238204f766572666c6f770000000000006044820152606401610847565b60006001600160801b038216611d5283856125db565b9150816001600160801b031610156115155760405162461bcd60e51b815260206004820152601660248201527f536166654d6174683a20416464204f766572666c6f77000000000000000000006044820152606401610847565b600067ffffffffffffffff821115611ca15760405162461bcd60e51b815260206004820152601960248201527f536166654d6174683a2075696e743634204f766572666c6f77000000000000006044820152606401610847565b600080546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600081611e708185612606565b91508110156115155760405162461bcd60e51b815260206004820152601660248201527f536166654d6174683a20416464204f766572666c6f77000000000000000000006044820152606401610847565b600080611ece838561259b565b905060008312158015611ee15750838112155b80611ef65750600083128015611ef657508381125b611b5a5760405162461bcd60e51b815260206004820152602160248201527f5369676e6564536166654d6174683a206164646974696f6e206f766572666c6f6044820152607760f81b6064820152608401610847565b6060611b5a838360405180606001604052806027815260200161276260279139612056565b6000611fc6826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166121419092919063ffffffff16565b805190915015610a6f5780806020019051810190611fe49190612357565b610a6f5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401610847565b6060833b6120cc5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f60448201527f6e747261637400000000000000000000000000000000000000000000000000006064820152608401610847565b600080856001600160a01b0316856040516120e791906124bc565b600060405180830381855af49150503d8060008114612122576040519150601f19603f3d011682016040523d82523d6000602084013e612127565b606091505b5091509150612137828286612158565b9695505050505050565b60606121508484600085612191565b949350505050565b60608315612167575081611b5a565b8251156121775782518084602001fd5b8160405162461bcd60e51b8152600401610847919061253a565b6060824710156122095760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c00000000000000000000000000000000000000000000000000006064820152608401610847565b843b6122575760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610847565b600080866001600160a01b0316858760405161227391906124bc565b60006040518083038185875af1925050503d80600081146122b0576040519150601f19603f3d011682016040523d82523d6000602084013e6122b5565b606091505b5091509150611723828286612158565b6000602082840312156122d757600080fd5b8135611b5a8161273e565b600080602083850312156122f557600080fd5b823567ffffffffffffffff8082111561230d57600080fd5b818501915085601f83011261232157600080fd5b81358181111561233057600080fd5b8660208260051b850101111561234557600080fd5b60209290920196919550909350505050565b60006020828403121561236957600080fd5b8151611b5a81612753565b60006020828403121561238657600080fd5b5035919050565b60006020828403121561239f57600080fd5b5051919050565b600080604083850312156123b957600080fd5b8235915060208301356123cb8161273e565b809150509250929050565b6000806000606084860312156123eb57600080fd5b8335925060208401356123fd8161273e565b9150604084013561240d8161273e565b809150509250925092565b60008060006060848603121561242d57600080fd5b8335925060208401359150604084013561240d8161273e565b6000806000806080858703121561245c57600080fd5b843593506020850135925060408501356124758161273e565b9150606085013561248581612753565b939692955090935050565b600081518084526124a88160208601602086016126b5565b601f01601f19169290920160200192915050565b600082516124ce8184602087016126b5565b9190910192915050565b6000602080830181845280855180835260408601915060408160051b870101925083870160005b8281101561252d57603f1988860301845261251b858351612490565b945092850192908501906001016124ff565b5092979650505050505050565b602081526000611b5a6020830184612490565b6000808335601e1984360301811261256457600080fd5b83018035915067ffffffffffffffff82111561257f57600080fd5b60200191503681900382131561259457600080fd5b9250929050565b6000808212826001600160ff1b03038413811516156125bc576125bc6126fc565b600160ff1b83900384128116156125d5576125d56126fc565b50500190565b60006001600160801b038083168185168083038211156125fd576125fd6126fc565b01949350505050565b60008219821115612619576126196126fc565b500190565b60008261263b57634e487b7160e01b600052601260045260246000fd5b500490565b600081600019048311821515161561265a5761265a6126fc565b500290565b60008083128015600160ff1b85018412161561267d5761267d6126fc565b836001600160ff1b03018313811615612698576126986126fc565b50500390565b6000828210156126b0576126b06126fc565b500390565b60005b838110156126d05781810151838201526020016126b8565b83811115611cdd5750506000910152565b60006000198214156126f5576126f56126fc565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114611a5a57600080fd5b8015158114611a5a57600080fdfe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a164736f6c6343000806000a000000000000000000000000a5f2211b9b8170f694421f2046281775e8468044000000000000000000000000dd20057b8a4f9565cb871a244f04447be5b03e080000000000000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101ae5760003560e01c806378ed5d1f116100ee578063ab7de09811610097578063d18df53c11610071578063d18df53c146103f5578063d1abb90714610408578063f2fde38b1461041b578063f7c618c11461042e57600080fd5b8063ab7de098146103af578063ac9650d8146103c2578063c346253d146103e257600080fd5b80638da5cb5b116100c85780638da5cb5b146103445780638dbdbe6d1461035557806393f1a40b1461036857600080fd5b806378ed5d1f146102f357806385049c391461031e57806388bba42f1461033157600080fd5b80631a18e7071161015b5780634809b429116101355780634809b4291461028057806351eb05a614610293578063630b5ba1146102e3578063715018a6146102eb57600080fd5b80631a18e707146102475780632f940c701461025a578063322d0d4a1461026d57600080fd5b80631526fe271161018c5780631526fe27146101e857806317caf6f11461022b57806318fccc761461023457600080fd5b8063081e3eda146101b35780630ac168a1146101ca5780630ad58d2f146101d3575b600080fd5b6001545b6040519081526020015b60405180910390f35b6101b760075481565b6101e66101e1366004612418565b610455565b005b6101fb6101f6366004612374565b610600565b604080516001600160801b03909416845267ffffffffffffffff92831660208501529116908201526060016101c1565b6101b760065481565b6101e66102423660046123a6565b610646565b6101e6610255366004612374565b6107f1565b6101e66102683660046123a6565b610893565b6101e661027b3660046122c5565b6109d1565b6101e661028e3660046122c5565b610a74565b6102a66102a1366004612374565b610afd565b6040805182516001600160801b0316815260208084015167ffffffffffffffff9081169183019190915292820151909216908201526060016101c1565b6101e6610dce565b6101e6610dfa565b610306610301366004612374565b610e60565b6040516001600160a01b0390911681526020016101c1565b600454610306906001600160a01b031681565b6101e661033f366004612446565b610e8a565b6000546001600160a01b0316610306565b6101e6610363366004612418565b611055565b61039a6103763660046123a6565b60056020908152600092835260408084209091529082529020805460019091015482565b604080519283526020830191909152016101c1565b6101e66103bd3660046123d6565b6111fc565b6103d56103d03660046122e2565b611425565b6040516101c191906124d8565b6103066103f0366004612374565b61151b565b6101b76104033660046123a6565b61152b565b6101e6610416366004612418565b61172e565b6101e66104293660046122c5565b61197b565b6103067f000000000000000000000000a5f2211b9b8170f694421f2046281775e846804481565b600061046084610afd565b600085815260056020908152604080832033845290915290208151919250906104b39064e8d4a510009061049e9087906001600160801b0316611a5d565b6104a8919061261e565b600183015490611acd565b600182015580546104c49085611b61565b81556003805460009190879081106104de576104de612712565b6000918252602090912001546001600160a01b031690508015610576578154604051634a2f4b4360e01b8152600481018890523360248201526001600160a01b03868116604483015260006064830152608482019290925290821690634a2f4b439060a401600060405180830381600087803b15801561055d57600080fd5b505af1158015610571573d6000803e3d6000fd5b505050505b6105aa84866002898154811061058e5761058e612712565b6000918252602090912001546001600160a01b03169190611bbf565b836001600160a01b031686336001600160a01b03167f8166bf25f8a2b7ed3c85049207da4358d16edbed977d23fa2ee6f0dde3ec2132886040516105f091815260200190565b60405180910390a4505050505050565b6001818154811061061057600080fd5b6000918252602090912001546001600160801b038116915067ffffffffffffffff600160801b8204811691600160c01b90041683565b600061065183610afd565b6000848152600560209081526040808320338452909152812082518154939450909264e8d4a510009161068d91906001600160801b0316611a5d565b610697919061261e565b905060006106ba6106b5846001015484611acd90919063ffffffff16565b611c4f565b600184018390559050801561070457600454610704906001600160a01b037f000000000000000000000000a5f2211b9b8170f694421f2046281775e8468044811691168784611ca5565b60006003878154811061071957610719612712565b6000918252602090912001546001600160a01b0316905080156107b1578354604051634a2f4b4360e01b8152600481018990523360248201526001600160a01b03888116604483015260648201859052608482019290925290821690634a2f4b439060a401600060405180830381600087803b15801561079857600080fd5b505af11580156107ac573d6000803e3d6000fd5b505050505b604051828152879033907f71bab65ced2e5750775a0613be067df48ef06cf92a496ebf7663ae06609249549060200160405180910390a350505050505050565b6000546001600160a01b031633146108505760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b610858610dce565b60078190556040518181527f6eaeb72062d2bc4e2cc8146176ebae51b223a5b5a2397b7db752ac39250eb4639060200160405180910390a150565b600082815260056020908152604080832033845290915281208054828255600182018390556003805492939192869081106108d0576108d0612712565b6000918252602090912001546001600160a01b03169050801561096457604051634a2f4b4360e01b8152600481018690523360248201526001600160a01b0385811660448301526000606483018190526084830152821690634a2f4b439060a401600060405180830381600087803b15801561094b57600080fd5b505af115801561095f573d6000803e3d6000fd5b505050505b61097c84836002888154811061058e5761058e612712565b836001600160a01b031685336001600160a01b03167f2cac5e20e1541d836381527a43f651851e302817b71dc8e810284e69210c1c6b856040516109c291815260200190565b60405180910390a45050505050565b60025460005b81811015610a6f57826001600160a01b0316600282815481106109fc576109fc612712565b6000918252602090912001546001600160a01b03161415610a5f5760405162461bcd60e51b815260206004820152601660248201527f5374616b696e673a206578697374696e6720706f6f6c000000000000000000006044820152606401610847565b610a68816126e1565b90506109d7565b505050565b6000546001600160a01b03163314610ace5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610847565b6004805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b604080516060810182526000808252602082018190529181019190915260018281548110610b2d57610b2d612712565b60009182526020918290206040805160608101825292909101546001600160801b038116835267ffffffffffffffff600160801b82048116948401859052600160c01b90910416908201529150431115610dc957600060028381548110610b9657610b96612712565b6000918252602090912001546040516370a0823160e01b81523060048201526001600160a01b03909116906370a082319060240160206040518083038186803b158015610be257600080fd5b505afa158015610bf6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c1a919061238d565b90508015610cc9576000610c45836020015167ffffffffffffffff1643611b6190919063ffffffff16565b90506000600654610c79856040015167ffffffffffffffff16610c7360075486611a5d90919063ffffffff16565b90611a5d565b610c83919061261e565b9050610cbb610caa84610c9b8464e8d4a51000611a5d565b610ca5919061261e565b611ce3565b85516001600160801b031690611d3c565b6001600160801b0316845250505b610cd243611dac565b67ffffffffffffffff1660208301526001805483919085908110610cf857610cf8612712565b60009182526020918290208351910180548484015160409586015167ffffffffffffffff908116600160c01b0277ffffffffffffffffffffffffffffffffffffffffffffffff928216600160801b0277ffffffffffffffffffffffffffffffffffffffffffffffff199094166001600160801b039687161793909317919091169190911790915585830151865185519190921681529283018590521681830152905184917f0fc9545022a542541ad085d091fb09a2ab36fee366a4576ab63714ea907ad353919081900360600190a2505b919050565b60015460005b81811015610df657610de581610afd565b50610def816126e1565b9050610dd4565b5050565b6000546001600160a01b03163314610e545760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610847565b610e5e6000611e06565b565b60028181548110610e7057600080fd5b6000918252602090912001546001600160a01b0316905081565b6000546001600160a01b03163314610ee45760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610847565b610eec610dce565b610f3283610f2c60018781548110610f0657610f06612712565b60009182526020909120015460065490600160c01b900467ffffffffffffffff16611b61565b90611e63565b600655610f3e83611dac565b60018581548110610f5157610f51612712565b9060005260206000200160000160186101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055508015610fcd578160038581548110610f9e57610f9e612712565b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b031602179055505b80610fff5760038481548110610fe557610fe5612712565b6000918252602090912001546001600160a01b0316611001565b815b6001600160a01b0316847f95895a6ab1df54420d241b55243258a33e61b2194db66c1179ec521aae8e186585846040516110479291909182521515602082015260400190565b60405180910390a350505050565b600061106084610afd565b60008581526005602090815260408083206001600160a01b038716845290915290208054919250906110929085611e63565b815581516110ca9064e8d4a51000906110b59087906001600160801b0316611a5d565b6110bf919061261e565b600183015490611ec1565b81600101819055506000600386815481106110e7576110e7612712565b6000918252602090912001546001600160a01b031690508015611180578154604051634a2f4b4360e01b8152600481018890526001600160a01b0386811660248301819052604483015260006064830152608482019290925290821690634a2f4b439060a401600060405180830381600087803b15801561116757600080fd5b505af115801561117b573d6000803e3d6000fd5b505050505b6111b633308760028a8154811061119957611199612712565b6000918252602090912001546001600160a01b0316929190611ca5565b836001600160a01b031686336001600160a01b03167f02d7e648dd130fc184d383e55bb126ac4c9c60e8f94bf05acdf557ba2d540b47886040516105f091815260200190565b6000546001600160a01b031633146112565760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610847565b61125f826109d1565b600654439061126e9085611e63565b6006556002805460018181019092557f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace0180546001600160a01b0380871673ffffffffffffffffffffffffffffffffffffffff199283161790925560038054808501825560009182527fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b0180549387169390921692909217905560408051606081019091529081526020810161132384611dac565b67ffffffffffffffff16815260200161133b87611dac565b67ffffffffffffffff9081169091528254600181810185556000948552602094859020845192018054958501516040909501518416600160c01b0277ffffffffffffffffffffffffffffffffffffffffffffffff95909416600160801b0277ffffffffffffffffffffffffffffffffffffffffffffffff199096166001600160801b039093169290921794909417929092161790556002546001600160a01b0380851692908616916113ec91611b61565b6040518781527f81ee0f8c5c46e2cb41984886f77a84181724abb86c32a5f6de539b07509d45e59060200160405180910390a450505050565b60608167ffffffffffffffff81111561144057611440612728565b60405190808252806020026020018201604052801561147357816020015b606081526020019060019003908161145e5790505b50905060005b82811015611513576114e33085858481811061149757611497612712565b90506020028101906114a9919061254d565b8080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250611f4c92505050565b8282815181106114f5576114f5612712565b6020026020010181905250808061150b906126e1565b915050611479565b505b92915050565b60038181548110610e7057600080fd5b6000806001848154811061154157611541612712565b600091825260208083206040805160608101825291909301546001600160801b03808216835267ffffffffffffffff600160801b8304811684860152600160c01b90920490911682850152888552600583528385206001600160a01b03891686529092529183208251600280549496509194921692889081106115c6576115c6612712565b6000918252602090912001546040516370a0823160e01b81523060048201526001600160a01b03909116906370a082319060240160206040518083038186803b15801561161257600080fd5b505afa158015611626573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061164a919061238d565b9050836020015167ffffffffffffffff164311801561166857508015155b156116f3576000611690856020015167ffffffffffffffff1643611b6190919063ffffffff16565b905060006006546116be876040015167ffffffffffffffff16610c7360075486611a5d90919063ffffffff16565b6116c8919061261e565b90506116ee836116dd8364e8d4a51000611a5d565b6116e7919061261e565b8590611e63565b935050505b60018301548354611723916106b59164e8d4a51000906117139087611a5d565b61171d919061261e565b90611acd565b979650505050505050565b600061173984610afd565b6000858152600560209081526040808320338452909152812082518154939450909264e8d4a510009161177591906001600160801b0316611a5d565b61177f919061261e565b9050600061179d6106b5846001015484611acd90919063ffffffff16565b90506117d964e8d4a510006117c886600001516001600160801b031689611a5d90919063ffffffff16565b6117d2919061261e565b8390611acd565b600184015582546117ea9087611b61565b8355600454611827906001600160a01b037f000000000000000000000000a5f2211b9b8170f694421f2046281775e8468044811691168784611ca5565b60006003888154811061183c5761183c612712565b6000918252602090912001546001600160a01b0316905080156118d4578354604051634a2f4b4360e01b8152600481018a90523360248201526001600160a01b03888116604483015260648201859052608482019290925290821690634a2f4b439060a401600060405180830381600087803b1580156118bb57600080fd5b505af11580156118cf573d6000803e3d6000fd5b505050505b6118ec868860028b8154811061058e5761058e612712565b856001600160a01b031688336001600160a01b03167f8166bf25f8a2b7ed3c85049207da4358d16edbed977d23fa2ee6f0dde3ec21328a60405161193291815260200190565b60405180910390a4604051828152889033907f71bab65ced2e5750775a0613be067df48ef06cf92a496ebf7663ae06609249549060200160405180910390a35050505050505050565b6000546001600160a01b031633146119d55760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610847565b6001600160a01b038116611a515760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610847565b611a5a81611e06565b50565b6000811580611a8157508282611a738183612640565b9250611a7f908361261e565b145b6115155760405162461bcd60e51b815260206004820152601660248201527f536166654d6174683a204d756c204f766572666c6f77000000000000000000006044820152606401610847565b600080611ada838561265f565b905060008312158015611aed5750838113155b80611b025750600083128015611b0257508381135b611b5a5760405162461bcd60e51b8152602060048201526024808201527f5369676e6564536166654d6174683a207375627472616374696f6e206f766572604482015263666c6f7760e01b6064820152608401610847565b9392505050565b600082611b6e838261269e565b91508111156115155760405162461bcd60e51b815260206004820152601360248201527f536166654d6174683a20556e646572666c6f77000000000000000000000000006044820152606401610847565b6040516001600160a01b038316602482015260448101829052610a6f90849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff0000000000000000000000000000000000000000000000000000000090931692909217909152611f71565b600080821215611ca15760405162461bcd60e51b815260206004820152600b60248201527f496e7465676572203c20300000000000000000000000000000000000000000006044820152606401610847565b5090565b6040516001600160a01b0380851660248301528316604482015260648101829052611cdd9085906323b872dd60e01b90608401611beb565b50505050565b60006001600160801b03821115611ca15760405162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a2075696e74313238204f766572666c6f770000000000006044820152606401610847565b60006001600160801b038216611d5283856125db565b9150816001600160801b031610156115155760405162461bcd60e51b815260206004820152601660248201527f536166654d6174683a20416464204f766572666c6f77000000000000000000006044820152606401610847565b600067ffffffffffffffff821115611ca15760405162461bcd60e51b815260206004820152601960248201527f536166654d6174683a2075696e743634204f766572666c6f77000000000000006044820152606401610847565b600080546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600081611e708185612606565b91508110156115155760405162461bcd60e51b815260206004820152601660248201527f536166654d6174683a20416464204f766572666c6f77000000000000000000006044820152606401610847565b600080611ece838561259b565b905060008312158015611ee15750838112155b80611ef65750600083128015611ef657508381125b611b5a5760405162461bcd60e51b815260206004820152602160248201527f5369676e6564536166654d6174683a206164646974696f6e206f766572666c6f6044820152607760f81b6064820152608401610847565b6060611b5a838360405180606001604052806027815260200161276260279139612056565b6000611fc6826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166121419092919063ffffffff16565b805190915015610a6f5780806020019051810190611fe49190612357565b610a6f5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401610847565b6060833b6120cc5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f60448201527f6e747261637400000000000000000000000000000000000000000000000000006064820152608401610847565b600080856001600160a01b0316856040516120e791906124bc565b600060405180830381855af49150503d8060008114612122576040519150601f19603f3d011682016040523d82523d6000602084013e612127565b606091505b5091509150612137828286612158565b9695505050505050565b60606121508484600085612191565b949350505050565b60608315612167575081611b5a565b8251156121775782518084602001fd5b8160405162461bcd60e51b8152600401610847919061253a565b6060824710156122095760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c00000000000000000000000000000000000000000000000000006064820152608401610847565b843b6122575760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610847565b600080866001600160a01b0316858760405161227391906124bc565b60006040518083038185875af1925050503d80600081146122b0576040519150601f19603f3d011682016040523d82523d6000602084013e6122b5565b606091505b5091509150611723828286612158565b6000602082840312156122d757600080fd5b8135611b5a8161273e565b600080602083850312156122f557600080fd5b823567ffffffffffffffff8082111561230d57600080fd5b818501915085601f83011261232157600080fd5b81358181111561233057600080fd5b8660208260051b850101111561234557600080fd5b60209290920196919550909350505050565b60006020828403121561236957600080fd5b8151611b5a81612753565b60006020828403121561238657600080fd5b5035919050565b60006020828403121561239f57600080fd5b5051919050565b600080604083850312156123b957600080fd5b8235915060208301356123cb8161273e565b809150509250929050565b6000806000606084860312156123eb57600080fd5b8335925060208401356123fd8161273e565b9150604084013561240d8161273e565b809150509250925092565b60008060006060848603121561242d57600080fd5b8335925060208401359150604084013561240d8161273e565b6000806000806080858703121561245c57600080fd5b843593506020850135925060408501356124758161273e565b9150606085013561248581612753565b939692955090935050565b600081518084526124a88160208601602086016126b5565b601f01601f19169290920160200192915050565b600082516124ce8184602087016126b5565b9190910192915050565b6000602080830181845280855180835260408601915060408160051b870101925083870160005b8281101561252d57603f1988860301845261251b858351612490565b945092850192908501906001016124ff565b5092979650505050505050565b602081526000611b5a6020830184612490565b6000808335601e1984360301811261256457600080fd5b83018035915067ffffffffffffffff82111561257f57600080fd5b60200191503681900382131561259457600080fd5b9250929050565b6000808212826001600160ff1b03038413811516156125bc576125bc6126fc565b600160ff1b83900384128116156125d5576125d56126fc565b50500190565b60006001600160801b038083168185168083038211156125fd576125fd6126fc565b01949350505050565b60008219821115612619576126196126fc565b500190565b60008261263b57634e487b7160e01b600052601260045260246000fd5b500490565b600081600019048311821515161561265a5761265a6126fc565b500290565b60008083128015600160ff1b85018412161561267d5761267d6126fc565b836001600160ff1b03018313811615612698576126986126fc565b50500390565b6000828210156126b0576126b06126fc565b500390565b60005b838110156126d05781810151838201526020016126b8565b83811115611cdd5750506000910152565b60006000198214156126f5576126f56126fc565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114611a5a57600080fd5b8015158114611a5a57600080fdfe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a164736f6c6343000806000a

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.