FTM Price: $1.00 (-0.87%)
Gas: 92 GWei

Contract

0x60fa02b28bf7f71031B0F0adcd0CB00e643D543C
 

Overview

FTM Balance

Fantom LogoFantom LogoFantom Logo0 FTM

FTM Value

$0.00

Sponsored

Transaction Hash
Method
Block
From
To
Value
0x60806040329036142022-03-08 20:27:41751 days ago1646771261IN
 Create: PartnersRewards
0 FTM3.3457081,500

Latest 1 internal transaction

Parent Txn Hash Block From To Value
329036142022-03-08 20:27:41751 days ago1646771261  Contract Creation0 FTM
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
PartnersRewards

Compiler Version
v0.5.17+commit.d19bba13

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 1 : PartnersRewards.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.5.17;

// Part: Address

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;
    }
}

// Part: IERC20

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
    );
}

// Part: Math

library Math {
    /**
     * @dev Returns the largest of two numbers.
     */
    function max(uint256 a, uint256 b) internal pure returns (uint256) {
        return a >= b ? a : b;
    }

    /**
     * @dev Returns the smallest of two numbers.
     */
    function min(uint256 a, uint256 b) internal pure returns (uint256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two numbers. The result is rounded towards
     * zero.
     */
    function average(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b) / 2 can overflow, so we distribute
        return (a / 2) + (b / 2) + (((a % 2) + (b % 2)) / 2);
    }
}

// Part: Owned

contract Owned {
    address public owner;
    address public nominatedOwner;

    constructor(address _owner) public {
        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);
    }

    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);
}

// Part: ReentrancyGuard

contract ReentrancyGuard {
    /// @dev counter to allow mutex lock with only one SSTORE operation
    uint256 private _guardCounter;

    constructor() internal {
        // The counter starts at one to prevent changing it from zero to a non-zero
        // value, which is a more expensive operation.
        _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"
        );
    }
}

// Part: SafeMath

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;
    }
}

// Part: Pausable

contract Pausable is Owned {
    uint256 public lastPauseTime;
    bool public paused;

    constructor() internal {
        // This contract is abstract, and thus cannot be instantiated directly
        require(owner != address(0), "Owner must be set");
        // Paused will be false, and lastPauseTime will be 0 upon initialisation
    }

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

        // 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"
        );
        _;
    }
}

// Part: SafeERC20

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"
            );
        }
    }
}

// Part: ProxyImplementation

contract ProxyImplementation {
    bool public proxyStorageInitialized;

    /**
     * @notice Nothing in constructor, since it only affects the logic address, not the storage address
     * @dev public visibility so it compiles for 0.6.12
     */
    constructor() public {}

    /**
     * @notice Only allow proxy's storage to be initialized once
     */
    modifier checkProxyInitialized() {
        require(
            !proxyStorageInitialized,
            "Can only initialize proxy storage once"
        );
        proxyStorageInitialized = true;
        _;
    }
}

// File: MultiRewards.sol

contract PartnersRewards is ReentrancyGuard, Pausable, ProxyImplementation {
    using SafeMath for uint256;
    using SafeERC20 for IERC20;

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

    struct Reward {
        address rewardsDistributor;
        uint256 rewardsDuration;
        uint256 periodFinish;
        uint256 rewardRate;
        uint256 lastUpdateTime;
        uint256 rewardPerTokenStored;
    }
    IERC20 public stakingToken;
    mapping(address => Reward) public rewardData;
    address[] public legacyRewardTokens; // legacy reward tokens, not overriden so people can claim their legacy rewards

    // distributor -> is approved to add rewards
    mapping(address => bool) public operator;

    //userProxyAddress -> is partner or not
    mapping(address => bool) public isPartner;

    // user -> reward token -> amount
    mapping(address => mapping(address => uint256))
        public userRewardPerTokenPaid;
    mapping(address => mapping(address => uint256)) public rewards;

    uint256 private _totalSupply;
    mapping(address => uint256) private _balances;

    address[] public rewardTokens; // new list to replace legacy reward tokens

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

    /**
     * @dev Since this is meant to be a proxy's implementation, DO NOT implement logic in this constructor, use initializeProxyStorage() instead
     */
    constructor(address _owner, address _stakingToken) public Owned(_owner) {
        initializeProxyStorage(_owner, _stakingToken);
    }

    /**
     * @notice Initialize proxy storage
     */
    function initializeProxyStorage(address _owner, address _stakingToken)
        public
        checkProxyInitialized
    {
        // From Owned
        owner = _owner;

        // ReentrancyGuard's constructor's not needed
        stakingToken = IERC20(_stakingToken);
    }

    function addReward(
        address _rewardsToken,
        address _rewardsDistributor,
        uint256 _rewardsDuration
    ) public onlyOwnerOrOperator {
        rewardTokens.push(_rewardsToken);
        rewardData[_rewardsToken].rewardsDistributor = _rewardsDistributor;
        rewardData[_rewardsToken].rewardsDuration = _rewardsDuration;
    }

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

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

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

    function lastTimeRewardApplicable(address _rewardsToken)
        public
        view
        returns (uint256)
    {
        return
            Math.min(block.timestamp, rewardData[_rewardsToken].periodFinish);
    }

    function rewardTokensLength() external view returns (uint256) {
        return rewardTokens.length;
    }

    function rewardPerToken(address _rewardsToken)
        public
        view
        returns (uint256)
    {
        if (_totalSupply == 0) {
            return rewardData[_rewardsToken].rewardPerTokenStored;
        }
        return
            rewardData[_rewardsToken].rewardPerTokenStored.add(
                lastTimeRewardApplicable(_rewardsToken)
                    .sub(rewardData[_rewardsToken].lastUpdateTime)
                    .mul(rewardData[_rewardsToken].rewardRate)
                    .mul(1e18)
                    .div(_totalSupply)
            );
    }

    function earned(address account, address _rewardsToken)
        public
        view
        returns (uint256)
    {
        return
            _balances[account]
                .mul(
                    rewardPerToken(_rewardsToken).sub(
                        userRewardPerTokenPaid[account][_rewardsToken]
                    )
                )
                .div(1e18)
                .add(rewards[account][_rewardsToken]);
    }

    function getRewardForDuration(address _rewardsToken)
        external
        view
        returns (uint256)
    {
        return
            rewardData[_rewardsToken].rewardRate.mul(
                rewardData[_rewardsToken].rewardsDuration
            );
    }

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

    function setRewardsDistributor(
        address _rewardsToken,
        address _rewardsDistributor
    ) external onlyOwnerOrOperator {
        rewardData[_rewardsToken].rewardsDistributor = _rewardsDistributor;
    }

    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 stakeFor(address account, uint256 amount)
        external
        nonReentrant
        notPaused
        updateReward(account)
    {
        require(amount > 0, "Cannot stake 0");

        _totalSupply = _totalSupply.add(amount);
        _balances[account] = _balances[account].add(amount);
        stakingToken.safeTransferFrom(msg.sender, address(this), amount);
        emit Staked(account, 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) {
        for (uint256 i; i < rewardTokens.length; i++) {
            address _rewardsToken = rewardTokens[i];
            uint256 reward = rewards[msg.sender][_rewardsToken];
            if (reward > 0) {
                rewards[msg.sender][_rewardsToken] = 0;
                IERC20(_rewardsToken).safeTransfer(msg.sender, reward);
                emit RewardPaid(msg.sender, _rewardsToken, reward);
            }
        }
    }

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

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

    function setOperator(address candidate, bool status) public onlyOwner {
        require(
            operator[candidate] != status,
            "Candidate already in this state"
        );
        operator[candidate] = status;
        emit OperatorStatus(candidate, status);
    }

    /** @notice Sets partner status for a userProxy address
     * @param candidate userProxy address of partner
     * @param status desired partner status
     * @dev auth is onlyOwnerOrOperator so we can add an automatic whitelisting contract as an operator
     */
    function setPartner(address candidate, bool status)
        external
        onlyOwnerOrOperator
    {
        require(
            isPartner[candidate] != status,
            "Candidate already in this state"
        );
        isPartner[candidate] = status;
        emit PartnerStatus(candidate, status);
    }

    function notifyRewardAmount(address _rewardsToken, uint256 reward)
        external
        updateReward(address(0))
    {
        require(rewardData[_rewardsToken].rewardsDistributor == msg.sender);
        // handle the transfer of reward tokens via `transferFrom` to reduce the number
        // of transactions required and ensure correctness of the reward amount
        IERC20(_rewardsToken).safeTransferFrom(
            msg.sender,
            address(this),
            reward
        );

        if (block.timestamp >= rewardData[_rewardsToken].periodFinish) {
            rewardData[_rewardsToken].rewardRate = reward.div(
                rewardData[_rewardsToken].rewardsDuration
            );
        } else {
            uint256 remaining = rewardData[_rewardsToken].periodFinish.sub(
                block.timestamp
            );
            uint256 leftover = remaining.mul(
                rewardData[_rewardsToken].rewardRate
            );
            rewardData[_rewardsToken].rewardRate = reward.add(leftover).div(
                rewardData[_rewardsToken].rewardsDuration
            );
        }

        rewardData[_rewardsToken].lastUpdateTime = block.timestamp;
        rewardData[_rewardsToken].periodFinish = block.timestamp.add(
            rewardData[_rewardsToken].rewardsDuration
        );
        emit RewardAdded(reward);
    }

    // Added to support recovering LP Rewards from other systems such as BAL to be distributed to holders
    function recoverERC20(address tokenAddress, uint256 tokenAmount)
        external
        onlyOwner
    {
        require(
            tokenAddress != address(stakingToken),
            "Cannot withdraw staking token"
        );
        require(
            rewardData[tokenAddress].lastUpdateTime == 0,
            "Cannot withdraw reward token"
        );
        IERC20(tokenAddress).safeTransfer(owner, tokenAmount);
        emit Recovered(tokenAddress, tokenAmount);
    }

    function setRewardsDuration(address _rewardsToken, uint256 _rewardsDuration)
        external
    {
        require(
            block.timestamp > rewardData[_rewardsToken].periodFinish,
            "Reward period still active"
        );
        require(rewardData[_rewardsToken].rewardsDistributor == msg.sender);
        require(_rewardsDuration > 0, "Reward duration must be non-zero");
        rewardData[_rewardsToken].rewardsDuration = _rewardsDuration;
        emit RewardsDurationUpdated(
            _rewardsToken,
            rewardData[_rewardsToken].rewardsDuration
        );
    }

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

    modifier updateReward(address account) {
        for (uint256 i; i < rewardTokens.length; i++) {
            address token = rewardTokens[i];
            rewardData[token].rewardPerTokenStored = rewardPerToken(token);
            rewardData[token].lastUpdateTime = lastTimeRewardApplicable(token);
            if (account != address(0)) {
                require(isPartner[account], "Account is not a partner");
                rewards[account][token] = earned(account, token);
                userRewardPerTokenPaid[account][token] = rewardData[token]
                    .rewardPerTokenStored;
            }
        }
        _;
    }

    modifier onlyOwnerOrOperator() {
        require(
            operator[msg.sender] || msg.sender == owner,
            "Only the owner or operator may perform this action"
        );
        _;
    }

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

    event RewardAdded(uint256 reward);
    event Staked(address indexed user, uint256 amount);
    event Withdrawn(address indexed user, uint256 amount);
    event RewardPaid(
        address indexed user,
        address indexed rewardsToken,
        uint256 reward
    );
    event RewardsDurationUpdated(address token, uint256 newDuration);
    event Recovered(address token, uint256 amount);
    event OperatorStatus(address candidate, bool status);
    event PartnerStatus(address candidate, bool status);
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"address","name":"_stakingToken","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"candidate","type":"address"},{"indexed":false,"internalType":"bool","name":"status","type":"bool"}],"name":"OperatorStatus","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":"address","name":"candidate","type":"address"},{"indexed":false,"internalType":"bool","name":"status","type":"bool"}],"name":"PartnerStatus","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"isPaused","type":"bool"}],"name":"PauseChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Recovered","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":true,"internalType":"address","name":"rewardsToken","type":"address"},{"indexed":false,"internalType":"uint256","name":"reward","type":"uint256"}],"name":"RewardPaid","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"newDuration","type":"uint256"}],"name":"RewardsDurationUpdated","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":"address","name":"_rewardsToken","type":"address"},{"internalType":"address","name":"_rewardsDistributor","type":"address"},{"internalType":"uint256","name":"_rewardsDuration","type":"uint256"}],"name":"addReward","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"},{"internalType":"address","name":"_rewardsToken","type":"address"}],"name":"earned","outputs":[{"internalType":"uint256","name":"","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":[{"internalType":"address","name":"_rewardsToken","type":"address"}],"name":"getRewardForDuration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"address","name":"_stakingToken","type":"address"}],"name":"initializeProxyStorage","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isPartner","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"lastPauseTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"_rewardsToken","type":"address"}],"name":"lastTimeRewardApplicable","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"legacyRewardTokens","outputs":[{"internalType":"address","name":"","type":"address"}],"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":"address","name":"_rewardsToken","type":"address"},{"internalType":"uint256","name":"reward","type":"uint256"}],"name":"notifyRewardAmount","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"operator","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","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":"proxyStorageInitialized","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":[{"internalType":"address","name":"","type":"address"}],"name":"rewardData","outputs":[{"internalType":"address","name":"rewardsDistributor","type":"address"},{"internalType":"uint256","name":"rewardsDuration","type":"uint256"},{"internalType":"uint256","name":"periodFinish","type":"uint256"},{"internalType":"uint256","name":"rewardRate","type":"uint256"},{"internalType":"uint256","name":"lastUpdateTime","type":"uint256"},{"internalType":"uint256","name":"rewardPerTokenStored","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"_rewardsToken","type":"address"}],"name":"rewardPerToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"rewardTokens","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"rewardTokensLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"rewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"candidate","type":"address"},{"internalType":"bool","name":"status","type":"bool"}],"name":"setOperator","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"candidate","type":"address"},{"internalType":"bool","name":"status","type":"bool"}],"name":"setPartner","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":"address","name":"_rewardsToken","type":"address"},{"internalType":"address","name":"_rewardsDistributor","type":"address"}],"name":"setRewardsDistributor","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_rewardsToken","type":"address"},{"internalType":"uint256","name":"_rewardsDuration","type":"uint256"}],"name":"setRewardsDuration","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":false,"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"stakeFor","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":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"","type":"address"},{"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"}]

60806040523480156200001157600080fd5b50604051620027e4380380620027e4833981810160405260408110156200003757600080fd5b5080516020918201516001600081815581546001600160a01b0319166001600160a01b038516908117909255604080519182529481019190915283519293919284927fb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c928290030190a1506001546001600160a01b0316620000f4576040805162461bcd60e51b815260206004820152601160248201527013dddb995c881b5d5cdd081899481cd95d607a1b604482015290519081900360640190fd5b6200010982826001600160e01b036200011116565b5050620001a4565b600454610100900460ff16156200015a5760405162461bcd60e51b8152600401808060200182810382526026815260200180620027be6026913960400191505060405180910390fd5b60048054600180546001600160a01b039586166001600160a01b031990911617905591909216620100000262010000600160b01b031961ff00199092166101001791909116179055565b61260a80620001b46000396000f3fe608060405234801561001057600080fd5b506004361061021c5760003560e01c806372f702f311610125578063a694fc3a116100ad578063d0ed26ae1161007c578063d0ed26ae14610625578063e70b9e271461065b578063e9fad8ee14610689578063f122977714610691578063f3165e62146106b75761021c565b8063a694fc3a146105ae578063b66503cf146105cb578063bcd11014146105f7578063bf199e621461061d5761021c565b80638c0f9aac116100f45780638c0f9aac1461054a5780638da5cb5b146105705780638dd910531461057857806391b4ded9146105805780639a307391146105885761021c565b806372f702f3146104f157806379ba5097146104f95780637bb7bed1146105015780638980f11f1461051e5761021c565b80633d18b912116101a8578063558a729711610177578063558a72971461042d5780635c975abb1461045b578063638634ee146104775780637035ab981461049d57806370a08231146104cb5761021c565b80633d18b9121461038c5780633f695b451461039457806348e5d9f8146103c257806353a47bb7146104255761021c565b806321acf659116101ef57806321acf659146102b05780632378bea6146102de5780632e1a7d4d1461030a5780632ee409081461032757806337bd7f94146103535761021c565b80631627540c1461022157806316c38b3c1461024957806318160ddd14610268578063211dc32d14610282575b600080fd5b6102476004803603602081101561023757600080fd5b50356001600160a01b03166106e5565b005b6102476004803603602081101561025f57600080fd5b50351515610741565b6102706107bb565b60408051918252519081900360200190f35b6102706004803603604081101561029857600080fd5b506001600160a01b03813581169160200135166107c1565b610247600480360360408110156102c657600080fd5b506001600160a01b0381351690602001351515610874565b610247600480360360408110156102f457600080fd5b506001600160a01b0381351690602001356109af565b6102476004803603602081101561032057600080fd5b5035610af5565b6102476004803603604081101561033d57600080fd5b506001600160a01b038135169060200135610d79565b6103706004803603602081101561036957600080fd5b5035611053565b604080516001600160a01b039092168252519081900360200190f35b61024761107a565b610247600480360360408110156103aa57600080fd5b506001600160a01b03813581169160200135166112e5565b6103e8600480360360208110156103d857600080fd5b50356001600160a01b0316611376565b604080516001600160a01b0390971687526020870195909552858501939093526060850191909152608084015260a0830152519081900360c00190f35b6103706113b5565b6102476004803603604081101561044357600080fd5b506001600160a01b03813516906020013515156113c4565b6104636114a4565b604080519115158252519081900360200190f35b6102706004803603602081101561048d57600080fd5b50356001600160a01b03166114ad565b610270600480360360408110156104b357600080fd5b506001600160a01b03813581169160200135166114dc565b610270600480360360208110156104e157600080fd5b50356001600160a01b03166114f9565b610370611514565b610247611529565b6103706004803603602081101561051757600080fd5b50356115e5565b6102476004803603604081101561053457600080fd5b506001600160a01b0381351690602001356115f2565b6104636004803603602081101561056057600080fd5b50356001600160a01b0316611739565b61037061174e565b61046361175d565b61027061176b565b6104636004803603602081101561059e57600080fd5b50356001600160a01b0316611771565b610247600480360360208110156105c457600080fd5b5035611786565b610247600480360360408110156105e157600080fd5b506001600160a01b038135169060200135611a47565b6102706004803603602081101561060d57600080fd5b50356001600160a01b0316611d7c565b610270611dae565b6102476004803603606081101561063b57600080fd5b506001600160a01b03813581169160208101359091169060400135611db4565b6102706004803603604081101561067157600080fd5b506001600160a01b0381358116916020013516611e85565b610247611ea2565b610270600480360360208110156106a757600080fd5b50356001600160a01b0316611ec5565b610247600480360360408110156106cd57600080fd5b506001600160a01b0381358116916020013516611f78565b6106ed612009565b600280546001600160a01b0383166001600160a01b0319909116811790915560408051918252517f906a1c6bd7e3091ea86693dd029a831c19049ce77f1dce2ce0bab1cacbabce229181900360200190a150565b610749612009565b60045460ff161515811515141561075f576107b8565b6004805460ff1916821515179081905560ff161561077c57426003555b6004546040805160ff90921615158252517f8fb6c181ee25a520cf3dd6565006ef91229fcfe5a989566c2a3b8c115570cec59181900360200190a15b50565b600b5490565b6001600160a01b038083166000818152600a6020908152604080832094861680845294825280832054938352600982528083209483529390529182205461086b919061085f90670de0b6b3a7640000906108539061082e9061082289611ec5565b9063ffffffff61205216565b6001600160a01b0389166000908152600c60205260409020549063ffffffff6120af16565b9063ffffffff61210816565b9063ffffffff61217216565b90505b92915050565b3360009081526007602052604090205460ff168061089c57506001546001600160a01b031633145b6108d75760405162461bcd60e51b81526004018080602001828103825260328152602001806124c86032913960400191505060405180910390fd5b6001600160a01b03821660009081526008602052604090205460ff161515811515141561094b576040805162461bcd60e51b815260206004820152601f60248201527f43616e64696461746520616c726561647920696e207468697320737461746500604482015290519081900360640190fd5b6001600160a01b038216600081815260086020908152604091829020805460ff191685151590811790915582519384529083015280517f9a6dd5e78ded0f84a9a358f17df19b96223f42820eb9546f1edca297c59ceb4f9281900390910190a15050565b6001600160a01b0382166000908152600560205260409020600201544211610a1e576040805162461bcd60e51b815260206004820152601a60248201527f52657761726420706572696f64207374696c6c20616374697665000000000000604482015290519081900360640190fd5b6001600160a01b03828116600090815260056020526040902054163314610a4457600080fd5b60008111610a99576040805162461bcd60e51b815260206004820181905260248201527f526577617264206475726174696f6e206d757374206265206e6f6e2d7a65726f604482015290519081900360640190fd5b6001600160a01b0382166000818152600560209081526040918290206001018490558151928352820183905280517fad2f86b01ed93b4b3a150d448c61a4f5d8d38075d3c0c64cc0a26fd6e1f495459281900390910190a15050565b600080546001018082559033905b600d54811015610c43576000600d8281548110610b1c57fe5b6000918252602090912001546001600160a01b03169050610b3c81611ec5565b6001600160a01b03821660009081526005602081905260409091200155610b62816114ad565b6001600160a01b03808316600090815260056020526040902060040191909155831615610c3a576001600160a01b03831660009081526008602052604090205460ff16610be4576040805162461bcd60e51b815260206004820152601860248201526000805160206124a8833981519152604482015290519081900360640190fd5b610bee83826107c1565b6001600160a01b038085166000818152600a6020908152604080832094871680845294825280832095909555600580825285832001549282526009815284822093825292909252919020555b50600101610b03565b5060008311610c8d576040805162461bcd60e51b8152602060048201526011602482015270043616e6e6f74207769746864726177203607c1b604482015290519081900360640190fd5b600b54610ca0908463ffffffff61205216565b600b55336000908152600c6020526040902054610cc3908463ffffffff61205216565b336000818152600c6020526040902091909155600454610cfa91620100009091046001600160a01b0316908563ffffffff6121cc16565b60408051848152905133917f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5919081900360200190a2506000548114610d75576040805162461bcd60e51b815260206004820152601f6024820152600080516020612453833981519152604482015290519081900360640190fd5b5050565b600080546001019081905560045460ff1615610dc65760405162461bcd60e51b815260040180806020018281038252603c815260200180612570603c913960400191505060405180910390fd5b8260005b600d54811015610f0a576000600d8281548110610de357fe5b6000918252602090912001546001600160a01b03169050610e0381611ec5565b6001600160a01b03821660009081526005602081905260409091200155610e29816114ad565b6001600160a01b03808316600090815260056020526040902060040191909155831615610f01576001600160a01b03831660009081526008602052604090205460ff16610eab576040805162461bcd60e51b815260206004820152601860248201526000805160206124a8833981519152604482015290519081900360640190fd5b610eb583826107c1565b6001600160a01b038085166000818152600a6020908152604080832094871680845294825280832095909555600580825285832001549282526009815284822093825292909252919020555b50600101610dca565b5060008311610f51576040805162461bcd60e51b815260206004820152600e60248201526d043616e6e6f74207374616b6520360941b604482015290519081900360640190fd5b600b54610f64908463ffffffff61217216565b600b556001600160a01b0384166000908152600c6020526040902054610f90908463ffffffff61217216565b6001600160a01b038086166000908152600c6020526040902091909155600454610fca91620100009091041633308663ffffffff61221e16565b6040805184815290516001600160a01b038616917f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d919081900360200190a250600054811461104e576040805162461bcd60e51b815260206004820152601f6024820152600080516020612453833981519152604482015290519081900360640190fd5b505050565b6006818154811061106057fe5b6000918252602090912001546001600160a01b0316905081565b600080546001018082559033905b600d548110156111c8576000600d82815481106110a157fe5b6000918252602090912001546001600160a01b031690506110c181611ec5565b6001600160a01b038216600090815260056020819052604090912001556110e7816114ad565b6001600160a01b038083166000908152600560205260409020600401919091558316156111bf576001600160a01b03831660009081526008602052604090205460ff16611169576040805162461bcd60e51b815260206004820152601860248201526000805160206124a8833981519152604482015290519081900360640190fd5b61117383826107c1565b6001600160a01b038085166000818152600a6020908152604080832094871680845294825280832095909555600580825285832001549282526009815284822093825292909252919020555b50600101611088565b5060005b600d5481101561129f576000600d82815481106111e557fe5b6000918252602080832090910154338352600a825260408084206001600160a01b0390921680855291909252912054909150801561129557336000818152600a602090815260408083206001600160a01b0387168085529252822091909155611254918363ffffffff6121cc16565b6040805182815290516001600160a01b0384169133917f540798df468d7b23d11f156fdb954cb19ad414d150722a7b6d55ba369dea792e9181900360200190a35b50506001016111cc565b505060005481146107b8576040805162461bcd60e51b815260206004820152601f6024820152600080516020612453833981519152604482015290519081900360640190fd5b3360009081526007602052604090205460ff168061130d57506001546001600160a01b031633145b6113485760405162461bcd60e51b81526004018080602001828103825260328152602001806124c86032913960400191505060405180910390fd5b6001600160a01b03918216600090815260056020526040902080546001600160a01b03191691909216179055565b60056020819052600091825260409091208054600182015460028301546003840154600485015494909501546001600160a01b03909316949193909286565b6002546001600160a01b031681565b6113cc612009565b6001600160a01b03821660009081526007602052604090205460ff1615158115151415611440576040805162461bcd60e51b815260206004820152601f60248201527f43616e64696461746520616c726561647920696e207468697320737461746500604482015290519081900360640190fd5b6001600160a01b038216600081815260076020908152604091829020805460ff191685151590811790915582519384529083015280517fc33803bef81a951b5fa7cc5c0244c93e628dcc19b4daa9bd05e910ae4dc571159281900390910190a15050565b60045460ff1681565b6001600160a01b0381166000908152600560205260408120600201546114d490429061227e565b90505b919050565b600960209081526000928352604080842090915290825290205481565b6001600160a01b03166000908152600c602052604090205490565b6004546201000090046001600160a01b031681565b6002546001600160a01b031633146115725760405162461bcd60e51b81526004018080602001828103825260358152602001806124736035913960400191505060405180910390fd5b600154600254604080516001600160a01b03938416815292909116602083015280517fb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c9281900390910190a160028054600180546001600160a01b03199081166001600160a01b03841617909155169055565b600d818154811061106057fe5b6115fa612009565b6004546001600160a01b0383811662010000909204161415611663576040805162461bcd60e51b815260206004820152601d60248201527f43616e6e6f74207769746864726177207374616b696e6720746f6b656e000000604482015290519081900360640190fd5b6001600160a01b038216600090815260056020526040902060040154156116d1576040805162461bcd60e51b815260206004820152601c60248201527f43616e6e6f742077697468647261772072657761726420746f6b656e00000000604482015290519081900360640190fd5b6001546116f1906001600160a01b0384811691168363ffffffff6121cc16565b604080516001600160a01b03841681526020810183905281517f8c1256b8896378cd5044f80c202f9772b9d77dc85c8a6eb51967210b09bfaa28929181900390910190a15050565b60086020526000908152604090205460ff1681565b6001546001600160a01b031681565b600454610100900460ff1681565b60035481565b60076020526000908152604090205460ff1681565b600080546001019081905560045460ff16156117d35760405162461bcd60e51b815260040180806020018281038252603c815260200180612570603c913960400191505060405180910390fd5b3360005b600d54811015611917576000600d82815481106117f057fe5b6000918252602090912001546001600160a01b0316905061181081611ec5565b6001600160a01b03821660009081526005602081905260409091200155611836816114ad565b6001600160a01b0380831660009081526005602052604090206004019190915583161561190e576001600160a01b03831660009081526008602052604090205460ff166118b8576040805162461bcd60e51b815260206004820152601860248201526000805160206124a8833981519152604482015290519081900360640190fd5b6118c283826107c1565b6001600160a01b038085166000818152600a6020908152604080832094871680845294825280832095909555600580825285832001549282526009815284822093825292909252919020555b506001016117d7565b506000831161195e576040805162461bcd60e51b815260206004820152600e60248201526d043616e6e6f74207374616b6520360941b604482015290519081900360640190fd5b600b54611971908463ffffffff61217216565b600b55336000908152600c6020526040902054611994908463ffffffff61217216565b336000818152600c60205260409020919091556004546119cc91620100009091046001600160a01b031690308663ffffffff61221e16565b60408051848152905133917f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d919081900360200190a2506000548114610d75576040805162461bcd60e51b815260206004820152601f6024820152600080516020612453833981519152604482015290519081900360640190fd5b6000805b600d54811015611b8b576000600d8281548110611a6457fe5b6000918252602090912001546001600160a01b03169050611a8481611ec5565b6001600160a01b03821660009081526005602081905260409091200155611aaa816114ad565b6001600160a01b03808316600090815260056020526040902060040191909155831615611b82576001600160a01b03831660009081526008602052604090205460ff16611b2c576040805162461bcd60e51b815260206004820152601860248201526000805160206124a8833981519152604482015290519081900360640190fd5b611b3683826107c1565b6001600160a01b038085166000818152600a6020908152604080832094871680845294825280832095909555600580825285832001549282526009815284822093825292909252919020555b50600101611a4b565b506001600160a01b03838116600090815260056020526040902054163314611bb257600080fd5b611bcd6001600160a01b03841633308563ffffffff61221e16565b6001600160a01b0383166000908152600560205260409020600201544210611c3d576001600160a01b038316600090815260056020526040902060010154611c1c90839063ffffffff61210816565b6001600160a01b038416600090815260056020526040902060030155611cec565b6001600160a01b038316600090815260056020526040812060020154611c69904263ffffffff61205216565b6001600160a01b03851660009081526005602052604081206003015491925090611c9a90839063ffffffff6120af16565b6001600160a01b038616600090815260056020526040902060010154909150611ccd90610853868463ffffffff61217216565b6001600160a01b03861660009081526005602052604090206003015550505b6001600160a01b03831660009081526005602052604090204260048201819055600190910154611d22919063ffffffff61217216565b6001600160a01b03841660009081526005602090815260409182902060020192909255805184815290517fde88a922e0d3b88b24e9623efeb464919c6bf9f66857a65e2bfcf2ce87a9433d929181900390910190a1505050565b6001600160a01b038116600090815260056020526040812060018101546003909101546114d49163ffffffff6120af16565b600d5490565b3360009081526007602052604090205460ff1680611ddc57506001546001600160a01b031633145b611e175760405162461bcd60e51b81526004018080602001828103825260328152602001806124c86032913960400191505060405180910390fd5b600d805460018181019092557fd7b6990105719101dabeb77144f2a3385c8033acd3af97e9423a695e81ad1eb50180546001600160a01b039586166001600160a01b031991821681179092556000918252600560205260409091208054949095169316929092178355910155565b600a60209081526000928352604080842090915290825290205481565b336000908152600c6020526040902054611ebb90610af5565b611ec361107a565b565b6000600b5460001415611ef557506001600160a01b038116600090815260056020819052604090912001546114d7565b600b546001600160a01b038316600090815260056020526040902060038101546004909101546114d492611f4f92909161085391670de0b6b3a764000091611f43919082906108228b6114ad565b9063ffffffff6120af16565b6001600160a01b038416600090815260056020819052604090912001549063ffffffff61217216565b600454610100900460ff1615611fbf5760405162461bcd60e51b815260040180806020018281038252602681526020018061254a6026913960400191505060405180910390fd5b60048054600180546001600160a01b039586166001600160a01b031990911617905591909216620100000262010000600160b01b031961ff00199092166101001791909116179055565b6001546001600160a01b03163314611ec35760405162461bcd60e51b815260040180806020018281038252602f8152602001806124fa602f913960400191505060405180910390fd5b6000828211156120a9576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b6000826120be5750600061086e565b828202828482816120cb57fe5b041461086b5760405162461bcd60e51b81526004018080602001828103825260218152602001806125296021913960400191505060405180910390fd5b600080821161215e576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b600082848161216957fe5b04949350505050565b60008282018381101561086b576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b17905261104e908490612294565b604080516001600160a01b0385811660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b179052612278908590612294565b50505050565b600081831061228d578161086b565b5090919050565b6122a6826001600160a01b031661244c565b6122f7576040805162461bcd60e51b815260206004820152601f60248201527f5361666545524332303a2063616c6c20746f206e6f6e2d636f6e747261637400604482015290519081900360640190fd5b60006060836001600160a01b0316836040518082805190602001908083835b602083106123355780518252601f199092019160209182019101612316565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114612397576040519150601f19603f3d011682016040523d82523d6000602084013e61239c565b606091505b5091509150816123f3576040805162461bcd60e51b815260206004820181905260248201527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564604482015290519081900360640190fd5b8051156122785780806020019051602081101561240f57600080fd5b50516122785760405162461bcd60e51b815260040180806020018281038252602a8152602001806125ac602a913960400191505060405180910390fd5b3b15159056fe5265656e7472616e637947756172643a207265656e7472616e742063616c6c00596f75206d757374206265206e6f6d696e61746564206265666f726520796f752063616e20616363657074206f776e6572736869704163636f756e74206973206e6f74206120706172746e657200000000000000004f6e6c7920746865206f776e6572206f72206f70657261746f72206d617920706572666f726d207468697320616374696f6e4f6e6c792074686520636f6e7472616374206f776e6572206d617920706572666f726d207468697320616374696f6e536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7743616e206f6e6c7920696e697469616c697a652070726f78792073746f72616765206f6e63655468697320616374696f6e2063616e6e6f7420626520706572666f726d6564207768696c652074686520636f6e7472616374206973207061757365645361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a265627a7a72315820317b6fab98854231ba3fcff3d2cd91f06e2c6a442afd9ee382eb0b2c27846c1264736f6c6343000511003243616e206f6e6c7920696e697469616c697a652070726f78792073746f72616765206f6e6365000000000000000000000000da001323a345f0109a1b3a6570e4ac8d7f7f6593000000000000000000000000da0053f0befcbcac208a3f867bb243716734d809

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061021c5760003560e01c806372f702f311610125578063a694fc3a116100ad578063d0ed26ae1161007c578063d0ed26ae14610625578063e70b9e271461065b578063e9fad8ee14610689578063f122977714610691578063f3165e62146106b75761021c565b8063a694fc3a146105ae578063b66503cf146105cb578063bcd11014146105f7578063bf199e621461061d5761021c565b80638c0f9aac116100f45780638c0f9aac1461054a5780638da5cb5b146105705780638dd910531461057857806391b4ded9146105805780639a307391146105885761021c565b806372f702f3146104f157806379ba5097146104f95780637bb7bed1146105015780638980f11f1461051e5761021c565b80633d18b912116101a8578063558a729711610177578063558a72971461042d5780635c975abb1461045b578063638634ee146104775780637035ab981461049d57806370a08231146104cb5761021c565b80633d18b9121461038c5780633f695b451461039457806348e5d9f8146103c257806353a47bb7146104255761021c565b806321acf659116101ef57806321acf659146102b05780632378bea6146102de5780632e1a7d4d1461030a5780632ee409081461032757806337bd7f94146103535761021c565b80631627540c1461022157806316c38b3c1461024957806318160ddd14610268578063211dc32d14610282575b600080fd5b6102476004803603602081101561023757600080fd5b50356001600160a01b03166106e5565b005b6102476004803603602081101561025f57600080fd5b50351515610741565b6102706107bb565b60408051918252519081900360200190f35b6102706004803603604081101561029857600080fd5b506001600160a01b03813581169160200135166107c1565b610247600480360360408110156102c657600080fd5b506001600160a01b0381351690602001351515610874565b610247600480360360408110156102f457600080fd5b506001600160a01b0381351690602001356109af565b6102476004803603602081101561032057600080fd5b5035610af5565b6102476004803603604081101561033d57600080fd5b506001600160a01b038135169060200135610d79565b6103706004803603602081101561036957600080fd5b5035611053565b604080516001600160a01b039092168252519081900360200190f35b61024761107a565b610247600480360360408110156103aa57600080fd5b506001600160a01b03813581169160200135166112e5565b6103e8600480360360208110156103d857600080fd5b50356001600160a01b0316611376565b604080516001600160a01b0390971687526020870195909552858501939093526060850191909152608084015260a0830152519081900360c00190f35b6103706113b5565b6102476004803603604081101561044357600080fd5b506001600160a01b03813516906020013515156113c4565b6104636114a4565b604080519115158252519081900360200190f35b6102706004803603602081101561048d57600080fd5b50356001600160a01b03166114ad565b610270600480360360408110156104b357600080fd5b506001600160a01b03813581169160200135166114dc565b610270600480360360208110156104e157600080fd5b50356001600160a01b03166114f9565b610370611514565b610247611529565b6103706004803603602081101561051757600080fd5b50356115e5565b6102476004803603604081101561053457600080fd5b506001600160a01b0381351690602001356115f2565b6104636004803603602081101561056057600080fd5b50356001600160a01b0316611739565b61037061174e565b61046361175d565b61027061176b565b6104636004803603602081101561059e57600080fd5b50356001600160a01b0316611771565b610247600480360360208110156105c457600080fd5b5035611786565b610247600480360360408110156105e157600080fd5b506001600160a01b038135169060200135611a47565b6102706004803603602081101561060d57600080fd5b50356001600160a01b0316611d7c565b610270611dae565b6102476004803603606081101561063b57600080fd5b506001600160a01b03813581169160208101359091169060400135611db4565b6102706004803603604081101561067157600080fd5b506001600160a01b0381358116916020013516611e85565b610247611ea2565b610270600480360360208110156106a757600080fd5b50356001600160a01b0316611ec5565b610247600480360360408110156106cd57600080fd5b506001600160a01b0381358116916020013516611f78565b6106ed612009565b600280546001600160a01b0383166001600160a01b0319909116811790915560408051918252517f906a1c6bd7e3091ea86693dd029a831c19049ce77f1dce2ce0bab1cacbabce229181900360200190a150565b610749612009565b60045460ff161515811515141561075f576107b8565b6004805460ff1916821515179081905560ff161561077c57426003555b6004546040805160ff90921615158252517f8fb6c181ee25a520cf3dd6565006ef91229fcfe5a989566c2a3b8c115570cec59181900360200190a15b50565b600b5490565b6001600160a01b038083166000818152600a6020908152604080832094861680845294825280832054938352600982528083209483529390529182205461086b919061085f90670de0b6b3a7640000906108539061082e9061082289611ec5565b9063ffffffff61205216565b6001600160a01b0389166000908152600c60205260409020549063ffffffff6120af16565b9063ffffffff61210816565b9063ffffffff61217216565b90505b92915050565b3360009081526007602052604090205460ff168061089c57506001546001600160a01b031633145b6108d75760405162461bcd60e51b81526004018080602001828103825260328152602001806124c86032913960400191505060405180910390fd5b6001600160a01b03821660009081526008602052604090205460ff161515811515141561094b576040805162461bcd60e51b815260206004820152601f60248201527f43616e64696461746520616c726561647920696e207468697320737461746500604482015290519081900360640190fd5b6001600160a01b038216600081815260086020908152604091829020805460ff191685151590811790915582519384529083015280517f9a6dd5e78ded0f84a9a358f17df19b96223f42820eb9546f1edca297c59ceb4f9281900390910190a15050565b6001600160a01b0382166000908152600560205260409020600201544211610a1e576040805162461bcd60e51b815260206004820152601a60248201527f52657761726420706572696f64207374696c6c20616374697665000000000000604482015290519081900360640190fd5b6001600160a01b03828116600090815260056020526040902054163314610a4457600080fd5b60008111610a99576040805162461bcd60e51b815260206004820181905260248201527f526577617264206475726174696f6e206d757374206265206e6f6e2d7a65726f604482015290519081900360640190fd5b6001600160a01b0382166000818152600560209081526040918290206001018490558151928352820183905280517fad2f86b01ed93b4b3a150d448c61a4f5d8d38075d3c0c64cc0a26fd6e1f495459281900390910190a15050565b600080546001018082559033905b600d54811015610c43576000600d8281548110610b1c57fe5b6000918252602090912001546001600160a01b03169050610b3c81611ec5565b6001600160a01b03821660009081526005602081905260409091200155610b62816114ad565b6001600160a01b03808316600090815260056020526040902060040191909155831615610c3a576001600160a01b03831660009081526008602052604090205460ff16610be4576040805162461bcd60e51b815260206004820152601860248201526000805160206124a8833981519152604482015290519081900360640190fd5b610bee83826107c1565b6001600160a01b038085166000818152600a6020908152604080832094871680845294825280832095909555600580825285832001549282526009815284822093825292909252919020555b50600101610b03565b5060008311610c8d576040805162461bcd60e51b8152602060048201526011602482015270043616e6e6f74207769746864726177203607c1b604482015290519081900360640190fd5b600b54610ca0908463ffffffff61205216565b600b55336000908152600c6020526040902054610cc3908463ffffffff61205216565b336000818152600c6020526040902091909155600454610cfa91620100009091046001600160a01b0316908563ffffffff6121cc16565b60408051848152905133917f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5919081900360200190a2506000548114610d75576040805162461bcd60e51b815260206004820152601f6024820152600080516020612453833981519152604482015290519081900360640190fd5b5050565b600080546001019081905560045460ff1615610dc65760405162461bcd60e51b815260040180806020018281038252603c815260200180612570603c913960400191505060405180910390fd5b8260005b600d54811015610f0a576000600d8281548110610de357fe5b6000918252602090912001546001600160a01b03169050610e0381611ec5565b6001600160a01b03821660009081526005602081905260409091200155610e29816114ad565b6001600160a01b03808316600090815260056020526040902060040191909155831615610f01576001600160a01b03831660009081526008602052604090205460ff16610eab576040805162461bcd60e51b815260206004820152601860248201526000805160206124a8833981519152604482015290519081900360640190fd5b610eb583826107c1565b6001600160a01b038085166000818152600a6020908152604080832094871680845294825280832095909555600580825285832001549282526009815284822093825292909252919020555b50600101610dca565b5060008311610f51576040805162461bcd60e51b815260206004820152600e60248201526d043616e6e6f74207374616b6520360941b604482015290519081900360640190fd5b600b54610f64908463ffffffff61217216565b600b556001600160a01b0384166000908152600c6020526040902054610f90908463ffffffff61217216565b6001600160a01b038086166000908152600c6020526040902091909155600454610fca91620100009091041633308663ffffffff61221e16565b6040805184815290516001600160a01b038616917f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d919081900360200190a250600054811461104e576040805162461bcd60e51b815260206004820152601f6024820152600080516020612453833981519152604482015290519081900360640190fd5b505050565b6006818154811061106057fe5b6000918252602090912001546001600160a01b0316905081565b600080546001018082559033905b600d548110156111c8576000600d82815481106110a157fe5b6000918252602090912001546001600160a01b031690506110c181611ec5565b6001600160a01b038216600090815260056020819052604090912001556110e7816114ad565b6001600160a01b038083166000908152600560205260409020600401919091558316156111bf576001600160a01b03831660009081526008602052604090205460ff16611169576040805162461bcd60e51b815260206004820152601860248201526000805160206124a8833981519152604482015290519081900360640190fd5b61117383826107c1565b6001600160a01b038085166000818152600a6020908152604080832094871680845294825280832095909555600580825285832001549282526009815284822093825292909252919020555b50600101611088565b5060005b600d5481101561129f576000600d82815481106111e557fe5b6000918252602080832090910154338352600a825260408084206001600160a01b0390921680855291909252912054909150801561129557336000818152600a602090815260408083206001600160a01b0387168085529252822091909155611254918363ffffffff6121cc16565b6040805182815290516001600160a01b0384169133917f540798df468d7b23d11f156fdb954cb19ad414d150722a7b6d55ba369dea792e9181900360200190a35b50506001016111cc565b505060005481146107b8576040805162461bcd60e51b815260206004820152601f6024820152600080516020612453833981519152604482015290519081900360640190fd5b3360009081526007602052604090205460ff168061130d57506001546001600160a01b031633145b6113485760405162461bcd60e51b81526004018080602001828103825260328152602001806124c86032913960400191505060405180910390fd5b6001600160a01b03918216600090815260056020526040902080546001600160a01b03191691909216179055565b60056020819052600091825260409091208054600182015460028301546003840154600485015494909501546001600160a01b03909316949193909286565b6002546001600160a01b031681565b6113cc612009565b6001600160a01b03821660009081526007602052604090205460ff1615158115151415611440576040805162461bcd60e51b815260206004820152601f60248201527f43616e64696461746520616c726561647920696e207468697320737461746500604482015290519081900360640190fd5b6001600160a01b038216600081815260076020908152604091829020805460ff191685151590811790915582519384529083015280517fc33803bef81a951b5fa7cc5c0244c93e628dcc19b4daa9bd05e910ae4dc571159281900390910190a15050565b60045460ff1681565b6001600160a01b0381166000908152600560205260408120600201546114d490429061227e565b90505b919050565b600960209081526000928352604080842090915290825290205481565b6001600160a01b03166000908152600c602052604090205490565b6004546201000090046001600160a01b031681565b6002546001600160a01b031633146115725760405162461bcd60e51b81526004018080602001828103825260358152602001806124736035913960400191505060405180910390fd5b600154600254604080516001600160a01b03938416815292909116602083015280517fb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c9281900390910190a160028054600180546001600160a01b03199081166001600160a01b03841617909155169055565b600d818154811061106057fe5b6115fa612009565b6004546001600160a01b0383811662010000909204161415611663576040805162461bcd60e51b815260206004820152601d60248201527f43616e6e6f74207769746864726177207374616b696e6720746f6b656e000000604482015290519081900360640190fd5b6001600160a01b038216600090815260056020526040902060040154156116d1576040805162461bcd60e51b815260206004820152601c60248201527f43616e6e6f742077697468647261772072657761726420746f6b656e00000000604482015290519081900360640190fd5b6001546116f1906001600160a01b0384811691168363ffffffff6121cc16565b604080516001600160a01b03841681526020810183905281517f8c1256b8896378cd5044f80c202f9772b9d77dc85c8a6eb51967210b09bfaa28929181900390910190a15050565b60086020526000908152604090205460ff1681565b6001546001600160a01b031681565b600454610100900460ff1681565b60035481565b60076020526000908152604090205460ff1681565b600080546001019081905560045460ff16156117d35760405162461bcd60e51b815260040180806020018281038252603c815260200180612570603c913960400191505060405180910390fd5b3360005b600d54811015611917576000600d82815481106117f057fe5b6000918252602090912001546001600160a01b0316905061181081611ec5565b6001600160a01b03821660009081526005602081905260409091200155611836816114ad565b6001600160a01b0380831660009081526005602052604090206004019190915583161561190e576001600160a01b03831660009081526008602052604090205460ff166118b8576040805162461bcd60e51b815260206004820152601860248201526000805160206124a8833981519152604482015290519081900360640190fd5b6118c283826107c1565b6001600160a01b038085166000818152600a6020908152604080832094871680845294825280832095909555600580825285832001549282526009815284822093825292909252919020555b506001016117d7565b506000831161195e576040805162461bcd60e51b815260206004820152600e60248201526d043616e6e6f74207374616b6520360941b604482015290519081900360640190fd5b600b54611971908463ffffffff61217216565b600b55336000908152600c6020526040902054611994908463ffffffff61217216565b336000818152600c60205260409020919091556004546119cc91620100009091046001600160a01b031690308663ffffffff61221e16565b60408051848152905133917f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d919081900360200190a2506000548114610d75576040805162461bcd60e51b815260206004820152601f6024820152600080516020612453833981519152604482015290519081900360640190fd5b6000805b600d54811015611b8b576000600d8281548110611a6457fe5b6000918252602090912001546001600160a01b03169050611a8481611ec5565b6001600160a01b03821660009081526005602081905260409091200155611aaa816114ad565b6001600160a01b03808316600090815260056020526040902060040191909155831615611b82576001600160a01b03831660009081526008602052604090205460ff16611b2c576040805162461bcd60e51b815260206004820152601860248201526000805160206124a8833981519152604482015290519081900360640190fd5b611b3683826107c1565b6001600160a01b038085166000818152600a6020908152604080832094871680845294825280832095909555600580825285832001549282526009815284822093825292909252919020555b50600101611a4b565b506001600160a01b03838116600090815260056020526040902054163314611bb257600080fd5b611bcd6001600160a01b03841633308563ffffffff61221e16565b6001600160a01b0383166000908152600560205260409020600201544210611c3d576001600160a01b038316600090815260056020526040902060010154611c1c90839063ffffffff61210816565b6001600160a01b038416600090815260056020526040902060030155611cec565b6001600160a01b038316600090815260056020526040812060020154611c69904263ffffffff61205216565b6001600160a01b03851660009081526005602052604081206003015491925090611c9a90839063ffffffff6120af16565b6001600160a01b038616600090815260056020526040902060010154909150611ccd90610853868463ffffffff61217216565b6001600160a01b03861660009081526005602052604090206003015550505b6001600160a01b03831660009081526005602052604090204260048201819055600190910154611d22919063ffffffff61217216565b6001600160a01b03841660009081526005602090815260409182902060020192909255805184815290517fde88a922e0d3b88b24e9623efeb464919c6bf9f66857a65e2bfcf2ce87a9433d929181900390910190a1505050565b6001600160a01b038116600090815260056020526040812060018101546003909101546114d49163ffffffff6120af16565b600d5490565b3360009081526007602052604090205460ff1680611ddc57506001546001600160a01b031633145b611e175760405162461bcd60e51b81526004018080602001828103825260328152602001806124c86032913960400191505060405180910390fd5b600d805460018181019092557fd7b6990105719101dabeb77144f2a3385c8033acd3af97e9423a695e81ad1eb50180546001600160a01b039586166001600160a01b031991821681179092556000918252600560205260409091208054949095169316929092178355910155565b600a60209081526000928352604080842090915290825290205481565b336000908152600c6020526040902054611ebb90610af5565b611ec361107a565b565b6000600b5460001415611ef557506001600160a01b038116600090815260056020819052604090912001546114d7565b600b546001600160a01b038316600090815260056020526040902060038101546004909101546114d492611f4f92909161085391670de0b6b3a764000091611f43919082906108228b6114ad565b9063ffffffff6120af16565b6001600160a01b038416600090815260056020819052604090912001549063ffffffff61217216565b600454610100900460ff1615611fbf5760405162461bcd60e51b815260040180806020018281038252602681526020018061254a6026913960400191505060405180910390fd5b60048054600180546001600160a01b039586166001600160a01b031990911617905591909216620100000262010000600160b01b031961ff00199092166101001791909116179055565b6001546001600160a01b03163314611ec35760405162461bcd60e51b815260040180806020018281038252602f8152602001806124fa602f913960400191505060405180910390fd5b6000828211156120a9576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b6000826120be5750600061086e565b828202828482816120cb57fe5b041461086b5760405162461bcd60e51b81526004018080602001828103825260218152602001806125296021913960400191505060405180910390fd5b600080821161215e576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b600082848161216957fe5b04949350505050565b60008282018381101561086b576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b17905261104e908490612294565b604080516001600160a01b0385811660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b179052612278908590612294565b50505050565b600081831061228d578161086b565b5090919050565b6122a6826001600160a01b031661244c565b6122f7576040805162461bcd60e51b815260206004820152601f60248201527f5361666545524332303a2063616c6c20746f206e6f6e2d636f6e747261637400604482015290519081900360640190fd5b60006060836001600160a01b0316836040518082805190602001908083835b602083106123355780518252601f199092019160209182019101612316565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114612397576040519150601f19603f3d011682016040523d82523d6000602084013e61239c565b606091505b5091509150816123f3576040805162461bcd60e51b815260206004820181905260248201527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564604482015290519081900360640190fd5b8051156122785780806020019051602081101561240f57600080fd5b50516122785760405162461bcd60e51b815260040180806020018281038252602a8152602001806125ac602a913960400191505060405180910390fd5b3b15159056fe5265656e7472616e637947756172643a207265656e7472616e742063616c6c00596f75206d757374206265206e6f6d696e61746564206265666f726520796f752063616e20616363657074206f776e6572736869704163636f756e74206973206e6f74206120706172746e657200000000000000004f6e6c7920746865206f776e6572206f72206f70657261746f72206d617920706572666f726d207468697320616374696f6e4f6e6c792074686520636f6e7472616374206f776e6572206d617920706572666f726d207468697320616374696f6e536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7743616e206f6e6c7920696e697469616c697a652070726f78792073746f72616765206f6e63655468697320616374696f6e2063616e6e6f7420626520706572666f726d6564207768696c652074686520636f6e7472616374206973207061757365645361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a265627a7a72315820317b6fab98854231ba3fcff3d2cd91f06e2c6a442afd9ee382eb0b2c27846c1264736f6c63430005110032

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

000000000000000000000000da001323a345f0109a1b3a6570e4ac8d7f7f6593000000000000000000000000da0053f0befcbcac208a3f867bb243716734d809

-----Decoded View---------------
Arg [0] : _owner (address): 0xDA001323a345F0109A1B3A6570E4ac8D7f7F6593
Arg [1] : _stakingToken (address): 0xDA0053F0bEfCbcaC208A3f867BB243716734D809

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000da001323a345f0109a1b3a6570e4ac8d7f7f6593
Arg [1] : 000000000000000000000000da0053f0befcbcac208a3f867bb243716734d809


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

Txn 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.