ETH Price: $3,771.47 (-0.01%)

Contract

0x184C1da4e33EE3093aF05C9100ac9b0D5e78eFCB
 

Overview

ETH Balance

0 ETH

ETH Value

$0.00

Sponsored

Transaction Hash
Method
Block
From
To
Value
0x60806040145858352022-07-15 15:20:30677 days ago1657898430IN
 Create: LPStakingRewards
0 ETH0.00000220.001

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block From To Value
1075582952023-07-30 11:09:27297 days ago1690715367
0x184C1da4...D5e78eFCB
0 ETH
1075542252023-07-30 8:53:47297 days ago1690707227
0x184C1da4...D5e78eFCB
0 ETH
1075542192023-07-30 8:53:35297 days ago1690707215
0x184C1da4...D5e78eFCB
0 ETH
1075518542023-07-30 7:34:45297 days ago1690702485
0x184C1da4...D5e78eFCB
0 ETH
1075497912023-07-30 6:25:59297 days ago1690698359
0x184C1da4...D5e78eFCB
0 ETH
1075496802023-07-30 6:22:17297 days ago1690698137
0x184C1da4...D5e78eFCB
0 ETH
1075486462023-07-30 5:47:49297 days ago1690696069
0x184C1da4...D5e78eFCB
0 ETH
1075468802023-07-30 4:48:57297 days ago1690692537
0x184C1da4...D5e78eFCB
0 ETH
1075393082023-07-30 0:36:33297 days ago1690677393
0x184C1da4...D5e78eFCB
0 ETH
1075369222023-07-29 23:17:01297 days ago1690672621
0x184C1da4...D5e78eFCB
0 ETH
1075367982023-07-29 23:12:53297 days ago1690672373
0x184C1da4...D5e78eFCB
0 ETH
1075285192023-07-29 18:36:55297 days ago1690655815
0x184C1da4...D5e78eFCB
0 ETH
1075283262023-07-29 18:30:29297 days ago1690655429
0x184C1da4...D5e78eFCB
0 ETH
1075276282023-07-29 18:07:13297 days ago1690654033
0x184C1da4...D5e78eFCB
0 ETH
1075273162023-07-29 17:56:49297 days ago1690653409
0x184C1da4...D5e78eFCB
0 ETH
1075242022023-07-29 16:13:01298 days ago1690647181
0x184C1da4...D5e78eFCB
0 ETH
1075232572023-07-29 15:41:31298 days ago1690645291
0x184C1da4...D5e78eFCB
0 ETH
1075226842023-07-29 15:22:25298 days ago1690644145
0x184C1da4...D5e78eFCB
0 ETH
1075222912023-07-29 15:09:19298 days ago1690643359
0x184C1da4...D5e78eFCB
0 ETH
1075219302023-07-29 14:57:17298 days ago1690642637
0x184C1da4...D5e78eFCB
0 ETH
1075214662023-07-29 14:41:49298 days ago1690641709
0x184C1da4...D5e78eFCB
0 ETH
1075193992023-07-29 13:32:55298 days ago1690637575
0x184C1da4...D5e78eFCB
0 ETH
1075192472023-07-29 13:27:51298 days ago1690637271
0x184C1da4...D5e78eFCB
0 ETH
1075179922023-07-29 12:46:01298 days ago1690634761
0x184C1da4...D5e78eFCB
0 ETH
1075169622023-07-29 12:11:41298 days ago1690632701
0x184C1da4...D5e78eFCB
0 ETH
View All Internal Transactions

Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
LPStakingRewards

Compiler Version
v0.5.16+commit.9c3226ce

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 9 : LPStakingDoubleRewards.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.5.16;

import "openzeppelin-solidity-2.3.0/contracts/math/SafeMath.sol";
import "openzeppelin-solidity-2.3.0/contracts/token/ERC20/SafeERC20.sol";
import "@openzeppelin/upgrades-core/contracts/Initializable.sol";

import "../utils/proxy/ProxyReentrancyGuard.sol";
import "../utils/proxy/ProxyOwned.sol";
import "../utils/proxy/ProxyPausable.sol";

contract LPStakingRewards is Initializable, ProxyOwned, ProxyReentrancyGuard, ProxyPausable {
    using SafeMath for uint256;
    using SafeERC20 for IERC20;

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

    IERC20 public rewardsToken;
    IERC20 public stakingToken;
   
    uint256 public periodFinish;
    uint256 public rewardRate;

    uint256 public rewardsDuration;
    uint256 public totalRewards;
    uint256 public lastUpdateTime;
    uint256 public rewardPerTokenStored;

    mapping(address => uint256) public userRewardPerTokenPaid;
    mapping(address => uint256) public rewards;
    
    uint256 private _totalSupply;
    mapping(address => uint256) private _balances;

    IERC20 public secondRewardsToken;
    uint256 public secondRewardRate;
    mapping(address => uint256) public userRewardPerSecondTokenPaid;
    mapping(address => uint256) public secondRewards;
    uint256 public rewardPerSecondTokenStored;

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

    function initialize(
        address _owner,
        address _rewardsToken,
        address _secondRewardsToken,
        address _stakingToken,
        uint256 _rewardsDuration
    ) public initializer {
        setOwner(_owner);
        initNonReentrant();
        rewardsToken = IERC20(_rewardsToken);
        secondRewardsToken = IERC20(_secondRewardsToken);
        stakingToken = IERC20(_stakingToken);
        rewardsDuration = _rewardsDuration;
    }

    /* ========== VIEWS ========== */

    function totalSupply() external view returns (uint256) {
        return _totalSupply;
    }

    function balanceOf(address account) external view returns (uint256) {
        return _balances[account];
    }

    function lastTimeRewardApplicable() public view returns (uint256) {
        return block.timestamp < periodFinish ? block.timestamp : periodFinish;
    }

    function rewardPerToken() public view returns (uint256 reward, uint256 secondReward) {
        if (_totalSupply == 0) {
            reward = rewardPerTokenStored;
            secondReward = rewardPerSecondTokenStored;
        } else {
            reward = rewardPerTokenStored.add(
                lastTimeRewardApplicable().sub(lastUpdateTime).mul(rewardRate).mul(1e18).div(_totalSupply)
            );
            secondReward = rewardPerSecondTokenStored.add(
                lastTimeRewardApplicable().sub(lastUpdateTime).mul(secondRewardRate).mul(1e18).div(_totalSupply)
            );
        }
    }

    function earned(address account) public view returns (uint256 earnedFirstToken, uint256 earnedSecondToken) {
        (uint256 firstReward, uint256 secondReward) = rewardPerToken();
        earnedFirstToken = _balances[account].mul(firstReward.sub(userRewardPerTokenPaid[account])).div(1e18).add(
            rewards[account]
        );

        earnedSecondToken = _balances[account].mul(secondReward.sub(userRewardPerSecondTokenPaid[account])).div(1e18).add(
            secondRewards[account]
        );
    }

    function getRewardForDuration() external view returns (uint256) {
        return rewardRate.mul(rewardsDuration);
    }

    function getSecondRewardForDuration() external view returns (uint256) {
        return secondRewardRate.mul(rewardsDuration);
    }

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

    function stake(uint256 amount) external nonReentrant notPaused updateReward(msg.sender) {
        require(amount > 0, "Cannot stake 0");
        _totalSupply = _totalSupply.add(amount);
        _balances[msg.sender] = _balances[msg.sender].add(amount);
        stakingToken.safeTransferFrom(msg.sender, address(this), amount);
        emit Staked(msg.sender, amount);
    }

    function withdraw(uint256 amount) public nonReentrant updateReward(msg.sender) {
        require(amount > 0, "Cannot withdraw 0");
        _totalSupply = _totalSupply.sub(amount);
        _balances[msg.sender] = _balances[msg.sender].sub(amount);
        stakingToken.safeTransfer(msg.sender, amount);
        emit Withdrawn(msg.sender, amount);
    }

    function getReward() public nonReentrant updateReward(msg.sender) {
        uint256 reward = rewards[msg.sender];
        uint256 secondReward = secondRewards[msg.sender];
        if (reward > 0) {
            rewards[msg.sender] = 0;
            rewardsToken.safeTransfer(msg.sender, reward);
            emit RewardPaid(msg.sender, reward);
        }

        if (secondReward > 0) {
            secondRewards[msg.sender] = 0;
            secondRewardsToken.safeTransfer(msg.sender, secondReward);
            emit SecondRewardTokenPaid(msg.sender, secondReward);
        }
    }

    function exit() external {
        withdraw(_balances[msg.sender]);
        getReward();
    }

    /* ========== RESTRICTED FUNCTIONS ========== */

    function notifyRewardAmount(uint256 reward, uint256 secondReward) external onlyOwner updateReward(address(0)) {
        if (block.timestamp >= periodFinish) {
            rewardRate = reward.div(rewardsDuration);
            secondRewardRate = secondReward.div(rewardsDuration);
        } else {
            uint256 remaining = periodFinish.sub(block.timestamp);
            uint256 leftover = remaining.mul(rewardRate);
            uint256 secondLeftover = remaining.mul(secondRewardRate);

            rewardRate = reward.add(leftover).div(rewardsDuration);
            secondRewardRate = secondReward.add(secondLeftover).div(rewardsDuration);
        }

        // Ensure the provided reward amount is not more than the balance in the contract.
        // This keeps the reward rate in the right range, preventing overflows due to
        // very high values of rewardRate/secondRewardRate in the earned and rewardsPerToken functions;
        // Reward + leftover must be less than 2^256 / 10^18 to avoid overflow.
        uint balance = rewardsToken.balanceOf(address(this));
        require(rewardRate <= balance.div(rewardsDuration), "Provided reward too high");

        uint balanceSecondReward = secondRewardsToken.balanceOf(address(this));
        require(secondRewardRate <= balanceSecondReward.div(rewardsDuration), "Provided reward too high");

        lastUpdateTime = block.timestamp;
        periodFinish = block.timestamp.add(rewardsDuration);
        emit BothRewardsAdded(reward, secondReward);
    }

    function addReward(uint256 reward) external onlyOwner updateReward(address(0)) {
        require(block.timestamp < periodFinish, "Rewards must be active");

        uint256 remaining = periodFinish.sub(block.timestamp);
        uint256 leftover = remaining.mul(rewardRate);
        rewardRate = reward.add(leftover).div(remaining);

        // Ensure the provided reward amount is not more than the balance in the contract.
        // This keeps the reward rate in the right range, preventing overflows due to
        // very high values of rewardRate in the earned and rewardsPerToken functions;
        // Reward + leftover must be less than 2^256 / 10^18 to avoid overflow.
        uint balance = rewardsToken.balanceOf(address(this));
        require(rewardRate <= balance.div(remaining), "Provided reward too high");

        lastUpdateTime = block.timestamp;
        emit RewardAdded(reward);
    }

    function addSecondReward(uint256 reward) external onlyOwner updateReward(address(0)) {
        require(block.timestamp < periodFinish, "Rewards must be active");

        uint256 remaining = periodFinish.sub(block.timestamp);
        uint256 leftover = remaining.mul(secondRewardRate);
        secondRewardRate = reward.add(leftover).div(remaining);

        // Ensure the provided reward amount is not more than the balance in the contract.
        // This keeps the reward rate in the right range, preventing overflows due to
        // very high values of secondRewardRate in the earned and rewardsPerOpToken functions;
        // Reward + leftover must be less than 2^256 / 10^18 to avoid overflow.
        uint balance = secondRewardsToken.balanceOf(address(this));
        require(secondRewardRate <= balance.div(remaining), "Provided reward too high");

        lastUpdateTime = block.timestamp;
        emit SecondRewardAdded(reward);
    }

    function addBothRewards(uint256 reward, uint256 secondReward) external onlyOwner updateReward(address(0)) {
        require(block.timestamp < periodFinish, "Rewards must be active");

        uint256 remaining = periodFinish.sub(block.timestamp);
        uint256 leftover = remaining.mul(rewardRate);
        rewardRate = reward.add(leftover).div(remaining);

        uint256 secondLeftover = remaining.mul(secondRewardRate);
        secondRewardRate = secondReward.add(secondLeftover).div(remaining);

        // Ensure the provided reward amount is not more than the balance in the contract.
        // This keeps the reward rate in the right range, preventing overflows due to
        // very high values of rewardRate/secondRewardRate in the earned and rewardsPerToken functions;
        // Reward + leftover must be less than 2^256 / 10^18 to avoid overflow.
        uint balance = rewardsToken.balanceOf(address(this));
        require(rewardRate <= balance.div(remaining), "Provided reward too high");

        uint secondBalance = secondRewardsToken.balanceOf(address(this));
        require(secondRewardRate <= secondBalance.div(remaining), "Provided reward too high");

        lastUpdateTime = block.timestamp;
        emit BothRewardsAdded(reward, secondReward);
    }

    function recoverERC20(address tokenAddress, uint256 tokenAmount) external onlyOwner {
        require(tokenAddress != address(stakingToken), "Cannot withdraw the staking token");
        IERC20(tokenAddress).safeTransfer(owner, tokenAmount);
    }

    function setRewardsDuration(uint256 _rewardsDuration) external onlyOwner {
        require(
            block.timestamp > periodFinish,
            "Previous rewards period must be complete before changing the duration for the new period"
        );
        rewardsDuration = _rewardsDuration;
        emit RewardsDurationUpdated(rewardsDuration);
    }

    function setSecondRewardsToken(address tokenAddress) external onlyOwner {
        require(tokenAddress != address(0), "Invalid address");
        secondRewardsToken = IERC20(tokenAddress);
        emit SecondRewardsTokenChanged(tokenAddress);
    }

    /* ========== MODIFIERS ========== */

    modifier updateReward(address account) {
        (rewardPerTokenStored, rewardPerSecondTokenStored) = rewardPerToken();

        lastUpdateTime = lastTimeRewardApplicable();
        if (account != address(0)) {
            (rewards[account], secondRewards[account]) = earned(account);

            userRewardPerTokenPaid[account] = rewardPerTokenStored;
            userRewardPerSecondTokenPaid[account] = rewardPerSecondTokenStored;
        }
        _;
    }

    /* ========== EVENTS ========== */

    event RewardAdded(uint256 reward);
    event SecondRewardAdded(uint256 reward);
    event BothRewardsAdded(uint256 reward, uint256 secondReward);
    event Staked(address indexed user, uint256 amount);
    event Withdrawn(address indexed user, uint256 amount);
    event RewardPaid(address indexed user, uint256 reward);
    event SecondRewardTokenPaid(address indexed user, uint256 reward);
    event RewardsDurationUpdated(uint256 newDuration);
    event SecondRewardsTokenChanged(address tokenAddress);
}

File 2 of 9 : SafeMath.sol
pragma solidity ^0.5.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) {
        require(b <= a, "SafeMath: subtraction overflow");
        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-solidity/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) {
        // Solidity only automatically asserts when dividing by 0
        require(b > 0, "SafeMath: division by zero");
        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) {
        require(b != 0, "SafeMath: modulo by zero");
        return a % b;
    }
}

File 3 of 9 : SafeERC20.sol
pragma solidity ^0.5.0;

import "./IERC20.sol";
import "../../math/SafeMath.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 ERC20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeERC20 {
    using SafeMath for uint256;
    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));
    }

    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'
        // solhint-disable-next-line max-line-length
        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).add(value);
        callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 newAllowance = token.allowance(address(this), spender).sub(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.

        // A Solidity high level call has three parts:
        //  1. The target address is checked to verify it contains contract code
        //  2. The call itself is made, and success asserted
        //  3. The return value is decoded, which in turn checks the size of the returned data.
        // solhint-disable-next-line max-line-length
        require(address(token).isContract(), "SafeERC20: call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = address(token).call(data);
        require(success, "SafeERC20: low-level call failed");

        if (returndata.length > 0) { // Return data is optional
            // solhint-disable-next-line max-line-length
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

File 4 of 9 : Initializable.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.4.24 <0.7.0;


/**
 * @title Initializable
 *
 * @dev Helper contract to support initializer functions. To use it, replace
 * the constructor with a function that has the `initializer` modifier.
 * WARNING: Unlike constructors, initializer functions must be manually
 * invoked. This applies both to deploying an Initializable contract, as well
 * as extending an Initializable contract via inheritance.
 * WARNING: When used with inheritance, manual care must be taken to not invoke
 * a parent initializer twice, or ensure that all initializers are idempotent,
 * because this is not dealt with automatically as with constructors.
 */
contract Initializable {

  /**
   * @dev Indicates that the contract has been initialized.
   */
  bool private initialized;

  /**
   * @dev Indicates that the contract is in the process of being initialized.
   */
  bool private initializing;

  /**
   * @dev Modifier to use in the initializer function of a contract.
   */
  modifier initializer() {
    require(initializing || isConstructor() || !initialized, "Contract instance has already been initialized");

    bool isTopLevelCall = !initializing;
    if (isTopLevelCall) {
      initializing = true;
      initialized = true;
    }

    _;

    if (isTopLevelCall) {
      initializing = false;
    }
  }

  /// @dev Returns true if and only if the function is running in the constructor
  function isConstructor() private view returns (bool) {
    // extcodesize checks the size of the code stored in an address, and
    // address returns the current address. Since the code is still not
    // deployed when running a constructor, any checks on its code size will
    // yield zero, making it an effective way to detect if a contract is
    // under construction or not.
    address self = address(this);
    uint256 cs;
    assembly { cs := extcodesize(self) }
    return cs == 0;
  }

  // Reserved storage space to allow for layout changes in the future.
  uint256[50] private ______gap;
}

File 5 of 9 : ProxyReentrancyGuard.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.5.0;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the `nonReentrant` modifier
 * available, which can be aplied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 */
contract ProxyReentrancyGuard {
    /// @dev counter to allow mutex lock with only one SSTORE operation
    uint256 private _guardCounter;
    bool private _initialized;

    function initNonReentrant() public {
        require(!_initialized, "Already initialized");
        _initialized = true;
        _guardCounter = 1;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and make it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        _guardCounter += 1;
        uint256 localCounter = _guardCounter;
        _;
        require(localCounter == _guardCounter, "ReentrancyGuard: reentrant call");
    }
}

File 6 of 9 : ProxyOwned.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.5.16;

// Clone of syntetix contract without constructor
contract ProxyOwned {
    address public owner;
    address public nominatedOwner;
    bool private _initialized;
    bool private _transferredAtInit;

    function setOwner(address _owner) public {
        require(_owner != address(0), "Owner address cannot be 0");
        require(!_initialized, "Already initialized, use nominateNewOwner");
        _initialized = true;
        owner = _owner;
        emit OwnerChanged(address(0), _owner);
    }

    function nominateNewOwner(address _owner) external onlyOwner {
        nominatedOwner = _owner;
        emit OwnerNominated(_owner);
    }

    function acceptOwnership() external {
        require(msg.sender == nominatedOwner, "You must be nominated before you can accept ownership");
        emit OwnerChanged(owner, nominatedOwner);
        owner = nominatedOwner;
        nominatedOwner = address(0);
    }

    function transferOwnershipAtInit(address proxyAddress) external onlyOwner {
        require(proxyAddress != address(0), "Invalid address");
        require(!_transferredAtInit, "Already transferred");
        owner = proxyAddress;
        _transferredAtInit = true;
        emit OwnerChanged(owner, proxyAddress);
    }

    modifier onlyOwner {
        _onlyOwner();
        _;
    }

    function _onlyOwner() private view {
        require(msg.sender == owner, "Only the contract owner may perform this action");
    }

    event OwnerNominated(address newOwner);
    event OwnerChanged(address oldOwner, address newOwner);
}

File 7 of 9 : ProxyPausable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.5.16;

// Inheritance
import "./ProxyOwned.sol";

// Clone of syntetix contract without constructor

contract ProxyPausable is ProxyOwned {
    uint public lastPauseTime;
    bool public paused;

    

    /**
     * @notice Change the paused state of the contract
     * @dev Only the contract owner may call this.
     */
    function setPaused(bool _paused) external onlyOwner {
        // Ensure we're actually changing the state before we do anything
        if (_paused == paused) {
            return;
        }

        // Set our paused state.
        paused = _paused;

        // If applicable, set the last pause time.
        if (paused) {
            lastPauseTime = block.timestamp;
        }

        // Let everyone know that our pause state has changed.
        emit PauseChanged(paused);
    }

    event PauseChanged(bool isPaused);

    modifier notPaused {
        require(!paused, "This action cannot be performed while the contract is paused");
        _;
    }
}

File 8 of 9 : IERC20.sol
pragma solidity ^0.5.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP. Does not include
 * the optional functions; to access them see `ERC20Detailed`.
 */
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.
     *
     * > 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);
}

File 9 of 9 : Address.sol
pragma solidity ^0.5.0;

/**
 * @dev Collection of functions related to the address type,
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * This test is non-exhaustive, and there may be false-negatives: during the
     * execution of a contract's constructor, its address will be reported as
     * not containing a contract.
     *
     * > It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies in extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        // solhint-disable-next-line no-inline-assembly
        assembly { size := extcodesize(account) }
        return size > 0;
    }
}

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

Contract Security Audit

Contract ABI

[{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"reward","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"secondReward","type":"uint256"}],"name":"BothRewardsAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"oldOwner","type":"address"},{"indexed":false,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnerChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnerNominated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"isPaused","type":"bool"}],"name":"PauseChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"reward","type":"uint256"}],"name":"RewardAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"reward","type":"uint256"}],"name":"RewardPaid","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newDuration","type":"uint256"}],"name":"RewardsDurationUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"reward","type":"uint256"}],"name":"SecondRewardAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"reward","type":"uint256"}],"name":"SecondRewardTokenPaid","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"tokenAddress","type":"address"}],"name":"SecondRewardsTokenChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Staked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdrawn","type":"event"},{"constant":false,"inputs":[],"name":"acceptOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"reward","type":"uint256"},{"internalType":"uint256","name":"secondReward","type":"uint256"}],"name":"addBothRewards","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"reward","type":"uint256"}],"name":"addReward","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"reward","type":"uint256"}],"name":"addSecondReward","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"earned","outputs":[{"internalType":"uint256","name":"earnedFirstToken","type":"uint256"},{"internalType":"uint256","name":"earnedSecondToken","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"exit","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"getReward","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"getRewardForDuration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"getSecondRewardForDuration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"initNonReentrant","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"address","name":"_rewardsToken","type":"address"},{"internalType":"address","name":"_secondRewardsToken","type":"address"},{"internalType":"address","name":"_stakingToken","type":"address"},{"internalType":"uint256","name":"_rewardsDuration","type":"uint256"}],"name":"initialize","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"lastPauseTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"lastTimeRewardApplicable","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"lastUpdateTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"nominateNewOwner","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"nominatedOwner","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"reward","type":"uint256"},{"internalType":"uint256","name":"secondReward","type":"uint256"}],"name":"notifyRewardAmount","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"periodFinish","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"uint256","name":"tokenAmount","type":"uint256"}],"name":"recoverERC20","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"rewardPerSecondTokenStored","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"rewardPerToken","outputs":[{"internalType":"uint256","name":"reward","type":"uint256"},{"internalType":"uint256","name":"secondReward","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"rewardPerTokenStored","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"rewardRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"rewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"rewardsDuration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"rewardsToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"secondRewardRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"secondRewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"secondRewardsToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"setOwner","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"bool","name":"_paused","type":"bool"}],"name":"setPaused","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"_rewardsDuration","type":"uint256"}],"name":"setRewardsDuration","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"tokenAddress","type":"address"}],"name":"setSecondRewardsToken","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"stake","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"stakingToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"totalRewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"proxyAddress","type":"address"}],"name":"transferOwnershipAtInit","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userRewardPerSecondTokenPaid","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userRewardPerTokenPaid","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"}]

608060405234801561001057600080fd5b506126e1806100206000396000f3fe608060405234801561001057600080fd5b50600436106102735760003560e01c80637b0a47ee11610151578063c8f33c91116100c3578063e1fed42711610087578063e1fed4271461060b578063e9fad8ee14610613578063ebc797721461061b578063ebe2b12b14610623578063f01f20281461062b578063f7013ef61461063357610273565b8063c8f33c91146105ce578063cc1a378f146105d6578063cd3daf9d146105f3578063d1af0c7d146105fb578063df136d651461060357610273565b806391b4ded91161011557806391b4ded9146105505780639372a5f314610558578063a694fc3a14610560578063b40df2de1461057d578063c34046a714610585578063c3b83f5f146105a857610273565b80637b0a47ee146104e657806380faa57d146104ee5780638980f11f146104f65780638b876347146105225780638da5cb5b1461054857610273565b80631d9f073d116101ea57806353a47bb7116101ae57806353a47bb7146104535780635c975abb1461047757806370a082311461049357806372f702f3146104b957806374de4ec4146104c157806379ba5097146104de57610273565b80631d9f073d146103dd578063246132f9146104035780632e1a7d4d14610426578063386a9525146104435780633d18b9121461044b57610273565b806313af40351161023c57806313af40351461033c5780631627540c1461036257806316c38b3c1461038857806318160ddd146103a7578063181e2985146103af5780631c1f78eb146103d557610273565b80628cc2621461027857806305cb537c146102b75780630700037d146102df578063078471dc146103175780630e15561a14610334575b600080fd5b61029e6004803603602081101561028e57600080fd5b50356001600160a01b0316610679565b6040805192835260208301919091528051918290030190f35b6102dd600480360360208110156102cd57600080fd5b50356001600160a01b031661076d565b005b610305600480360360208110156102f557600080fd5b50356001600160a01b0316610816565b60408051918252519081900360200190f35b6102dd6004803603602081101561032d57600080fd5b5035610828565b610305610a47565b6102dd6004803603602081101561035257600080fd5b50356001600160a01b0316610a4d565b6102dd6004803603602081101561037857600080fd5b50356001600160a01b0316610b62565b6102dd6004803603602081101561039e57600080fd5b50351515610bbe565b610305610c38565b610305600480360360208110156103c557600080fd5b50356001600160a01b0316610c3e565b610305610c50565b610305600480360360208110156103f357600080fd5b50356001600160a01b0316610c6e565b6102dd6004803603604081101561041957600080fd5b5080359060200135610c80565b6102dd6004803603602081101561043c57600080fd5b5035610fc3565b61030561117e565b6102dd611184565b61045b61134e565b604080516001600160a01b039092168252519081900360200190f35b61047f61135d565b604080519115158252519081900360200190f35b610305600480360360208110156104a957600080fd5b50356001600160a01b0316611366565b61045b611381565b6102dd600480360360208110156104d757600080fd5b5035611390565b6102dd6115b4565b610305611670565b610305611676565b6102dd6004803603604081101561050c57600080fd5b506001600160a01b03813516906020013561168e565b6103056004803603602081101561053857600080fd5b50356001600160a01b0316611703565b61045b611715565b610305611724565b61045b61172a565b6102dd6004803603602081101561057657600080fd5b5035611739565b610305611930565b6102dd6004803603604081101561059b57600080fd5b5080359060200135611936565b6102dd600480360360208110156105be57600080fd5b50356001600160a01b0316611c62565b610305611d81565b6102dd600480360360208110156105ec57600080fd5b5035611d87565b61029e611e0a565b61045b611eb6565b610305611eca565b610305611ed0565b6102dd611ee9565b6102dd611f0c565b610305611f6f565b610305611f75565b6102dd600480360360a081101561064957600080fd5b506001600160a01b0381358116916020810135821691604082013581169160608101359091169060800135611f7b565b600080600080610687611e0a565b6001600160a01b03871660009081526041602090815260408083205491819052909120549294509092506107159161070990670de0b6b3a7640000906106fd906106d890889063ffffffff61208716565b6001600160a01b038b166000908152604360205260409020549063ffffffff6120e916565b9063ffffffff61214916565b9063ffffffff6121b316565b6001600160a01b0386166000908152604760209081526040808320546046909252909120549195506107649161070990670de0b6b3a7640000906106fd906106d890879063ffffffff61208716565b92505050915091565b61077561220d565b6001600160a01b0381166107c2576040805162461bcd60e51b815260206004820152600f60248201526e496e76616c6964206164647265737360881b604482015290519081900360640190fd5b604480546001600160a01b0383166001600160a01b0319909116811790915560408051918252517fd3c53549cc770d2b5b8957949f175151d6815a9d9b0e94be165019ab225fc77f9181900360200190a150565b60416020526000908152604090205481565b61083061220d565b600061083a611e0a565b604855603f55610848611676565b603e556001600160a01b038116156108a55761086381610679565b6001600160a01b0383166000908152604160209081526040808320604783528184209490945593909255603f5483835283822055604854604690925291909120555b603a5442106108f4576040805162461bcd60e51b815260206004820152601660248201527552657761726473206d7573742062652061637469766560501b604482015290519081900360640190fd5b603a5460009061090a904263ffffffff61208716565b90506000610923604554836120e990919063ffffffff16565b9050610939826106fd868463ffffffff6121b316565b604555604454604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b15801561098757600080fd5b505afa15801561099b573d6000803e3d6000fd5b505050506040513d60208110156109b157600080fd5b505190506109c5818463ffffffff61214916565b6045541115610a09576040805162461bcd60e51b81526020600482015260186024820152600080516020612588833981519152604482015290519081900360640190fd5b42603e556040805186815290517fd7783a725cefe0777b5804eb1b6f0721afeaad94f7bb520a69dbdf40ac25b2179181900360200190a15050505050565b603d5481565b6001600160a01b038116610aa8576040805162461bcd60e51b815260206004820152601960248201527f4f776e657220616464726573732063616e6e6f74206265203000000000000000604482015290519081900360640190fd5b603454600160a01b900460ff1615610af15760405162461bcd60e51b815260040180806020018281038252602981526020018061255f6029913960400191505060405180910390fd5b6034805460ff60a01b1916600160a01b179055603380546001600160a01b0383166001600160a01b031990911681179091556040805160008152602081019290925280517fb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c9281900390910190a150565b610b6a61220d565b603480546001600160a01b0383166001600160a01b0319909116811790915560408051918252517f906a1c6bd7e3091ea86693dd029a831c19049ce77f1dce2ce0bab1cacbabce229181900360200190a150565b610bc661220d565b60385460ff1615158115151415610bdc57610c35565b6038805460ff1916821515179081905560ff1615610bf957426037555b6038546040805160ff90921615158252517f8fb6c181ee25a520cf3dd6565006ef91229fcfe5a989566c2a3b8c115570cec59181900360200190a15b50565b60425490565b60466020526000908152604090205481565b6000610c69603c54603b546120e990919063ffffffff16565b905090565b60476020526000908152604090205481565b610c8861220d565b6000610c92611e0a565b604855603f55610ca0611676565b603e556001600160a01b03811615610cfd57610cbb81610679565b6001600160a01b0383166000908152604160209081526040808320604783528184209490945593909255603f5483835283822055604854604690925291909120555b603a544210610d3957603c54610d1a90849063ffffffff61214916565b603b55603c54610d3190839063ffffffff61214916565b604555610dbc565b603a54600090610d4f904263ffffffff61208716565b90506000610d68603b54836120e990919063ffffffff16565b90506000610d81604554846120e990919063ffffffff16565b603c54909150610d9b906106fd888563ffffffff6121b316565b603b55603c54610db5906106fd878463ffffffff6121b316565b6045555050505b603854604080516370a0823160e01b8152306004820152905160009261010090046001600160a01b0316916370a08231916024808301926020929190829003018186803b158015610e0c57600080fd5b505afa158015610e20573d6000803e3d6000fd5b505050506040513d6020811015610e3657600080fd5b5051603c54909150610e4f90829063ffffffff61214916565b603b541115610e93576040805162461bcd60e51b81526020600482015260186024820152600080516020612588833981519152604482015290519081900360640190fd5b604454604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b158015610ede57600080fd5b505afa158015610ef2573d6000803e3d6000fd5b505050506040513d6020811015610f0857600080fd5b5051603c54909150610f2190829063ffffffff61214916565b6045541115610f65576040805162461bcd60e51b81526020600482015260186024820152600080516020612588833981519152604482015290519081900360640190fd5b42603e819055603c54610f7e919063ffffffff6121b316565b603a55604080518681526020810186905281517f545bb74bf269a52e5f7339ca6d2a80a9755e389ac391d04e8f21fbd5d2fc035c929181900390910190a15050505050565b603580546001019081905533610fd7611e0a565b604855603f55610fe5611676565b603e556001600160a01b038116156110425761100081610679565b6001600160a01b0383166000908152604160209081526040808320604783528184209490945593909255603f5483835283822055604854604690925291909120555b6000831161108b576040805162461bcd60e51b8152602060048201526011602482015270043616e6e6f74207769746864726177203607c1b604482015290519081900360640190fd5b60425461109e908463ffffffff61208716565b604255336000908152604360205260409020546110c1908463ffffffff61208716565b336000818152604360205260409020919091556039546110ed916001600160a01b039091169085612256565b60408051848152905133917f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5919081900360200190a250603554811461117a576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b5050565b603c5481565b603580546001019081905533611198611e0a565b604855603f556111a6611676565b603e556001600160a01b03811615611203576111c181610679565b6001600160a01b0383166000908152604160209081526040808320604783528184209490945593909255603f5483835283822055604854604690925291909120555b33600090815260416020908152604080832054604790925290912054811561128f5733600081815260416020526040812055603854611258916101009091046001600160a01b0316908463ffffffff61225616565b60408051838152905133917fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e0486919081900360200190a25b80156112f557336000818152604760205260408120556044546112be916001600160a01b039091169083612256565b60408051828152905133917f49b7487bd28ed8a457872f8bc33de5eaabc92f2ae58e6352c0b88ed6eb02afd3919081900360200190a25b5050506035548114610c35576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b6034546001600160a01b031681565b60385460ff1681565b6001600160a01b031660009081526043602052604090205490565b6039546001600160a01b031681565b61139861220d565b60006113a2611e0a565b604855603f556113b0611676565b603e556001600160a01b0381161561140d576113cb81610679565b6001600160a01b0383166000908152604160209081526040808320604783528184209490945593909255603f5483835283822055604854604690925291909120555b603a54421061145c576040805162461bcd60e51b815260206004820152601660248201527552657761726473206d7573742062652061637469766560501b604482015290519081900360640190fd5b603a54600090611472904263ffffffff61208716565b9050600061148b603b54836120e990919063ffffffff16565b90506114a1826106fd868463ffffffff6121b316565b603b55603854604080516370a0823160e01b8152306004820152905160009261010090046001600160a01b0316916370a08231916024808301926020929190829003018186803b1580156114f457600080fd5b505afa158015611508573d6000803e3d6000fd5b505050506040513d602081101561151e57600080fd5b50519050611532818463ffffffff61214916565b603b541115611576576040805162461bcd60e51b81526020600482015260186024820152600080516020612588833981519152604482015290519081900360640190fd5b42603e556040805186815290517fde88a922e0d3b88b24e9623efeb464919c6bf9f66857a65e2bfcf2ce87a9433d9181900360200190a15050505050565b6034546001600160a01b031633146115fd5760405162461bcd60e51b815260040180806020018281038252603581526020018061252a6035913960400191505060405180910390fd5b603354603454604080516001600160a01b03938416815292909116602083015280517fb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c9281900390910190a160348054603380546001600160a01b03199081166001600160a01b03841617909155169055565b603b5481565b6000603a54421061168957603a54610c69565b504290565b61169661220d565b6039546001600160a01b03838116911614156116e35760405162461bcd60e51b815260040180806020018281038252602181526020018061268c6021913960400191505060405180910390fd5b60335461117a906001600160a01b0384811691168363ffffffff61225616565b60406020819052600091825290205481565b6033546001600160a01b031681565b60375481565b6044546001600160a01b031681565b603580546001019081905560385460ff16156117865760405162461bcd60e51b815260040180806020018281038252603c815260200180612626603c913960400191505060405180910390fd5b3361178f611e0a565b604855603f5561179d611676565b603e556001600160a01b038116156117fa576117b881610679565b6001600160a01b0383166000908152604160209081526040808320604783528184209490945593909255603f5483835283822055604854604690925291909120555b60008311611840576040805162461bcd60e51b815260206004820152600e60248201526d043616e6e6f74207374616b6520360941b604482015290519081900360640190fd5b604254611853908463ffffffff6121b316565b60425533600090815260436020526040902054611876908463ffffffff6121b316565b336000818152604360205260409020919091556039546118a3916001600160a01b039091169030866122ad565b60408051848152905133917f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d919081900360200190a250603554811461117a576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b60485481565b61193e61220d565b6000611948611e0a565b604855603f55611956611676565b603e556001600160a01b038116156119b35761197181610679565b6001600160a01b0383166000908152604160209081526040808320604783528184209490945593909255603f5483835283822055604854604690925291909120555b603a544210611a02576040805162461bcd60e51b815260206004820152601660248201527552657761726473206d7573742062652061637469766560501b604482015290519081900360640190fd5b603a54600090611a18904263ffffffff61208716565b90506000611a31603b54836120e990919063ffffffff16565b9050611a47826106fd878463ffffffff6121b316565b603b55604554600090611a6190849063ffffffff6120e916565b9050611a77836106fd878463ffffffff6121b316565b604555603854604080516370a0823160e01b8152306004820152905160009261010090046001600160a01b0316916370a08231916024808301926020929190829003018186803b158015611aca57600080fd5b505afa158015611ade573d6000803e3d6000fd5b505050506040513d6020811015611af457600080fd5b50519050611b08818563ffffffff61214916565b603b541115611b4c576040805162461bcd60e51b81526020600482015260186024820152600080516020612588833981519152604482015290519081900360640190fd5b604454604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b158015611b9757600080fd5b505afa158015611bab573d6000803e3d6000fd5b505050506040513d6020811015611bc157600080fd5b50519050611bd5818663ffffffff61214916565b6045541115611c19576040805162461bcd60e51b81526020600482015260186024820152600080516020612588833981519152604482015290519081900360640190fd5b42603e55604080518981526020810189905281517f545bb74bf269a52e5f7339ca6d2a80a9755e389ac391d04e8f21fbd5d2fc035c929181900390910190a15050505050505050565b611c6a61220d565b6001600160a01b038116611cb7576040805162461bcd60e51b815260206004820152600f60248201526e496e76616c6964206164647265737360881b604482015290519081900360640190fd5b603454600160a81b900460ff1615611d0c576040805162461bcd60e51b8152602060048201526013602482015272105b1c9958591e481d1c985b9cd9995c9c9959606a1b604482015290519081900360640190fd5b603380546001600160a01b038084166001600160a01b03199092168217928390556034805460ff60a81b1916600160a81b17905560408051939091168352602083019190915280517fb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c9281900390910190a150565b603e5481565b611d8f61220d565b603a544211611dcf5760405162461bcd60e51b81526004018080602001828103825260588152602001806124d26058913960600191505060405180910390fd5b603c8190556040805182815290517ffb46ca5a5e06d4540d6387b930a7c978bce0db5f449ec6b3f5d07c6e1d44f2d39181900360200190a150565b60008060425460001415611e25575050603f54604854611eb2565b611e75611e666042546106fd670de0b6b3a7640000611e5a603b54611e5a603e54611e4e611676565b9063ffffffff61208716565b9063ffffffff6120e916565b603f549063ffffffff6121b316565b9150611eaf611ea06042546106fd670de0b6b3a7640000611e5a604554611e5a603e54611e4e611676565b6048549063ffffffff6121b316565b90505b9091565b60385461010090046001600160a01b031681565b603f5481565b6000610c69603c546045546120e990919063ffffffff16565b33600090815260436020526040902054611f0290610fc3565b611f0a611184565b565b60365460ff1615611f5a576040805162461bcd60e51b8152602060048201526013602482015272105b1c9958591e481a5b9a5d1a585b1a5e9959606a1b604482015290519081900360640190fd5b6036805460ff19166001908117909155603555565b603a5481565b60455481565b600054610100900460ff1680611f945750611f9461230d565b80611fa2575060005460ff16155b611fdd5760405162461bcd60e51b815260040180806020018281038252602e8152602001806125f8602e913960400191505060405180910390fd5b600054610100900460ff16158015612008576000805460ff1961ff0019909116610100171660011790555b61201186610a4d565b612019611f0c565b603880546001600160a01b0380881661010002610100600160a81b031990921691909117909155604480548683166001600160a01b0319918216179091556039805492861692909116919091179055603c829055801561207f576000805461ff00191690555b505050505050565b6000828211156120de576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b508082035b92915050565b6000826120f8575060006120e3565b8282028284828161210557fe5b04146121425760405162461bcd60e51b81526004018080602001828103825260218152602001806125d76021913960400191505060405180910390fd5b9392505050565b600080821161219f576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b60008284816121aa57fe5b04949350505050565b600082820183811015612142576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b6033546001600160a01b03163314611f0a5760405162461bcd60e51b815260040180806020018281038252602f8152602001806125a8602f913960400191505060405180910390fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b1790526122a8908490612313565b505050565b604080516001600160a01b0385811660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b179052612307908590612313565b50505050565b303b1590565b612325826001600160a01b03166124cb565b612376576040805162461bcd60e51b815260206004820152601f60248201527f5361666545524332303a2063616c6c20746f206e6f6e2d636f6e747261637400604482015290519081900360640190fd5b60006060836001600160a01b0316836040518082805190602001908083835b602083106123b45780518252601f199092019160209182019101612395565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114612416576040519150601f19603f3d011682016040523d82523d6000602084013e61241b565b606091505b509150915081612472576040805162461bcd60e51b815260206004820181905260248201527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564604482015290519081900360640190fd5b8051156123075780806020019051602081101561248e57600080fd5b50516123075760405162461bcd60e51b815260040180806020018281038252602a815260200180612662602a913960400191505060405180910390fd5b3b15159056fe50726576696f7573207265776172647320706572696f64206d75737420626520636f6d706c657465206265666f7265206368616e67696e6720746865206475726174696f6e20666f7220746865206e657720706572696f64596f75206d757374206265206e6f6d696e61746564206265666f726520796f752063616e20616363657074206f776e657273686970416c726561647920696e697469616c697a65642c20757365206e6f6d696e6174654e65774f776e657250726f76696465642072657761726420746f6f206869676800000000000000004f6e6c792074686520636f6e7472616374206f776e6572206d617920706572666f726d207468697320616374696f6e536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77436f6e747261637420696e7374616e63652068617320616c7265616479206265656e20696e697469616c697a65645468697320616374696f6e2063616e6e6f7420626520706572666f726d6564207768696c652074686520636f6e7472616374206973207061757365645361666545524332303a204552433230206f7065726174696f6e20646964206e6f74207375636365656443616e6e6f7420776974686472617720746865207374616b696e6720746f6b656ea265627a7a72315820d408cb3862492448941d8823e935887ab7d110359469504d1451619de02fe51f64736f6c63430005100032

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106102735760003560e01c80637b0a47ee11610151578063c8f33c91116100c3578063e1fed42711610087578063e1fed4271461060b578063e9fad8ee14610613578063ebc797721461061b578063ebe2b12b14610623578063f01f20281461062b578063f7013ef61461063357610273565b8063c8f33c91146105ce578063cc1a378f146105d6578063cd3daf9d146105f3578063d1af0c7d146105fb578063df136d651461060357610273565b806391b4ded91161011557806391b4ded9146105505780639372a5f314610558578063a694fc3a14610560578063b40df2de1461057d578063c34046a714610585578063c3b83f5f146105a857610273565b80637b0a47ee146104e657806380faa57d146104ee5780638980f11f146104f65780638b876347146105225780638da5cb5b1461054857610273565b80631d9f073d116101ea57806353a47bb7116101ae57806353a47bb7146104535780635c975abb1461047757806370a082311461049357806372f702f3146104b957806374de4ec4146104c157806379ba5097146104de57610273565b80631d9f073d146103dd578063246132f9146104035780632e1a7d4d14610426578063386a9525146104435780633d18b9121461044b57610273565b806313af40351161023c57806313af40351461033c5780631627540c1461036257806316c38b3c1461038857806318160ddd146103a7578063181e2985146103af5780631c1f78eb146103d557610273565b80628cc2621461027857806305cb537c146102b75780630700037d146102df578063078471dc146103175780630e15561a14610334575b600080fd5b61029e6004803603602081101561028e57600080fd5b50356001600160a01b0316610679565b6040805192835260208301919091528051918290030190f35b6102dd600480360360208110156102cd57600080fd5b50356001600160a01b031661076d565b005b610305600480360360208110156102f557600080fd5b50356001600160a01b0316610816565b60408051918252519081900360200190f35b6102dd6004803603602081101561032d57600080fd5b5035610828565b610305610a47565b6102dd6004803603602081101561035257600080fd5b50356001600160a01b0316610a4d565b6102dd6004803603602081101561037857600080fd5b50356001600160a01b0316610b62565b6102dd6004803603602081101561039e57600080fd5b50351515610bbe565b610305610c38565b610305600480360360208110156103c557600080fd5b50356001600160a01b0316610c3e565b610305610c50565b610305600480360360208110156103f357600080fd5b50356001600160a01b0316610c6e565b6102dd6004803603604081101561041957600080fd5b5080359060200135610c80565b6102dd6004803603602081101561043c57600080fd5b5035610fc3565b61030561117e565b6102dd611184565b61045b61134e565b604080516001600160a01b039092168252519081900360200190f35b61047f61135d565b604080519115158252519081900360200190f35b610305600480360360208110156104a957600080fd5b50356001600160a01b0316611366565b61045b611381565b6102dd600480360360208110156104d757600080fd5b5035611390565b6102dd6115b4565b610305611670565b610305611676565b6102dd6004803603604081101561050c57600080fd5b506001600160a01b03813516906020013561168e565b6103056004803603602081101561053857600080fd5b50356001600160a01b0316611703565b61045b611715565b610305611724565b61045b61172a565b6102dd6004803603602081101561057657600080fd5b5035611739565b610305611930565b6102dd6004803603604081101561059b57600080fd5b5080359060200135611936565b6102dd600480360360208110156105be57600080fd5b50356001600160a01b0316611c62565b610305611d81565b6102dd600480360360208110156105ec57600080fd5b5035611d87565b61029e611e0a565b61045b611eb6565b610305611eca565b610305611ed0565b6102dd611ee9565b6102dd611f0c565b610305611f6f565b610305611f75565b6102dd600480360360a081101561064957600080fd5b506001600160a01b0381358116916020810135821691604082013581169160608101359091169060800135611f7b565b600080600080610687611e0a565b6001600160a01b03871660009081526041602090815260408083205491819052909120549294509092506107159161070990670de0b6b3a7640000906106fd906106d890889063ffffffff61208716565b6001600160a01b038b166000908152604360205260409020549063ffffffff6120e916565b9063ffffffff61214916565b9063ffffffff6121b316565b6001600160a01b0386166000908152604760209081526040808320546046909252909120549195506107649161070990670de0b6b3a7640000906106fd906106d890879063ffffffff61208716565b92505050915091565b61077561220d565b6001600160a01b0381166107c2576040805162461bcd60e51b815260206004820152600f60248201526e496e76616c6964206164647265737360881b604482015290519081900360640190fd5b604480546001600160a01b0383166001600160a01b0319909116811790915560408051918252517fd3c53549cc770d2b5b8957949f175151d6815a9d9b0e94be165019ab225fc77f9181900360200190a150565b60416020526000908152604090205481565b61083061220d565b600061083a611e0a565b604855603f55610848611676565b603e556001600160a01b038116156108a55761086381610679565b6001600160a01b0383166000908152604160209081526040808320604783528184209490945593909255603f5483835283822055604854604690925291909120555b603a5442106108f4576040805162461bcd60e51b815260206004820152601660248201527552657761726473206d7573742062652061637469766560501b604482015290519081900360640190fd5b603a5460009061090a904263ffffffff61208716565b90506000610923604554836120e990919063ffffffff16565b9050610939826106fd868463ffffffff6121b316565b604555604454604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b15801561098757600080fd5b505afa15801561099b573d6000803e3d6000fd5b505050506040513d60208110156109b157600080fd5b505190506109c5818463ffffffff61214916565b6045541115610a09576040805162461bcd60e51b81526020600482015260186024820152600080516020612588833981519152604482015290519081900360640190fd5b42603e556040805186815290517fd7783a725cefe0777b5804eb1b6f0721afeaad94f7bb520a69dbdf40ac25b2179181900360200190a15050505050565b603d5481565b6001600160a01b038116610aa8576040805162461bcd60e51b815260206004820152601960248201527f4f776e657220616464726573732063616e6e6f74206265203000000000000000604482015290519081900360640190fd5b603454600160a01b900460ff1615610af15760405162461bcd60e51b815260040180806020018281038252602981526020018061255f6029913960400191505060405180910390fd5b6034805460ff60a01b1916600160a01b179055603380546001600160a01b0383166001600160a01b031990911681179091556040805160008152602081019290925280517fb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c9281900390910190a150565b610b6a61220d565b603480546001600160a01b0383166001600160a01b0319909116811790915560408051918252517f906a1c6bd7e3091ea86693dd029a831c19049ce77f1dce2ce0bab1cacbabce229181900360200190a150565b610bc661220d565b60385460ff1615158115151415610bdc57610c35565b6038805460ff1916821515179081905560ff1615610bf957426037555b6038546040805160ff90921615158252517f8fb6c181ee25a520cf3dd6565006ef91229fcfe5a989566c2a3b8c115570cec59181900360200190a15b50565b60425490565b60466020526000908152604090205481565b6000610c69603c54603b546120e990919063ffffffff16565b905090565b60476020526000908152604090205481565b610c8861220d565b6000610c92611e0a565b604855603f55610ca0611676565b603e556001600160a01b03811615610cfd57610cbb81610679565b6001600160a01b0383166000908152604160209081526040808320604783528184209490945593909255603f5483835283822055604854604690925291909120555b603a544210610d3957603c54610d1a90849063ffffffff61214916565b603b55603c54610d3190839063ffffffff61214916565b604555610dbc565b603a54600090610d4f904263ffffffff61208716565b90506000610d68603b54836120e990919063ffffffff16565b90506000610d81604554846120e990919063ffffffff16565b603c54909150610d9b906106fd888563ffffffff6121b316565b603b55603c54610db5906106fd878463ffffffff6121b316565b6045555050505b603854604080516370a0823160e01b8152306004820152905160009261010090046001600160a01b0316916370a08231916024808301926020929190829003018186803b158015610e0c57600080fd5b505afa158015610e20573d6000803e3d6000fd5b505050506040513d6020811015610e3657600080fd5b5051603c54909150610e4f90829063ffffffff61214916565b603b541115610e93576040805162461bcd60e51b81526020600482015260186024820152600080516020612588833981519152604482015290519081900360640190fd5b604454604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b158015610ede57600080fd5b505afa158015610ef2573d6000803e3d6000fd5b505050506040513d6020811015610f0857600080fd5b5051603c54909150610f2190829063ffffffff61214916565b6045541115610f65576040805162461bcd60e51b81526020600482015260186024820152600080516020612588833981519152604482015290519081900360640190fd5b42603e819055603c54610f7e919063ffffffff6121b316565b603a55604080518681526020810186905281517f545bb74bf269a52e5f7339ca6d2a80a9755e389ac391d04e8f21fbd5d2fc035c929181900390910190a15050505050565b603580546001019081905533610fd7611e0a565b604855603f55610fe5611676565b603e556001600160a01b038116156110425761100081610679565b6001600160a01b0383166000908152604160209081526040808320604783528184209490945593909255603f5483835283822055604854604690925291909120555b6000831161108b576040805162461bcd60e51b8152602060048201526011602482015270043616e6e6f74207769746864726177203607c1b604482015290519081900360640190fd5b60425461109e908463ffffffff61208716565b604255336000908152604360205260409020546110c1908463ffffffff61208716565b336000818152604360205260409020919091556039546110ed916001600160a01b039091169085612256565b60408051848152905133917f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5919081900360200190a250603554811461117a576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b5050565b603c5481565b603580546001019081905533611198611e0a565b604855603f556111a6611676565b603e556001600160a01b03811615611203576111c181610679565b6001600160a01b0383166000908152604160209081526040808320604783528184209490945593909255603f5483835283822055604854604690925291909120555b33600090815260416020908152604080832054604790925290912054811561128f5733600081815260416020526040812055603854611258916101009091046001600160a01b0316908463ffffffff61225616565b60408051838152905133917fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e0486919081900360200190a25b80156112f557336000818152604760205260408120556044546112be916001600160a01b039091169083612256565b60408051828152905133917f49b7487bd28ed8a457872f8bc33de5eaabc92f2ae58e6352c0b88ed6eb02afd3919081900360200190a25b5050506035548114610c35576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b6034546001600160a01b031681565b60385460ff1681565b6001600160a01b031660009081526043602052604090205490565b6039546001600160a01b031681565b61139861220d565b60006113a2611e0a565b604855603f556113b0611676565b603e556001600160a01b0381161561140d576113cb81610679565b6001600160a01b0383166000908152604160209081526040808320604783528184209490945593909255603f5483835283822055604854604690925291909120555b603a54421061145c576040805162461bcd60e51b815260206004820152601660248201527552657761726473206d7573742062652061637469766560501b604482015290519081900360640190fd5b603a54600090611472904263ffffffff61208716565b9050600061148b603b54836120e990919063ffffffff16565b90506114a1826106fd868463ffffffff6121b316565b603b55603854604080516370a0823160e01b8152306004820152905160009261010090046001600160a01b0316916370a08231916024808301926020929190829003018186803b1580156114f457600080fd5b505afa158015611508573d6000803e3d6000fd5b505050506040513d602081101561151e57600080fd5b50519050611532818463ffffffff61214916565b603b541115611576576040805162461bcd60e51b81526020600482015260186024820152600080516020612588833981519152604482015290519081900360640190fd5b42603e556040805186815290517fde88a922e0d3b88b24e9623efeb464919c6bf9f66857a65e2bfcf2ce87a9433d9181900360200190a15050505050565b6034546001600160a01b031633146115fd5760405162461bcd60e51b815260040180806020018281038252603581526020018061252a6035913960400191505060405180910390fd5b603354603454604080516001600160a01b03938416815292909116602083015280517fb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c9281900390910190a160348054603380546001600160a01b03199081166001600160a01b03841617909155169055565b603b5481565b6000603a54421061168957603a54610c69565b504290565b61169661220d565b6039546001600160a01b03838116911614156116e35760405162461bcd60e51b815260040180806020018281038252602181526020018061268c6021913960400191505060405180910390fd5b60335461117a906001600160a01b0384811691168363ffffffff61225616565b60406020819052600091825290205481565b6033546001600160a01b031681565b60375481565b6044546001600160a01b031681565b603580546001019081905560385460ff16156117865760405162461bcd60e51b815260040180806020018281038252603c815260200180612626603c913960400191505060405180910390fd5b3361178f611e0a565b604855603f5561179d611676565b603e556001600160a01b038116156117fa576117b881610679565b6001600160a01b0383166000908152604160209081526040808320604783528184209490945593909255603f5483835283822055604854604690925291909120555b60008311611840576040805162461bcd60e51b815260206004820152600e60248201526d043616e6e6f74207374616b6520360941b604482015290519081900360640190fd5b604254611853908463ffffffff6121b316565b60425533600090815260436020526040902054611876908463ffffffff6121b316565b336000818152604360205260409020919091556039546118a3916001600160a01b039091169030866122ad565b60408051848152905133917f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d919081900360200190a250603554811461117a576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b60485481565b61193e61220d565b6000611948611e0a565b604855603f55611956611676565b603e556001600160a01b038116156119b35761197181610679565b6001600160a01b0383166000908152604160209081526040808320604783528184209490945593909255603f5483835283822055604854604690925291909120555b603a544210611a02576040805162461bcd60e51b815260206004820152601660248201527552657761726473206d7573742062652061637469766560501b604482015290519081900360640190fd5b603a54600090611a18904263ffffffff61208716565b90506000611a31603b54836120e990919063ffffffff16565b9050611a47826106fd878463ffffffff6121b316565b603b55604554600090611a6190849063ffffffff6120e916565b9050611a77836106fd878463ffffffff6121b316565b604555603854604080516370a0823160e01b8152306004820152905160009261010090046001600160a01b0316916370a08231916024808301926020929190829003018186803b158015611aca57600080fd5b505afa158015611ade573d6000803e3d6000fd5b505050506040513d6020811015611af457600080fd5b50519050611b08818563ffffffff61214916565b603b541115611b4c576040805162461bcd60e51b81526020600482015260186024820152600080516020612588833981519152604482015290519081900360640190fd5b604454604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b158015611b9757600080fd5b505afa158015611bab573d6000803e3d6000fd5b505050506040513d6020811015611bc157600080fd5b50519050611bd5818663ffffffff61214916565b6045541115611c19576040805162461bcd60e51b81526020600482015260186024820152600080516020612588833981519152604482015290519081900360640190fd5b42603e55604080518981526020810189905281517f545bb74bf269a52e5f7339ca6d2a80a9755e389ac391d04e8f21fbd5d2fc035c929181900390910190a15050505050505050565b611c6a61220d565b6001600160a01b038116611cb7576040805162461bcd60e51b815260206004820152600f60248201526e496e76616c6964206164647265737360881b604482015290519081900360640190fd5b603454600160a81b900460ff1615611d0c576040805162461bcd60e51b8152602060048201526013602482015272105b1c9958591e481d1c985b9cd9995c9c9959606a1b604482015290519081900360640190fd5b603380546001600160a01b038084166001600160a01b03199092168217928390556034805460ff60a81b1916600160a81b17905560408051939091168352602083019190915280517fb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c9281900390910190a150565b603e5481565b611d8f61220d565b603a544211611dcf5760405162461bcd60e51b81526004018080602001828103825260588152602001806124d26058913960600191505060405180910390fd5b603c8190556040805182815290517ffb46ca5a5e06d4540d6387b930a7c978bce0db5f449ec6b3f5d07c6e1d44f2d39181900360200190a150565b60008060425460001415611e25575050603f54604854611eb2565b611e75611e666042546106fd670de0b6b3a7640000611e5a603b54611e5a603e54611e4e611676565b9063ffffffff61208716565b9063ffffffff6120e916565b603f549063ffffffff6121b316565b9150611eaf611ea06042546106fd670de0b6b3a7640000611e5a604554611e5a603e54611e4e611676565b6048549063ffffffff6121b316565b90505b9091565b60385461010090046001600160a01b031681565b603f5481565b6000610c69603c546045546120e990919063ffffffff16565b33600090815260436020526040902054611f0290610fc3565b611f0a611184565b565b60365460ff1615611f5a576040805162461bcd60e51b8152602060048201526013602482015272105b1c9958591e481a5b9a5d1a585b1a5e9959606a1b604482015290519081900360640190fd5b6036805460ff19166001908117909155603555565b603a5481565b60455481565b600054610100900460ff1680611f945750611f9461230d565b80611fa2575060005460ff16155b611fdd5760405162461bcd60e51b815260040180806020018281038252602e8152602001806125f8602e913960400191505060405180910390fd5b600054610100900460ff16158015612008576000805460ff1961ff0019909116610100171660011790555b61201186610a4d565b612019611f0c565b603880546001600160a01b0380881661010002610100600160a81b031990921691909117909155604480548683166001600160a01b0319918216179091556039805492861692909116919091179055603c829055801561207f576000805461ff00191690555b505050505050565b6000828211156120de576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b508082035b92915050565b6000826120f8575060006120e3565b8282028284828161210557fe5b04146121425760405162461bcd60e51b81526004018080602001828103825260218152602001806125d76021913960400191505060405180910390fd5b9392505050565b600080821161219f576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b60008284816121aa57fe5b04949350505050565b600082820183811015612142576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b6033546001600160a01b03163314611f0a5760405162461bcd60e51b815260040180806020018281038252602f8152602001806125a8602f913960400191505060405180910390fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b1790526122a8908490612313565b505050565b604080516001600160a01b0385811660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b179052612307908590612313565b50505050565b303b1590565b612325826001600160a01b03166124cb565b612376576040805162461bcd60e51b815260206004820152601f60248201527f5361666545524332303a2063616c6c20746f206e6f6e2d636f6e747261637400604482015290519081900360640190fd5b60006060836001600160a01b0316836040518082805190602001908083835b602083106123b45780518252601f199092019160209182019101612395565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114612416576040519150601f19603f3d011682016040523d82523d6000602084013e61241b565b606091505b509150915081612472576040805162461bcd60e51b815260206004820181905260248201527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564604482015290519081900360640190fd5b8051156123075780806020019051602081101561248e57600080fd5b50516123075760405162461bcd60e51b815260040180806020018281038252602a815260200180612662602a913960400191505060405180910390fd5b3b15159056fe50726576696f7573207265776172647320706572696f64206d75737420626520636f6d706c657465206265666f7265206368616e67696e6720746865206475726174696f6e20666f7220746865206e657720706572696f64596f75206d757374206265206e6f6d696e61746564206265666f726520796f752063616e20616363657074206f776e657273686970416c726561647920696e697469616c697a65642c20757365206e6f6d696e6174654e65774f776e657250726f76696465642072657761726420746f6f206869676800000000000000004f6e6c792074686520636f6e7472616374206f776e6572206d617920706572666f726d207468697320616374696f6e536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77436f6e747261637420696e7374616e63652068617320616c7265616479206265656e20696e697469616c697a65645468697320616374696f6e2063616e6e6f7420626520706572666f726d6564207768696c652074686520636f6e7472616374206973207061757365645361666545524332303a204552433230206f7065726174696f6e20646964206e6f74207375636365656443616e6e6f7420776974686472617720746865207374616b696e6720746f6b656ea265627a7a72315820d408cb3862492448941d8823e935887ab7d110359469504d1451619de02fe51f64736f6c63430005100032

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
[ Download: CSV Export  ]
[ 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.