ETH Price: $3,381.32 (+4.97%)

Contract

0x7d9FfF9DB061c1Aaf7f83a6Fb8b9Aa7740535C75
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Withdraw Liquidi...185166942023-11-07 1:05:59440 days ago1699319159IN
0x7d9FfF9D...740535C75
0 ETH0.004876824.69917849
Withdraw User Bo...185166892023-11-07 1:04:59440 days ago1699319099IN
0x7d9FfF9D...740535C75
0 ETH0.0025196625.90542171
Withdraw Liquidi...185166462023-11-07 0:56:23440 days ago1699318583IN
0x7d9FfF9D...740535C75
0 ETH0.00529526.81723507
Withdraw User Bo...185166402023-11-07 0:55:11440 days ago1699318511IN
0x7d9FfF9D...740535C75
0 ETH0.0010384429.03351179
Withdraw User Bo...185166402023-11-07 0:55:11440 days ago1699318511IN
0x7d9FfF9D...740535C75
0 ETH0.0026783327.53675032
Withdraw User LP146129932022-04-19 2:42:071007 days ago1650336127IN
0x7d9FfF9D...740535C75
0 ETH0.0012931820.69664816
Withdraw User Bo...146129742022-04-19 2:38:441007 days ago1650335924IN
0x7d9FfF9D...740535C75
0 ETH0.0017328917.81636184
Withdraw Liquidi...144973042022-04-01 0:56:491025 days ago1648774609IN
0x7d9FfF9D...740535C75
0 ETH0.006889634.89504026
Withdraw User Bo...144941972022-03-31 13:22:291025 days ago1648732949IN
0x7d9FfF9D...740535C75
0 ETH0.0037314238.36385877
Withdraw User Bo...144940732022-03-31 12:57:481025 days ago1648731468IN
0x7d9FfF9D...740535C75
0 ETH0.00198536.09103819
Withdraw Liquidi...144312592022-03-21 18:15:471035 days ago1647886547IN
0x7d9FfF9D...740535C75
0 ETH0.0043070621.81369166
Withdraw User Bo...144305432022-03-21 15:32:441035 days ago1647876764IN
0x7d9FfF9D...740535C75
0 ETH0.0026736727.48883826
Withdraw User Bo...143961172022-03-16 6:58:281041 days ago1647413908IN
0x7d9FfF9D...740535C75
0 ETH0.0024572425.26370232
Withdraw User LP143884272022-03-15 2:10:181042 days ago1647310218IN
0x7d9FfF9D...740535C75
0 ETH0.0015206324.33682886
Withdraw Liquidi...143874602022-03-14 22:35:031042 days ago1647297303IN
0x7d9FfF9D...740535C75
0 ETH0.0073961637.45880555
Withdraw User Bo...143874582022-03-14 22:34:401042 days ago1647297280IN
0x7d9FfF9D...740535C75
0 ETH0.0041924243.1036008
Withdraw Liquidi...143511762022-03-09 7:03:001048 days ago1646809380IN
0x7d9FfF9D...740535C75
0 ETH0.0048116124.36901247
Withdraw User Bo...143511512022-03-09 6:57:051048 days ago1646809025IN
0x7d9FfF9D...740535C75
0 ETH0.0023469924.13014739
Withdraw Liquidi...143367602022-03-07 1:26:201050 days ago1646616380IN
0x7d9FfF9D...740535C75
0 ETH0.011463354.29553665
Withdraw Liquidi...143355882022-03-06 21:01:461050 days ago1646600506IN
0x7d9FfF9D...740535C75
0 ETH0.0088331844.73676406
Withdraw User Bo...143355222022-03-06 20:45:161050 days ago1646599516IN
0x7d9FfF9D...740535C75
0 ETH0.0062946664.71731152
Withdraw User Bo...143339862022-03-06 14:52:091050 days ago1646578329IN
0x7d9FfF9D...740535C75
0 ETH0.0029243930.06662217
Withdraw Liquidi...143330952022-03-06 11:39:521050 days ago1646566792IN
0x7d9FfF9D...740535C75
0 ETH0.0040601420.5631267
Withdraw User Bo...143330472022-03-06 11:27:521050 days ago1646566072IN
0x7d9FfF9D...740535C75
0 ETH0.0018211718.72404035
Withdraw Liquidi...143305272022-03-06 2:00:491051 days ago1646532049IN
0x7d9FfF9D...740535C75
0 ETH0.0050771925.71408278
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block
From
To
123319932021-04-28 23:55:491362 days ago1619654149
0x7d9FfF9D...740535C75
0.05 ETH
122986282021-04-23 20:23:191367 days ago1619209399
0x7d9FfF9D...740535C75
0.07809966 ETH
122285662021-04-13 0:42:531378 days ago1618274573
0x7d9FfF9D...740535C75
0.24514137 ETH
122089042021-04-10 0:28:501381 days ago1618014530
0x7d9FfF9D...740535C75
2.93513388 ETH
122074332021-04-09 19:04:021381 days ago1617995042
0x7d9FfF9D...740535C75
0.09999999 ETH
122073072021-04-09 18:38:491381 days ago1617993529
0x7d9FfF9D...740535C75
0.06459779 ETH
122021522021-04-08 23:33:121382 days ago1617924792
0x7d9FfF9D...740535C75
0.25822081 ETH
121997912021-04-08 14:49:511382 days ago1617893391
0x7d9FfF9D...740535C75
0.11310802 ETH
121982042021-04-08 8:55:081383 days ago1617872108
0x7d9FfF9D...740535C75
0.56311493 ETH
121797192021-04-05 12:40:031385 days ago1617626403
0x7d9FfF9D...740535C75
0.1645963 ETH
121380702021-03-30 3:03:571392 days ago1617073437
0x7d9FfF9D...740535C75
1.00200457 ETH
121304352021-03-28 22:52:311393 days ago1616971951
0x7d9FfF9D...740535C75
0.02373894 ETH
121289052021-03-28 17:09:161393 days ago1616951356
0x7d9FfF9D...740535C75
0.49999999 ETH
121220352021-03-27 15:59:121394 days ago1616860752
0x7d9FfF9D...740535C75
1.10849601 ETH
121196562021-03-27 6:54:471395 days ago1616828087
0x7d9FfF9D...740535C75
2.05305135 ETH
121105432021-03-25 21:23:481396 days ago1616707428
0x7d9FfF9D...740535C75
0.24999999 ETH
121094222021-03-25 17:22:481396 days ago1616692968
0x7d9FfF9D...740535C75
1.56182714 ETH
121062972021-03-25 5:48:491397 days ago1616651329
0x7d9FfF9D...740535C75
0.16999999 ETH
120855852021-03-22 1:12:271400 days ago1616375547
0x7d9FfF9D...740535C75
0.15297237 ETH
120742602021-03-20 7:06:191402 days ago1616223979
0x7d9FfF9D...740535C75
0.40415691 ETH
120669452021-03-19 4:09:491403 days ago1616126989
0x7d9FfF9D...740535C75
0.85969486 ETH
120642122021-03-18 18:12:301403 days ago1616091150
0x7d9FfF9D...740535C75
0.99644216 ETH
120620142021-03-18 10:10:541403 days ago1616062254
0x7d9FfF9D...740535C75
0.19924819 ETH
120599892021-03-18 2:36:041404 days ago1616034964
0x7d9FfF9D...740535C75
0.12099834 ETH
120588992021-03-17 22:32:451404 days ago1616020365
0x7d9FfF9D...740535C75
0.16334035 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
PoolStake

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, None license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2021-03-05
*/

//"SPDX-License-Identifier: UNLICENSED"

/**
 *Submitted for verification at Etherscan.io on 2021-03-01
*/

//"SPDX-License-Identifier: UNLICENSED"

pragma solidity ^0.6.6;

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

        return c;
    }

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

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

        return c;
    }

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

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

        return c;
    }

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

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

        return c;
    }

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

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

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

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

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

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

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

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

  /**
   * @dev Emitted when `value` tokens are moved from one account (`from`) to
   * another (`to`).
   *
   * Note that `value` may be zero.
   */
  event Transfer(address indexed from, address indexed to, uint256 value);

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

interface IUniswapV2Factory {
    event PairCreated(address indexed token0, address indexed token1, address pair, uint);

    function feeTo() external view returns (address);
    function feeToSetter() external view returns (address);

    function getPair(address tokenA, address tokenB) external view returns (address pair);
    function allPairs(uint) external view returns (address pair);
    function allPairsLength() external view returns (uint);

    function createPair(address tokenA, address tokenB) external returns (address pair);

    function setFeeTo(address) external;
    function setFeeToSetter(address) external;
}

interface UniswapV2Router{
    
    function addLiquidity(
      address tokenA,
      address tokenB,
      uint amountADesired,
      uint amountBDesired,
      uint amountAMin,
      uint amountBMin,
      address to,
      uint deadline
    ) external returns (uint amountA, uint amountB, uint liquidity);
    
    function addLiquidityETH(
      address token,
      uint amountTokenDesired,
      uint amountTokenMin,
      uint amountETHMin,
      address to,
      uint deadline
    ) external payable returns (uint amountToken, uint amountETH, uint liquidity);
     
    function removeLiquidityETH(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    ) external returns (uint amountToken, uint amountETH);
    
    function removeLiquidity(
        address tokenA,
        address tokenB,
        uint liquidity,
        uint amountAMin,
        uint amountBMin,
        address to,
        uint deadline
    ) external returns (uint amountA, uint amountB);
    
    function swapExactTokensForTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external returns (uint[] memory amounts);
    
    function getAmountsIn(uint amountOut, address[] calldata path) external view returns (uint[] memory amounts);

}

library UniswapV2Library {
    using SafeMath for uint;

    // returns sorted token addresses, used to handle return values from pairs sorted in this order
    function sortTokens(address tokenA, address tokenB) internal pure returns (address token0, address token1) {
        require(tokenA != tokenB, 'UniswapV2Library: IDENTICAL_ADDRESSES');
        (token0, token1) = tokenA < tokenB ? (tokenA, tokenB) : (tokenB, tokenA);
        require(token0 != address(0), 'UniswapV2Library: ZERO_ADDRESS');
    }

    // calculates the CREATE2 address for a pair without making any external calls
    function pairFor(address factory, address tokenA, address tokenB) internal pure returns (address pair) {
        (address token0, address token1) = sortTokens(tokenA, tokenB);
        pair = address(uint(keccak256(abi.encodePacked(
                hex'ff',
                factory,
                keccak256(abi.encodePacked(token0, token1)),
                hex'96e8ac4277198ff8b6f785478aa9a39f403cb768dd02cbee326c3e7da348845f' // init code hash
            ))));
    }

    // fetches and sorts the reserves for a pair
    function getReserves(address factory, address tokenA, address tokenB) internal view returns (uint reserveA, uint reserveB) {
        (address token0,) = sortTokens(tokenA, tokenB);
        (uint reserve0, uint reserve1,) = IUniswapV2Pair(pairFor(factory, tokenA, tokenB)).getReserves();
        (reserveA, reserveB) = tokenA == token0 ? (reserve0, reserve1) : (reserve1, reserve0);
    }

    // given some amount of an asset and pair reserves, returns an equivalent amount of the other asset
    function quote(uint amountA, uint reserveA, uint reserveB) internal pure returns (uint amountB) {
        require(amountA > 0, 'UniswapV2Library: INSUFFICIENT_AMOUNT');
        require(reserveA > 0 && reserveB > 0, 'UniswapV2Library: INSUFFICIENT_LIQUIDITY');
        amountB = amountA.mul(reserveB) / reserveA;
    }

    // given an input amount of an asset and pair reserves, returns the maximum output amount of the other asset
    function getAmountOut(uint amountIn, uint reserveIn, uint reserveOut) internal pure returns (uint amountOut) {
        require(amountIn > 0, 'UniswapV2Library: INSUFFICIENT_INPUT_AMOUNT');
        require(reserveIn > 0 && reserveOut > 0, 'UniswapV2Library: INSUFFICIENT_LIQUIDITY');
        uint amountInWithFee = amountIn.mul(997);
        uint numerator = amountInWithFee.mul(reserveOut);
        uint denominator = reserveIn.mul(1000).add(amountInWithFee);
        amountOut = numerator / denominator;
    }

    // given an output amount of an asset and pair reserves, returns a required input amount of the other asset
    function getAmountIn(uint amountOut, uint reserveIn, uint reserveOut) internal pure returns (uint amountIn) {
        require(amountOut > 0, 'UniswapV2Library: INSUFFICIENT_OUTPUT_AMOUNT');
        require(reserveIn > 0 && reserveOut > 0, 'UniswapV2Library: INSUFFICIENT_LIQUIDITY');
        uint numerator = reserveIn.mul(amountOut).mul(1000);
        uint denominator = reserveOut.sub(amountOut).mul(997);
        amountIn = (numerator / denominator).add(1);
    }

    // performs chained getAmountOut calculations on any number of pairs
    function getAmountsOut(address factory, uint amountIn, address[] memory path) internal view returns (uint[] memory amounts) {
        require(path.length >= 2, 'UniswapV2Library: INVALID_PATH');
        amounts = new uint[](path.length);
        amounts[0] = amountIn;
        for (uint i; i < path.length - 1; i++) {
            (uint reserveIn, uint reserveOut) = getReserves(factory, path[i], path[i + 1]);
            amounts[i + 1] = getAmountOut(amounts[i], reserveIn, reserveOut);
        }
    }

    // performs chained getAmountIn calculations on any number of pairs
    function getAmountsIn(address factory, uint amountOut, address[] memory path) internal view returns (uint[] memory amounts) {
        require(path.length >= 2, 'UniswapV2Library: INVALID_PATH');
        amounts = new uint[](path.length);
        amounts[amounts.length - 1] = amountOut;
        for (uint i = path.length - 1; i > 0; i--) {
            (uint reserveIn, uint reserveOut) = getReserves(factory, path[i - 1], path[i]);
            amounts[i - 1] = getAmountIn(amounts[i], reserveIn, reserveOut);
        }
    }
}

interface IUniswapV2Pair {
    event Approval(address indexed owner, address indexed spender, uint value);
    event Transfer(address indexed from, address indexed to, uint value);

    function name() external pure returns (string memory);
    function symbol() external pure returns (string memory);
    function decimals() external pure returns (uint8);
    function totalSupply() external view returns (uint);
    function balanceOf(address owner) external view returns (uint);
    function allowance(address owner, address spender) external view returns (uint);

    function approve(address spender, uint value) external returns (bool);
    function transfer(address to, uint value) external returns (bool);
    function transferFrom(address from, address to, uint value) external returns (bool);

    function DOMAIN_SEPARATOR() external view returns (bytes32);
    function PERMIT_TYPEHASH() external pure returns (bytes32);
    function nonces(address owner) external view returns (uint);

    function permit(address owner, address spender, uint value, uint deadline, uint8 v, bytes32 r, bytes32 s) external;

    event Mint(address indexed sender, uint amount0, uint amount1);
    event Burn(address indexed sender, uint amount0, uint amount1, address indexed to);
    event Swap(address indexed sender, uint amount0In, uint amount1In, uint amount0Out, uint amount1Out, address indexed to);
    event Sync(uint112 reserve0, uint112 reserve1);

    function MINIMUM_LIQUIDITY() external pure returns (uint);
    function factory() external view returns (address);
    function token0() external view returns (address);
    function token1() external view returns (address);
    function getReserves() external view returns (uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast);
    function price0CumulativeLast() external view returns (uint);
    function price1CumulativeLast() external view returns (uint);
    function kLast() external view returns (uint);

    function mint(address to) external returns (uint liquidity);
    function burn(address to) external returns (uint amount0, uint amount1);
    function swap(uint amount0Out, uint amount1Out, address to, bytes calldata data) external;
    function skim(address to) external;
    function sync() external;

    function initialize(address, address) external;
}

contract Owned {
    
    //address of contract owner
    address public owner;

    //event for transfer of ownership
    event OwnershipTransferred(address indexed _from, address indexed _to);

    /**
     * @dev Initializes the contract setting the _owner as the initial owner.
     */
    constructor(address _owner) public {
        owner = _owner;
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner {
        require(msg.sender == owner, 'only owner allowed');
        _;
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`_newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address _newOwner) external onlyOwner {
        owner = _newOwner;
        emit OwnershipTransferred(owner, _newOwner);
    }
}

interface Multiplier {
    function updateLockupPeriod(address _user, uint _lockup) external returns(bool);
    function getMultiplierCeiling() external pure returns (uint);
    function balance(address user) external view returns (uint);
    function approvedContract(address _user) external view returns(address);
    function lockupPeriod(address user) external view returns (uint);
}

/* 
 * @dev PoolStakes contract for locking up liquidity to earn bonus rewards.
 */
contract PoolStake is Owned {
    //instantiate SafeMath library
    using SafeMath for uint;
    
    IERC20 internal weth;                       //represents weth.
    IERC20 internal token;                      //represents the project's token which should have a weth pair on uniswap
    IERC20 internal lpToken;                    //lpToken for liquidity provisioning
    
    address internal uToken;                    //utility token
    address internal wallet;                    //company wallet
    uint internal scalar = 10**36;              //unit for scaling
    uint internal cap;                          //ETH limit that can be provided
    
    Multiplier internal multiplier;                         //Interface of Multiplier contract
    UniswapV2Router internal uniswapRouter;                 //Interface of Uniswap V2 router
    IUniswapV2Factory internal iUniswapV2Factory;           //Interface of uniswap V2 factory
    
    //user struct
    struct User {
        uint start;                 //starting period
        uint release;               //release period
        uint tokenBonus;            //user token bonus
        uint wethBonus;             //user weth bonus
        uint tokenWithdrawn;        //amount of token bonus withdrawn
        uint wethWithdrawn;         //amount of weth bonus withdrawn
        uint liquidity;             //user liquidity gotten from uniswap
        bool migrated;              //if migrated to uniswap V3
    }
    
    //address to User mapping
    mapping(address => User) internal _users;
    
    uint32 internal constant _012_HOURS_IN_SECONDS = 43200;
    
    //term periods
    uint32 internal period1;
    uint32 internal period2;
    uint32 internal period3;
    uint32 internal period4;
    
    //return percentages for ETH and token                          1000 = 1% 
    uint internal period1RPWeth; 
    uint internal period2RPWeth;
    uint internal period3RPWeth;
    uint internal period4RPWeth;
    uint internal period1RPToken; 
    uint internal period2RPToken;
    uint internal period3RPToken;
    uint internal period4RPToken;
    
    //available bonuses rto be claimed
    uint internal _pendingBonusesWeth;
    uint internal _pendingBonusesToken;
    
    //migration contract for Uniswap V3
    address public migrationContract;
    
    //events
    event BonusAdded(address indexed sender, uint ethAmount, uint tokenAmount);
    event BonusRemoved(address indexed sender, uint amount);
    event CapUpdated(address indexed sender, uint amount);
    event LPWithdrawn(address indexed sender, uint amount);
    event LiquidityAdded(address indexed sender, uint liquidity, uint amountETH, uint amountToken);
    event LiquidityWithdrawn(address indexed sender, uint liquidity, uint amountETH, uint amountToken);
    event UserTokenBonusWithdrawn(address indexed sender, uint amount, uint fee);
    event UserETHBonusWithdrawn(address indexed sender, uint amount, uint fee);
    event VersionMigrated(address indexed sender, uint256 time, address to);
    event LiquidityMigrated(address indexed sender, uint amount, address to);
    
    /* 
     * @dev initiates a new PoolStake.
     * ------------------------------------------------------
     * @param _token    --> token offered for staking liquidity.
     * @param _Owner    --> address for the initial contract owner.
     */ 
    constructor(address _token, address _Owner) public Owned(_Owner) {
            
        require(_token != address(0), "can not deploy a zero address");
        token = IERC20(_token);
        weth = IERC20(0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2); 
        
        iUniswapV2Factory = IUniswapV2Factory(0x5C69bEe701ef814a2B6a3EDD4B1652CB9cc5aA6f);
        address _lpToken = iUniswapV2Factory.getPair(address(token), address(weth));
        require(_lpToken != address(0), "Pair must first be created on uniswap");
        lpToken = IERC20(_lpToken);
        
        uToken = 0x9Ed8e7C9604790F7Ec589F99b94361d8AAB64E5E;
        wallet = 0xa7A4d919202DFA2f4E44FFAc422d21095bF9770a;
        multiplier = Multiplier(0xbc962d7be33d8AfB4a547936D8CE6b9a1034E9EE);
        uniswapRouter = UniswapV2Router(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D);        
    }
    
    /* 
     * @dev change the return percentage for locking up liquidity for ETH and Token (only Owner).
     * ------------------------------------------------------------------------------------
     * @param _period1RPETH - _period4RPToken --> the new return percentages.
     * ----------------------------------------------
     * returns whether successfully changed or not.
     */ 
    function changeReturnPercentages(
        uint _period1RPETH, uint _period2RPETH, uint _period3RPETH, uint _period4RPETH, 
        uint _period1RPToken, uint _period2RPToken, uint _period3RPToken, uint _period4RPToken
    ) external onlyOwner returns(bool) {
        
        period1RPWeth = _period1RPETH;
        period2RPWeth = _period2RPETH;
        period3RPWeth = _period3RPETH;
        period4RPWeth = _period4RPETH;
        
        period1RPToken = _period1RPToken;
        period2RPToken = _period2RPToken;
        period3RPToken = _period3RPToken;
        period4RPToken = _period4RPToken;
        
        return true;
    }
    
    /* 
     * @dev change the lockup periods (only Owner).
     * ------------------------------------------------------------------------------------
     * @param _firstTerm - _fourthTerm --> the new term periods.
     * ----------------------------------------------
     * returns whether successfully changed or not.
     */ 
    function changeTermPeriods(
        uint32 _firstTerm, uint32 _secondTerm, 
        uint32 _thirdTerm, uint32 _fourthTerm
    ) external onlyOwner returns(bool) {
        
        period1 = _firstTerm;
        period2 = _secondTerm;
        period3 = _thirdTerm;
        period4 = _fourthTerm;
        
        return true;
    }
    
    /* 
     * @dev change the maximum ETH that a user can enter with (only Owner).
     * ------------------------------------------------------------------------------------
     * @param _cap      --> the new cap value.
     * ----------------------------------------------
     * returns whether successfully changed or not.
     */ 
    function changeCap(uint _cap) external onlyOwner returns(bool) {
        
        cap = _cap;
        
        emit CapUpdated(msg.sender, _cap);
        return true;
    }
    
    /* 
     * @dev makes migration possible for uniswap V3 (only Owner).
     * ----------------------------------------------------------
     * @param _unistakeMigrationContract      --> the migration contract address.
     * -------------------------------------------------------------------------
     * returns whether successfully migrated or not.
     */ 
    function allowMigration(address _unistakeMigrationContract) external onlyOwner returns (bool) {
        
        require(_unistakeMigrationContract != address(0x0), "cannot migrate to a null address");
        migrationContract = _unistakeMigrationContract;
        
        emit VersionMigrated(msg.sender, now, migrationContract);
        return true;
    }
    
    /* 
     * @dev initiates migration for a user (only when migration is allowed).
     * -------------------------------------------------------------------
     * @param _unistakeMigrationContract      --> the migration contract address.
     * -------------------------------------------------------------------------
     * returns whether successfully migrated or not.
     */ 
    function startMigration(address _unistakeMigrationContract) external returns (bool) {
        
        require(_unistakeMigrationContract != address(0x0), "cannot migrate to a null address");
        require(migrationContract == _unistakeMigrationContract, "must confirm endpoint");
        require(!getUserMigration(msg.sender), "must not be migrated already");
        
        _users[msg.sender].migrated = true;
        
        uint256 liquidity = _users[msg.sender].liquidity;
        lpToken.transfer(migrationContract, liquidity);
        
        emit LiquidityMigrated(msg.sender, liquidity, migrationContract);
        return true;
    }
    
    /* 
     * @dev add more staking bonuses to the pool.
     * ----------------------------------------
     * @param              --> input value along with call to add ETH
     * @param _tokenAmount --> the amount of token to be added.
     * --------------------------------------------------------
     * returns whether successfully added or not.
     */ 
    function addBonus(uint _tokenAmount) external payable returns(bool) {
        
        require(_tokenAmount > 0 || msg.value > 0, "must send value");
        if (_tokenAmount > 0)
        require(token.transferFrom(msg.sender, address(this), _tokenAmount), "must approve smart contract");
        
        emit BonusAdded(msg.sender, msg.value, _tokenAmount);
        return true;
    }
    
    /* 
     * @dev remove staking bonuses to the pool. (only owner)
     * must have enough asset to be removed
     * ----------------------------------------
     * @param _amountETH   --> eth amount to be removed
     * @param _amountToken --> token amount to be removed.
     * --------------------------------------------------------
     * returns whether successfully added or not.
     */ 
    function removeETHAndTokenBouses(uint _amountETH, uint _amountToken) external onlyOwner returns (bool success) {
       
        require(_amountETH > 0 || _amountToken > 0, "amount must be larger than zero");
    
        if (_amountETH > 0) {
            require(_checkForSufficientStakingBonusesForETH(_amountETH), 'cannot withdraw above current ETH bonus balance');
            msg.sender.transfer(_amountETH);
            emit BonusRemoved(msg.sender, _amountETH);
        }
        
        if (_amountToken > 0) {
            require(_checkForSufficientStakingBonusesForToken(_amountToken), 'cannot withdraw above current token bonus balance');
            require(token.transfer(msg.sender, _amountToken), "error: token transfer failed");
            emit BonusRemoved(msg.sender, _amountToken);
        }
        
        return true;
    }
    
    /* 
     * @dev add unwrapped liquidity to staking pool.
     * --------------------------------------------
     * @param _tokenAmount  --> must input token amount along with call
     * @param _term         --> the lockup term.
     * @param _multiplier   --> whether multiplier should be used or not
     *                        1 means you want to use the multiplier. !1 means no multiplier
     * --------------------------------------------------------------
     * returns whether successfully added or not.
     */
    function addLiquidity(uint _term, uint _multiplier) external payable returns(bool) {
        
        require(!getUserMigration(msg.sender), "must not be migrated already");
        require(now >= _users[msg.sender].release, "cannot override current term");
        require(_isValidTerm(_term), "must select a valid term");
        require(msg.value > 0, "must send ETH along with transaction");
        if (cap != 0) require(msg.value <= cap, "cannot provide more than the cap");
        
        uint rate = _proportion(msg.value, address(weth), address(token));
        require(token.transferFrom(msg.sender, address(this), rate), "must approve smart contract");
        
        (uint ETH_bonus, uint token_bonus) = getUserBonusPending(msg.sender);
        require(ETH_bonus == 0 && token_bonus == 0, "must first withdraw available bonus");
        
        uint oneTenthOfRate = (rate.mul(10)).div(100);
        token.approve(address(uniswapRouter), rate);

        (uint amountToken, uint amountETH, uint liquidity) = 
        uniswapRouter.addLiquidityETH{value: msg.value}(
            address(token), 
            rate.add(oneTenthOfRate), 
            0, 
            0, 
            address(this), 
            now.add(_012_HOURS_IN_SECONDS));
        
        _users[msg.sender].start = now;
        _users[msg.sender].release = now.add(_term);
        
        uint previousLiquidity = _users[msg.sender].liquidity; 
        _users[msg.sender].liquidity = previousLiquidity.add(liquidity);  
        
        uint wethRP = _calculateReturnPercentage(weth, _term);
        uint tokenRP = _calculateReturnPercentage(token, _term);
               
        (uint provided_ETH, uint provided_token) = getUserLiquidity(msg.sender);
        
        if (_multiplier == 1) 
        _withMultiplier(_term, provided_ETH, provided_token, wethRP,  tokenRP);
        else _withoutMultiplier(provided_ETH, provided_token, wethRP, tokenRP);
        
        emit LiquidityAdded(msg.sender, liquidity, amountETH, amountToken);
        return true;
    }
    
    /* 
     * @dev uses the Multiplier contract for double rewarding
     * ------------------------------------------------------
     * @param _term       --> the lockup term.
     * @param amountETH   --> ETH amount provided in liquidity
     * @param amountToken --> token amount provided in liquidity
     * @param wethRP      --> return percentge for ETH based on term period
     * @param tokenRP     --> return percentge for token based on term period
     * --------------------------------------------------------------------
     */
    function _withMultiplier(
        uint _term, uint amountETH, uint amountToken, uint wethRP, uint tokenRP
    ) internal {
        
        require(multiplier.balance(msg.sender) > 0, "No Multiplier balance to use");
        if (_term > multiplier.lockupPeriod(msg.sender)) multiplier.updateLockupPeriod(msg.sender, _term);
        
        uint multipliedETH = _proportion(multiplier.balance(msg.sender), uToken, address(weth));
        uint multipliedToken = _proportion(multipliedETH, address(weth), address(token));
        uint addedBonusWeth;
        uint addedBonusToken;
        
        if (_offersBonus(weth) && _offersBonus(token)) {
                    
            if (multipliedETH > amountETH) {
                multipliedETH = (_calculateBonus((amountETH.mul(multiplier.getMultiplierCeiling())), wethRP));
                addedBonusWeth = multipliedETH;
            } else {
                addedBonusWeth = (_calculateBonus((amountETH.add(multipliedETH)), wethRP));
            }
                    
            if (multipliedToken > amountToken) {
                multipliedToken = (_calculateBonus((amountToken.mul(multiplier.getMultiplierCeiling())), tokenRP));
                addedBonusToken = multipliedToken;
            } else {
                addedBonusToken = (_calculateBonus((amountToken.add(multipliedToken)), tokenRP));
            }
                
            require(_checkForSufficientStakingBonusesForETH(addedBonusWeth)
            && _checkForSufficientStakingBonusesForToken(addedBonusToken),
            "must be sufficient staking bonuses available in pool");
                            
            _users[msg.sender].wethBonus = _users[msg.sender].wethBonus.add(addedBonusWeth);
            _users[msg.sender].tokenBonus = _users[msg.sender].tokenBonus.add(addedBonusToken);
            _pendingBonusesWeth = _pendingBonusesWeth.add(addedBonusWeth);
            _pendingBonusesToken = _pendingBonusesToken.add(addedBonusToken);
                    
        } else if (_offersBonus(weth) && !_offersBonus(token)) {
                    
            if (multipliedETH > amountETH) {
                multipliedETH = (_calculateBonus((amountETH.mul(multiplier.getMultiplierCeiling())), wethRP));
                addedBonusWeth = multipliedETH;
            } else {
                addedBonusWeth = (_calculateBonus((amountETH.add(multipliedETH)), wethRP));
            }
                    
            require(_checkForSufficientStakingBonusesForETH(addedBonusWeth), 
            "must be sufficient staking bonuses available in pool");
                    
            _users[msg.sender].wethBonus = _users[msg.sender].wethBonus.add(addedBonusWeth);
            _pendingBonusesWeth = _pendingBonusesWeth.add(addedBonusWeth);
                    
        } else if (!_offersBonus(weth) && _offersBonus(token)) {
        
            if (multipliedToken > amountToken) {
                multipliedToken = (_calculateBonus((amountToken.mul(multiplier.getMultiplierCeiling())), tokenRP));
                addedBonusToken = multipliedToken;
            } else {
                addedBonusToken = (_calculateBonus((amountToken.add(multipliedToken)), tokenRP));
            }
                    
            require(_checkForSufficientStakingBonusesForToken(addedBonusToken),
            "must be sufficient staking bonuses available in pool");
                    
            _users[msg.sender].tokenBonus = _users[msg.sender].tokenBonus.add(addedBonusToken);
            _pendingBonusesToken = _pendingBonusesToken.add(addedBonusToken);
        }
    }
    
    /* 
     * @dev distributes bonus without considering Multiplier
     * ------------------------------------------------------
     * @param amountETH   --> ETH amount provided in liquidity
     * @param amountToken --> token amount provided in liquidity
     * @param wethRP      --> return percentge for ETH based on term period
     * @param tokenRP     --> return percentge for token based on term period
     * --------------------------------------------------------------------
     */
    function _withoutMultiplier(
        uint amountETH, uint amountToken, uint wethRP, uint tokenRP
    ) internal {
            
        uint addedBonusWeth;
        uint addedBonusToken;
        
        if (_offersBonus(weth) && _offersBonus(token)) {
            
            addedBonusWeth = _calculateBonus(amountETH, wethRP);
            addedBonusToken = _calculateBonus(amountToken, tokenRP);
                
            require(_checkForSufficientStakingBonusesForETH(addedBonusWeth)
            && _checkForSufficientStakingBonusesForToken(addedBonusToken),
            "must be sufficient staking bonuses available in pool");
                        
            _users[msg.sender].wethBonus = _users[msg.sender].wethBonus.add(addedBonusWeth);
            _users[msg.sender].tokenBonus = _users[msg.sender].tokenBonus.add(addedBonusToken);
            _pendingBonusesWeth = _pendingBonusesWeth.add(addedBonusWeth);
            _pendingBonusesToken = _pendingBonusesToken.add(addedBonusToken);
                
        } else if (_offersBonus(weth) && !_offersBonus(token)) {
                
            addedBonusWeth = _calculateBonus(amountETH, wethRP);
                
            require(_checkForSufficientStakingBonusesForETH(addedBonusWeth), 
            "must be sufficient staking bonuses available in pool");
                
            _users[msg.sender].wethBonus = _users[msg.sender].wethBonus.add(addedBonusWeth);
            _pendingBonusesWeth = _pendingBonusesWeth.add(addedBonusWeth);
                
        } else if (!_offersBonus(weth) && _offersBonus(token)) {
                
            addedBonusToken = _calculateBonus(amountToken, tokenRP);
                
            require(_checkForSufficientStakingBonusesForToken(addedBonusToken),
            "must be sufficient staking bonuses available in pool");
                
            _users[msg.sender].tokenBonus = _users[msg.sender].tokenBonus.add(addedBonusToken);
            _pendingBonusesToken = _pendingBonusesToken.add(addedBonusToken);
        }
        
    }
    
    /* 
     * @dev relocks liquidity already provided
     * --------------------------------------------
     * @param _term       --> the lockup term.
     * @param _multiplier --> whether multiplier should be used or not
     *                        1 means you want to use the multiplier. !1 means no multiplier
     * --------------------------------------------------------------
     * returns whether successfully relocked or not.
     */
    function relockLiquidity(uint _term, uint _multiplier) external returns(bool) {
        
        require(!getUserMigration(msg.sender), "must not be migrated already");
        require(_users[msg.sender].liquidity > 0, "do not have any liquidity to lock");
        require(now >= _users[msg.sender].release, "cannot override current term");
        require(_isValidTerm(_term), "must select a valid term");
        
        (uint ETH_bonus, uint token_bonus) = getUserBonusPending(msg.sender);
        require (ETH_bonus == 0 && token_bonus == 0, 'must withdraw available bonuses first');
        
        (uint provided_ETH, uint provided_token) = getUserLiquidity(msg.sender);
        if (cap != 0) require(provided_ETH <= cap, "cannot provide more than the cap");
        
        uint wethRP = _calculateReturnPercentage(weth, _term);
        uint tokenRP = _calculateReturnPercentage(token, _term);
        
        _users[msg.sender].start = now;
        _users[msg.sender].release = now.add(_term);
        
        if (_multiplier == 1) _withMultiplier(_term, provided_ETH, provided_token, wethRP,  tokenRP);
        else _withoutMultiplier(provided_ETH, provided_token, wethRP, tokenRP); 
        
        return true;
    }
    
    /* 
     * @dev withdraw unwrapped liquidity by user if released.
     * -------------------------------------------------------
     * @param _lpAmount --> takes the amount of user's lp token to be withdrawn.
     * -------------------------------------------------------------------------
     * returns whether successfully withdrawn or not.
     */
    function withdrawLiquidity(uint _lpAmount) external returns(bool) {
        
        require(!getUserMigration(msg.sender), "must not be migrated already");
        
        uint liquidity = _users[msg.sender].liquidity;
        require(_lpAmount > 0 && _lpAmount <= liquidity, "do not have any liquidity");
        require(now >= _users[msg.sender].release, "cannot override current term");
        
        _users[msg.sender].liquidity = liquidity.sub(_lpAmount); 
        
        lpToken.approve(address(uniswapRouter), _lpAmount);                                         
        
        (uint amountToken, uint amountETH) = 
            uniswapRouter.removeLiquidityETH(
                address(token),
                _lpAmount,
                1,
                1,
                msg.sender,
                now.add(_012_HOURS_IN_SECONDS));
        
        emit LiquidityWithdrawn(msg.sender, _lpAmount, amountETH, amountToken);
        return true;
    }
    
    /* 
     * @dev withdraw LP token by user if released.
     * -------------------------------------------------------
     * returns whether successfully withdrawn or not.
     */
    function withdrawUserLP() external returns(bool) {
        
        require(!getUserMigration(msg.sender), "must not be migrated already");
        
        uint liquidity = _users[msg.sender].liquidity;
        require(liquidity > 0, "do not have any liquidity");
        require(now >= _users[msg.sender].release, "cannot override current term");
        
        _users[msg.sender].liquidity = 0; 
        
        lpToken.transfer(msg.sender, liquidity);                                         
        
        emit LPWithdrawn(msg.sender, liquidity);
        return true;
    }
    
    /* 
     * @dev withdraw available staking bonuses earned from locking up liquidity. 
     * --------------------------------------------------------------
     * returns whether successfully withdrawn or not.
     */  
    function withdrawUserBonus() public returns(bool) {
        
        (uint ETH_bonus, uint token_bonus) = getUserBonusAvailable(msg.sender);
        require(ETH_bonus > 0 || token_bonus > 0, "you do not have any bonus available");
        
        uint releasedToken = _calculateTokenReleasedAmount(msg.sender);
        uint releasedETH = _calculateETHReleasedAmount(msg.sender);
        
        if (releasedToken > 0 && releasedETH > 0) {
            
            _withdrawUserTokenBonus(msg.sender, releasedToken);
            _withdrawUserETHBonus(msg.sender, releasedETH);
            
        } else if (releasedETH > 0 && releasedToken == 0) 
            _withdrawUserETHBonus(msg.sender, releasedETH);
        
        else if (releasedETH == 0 && releasedToken > 0)
            _withdrawUserTokenBonus(msg.sender, releasedToken);
        
        if (_users[msg.sender].release <= now) {
            
            _users[msg.sender].wethWithdrawn = 0;
            _users[msg.sender].tokenWithdrawn = 0;
            _users[msg.sender].wethBonus = 0;
            _users[msg.sender].tokenBonus = 0;
        }
        return true;
    }
    
    /* 
     * @dev withdraw ETH bonus earned from locking up liquidity
     * --------------------------------------------------------------
     * @param _user          --> address of the user making withdrawal
     * @param releasedAmount --> released ETH to be withdrawn
     * ------------------------------------------------------------------
     * returns whether successfully withdrawn or not.
     */
    function _withdrawUserETHBonus(address payable _user, uint releasedAmount) internal returns(bool) {
     
        _users[_user].wethWithdrawn = _users[_user].wethWithdrawn.add(releasedAmount);
        _pendingBonusesWeth = _pendingBonusesWeth.sub(releasedAmount);
        
        (uint fee, uint feeInETH) = _calculateETHFee(releasedAmount);
        
        require(IERC20(uToken).transferFrom(_user, wallet, fee), "must approve fee");
        _user.transfer(releasedAmount);
    
        emit UserETHBonusWithdrawn(_user, releasedAmount, feeInETH);
        return true;
    }
    
    /* 
     * @dev withdraw token bonus earned from locking up liquidity
     * --------------------------------------------------------------
     * @param _user          --> address of the user making withdrawal
     * @param releasedAmount --> released token to be withdrawn
     * ------------------------------------------------------------------
     * returns whether successfully withdrawn or not.
     */
    function _withdrawUserTokenBonus(address _user, uint releasedAmount) internal returns(bool) {
        
        _users[_user].tokenWithdrawn = _users[_user].tokenWithdrawn.add(releasedAmount);
        _pendingBonusesToken = _pendingBonusesToken.sub(releasedAmount);
        
        (uint fee, uint feeInToken) = _calculateTokenFee(releasedAmount);
        
        require(IERC20(uToken).transferFrom(_user, wallet, fee), "must approve fee");
        token.transfer(_user, releasedAmount);
    
        emit UserTokenBonusWithdrawn(_user, releasedAmount, feeInToken);
        return true;
    }
    
    /* 
     * @dev gets an asset's amount in proportion of a pair asset
     * ---------------------------------------------------------
     * param _amount --> the amount of first asset
     * param _tokenA --> the address of the first asset
     * param _tokenB --> the address of the second asset
     * -------------------------------------------------
     * returns the propotion of the _tokenB
     */ 
    function _proportion(uint _amount, address _tokenA, address _tokenB) internal view returns(uint tokenBAmount) {
        
        (uint reserveA, uint reserveB) = UniswapV2Library.getReserves(address(iUniswapV2Factory), _tokenA, _tokenB);
        
        return UniswapV2Library.quote(_amount, reserveA, reserveB);
    }
    
    /* 
     * @dev gets the released Token value
     * --------------------------------
     * param _user --> the address of the user
     * ------------------------------------------------------
     * returns the released amount in Token
     */ 
    function _calculateTokenReleasedAmount(address _user) internal view returns(uint) {

        uint release = _users[_user].release;
        uint start = _users[_user].start;
        uint taken = _users[_user].tokenWithdrawn;
        uint tokenBonus = _users[_user].tokenBonus;
        uint releasedPct;
        
        if (now >= release) releasedPct = 100;
        else releasedPct = ((now.sub(start)).mul(100000)).div((release.sub(start)).mul(1000));
        
        uint released = (((tokenBonus).mul(releasedPct)).div(100));
        return released.sub(taken);
    }
    
    /* 
     * @dev gets the released ETH value
     * --------------------------------
     * param _user --> the address of the user
     * ------------------------------------------------------
     * returns the released amount in ETH
     */ 
    function _calculateETHReleasedAmount(address _user) internal view returns(uint) {
        
        uint release = _users[_user].release;
        uint start = _users[_user].start;
        uint taken = _users[_user].wethWithdrawn;
        uint wethBonus = _users[_user].wethBonus;
        uint releasedPct;
        
        if (now >= release) releasedPct = 100;
        else releasedPct = ((now.sub(start)).mul(10000)).div((release.sub(start)).mul(100));
        
        uint released = (((wethBonus).mul(releasedPct)).div(100));
        return released.sub(taken);
    }
    
    /* 
     * @dev get the required fee for the released token bonus in the utility token
     * -------------------------------------------------------------------------------
     * param _user --> the address of the user
     * ----------------------------------------------------------
     * returns the fee amount in the utility token and Token
     */ 
    function _calculateTokenFee(uint _amount) internal view returns(uint uTokenFee, uint tokenFee) {
        
        uint fee = (_amount.mul(10)).div(100);
        uint feeInETH = _proportion(fee, address(token), address(weth));
        uint feeInUtoken = _proportion(feeInETH, address(weth), address(uToken));  
        
        return (feeInUtoken, fee);
    
    }
    
    /* 
     * @dev get the required fee for the released ETH bonus in the utility token
     * -------------------------------------------------------------------------------
     * param _user --> the address of the user
     * ----------------------------------------------------------
     * returns the fee amount in the utility token and ETH
     */ 
    function _calculateETHFee(uint _amount) internal view returns(uint uTokenFee, uint ethFee) {
        
        uint fee = (_amount.mul(10)).div(100);
        uint feeInUtoken = _proportion(fee, address(weth), address(uToken));  
        
        return (feeInUtoken, fee);
    }
    
    /* 
     * @dev get the required fee for the released ETH bonus   
     * -------------------------------------------------------------------------------
     * param _user --> the address of the user
     * ----------------------------------------------------------
     * returns the fee amount.
     */ 
    function calculateETHBonusFee(address _user) external view returns(uint ETH_Fee) {
        
        uint wethReleased = _calculateETHReleasedAmount(_user);
        
        if (wethReleased > 0) {
            
            (uint feeForWethInUtoken,) = _calculateETHFee(wethReleased);
            
            return feeForWethInUtoken;
            
        } else return 0;
    }
    
    /* 
     * @dev get the required fee for the released token bonus   
     * -------------------------------------------------------------------------------
     * param _user --> the address of the user
     * ----------------------------------------------------------
     * returns the fee amount.
     */ 
    function calculateTokenBonusFee(address _user) external view returns(uint token_Fee) {
        
        uint tokenReleased = _calculateTokenReleasedAmount(_user);
        
        if (tokenReleased > 0) {
            
            (uint feeForTokenInUtoken,) = _calculateTokenFee(tokenReleased);
            
            return feeForTokenInUtoken;
            
        } else return 0;
    }
    
    /* 
     * @dev get the bonus based on the return percentage for a particular locking term.   
     * -------------------------------------------------------------------------------
     * param _amount           --> the amount to calculate bonus from.
     * param _returnPercentage --> the returnPercentage of the term.
     * ----------------------------------------------------------
     * returns the bonus amount.
     */ 
    function _calculateBonus(uint _amount, uint _returnPercentage) internal pure returns(uint) {
        
        return ((_amount.mul(_returnPercentage)).div(100000)) / 2;                                  //  1% = 1000
    }
    
    /* 
     * @dev get the correct return percentage based on locked term.   
     * -----------------------------------------------------------
     * @param _token --> associated asset.
     * @param _term --> the locking term.
     * ----------------------------------------------------------
     * returns the return percentage.
     */   
    function _calculateReturnPercentage(IERC20 _token, uint _term) internal view returns(uint) {
        
        if (_token == weth) {
            if (_term == period1) return period1RPWeth;
            else if (_term == period2) return period2RPWeth;
            else if (_term == period3) return period3RPWeth;
            else if (_term == period4) return period4RPWeth;
            else return 0;
            
        } else if (_token == token) {
            if (_term == period1) return period1RPToken;
            else if (_term == period2) return period2RPToken;
            else if (_term == period3) return period3RPToken;
            else if (_term == period4) return period4RPToken;
            else return 0;
        }
    }
    
    /* 
     * @dev check whether the input locking term is one of the supported terms.  
     * ----------------------------------------------------------------------
     * @param _term --> the locking term.
     * -------------------------------
     * returns whether true or not.
     */   
    function _isValidTerm(uint _term) internal view returns(bool) {
        
        if (_term == period1
            || _term == period2
            || _term == period3
            || _term == period4) 
            return true; 
            else return false;
    }
    
    /* 
     * @dev get the amount ETH and Token liquidity provided by the user.   
     * ------------------------------------------------------------------
     * @param _user --> the address of the user.
     * ---------------------------------------
     * returns the amount of ETH and Token liquidity provided.
     */   
    function getUserLiquidity(address _user) public view returns(uint provided_ETH, uint provided_token) {
        
        uint total = lpToken.totalSupply();
        uint ratio = ((_users[_user].liquidity).mul(scalar)).div(total);
        uint tokenHeld = token.balanceOf(address(lpToken));
        uint wethHeld = weth.balanceOf(address(lpToken));
        
        return ((ratio.mul(wethHeld)).div(scalar), (ratio.mul(tokenHeld)).div(scalar));
    }
    
    /* 
     * @dev check whether the inputted user address has been migrated.  
     * ----------------------------------------------------------------------
     * @param _user --> ddress of the user
     * ---------------------------------------
     * returns whether true or not.
     */  
    function getUserMigration(address _user) public view returns (bool) {
        
        return _users[_user].migrated;
    }
    
    /* 
     * @dev check whether the inputted user token has currently offers bonus  
     * ----------------------------------------------------------------------
     * @param _token --> associated token
     * ---------------------------------------
     * returns whether true or not.
     */  
    function _offersBonus(IERC20 _token) internal view returns (bool) {
        
        if (_token == weth) {
            uint wethRPTotal = period1RPWeth.add(period2RPWeth).add(period3RPWeth).add(period4RPWeth);
            if (wethRPTotal > 0) return true; 
            else return false;
            
        } else if (_token == token) {
            uint tokenRPTotal = period1RPToken.add(period2RPToken).add(period3RPToken).add(period4RPToken);
            if (tokenRPTotal > 0) return true;
            else return false;
        }
    }
    
    /* 
     * @dev check whether the pool has sufficient amount of bonuses available for new deposits/stakes.   
     * ----------------------------------------------------------------------------------------------
     * @param amount --> the _amount to be evaluated against.
     * ---------------------------------------------------
     * returns whether true or not.
     */ 
    function _checkForSufficientStakingBonusesForETH(uint _amount) internal view returns(bool) {
        
        if ((address(this).balance).sub(_pendingBonusesWeth) >= _amount) {
            return true;
        } else {
            return false;
        }
    }
    
    /* 
     * @dev check whether the pool has sufficient amount of bonuses available for new deposits/stakes.   
     * ----------------------------------------------------------------------------------------------
     * @param amount --> the _amount to be evaluated against.
     * ---------------------------------------------------
     * returns whether true or not.
     */ 
    function _checkForSufficientStakingBonusesForToken(uint _amount) internal view returns(bool) {
       
        if ((token.balanceOf(address(this)).sub(_pendingBonusesToken)) >= _amount) {
            
            return true;
            
        } else {
            
            return false;
        }
    }
    
    /* 
     * @dev get the timestamp of when the user balance will be released from locked term. 
     * ---------------------------------------------------------------------------------
     * @param _user --> the address of the user.
     * ---------------------------------------
     * returns the timestamp for the release.
     */     
    function getUserRelease(address _user) external view returns(uint release_time) {
        
        uint release = _users[_user].release;
        if (release > now) {
            
            return (release.sub(now));
       
        } else {
            
            return 0;
        }
        
    }
    
    /* 
     * @dev get the amount of bonuses rewarded from staking to a user.   
     * --------------------------------------------------------------
     * @param _user --> the address of the user.
     * ---------------------------------------
     * returns the amount of staking bonuses.
     */  
    function getUserBonusPending(address _user) public view returns(uint ETH_bonus, uint token_bonus) {
        
        uint takenWeth = _users[_user].wethWithdrawn;
        uint takenToken = _users[_user].tokenWithdrawn;
        
        return (_users[_user].wethBonus.sub(takenWeth), _users[_user].tokenBonus.sub(takenToken));
    }
    
    /* 
     * @dev get the amount of released bonuses rewarded from staking to a user.   
     * --------------------------------------------------------------
     * @param _user --> the address of the user.
     * ---------------------------------------
     * returns the amount of released staking bonuses.
     */  
    function getUserBonusAvailable(address _user) public view returns(uint ETH_Released, uint token_Released) {
        
        uint ETHValue = _calculateETHReleasedAmount(_user);
        uint tokenValue = _calculateTokenReleasedAmount(_user);
        
        return (ETHValue, tokenValue);
    }   
    
    /* 
     * @dev get the amount of liquidity pool tokens staked/locked by user.   
     * ------------------------------------------------------------------
     * @param _user --> the address of the user.
     * ---------------------------------------
     * returns the amount of locked liquidity.
     */   
    function getUserLPTokens(address _user) external view returns(uint user_LP) {

        return _users[_user].liquidity;
    }
    
    /* 
     * @dev get the lp token address for the pair.  
     * -----------------------------------------------------------
     * returns the lp address for eth/token pair.
     */ 
    function getLPAddress() external view returns(address) {
        return address(lpToken);
    }
    
    /* 
     * @dev get the amount of staking bonuses available in the pool.  
     * -----------------------------------------------------------
     * returns the amount of staking bounses available for ETH and Token.
     */ 
    function getAvailableBonus() external view returns(uint available_ETH, uint available_token) {
        
        available_ETH = (address(this).balance).sub(_pendingBonusesWeth);
        available_token = (token.balanceOf(address(this))).sub(_pendingBonusesToken);
        
        return (available_ETH, available_token);
    }
    
    /* 
     * @dev get the maximum amount of ETH allowed for provisioning.  
     * -----------------------------------------------------------
     * returns the maximum ETH allowed
     */ 
    function getCap() external view returns(uint maxETH) {
        
        return cap;
    }
    
    /* 
     * @dev checks the term period and return percentages 
     * --------------------------------------------------
     * returns term period and return percentages 
     */
    function getTermPeriodAndReturnPercentages() external view returns(
        uint Term_Period_1, uint Term_Period_2, uint Term_Period_3, uint Term_Period_4,
        uint Period_1_Return_Percentage_Token, uint Period_2_Return_Percentage_Token,
        uint Period_3_Return_Percentage_Token, uint Period_4_Return_Percentage_Token,
        uint Period_1_Return_Percentage_ETH, uint Period_2_Return_Percentage_ETH,
        uint Period_3_Return_Percentage_ETH, uint Period_4_Return_Percentage_ETH
    ) {
        
        return (
            period1, period2, period3, period4, period1RPToken, period2RPToken, period3RPToken, 
            period4RPToken,period1RPWeth, period2RPWeth, period3RPWeth, period4RPWeth);
    }
    
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"address","name":"_Owner","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"ethAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"tokenAmount","type":"uint256"}],"name":"BonusAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"BonusRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"CapUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"LPWithdrawn","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"liquidity","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amountETH","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amountToken","type":"uint256"}],"name":"LiquidityAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"address","name":"to","type":"address"}],"name":"LiquidityMigrated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"liquidity","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amountETH","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amountToken","type":"uint256"}],"name":"LiquidityWithdrawn","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_from","type":"address"},{"indexed":true,"internalType":"address","name":"_to","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"fee","type":"uint256"}],"name":"UserETHBonusWithdrawn","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"fee","type":"uint256"}],"name":"UserTokenBonusWithdrawn","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"time","type":"uint256"},{"indexed":false,"internalType":"address","name":"to","type":"address"}],"name":"VersionMigrated","type":"event"},{"inputs":[{"internalType":"uint256","name":"_tokenAmount","type":"uint256"}],"name":"addBonus","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_term","type":"uint256"},{"internalType":"uint256","name":"_multiplier","type":"uint256"}],"name":"addLiquidity","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"_unistakeMigrationContract","type":"address"}],"name":"allowMigration","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"calculateETHBonusFee","outputs":[{"internalType":"uint256","name":"ETH_Fee","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"calculateTokenBonusFee","outputs":[{"internalType":"uint256","name":"token_Fee","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_cap","type":"uint256"}],"name":"changeCap","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_period1RPETH","type":"uint256"},{"internalType":"uint256","name":"_period2RPETH","type":"uint256"},{"internalType":"uint256","name":"_period3RPETH","type":"uint256"},{"internalType":"uint256","name":"_period4RPETH","type":"uint256"},{"internalType":"uint256","name":"_period1RPToken","type":"uint256"},{"internalType":"uint256","name":"_period2RPToken","type":"uint256"},{"internalType":"uint256","name":"_period3RPToken","type":"uint256"},{"internalType":"uint256","name":"_period4RPToken","type":"uint256"}],"name":"changeReturnPercentages","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint32","name":"_firstTerm","type":"uint32"},{"internalType":"uint32","name":"_secondTerm","type":"uint32"},{"internalType":"uint32","name":"_thirdTerm","type":"uint32"},{"internalType":"uint32","name":"_fourthTerm","type":"uint32"}],"name":"changeTermPeriods","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getAvailableBonus","outputs":[{"internalType":"uint256","name":"available_ETH","type":"uint256"},{"internalType":"uint256","name":"available_token","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getCap","outputs":[{"internalType":"uint256","name":"maxETH","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getLPAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTermPeriodAndReturnPercentages","outputs":[{"internalType":"uint256","name":"Term_Period_1","type":"uint256"},{"internalType":"uint256","name":"Term_Period_2","type":"uint256"},{"internalType":"uint256","name":"Term_Period_3","type":"uint256"},{"internalType":"uint256","name":"Term_Period_4","type":"uint256"},{"internalType":"uint256","name":"Period_1_Return_Percentage_Token","type":"uint256"},{"internalType":"uint256","name":"Period_2_Return_Percentage_Token","type":"uint256"},{"internalType":"uint256","name":"Period_3_Return_Percentage_Token","type":"uint256"},{"internalType":"uint256","name":"Period_4_Return_Percentage_Token","type":"uint256"},{"internalType":"uint256","name":"Period_1_Return_Percentage_ETH","type":"uint256"},{"internalType":"uint256","name":"Period_2_Return_Percentage_ETH","type":"uint256"},{"internalType":"uint256","name":"Period_3_Return_Percentage_ETH","type":"uint256"},{"internalType":"uint256","name":"Period_4_Return_Percentage_ETH","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"getUserBonusAvailable","outputs":[{"internalType":"uint256","name":"ETH_Released","type":"uint256"},{"internalType":"uint256","name":"token_Released","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"getUserBonusPending","outputs":[{"internalType":"uint256","name":"ETH_bonus","type":"uint256"},{"internalType":"uint256","name":"token_bonus","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"getUserLPTokens","outputs":[{"internalType":"uint256","name":"user_LP","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"getUserLiquidity","outputs":[{"internalType":"uint256","name":"provided_ETH","type":"uint256"},{"internalType":"uint256","name":"provided_token","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"getUserMigration","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"getUserRelease","outputs":[{"internalType":"uint256","name":"release_time","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"migrationContract","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_term","type":"uint256"},{"internalType":"uint256","name":"_multiplier","type":"uint256"}],"name":"relockLiquidity","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amountETH","type":"uint256"},{"internalType":"uint256","name":"_amountToken","type":"uint256"}],"name":"removeETHAndTokenBouses","outputs":[{"internalType":"bool","name":"success","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_unistakeMigrationContract","type":"address"}],"name":"startMigration","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_lpAmount","type":"uint256"}],"name":"withdrawLiquidity","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawUserBonus","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawUserLP","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"}]

60806040526ec097ce7bc90715b34b9f10000000006006553480156200002457600080fd5b5060405162003fc838038062003fc8833981810160405260408110156200004a57600080fd5b508051602090910151600080546001600160a01b0319166001600160a01b03808416919091179091558216620000c7576040805162461bcd60e51b815260206004820152601d60248201527f63616e206e6f74206465706c6f792061207a65726f2061646472657373000000604482015290519081900360640190fd5b600280546001600160a01b038085166001600160a01b0319928316179283905560018054831673c02aaa39b223fe8d0a0e5c4f27ead9083c756cc21790819055600a8054909316735c69bee701ef814a2b6a3edd4b1652cb9cc5aa6f17928390556040805163e6a4390560e01b81529483166004860152908216602485015251600093929091169163e6a43905916044808301926020929190829003018186803b1580156200017557600080fd5b505afa1580156200018a573d6000803e3d6000fd5b505050506040513d6020811015620001a157600080fd5b505190506001600160a01b038116620001ec5760405162461bcd60e51b815260040180806020018281038252602581526020018062003fa36025913960400191505060405180910390fd5b600380546001600160a01b039092166001600160a01b0319928316179055600480548216739ed8e7c9604790f7ec589f99b94361d8aab64e5e17905560058054821673a7a4d919202dfa2f4e44ffac422d21095bf9770a17905560088054821673bc962d7be33d8afb4a547936d8ce6b9a1034e9ee17905560098054909116737a250d5630b4cf539739df2c5dacb4c659f2488d1790555050613d0e80620002956000396000f3fe60806040526004361061019c5760003560e01c806361a80feb116100ec5780639cd441da1161008a578063af1f8cda11610064578063af1f8cda14610617578063c3866e301461064a578063dbbdd9351461065f578063f2fde38b146106925761019c565b80639cd441da14610591578063a0f52da0146105b4578063aefacaf0146105e75761019c565b8063800edb9d116100c6578063800edb9d146104c95780638da5cb5b146104f3578063966b822f14610508578063996e96f01461057c5761019c565b806361a80feb14610430578063634c6f411461046357806367d6fd9b146104965761019c565b80632d31760b116101595780634af7669c116101335780634af7669c14610381578063554d578d146103d65780635c441876146103eb57806360be36cc1461041b5761019c565b80632d31760b14610306578063308a20ad1461031b57806345c631c01461034e5761019c565b80630a861f2a146101a15780630b842663146101df5780630fee1a2014610227578063111878f6146102585780631597ac5f146102755780631eef9c5f146102ba575b600080fd5b3480156101ad57600080fd5b506101cb600480360360208110156101c457600080fd5b50356106c7565b604080519115158252519081900360200190f35b3480156101eb57600080fd5b506101cb6004803603608081101561020257600080fd5b5063ffffffff8135811691602081013582169160408201358116916060013516610996565b34801561023357600080fd5b5061023c610a5a565b604080516001600160a01b039092168252519081900360200190f35b6101cb6004803603602081101561026e57600080fd5b5035610a69565b34801561028157600080fd5b506102a86004803603602081101561029857600080fd5b50356001600160a01b0316610bdb565b60408051918252519081900360200190f35b3480156102c657600080fd5b506102ed600480360360208110156102dd57600080fd5b50356001600160a01b0316610c1b565b6040805192835260208301919091528051918290030190f35b34801561031257600080fd5b506101cb610c42565b34801561032757600080fd5b506101cb6004803603602081101561033e57600080fd5b50356001600160a01b0316610e15565b34801561035a57600080fd5b506102a86004803603602081101561037157600080fd5b50356001600160a01b0316610f2b565b34801561038d57600080fd5b506101cb60048036036101008110156103a557600080fd5b5080359060208101359060408101359060608101359060808101359060a08101359060c08101359060e00135610f55565b3480156103e257600080fd5b506102a8610fd4565b3480156103f757600080fd5b506101cb6004803603604081101561040e57600080fd5b5080359060200135610fda565b34801561042757600080fd5b506101cb61129a565b34801561043c57600080fd5b506102ed6004803603602081101561045357600080fd5b50356001600160a01b03166113c9565b34801561046f57600080fd5b506102a86004803603602081101561048657600080fd5b50356001600160a01b031661142f565b3480156104a257600080fd5b506101cb600480360360208110156104b957600080fd5b50356001600160a01b031661144e565b3480156104d557600080fd5b506101cb600480360360208110156104ec57600080fd5b503561146f565b3480156104ff57600080fd5b5061023c611507565b34801561051457600080fd5b5061051d611516565b604080519c8d5260208d019b909b528b8b019990995260608b019790975260808a019590955260a089019390935260c088019190915260e087015261010086015261012085015261014084015261016083015251908190036101800190f35b34801561058857600080fd5b5061023c61156a565b6101cb600480360360408110156105a757600080fd5b5080359060200135611579565b3480156105c057600080fd5b506101cb600480360360208110156105d757600080fd5b50356001600160a01b0316611b03565b3480156105f357600080fd5b506101cb6004803603604081101561060a57600080fd5b5080359060200135611cf9565b34801561062357600080fd5b506102a86004803603602081101561063a57600080fd5b50356001600160a01b0316611fa8565b34801561065657600080fd5b506102ed611fc6565b34801561066b57600080fd5b506102ed6004803603602081101561068257600080fd5b50356001600160a01b031661206b565b34801561069e57600080fd5b506106c5600480360360208110156106b557600080fd5b50356001600160a01b0316612254565b005b60006106d23361144e565b15610712576040805162461bcd60e51b815260206004820152601c6024820152600080516020613bd9833981519152604482015290519081900360640190fd5b336000908152600b602052604090206006015482158015906107345750808311155b610781576040805162461bcd60e51b8152602060048201526019602482015278646f206e6f74206861766520616e79206c697175696469747960381b604482015290519081900360640190fd5b336000908152600b60205260409020600101544210156107d6576040805162461bcd60e51b815260206004820152601c6024820152600080516020613c65833981519152604482015290519081900360640190fd5b6107e081846122f6565b336000908152600b6020908152604080832060060193909355600354600954845163095ea7b360e01b81526001600160a01b03918216600482015260248101899052945191169363095ea7b39360448083019493928390030190829087803b15801561084b57600080fd5b505af115801561085f573d6000803e3d6000fd5b505050506040513d602081101561087557600080fd5b505060095460025460009182916001600160a01b03918216916302751cec911687600180336108a64261a8c061233f565b6040518763ffffffff1660e01b815260040180876001600160a01b03168152602001868152602001858152602001848152602001836001600160a01b0316815260200182815260200196505050505050506040805180830381600087803b15801561091057600080fd5b505af1158015610924573d6000803e3d6000fd5b505050506040513d604081101561093a57600080fd5b5080516020918201516040805189815293840182905283810183905251919450925033917f9746cd459b192e14d25047ee6f0c763709fc38435eb4883830cf715de0a40ac0919081900360600190a2600193505050505b919050565b600080546001600160a01b031633146109eb576040805162461bcd60e51b81526020600482015260126024820152711bdb9b1e481bdddb995c88185b1b1bddd95960721b604482015290519081900360640190fd5b50600c805463ffffffff191663ffffffff9586161767ffffffff00000000191664010000000094861694909402939093176bffffffff00000000000000001916600160401b928516929092029190911763ffffffff60601b1916600160601b9190931602919091179055600190565b6017546001600160a01b031681565b600080821180610a795750600034115b610abc576040805162461bcd60e51b815260206004820152600f60248201526e6d7573742073656e642076616c756560881b604482015290519081900360640190fd5b8115610b9957600254604080516323b872dd60e01b81523360048201523060248201526044810185905290516001600160a01b03909216916323b872dd916064808201926020929091908290030181600087803b158015610b1c57600080fd5b505af1158015610b30573d6000803e3d6000fd5b505050506040513d6020811015610b4657600080fd5b5051610b99576040805162461bcd60e51b815260206004820152601b60248201527f6d75737420617070726f766520736d61727420636f6e74726163740000000000604482015290519081900360640190fd5b6040805134815260208101849052815133927f34ebb63d602891472afe99476d291eb58f46a37c92e170c41b94f072dc5096be928290030190a2506001919050565b6001600160a01b0381166000908152600b602052604081206001015442811115610c1157610c0981426122f6565b915050610991565b6000915050610991565b6000806000610c2984612399565b90506000610c368561242b565b91935090915050915091565b6000610c4d3361144e565b15610c8d576040805162461bcd60e51b815260206004820152601c6024820152600080516020613bd9833981519152604482015290519081900360640190fd5b336000908152600b602052604090206006015480610cee576040805162461bcd60e51b8152602060048201526019602482015278646f206e6f74206861766520616e79206c697175696469747960381b604482015290519081900360640190fd5b336000908152600b6020526040902060010154421015610d43576040805162461bcd60e51b815260206004820152601c6024820152600080516020613c65833981519152604482015290519081900360640190fd5b336000818152600b60209081526040808320600601839055600354815163a9059cbb60e01b815260048101959095526024850186905290516001600160a01b039091169363a9059cbb9360448083019493928390030190829087803b158015610dab57600080fd5b505af1158015610dbf573d6000803e3d6000fd5b505050506040513d6020811015610dd557600080fd5b505060408051828152905133917f64cb0086f290860df1fcb0475016504f0a4173aa707bece334ebe959ccf3ef37919081900360200190a2600191505090565b600080546001600160a01b03163314610e6a576040805162461bcd60e51b81526020600482015260126024820152711bdb9b1e481bdddb995c88185b1b1bddd95960721b604482015290519081900360640190fd5b6001600160a01b038216610ec5576040805162461bcd60e51b815260206004820181905260248201527f63616e6e6f74206d69677261746520746f2061206e756c6c2061646472657373604482015290519081900360640190fd5b601780546001600160a01b0319166001600160a01b03848116919091179182905560408051428152929091166020830152805133927f05275c0edab3098346697cf1e09ae9a41cc92297d44f80748ea762d862644c6992908290030190a2506001919050565b600080610f378361242b565b90508015610c11576000610f4a8261248d565b509250610991915050565b600080546001600160a01b03163314610faa576040805162461bcd60e51b81526020600482015260126024820152711bdb9b1e481bdddb995c88185b1b1bddd95960721b604482015290519081900360640190fd5b50600d97909755600e95909555600f93909355601091909155601155601255601355601455600190565b60075490565b600080546001600160a01b0316331461102f576040805162461bcd60e51b81526020600482015260126024820152711bdb9b1e481bdddb995c88185b1b1bddd95960721b604482015290519081900360640190fd5b600083118061103e5750600082115b61108f576040805162461bcd60e51b815260206004820152601f60248201527f616d6f756e74206d757374206265206c6172676572207468616e207a65726f00604482015290519081900360640190fd5b821561113e5761109e836124f5565b6110d95760405162461bcd60e51b815260040180806020018281038252602f815260200180613caa602f913960400191505060405180910390fd5b604051339084156108fc029085906000818181858888f19350505050158015611106573d6000803e3d6000fd5b5060408051848152905133917f490a8382956f40ae5bd7949928be47d8ae829cf970891f6c52199967004a74b6919081900360200190a25b81156112905761114d82612522565b6111885760405162461bcd60e51b8152600401808060200182810382526031815260200180613b3b6031913960400191505060405180910390fd5b6002546040805163a9059cbb60e01b81523360048201526024810185905290516001600160a01b039092169163a9059cbb916044808201926020929091908290030181600087803b1580156111dc57600080fd5b505af11580156111f0573d6000803e3d6000fd5b505050506040513d602081101561120657600080fd5b5051611259576040805162461bcd60e51b815260206004820152601c60248201527f6572726f723a20746f6b656e207472616e73666572206661696c656400000000604482015290519081900360640190fd5b60408051838152905133917f490a8382956f40ae5bd7949928be47d8ae829cf970891f6c52199967004a74b6919081900360200190a25b5060015b92915050565b60008060006112a833610c1b565b9150915060008211806112bb5750600081115b6112f65760405162461bcd60e51b8152600401808060200182810382526023815260200180613c426023913960400191505060405180910390fd5b60006113013361242b565b9050600061130e33612399565b90506000821180156113205750600081115b156113405761132f338361257a565b5061133a338261277f565b5061137c565b60008111801561134e575081155b1561135d5761133a338261277f565b8015801561136b5750600082115b1561137c5761137a338361257a565b505b336000908152600b602052604090206001015442106113be57336000908152600b60205260408120600581018290556004810182905560038101829055600201555b600194505050505090565b6001600160a01b0381166000908152600b60205260408120600581015460048201546003909201548392906113fe90836122f6565b6001600160a01b0386166000908152600b602052604090206002015461142490836122f6565b935093505050915091565b60008061143b83612399565b90508015610c11576000610f4a82612939565b6001600160a01b03166000908152600b602052604090206007015460ff1690565b600080546001600160a01b031633146114c4576040805162461bcd60e51b81526020600482015260126024820152711bdb9b1e481bdddb995c88185b1b1bddd95960721b604482015290519081900360640190fd5b600782905560408051838152905133917f32fb4810d3e24ba1aa970e73c47779c970d006f8e33c4f3b696dc6fce03b61c0919081900360200190a2506001919050565b6000546001600160a01b031681565b600c54601154601254601354601454600d54600e54600f5460105463ffffffff808a169a6401000000008b0482169a600160401b810483169a600160601b9091049092169891979196919591949193919290565b6003546001600160a01b031690565b60006115843361144e565b156115c4576040805162461bcd60e51b815260206004820152601c6024820152600080516020613bd9833981519152604482015290519081900360640190fd5b336000908152600b6020526040902060010154421015611619576040805162461bcd60e51b815260206004820152601c6024820152600080516020613c65833981519152604482015290519081900360640190fd5b6116228361297c565b61166e576040805162461bcd60e51b81526020600482015260186024820152776d7573742073656c65637420612076616c6964207465726d60401b604482015290519081900360640190fd5b600034116116ad5760405162461bcd60e51b8152600401808060200182810382526024815260200180613ac26024913960400191505060405180910390fd5b6007541561170c5760075434111561170c576040805162461bcd60e51b815260206004820181905260248201527f63616e6e6f742070726f76696465206d6f7265207468616e2074686520636170604482015290519081900360640190fd5b60015460025460009161172d9134916001600160a01b0390811691166129e3565b600254604080516323b872dd60e01b81523360048201523060248201526044810184905290519293506001600160a01b03909116916323b872dd916064808201926020929091908290030181600087803b15801561178a57600080fd5b505af115801561179e573d6000803e3d6000fd5b505050506040513d60208110156117b457600080fd5b5051611807576040805162461bcd60e51b815260206004820152601b60248201527f6d75737420617070726f766520736d61727420636f6e74726163740000000000604482015290519081900360640190fd5b600080611813336113c9565b91509150816000148015611825575080155b6118605760405162461bcd60e51b8152600401808060200182810382526023815260200180613b916023913960400191505060405180910390fd5b6000611878606461187286600a612a1a565b90612a73565b6002546009546040805163095ea7b360e01b81526001600160a01b03928316600482015260248101899052905193945091169163095ea7b3916044808201926020929091908290030181600087803b1580156118d357600080fd5b505af11580156118e7573d6000803e3d6000fd5b505050506040513d60208110156118fd57600080fd5b5050600954600254600091829182916001600160a01b039081169163f305d7199134911661192b8b8961233f565b6000803061193b4261a8c061233f565b6040518863ffffffff1660e01b815260040180876001600160a01b03168152602001868152602001858152602001848152602001836001600160a01b0316815260200182815260200196505050505050506060604051808303818588803b1580156119a557600080fd5b505af11580156119b9573d6000803e3d6000fd5b50505050506040513d60608110156119d057600080fd5b508051602080830151604093840151336000908152600b9093529390912042908190559195509350909150611a05908b61233f565b336000908152600b60205260409020600181019190915560060154611a2a818361233f565b336000908152600b6020526040812060060191909155600154611a56906001600160a01b03168d612ab5565b600254909150600090611a72906001600160a01b03168e612ab5565b9050600080611a803361206b565b915091508d60011415611a9f57611a9a8f83838787612be0565b611aab565b611aab82828686613340565b60408051878152602081018990528082018a9052905133917f64b83944e79c3ce8d4c297411de637c3e102d064677aac0c163976ebdcd6f50e919081900360600190a25060019e9d5050505050505050505050505050565b60006001600160a01b038216611b60576040805162461bcd60e51b815260206004820181905260248201527f63616e6e6f74206d69677261746520746f2061206e756c6c2061646472657373604482015290519081900360640190fd5b6017546001600160a01b03838116911614611bba576040805162461bcd60e51b81526020600482015260156024820152741b5d5cdd0818dbdb999a5c9b48195b991c1bda5b9d605a1b604482015290519081900360640190fd5b611bc33361144e565b15611c03576040805162461bcd60e51b815260206004820152601c6024820152600080516020613bd9833981519152604482015290519081900360640190fd5b336000908152600b6020908152604080832060078101805460ff1916600117905560060154600354601754835163a9059cbb60e01b81526001600160a01b039182166004820152602481018490529351929591169363a9059cbb936044808201949293918390030190829087803b158015611c7d57600080fd5b505af1158015611c91573d6000803e3d6000fd5b505050506040513d6020811015611ca757600080fd5b5050601754604080518381526001600160a01b039092166020830152805133927f429b877a9c01d55ef4faaa6d1f1cf960676e6c8ba26ac2a0bfb4d35bb3486bea92908290030190a250600192915050565b6000611d043361144e565b15611d44576040805162461bcd60e51b815260206004820152601c6024820152600080516020613bd9833981519152604482015290519081900360640190fd5b336000908152600b6020526040902060060154611d925760405162461bcd60e51b8152600401808060200182810382526021815260200180613b1a6021913960400191505060405180910390fd5b336000908152600b6020526040902060010154421015611de7576040805162461bcd60e51b815260206004820152601c6024820152600080516020613c65833981519152604482015290519081900360640190fd5b611df08361297c565b611e3c576040805162461bcd60e51b81526020600482015260186024820152776d7573742073656c65637420612076616c6964207465726d60401b604482015290519081900360640190fd5b600080611e48336113c9565b91509150816000148015611e5a575080155b611e955760405162461bcd60e51b8152600401808060200182810382526025815260200180613bb46025913960400191505060405180910390fd5b600080611ea13361206b565b91509150600754600014611f0657600754821115611f06576040805162461bcd60e51b815260206004820181905260248201527f63616e6e6f742070726f76696465206d6f7265207468616e2074686520636170604482015290519081900360640190fd5b600154600090611f1f906001600160a01b031689612ab5565b600254909150600090611f3b906001600160a01b03168a612ab5565b336000908152600b602052604090204290819055909150611f5c908a61233f565b336000908152600b60205260409020600190810191909155881415611f8d57611f888985858585612be0565b611f99565b611f9984848484613340565b50600198975050505050505050565b6001600160a01b03166000908152600b602052604090206006015490565b600080611fde601554476122f690919063ffffffff16565b601654600254604080516370a0823160e01b81523060048201529051939550612065936001600160a01b03909216916370a0823191602480820192602092909190829003018186803b15801561203357600080fd5b505afa158015612047573d6000803e3d6000fd5b505050506040513d602081101561205d57600080fd5b5051906122f6565b90509091565b6000806000600360009054906101000a90046001600160a01b03166001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b1580156120be57600080fd5b505afa1580156120d2573d6000803e3d6000fd5b505050506040513d60208110156120e857600080fd5b5051600680546001600160a01b0387166000908152600b6020526040812090920154929350909161211e91849161187291612a1a565b600254600354604080516370a0823160e01b81526001600160a01b039283166004820152905193945060009391909216916370a08231916024808301926020929190829003018186803b15801561217457600080fd5b505afa158015612188573d6000803e3d6000fd5b505050506040513d602081101561219e57600080fd5b5051600154600354604080516370a0823160e01b81526001600160a01b039283166004820152905193945060009391909216916370a08231916024808301926020929190829003018186803b1580156121f657600080fd5b505afa15801561220a573d6000803e3d6000fd5b505050506040513d602081101561222057600080fd5b5051600654909150612236906118728584612a1a565b600654612247906118728686612a1a565b9550955050505050915091565b6000546001600160a01b031633146122a8576040805162461bcd60e51b81526020600482015260126024820152711bdb9b1e481bdddb995c88185b1b1bddd95960721b604482015290519081900360640190fd5b600080546001600160a01b0319166001600160a01b0383811691821780845560405192939116917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a350565b600061233883836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506135fe565b9392505050565b600082820183811015612338576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b6001600160a01b0381166000908152600b6020526040812060018101548154600583015460039093015491929091844285116123d757506064612402565b6123ff6123ef60646123e988886122f6565b90612a1a565b6118726127106123e942896122f6565b90505b600061241360646118728585612a1a565b905061241f81856122f6565b98975050505050505050565b6001600160a01b0381166000908152600b60205260408120600181015481546004830154600290930154919290918442851161246957506064612402565b6123ff61247c6103e86123e988886122f6565b611872620186a06123e942896122f6565b600080806124a1606461187286600a612a1a565b6002546001549192506000916124c59184916001600160a01b0391821691166129e3565b6001546004549192506000916124e99184916001600160a01b0391821691166129e3565b94509192505050915091565b60008161250d601554476122f690919063ffffffff16565b1061251a57506001610991565b506000610991565b601654600254604080516370a0823160e01b81523060048201529051600093859361250d9391926001600160a01b03909116916370a08231916024808301926020929190829003018186803b15801561203357600080fd5b6001600160a01b0382166000908152600b60205260408120600401546125a0908361233f565b6001600160a01b0384166000908152600b60205260409020600401556016546125c990836122f6565b6016556000806125d88461248d565b60048054600554604080516323b872dd60e01b81526001600160a01b038c8116958201959095529184166024830152604482018690525194965092945016916323b872dd916064808201926020929091908290030181600087803b15801561263f57600080fd5b505af1158015612653573d6000803e3d6000fd5b505050506040513d602081101561266957600080fd5b50516126af576040805162461bcd60e51b815260206004820152601060248201526f6d75737420617070726f76652066656560801b604482015290519081900360640190fd5b6002546040805163a9059cbb60e01b81526001600160a01b038881166004830152602482018890529151919092169163a9059cbb9160448083019260209291908290030181600087803b15801561270557600080fd5b505af1158015612719573d6000803e3d6000fd5b505050506040513d602081101561272f57600080fd5b5050604080518581526020810183905281516001600160a01b038816927f79abe13d746b63963b80c616676635b9720b8e304e0ff89137f1d4b758189f7e928290030190a2506001949350505050565b6001600160a01b0382166000908152600b60205260408120600501546127a5908361233f565b6001600160a01b0384166000908152600b60205260409020600501556015546127ce90836122f6565b6015556000806127dd84612939565b60048054600554604080516323b872dd60e01b81526001600160a01b038c8116958201959095529184166024830152604482018690525194965092945016916323b872dd916064808201926020929091908290030181600087803b15801561284457600080fd5b505af1158015612858573d6000803e3d6000fd5b505050506040513d602081101561286e57600080fd5b50516128b4576040805162461bcd60e51b815260206004820152601060248201526f6d75737420617070726f76652066656560801b604482015290519081900360640190fd5b6040516001600160a01b0386169085156108fc029086906000818181858888f193505050501580156128ea573d6000803e3d6000fd5b50604080518581526020810183905281516001600160a01b038816927f8c9f0f76515e49e4b7b52423757f6953acb3cfd99670c0c80191294ea4459572928290030190a2506001949350505050565b6000808061294d606461187286600a612a1a565b6001546004549192506000916129719184916001600160a01b0391821691166129e3565b935090915050915091565b600c5460009063ffffffff168214806129a45750600c54640100000000900463ffffffff1682145b806129bd5750600c54600160401b900463ffffffff1682145b806129d65750600c54600160601b900463ffffffff1682145b1561251a57506001610991565b600a5460009081908190612a01906001600160a01b03168686613695565b91509150612a10868383613763565b9695505050505050565b600082612a2957506000611294565b82820282848281612a3657fe5b04146123385760405162461bcd60e51b8152600401808060200182810382526021815260200180613c216021913960400191505060405180910390fd5b600061233883836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250613809565b6001546000906001600160a01b0384811691161415612b5057600c5463ffffffff16821415612ae75750600d54611294565b600c54640100000000900463ffffffff16821415612b085750600e54611294565b600c54600160401b900463ffffffff16821415612b285750600f54611294565b600c54600160601b900463ffffffff16821415612b485750601054611294565b506000611294565b6002546001600160a01b038481169116141561129457600c5463ffffffff16821415612b7f5750601154611294565b600c54640100000000900463ffffffff16821415612ba05750601254611294565b600c54600160401b900463ffffffff16821415612bc05750601354611294565b600c54600160601b900463ffffffff16821415612b485750601454611294565b6008546040805163e3d670d760e01b815233600482015290516000926001600160a01b03169163e3d670d7916024808301926020929190829003018186803b158015612c2b57600080fd5b505afa158015612c3f573d6000803e3d6000fd5b505050506040513d6020811015612c5557600080fd5b505111612ca9576040805162461bcd60e51b815260206004820152601c60248201527f4e6f204d756c7469706c6965722062616c616e636520746f2075736500000000604482015290519081900360640190fd5b6008546040805163a5f9802760e01b815233600482015290516001600160a01b039092169163a5f9802791602480820192602092909190829003018186803b158015612cf457600080fd5b505afa158015612d08573d6000803e3d6000fd5b505050506040513d6020811015612d1e57600080fd5b5051851115612da857600854604080516395dbf04960e01b81523360048201526024810188905290516001600160a01b03909216916395dbf049916044808201926020929091908290030181600087803b158015612d7b57600080fd5b505af1158015612d8f573d6000803e3d6000fd5b505050506040513d6020811015612da557600080fd5b50505b6008546040805163e3d670d760e01b81523360048201529051600092612e3e926001600160a01b039091169163e3d670d791602480820192602092909190829003018186803b158015612dfa57600080fd5b505afa158015612e0e573d6000803e3d6000fd5b505050506040513d6020811015612e2457600080fd5b50516004546001546001600160a01b0391821691166129e3565b600154600254919250600091612e629184916001600160a01b0391821691166129e3565b6001549091506000908190612e7f906001600160a01b031661386e565b8015612e9b5750600254612e9b906001600160a01b031661386e565b156130cc5787841115612f3f57612f35612f2f600860009054906101000a90046001600160a01b03166001600160a01b0316638775babf6040518163ffffffff1660e01b815260040160206040518083038186803b158015612efc57600080fd5b505afa158015612f10573d6000803e3d6000fd5b505050506040513d6020811015612f2657600080fd5b50518a90612a1a565b876138ff565b9350839150612f4f565b612f4c612f2f898661233f565b91505b86831115612fee57612fe4612fde600860009054906101000a90046001600160a01b03166001600160a01b0316638775babf6040518163ffffffff1660e01b815260040160206040518083038186803b158015612fab57600080fd5b505afa158015612fbf573d6000803e3d6000fd5b505050506040513d6020811015612fd557600080fd5b50518990612a1a565b866138ff565b9250829050612ffe565b612ffb612fde888561233f565b90505b613007826124f5565b8015613017575061301781612522565b6130525760405162461bcd60e51b8152600401808060200182810382526034815260200180613ae66034913960400191505060405180910390fd5b336000908152600b602052604090206003015461306f908361233f565b336000908152600b60205260409020600381019190915560020154613094908261233f565b336000908152600b60205260409020600201556015546130b4908361233f565b6015556016546130c4908261233f565b601655613335565b6001546130e1906001600160a01b031661386e565b80156130ff57506002546130fd906001600160a01b031661386e565b155b15613203578784111561316a57613160612f2f600860009054906101000a90046001600160a01b03166001600160a01b0316638775babf6040518163ffffffff1660e01b815260040160206040518083038186803b158015612efc57600080fd5b935083915061317a565b613177612f2f898661233f565b91505b613183826124f5565b6131be5760405162461bcd60e51b8152600401808060200182810382526034815260200180613ae66034913960400191505060405180910390fd5b336000908152600b60205260409020600301546131db908361233f565b336000908152600b60205260409020600301556015546131fb908361233f565b601555613335565b600154613218906001600160a01b031661386e565b1580156132355750600254613235906001600160a01b031661386e565b1561333557868311156132a057613296612fde600860009054906101000a90046001600160a01b03166001600160a01b0316638775babf6040518163ffffffff1660e01b815260040160206040518083038186803b158015612fab57600080fd5b92508290506132b0565b6132ad612fde888561233f565b90505b6132b981612522565b6132f45760405162461bcd60e51b8152600401808060200182810382526034815260200180613ae66034913960400191505060405180910390fd5b336000908152600b6020526040902060020154613311908261233f565b336000908152600b6020526040902060020155601654613331908261233f565b6016555b505050505050505050565b600154600090819061335a906001600160a01b031661386e565b80156133765750600254613376906001600160a01b031661386e565b156134615761338586856138ff565b915061339185846138ff565b905061339c826124f5565b80156133ac57506133ac81612522565b6133e75760405162461bcd60e51b8152600401808060200182810382526034815260200180613ae66034913960400191505060405180910390fd5b336000908152600b6020526040902060030154613404908361233f565b336000908152600b60205260409020600381019190915560020154613429908261233f565b336000908152600b6020526040902060020155601554613449908361233f565b601555601654613459908261233f565b6016556135f6565b600154613476906001600160a01b031661386e565b80156134945750600254613492906001600160a01b031661386e565b155b1561352e576134a386856138ff565b91506134ae826124f5565b6134e95760405162461bcd60e51b8152600401808060200182810382526034815260200180613ae66034913960400191505060405180910390fd5b336000908152600b6020526040902060030154613506908361233f565b336000908152600b6020526040902060030155601554613526908361233f565b6015556135f6565b600154613543906001600160a01b031661386e565b1580156135605750600254613560906001600160a01b031661386e565b156135f65761356f85846138ff565b905061357a81612522565b6135b55760405162461bcd60e51b8152600401808060200182810382526034815260200180613ae66034913960400191505060405180910390fd5b336000908152600b60205260409020600201546135d2908261233f565b336000908152600b60205260409020600201556016546135f2908261233f565b6016555b505050505050565b6000818484111561368d5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561365257818101518382015260200161363a565b50505050905090810190601f16801561367f5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b60008060006136a48585613923565b5090506000806136b5888888613a01565b6001600160a01b0316630902f1ac6040518163ffffffff1660e01b815260040160606040518083038186803b1580156136ed57600080fd5b505afa158015613701573d6000803e3d6000fd5b505050506040513d606081101561371757600080fd5b5080516020909101516dffffffffffffffffffffffffffff91821693501690506001600160a01b0387811690841614613751578082613754565b81815b90999098509650505050505050565b60008084116137a35760405162461bcd60e51b8152600401808060200182810382526025815260200180613c856025913960400191505060405180910390fd5b6000831180156137b35750600082115b6137ee5760405162461bcd60e51b8152600401808060200182810382526028815260200180613bf96028913960400191505060405180910390fd5b826137f98584612a1a565b8161380057fe5b04949350505050565b600081836138585760405162461bcd60e51b815260206004820181815283516024840152835190928392604490910191908501908083836000831561365257818101518382015260200161363a565b50600083858161386457fe5b0495945050505050565b6001546000906001600160a01b03838116911614156138c45760006138b26010546138ac600f546138ac600e54600d5461233f90919063ffffffff16565b9061233f565b90508015610c11576001915050610991565b6002546001600160a01b03838116911614156109915760006138b26014546138ac6013546138ac60125460115461233f90919063ffffffff16565b60006002613914620186a06118728686612a1a565b8161391b57fe5b049392505050565b600080826001600160a01b0316846001600160a01b031614156139775760405162461bcd60e51b8152600401808060200182810382526025815260200180613b6c6025913960400191505060405180910390fd5b826001600160a01b0316846001600160a01b03161061399757828461399a565b83835b90925090506001600160a01b0382166139fa576040805162461bcd60e51b815260206004820152601e60248201527f556e697377617056324c6962726172793a205a45524f5f414444524553530000604482015290519081900360640190fd5b9250929050565b6000806000613a108585613923565b604080516bffffffffffffffffffffffff19606094851b811660208084019190915293851b81166034830152825160288184030181526048830184528051908501206001600160f81b031960688401529a90941b9093166069840152607d8301989098527f96e8ac4277198ff8b6f785478aa9a39f403cb768dd02cbee326c3e7da348845f609d808401919091528851808403909101815260bd90920190975280519601959095209594505050505056fe6d7573742073656e642045544820616c6f6e672077697468207472616e73616374696f6e6d7573742062652073756666696369656e74207374616b696e6720626f6e7573657320617661696c61626c6520696e20706f6f6c646f206e6f74206861766520616e79206c697175696469747920746f206c6f636b63616e6e6f742077697468647261772061626f76652063757272656e7420746f6b656e20626f6e75732062616c616e6365556e697377617056324c6962726172793a204944454e544943414c5f4144445245535345536d75737420666972737420776974686472617720617661696c61626c6520626f6e75736d75737420776974686472617720617661696c61626c6520626f6e757365732066697273746d757374206e6f74206265206d6967726174656420616c726561647900000000556e697377617056324c6962726172793a20494e53554646494349454e545f4c4951554944495459536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77796f7520646f206e6f74206861766520616e7920626f6e757320617661696c61626c6563616e6e6f74206f766572726964652063757272656e74207465726d00000000556e697377617056324c6962726172793a20494e53554646494349454e545f414d4f554e5463616e6e6f742077697468647261772061626f76652063757272656e742045544820626f6e75732062616c616e6365a26469706673582212209b951ed87a9f325ed044b6db440986015789be8bd4047fbd30c70b4a92d73b9a64736f6c634300060c003350616972206d7573742066697273742062652063726561746564206f6e20756e69737761700000000000000000000000009ed8e7c9604790f7ec589f99b94361d8aab64e5e0000000000000000000000000065bac24ce57aa77a676193e9a9a2bbeeaa3313

Deployed Bytecode

0x60806040526004361061019c5760003560e01c806361a80feb116100ec5780639cd441da1161008a578063af1f8cda11610064578063af1f8cda14610617578063c3866e301461064a578063dbbdd9351461065f578063f2fde38b146106925761019c565b80639cd441da14610591578063a0f52da0146105b4578063aefacaf0146105e75761019c565b8063800edb9d116100c6578063800edb9d146104c95780638da5cb5b146104f3578063966b822f14610508578063996e96f01461057c5761019c565b806361a80feb14610430578063634c6f411461046357806367d6fd9b146104965761019c565b80632d31760b116101595780634af7669c116101335780634af7669c14610381578063554d578d146103d65780635c441876146103eb57806360be36cc1461041b5761019c565b80632d31760b14610306578063308a20ad1461031b57806345c631c01461034e5761019c565b80630a861f2a146101a15780630b842663146101df5780630fee1a2014610227578063111878f6146102585780631597ac5f146102755780631eef9c5f146102ba575b600080fd5b3480156101ad57600080fd5b506101cb600480360360208110156101c457600080fd5b50356106c7565b604080519115158252519081900360200190f35b3480156101eb57600080fd5b506101cb6004803603608081101561020257600080fd5b5063ffffffff8135811691602081013582169160408201358116916060013516610996565b34801561023357600080fd5b5061023c610a5a565b604080516001600160a01b039092168252519081900360200190f35b6101cb6004803603602081101561026e57600080fd5b5035610a69565b34801561028157600080fd5b506102a86004803603602081101561029857600080fd5b50356001600160a01b0316610bdb565b60408051918252519081900360200190f35b3480156102c657600080fd5b506102ed600480360360208110156102dd57600080fd5b50356001600160a01b0316610c1b565b6040805192835260208301919091528051918290030190f35b34801561031257600080fd5b506101cb610c42565b34801561032757600080fd5b506101cb6004803603602081101561033e57600080fd5b50356001600160a01b0316610e15565b34801561035a57600080fd5b506102a86004803603602081101561037157600080fd5b50356001600160a01b0316610f2b565b34801561038d57600080fd5b506101cb60048036036101008110156103a557600080fd5b5080359060208101359060408101359060608101359060808101359060a08101359060c08101359060e00135610f55565b3480156103e257600080fd5b506102a8610fd4565b3480156103f757600080fd5b506101cb6004803603604081101561040e57600080fd5b5080359060200135610fda565b34801561042757600080fd5b506101cb61129a565b34801561043c57600080fd5b506102ed6004803603602081101561045357600080fd5b50356001600160a01b03166113c9565b34801561046f57600080fd5b506102a86004803603602081101561048657600080fd5b50356001600160a01b031661142f565b3480156104a257600080fd5b506101cb600480360360208110156104b957600080fd5b50356001600160a01b031661144e565b3480156104d557600080fd5b506101cb600480360360208110156104ec57600080fd5b503561146f565b3480156104ff57600080fd5b5061023c611507565b34801561051457600080fd5b5061051d611516565b604080519c8d5260208d019b909b528b8b019990995260608b019790975260808a019590955260a089019390935260c088019190915260e087015261010086015261012085015261014084015261016083015251908190036101800190f35b34801561058857600080fd5b5061023c61156a565b6101cb600480360360408110156105a757600080fd5b5080359060200135611579565b3480156105c057600080fd5b506101cb600480360360208110156105d757600080fd5b50356001600160a01b0316611b03565b3480156105f357600080fd5b506101cb6004803603604081101561060a57600080fd5b5080359060200135611cf9565b34801561062357600080fd5b506102a86004803603602081101561063a57600080fd5b50356001600160a01b0316611fa8565b34801561065657600080fd5b506102ed611fc6565b34801561066b57600080fd5b506102ed6004803603602081101561068257600080fd5b50356001600160a01b031661206b565b34801561069e57600080fd5b506106c5600480360360208110156106b557600080fd5b50356001600160a01b0316612254565b005b60006106d23361144e565b15610712576040805162461bcd60e51b815260206004820152601c6024820152600080516020613bd9833981519152604482015290519081900360640190fd5b336000908152600b602052604090206006015482158015906107345750808311155b610781576040805162461bcd60e51b8152602060048201526019602482015278646f206e6f74206861766520616e79206c697175696469747960381b604482015290519081900360640190fd5b336000908152600b60205260409020600101544210156107d6576040805162461bcd60e51b815260206004820152601c6024820152600080516020613c65833981519152604482015290519081900360640190fd5b6107e081846122f6565b336000908152600b6020908152604080832060060193909355600354600954845163095ea7b360e01b81526001600160a01b03918216600482015260248101899052945191169363095ea7b39360448083019493928390030190829087803b15801561084b57600080fd5b505af115801561085f573d6000803e3d6000fd5b505050506040513d602081101561087557600080fd5b505060095460025460009182916001600160a01b03918216916302751cec911687600180336108a64261a8c061233f565b6040518763ffffffff1660e01b815260040180876001600160a01b03168152602001868152602001858152602001848152602001836001600160a01b0316815260200182815260200196505050505050506040805180830381600087803b15801561091057600080fd5b505af1158015610924573d6000803e3d6000fd5b505050506040513d604081101561093a57600080fd5b5080516020918201516040805189815293840182905283810183905251919450925033917f9746cd459b192e14d25047ee6f0c763709fc38435eb4883830cf715de0a40ac0919081900360600190a2600193505050505b919050565b600080546001600160a01b031633146109eb576040805162461bcd60e51b81526020600482015260126024820152711bdb9b1e481bdddb995c88185b1b1bddd95960721b604482015290519081900360640190fd5b50600c805463ffffffff191663ffffffff9586161767ffffffff00000000191664010000000094861694909402939093176bffffffff00000000000000001916600160401b928516929092029190911763ffffffff60601b1916600160601b9190931602919091179055600190565b6017546001600160a01b031681565b600080821180610a795750600034115b610abc576040805162461bcd60e51b815260206004820152600f60248201526e6d7573742073656e642076616c756560881b604482015290519081900360640190fd5b8115610b9957600254604080516323b872dd60e01b81523360048201523060248201526044810185905290516001600160a01b03909216916323b872dd916064808201926020929091908290030181600087803b158015610b1c57600080fd5b505af1158015610b30573d6000803e3d6000fd5b505050506040513d6020811015610b4657600080fd5b5051610b99576040805162461bcd60e51b815260206004820152601b60248201527f6d75737420617070726f766520736d61727420636f6e74726163740000000000604482015290519081900360640190fd5b6040805134815260208101849052815133927f34ebb63d602891472afe99476d291eb58f46a37c92e170c41b94f072dc5096be928290030190a2506001919050565b6001600160a01b0381166000908152600b602052604081206001015442811115610c1157610c0981426122f6565b915050610991565b6000915050610991565b6000806000610c2984612399565b90506000610c368561242b565b91935090915050915091565b6000610c4d3361144e565b15610c8d576040805162461bcd60e51b815260206004820152601c6024820152600080516020613bd9833981519152604482015290519081900360640190fd5b336000908152600b602052604090206006015480610cee576040805162461bcd60e51b8152602060048201526019602482015278646f206e6f74206861766520616e79206c697175696469747960381b604482015290519081900360640190fd5b336000908152600b6020526040902060010154421015610d43576040805162461bcd60e51b815260206004820152601c6024820152600080516020613c65833981519152604482015290519081900360640190fd5b336000818152600b60209081526040808320600601839055600354815163a9059cbb60e01b815260048101959095526024850186905290516001600160a01b039091169363a9059cbb9360448083019493928390030190829087803b158015610dab57600080fd5b505af1158015610dbf573d6000803e3d6000fd5b505050506040513d6020811015610dd557600080fd5b505060408051828152905133917f64cb0086f290860df1fcb0475016504f0a4173aa707bece334ebe959ccf3ef37919081900360200190a2600191505090565b600080546001600160a01b03163314610e6a576040805162461bcd60e51b81526020600482015260126024820152711bdb9b1e481bdddb995c88185b1b1bddd95960721b604482015290519081900360640190fd5b6001600160a01b038216610ec5576040805162461bcd60e51b815260206004820181905260248201527f63616e6e6f74206d69677261746520746f2061206e756c6c2061646472657373604482015290519081900360640190fd5b601780546001600160a01b0319166001600160a01b03848116919091179182905560408051428152929091166020830152805133927f05275c0edab3098346697cf1e09ae9a41cc92297d44f80748ea762d862644c6992908290030190a2506001919050565b600080610f378361242b565b90508015610c11576000610f4a8261248d565b509250610991915050565b600080546001600160a01b03163314610faa576040805162461bcd60e51b81526020600482015260126024820152711bdb9b1e481bdddb995c88185b1b1bddd95960721b604482015290519081900360640190fd5b50600d97909755600e95909555600f93909355601091909155601155601255601355601455600190565b60075490565b600080546001600160a01b0316331461102f576040805162461bcd60e51b81526020600482015260126024820152711bdb9b1e481bdddb995c88185b1b1bddd95960721b604482015290519081900360640190fd5b600083118061103e5750600082115b61108f576040805162461bcd60e51b815260206004820152601f60248201527f616d6f756e74206d757374206265206c6172676572207468616e207a65726f00604482015290519081900360640190fd5b821561113e5761109e836124f5565b6110d95760405162461bcd60e51b815260040180806020018281038252602f815260200180613caa602f913960400191505060405180910390fd5b604051339084156108fc029085906000818181858888f19350505050158015611106573d6000803e3d6000fd5b5060408051848152905133917f490a8382956f40ae5bd7949928be47d8ae829cf970891f6c52199967004a74b6919081900360200190a25b81156112905761114d82612522565b6111885760405162461bcd60e51b8152600401808060200182810382526031815260200180613b3b6031913960400191505060405180910390fd5b6002546040805163a9059cbb60e01b81523360048201526024810185905290516001600160a01b039092169163a9059cbb916044808201926020929091908290030181600087803b1580156111dc57600080fd5b505af11580156111f0573d6000803e3d6000fd5b505050506040513d602081101561120657600080fd5b5051611259576040805162461bcd60e51b815260206004820152601c60248201527f6572726f723a20746f6b656e207472616e73666572206661696c656400000000604482015290519081900360640190fd5b60408051838152905133917f490a8382956f40ae5bd7949928be47d8ae829cf970891f6c52199967004a74b6919081900360200190a25b5060015b92915050565b60008060006112a833610c1b565b9150915060008211806112bb5750600081115b6112f65760405162461bcd60e51b8152600401808060200182810382526023815260200180613c426023913960400191505060405180910390fd5b60006113013361242b565b9050600061130e33612399565b90506000821180156113205750600081115b156113405761132f338361257a565b5061133a338261277f565b5061137c565b60008111801561134e575081155b1561135d5761133a338261277f565b8015801561136b5750600082115b1561137c5761137a338361257a565b505b336000908152600b602052604090206001015442106113be57336000908152600b60205260408120600581018290556004810182905560038101829055600201555b600194505050505090565b6001600160a01b0381166000908152600b60205260408120600581015460048201546003909201548392906113fe90836122f6565b6001600160a01b0386166000908152600b602052604090206002015461142490836122f6565b935093505050915091565b60008061143b83612399565b90508015610c11576000610f4a82612939565b6001600160a01b03166000908152600b602052604090206007015460ff1690565b600080546001600160a01b031633146114c4576040805162461bcd60e51b81526020600482015260126024820152711bdb9b1e481bdddb995c88185b1b1bddd95960721b604482015290519081900360640190fd5b600782905560408051838152905133917f32fb4810d3e24ba1aa970e73c47779c970d006f8e33c4f3b696dc6fce03b61c0919081900360200190a2506001919050565b6000546001600160a01b031681565b600c54601154601254601354601454600d54600e54600f5460105463ffffffff808a169a6401000000008b0482169a600160401b810483169a600160601b9091049092169891979196919591949193919290565b6003546001600160a01b031690565b60006115843361144e565b156115c4576040805162461bcd60e51b815260206004820152601c6024820152600080516020613bd9833981519152604482015290519081900360640190fd5b336000908152600b6020526040902060010154421015611619576040805162461bcd60e51b815260206004820152601c6024820152600080516020613c65833981519152604482015290519081900360640190fd5b6116228361297c565b61166e576040805162461bcd60e51b81526020600482015260186024820152776d7573742073656c65637420612076616c6964207465726d60401b604482015290519081900360640190fd5b600034116116ad5760405162461bcd60e51b8152600401808060200182810382526024815260200180613ac26024913960400191505060405180910390fd5b6007541561170c5760075434111561170c576040805162461bcd60e51b815260206004820181905260248201527f63616e6e6f742070726f76696465206d6f7265207468616e2074686520636170604482015290519081900360640190fd5b60015460025460009161172d9134916001600160a01b0390811691166129e3565b600254604080516323b872dd60e01b81523360048201523060248201526044810184905290519293506001600160a01b03909116916323b872dd916064808201926020929091908290030181600087803b15801561178a57600080fd5b505af115801561179e573d6000803e3d6000fd5b505050506040513d60208110156117b457600080fd5b5051611807576040805162461bcd60e51b815260206004820152601b60248201527f6d75737420617070726f766520736d61727420636f6e74726163740000000000604482015290519081900360640190fd5b600080611813336113c9565b91509150816000148015611825575080155b6118605760405162461bcd60e51b8152600401808060200182810382526023815260200180613b916023913960400191505060405180910390fd5b6000611878606461187286600a612a1a565b90612a73565b6002546009546040805163095ea7b360e01b81526001600160a01b03928316600482015260248101899052905193945091169163095ea7b3916044808201926020929091908290030181600087803b1580156118d357600080fd5b505af11580156118e7573d6000803e3d6000fd5b505050506040513d60208110156118fd57600080fd5b5050600954600254600091829182916001600160a01b039081169163f305d7199134911661192b8b8961233f565b6000803061193b4261a8c061233f565b6040518863ffffffff1660e01b815260040180876001600160a01b03168152602001868152602001858152602001848152602001836001600160a01b0316815260200182815260200196505050505050506060604051808303818588803b1580156119a557600080fd5b505af11580156119b9573d6000803e3d6000fd5b50505050506040513d60608110156119d057600080fd5b508051602080830151604093840151336000908152600b9093529390912042908190559195509350909150611a05908b61233f565b336000908152600b60205260409020600181019190915560060154611a2a818361233f565b336000908152600b6020526040812060060191909155600154611a56906001600160a01b03168d612ab5565b600254909150600090611a72906001600160a01b03168e612ab5565b9050600080611a803361206b565b915091508d60011415611a9f57611a9a8f83838787612be0565b611aab565b611aab82828686613340565b60408051878152602081018990528082018a9052905133917f64b83944e79c3ce8d4c297411de637c3e102d064677aac0c163976ebdcd6f50e919081900360600190a25060019e9d5050505050505050505050505050565b60006001600160a01b038216611b60576040805162461bcd60e51b815260206004820181905260248201527f63616e6e6f74206d69677261746520746f2061206e756c6c2061646472657373604482015290519081900360640190fd5b6017546001600160a01b03838116911614611bba576040805162461bcd60e51b81526020600482015260156024820152741b5d5cdd0818dbdb999a5c9b48195b991c1bda5b9d605a1b604482015290519081900360640190fd5b611bc33361144e565b15611c03576040805162461bcd60e51b815260206004820152601c6024820152600080516020613bd9833981519152604482015290519081900360640190fd5b336000908152600b6020908152604080832060078101805460ff1916600117905560060154600354601754835163a9059cbb60e01b81526001600160a01b039182166004820152602481018490529351929591169363a9059cbb936044808201949293918390030190829087803b158015611c7d57600080fd5b505af1158015611c91573d6000803e3d6000fd5b505050506040513d6020811015611ca757600080fd5b5050601754604080518381526001600160a01b039092166020830152805133927f429b877a9c01d55ef4faaa6d1f1cf960676e6c8ba26ac2a0bfb4d35bb3486bea92908290030190a250600192915050565b6000611d043361144e565b15611d44576040805162461bcd60e51b815260206004820152601c6024820152600080516020613bd9833981519152604482015290519081900360640190fd5b336000908152600b6020526040902060060154611d925760405162461bcd60e51b8152600401808060200182810382526021815260200180613b1a6021913960400191505060405180910390fd5b336000908152600b6020526040902060010154421015611de7576040805162461bcd60e51b815260206004820152601c6024820152600080516020613c65833981519152604482015290519081900360640190fd5b611df08361297c565b611e3c576040805162461bcd60e51b81526020600482015260186024820152776d7573742073656c65637420612076616c6964207465726d60401b604482015290519081900360640190fd5b600080611e48336113c9565b91509150816000148015611e5a575080155b611e955760405162461bcd60e51b8152600401808060200182810382526025815260200180613bb46025913960400191505060405180910390fd5b600080611ea13361206b565b91509150600754600014611f0657600754821115611f06576040805162461bcd60e51b815260206004820181905260248201527f63616e6e6f742070726f76696465206d6f7265207468616e2074686520636170604482015290519081900360640190fd5b600154600090611f1f906001600160a01b031689612ab5565b600254909150600090611f3b906001600160a01b03168a612ab5565b336000908152600b602052604090204290819055909150611f5c908a61233f565b336000908152600b60205260409020600190810191909155881415611f8d57611f888985858585612be0565b611f99565b611f9984848484613340565b50600198975050505050505050565b6001600160a01b03166000908152600b602052604090206006015490565b600080611fde601554476122f690919063ffffffff16565b601654600254604080516370a0823160e01b81523060048201529051939550612065936001600160a01b03909216916370a0823191602480820192602092909190829003018186803b15801561203357600080fd5b505afa158015612047573d6000803e3d6000fd5b505050506040513d602081101561205d57600080fd5b5051906122f6565b90509091565b6000806000600360009054906101000a90046001600160a01b03166001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b1580156120be57600080fd5b505afa1580156120d2573d6000803e3d6000fd5b505050506040513d60208110156120e857600080fd5b5051600680546001600160a01b0387166000908152600b6020526040812090920154929350909161211e91849161187291612a1a565b600254600354604080516370a0823160e01b81526001600160a01b039283166004820152905193945060009391909216916370a08231916024808301926020929190829003018186803b15801561217457600080fd5b505afa158015612188573d6000803e3d6000fd5b505050506040513d602081101561219e57600080fd5b5051600154600354604080516370a0823160e01b81526001600160a01b039283166004820152905193945060009391909216916370a08231916024808301926020929190829003018186803b1580156121f657600080fd5b505afa15801561220a573d6000803e3d6000fd5b505050506040513d602081101561222057600080fd5b5051600654909150612236906118728584612a1a565b600654612247906118728686612a1a565b9550955050505050915091565b6000546001600160a01b031633146122a8576040805162461bcd60e51b81526020600482015260126024820152711bdb9b1e481bdddb995c88185b1b1bddd95960721b604482015290519081900360640190fd5b600080546001600160a01b0319166001600160a01b0383811691821780845560405192939116917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a350565b600061233883836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506135fe565b9392505050565b600082820183811015612338576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b6001600160a01b0381166000908152600b6020526040812060018101548154600583015460039093015491929091844285116123d757506064612402565b6123ff6123ef60646123e988886122f6565b90612a1a565b6118726127106123e942896122f6565b90505b600061241360646118728585612a1a565b905061241f81856122f6565b98975050505050505050565b6001600160a01b0381166000908152600b60205260408120600181015481546004830154600290930154919290918442851161246957506064612402565b6123ff61247c6103e86123e988886122f6565b611872620186a06123e942896122f6565b600080806124a1606461187286600a612a1a565b6002546001549192506000916124c59184916001600160a01b0391821691166129e3565b6001546004549192506000916124e99184916001600160a01b0391821691166129e3565b94509192505050915091565b60008161250d601554476122f690919063ffffffff16565b1061251a57506001610991565b506000610991565b601654600254604080516370a0823160e01b81523060048201529051600093859361250d9391926001600160a01b03909116916370a08231916024808301926020929190829003018186803b15801561203357600080fd5b6001600160a01b0382166000908152600b60205260408120600401546125a0908361233f565b6001600160a01b0384166000908152600b60205260409020600401556016546125c990836122f6565b6016556000806125d88461248d565b60048054600554604080516323b872dd60e01b81526001600160a01b038c8116958201959095529184166024830152604482018690525194965092945016916323b872dd916064808201926020929091908290030181600087803b15801561263f57600080fd5b505af1158015612653573d6000803e3d6000fd5b505050506040513d602081101561266957600080fd5b50516126af576040805162461bcd60e51b815260206004820152601060248201526f6d75737420617070726f76652066656560801b604482015290519081900360640190fd5b6002546040805163a9059cbb60e01b81526001600160a01b038881166004830152602482018890529151919092169163a9059cbb9160448083019260209291908290030181600087803b15801561270557600080fd5b505af1158015612719573d6000803e3d6000fd5b505050506040513d602081101561272f57600080fd5b5050604080518581526020810183905281516001600160a01b038816927f79abe13d746b63963b80c616676635b9720b8e304e0ff89137f1d4b758189f7e928290030190a2506001949350505050565b6001600160a01b0382166000908152600b60205260408120600501546127a5908361233f565b6001600160a01b0384166000908152600b60205260409020600501556015546127ce90836122f6565b6015556000806127dd84612939565b60048054600554604080516323b872dd60e01b81526001600160a01b038c8116958201959095529184166024830152604482018690525194965092945016916323b872dd916064808201926020929091908290030181600087803b15801561284457600080fd5b505af1158015612858573d6000803e3d6000fd5b505050506040513d602081101561286e57600080fd5b50516128b4576040805162461bcd60e51b815260206004820152601060248201526f6d75737420617070726f76652066656560801b604482015290519081900360640190fd5b6040516001600160a01b0386169085156108fc029086906000818181858888f193505050501580156128ea573d6000803e3d6000fd5b50604080518581526020810183905281516001600160a01b038816927f8c9f0f76515e49e4b7b52423757f6953acb3cfd99670c0c80191294ea4459572928290030190a2506001949350505050565b6000808061294d606461187286600a612a1a565b6001546004549192506000916129719184916001600160a01b0391821691166129e3565b935090915050915091565b600c5460009063ffffffff168214806129a45750600c54640100000000900463ffffffff1682145b806129bd5750600c54600160401b900463ffffffff1682145b806129d65750600c54600160601b900463ffffffff1682145b1561251a57506001610991565b600a5460009081908190612a01906001600160a01b03168686613695565b91509150612a10868383613763565b9695505050505050565b600082612a2957506000611294565b82820282848281612a3657fe5b04146123385760405162461bcd60e51b8152600401808060200182810382526021815260200180613c216021913960400191505060405180910390fd5b600061233883836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250613809565b6001546000906001600160a01b0384811691161415612b5057600c5463ffffffff16821415612ae75750600d54611294565b600c54640100000000900463ffffffff16821415612b085750600e54611294565b600c54600160401b900463ffffffff16821415612b285750600f54611294565b600c54600160601b900463ffffffff16821415612b485750601054611294565b506000611294565b6002546001600160a01b038481169116141561129457600c5463ffffffff16821415612b7f5750601154611294565b600c54640100000000900463ffffffff16821415612ba05750601254611294565b600c54600160401b900463ffffffff16821415612bc05750601354611294565b600c54600160601b900463ffffffff16821415612b485750601454611294565b6008546040805163e3d670d760e01b815233600482015290516000926001600160a01b03169163e3d670d7916024808301926020929190829003018186803b158015612c2b57600080fd5b505afa158015612c3f573d6000803e3d6000fd5b505050506040513d6020811015612c5557600080fd5b505111612ca9576040805162461bcd60e51b815260206004820152601c60248201527f4e6f204d756c7469706c6965722062616c616e636520746f2075736500000000604482015290519081900360640190fd5b6008546040805163a5f9802760e01b815233600482015290516001600160a01b039092169163a5f9802791602480820192602092909190829003018186803b158015612cf457600080fd5b505afa158015612d08573d6000803e3d6000fd5b505050506040513d6020811015612d1e57600080fd5b5051851115612da857600854604080516395dbf04960e01b81523360048201526024810188905290516001600160a01b03909216916395dbf049916044808201926020929091908290030181600087803b158015612d7b57600080fd5b505af1158015612d8f573d6000803e3d6000fd5b505050506040513d6020811015612da557600080fd5b50505b6008546040805163e3d670d760e01b81523360048201529051600092612e3e926001600160a01b039091169163e3d670d791602480820192602092909190829003018186803b158015612dfa57600080fd5b505afa158015612e0e573d6000803e3d6000fd5b505050506040513d6020811015612e2457600080fd5b50516004546001546001600160a01b0391821691166129e3565b600154600254919250600091612e629184916001600160a01b0391821691166129e3565b6001549091506000908190612e7f906001600160a01b031661386e565b8015612e9b5750600254612e9b906001600160a01b031661386e565b156130cc5787841115612f3f57612f35612f2f600860009054906101000a90046001600160a01b03166001600160a01b0316638775babf6040518163ffffffff1660e01b815260040160206040518083038186803b158015612efc57600080fd5b505afa158015612f10573d6000803e3d6000fd5b505050506040513d6020811015612f2657600080fd5b50518a90612a1a565b876138ff565b9350839150612f4f565b612f4c612f2f898661233f565b91505b86831115612fee57612fe4612fde600860009054906101000a90046001600160a01b03166001600160a01b0316638775babf6040518163ffffffff1660e01b815260040160206040518083038186803b158015612fab57600080fd5b505afa158015612fbf573d6000803e3d6000fd5b505050506040513d6020811015612fd557600080fd5b50518990612a1a565b866138ff565b9250829050612ffe565b612ffb612fde888561233f565b90505b613007826124f5565b8015613017575061301781612522565b6130525760405162461bcd60e51b8152600401808060200182810382526034815260200180613ae66034913960400191505060405180910390fd5b336000908152600b602052604090206003015461306f908361233f565b336000908152600b60205260409020600381019190915560020154613094908261233f565b336000908152600b60205260409020600201556015546130b4908361233f565b6015556016546130c4908261233f565b601655613335565b6001546130e1906001600160a01b031661386e565b80156130ff57506002546130fd906001600160a01b031661386e565b155b15613203578784111561316a57613160612f2f600860009054906101000a90046001600160a01b03166001600160a01b0316638775babf6040518163ffffffff1660e01b815260040160206040518083038186803b158015612efc57600080fd5b935083915061317a565b613177612f2f898661233f565b91505b613183826124f5565b6131be5760405162461bcd60e51b8152600401808060200182810382526034815260200180613ae66034913960400191505060405180910390fd5b336000908152600b60205260409020600301546131db908361233f565b336000908152600b60205260409020600301556015546131fb908361233f565b601555613335565b600154613218906001600160a01b031661386e565b1580156132355750600254613235906001600160a01b031661386e565b1561333557868311156132a057613296612fde600860009054906101000a90046001600160a01b03166001600160a01b0316638775babf6040518163ffffffff1660e01b815260040160206040518083038186803b158015612fab57600080fd5b92508290506132b0565b6132ad612fde888561233f565b90505b6132b981612522565b6132f45760405162461bcd60e51b8152600401808060200182810382526034815260200180613ae66034913960400191505060405180910390fd5b336000908152600b6020526040902060020154613311908261233f565b336000908152600b6020526040902060020155601654613331908261233f565b6016555b505050505050505050565b600154600090819061335a906001600160a01b031661386e565b80156133765750600254613376906001600160a01b031661386e565b156134615761338586856138ff565b915061339185846138ff565b905061339c826124f5565b80156133ac57506133ac81612522565b6133e75760405162461bcd60e51b8152600401808060200182810382526034815260200180613ae66034913960400191505060405180910390fd5b336000908152600b6020526040902060030154613404908361233f565b336000908152600b60205260409020600381019190915560020154613429908261233f565b336000908152600b6020526040902060020155601554613449908361233f565b601555601654613459908261233f565b6016556135f6565b600154613476906001600160a01b031661386e565b80156134945750600254613492906001600160a01b031661386e565b155b1561352e576134a386856138ff565b91506134ae826124f5565b6134e95760405162461bcd60e51b8152600401808060200182810382526034815260200180613ae66034913960400191505060405180910390fd5b336000908152600b6020526040902060030154613506908361233f565b336000908152600b6020526040902060030155601554613526908361233f565b6015556135f6565b600154613543906001600160a01b031661386e565b1580156135605750600254613560906001600160a01b031661386e565b156135f65761356f85846138ff565b905061357a81612522565b6135b55760405162461bcd60e51b8152600401808060200182810382526034815260200180613ae66034913960400191505060405180910390fd5b336000908152600b60205260409020600201546135d2908261233f565b336000908152600b60205260409020600201556016546135f2908261233f565b6016555b505050505050565b6000818484111561368d5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561365257818101518382015260200161363a565b50505050905090810190601f16801561367f5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b60008060006136a48585613923565b5090506000806136b5888888613a01565b6001600160a01b0316630902f1ac6040518163ffffffff1660e01b815260040160606040518083038186803b1580156136ed57600080fd5b505afa158015613701573d6000803e3d6000fd5b505050506040513d606081101561371757600080fd5b5080516020909101516dffffffffffffffffffffffffffff91821693501690506001600160a01b0387811690841614613751578082613754565b81815b90999098509650505050505050565b60008084116137a35760405162461bcd60e51b8152600401808060200182810382526025815260200180613c856025913960400191505060405180910390fd5b6000831180156137b35750600082115b6137ee5760405162461bcd60e51b8152600401808060200182810382526028815260200180613bf96028913960400191505060405180910390fd5b826137f98584612a1a565b8161380057fe5b04949350505050565b600081836138585760405162461bcd60e51b815260206004820181815283516024840152835190928392604490910191908501908083836000831561365257818101518382015260200161363a565b50600083858161386457fe5b0495945050505050565b6001546000906001600160a01b03838116911614156138c45760006138b26010546138ac600f546138ac600e54600d5461233f90919063ffffffff16565b9061233f565b90508015610c11576001915050610991565b6002546001600160a01b03838116911614156109915760006138b26014546138ac6013546138ac60125460115461233f90919063ffffffff16565b60006002613914620186a06118728686612a1a565b8161391b57fe5b049392505050565b600080826001600160a01b0316846001600160a01b031614156139775760405162461bcd60e51b8152600401808060200182810382526025815260200180613b6c6025913960400191505060405180910390fd5b826001600160a01b0316846001600160a01b03161061399757828461399a565b83835b90925090506001600160a01b0382166139fa576040805162461bcd60e51b815260206004820152601e60248201527f556e697377617056324c6962726172793a205a45524f5f414444524553530000604482015290519081900360640190fd5b9250929050565b6000806000613a108585613923565b604080516bffffffffffffffffffffffff19606094851b811660208084019190915293851b81166034830152825160288184030181526048830184528051908501206001600160f81b031960688401529a90941b9093166069840152607d8301989098527f96e8ac4277198ff8b6f785478aa9a39f403cb768dd02cbee326c3e7da348845f609d808401919091528851808403909101815260bd90920190975280519601959095209594505050505056fe6d7573742073656e642045544820616c6f6e672077697468207472616e73616374696f6e6d7573742062652073756666696369656e74207374616b696e6720626f6e7573657320617661696c61626c6520696e20706f6f6c646f206e6f74206861766520616e79206c697175696469747920746f206c6f636b63616e6e6f742077697468647261772061626f76652063757272656e7420746f6b656e20626f6e75732062616c616e6365556e697377617056324c6962726172793a204944454e544943414c5f4144445245535345536d75737420666972737420776974686472617720617661696c61626c6520626f6e75736d75737420776974686472617720617661696c61626c6520626f6e757365732066697273746d757374206e6f74206265206d6967726174656420616c726561647900000000556e697377617056324c6962726172793a20494e53554646494349454e545f4c4951554944495459536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77796f7520646f206e6f74206861766520616e7920626f6e757320617661696c61626c6563616e6e6f74206f766572726964652063757272656e74207465726d00000000556e697377617056324c6962726172793a20494e53554646494349454e545f414d4f554e5463616e6e6f742077697468647261772061626f76652063757272656e742045544820626f6e75732062616c616e6365a26469706673582212209b951ed87a9f325ed044b6db440986015789be8bd4047fbd30c70b4a92d73b9a64736f6c634300060c0033

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

0000000000000000000000009ed8e7c9604790f7ec589f99b94361d8aab64e5e0000000000000000000000000065bac24ce57aa77a676193e9a9a2bbeeaa3313

-----Decoded View---------------
Arg [0] : _token (address): 0x9Ed8e7C9604790F7Ec589F99b94361d8AAB64E5E
Arg [1] : _Owner (address): 0x0065BaC24cE57aa77a676193e9A9A2BBeEaA3313

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 0000000000000000000000009ed8e7c9604790f7ec589f99b94361d8aab64e5e
Arg [1] : 0000000000000000000000000065bac24ce57aa77a676193e9a9a2bbeeaa3313


Deployed Bytecode Sourcemap

17738:43129:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;39838:990;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;39838:990:0;;:::i;:::-;;;;;;;;;;;;;;;;;;23488:340;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;23488:340:0;;;;;;;;;;;;;;;;;;;;;;;;;:::i;20086:32::-;;;;;;;;;;;;;:::i;:::-;;;;-1:-1:-1;;;;;20086:32:0;;;;;;;;;;;;;;26561:394;;;;;;;;;;;;;;;;-1:-1:-1;26561:394:0;;:::i;56670:314::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;56670:314:0;-1:-1:-1;;;;;56670:314:0;;:::i;:::-;;;;;;;;;;;;;;;;57986:300;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;57986:300:0;-1:-1:-1;;;;;57986:300:0;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;41029:598;;;;;;;;;;;;;:::i;24747:366::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;24747:366:0;-1:-1:-1;;;;;24747:366:0;;:::i;50023:402::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;50023:402:0;-1:-1:-1;;;;;50023:402:0;;:::i;22485:652::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;22485:652:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;59839:92::-;;;;;;;;;;;;;:::i;27375:865::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;27375:865:0;;;;;;;:::i;41868:1167::-;;;;;;;;;;;;;:::i;57307:338::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;57307:338:0;-1:-1:-1;;;;;57307:338:0;;:::i;49302:389::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;49302:389:0;-1:-1:-1;;;;;49302:389:0;;:::i;53922:126::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;53922:126:0;-1:-1:-1;;;;;53922:126:0;;:::i;24185:178::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;24185:178:0;;:::i;16431:20::-;;;;;;;;;;;;;:::i;60132:726::-;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;58953:97;;;;;;;;;;;;;:::i;28790:2093::-;;;;;;;;;;;;;;;;-1:-1:-1;28790:2093:0;;;;;;;:::i;25517:661::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;25517:661:0;-1:-1:-1;;;;;25517:661:0;;:::i;38206:1256::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;38206:1256:0;;;;;;;:::i;58622:127::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;58622:127:0;-1:-1:-1;;;;;58622:127:0;;:::i;59296:333::-;;;;;;;;;;;;;:::i;53151:457::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;53151:457:0;-1:-1:-1;;;;;53151:457:0;;:::i;17092:155::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;17092:155:0;-1:-1:-1;;;;;17092:155:0;;:::i;:::-;;39838:990;39898:4;39934:28;39951:10;39934:16;:28::i;:::-;39933:29;39925:70;;;;;-1:-1:-1;;;39925:70:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;39925:70:0;;;;;;;;;;;;;;;40040:10;40016:14;40033:18;;;:6;:18;;;;;:28;;;40080:13;;;;;:39;;;40110:9;40097;:22;;40080:39;40072:77;;;;;-1:-1:-1;;;40072:77:0;;;;;;;;;;;;-1:-1:-1;;;40072:77:0;;;;;;;;;;;;;;;40182:10;40175:18;;;;:6;:18;;;;;:26;;;40168:3;:33;;40160:74;;;;;-1:-1:-1;;;40160:74:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;40160:74:0;;;;;;;;;;;;;;;40286:24;:9;40300;40286:13;:24::i;:::-;40262:10;40255:18;;;;:6;:18;;;;;;;;:28;;:55;;;;40332:7;;40356:13;;40332:50;;-1:-1:-1;;;40332:50:0;;-1:-1:-1;;;;;40356:13:0;;;40332:50;;;;;;;;;;;;:7;;;:15;;:50;;;;;40255:18;40332:50;;;;;;;;:7;:50;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;40495:13:0;;40554:5;;40445:16;;;;-1:-1:-1;;;;;40495:13:0;;;;:32;;40554:5;40579:9;40495:13;;40647:10;40676:30;:3;19390:5;40676:7;:30::i;:::-;40495:212;;;;;;;;;;;;;-1:-1:-1;;;;;40495:212:0;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;40495:212:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;40495:212:0;;;;;;;;40733:65;;;;;;;;;;;;;;;;;;40495:212;;-1:-1:-1;40495:212:0;-1:-1:-1;40752:10:0;;40733:65;;;;;;;;;;40816:4;40809:11;;;;;39838:990;;;;:::o;23488:340::-;23646:4;16888:5;;-1:-1:-1;;;;;16888:5:0;16874:10;:19;16866:50;;;;;-1:-1:-1;;;16866:50:0;;;;;;;;;;;;-1:-1:-1;;;16866:50:0;;;;;;;;;;;;;;;-1:-1:-1;23673:7:0::1;:20:::0;;-1:-1:-1;;23673:20:0::1;;::::0;;::::1;;-1:-1:-1::0;;23704:21:0::1;::::0;;;::::1;::::0;;;::::1;::::0;;;::::1;-1:-1:-1::0;;23736:20:0::1;-1:-1:-1::0;;;23736:20:0;;::::1;::::0;;;::::1;::::0;;;::::1;-1:-1:-1::0;;;;23767:21:0::1;-1:-1:-1::0;;;23767:21:0;;;::::1;;::::0;;;::::1;::::0;;-1:-1:-1;;23488:340:0:o;20086:32::-;;;-1:-1:-1;;;;;20086:32:0;;:::o;26561:394::-;26623:4;26673:1;26658:12;:16;:33;;;;26690:1;26678:9;:13;26658:33;26650:61;;;;;-1:-1:-1;;;26650:61:0;;;;;;;;;;;;-1:-1:-1;;;26650:61:0;;;;;;;;;;;;;;;26726:16;;26722:130;;26761:5;;:59;;;-1:-1:-1;;;26761:59:0;;26780:10;26761:59;;;;26800:4;26761:59;;;;;;;;;;;;-1:-1:-1;;;;;26761:5:0;;;;:18;;:59;;;;;;;;;;;;;;;:5;;:59;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;26761:59:0;26753:99;;;;;-1:-1:-1;;;26753:99:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;26878:47;;;26901:9;26878:47;;;;;;;;;;26889:10;;26878:47;;;;;;;;-1:-1:-1;26943:4:0;26561:394;;;:::o;56670:314::-;-1:-1:-1;;;;;56786:13:0;;56731:17;56786:13;;;:6;:13;;;;;:21;;;56832:3;56822:13;;56818:149;;;56874:16;:7;56886:3;56874:11;:16::i;:::-;56866:25;;;;;56818:149;56954:1;56947:8;;;;;57986:300;58052:17;58071:19;58113:13;58129:34;58157:5;58129:27;:34::i;:::-;58113:50;;58174:15;58192:36;58222:5;58192:29;:36::i;:::-;58257:8;;-1:-1:-1;58174:54:0;;-1:-1:-1;;57986:300:0;;;:::o;41029:598::-;41072:4;41108:28;41125:10;41108:16;:28::i;:::-;41107:29;41099:70;;;;;-1:-1:-1;;;41099:70:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;41099:70:0;;;;;;;;;;;;;;;41214:10;41190:14;41207:18;;;:6;:18;;;;;:28;;;41254:13;41246:51;;;;;-1:-1:-1;;;41246:51:0;;;;;;;;;;;;-1:-1:-1;;;41246:51:0;;;;;;;;;;;;;;;41330:10;41323:18;;;;:6;:18;;;;;:26;;;41316:3;:33;;41308:74;;;;;-1:-1:-1;;;41308:74:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;41308:74:0;;;;;;;;;;;;;;;41410:10;41434:1;41403:18;;;:6;:18;;;;;;;;:28;;:32;;;41457:7;;:39;;-1:-1:-1;;;41457:39:0;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;41457:7:0;;;;:16;;:39;;;;;41403:18;41457:39;;;;;;;;:7;:39;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;41563:34:0;;;;;;;;41575:10;;41563:34;;;;;;41457:39;41563:34;;;41615:4;41608:11;;;41029:598;:::o;24747:366::-;24835:4;16888:5;;-1:-1:-1;;;;;16888:5:0;16874:10;:19;16866:50;;;;;-1:-1:-1;;;16866:50:0;;;;;;;;;;;;-1:-1:-1;;;16866:50:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;24870:42:0;::::1;24862:87;;;::::0;;-1:-1:-1;;;24862:87:0;;::::1;;::::0;::::1;::::0;;;;;;;::::1;::::0;;;;;;;;;;;;;::::1;;24960:17;:46:::0;;-1:-1:-1;;;;;;24960:46:0::1;-1:-1:-1::0;;;;;24960:46:0;;::::1;::::0;;;::::1;::::0;;;;25032:51:::1;::::0;;25060:3:::1;25032:51:::0;;25065:17;;;::::1;25032:51;::::0;::::1;::::0;;;25048:10:::1;::::0;25032:51:::1;::::0;;;;;;;::::1;-1:-1:-1::0;25101:4:0::1;24747:366:::0;;;:::o;50023:402::-;50092:14;50129:18;50150:36;50180:5;50150:29;:36::i;:::-;50129:57;-1:-1:-1;50211:17:0;;50207:210;;50260:24;50289:33;50308:13;50289:18;:33::i;:::-;-1:-1:-1;50259:63:0;-1:-1:-1;50351:26:0;;-1:-1:-1;;50351:26:0;22485:652;22739:4;16888:5;;-1:-1:-1;;;;;16888:5:0;16874:10;:19;16866:50;;;;;-1:-1:-1;;;16866:50:0;;;;;;;;;;;;-1:-1:-1;;;16866:50:0;;;;;;;;;;;;;;;-1:-1:-1;22766:13:0::1;:29:::0;;;;22806:13:::1;:29:::0;;;;22846:13:::1;:29:::0;;;;22886:13:::1;:29:::0;;;;22936:14:::1;:32:::0;22979:14:::1;:32:::0;23022:14:::1;:32:::0;23065:14:::1;:32:::0;23125:4:::1;::::0;22485:652::o;59839:92::-;59920:3;;59839:92;:::o;27375:865::-;27472:12;16888:5;;-1:-1:-1;;;;;16888:5:0;16874:10;:19;16866:50;;;;;-1:-1:-1;;;16866:50:0;;;;;;;;;;;;-1:-1:-1;;;16866:50:0;;;;;;;;;;;;;;;27527:1:::1;27514:10;:14;:34;;;;27547:1;27532:12;:16;27514:34;27506:78;;;::::0;;-1:-1:-1;;;27506:78:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;27605:14:::0;;27601:260:::1;;27644:51;27684:10;27644:39;:51::i;:::-;27636:111;;;;-1:-1:-1::0;;;27636:111:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27762:31;::::0;:10:::1;::::0;:31;::::1;;;::::0;27782:10;;27762:31:::1;::::0;;;27782:10;27762;:31;::::1;;;;;;;;;;;;;::::0;::::1;;;;;-1:-1:-1::0;27813:36:0::1;::::0;;;;;;;27826:10:::1;::::0;27813:36:::1;::::0;;;;;::::1;::::0;;::::1;27601:260;27885:16:::0;;27881:320:::1;;27926:55;27968:12;27926:41;:55::i;:::-;27918:117;;;;-1:-1:-1::0;;;27918:117:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;28058:5;::::0;:40:::1;::::0;;-1:-1:-1;;;28058:40:0;;28073:10:::1;28058:40;::::0;::::1;::::0;;;;;;;;;-1:-1:-1;;;;;28058:5:0;;::::1;::::0;:14:::1;::::0;:40;;;;;::::1;::::0;;;;;;;;;:5:::1;::::0;:40;::::1;;::::0;::::1;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;-1:-1:-1::0;28058:40:0;28050:81:::1;;;::::0;;-1:-1:-1;;;28050:81:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;28151:38;::::0;;;;;;;28164:10:::1;::::0;28151:38:::1;::::0;;;;;::::1;::::0;;::::1;27881:320;-1:-1:-1::0;28228:4:0::1;16927:1;27375:865:::0;;;;:::o;41868:1167::-;41912:4;41940:14;41956:16;41976:33;41998:10;41976:21;:33::i;:::-;41939:70;;;;42040:1;42028:9;:13;:32;;;;42059:1;42045:11;:15;42028:32;42020:80;;;;-1:-1:-1;;;42020:80:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;42121:18;42142:41;42172:10;42142:29;:41::i;:::-;42121:62;;42194:16;42213:39;42241:10;42213:27;:39::i;:::-;42194:58;;42293:1;42277:13;:17;:36;;;;;42312:1;42298:11;:15;42277:36;42273:449;;;42344:50;42368:10;42380:13;42344:23;:50::i;:::-;;42409:46;42431:10;42443:11;42409:21;:46::i;:::-;;42273:449;;;42505:1;42491:11;:15;:37;;;;-1:-1:-1;42510:18:0;;42491:37;42487:235;;;42544:46;42566:10;42578:11;42544:21;:46::i;42487:235::-;42620:16;;:37;;;;;42656:1;42640:13;:17;42620:37;42616:106;;;42672:50;42696:10;42708:13;42672:23;:50::i;:::-;;42616:106;42754:10;42747:18;;;;:6;:18;;;;;:26;;;42777:3;-1:-1:-1;42743:263:0;;42818:10;42846:1;42811:18;;;:6;:18;;;;;:32;;;:36;;;42862:33;;;:37;;;42914:28;;;:32;;;-1:-1:-1;42961:29:0;:33;42743:263;43023:4;43016:11;;;;;;41868:1167;:::o;57307:338::-;-1:-1:-1;;;;;57443:13:0;;57371:14;57443:13;;;:6;:13;;;;;:27;;;;57499:28;;;;57556:23;;;;;57371:14;;57499:28;57556:38;;57443:27;57556;:38::i;:::-;-1:-1:-1;;;;;57596:13:0;;;;;;:6;:13;;;;;:24;;;:40;;57625:10;57596:28;:40::i;:::-;57548:89;;;;;;57307:338;;;:::o;49302:389::-;49369:12;49404:17;49424:34;49452:5;49424:27;:34::i;:::-;49404:54;-1:-1:-1;49483:16:0;;49479:204;;49531:23;49559:30;49576:12;49559:16;:30::i;53922:126::-;-1:-1:-1;;;;;54018:13:0;53984:4;54018:13;;;:6;:13;;;;;:22;;;;;;53922:126::o;24185:178::-;24242:4;16888:5;;-1:-1:-1;;;;;16888:5:0;16874:10;:19;16866:50;;;;;-1:-1:-1;;;16866:50:0;;;;;;;;;;;;-1:-1:-1;;;16866:50:0;;;;;;;;;;;;;;;24269:3:::1;:10:::0;;;24305:28:::1;::::0;;;;;;;24316:10:::1;::::0;24305:28:::1;::::0;;;;;::::1;::::0;;::::1;-1:-1:-1::0;24351:4:0::1;24185:178:::0;;;:::o;16431:20::-;;;-1:-1:-1;;;;;16431:20:0;;:::o;60132:726::-;60678:7;;60714:14;;60730;;60746;;60776;;60791:13;;60806;;60821;;60836;;60678:7;;;;;60687;;;;;;-1:-1:-1;;;60696:7:0;;;;;-1:-1:-1;;;60705:7:0;;;;;;;60714:14;;60730;;60746;;60776;;60791:13;;60806;;60836;60132:726::o;58953:97::-;59034:7;;-1:-1:-1;;;;;59034:7:0;58953:97;:::o;28790:2093::-;28867:4;28903:28;28920:10;28903:16;:28::i;:::-;28902:29;28894:70;;;;;-1:-1:-1;;;28894:70:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;28894:70:0;;;;;;;;;;;;;;;28997:10;28990:18;;;;:6;:18;;;;;:26;;;28983:3;:33;;28975:74;;;;;-1:-1:-1;;;28975:74:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;28975:74:0;;;;;;;;;;;;;;;29068:19;29081:5;29068:12;:19::i;:::-;29060:56;;;;;-1:-1:-1;;;29060:56:0;;;;;;;;;;;;-1:-1:-1;;;29060:56:0;;;;;;;;;;;;;;;29147:1;29135:9;:13;29127:62;;;;-1:-1:-1;;;29127:62:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;29204:3;;:8;29200:75;;29235:3;;29222:9;:16;;29214:61;;;;;-1:-1:-1;;;29214:61:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;29339:4;;29354:5;;29296:9;;29308:53;;29320:9;;-1:-1:-1;;;;;29339:4:0;;;;29354:5;29308:11;:53::i;:::-;29380:5;;:51;;;-1:-1:-1;;;29380:51:0;;29399:10;29380:51;;;;29419:4;29380:51;;;;;;;;;;;;29296:65;;-1:-1:-1;;;;;;29380:5:0;;;;:18;;:51;;;;;;;;;;;;;;;:5;;:51;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;29380:51:0;29372:91;;;;;-1:-1:-1;;;29372:91:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;29485:14;29501:16;29521:31;29541:10;29521:19;:31::i;:::-;29484:68;;;;29571:9;29584:1;29571:14;:34;;;;-1:-1:-1;29589:16:0;;29571:34;29563:82;;;;-1:-1:-1;;;29563:82:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;29666:19;29688:23;29707:3;29689:12;:4;29698:2;29689:8;:12::i;:::-;29688:18;;:23::i;:::-;29722:5;;29744:13;;29722:43;;;-1:-1:-1;;;29722:43:0;;-1:-1:-1;;;;;29744:13:0;;;29722:43;;;;;;;;;;;;29666:45;;-1:-1:-1;29722:5:0;;;:13;;:43;;;;;;;;;;;;;;;:5;;:43;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;29841:13:0;;29911:5;;29779:16;;;;;;-1:-1:-1;;;;;29841:13:0;;;;:29;;29878:9;;29911:5;29933:24;:4;29942:14;29933:8;:24::i;:::-;29973:1;;30015:4;30036:30;:3;19390:5;30036:7;:30::i;:::-;29841:226;;;;;;;;;;;;;-1:-1:-1;;;;;29841:226:0;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;29841:226:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;29841:226:0;;;;;;;;;;;;30095:10;30088:18;;;;:6;:18;;;;;;;30115:3;30088:30;;;;29841:226;;-1:-1:-1;29841:226:0;-1:-1:-1;29841:226:0;;-1:-1:-1;30158:14:0;;30166:5;30158:7;:14::i;:::-;30136:10;30129:18;;;;:6;:18;;;;;:26;;;:43;;;;30218:28;;;30289:32;30218:28;30311:9;30289:21;:32::i;:::-;30265:10;30258:18;;;;:6;:18;;;;;:28;;:63;;;;30385:4;;30358:39;;-1:-1:-1;;;;;30385:4:0;30391:5;30358:26;:39::i;:::-;30450:5;;30344:53;;-1:-1:-1;30408:12:0;;30423:40;;-1:-1:-1;;;;;30450:5:0;30457;30423:26;:40::i;:::-;30408:55;;30492:17;30511:19;30534:28;30551:10;30534:16;:28::i;:::-;30491:71;;;;30587:11;30602:1;30587:16;30583:183;;;30615:70;30631:5;30638:12;30652:14;30668:6;30677:7;30615:15;:70::i;:::-;30583:183;;;30701:65;30720:12;30734:14;30750:6;30758:7;30701:18;:65::i;:::-;30792:61;;;;;;;;;;;;;;;;;;;;30807:10;;30792:61;;;;;;;;;;-1:-1:-1;30871:4:0;;28790:2093;-1:-1:-1;;;;;;;;;;;;;;28790:2093:0:o;25517:661::-;25595:4;-1:-1:-1;;;;;25630:42:0;;25622:87;;;;;-1:-1:-1;;;25622:87:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;25728:17;;-1:-1:-1;;;;;25728:47:0;;;:17;;:47;25720:81;;;;;-1:-1:-1;;;25720:81:0;;;;;;;;;;;;-1:-1:-1;;;25720:81:0;;;;;;;;;;;;;;;25821:28;25838:10;25821:16;:28::i;:::-;25820:29;25812:70;;;;;-1:-1:-1;;;25812:70:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;25812:70:0;;;;;;;;;;;;;;;25910:10;25903:18;;;;:6;:18;;;;;;;;:27;;;:34;;-1:-1:-1;;25903:34:0;25933:4;25903:34;;;25978:28;;;26017:7;;26034:17;;26017:46;;-1:-1:-1;;;26017:46:0;;-1:-1:-1;;;;;26034:17:0;;;26017:46;;;;;;;;;;;;25978:28;;26017:7;;;:16;;:46;;;;;25903:18;;26017:46;;;;;;;;:7;:46;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;26130:17:0;;26089:59;;;;;;-1:-1:-1;;;;;26130:17:0;;;26017:46;26089:59;;;;;26107:10;;26089:59;;;;;;;;;-1:-1:-1;26166:4:0;;25517:661;-1:-1:-1;;25517:661:0:o;38206:1256::-;38278:4;38314:28;38331:10;38314:16;:28::i;:::-;38313:29;38305:70;;;;;-1:-1:-1;;;38305:70:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;38305:70:0;;;;;;;;;;;;;;;38401:10;38425:1;38394:18;;;:6;:18;;;;;:28;;;38386:78;;;;-1:-1:-1;;;38386:78:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;38497:10;38490:18;;;;:6;:18;;;;;:26;;;38483:3;:33;;38475:74;;;;;-1:-1:-1;;;38475:74:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;38475:74:0;;;;;;;;;;;;;;;38568:19;38581:5;38568:12;:19::i;:::-;38560:56;;;;;-1:-1:-1;;;38560:56:0;;;;;;;;;;;;-1:-1:-1;;;38560:56:0;;;;;;;;;;;;;;;38638:14;38654:16;38674:31;38694:10;38674:19;:31::i;:::-;38637:68;;;;38725:9;38738:1;38725:14;:34;;;;-1:-1:-1;38743:16:0;;38725:34;38716:85;;;;-1:-1:-1;;;38716:85:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;38823:17;38842:19;38865:28;38882:10;38865:16;:28::i;:::-;38822:71;;;;38908:3;;38915:1;38908:8;38904:78;;38942:3;;38926:12;:19;;38918:64;;;;;-1:-1:-1;;;38918:64:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;39044:4;;39003:11;;39017:39;;-1:-1:-1;;;;;39044:4:0;39050:5;39017:26;:39::i;:::-;39109:5;;39003:53;;-1:-1:-1;39067:12:0;;39082:40;;-1:-1:-1;;;;;39109:5:0;39116;39082:26;:40::i;:::-;39150:10;39143:18;;;;:6;:18;;;;;39170:3;39143:30;;;;39067:55;;-1:-1:-1;39213:14:0;;39221:5;39213:7;:14::i;:::-;39191:10;39184:18;;;;:6;:18;;;;;:26;;;;:43;;;;39252:16;;39248:173;;;39270:70;39286:5;39293:12;39307:14;39323:6;39332:7;39270:15;:70::i;:::-;39248:173;;;39356:65;39375:12;39389:14;39405:6;39413:7;39356:18;:65::i;:::-;-1:-1:-1;39450:4:0;;38206:1256;-1:-1:-1;;;;;;;;38206:1256:0:o;58622:127::-;-1:-1:-1;;;;;58718:13:0;58684:12;58718:13;;;:6;:13;;;;;:23;;;;58622:127::o;59296:333::-;59347:18;59367:20;59426:48;59454:19;;59427:21;59426:27;;:48;;;;:::i;:::-;59540:20;;59504:5;;:30;;;-1:-1:-1;;;59504:30:0;;59528:4;59504:30;;;;;;59410:64;;-1:-1:-1;59503:58:0;;-1:-1:-1;;;;;59504:5:0;;;;:15;;:30;;;;;;;;;;;;;;;:5;:30;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;59504:30:0;;59503:36;:58::i;:::-;59485:76;;59296:333;;:::o;53151:457::-;53212:17;53231:19;53273:10;53286:7;;;;;;;;;-1:-1:-1;;;;;53286:7:0;-1:-1:-1;;;;;53286:19:0;;:21;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;53286:21:0;53362:6;;;-1:-1:-1;;;;;53333:13:0;;53318:10;53333:13;;;:6;53286:21;53333:13;;;;:23;;;;53286:21;;-1:-1:-1;53318:10:0;;53331:50;;53286:21;;53332:37;;:29;:37::i;53331:50::-;53409:5;;53433:7;;53409:33;;;-1:-1:-1;;;53409:33:0;;-1:-1:-1;;;;;53433:7:0;;;53409:33;;;;;;53318:63;;-1:-1:-1;53392:14:0;;53409:5;;;;;:15;;:33;;;;;;;;;;;;;;:5;:33;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;53409:33:0;53469:4;;53492:7;;53469:32;;;-1:-1:-1;;;53469:32:0;;-1:-1:-1;;;;;53492:7:0;;;53469:32;;;;;;53409:33;;-1:-1:-1;53453:13:0;;53469:4;;;;;:14;;:32;;;;;53409:33;;53469:32;;;;;;;:4;:32;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;53469:32:0;53556:6;;53469:32;;-1:-1:-1;53530:33:0;;53531:19;:5;53469:32;53531:9;:19::i;53530:33::-;53592:6;;53565:34;;53566:20;:5;53576:9;53566;:20::i;53565:34::-;53522:78;;;;;;;;53151:457;;;:::o;17092:155::-;16888:5;;-1:-1:-1;;;;;16888:5:0;16874:10;:19;16866:50;;;;;-1:-1:-1;;;16866:50:0;;;;;;;;;;;;-1:-1:-1;;;16866:50:0;;;;;;;;;;;;;;;17168:5:::1;:17:::0;;-1:-1:-1;;;;;;17168:17:0::1;-1:-1:-1::0;;;;;17168:17:0;;::::1;::::0;;::::1;::::0;;;17201:38:::1;::::0;17168:17;;17222:5;::::1;::::0;17201:38:::1;::::0;17168:5;17201:38:::1;17092:155:::0;:::o;911:136::-;969:7;996:43;1000:1;1003;996:43;;;;;;;;;;;;;;;;;:3;:43::i;:::-;989:50;911:136;-1:-1:-1;;;911:136:0:o;447:181::-;505:7;537:5;;;561:6;;;;553:46;;;;;-1:-1:-1;;;553:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;46977:584;-1:-1:-1;;;;;47093:13:0;;47051:4;47093:13;;;:6;:13;;;;;:21;;;;47138:19;;47181:27;;;;47236:23;;;;;47093:21;;47138:19;;47051:4;47311:3;:14;-1:-1:-1;47307:131:0;;-1:-1:-1;47341:3:0;47307:131;;;47374:64;47408:29;47433:3;47409:18;:7;47421:5;47409:11;:18::i;:::-;47408:24;;:29::i;:::-;47375:27;47396:5;47376:14;:3;47384:5;47376:7;:14::i;47374:64::-;47360:78;;47307:131;47459:13;47476:39;47511:3;47477:28;47478:9;47493:11;47477:15;:28::i;47476:39::-;47459:57;-1:-1:-1;47534:19:0;47459:57;47547:5;47534:12;:19::i;:::-;47527:26;46977:584;-1:-1:-1;;;;;;;;46977:584:0:o;46126:::-;-1:-1:-1;;;;;46236:13:0;;46202:4;46236:13;;;:6;:13;;;;;:21;;;;46281:19;;46324:28;;;;46381:24;;;;;46236:21;;46281:19;;46202:4;46457:3;:14;-1:-1:-1;46453:133:0;;-1:-1:-1;46487:3:0;46453:133;;;46520:66;46555:30;46580:4;46556:18;:7;46568:5;46556:11;:18::i;46555:30::-;46521:28;46542:6;46522:14;:3;46530:5;46522:7;:14::i;47941:372::-;48005:14;;;48068:26;48090:3;48069:15;:7;48081:2;48069:11;:15::i;48068:26::-;48146:5;;;48162:4;48057:37;;-1:-1:-1;48105:13:0;;48121:47;;48057:37;;-1:-1:-1;;;;;48146:5:0;;;;48162:4;48121:11;:47::i;:::-;48228:4;;48243:6;;48105:63;;-1:-1:-1;48179:16:0;;48198:53;;48105:63;;-1:-1:-1;;;;;48228:4:0;;;;48243:6;48198:11;:53::i;:::-;48179:72;-1:-1:-1;48295:3:0;;-1:-1:-1;;;47941:372:0;;;:::o;55320:267::-;55405:4;55488:7;55436:48;55464:19;;55437:21;55436:27;;:48;;;;:::i;:::-;:59;55432:148;;-1:-1:-1;55519:4:0;55512:11;;55432:148;-1:-1:-1;55563:5:0;55556:12;;55988:320;56141:20;;56106:5;;:30;;;-1:-1:-1;;;56106:30:0;;56130:4;56106:30;;;;;;56075:4;;56167:7;;56106:56;;56141:20;;-1:-1:-1;;;;;56106:5:0;;;;:15;;:30;;;;;;;;;;;;;;:5;:30;;;;;;;;;;44491:606;-1:-1:-1;;;;;44635:13:0;;44577:4;44635:13;;;:6;:13;;;;;:28;;;:48;;44668:14;44635:32;:48::i;:::-;-1:-1:-1;;;;;44604:13:0;;;;;;:6;:13;;;;;:28;;:79;44717:20;;:40;;44742:14;44717:24;:40::i;:::-;44694:20;:63;44779:8;;44808:34;44827:14;44808:18;:34::i;:::-;44878:6;;;44906;;44871:47;;;-1:-1:-1;;;44871:47:0;;-1:-1:-1;;;;;44871:47:0;;;;;;;;;;44906:6;;;44871:47;;;;;;;;;;;44778:64;;-1:-1:-1;44778:64:0;;-1:-1:-1;44878:6:0;;44871:27;;:47;;;;;;;;;;;;;;;44878:6;;44871:47;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;44871:47:0;44863:76;;;;;-1:-1:-1;;;44863:76:0;;;;;;;;;;;;-1:-1:-1;;;44863:76:0;;;;;;;;;;;;;;;44950:5;;:37;;;-1:-1:-1;;;44950:37:0;;-1:-1:-1;;;;;44950:37:0;;;;;;;;;;;;;;;:5;;;;;:14;;:37;;;;;;;;;;;;;;:5;;:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;45009:58:0;;;;;;44950:37;45009:58;;;;;;;-1:-1:-1;;;;;45009:58:0;;;;;;;;;;;-1:-1:-1;45085:4:0;;44491:606;-1:-1:-1;;;;44491:606:0:o;43466:590::-;-1:-1:-1;;;;;43612:13:0;;43558:4;43612:13;;;:6;:13;;;;;:27;;;:47;;43644:14;43612:31;:47::i;:::-;-1:-1:-1;;;;;43582:13:0;;;;;;:6;:13;;;;;:27;;:77;43692:19;;:39;;43716:14;43692:23;:39::i;:::-;43670:19;:61;43753:8;;43780:32;43797:14;43780:16;:32::i;:::-;43848:6;;;43876;;43841:47;;;-1:-1:-1;;;43841:47:0;;-1:-1:-1;;;;;43841:47:0;;;;;;;;;;43876:6;;;43841:47;;;;;;;;;;;43752:60;;-1:-1:-1;43752:60:0;;-1:-1:-1;43848:6:0;;43841:27;;:47;;;;;;;;;;;;;;;43848:6;;43841:47;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;43841:47:0;43833:76;;;;;-1:-1:-1;;;43833:76:0;;;;;;;;;;;;-1:-1:-1;;;43833:76:0;;;;;;;;;;;;;;;43920:30;;-1:-1:-1;;;;;43920:14:0;;;:30;;;;;43935:14;;43920:30;;;;43935:14;43920;:30;;;;;;;;;;;;;;;;;;;;-1:-1:-1;43972:54:0;;;;;;;;;;;;;;-1:-1:-1;;;;;43972:54:0;;;;;;;;;;;-1:-1:-1;44044:4:0;;43466:590;-1:-1:-1;;;;43466:590:0:o;48689:283::-;48751:14;;;48812:26;48834:3;48813:15;:7;48825:2;48813:11;:15::i;48812:26::-;48893:4;;48908:6;;48801:37;;-1:-1:-1;48849:16:0;;48868:48;;48801:37;;-1:-1:-1;;;;;48893:4:0;;;;48908:6;48868:11;:48::i;:::-;48849:67;-1:-1:-1;48960:3:0;;-1:-1:-1;;48689:283:0;;;:::o;52534:270::-;52630:7;;52590:4;;52630:7;;52621:16;;;:49;;-1:-1:-1;52663:7:0;;;;;;;52654:16;;52621:49;:82;;;-1:-1:-1;52696:7:0;;-1:-1:-1;;;52696:7:0;;;;52687:16;;52621:82;:115;;;-1:-1:-1;52729:7:0;;-1:-1:-1;;;52729:7:0;;;;52720:16;;52621:115;52617:179;;;-1:-1:-1;52759:4:0;52752:11;;45530:325;45731:17;;45621;;;;;;45694:74;;-1:-1:-1;;;;;45731:17:0;45751:7;45760;45694:28;:74::i;:::-;45661:107;;;;45796:51;45819:7;45828:8;45838;45796:22;:51::i;:::-;45789:58;45530:325;-1:-1:-1;;;;;;45530:325:0:o;1801:471::-;1859:7;2104:6;2100:47;;-1:-1:-1;2134:1:0;2127:8;;2100:47;2171:5;;;2175:1;2171;:5;:1;2195:5;;;;;:10;2187:56;;;;-1:-1:-1;;;2187:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2748:132;2806:7;2833:39;2837:1;2840;2833:39;;;;;;;;;;;;;;;;;:3;:39::i;51469:750::-;51595:4;;51554;;-1:-1:-1;;;;;51585:14:0;;;51595:4;;51585:14;51581:631;;;51629:7;;;;51620:16;;51616:256;;;-1:-1:-1;51645:13:0;;51638:20;;51616:256;51691:7;;;;;;;51682:16;;51678:194;;;-1:-1:-1;51707:13:0;;51700:20;;51678:194;51753:7;;-1:-1:-1;;;51753:7:0;;;;51744:16;;51740:132;;;-1:-1:-1;51769:13:0;;51762:20;;51740:132;51815:7;;-1:-1:-1;;;51815:7:0;;;;51806:16;;51802:70;;;-1:-1:-1;51831:13:0;;51824:20;;51802:70;-1:-1:-1;51871:1:0;51864:8;;51581:631;51918:5;;-1:-1:-1;;;;;51908:15:0;;;51918:5;;51908:15;51904:308;;;51953:7;;;;51944:16;;51940:260;;;-1:-1:-1;51969:14:0;;51962:21;;51940:260;52016:7;;;;;;;52007:16;;52003:197;;;-1:-1:-1;52032:14:0;;52025:21;;52003:197;52079:7;;-1:-1:-1;;;52079:7:0;;;;52070:16;;52066:134;;;-1:-1:-1;52095:14:0;;52088:21;;52066:134;52142:7;;-1:-1:-1;;;52142:7:0;;;;52133:16;;52129:71;;;-1:-1:-1;52158:14:0;;52151:21;;31450:3661;31602:10;;:30;;;-1:-1:-1;;;31602:30:0;;31621:10;31602:30;;;;;;31635:1;;-1:-1:-1;;;;;31602:10:0;;:18;;:30;;;;;;;;;;;;;;:10;:30;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;31602:30:0;:34;31594:75;;;;;-1:-1:-1;;;31594:75:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;31692:10;;:35;;;-1:-1:-1;;;31692:35:0;;31716:10;31692:35;;;;;;-1:-1:-1;;;;;31692:10:0;;;;:23;;:35;;;;;;;;;;;;;;;:10;:35;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;31692:35:0;31684:43;;31680:97;;;31729:10;;:48;;;-1:-1:-1;;;31729:48:0;;31759:10;31729:48;;;;;;;;;;;;-1:-1:-1;;;;;31729:10:0;;;;:29;;:48;;;;;;;;;;;;;;;:10;;:48;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;31680:97:0;31831:10;;:30;;;-1:-1:-1;;;31831:30:0;;31850:10;31831:30;;;;;;31798:18;;31819:66;;-1:-1:-1;;;;;31831:10:0;;;;:18;;:30;;;;;;;;;;;;;;;:10;:30;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;31831:30:0;31863:6;;;31879:4;-1:-1:-1;;;;;31863:6:0;;;;31879:4;31819:11;:66::i;:::-;31954:4;;31969:5;;31798:87;;-1:-1:-1;31896:20:0;;31919:57;;31798:87;;-1:-1:-1;;;;;31954:4:0;;;;31969:5;31919:11;:57::i;:::-;32075:4;;31896:80;;-1:-1:-1;31987:19:0;;;;32062:18;;-1:-1:-1;;;;;32075:4:0;32062:12;:18::i;:::-;:41;;;;-1:-1:-1;32097:5:0;;32084:19;;-1:-1:-1;;;;;32097:5:0;32084:12;:19::i;:::-;32058:3046;;;32162:9;32146:13;:25;32142:323;;;32209:75;32226:48;32240:10;;;;;;;;;-1:-1:-1;;;;;32240:10:0;-1:-1:-1;;;;;32240:31:0;;:33;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;32240:33:0;32226:9;;:13;:48::i;:::-;32277:6;32209:15;:75::i;:::-;32192:93;;32321:13;32304:30;;32142:323;;;32393:55;32410:28;:9;32424:13;32410;:28::i;32393:55::-;32375:74;;32142:323;32523:11;32505:15;:29;32501:341;;;32574:78;32591:50;32607:10;;;;;;;;;-1:-1:-1;;;;;32607:10:0;-1:-1:-1;;;;;32607:31:0;;:33;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;32607:33:0;32591:11;;:15;:50::i;:::-;32644:7;32574:15;:78::i;:::-;32555:98;;32690:15;32672:33;;32501:341;;;32765:60;32782:32;:11;32798:15;32782;:32::i;32765:60::-;32746:80;;32501:341;32882:55;32922:14;32882:39;:55::i;:::-;:130;;;;;32954:58;32996:15;32954:41;:58::i;:::-;32874:208;;;;-1:-1:-1;;;32874:208:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;33165:10;33158:18;;;;:6;:18;;;;;:28;;;:48;;33191:14;33158:32;:48::i;:::-;33134:10;33127:18;;;;:6;:18;;;;;:28;;;:79;;;;33253:29;;;:50;;33287:15;33253:33;:50::i;:::-;33228:10;33221:18;;;;:6;:18;;;;;:29;;:82;33340:19;;:39;;33364:14;33340:23;:39::i;:::-;33318:19;:61;33417:20;;:41;;33442:15;33417:24;:41::i;:::-;33394:20;:64;32058:3046;;;33515:4;;33502:18;;-1:-1:-1;;;;;33515:4:0;33502:12;:18::i;:::-;:42;;;;-1:-1:-1;33538:5:0;;33525:19;;-1:-1:-1;;;;;33538:5:0;33525:12;:19::i;:::-;33524:20;33502:42;33498:1606;;;33603:9;33587:13;:25;33583:323;;;33650:75;33667:48;33681:10;;;;;;;;;-1:-1:-1;;;;;33681:10:0;-1:-1:-1;;;;;33681:31:0;;:33;;;;;;;;;;;;;;;;;;;;;;;;;;;;;33650:75;33633:93;;33762:13;33745:30;;33583:323;;;33834:55;33851:28;:9;33865:13;33851;:28::i;33834:55::-;33816:74;;33583:323;33950:55;33990:14;33950:39;:55::i;:::-;33942:134;;;;-1:-1:-1;;;33942:134:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;34151:10;34144:18;;;;:6;:18;;;;;:28;;;:48;;34177:14;34144:32;:48::i;:::-;34120:10;34113:18;;;;:6;:18;;;;;:28;;:79;34229:19;;:39;;34253:14;34229:23;:39::i;:::-;34207:19;:61;33498:1606;;;34326:4;;34313:18;;-1:-1:-1;;;;;34326:4:0;34313:12;:18::i;:::-;34312:19;:42;;;;-1:-1:-1;34348:5:0;;34335:19;;-1:-1:-1;;;;;34348:5:0;34335:12;:19::i;:::-;34308:796;;;34403:11;34385:15;:29;34381:341;;;34454:78;34471:50;34487:10;;;;;;;;;-1:-1:-1;;;;;34487:10:0;-1:-1:-1;;;;;34487:31:0;;:33;;;;;;;;;;;;;;;;;;;;;;;;;;;;;34454:78;34435:98;;34570:15;34552:33;;34381:341;;;34645:60;34662:32;:11;34678:15;34662;:32::i;34645:60::-;34626:80;;34381:341;34766:58;34808:15;34766:41;:58::i;:::-;34758:136;;;;-1:-1:-1;;;34758:136:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;34970:10;34963:18;;;;:6;:18;;;;;:29;;;:50;;34997:15;34963:33;:50::i;:::-;34938:10;34931:18;;;;:6;:18;;;;;:29;;:82;35051:20;;:41;;35076:15;35051:24;:41::i;:::-;35028:20;:64;34308:796;31450:3661;;;;;;;;;:::o;35629:2107::-;35856:4;;35768:19;;;;35843:18;;-1:-1:-1;;;;;35856:4:0;35843:12;:18::i;:::-;:41;;;;-1:-1:-1;35878:5:0;;35865:19;;-1:-1:-1;;;;;35878:5:0;35865:12;:19::i;:::-;35839:1880;;;35932:34;35948:9;35959:6;35932:15;:34::i;:::-;35915:51;;35999:37;36015:11;36028:7;35999:15;:37::i;:::-;35981:55;;36077;36117:14;36077:39;:55::i;:::-;:130;;;;;36149:58;36191:15;36149:41;:58::i;:::-;36069:208;;;;-1:-1:-1;;;36069:208:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;36356:10;36349:18;;;;:6;:18;;;;;:28;;;:48;;36382:14;36349:32;:48::i;:::-;36325:10;36318:18;;;;:6;:18;;;;;:28;;;:79;;;;36444:29;;;:50;;36478:15;36444:33;:50::i;:::-;36419:10;36412:18;;;;:6;:18;;;;;:29;;:82;36531:19;;:39;;36555:14;36531:23;:39::i;:::-;36509:19;:61;36608:20;;:41;;36633:15;36608:24;:41::i;:::-;36585:20;:64;35839:1880;;;36702:4;;36689:18;;-1:-1:-1;;;;;36702:4:0;36689:12;:18::i;:::-;:42;;;;-1:-1:-1;36725:5:0;;36712:19;;-1:-1:-1;;;;;36725:5:0;36712:12;:19::i;:::-;36711:20;36689:42;36685:1034;;;36783:34;36799:9;36810:6;36783:15;:34::i;:::-;36766:51;;36858:55;36898:14;36858:39;:55::i;:::-;36850:134;;;;-1:-1:-1;;;36850:134:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;37055:10;37048:18;;;;:6;:18;;;;;:28;;;:48;;37081:14;37048:32;:48::i;:::-;37024:10;37017:18;;;;:6;:18;;;;;:28;;:79;37133:19;;:39;;37157:14;37133:23;:39::i;:::-;37111:19;:61;36685:1034;;;37226:4;;37213:18;;-1:-1:-1;;;;;37226:4:0;37213:12;:18::i;:::-;37212:19;:42;;;;-1:-1:-1;37248:5:0;;37235:19;;-1:-1:-1;;;;;37248:5:0;37235:12;:19::i;:::-;37208:511;;;37307:37;37323:11;37336:7;37307:15;:37::i;:::-;37289:55;;37385:58;37427:15;37385:41;:58::i;:::-;37377:136;;;;-1:-1:-1;;;37377:136:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;37585:10;37578:18;;;;:6;:18;;;;;:29;;;:50;;37612:15;37578:33;:50::i;:::-;37553:10;37546:18;;;;:6;:18;;;;;:29;;:82;37666:20;;:41;;37691:15;37666:24;:41::i;:::-;37643:20;:64;37208:511;35629:2107;;;;;;:::o;1350:192::-;1436:7;1472:12;1464:6;;;;1456:29;;;;-1:-1:-1;;;1456:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;1508:5:0;;;1350:192::o;10711:391::-;10804:13;10819;10846:14;10865:26;10876:6;10884;10865:10;:26::i;:::-;10845:46;;;10903:13;10918;10951:32;10959:7;10968:6;10976;10951:7;:32::i;:::-;-1:-1:-1;;;;;10936:60:0;;:62;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;10936:62:0;;;;;;;10902:96;;;;;-1:-1:-1;10902:96:0;;-1:-1:-1;;;;;;11032:16:0;;;;;;;:62;;11075:8;11085;11032:62;;;11052:8;11062;11032:62;11009:85;;;;-1:-1:-1;10711:391:0;-1:-1:-1;;;;;;;10711:391:0:o;11215:321::-;11297:12;11340:1;11330:7;:11;11322:61;;;;-1:-1:-1;;;11322:61:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;11413:1;11402:8;:12;:28;;;;;11429:1;11418:8;:12;11402:28;11394:81;;;;-1:-1:-1;;;11394:81:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;11520:8;11496:21;:7;11508:8;11496:11;:21::i;:::-;:32;;;;;;;11215:321;-1:-1:-1;;;;11215:321:0:o;3376:278::-;3462:7;3497:12;3490:5;3482:28;;;;-1:-1:-1;;;3482:28:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3521:9;3537:1;3533;:5;;;;;;;3376:278;-1:-1:-1;;;;;3376:278:0:o;54367:552::-;54468:4;;54427;;-1:-1:-1;;;;;54458:14:0;;;54468:4;;54458:14;54454:458;;;54489:16;54508:70;54564:13;;54508:51;54545:13;;54508:32;54526:13;;54508;;:17;;:32;;;;:::i;:::-;:36;;:51::i;:70::-;54489:89;-1:-1:-1;54597:15:0;;54593:65;;54621:4;54614:11;;;;;54454:458;54704:5;;-1:-1:-1;;;;;54694:15:0;;;54704:5;;54694:15;54690:222;;;54726:17;54746:74;54805:14;;54746:54;54785:14;;54746:34;54765:14;;54746;;:18;;:34;;;;:::i;50879:224::-;50964:4;51047:1;50999:44;51036:6;51000:30;:7;51012:17;51000:11;:30::i;50999:44::-;50998:50;;;;;;;50879:224;-1:-1:-1;;;50879:224:0:o;9734:349::-;9809:14;9825;9870:6;-1:-1:-1;;;;;9860:16:0;:6;-1:-1:-1;;;;;9860:16:0;;;9852:66;;;;-1:-1:-1;;;9852:66:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;9957:6;-1:-1:-1;;;;;9948:15:0;:6;-1:-1:-1;;;;;9948:15:0;;:53;;9986:6;9994;9948:53;;;9967:6;9975;9948:53;9929:72;;-1:-1:-1;9929:72:0;-1:-1:-1;;;;;;10020:20:0;;10012:63;;;;;-1:-1:-1;;;10012:63:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;9734:349;;;;;:::o;10175:478::-;10264:12;10290:14;10306;10324:26;10335:6;10343;10324:10;:26::i;:::-;10488:32;;;-1:-1:-1;;10488:32:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;10478:43;;;;;;-1:-1:-1;;;;;;10391:251:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;10381:262;;;;;;;;;10175:478;-1:-1:-1;;;;;10175:478:0:o

Swarm Source

ipfs://9b951ed87a9f325ed044b6db440986015789be8bd4047fbd30c70b4a92d73b9a

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

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ 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.