ETH Price: $2,642.39 (+0.81%)

Contract

0x7f478b6c313cAE4d36c1A6c0FB7c366b441BDE58
 

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Emergency Withdr...141075472022-01-30 14:03:02992 days ago1643551382IN
XDEFI: Staking
0 ETH0.0054429280.0489035
Withdraw138340072021-12-19 6:45:431035 days ago1639896343IN
XDEFI: Staking
0 ETH0.0105230142
Withdraw137763932021-12-10 8:55:471044 days ago1639126547IN
XDEFI: Staking
0 ETH0.0140831657.34935415
Withdraw137758082021-12-10 6:40:161044 days ago1639118416IN
XDEFI: Staking
0 ETH0.0140277956.32205995
Withdraw137753142021-12-10 4:48:201044 days ago1639111700IN
XDEFI: Staking
0 ETH0.0136403954.27329262
Withdraw134800332021-10-24 11:53:421090 days ago1635076422IN
XDEFI: Staking
0 ETH0.009653738.57348401
Batch Collect Re...134610962021-10-21 12:45:591093 days ago1634820359IN
XDEFI: Staking
0 ETH0.0165362574.45311322
Withdraw134335532021-10-17 5:25:161098 days ago1634448316IN
XDEFI: Staking
0 ETH0.0154377258.45341598
Batch Collect Re...134055322021-10-12 19:27:581102 days ago1634066878IN
XDEFI: Staking
0 ETH0.0166538274.1901174
Withdraw133828162021-10-09 5:54:371106 days ago1633758877IN
XDEFI: Staking
0 ETH0.0165078766.66428627
Batch Collect Re...133490642021-10-03 23:00:371111 days ago1633302037IN
XDEFI: Staking
0 ETH0.0022134663.24171454
Deposit133370942021-10-02 2:07:461113 days ago1633140466IN
XDEFI: Staking
0 ETH0.0260121751.7182736
Batch Collect Re...132671252021-09-21 5:10:471124 days ago1632201047IN
XDEFI: Staking
0 ETH0.009418142.46080813
Withdraw132040682021-09-11 11:00:561134 days ago1631358056IN
XDEFI: Staking
0 ETH0.0135540353.96425373
Withdraw131034622021-08-26 21:28:251149 days ago1630013305IN
XDEFI: Staking
0 ETH0.0173622369.41144672
Batch Collect Re...130805852021-08-23 8:51:471153 days ago1629708707IN
XDEFI: Staking
0 ETH0.0066039529.80191907
Withdraw130523682021-08-19 0:15:541157 days ago1629332154IN
XDEFI: Staking
0 ETH0.0065035126
Withdraw130272582021-08-15 3:04:421161 days ago1628996682IN
XDEFI: Staking
0 ETH0.0071997628.84994243
Withdraw130229212021-08-14 11:13:401162 days ago1628939620IN
XDEFI: Staking
0 ETH0.0104200941.8692967
Withdraw130228952021-08-14 11:06:481162 days ago1628939208IN
XDEFI: Staking
0 ETH0.0080622933.01676697
Batch Collect Re...130228852021-08-14 11:04:301162 days ago1628939070IN
XDEFI: Staking
0 ETH0.008699436.57717279
Deposit130207392021-08-14 2:55:371162 days ago1628909737IN
XDEFI: Staking
0 ETH0.0086397937
Batch Collect Re...130087162021-08-12 6:22:551164 days ago1628749375IN
XDEFI: Staking
0 ETH0.0097025842.03310185
Withdraw129893902021-08-09 6:45:091167 days ago1628491509IN
XDEFI: Staking
0 ETH0.00618124
Withdraw129706772021-08-06 9:43:181170 days ago1628242998IN
XDEFI: Staking
0 ETH0.0080356131.24876327
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block From To
141075472022-01-30 14:03:02992 days ago1643551382
0x7f478b6c...b441BDE58
0 ETH
138340072021-12-19 6:45:431035 days ago1639896343
0x7f478b6c...b441BDE58
0 ETH
138340072021-12-19 6:45:431035 days ago1639896343
0x7f478b6c...b441BDE58
0 ETH
138340072021-12-19 6:45:431035 days ago1639896343
0x7f478b6c...b441BDE58
0 ETH
138340072021-12-19 6:45:431035 days ago1639896343
0x7f478b6c...b441BDE58
0 ETH
138340072021-12-19 6:45:431035 days ago1639896343
0x7f478b6c...b441BDE58
0 ETH
138340072021-12-19 6:45:431035 days ago1639896343
0x7f478b6c...b441BDE58
0 ETH
138340072021-12-19 6:45:431035 days ago1639896343
0x7f478b6c...b441BDE58
0 ETH
138340072021-12-19 6:45:431035 days ago1639896343
0x7f478b6c...b441BDE58
0 ETH
137763932021-12-10 8:55:471044 days ago1639126547
0x7f478b6c...b441BDE58
0 ETH
137763932021-12-10 8:55:471044 days ago1639126547
0x7f478b6c...b441BDE58
0 ETH
137763932021-12-10 8:55:471044 days ago1639126547
0x7f478b6c...b441BDE58
0 ETH
137763932021-12-10 8:55:471044 days ago1639126547
0x7f478b6c...b441BDE58
0 ETH
137763932021-12-10 8:55:471044 days ago1639126547
0x7f478b6c...b441BDE58
0 ETH
137763932021-12-10 8:55:471044 days ago1639126547
0x7f478b6c...b441BDE58
0 ETH
137763932021-12-10 8:55:471044 days ago1639126547
0x7f478b6c...b441BDE58
0 ETH
137763932021-12-10 8:55:471044 days ago1639126547
0x7f478b6c...b441BDE58
0 ETH
137758082021-12-10 6:40:161044 days ago1639118416
0x7f478b6c...b441BDE58
0 ETH
137758082021-12-10 6:40:161044 days ago1639118416
0x7f478b6c...b441BDE58
0 ETH
137758082021-12-10 6:40:161044 days ago1639118416
0x7f478b6c...b441BDE58
0 ETH
137758082021-12-10 6:40:161044 days ago1639118416
0x7f478b6c...b441BDE58
0 ETH
137758082021-12-10 6:40:161044 days ago1639118416
0x7f478b6c...b441BDE58
0 ETH
137758082021-12-10 6:40:161044 days ago1639118416
0x7f478b6c...b441BDE58
0 ETH
137758082021-12-10 6:40:161044 days ago1639118416
0x7f478b6c...b441BDE58
0 ETH
137758082021-12-10 6:40:161044 days ago1639118416
0x7f478b6c...b441BDE58
0 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
FarmMaster

Compiler Version
v0.5.17+commit.d19bba13

Optimization Enabled:
Yes with 200 runs

Other Settings:
istanbul EvmVersion, None license

Contract Source Code (Solidity)

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

// File: @openzeppelin/contracts/token/ERC20/IERC20.sol

pragma solidity ^0.5.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP. Does not include
 * the optional functions; to access them see {ERC20Detailed}.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

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

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

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

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * 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);
}

// File: @openzeppelin/contracts/math/SafeMath.sol

pragma solidity ^0.5.0;

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

        return c;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        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.
     *
     * _Available since v2.4.0._
     */
    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.
     *
     * _Available since v2.4.0._
     */
    function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        // Solidity only automatically asserts when dividing by 0
        require(b > 0, errorMessage);
        uint256 c = a / b;
        // assert(a == b * c + a % b); // There is no case in which this doesn't hold

        return c;
    }

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

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

// File: @openzeppelin/contracts/utils/Address.sol

pragma solidity ^0.5.5;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following 
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // According to EIP-1052, 0x0 is the value returned for not-yet created accounts
        // and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned
        // for accounts without code, i.e. `keccak256('')`
        bytes32 codehash;
        bytes32 accountHash = 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470;
        // solhint-disable-next-line no-inline-assembly
        assembly { codehash := extcodehash(account) }
        return (codehash != accountHash && codehash != 0x0);
    }

    /**
     * @dev Converts an `address` into `address payable`. Note that this is
     * simply a type cast: the actual underlying value is not changed.
     *
     * _Available since v2.4.0._
     */
    function toPayable(address account) internal pure returns (address payable) {
        return address(uint160(account));
    }

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

        // solhint-disable-next-line avoid-call-value
        (bool success, ) = recipient.call.value(amount)("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }
}

// File: @openzeppelin/contracts/token/ERC20/SafeERC20.sol

pragma solidity ^0.5.0;




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

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

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

    function safeApprove(IERC20 token, address spender, uint256 value) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        // solhint-disable-next-line max-line-length
        require((value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

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

    function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 newAllowance = token.allowance(address(this), spender).sub(value, "SafeERC20: decreased allowance below zero");
        callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function callOptionalReturn(IERC20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves.

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

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

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

// File: @openzeppelin/contracts/utils/ReentrancyGuard.sol

pragma solidity ^0.5.0;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 *
 * _Since v2.5.0:_ this module is now much more gas efficient, given net gas
 * metering changes introduced in the Istanbul hardfork.
 */
contract ReentrancyGuard {
    bool private _notEntered;

    constructor () internal {
        // Storing an initial non-zero value makes deployment a bit more
        // expensive, but in exchange the refund on every call to nonReentrant
        // will be lower in amount. Since refunds are capped to a percetange of
        // the total transaction's gas, it is best to keep them low in cases
        // like this one, to increase the likelihood of the full refund coming
        // into effect.
        _notEntered = true;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and make it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_notEntered, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _notEntered = false;

        _;

        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _notEntered = true;
    }
}

// File: @openzeppelin/contracts/GSN/Context.sol

pragma solidity ^0.5.0;

/*
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with GSN meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
contract Context {
    // Empty internal constructor, to prevent people from mistakenly deploying
    // an instance of this contract, which should be used via inheritance.
    constructor () internal { }
    // solhint-disable-previous-line no-empty-blocks

    function _msgSender() internal view returns (address payable) {
        return msg.sender;
    }

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

// File: @openzeppelin/contracts/token/ERC20/ERC20.sol

pragma solidity ^0.5.0;




/**
 * @dev Implementation of the {IERC20} interface.
 *
 * This implementation is agnostic to the way tokens are created. This means
 * that a supply mechanism has to be added in a derived contract using {_mint}.
 * For a generic mechanism see {ERC20Mintable}.
 *
 * TIP: For a detailed writeup see our guide
 * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * We have followed general OpenZeppelin guidelines: functions revert instead
 * of returning `false` on failure. This behavior is nonetheless conventional
 * and does not conflict with the expectations of ERC20 applications.
 *
 * Additionally, an {Approval} event is emitted on calls to {transferFrom}.
 * This allows applications to reconstruct the allowance for all accounts just
 * by listening to said events. Other implementations of the EIP may not emit
 * these events, as it isn't required by the specification.
 *
 * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
 * functions have been added to mitigate the well-known issues around setting
 * allowances. See {IERC20-approve}.
 */
contract ERC20 is Context, IERC20 {
    using SafeMath for uint256;

    mapping (address => uint256) private _balances;

    mapping (address => mapping (address => uint256)) private _allowances;

    uint256 private _totalSupply;

    /**
     * @dev See {IERC20-totalSupply}.
     */
    function totalSupply() public view returns (uint256) {
        return _totalSupply;
    }

    /**
     * @dev See {IERC20-balanceOf}.
     */
    function balanceOf(address account) public view returns (uint256) {
        return _balances[account];
    }

    /**
     * @dev See {IERC20-transfer}.
     *
     * Requirements:
     *
     * - `recipient` cannot be the zero address.
     * - the caller must have a balance of at least `amount`.
     */
    function transfer(address recipient, uint256 amount) public returns (bool) {
        _transfer(_msgSender(), recipient, amount);
        return true;
    }

    /**
     * @dev See {IERC20-allowance}.
     */
    function allowance(address owner, address spender) public view returns (uint256) {
        return _allowances[owner][spender];
    }

    /**
     * @dev See {IERC20-approve}.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public returns (bool) {
        _approve(_msgSender(), spender, amount);
        return true;
    }

    /**
     * @dev See {IERC20-transferFrom}.
     *
     * Emits an {Approval} event indicating the updated allowance. This is not
     * required by the EIP. See the note at the beginning of {ERC20};
     *
     * Requirements:
     * - `sender` and `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     * - the caller must have allowance for `sender`'s tokens of at least
     * `amount`.
     */
    function transferFrom(address sender, address recipient, uint256 amount) public returns (bool) {
        _transfer(sender, recipient, amount);
        _approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "ERC20: transfer amount exceeds allowance"));
        return true;
    }

    /**
     * @dev Atomically increases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function increaseAllowance(address spender, uint256 addedValue) public returns (bool) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][spender].add(addedValue));
        return true;
    }

    /**
     * @dev Atomically decreases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `spender` must have allowance for the caller of at least
     * `subtractedValue`.
     */
    function decreaseAllowance(address spender, uint256 subtractedValue) public returns (bool) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, "ERC20: decreased allowance below zero"));
        return true;
    }

    /**
     * @dev Moves tokens `amount` from `sender` to `recipient`.
     *
     * This is internal function is equivalent to {transfer}, and can be used to
     * e.g. implement automatic token fees, slashing mechanisms, etc.
     *
     * Emits a {Transfer} event.
     *
     * Requirements:
     *
     * - `sender` cannot be the zero address.
     * - `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     */
    function _transfer(address sender, address recipient, uint256 amount) internal {
        require(sender != address(0), "ERC20: transfer from the zero address");
        require(recipient != address(0), "ERC20: transfer to the zero address");

        _balances[sender] = _balances[sender].sub(amount, "ERC20: transfer amount exceeds balance");
        _balances[recipient] = _balances[recipient].add(amount);
        emit Transfer(sender, recipient, amount);
    }

    /** @dev Creates `amount` tokens and assigns them to `account`, increasing
     * the total supply.
     *
     * Emits a {Transfer} event with `from` set to the zero address.
     *
     * Requirements
     *
     * - `to` cannot be the zero address.
     */
    function _mint(address account, uint256 amount) internal {
        require(account != address(0), "ERC20: mint to the zero address");

        _totalSupply = _totalSupply.add(amount);
        _balances[account] = _balances[account].add(amount);
        emit Transfer(address(0), account, amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`, reducing the
     * total supply.
     *
     * Emits a {Transfer} event with `to` set to the zero address.
     *
     * Requirements
     *
     * - `account` cannot be the zero address.
     * - `account` must have at least `amount` tokens.
     */
    function _burn(address account, uint256 amount) internal {
        require(account != address(0), "ERC20: burn from the zero address");

        _balances[account] = _balances[account].sub(amount, "ERC20: burn amount exceeds balance");
        _totalSupply = _totalSupply.sub(amount);
        emit Transfer(account, address(0), amount);
    }

    /**
     * @dev Sets `amount` as the allowance of `spender` over the `owner`s tokens.
     *
     * This is internal function is equivalent to `approve`, and can be used to
     * e.g. set automatic allowances for certain subsystems, etc.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `owner` cannot be the zero address.
     * - `spender` cannot be the zero address.
     */
    function _approve(address owner, address spender, uint256 amount) internal {
        require(owner != address(0), "ERC20: approve from the zero address");
        require(spender != address(0), "ERC20: approve to the zero address");

        _allowances[owner][spender] = amount;
        emit Approval(owner, spender, amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`.`amount` is then deducted
     * from the caller's allowance.
     *
     * See {_burn} and {_approve}.
     */
    function _burnFrom(address account, uint256 amount) internal {
        _burn(account, amount);
        _approve(account, _msgSender(), _allowances[account][_msgSender()].sub(amount, "ERC20: burn amount exceeds allowance"));
    }
}

// File: @openzeppelin/contracts/token/ERC20/ERC20Detailed.sol

pragma solidity ^0.5.0;


/**
 * @dev Optional functions from the ERC20 standard.
 */
contract ERC20Detailed is IERC20 {
    string private _name;
    string private _symbol;
    uint8 private _decimals;

    /**
     * @dev Sets the values for `name`, `symbol`, and `decimals`. All three of
     * these values are immutable: they can only be set once during
     * construction.
     */
    constructor (string memory name, string memory symbol, uint8 decimals) public {
        _name = name;
        _symbol = symbol;
        _decimals = decimals;
    }

    /**
     * @dev Returns the name of the token.
     */
    function name() public view returns (string memory) {
        return _name;
    }

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view returns (string memory) {
        return _symbol;
    }

    /**
     * @dev Returns the number of decimals used to get its user representation.
     * For example, if `decimals` equals `2`, a balance of `505` tokens should
     * be displayed to a user as `5,05` (`505 / 10 ** 2`).
     *
     * Tokens usually opt for a value of 18, imitating the relationship between
     * Ether and Wei.
     *
     * NOTE: This information is only used for _display_ purposes: it in
     * no way affects any of the arithmetic of the contract, including
     * {IERC20-balanceOf} and {IERC20-transfer}.
     */
    function decimals() public view returns (uint8) {
        return _decimals;
    }
}

// File: contracts/XDEX.sol

pragma solidity 0.5.17;



contract XDEX is ERC20, ERC20Detailed {
    address public core;

    event SET_CORE(address indexed core, address indexed _core);

    constructor() public ERC20Detailed("XDEFI Governance Token", "XDEX", 18) {
        core = msg.sender;
    }

    modifier onlyCore() {
        require(msg.sender == core, "Not Authorized");
        _;
    }

    function setCore(address _core) public onlyCore {
        emit SET_CORE(core, _core);
        core = _core;
    }

    function mint(address account, uint256 amount) public onlyCore {
        _mint(account, amount);
    }

    function burnForSelf(uint256 amount) external {
        _burn(msg.sender, amount);
    }
}

// File: contracts/interfaces/IXHalfLife.sol

pragma solidity 0.5.17;

interface IXHalfLife {
    function createStream(
        address token,
        address recipient,
        uint256 depositAmount,
        uint256 startBlock,
        uint256 kBlock,
        uint256 unlockRatio,
        bool cancelable
    ) external returns (uint256);

    function createEtherStream(
        address recipient,
        uint256 startBlock,
        uint256 kBlock,
        uint256 unlockRatio,
        bool cancelable
    ) external payable returns (uint256);

    function hasStream(uint256 streamId) external view returns (bool);

    function getStream(uint256 streamId)
        external
        view
        returns (
            address sender,
            address recipient,
            address token,
            uint256 depositAmount,
            uint256 startBlock,
            uint256 kBlock,
            uint256 remaining,
            uint256 withdrawable,
            uint256 unlockRatio,
            uint256 lastRewardBlock,
            bool cancelable
        );

    function balanceOf(uint256 streamId)
        external
        view
        returns (uint256 withdrawable, uint256 remaining);

    function withdrawFromStream(uint256 streamId, uint256 amount)
        external
        returns (bool);

    function cancelStream(uint256 streamId) external returns (bool);

    function singleFundStream(uint256 streamId, uint256 amount)
        external
        payable
        returns (bool);

    function lazyFundStream(
        uint256 streamId,
        uint256 amount,
        uint256 blockHeightDiff
    ) external payable returns (bool);

    function getVersion() external pure returns (bytes32);
}

// File: contracts/XdexStream.sol

pragma solidity 0.5.17;




contract XdexStream is ReentrancyGuard {
    uint256 constant ONE = 10**18;

    //The XDEX Token!
    address public xdex;
    address public xdexFarmMaster;

    /**
     * @notice An interface of XHalfLife, the contract responsible for creating, funding and withdrawing from streams.
     * No one could cancle the xdex resward stream except the recipient, because the stream sender is this contract.
     */
    IXHalfLife public halflife;

    struct LockStream {
        address depositor;
        bool isEntity;
        uint256 streamId;
    }

    //unlock ratio is 0.1% for both Voting and Normal Pool
    uint256 private constant unlockRatio = 1;

    //unlock k block for Voting Pool
    uint256 private constant unlockKBlocksV = 540;
    // key: recipient, value: Locked Stream
    mapping(address => LockStream) private votingStreams;

    //funds for Normal Pool
    uint256 private constant unlockKBlocksN = 60;
    // key: recipient, value: Locked Stream
    mapping(address => LockStream) private normalStreams;

    // non cancelable farm streams
    bool private constant cancelable = false;

    /**
     * @notice User can have at most one votingStream and one normalStream.
     * @param streamType The type of stream: 0 is votingStream, 1 is normalStream;
     */
    modifier lockStreamExists(address who, uint256 streamType) {
        bool found = false;
        if (streamType == 0) {
            //voting stream
            found = votingStreams[who].isEntity;
        } else if (streamType == 1) {
            //normal stream
            found = normalStreams[who].isEntity;
        }

        require(found, "the lock stream does not exist");
        _;
    }

    modifier validStreamType(uint256 streamType) {
        require(
            streamType == 0 || streamType == 1,
            "invalid stream type: 0 or 1"
        );
        _;
    }

    constructor(
        address _xdex,
        address _halfLife,
        address _farmMaster
    ) public {
        xdex = _xdex;
        halflife = IXHalfLife(_halfLife);
        xdexFarmMaster = _farmMaster;
    }

    /**
     * If the user has VotingStream or has NormalStream.
     */
    function hasStream(address who)
        public
        view
        returns (bool hasVotingStream, bool hasNormalStream)
    {
        hasVotingStream = votingStreams[who].isEntity;
        hasNormalStream = normalStreams[who].isEntity;
    }

    /**
     * @notice Get a user's voting or normal stream id.
     * @dev stream id must > 0.
     * @param streamType The type of stream: 0 is votingStream, 1 is normalStream;
     */
    function getStreamId(address who, uint256 streamType)
        public
        view
        lockStreamExists(who, streamType)
        returns (uint256 streamId)
    {
        if (streamType == 0) {
            return votingStreams[who].streamId;
        } else if (streamType == 1) {
            return normalStreams[who].streamId;
        }
    }

    /**
     * @notice Creates a new stream funded by `msg.sender` and paid towards to `recipient`.
     * @param streamType The type of stream: 0 is votingStream, 1 is normalStream;
     */
    function createStream(
        address recipient,
        uint256 depositAmount,
        uint256 streamType,
        uint256 startBlock
    )
        external
        nonReentrant
        validStreamType(streamType)
        returns (uint256 streamId)
    {
        require(msg.sender == xdexFarmMaster, "only farmMaster could create");
        require(recipient != address(0), "stream to the zero address");
        require(recipient != address(this), "stream to the contract itself");
        require(recipient != msg.sender, "stream to the caller");
        require(depositAmount > 0, "depositAmount is zero");
        require(startBlock >= block.number, "start block before block.number");

        if (streamType == 0) {
            require(
                !(votingStreams[recipient].isEntity),
                "voting stream exists"
            );
        }
        if (streamType == 1) {
            require(
                !(normalStreams[recipient].isEntity),
                "normal stream exists"
            );
        }

        uint256 unlockKBlocks = unlockKBlocksN;
        if (streamType == 0) {
            unlockKBlocks = unlockKBlocksV;
        }

        /* Approve the XHalflife contract to spend. */
        IERC20(xdex).approve(address(halflife), depositAmount);

        /* Transfer the tokens to this contract. */
        IERC20(xdex).transferFrom(msg.sender, address(this), depositAmount);

        streamId = halflife.createStream(
            xdex,
            recipient,
            depositAmount,
            startBlock,
            unlockKBlocks,
            unlockRatio,
            cancelable
        );

        if (streamType == 0) {
            votingStreams[recipient] = LockStream({
                depositor: msg.sender,
                isEntity: true,
                streamId: streamId
            });
        } else if (streamType == 1) {
            normalStreams[recipient] = LockStream({
                depositor: msg.sender,
                isEntity: true,
                streamId: streamId
            });
        }
    }

    /**
     * @notice Send funds to the stream
     * @param streamId The given stream id;
     * @param amount New amount fund to add;
     * @param blockHeightDiff diff of block.number and farmPool's lastRewardBlock;
     */
    function fundsToStream(
        uint256 streamId,
        uint256 amount,
        uint256 blockHeightDiff
    ) public returns (bool result) {
        require(amount > 0, "amount is zero");

        /* Approve the XHalflife contract to spend. */
        IERC20(xdex).approve(address(halflife), amount);

        /* Transfer the tokens to this contract. */
        IERC20(xdex).transferFrom(msg.sender, address(this), amount);

        result = halflife.lazyFundStream(streamId, amount, blockHeightDiff);
    }
}

// File: contracts/FarmMaster.sol

pragma solidity 0.5.17;







// FarmMaster is the master of xDefi Farms.
contract FarmMaster is ReentrancyGuard {
    using SafeMath for uint256;
    using SafeERC20 for IERC20;

    uint256 private constant ONE = 10**18;
    uint256 private constant StreamTypeVoting = 0;
    uint256 private constant StreamTypeNormal = 1;

    //min and max lpToken count in one pool
    uint256 private constant LpTokenMinCount = 1;
    uint256 private constant LpTokenMaxCount = 8;

    uint256 private constant LpRewardFixDec = 1e12;

    // Info of each user.
    struct UserInfo {
        uint256 amount; // How many LP tokens the user has provided.
        uint256 rewardDebt; // Reward debt.
    }

    struct LpTokenInfo {
        IERC20 lpToken; // Address of LP token contract.
        // lpTokenType, Type of LP token
        //      Type0: XPT;
        //      Type1: UNI-LP;
        //      Type2: BPT;
        //      Type3: XLP;
        uint256 lpTokenType;
        uint256 lpFactor;
        uint256 lpAccPerShare; // Accumulated XDEX per share, times 1e12. See below.
        mapping(address => UserInfo) userInfo; // Info of each user that stakes LP tokens.
    }

    // Info of each pool.
    struct PoolInfo {
        LpTokenInfo[] LpTokenInfos;
        uint256 poolFactor; // How many allocation factor assigned to this pool. XDEX to distribute per block.
        uint256 lastRewardBlock; // Last block number that XDEX distribution occurs.
    }

    //key: hash(pid + lp address), value: index
    mapping(bytes32 => uint256) private lpIndexInPool;

    /*
     * In [0, 60000) blocks, 160 XDEX per block, 9600000 XDEX distributed;
     * In [60000, 180000) blocks, 80 XDEX per block, 9600000 XDEX distributed;
     * In [180000, 420000) blocks, 40 XDEX per block, 9600000 XDEX distributed;
     * In [420000, 900000) blocks, 20 XDEX per block, 9600000 XDEX distributed;
     * After 900000 blocks, 8 XDEX distributed per block.
     */
    uint256[4] public bonusEndBlocks = [60000, 180000, 420000, 900000];

    // 160, 80, 40, 20, 8 XDEX per block
    uint256[5] public tokensPerBlock = [
        uint256(160 * ONE),
        uint256(80 * ONE),
        uint256(40 * ONE),
        uint256(20 * ONE),
        uint256(8 * ONE)
    ];

    // First deposit incentive (once for each new user): 10 XDEX
    uint256 public constant bonusFirstDeposit = 10 * ONE;

    address public core;
    // The XDEX TOKEN
    XDEX public xdex;

    // Secure Asset Fund for Users(SAFU) address, same as SAFU in xdefi-base/contracts/XConfig.sol
    address public safu;

    // whitelist of claimable airdrop tokens
    mapping(address => bool) public claimableTokens;

    // The Halflife Proxy Contract
    XdexStream public stream;

    // The main voting pool id
    uint256 public votingPoolId;

    // The block number when Token farming starts.
    uint256 public startBlock;

    // Info of each pool.
    PoolInfo[] public poolInfo;

    // Total allocation factors. Must be the sum of all allocation factors in all pools.
    uint256 public totalXFactor = 0;

    event AddPool(
        uint256 indexed pid,
        address indexed lpToken,
        uint256 indexed lpType,
        uint256 lpFactor
    );

    event AddLP(
        uint256 indexed pid,
        address indexed lpToken,
        uint256 indexed lpType,
        uint256 lpFactor
    );

    event UpdateFactor(
        uint256 indexed pid,
        address indexed lpToken,
        uint256 lpFactor
    );

    event Deposit(
        address indexed user,
        uint256 indexed pid,
        address indexed lpToken,
        uint256 amount
    );

    event Withdraw(
        address indexed user,
        uint256 indexed pid,
        address indexed lpToken,
        uint256 amount
    );

    event EmergencyWithdraw(
        address indexed user,
        uint256 indexed pid,
        address indexed lpToken,
        uint256 amount
    );

    event Claim(
        address indexed to,
        address indexed token,
        uint256 indexed amount
    );

    event SetCore(address indexed _core, address indexed _coreNew);
    event SetStream(address indexed _stream, address indexed _streamNew);
    event SetVotingPool(uint256 indexed _pid);
    event SetSafu(address indexed safu, address indexed _safu);

    /**
     * @dev Throws if the msg.sender unauthorized.
     */
    modifier onlyCore() {
        require(msg.sender == core, "Not authorized");
        _;
    }

    /**
     * @dev Throws if the pid does not point to a valid pool.
     */
    modifier poolExists(uint256 _pid) {
        require(_pid < poolInfo.length, "pool not exist");
        _;
    }

    constructor(
        XDEX _xdex,
        uint256 _startBlock,
        address _safu
    ) public {
        require(_safu != address(0), "ERR_ZERO_ADDRESS");

        xdex = _xdex;
        startBlock = _startBlock;
        core = msg.sender;
        safu = _safu;
    }

    function poolLength() external view returns (uint256) {
        return poolInfo.length;
    }

    // Set the voting pool id.
    function setVotingPool(uint256 _pid) external onlyCore {
        votingPoolId = _pid;
        emit SetVotingPool(_pid);
    }

    // Set the xdex stream proxy.
    function setStream(address _stream) external onlyCore {
        require(_stream != address(0), "ERR_ZERO_ADDRESS");
        emit SetStream(address(stream), _stream);
        stream = XdexStream(_stream);
    }

    // Set new core
    function setCore(address _core) external onlyCore {
        require(_core != address(0), "ERR_ZERO_ADDRESS");
        emit SetCore(core, _core);
        core = _core;
    }

    // Set new SAFU
    function setSafu(address _safu) external onlyCore {
        require(_safu != address(0), "ERR_ZERO_ADDRESS");
        emit SetSafu(safu, _safu);
        safu = _safu;
    }

    // Add a new lp to the pool. Can only be called by the core.
    // DO NOT add the same LP token more than once. Rewards will be messed up if you do.
    function addPool(
        IERC20 _lpToken,
        uint256 _lpTokenType,
        uint256 _lpFactor,
        bool _withUpdate
    ) external onlyCore {
        require(_lpFactor > 0, "Lp Token Factor is zero");

        if (_withUpdate) {
            massUpdatePools();
        }
        uint256 _lastRewardBlock =
            block.number > startBlock ? block.number : startBlock;

        totalXFactor = totalXFactor.add(_lpFactor);

        uint256 poolinfos_id = poolInfo.length++;
        poolInfo[poolinfos_id].poolFactor = _lpFactor;
        poolInfo[poolinfos_id].lastRewardBlock = _lastRewardBlock;
        poolInfo[poolinfos_id].LpTokenInfos.push(
            LpTokenInfo({
                lpToken: _lpToken,
                lpTokenType: _lpTokenType,
                lpFactor: _lpFactor,
                lpAccPerShare: 0
            })
        );
        //The index in storage starts with 1, then need sub(1)
        lpIndexInPool[keccak256(abi.encodePacked(poolinfos_id, _lpToken))] = 1;
        emit AddPool(poolinfos_id, address(_lpToken), _lpTokenType, _lpFactor);
    }

    function addLpTokenToPool(
        uint256 _pid,
        IERC20 _lpToken,
        uint256 _lpTokenType,
        uint256 _lpFactor
    ) public onlyCore poolExists(_pid) {
        require(_lpFactor > 0, "Lp Token Factor is zero");

        massUpdatePools();

        PoolInfo memory pool = poolInfo[_pid];
        require(
            lpIndexInPool[keccak256(abi.encodePacked(_pid, _lpToken))] == 0,
            "lp token already added"
        );

        //check lpToken count
        uint256 count = pool.LpTokenInfos.length;
        require(
            count >= LpTokenMinCount && count < LpTokenMaxCount,
            "pool lpToken length is bad"
        );

        totalXFactor = totalXFactor.add(_lpFactor);

        LpTokenInfo memory lpTokenInfo =
            LpTokenInfo({
                lpToken: _lpToken,
                lpTokenType: _lpTokenType,
                lpFactor: _lpFactor,
                lpAccPerShare: 0
            });
        poolInfo[_pid].poolFactor = pool.poolFactor.add(_lpFactor);
        poolInfo[_pid].LpTokenInfos.push(lpTokenInfo);

        //save lpToken index
        //The index in storage starts with 1, then need sub(1)
        lpIndexInPool[keccak256(abi.encodePacked(_pid, _lpToken))] = count + 1;

        emit AddLP(_pid, address(_lpToken), _lpTokenType, _lpFactor);
    }

    function getLpTokenInfosByPoolId(uint256 _pid)
        external
        view
        poolExists(_pid)
        returns (
            address[] memory lpTokens,
            uint256[] memory lpTokenTypes,
            uint256[] memory lpFactors,
            uint256[] memory lpAccPerShares
        )
    {
        PoolInfo memory pool = poolInfo[_pid];
        uint256 length = pool.LpTokenInfos.length;
        lpTokens = new address[](length);
        lpTokenTypes = new uint256[](length);
        lpFactors = new uint256[](length);
        lpAccPerShares = new uint256[](length);
        for (uint8 i = 0; i < length; i++) {
            lpTokens[i] = address(pool.LpTokenInfos[i].lpToken);
            lpTokenTypes[i] = pool.LpTokenInfos[i].lpTokenType;
            lpFactors[i] = pool.LpTokenInfos[i].lpFactor;
            lpAccPerShares[i] = pool.LpTokenInfos[i].lpAccPerShare;
        }
    }

    // Update the given lpToken's lpFactor in the given pool. Can only be called by the owner.
    // `_lpFactor` is 0, means the LpToken is soft deleted from pool.
    function setLpFactor(
        uint256 _pid,
        IERC20 _lpToken,
        uint256 _lpFactor,
        bool _withUpdate
    ) public onlyCore poolExists(_pid) {
        if (_withUpdate) {
            massUpdatePools();
        }

        PoolInfo storage pool = poolInfo[_pid];
        uint256 index = _getLpIndexInPool(_pid, _lpToken);
        //update poolFactor and totalXFactor
        uint256 poolFactorNew =
            pool.poolFactor.sub(pool.LpTokenInfos[index].lpFactor).add(
                _lpFactor
            );
        pool.LpTokenInfos[index].lpFactor = _lpFactor;

        totalXFactor = totalXFactor.sub(poolInfo[_pid].poolFactor).add(
            poolFactorNew
        );
        poolInfo[_pid].poolFactor = poolFactorNew;

        emit UpdateFactor(_pid, address(_lpToken), _lpFactor);
    }

    // Update reward variables for all pools. Be careful of gas spending!
    function massUpdatePools() public {
        uint256 length = poolInfo.length;
        for (uint8 pid = 0; pid < length; ++pid) {
            if (poolInfo[pid].poolFactor > 0) {
                updatePool(pid);
            }
        }
    }

    // Update reward variables of the given pool to be up-to-date.
    function updatePool(uint256 _pid) public poolExists(_pid) {
        if (block.number <= poolInfo[_pid].lastRewardBlock) {
            return;
        }

        if (poolInfo[_pid].poolFactor == 0 || totalXFactor == 0) {
            return;
        }

        PoolInfo storage pool = poolInfo[_pid];
        (uint256 poolReward, , ) =
            getXCountToReward(pool.lastRewardBlock, block.number);
        poolReward = poolReward.mul(pool.poolFactor).div(totalXFactor);

        uint256 totalLpSupply = 0;
        for (uint8 i = 0; i < pool.LpTokenInfos.length; i++) {
            LpTokenInfo memory lpInfo = pool.LpTokenInfos[i];
            uint256 lpSupply = lpInfo.lpToken.balanceOf(address(this));
            if (lpSupply == 0) {
                continue;
            }
            totalLpSupply = totalLpSupply.add(lpSupply);
            uint256 lpReward =
                poolReward.mul(lpInfo.lpFactor).div(pool.poolFactor);
            pool.LpTokenInfos[i].lpAccPerShare = lpInfo.lpAccPerShare.add(
                lpReward.mul(LpRewardFixDec).div(lpSupply)
            );
        }

        if (totalLpSupply == 0) {
            pool.lastRewardBlock = block.number;
            return;
        }

        xdex.mint(address(this), poolReward);
        pool.lastRewardBlock = block.number;
    }

    // View function to see pending XDEX on frontend.
    function pendingXDEX(uint256 _pid, address _user)
        external
        view
        poolExists(_pid)
        returns (uint256)
    {
        PoolInfo memory pool = poolInfo[_pid];

        uint256 totalPending = 0;
        if (totalXFactor == 0 || pool.poolFactor == 0) {
            for (uint8 i = 0; i < pool.LpTokenInfos.length; i++) {
                UserInfo memory user =
                    poolInfo[_pid].LpTokenInfos[i].userInfo[_user];
                totalPending = totalPending.add(
                    user
                        .amount
                        .mul(pool.LpTokenInfos[i].lpAccPerShare)
                        .div(LpRewardFixDec)
                        .sub(user.rewardDebt)
                );
            }

            return totalPending;
        }

        (uint256 xdexReward, , ) =
            getXCountToReward(pool.lastRewardBlock, block.number);

        uint256 poolReward = xdexReward.mul(pool.poolFactor).div(totalXFactor);

        for (uint8 i = 0; i < pool.LpTokenInfos.length; i++) {
            LpTokenInfo memory lpInfo = pool.LpTokenInfos[i];
            uint256 lpSupply = lpInfo.lpToken.balanceOf(address(this));
            if (lpSupply == 0) {
                continue;
            }
            if (block.number > pool.lastRewardBlock) {
                uint256 lpReward =
                    poolReward.mul(lpInfo.lpFactor).div(pool.poolFactor);
                lpInfo.lpAccPerShare = lpInfo.lpAccPerShare.add(
                    lpReward.mul(LpRewardFixDec).div(lpSupply)
                );
            }
            UserInfo memory user =
                poolInfo[_pid].LpTokenInfos[i].userInfo[_user];
            totalPending = totalPending.add(
                user.amount.mul(lpInfo.lpAccPerShare).div(LpRewardFixDec).sub(
                    user.rewardDebt
                )
            );
        }

        return totalPending;
    }

    // Deposit LP tokens to FarmMaster for XDEX allocation.
    function deposit(
        uint256 _pid,
        IERC20 _lpToken,
        uint256 _amount
    ) external poolExists(_pid) {
        require(_amount > 0, "not valid amount");

        PoolInfo storage pool = poolInfo[_pid];
        uint256 index = _getLpIndexInPool(_pid, _lpToken);
        uint256 blockHeightDiff = block.number.sub(pool.lastRewardBlock);

        require(index < poolInfo[_pid].LpTokenInfos.length, "not valid index");

        updatePool(_pid);

        UserInfo storage user =
            poolInfo[_pid].LpTokenInfos[index].userInfo[msg.sender];

        if (user.amount > 0) {
            uint256 pending =
                user
                    .amount
                    .mul(pool.LpTokenInfos[index].lpAccPerShare)
                    .div(LpRewardFixDec)
                    .sub(user.rewardDebt);

            if (pending > 0) {
                //create the stream or add funds to stream
                (bool hasVotingStream, bool hasNormalStream) =
                    stream.hasStream(msg.sender);

                if (_pid == votingPoolId) {
                    if (hasVotingStream) {
                        //add funds
                        uint256 streamId =
                            stream.getStreamId(msg.sender, StreamTypeVoting);
                        require(streamId > 0, "not valid stream id");

                        xdex.approve(address(stream), pending);
                        stream.fundsToStream(
                            streamId,
                            pending,
                            blockHeightDiff
                        );
                    }
                } else {
                    if (hasNormalStream) {
                        //add funds
                        uint256 streamId =
                            stream.getStreamId(msg.sender, StreamTypeNormal);
                        require(streamId > 0, "not valid stream id");

                        xdex.approve(address(stream), pending);
                        stream.fundsToStream(
                            streamId,
                            pending,
                            blockHeightDiff
                        );
                    }
                }
            }
        } else {
            uint256 streamStart = block.number + 1;
            if (block.number < startBlock) {
                streamStart = startBlock;
            }

            //if it is the first deposit
            (bool hasVotingStream, bool hasNormalStream) =
                stream.hasStream(msg.sender);

            //create the stream for First Deposit Bonus
            if (_pid == votingPoolId) {
                if (!hasVotingStream) {
                    xdex.mint(address(this), bonusFirstDeposit);
                    xdex.approve(address(stream), bonusFirstDeposit);
                    stream.createStream(
                        msg.sender,
                        bonusFirstDeposit,
                        StreamTypeVoting,
                        streamStart
                    );
                }
            } else {
                if (!hasNormalStream) {
                    xdex.mint(address(this), bonusFirstDeposit);
                    xdex.approve(address(stream), bonusFirstDeposit);
                    stream.createStream(
                        msg.sender,
                        bonusFirstDeposit,
                        StreamTypeNormal,
                        streamStart
                    );
                }
            }
        }

        pool.LpTokenInfos[index].lpToken.safeTransferFrom(
            address(msg.sender),
            address(this),
            _amount
        );
        user.amount = user.amount.add(_amount);

        user.rewardDebt = user
            .amount
            .mul(pool.LpTokenInfos[index].lpAccPerShare)
            .div(LpRewardFixDec);

        emit Deposit(msg.sender, _pid, address(_lpToken), _amount);
    }

    function withdraw(
        uint256 _pid,
        IERC20 _lpToken,
        uint256 _amount
    ) public poolExists(_pid) {
        PoolInfo storage pool = poolInfo[_pid];
        uint256 index = _getLpIndexInPool(_pid, _lpToken);
        require(index < poolInfo[_pid].LpTokenInfos.length, "not valid index");
        uint256 blockHeightDiff = block.number.sub(pool.lastRewardBlock);

        updatePool(_pid);

        UserInfo storage user =
            poolInfo[_pid].LpTokenInfos[index].userInfo[msg.sender];
        require(user.amount >= _amount, "withdraw: _amount not good");

        uint256 pending =
            user
                .amount
                .mul(pool.LpTokenInfos[index].lpAccPerShare)
                .div(LpRewardFixDec)
                .sub(user.rewardDebt);

        if (pending > 0) {
            //create the stream or add funds to stream
            (bool hasVotingStream, bool hasNormalStream) =
                stream.hasStream(msg.sender);

            /* Approve the Stream contract to spend. */
            xdex.approve(address(stream), pending);

            if (_pid == votingPoolId) {
                if (hasVotingStream) {
                    //add fund
                    uint256 streamId =
                        stream.getStreamId(msg.sender, StreamTypeVoting);
                    require(streamId > 0, "not valid stream id");

                    xdex.approve(address(stream), pending);
                    stream.fundsToStream(streamId, pending, blockHeightDiff);
                }
            } else {
                if (hasNormalStream) {
                    //add fund
                    uint256 streamId =
                        stream.getStreamId(msg.sender, StreamTypeNormal);
                    require(streamId > 0, "not valid stream id");

                    xdex.approve(address(stream), pending);
                    stream.fundsToStream(streamId, pending, blockHeightDiff);
                }
            }
        }
        if (_amount > 0) {
            user.amount = user.amount.sub(_amount);
            pool.LpTokenInfos[index].lpToken.safeTransfer(
                address(msg.sender),
                _amount
            );
        }
        user.rewardDebt = user
            .amount
            .mul(pool.LpTokenInfos[index].lpAccPerShare)
            .div(LpRewardFixDec);

        emit Withdraw(msg.sender, _pid, address(_lpToken), _amount);
    }

    // Withdraw without caring about rewards. EMERGENCY ONLY.
    function emergencyWithdraw(uint256 _pid)
        external
        nonReentrant
        poolExists(_pid)
    {
        PoolInfo storage pool = poolInfo[_pid];

        for (uint8 i = 0; i < pool.LpTokenInfos.length; i++) {
            LpTokenInfo storage lpInfo = pool.LpTokenInfos[i];
            UserInfo storage user = lpInfo.userInfo[msg.sender];

            if (user.amount > 0) {
                lpInfo.lpToken.safeTransfer(address(msg.sender), user.amount);

                emit EmergencyWithdraw(
                    msg.sender,
                    _pid,
                    address(lpInfo.lpToken),
                    user.amount
                );
                user.amount = 0;
                user.rewardDebt = 0;
            }
        }
    }

    // Batch collect function in pool on frontend
    function batchCollectReward(uint256 _pid) external poolExists(_pid) {
        PoolInfo storage pool = poolInfo[_pid];
        uint256 length = pool.LpTokenInfos.length;

        for (uint8 i = 0; i < length; i++) {
            IERC20 lpToken = pool.LpTokenInfos[i].lpToken;
            UserInfo storage user = pool.LpTokenInfos[i].userInfo[msg.sender];
            if (user.amount > 0) {
                //collect
                withdraw(_pid, lpToken, 0);
            }
        }
    }

    // View function to see user lpToken amount in pool on frontend.
    function getUserLpAmounts(uint256 _pid, address _user)
        external
        view
        poolExists(_pid)
        returns (address[] memory lpTokens, uint256[] memory amounts)
    {
        PoolInfo memory pool = poolInfo[_pid];
        uint256 length = pool.LpTokenInfos.length;
        lpTokens = new address[](length);
        amounts = new uint256[](length);
        for (uint256 i = 0; i < length; i++) {
            lpTokens[i] = address(pool.LpTokenInfos[i].lpToken);
            UserInfo memory user =
                poolInfo[_pid].LpTokenInfos[i].userInfo[_user];
            amounts[i] = user.amount;
        }
    }

    function getXCountToReward(uint256 _from, uint256 _to)
        public
        view
        returns (
            uint256 _totalReward,
            uint256 _stageFrom,
            uint256 _stageTo
        )
    {
        require(_from <= _to, "_from must <= _to");

        uint256 stageFrom = 0;
        uint256 stageTo = 0;

        if (_to < startBlock) {
            return (0, stageFrom, stageTo);
        }

        if (
            _from >= startBlock.add(bonusEndBlocks[bonusEndBlocks.length - 1])
        ) {
            return (
                _to.sub(_from).mul(tokensPerBlock[tokensPerBlock.length - 1]),
                bonusEndBlocks.length + 1,
                bonusEndBlocks.length + 1
            );
        }

        uint256 total = 0;

        for (uint256 i = 0; i < bonusEndBlocks.length; i++) {
            uint256 actualEndBlock = startBlock.add(bonusEndBlocks[i]);
            if (_from > actualEndBlock) {
                stageFrom = stageFrom.add(1);
            }
            if (_to > actualEndBlock) {
                stageTo = stageTo.add(1);
            }
        }

        uint256 tStageFrom = stageFrom;
        while (_from < _to) {
            if (_from < startBlock) {
                _from = startBlock;
            }
            uint256 indexDiff = stageTo.sub(tStageFrom);
            if (indexDiff == 0) {
                total += (_to - _from) * tokensPerBlock[tStageFrom];
                _from = _to;
                break;
            } else if (indexDiff > 0) {
                uint256 actualRes = startBlock.add(bonusEndBlocks[tStageFrom]);
                total += (actualRes - _from) * tokensPerBlock[tStageFrom];
                _from = actualRes;
                tStageFrom = tStageFrom.add(1);
            } else {
                //this never happen
                break;
            }
        }

        return (total, stageFrom, stageTo);
    }

    function getCurRewardPerBlock() external view returns (uint256) {
        uint256 bnum = block.number;
        if (bnum < startBlock) {
            return 0;
        }
        if (bnum >= startBlock.add(bonusEndBlocks[bonusEndBlocks.length - 1])) {
            return tokensPerBlock[tokensPerBlock.length - 1];
        }
        uint256 stage = 0;
        for (uint256 i = 0; i < bonusEndBlocks.length; i++) {
            uint256 actualEndBlock = startBlock.add(bonusEndBlocks[i]);
            if (bnum >= actualEndBlock) {
                stage = stage.add(1);
            }
        }

        require(
            stage >= 0 && stage < tokensPerBlock.length,
            "tokensPerBlock length not good"
        );
        return tokensPerBlock[stage];
    }

    // Any airdrop tokens (in whitelist) sent to this contract, should transfer to safu
    function claimRewards(address token, uint256 amount) external onlyCore {
        require(claimableTokens[token], "not claimable token");

        IERC20(token).safeTransfer(safu, amount);
        emit Claim(core, token, amount);
    }

    function updateClaimableTokens(address token, bool claimable)
        external
        onlyCore
    {
        claimableTokens[token] = claimable;
    }

    // The index in storage starts with 1, then need sub(1)
    function _getLpIndexInPool(uint256 _pid, IERC20 _lpToken)
        internal
        view
        returns (uint256)
    {
        uint256 index =
            lpIndexInPool[keccak256(abi.encodePacked(_pid, _lpToken))];
        require(index > 0, "deposit the lp token which not exist");
        return --index;
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"contract XDEX","name":"_xdex","type":"address"},{"internalType":"uint256","name":"_startBlock","type":"uint256"},{"internalType":"address","name":"_safu","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":true,"internalType":"address","name":"lpToken","type":"address"},{"indexed":true,"internalType":"uint256","name":"lpType","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"lpFactor","type":"uint256"}],"name":"AddLP","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":true,"internalType":"address","name":"lpToken","type":"address"},{"indexed":true,"internalType":"uint256","name":"lpType","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"lpFactor","type":"uint256"}],"name":"AddPool","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":true,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Claim","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":true,"internalType":"address","name":"lpToken","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":true,"internalType":"address","name":"lpToken","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"EmergencyWithdraw","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_core","type":"address"},{"indexed":true,"internalType":"address","name":"_coreNew","type":"address"}],"name":"SetCore","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"safu","type":"address"},{"indexed":true,"internalType":"address","name":"_safu","type":"address"}],"name":"SetSafu","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_stream","type":"address"},{"indexed":true,"internalType":"address","name":"_streamNew","type":"address"}],"name":"SetStream","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"SetVotingPool","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":true,"internalType":"address","name":"lpToken","type":"address"},{"indexed":false,"internalType":"uint256","name":"lpFactor","type":"uint256"}],"name":"UpdateFactor","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":true,"internalType":"address","name":"lpToken","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdraw","type":"event"},{"constant":false,"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"contract IERC20","name":"_lpToken","type":"address"},{"internalType":"uint256","name":"_lpTokenType","type":"uint256"},{"internalType":"uint256","name":"_lpFactor","type":"uint256"}],"name":"addLpTokenToPool","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"contract IERC20","name":"_lpToken","type":"address"},{"internalType":"uint256","name":"_lpTokenType","type":"uint256"},{"internalType":"uint256","name":"_lpFactor","type":"uint256"},{"internalType":"bool","name":"_withUpdate","type":"bool"}],"name":"addPool","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"batchCollectReward","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"bonusEndBlocks","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"bonusFirstDeposit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"claimRewards","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"claimableTokens","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"core","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"contract IERC20","name":"_lpToken","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"deposit","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"emergencyWithdraw","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"getCurRewardPerBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"getLpTokenInfosByPoolId","outputs":[{"internalType":"address[]","name":"lpTokens","type":"address[]"},{"internalType":"uint256[]","name":"lpTokenTypes","type":"uint256[]"},{"internalType":"uint256[]","name":"lpFactors","type":"uint256[]"},{"internalType":"uint256[]","name":"lpAccPerShares","type":"uint256[]"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"address","name":"_user","type":"address"}],"name":"getUserLpAmounts","outputs":[{"internalType":"address[]","name":"lpTokens","type":"address[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"_from","type":"uint256"},{"internalType":"uint256","name":"_to","type":"uint256"}],"name":"getXCountToReward","outputs":[{"internalType":"uint256","name":"_totalReward","type":"uint256"},{"internalType":"uint256","name":"_stageFrom","type":"uint256"},{"internalType":"uint256","name":"_stageTo","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"massUpdatePools","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"address","name":"_user","type":"address"}],"name":"pendingXDEX","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"poolInfo","outputs":[{"internalType":"uint256","name":"poolFactor","type":"uint256"},{"internalType":"uint256","name":"lastRewardBlock","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"poolLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"safu","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_core","type":"address"}],"name":"setCore","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"contract IERC20","name":"_lpToken","type":"address"},{"internalType":"uint256","name":"_lpFactor","type":"uint256"},{"internalType":"bool","name":"_withUpdate","type":"bool"}],"name":"setLpFactor","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_safu","type":"address"}],"name":"setSafu","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_stream","type":"address"}],"name":"setStream","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"setVotingPool","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"startBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"stream","outputs":[{"internalType":"contract XdexStream","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokensPerBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"totalXFactor","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"bool","name":"claimable","type":"bool"}],"name":"updateClaimableTokens","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"updatePool","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"votingPoolId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"contract IERC20","name":"_lpToken","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdraw","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"xdex","outputs":[{"internalType":"contract XDEX","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"}]

61010060405261ea6060809081526202bf2060a052620668a060c052620dbba060e052620000329060029060046200017e565b506040805160a0810182526808ac7230489e80000081526804563918244f400000602082015268022b1c8c1227a00000918101919091526801158e460913d000006060820152676f05b59d3b200000608082015262000096906006906005620001c8565b506000601355348015620000a957600080fd5b506040516200447e3803806200447e83398181016040526060811015620000cf57600080fd5b50805160208201516040909201516000805460ff191660011790559091906001600160a01b0381166200013c576040805162461bcd60e51b815260206004820152601060248201526f4552525f5a45524f5f4144445245535360801b604482015290519081900360640190fd5b600c80546001600160a01b039485166001600160a01b031991821617909155601192909255600b8054831633179055600d805491909316911617905562000219565b8260048101928215620001b6579160200282015b82811115620001b6578251829062ffffff1690559160200191906001019062000192565b50620001c4929150620001f9565b5090565b8260058101928215620001b6579160200282015b82811115620001b6578251825591602001919060010190620001dc565b6200021691905b80821115620001c4576000815560010162000200565b90565b61425580620002296000396000f3fe608060405234801561001057600080fd5b50600436106101fb5760003560e01c806367b26af71161011a5780638ea20a0e116100ad578063dd95d1021161007c578063dd95d1021461072e578063e025494c14610766578063e63697c81461078c578063f2f4eb26146107be578063f861accb146107c6576101fb565b80638ea20a0e146106725780639a99b4f01461068f578063b3b5df18146106bb578063bc157ac1146106fc576101fb565b806377df99a1116100e957806377df99a1146106025780637a189d551461060a578063800096301461061257806384d2422614610638576101fb565b806367b26af71461048e5780636f2a6791146104b25780636fd22545146104ba57806372e4c6de146105fa576101fb565b8063427b5b4d116101925780635312ea8e116101615780635312ea8e1461042057806362f16e461461043d578063630b5ba11461045a57806365c3a3fc14610462576101fb565b8063427b5b4d146103a457806348cd4cb1146103c15780634ac22193146103c957806351eb05a614610403576101fb565b80631526fe27116101ce5780631526fe2714610323578063213607ab146103595780632f6d4562146103615780633101f6fa1461037e576101fb565b8063081e3eda1461020057806309d1d0b61461021a57806311f7d48b146102565780631203e5731461031b575b600080fd5b6102086107f4565b60408051918252519081900360200190f35b6102546004803603608081101561023057600080fd5b508035906001600160a01b03602082013516906040810135906060013515156107fb565b005b6102826004803603604081101561026c57600080fd5b50803590602001356001600160a01b03166109eb565b604051808060200180602001838103835285818151815260200191508051906020019060200280838360005b838110156102c65781810151838201526020016102ae565b50505050905001838103825284818151815260200191508051906020019060200280838360005b838110156103055781810151838201526020016102ed565b5050505090500194505050505060405180910390f35b610208610c72565b6103406004803603602081101561033957600080fd5b5035610c7e565b6040805192835260208301919091528051918290030190f35b610208610caf565b6102546004803603602081101561037757600080fd5b5035610cb5565b6102546004803603602081101561039457600080fd5b50356001600160a01b0316610db6565b610208600480360360208110156103ba57600080fd5b5035610eb0565b610208610ec4565b610254600480360360808110156103df57600080fd5b506001600160a01b0381351690602081013590604081013590606001351515610eca565b6102546004803603602081101561041957600080fd5b503561110d565b6102546004803603602081101561043657600080fd5b5035611420565b6102086004803603602081101561045357600080fd5b50356115c4565b6102546115d1565b6102086004803603604081101561047857600080fd5b50803590602001356001600160a01b0316611620565b610496611a6e565b604080516001600160a01b039092168252519081900360200190f35b610496611a7d565b6104d7600480360360208110156104d057600080fd5b5035611a8c565b6040518080602001806020018060200180602001858103855289818151815260200191508051906020019060200280838360005b8381101561052357818101518382015260200161050b565b50505050905001858103845288818151815260200191508051906020019060200280838360005b8381101561056257818101518382015260200161054a565b50505050905001858103835287818151815260200191508051906020019060200280838360005b838110156105a1578181015183820152602001610589565b50505050905001858103825286818151815260200191508051906020019060200280838360005b838110156105e05781810151838201526020016105c8565b505050509050019850505050505050505060405180910390f35b610208611d73565b610208611d79565b610496611e6c565b6102546004803603602081101561062857600080fd5b50356001600160a01b0316611e7b565b61065e6004803603602081101561064e57600080fd5b50356001600160a01b0316611f75565b604080519115158252519081900360200190f35b6102546004803603602081101561068857600080fd5b5035611f8a565b610254600480360360408110156106a557600080fd5b506001600160a01b03813516906020013561200d565b6106de600480360360408110156106d157600080fd5b5080359060200135612121565b60408051938452602084019290925282820152519081900360600190f35b6102546004803603606081101561071257600080fd5b508035906001600160a01b0360208201351690604001356122eb565b6102546004803603608081101561074457600080fd5b508035906001600160a01b036020820135169060408101359060600135612dea565b6102546004803603602081101561077c57600080fd5b50356001600160a01b031661320f565b610254600480360360608110156107a257600080fd5b508035906001600160a01b036020820135169060400135613309565b610496613a88565b610254600480360360408110156107dc57600080fd5b506001600160a01b0381351690602001351515613a97565b6012545b90565b600b546001600160a01b0316331461084b576040805162461bcd60e51b815260206004820152600e60248201526d139bdd08185d5d1a1bdc9a5e995960921b604482015290519081900360640190fd5b60125484908110610894576040805162461bcd60e51b815260206004820152600e60248201526d1c1bdbdb081b9bdd08195e1a5cdd60921b604482015290519081900360640190fd5b81156108a2576108a26115d1565b6000601286815481106108b157fe5b9060005260206000209060030201905060006108cd8787613b12565b905060006109188661090c8560000185815481106108e757fe5b9060005260206000209060050201600201548660010154613ba290919063ffffffff16565b9063ffffffff613beb16565b90508583600001838154811061092a57fe5b9060005260206000209060050201600201819055506109768161090c60128b8154811061095357fe5b906000526020600020906003020160010154601354613ba290919063ffffffff16565b601381905550806012898154811061098a57fe5b906000526020600020906003020160010181905550866001600160a01b0316887f47738efd5c92e1c587f3f63db3f6319151242d1f3a6fdb08848c20a0ceac8a2f886040518082815260200191505060405180910390a35050505050505050565b606080836012805490508110610a39576040805162461bcd60e51b815260206004820152600e60248201526d1c1bdbdb081b9bdd08195e1a5cdd60921b604482015290519081900360640190fd5b610a41614087565b60128681548110610a4e57fe5b906000526020600020906003020160405180606001604052908160008201805480602002602001604051908101604052809291908181526020016000905b82821015610ae9576000848152602090819020604080516080810182526005860290920180546001600160a01b03168352600180820154848601526002820154928401929092526003015460608301529083529092019101610a8c565b5050505081526020016001820154815260200160028201548152505090506000816000015151905080604051908082528060200260200182016040528015610b3b578160200160208202803883390190505b50945080604051908082528060200260200182016040528015610b68578160200160208202803883390190505b50935060005b81811015610c67578251805182908110610b8457fe5b602002602001015160000151868281518110610b9c57fe5b60200260200101906001600160a01b031690816001600160a01b031681525050610bc46140a8565b60128981548110610bd157fe5b90600052602060002090600302016000018281548110610bed57fe5b90600052602060002090600502016004016000896001600160a01b03166001600160a01b031681526020019081526020016000206040518060400160405290816000820154815260200160018201548152505090508060000151868381518110610c5357fe5b602090810291909101015250600101610b6e565b505050509250929050565b678ac7230489e8000081565b60128181548110610c8b57fe5b90600052602060002090600302016000915090508060010154908060020154905082565b60105481565b60125481908110610cfe576040805162461bcd60e51b815260206004820152600e60248201526d1c1bdbdb081b9bdd08195e1a5cdd60921b604482015290519081900360640190fd5b600060128381548110610d0d57fe5b6000918252602082206003909102018054909250905b818160ff161015610daf576000836000018260ff1681548110610d4257fe5b6000918252602082206005909102015485546001600160a01b039091169250859060ff8516908110610d7057fe5b60009182526020808320338452600460059093020191909101905260409020805490915015610da557610da587836000613309565b5050600101610d23565b5050505050565b600b546001600160a01b03163314610e06576040805162461bcd60e51b815260206004820152600e60248201526d139bdd08185d5d1a1bdc9a5e995960921b604482015290519081900360640190fd5b6001600160a01b038116610e54576040805162461bcd60e51b815260206004820152601060248201526f4552525f5a45524f5f4144445245535360801b604482015290519081900360640190fd5b600d546040516001600160a01b038084169216907f2d7009b4ad6ed529569dce7873cae9732d181f4f9f789baea3b239c970d9308290600090a3600d80546001600160a01b0319166001600160a01b0392909216919091179055565b60028160048110610ebd57fe5b0154905081565b60115481565b600b546001600160a01b03163314610f1a576040805162461bcd60e51b815260206004820152600e60248201526d139bdd08185d5d1a1bdc9a5e995960921b604482015290519081900360640190fd5b60008211610f69576040805162461bcd60e51b81526020600482015260176024820152764c7020546f6b656e20466163746f72206973207a65726f60481b604482015290519081900360640190fd5b8015610f7757610f776115d1565b60006011544311610f8a57601154610f8c565b435b601354909150610fa2908463ffffffff613beb16565b60135560128054600091610fb990600183016140c2565b90508360128281548110610fc957fe5b9060005260206000209060030201600101819055508160128281548110610fec57fe5b9060005260206000209060030201600201819055506012818154811061100e57fe5b60009182526020808320604080516080810182526001600160a01b038c81168083528286018d81528385018d815260608086018b815260039a8b02909801805460018082018355918d528a8d209751600590910290970180546001600160a01b03191697909616969096178555915184860155516002840155945191909601558151808501889052928c901b6001600160601b0319168383015281518084036034018152605484018084528151918601919091208752938190529481902094909455908790529151879284917fa69d86e67bfa14ad558a2599f0df3af0dff00c36be738f9118440420f1c27067916074908290030190a4505050505050565b60125481908110611156576040805162461bcd60e51b815260206004820152600e60248201526d1c1bdbdb081b9bdd08195e1a5cdd60921b604482015290519081900360640190fd5b6012828154811061116357fe5b90600052602060002090600302016002015443116111805761141c565b6012828154811061118d57fe5b906000526020600020906003020160010154600014806111ad5750601354155b156111b75761141c565b6000601283815481106111c657fe5b9060005260206000209060030201905060006111e6826002015443612121565b50509050611213601354611207846001015484613c4590919063ffffffff16565b9063ffffffff613c9e16565b90506000805b835460ff821610156113905761122d6140ee565b846000018260ff168154811061123f57fe5b6000918252602080832060408051608081018252600590940290910180546001600160a01b0316808552600182015485850152600282015485840152600390910154606085015281516370a0823160e01b81523060048201529151939550926370a0823192602480840193919291829003018186803b1580156112c157600080fd5b505afa1580156112d5573d6000803e3d6000fd5b505050506040513d60208110156112eb57600080fd5b50519050806112fb575050611388565b61130b848263ffffffff613beb16565b9350600061132e8760010154611207856040015189613c4590919063ffffffff16565b905061135d61134c836112078464e8d4a5100063ffffffff613c4516565b60608501519063ffffffff613beb16565b876000018560ff168154811061136f57fe5b9060005260206000209060050201600301819055505050505b600101611219565b50806113a45750504360029091015561141c565b600c54604080516340c10f1960e01b81523060048201526024810185905290516001600160a01b03909216916340c10f199160448082019260009290919082900301818387803b1580156113f757600080fd5b505af115801561140b573d6000803e3d6000fd5b505050504383600201819055505050505b5050565b60005460ff16611477576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b6000805460ff19169055601254819081106114ca576040805162461bcd60e51b815260206004820152600e60248201526d1c1bdbdb081b9bdd08195e1a5cdd60921b604482015290519081900360640190fd5b6000601283815481106114d957fe5b60009182526020822060039091020191505b815460ff821610156115b1576000826000018260ff168154811061150b57fe5b60009182526020808320338452600460059093020191820190526040909120805491925090156115a75780548254611556916001600160a01b0390911690339063ffffffff613ce016565b8154815460408051918252516001600160a01b0390921691889133917fbbae553982d541d38dacb1ea468ac757f324d0e279b6e4a2958f9e894da575ff9181900360200190a4600080825560018201555b50506001016114eb565b50506000805460ff191660011790555050565b60068160058110610ebd57fe5b60125460005b818160ff16101561141c57600060128260ff16815481106115f457fe5b9060005260206000209060030201600101541115611618576116188160ff1661110d565b6001016115d7565b6012546000908390811061166c576040805162461bcd60e51b815260206004820152600e60248201526d1c1bdbdb081b9bdd08195e1a5cdd60921b604482015290519081900360640190fd5b611674614087565b6012858154811061168157fe5b906000526020600020906003020160405180606001604052908160008201805480602002602001604051908101604052809291908181526020016000905b8282101561171c576000848152602090819020604080516080810182526005860290920180546001600160a01b031683526001808201548486015260028201549284019290925260030154606083015290835290920191016116bf565b5050509082525060018201546020820152600290910154604090910152601354909150600090158061175057506020820151155b156118525760005b82515160ff821610156118485761176d6140a8565b6012888154811061177a57fe5b90600052602060002090600302016000018260ff168154811061179957fe5b600091825260208083206001600160a01b038b1684526004600590930201919091018152604091829020825180840190935280548352600101549082018190528551805192935061183d9261183092916118249164e8d4a51000916112079160ff8a1690811061180557fe5b6020026020010151606001518760000151613c4590919063ffffffff16565b9063ffffffff613ba216565b849063ffffffff613beb16565b925050600101611758565b509250611a679050565b6000611862836040015143612121565b505090506000611885601354611207866020015185613c4590919063ffffffff16565b905060005b84515160ff82161015611a5f5761189f6140ee565b8551805160ff84169081106118b057fe5b60200260200101519050600081600001516001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060206040518083038186803b15801561191657600080fd5b505afa15801561192a573d6000803e3d6000fd5b505050506040513d602081101561194057600080fd5b5051905080611950575050611a57565b86604001514311156119a257600061197d8860200151611207856040015188613c4590919063ffffffff16565b905061199b61134c836112078464e8d4a5100063ffffffff613c4516565b6060840152505b6119aa6140a8565b60128c815481106119b757fe5b90600052602060002090600302016000018460ff16815481106119d657fe5b600091825260208083206001600160a01b038f1684526004600590930201919091018152604091829020825180840190935280548084526001909101549183018290526060860151929350611a5192611a4492916118249164e8d4a51000916112079163ffffffff613c4516565b889063ffffffff613beb16565b96505050505b60010161188a565b509194505050505b5092915050565b600d546001600160a01b031681565b600f546001600160a01b031681565b606080606080846012805490508110611add576040805162461bcd60e51b815260206004820152600e60248201526d1c1bdbdb081b9bdd08195e1a5cdd60921b604482015290519081900360640190fd5b611ae5614087565b60128781548110611af257fe5b906000526020600020906003020160405180606001604052908160008201805480602002602001604051908101604052809291908181526020016000905b82821015611b8d576000848152602090819020604080516080810182526005860290920180546001600160a01b03168352600180820154848601526002820154928401929092526003015460608301529083529092019101611b30565b5050505081526020016001820154815260200160028201548152505090506000816000015151905080604051908082528060200260200182016040528015611bdf578160200160208202803883390190505b50965080604051908082528060200260200182016040528015611c0c578160200160208202803883390190505b50955080604051908082528060200260200182016040528015611c39578160200160208202803883390190505b50945080604051908082528060200260200182016040528015611c66578160200160208202803883390190505b50935060005b818160ff161015611d68578251805160ff8316908110611c8857fe5b602002602001015160000151888260ff1681518110611ca357fe5b6001600160a01b03909216602092830291909101909101528251805160ff8316908110611ccc57fe5b602002602001015160200151878260ff1681518110611ce757fe5b60209081029190910101528251805160ff8316908110611d0357fe5b602002602001015160400151868260ff1681518110611d1e57fe5b60209081029190910101528251805160ff8316908110611d3a57fe5b602002602001015160600151858260ff1681518110611d5557fe5b6020908102919091010152600101611c6c565b505050509193509193565b60135481565b6011546000904390811015611d925760009150506107f8565b611dab600260035b01546011549063ffffffff613beb16565b8110611dbb575050600a546107f8565b6000805b6004811015611e00576000611dda60028360048110611d9a57fe5b9050808410611df757611df483600163ffffffff613beb16565b92505b50600101611dbf565b5060058110611e56576040805162461bcd60e51b815260206004820152601e60248201527f746f6b656e73506572426c6f636b206c656e677468206e6f7420676f6f640000604482015290519081900360640190fd5b60068160058110611e6357fe5b01549250505090565b600c546001600160a01b031681565b600b546001600160a01b03163314611ecb576040805162461bcd60e51b815260206004820152600e60248201526d139bdd08185d5d1a1bdc9a5e995960921b604482015290519081900360640190fd5b6001600160a01b038116611f19576040805162461bcd60e51b815260206004820152601060248201526f4552525f5a45524f5f4144445245535360801b604482015290519081900360640190fd5b600b546040516001600160a01b038084169216907fc97c5f89233cbccedeecfbb88975bf75455bc0bb74e114c14701bd16912e48e290600090a3600b80546001600160a01b0319166001600160a01b0392909216919091179055565b600e6020526000908152604090205460ff1681565b600b546001600160a01b03163314611fda576040805162461bcd60e51b815260206004820152600e60248201526d139bdd08185d5d1a1bdc9a5e995960921b604482015290519081900360640190fd5b601081905560405181907f4f7480023dfce499bfa4ceb392e5346b936d1b117dec121fe6e8652c1c6e8a9490600090a250565b600b546001600160a01b0316331461205d576040805162461bcd60e51b815260206004820152600e60248201526d139bdd08185d5d1a1bdc9a5e995960921b604482015290519081900360640190fd5b6001600160a01b0382166000908152600e602052604090205460ff166120c0576040805162461bcd60e51b81526020600482015260136024820152723737ba1031b630b4b6b0b13632903a37b5b2b760691b604482015290519081900360640190fd5b600d546120e0906001600160a01b0384811691168363ffffffff613ce016565b600b5460405182916001600160a01b03808616929116907f70eb43c4a8ae8c40502dcf22436c509c28d6ff421cf07c491be56984bd98706890600090a45050565b60008060008385111561216f576040805162461bcd60e51b81526020600482015260116024820152705f66726f6d206d757374203c3d205f746f60781b604482015290519081900360640190fd5b601154600090819086101561218c576000945090925090506122e4565b61219860026003611d9a565b87106121cc57600a546121bb906121af888a613ba2565b9063ffffffff613c4516565b9450600593508392506122e4915050565b6000805b600481101561222e5760006121eb60028360048110611d9a57fe5b9050808a11156122095761220685600163ffffffff613beb16565b94505b808911156122255761222284600163ffffffff613beb16565b93505b506001016121d0565b50825b878910156122db576011548910156122495760115498505b600061225b848363ffffffff613ba216565b905080612282576006826005811061226f57fe5b01548a8a030283019250889950506122db565b80156122cf57600061229a60028460048110611d9a57fe5b9050600683600581106122a957fe5b0154909a8b03029290920191896122c783600163ffffffff613beb16565b9250506122d5565b506122db565b50612231565b50945090925090505b9250925092565b60125483908110612334576040805162461bcd60e51b815260206004820152600e60248201526d1c1bdbdb081b9bdd08195e1a5cdd60921b604482015290519081900360640190fd5b6000821161237c576040805162461bcd60e51b815260206004820152601060248201526f1b9bdd081d985b1a5908185b5bdd5b9d60821b604482015290519081900360640190fd5b60006012858154811061238b57fe5b9060005260206000209060030201905060006123a78686613b12565b905060006123c2836002015443613ba290919063ffffffff16565b9050601287815481106123d157fe5b60009182526020909120600390910201548210612427576040805162461bcd60e51b815260206004820152600f60248201526e0dcdee840ecc2d8d2c840d2dcc8caf608b1b604482015290519081900360640190fd5b6124308761110d565b60006012888154811061243f57fe5b9060005260206000209060030201600001838154811061245b57fe5b600091825260208083203384526004600590930201919091019052604090208054909150156129265760006124cb826001015461182464e8d4a510006112078960000189815481106124a957fe5b600091825260209091206003600590920201015487549063ffffffff613c4516565b9050801561292057600f5460408051631677695f60e21b8152336004820152815160009384936001600160a01b03909116926359dda57c9260248083019392829003018186803b15801561251e57600080fd5b505afa158015612532573d6000803e3d6000fd5b505050506040513d604081101561254857600080fd5b50805160209091015160105491935091508b141561274257811561273d57600f546040805162f8e2c160e01b8152336004820152600060248201819052915191926001600160a01b03169162f8e2c191604480820192602092909190829003018186803b1580156125b857600080fd5b505afa1580156125cc573d6000803e3d6000fd5b505050506040513d60208110156125e257600080fd5b505190508061262e576040805162461bcd60e51b81526020600482015260136024820152721b9bdd081d985b1a59081cdd1c99585b481a59606a1b604482015290519081900360640190fd5b600c54600f546040805163095ea7b360e01b81526001600160a01b039283166004820152602481018890529051919092169163095ea7b39160448083019260209291908290030181600087803b15801561268757600080fd5b505af115801561269b573d6000803e3d6000fd5b505050506040513d60208110156126b157600080fd5b5050600f5460408051630147c92360e11b815260048101849052602481018790526044810189905290516001600160a01b039092169163028f9246916064808201926020929091908290030181600087803b15801561270f57600080fd5b505af1158015612723573d6000803e3d6000fd5b505050506040513d602081101561273957600080fd5b5050505b61291d565b801561291d57600f546040805162f8e2c160e01b81523360048201526001602482015290516000926001600160a01b03169162f8e2c1916044808301926020929190829003018186803b15801561279857600080fd5b505afa1580156127ac573d6000803e3d6000fd5b505050506040513d60208110156127c257600080fd5b505190508061280e576040805162461bcd60e51b81526020600482015260136024820152721b9bdd081d985b1a59081cdd1c99585b481a59606a1b604482015290519081900360640190fd5b600c54600f546040805163095ea7b360e01b81526001600160a01b039283166004820152602481018890529051919092169163095ea7b39160448083019260209291908290030181600087803b15801561286757600080fd5b505af115801561287b573d6000803e3d6000fd5b505050506040513d602081101561289157600080fd5b5050600f5460408051630147c92360e11b815260048101849052602481018790526044810189905290516001600160a01b039092169163028f9246916064808201926020929091908290030181600087803b1580156128ef57600080fd5b505af1158015612903573d6000803e3d6000fd5b505050506040513d602081101561291957600080fd5b5050505b50505b50612d08565b600043600101905060115443101561293d57506011545b600f5460408051631677695f60e21b8152336004820152815160009384936001600160a01b03909116926359dda57c9260248083019392829003018186803b15801561298857600080fd5b505afa15801561299c573d6000803e3d6000fd5b505050506040513d60408110156129b257600080fd5b50805160209091015160105491935091508b1415612b6b5781612b6657600c54604080516340c10f1960e01b8152306004820152678ac7230489e80000602482015290516001600160a01b03909216916340c10f199160448082019260009290919082900301818387803b158015612a2957600080fd5b505af1158015612a3d573d6000803e3d6000fd5b5050600c54600f546040805163095ea7b360e01b81526001600160a01b039283166004820152678ac7230489e800006024820152905191909216935063095ea7b3925060448083019260209291908290030181600087803b158015612aa157600080fd5b505af1158015612ab5573d6000803e3d6000fd5b505050506040513d6020811015612acb57600080fd5b5050600f54604080516309755ecd60e41b8152336004820152678ac7230489e8000060248201526000604482018190526064820187905291516001600160a01b0390931692639755ecd092608480840193602093929083900390910190829087803b158015612b3957600080fd5b505af1158015612b4d573d6000803e3d6000fd5b505050506040513d6020811015612b6357600080fd5b50505b612d04565b80612d0457600c54604080516340c10f1960e01b8152306004820152678ac7230489e80000602482015290516001600160a01b03909216916340c10f199160448082019260009290919082900301818387803b158015612bca57600080fd5b505af1158015612bde573d6000803e3d6000fd5b5050600c54600f546040805163095ea7b360e01b81526001600160a01b039283166004820152678ac7230489e800006024820152905191909216935063095ea7b3925060448083019260209291908290030181600087803b158015612c4257600080fd5b505af1158015612c56573d6000803e3d6000fd5b505050506040513d6020811015612c6c57600080fd5b5050600f54604080516309755ecd60e41b8152336004820152678ac7230489e800006024820152600160448201526064810186905290516001600160a01b0390921691639755ecd0916084808201926020929091908290030181600087803b158015612cd757600080fd5b505af1158015612ceb573d6000803e3d6000fd5b505050506040513d6020811015612d0157600080fd5b50505b5050505b612d45333088876000018781548110612d1d57fe5b60009182526020909120600590910201546001600160a01b031692919063ffffffff613d3716565b8054612d57908763ffffffff613beb16565b81558354612d989064e8d4a510009061120790879087908110612d7657fe5b600091825260209091206003600590920201015484549063ffffffff613c4516565b60018201556040805187815290516001600160a01b038916918a9133917fd2f8022f659fd9c8c558f30c00fd5ee7038f7cb56da45095c3e0e7d48b3e0c4b919081900360200190a45050505050505050565b600b546001600160a01b03163314612e3a576040805162461bcd60e51b815260206004820152600e60248201526d139bdd08185d5d1a1bdc9a5e995960921b604482015290519081900360640190fd5b60125484908110612e83576040805162461bcd60e51b815260206004820152600e60248201526d1c1bdbdb081b9bdd08195e1a5cdd60921b604482015290519081900360640190fd5b60008211612ed2576040805162461bcd60e51b81526020600482015260176024820152764c7020546f6b656e20466163746f72206973207a65726f60481b604482015290519081900360640190fd5b612eda6115d1565b612ee2614087565b60128681548110612eef57fe5b906000526020600020906003020160405180606001604052908160008201805480602002602001604051908101604052809291908181526020016000905b82821015612f8a576000848152602090819020604080516080810182526005860290920180546001600160a01b03168352600180820154848601526002820154928401929092526003015460608301529083529092019101612f2d565b5050509082525060018281015460208084019190915260029093015460409283015281518084018b90526001600160601b031960608b901b168184015282516034818303018152605490910183528051908401206000908152925290205490915015613036576040805162461bcd60e51b81526020600482015260166024820152751b1c081d1bdad95b88185b1c9958591e48185919195960521b604482015290519081900360640190fd5b8051516001811080159061304a5750600881105b61309b576040805162461bcd60e51b815260206004820152601a60248201527f706f6f6c206c70546f6b656e206c656e67746820697320626164000000000000604482015290519081900360640190fd5b6013546130ae908563ffffffff613beb16565b6013556130b96140ee565b50604080516080810182526001600160a01b0388168152602080820188905291810186905260006060820152908301516130f9908663ffffffff613beb16565b6012898154811061310657fe5b9060005260206000209060030201600101819055506012888154811061312857fe5b60009182526020808320600392830201805460018082018355918552828520865160059092020180546001600160a01b0319166001600160a01b0392831617815586840151818401556040808801516002830155606080890151929096019190915580518085018f9052948d901b6001600160601b0319168582015280518086036034018152605486018083528151918601919091208752938390529485902091870190915590889052915188928a16918b917e689a87888f57a65e571d56c0e511885ea2a482adee423ebcb92376e9b54f78916074908290030190a45050505050505050565b600b546001600160a01b0316331461325f576040805162461bcd60e51b815260206004820152600e60248201526d139bdd08185d5d1a1bdc9a5e995960921b604482015290519081900360640190fd5b6001600160a01b0381166132ad576040805162461bcd60e51b815260206004820152601060248201526f4552525f5a45524f5f4144445245535360801b604482015290519081900360640190fd5b600f546040516001600160a01b038084169216907ffdf2bfa7711f98bdb4fe8a049c67f495c253496715db92f800b7cd492dddc6a190600090a3600f80546001600160a01b0319166001600160a01b0392909216919091179055565b60125483908110613352576040805162461bcd60e51b815260206004820152600e60248201526d1c1bdbdb081b9bdd08195e1a5cdd60921b604482015290519081900360640190fd5b60006012858154811061336157fe5b90600052602060002090600302019050600061337d8686613b12565b90506012868154811061338c57fe5b600091825260209091206003909102015481106133e2576040805162461bcd60e51b815260206004820152600f60248201526e0dcdee840ecc2d8d2c840d2dcc8caf608b1b604482015290519081900360640190fd5b60006133fb836002015443613ba290919063ffffffff16565b90506134068761110d565b60006012888154811061341557fe5b9060005260206000209060030201600001838154811061343157fe5b6000918252602080832033845260046005909302019190910190526040902080549091508611156134a9576040805162461bcd60e51b815260206004820152601a60248201527f77697468647261773a205f616d6f756e74206e6f7420676f6f64000000000000604482015290519081900360640190fd5b60006134ce826001015461182464e8d4a510006112078960000189815481106124a957fe5b905080156139a157600f5460408051631677695f60e21b8152336004820152815160009384936001600160a01b03909116926359dda57c9260248083019392829003018186803b15801561352157600080fd5b505afa158015613535573d6000803e3d6000fd5b505050506040513d604081101561354b57600080fd5b508051602091820151600c54600f546040805163095ea7b360e01b81526001600160a01b039283166004820152602481018a90529051949750929550169263095ea7b3926044808401938290030181600087803b1580156135ab57600080fd5b505af11580156135bf573d6000803e3d6000fd5b505050506040513d60208110156135d557600080fd5b50506010548b14156137c35781156137be57600f546040805162f8e2c160e01b8152336004820152600060248201819052915191926001600160a01b03169162f8e2c191604480820192602092909190829003018186803b15801561363957600080fd5b505afa15801561364d573d6000803e3d6000fd5b505050506040513d602081101561366357600080fd5b50519050806136af576040805162461bcd60e51b81526020600482015260136024820152721b9bdd081d985b1a59081cdd1c99585b481a59606a1b604482015290519081900360640190fd5b600c54600f546040805163095ea7b360e01b81526001600160a01b039283166004820152602481018890529051919092169163095ea7b39160448083019260209291908290030181600087803b15801561370857600080fd5b505af115801561371c573d6000803e3d6000fd5b505050506040513d602081101561373257600080fd5b5050600f5460408051630147c92360e11b815260048101849052602481018790526044810189905290516001600160a01b039092169163028f9246916064808201926020929091908290030181600087803b15801561379057600080fd5b505af11580156137a4573d6000803e3d6000fd5b505050506040513d60208110156137ba57600080fd5b5050505b61399e565b801561399e57600f546040805162f8e2c160e01b81523360048201526001602482015290516000926001600160a01b03169162f8e2c1916044808301926020929190829003018186803b15801561381957600080fd5b505afa15801561382d573d6000803e3d6000fd5b505050506040513d602081101561384357600080fd5b505190508061388f576040805162461bcd60e51b81526020600482015260136024820152721b9bdd081d985b1a59081cdd1c99585b481a59606a1b604482015290519081900360640190fd5b600c54600f546040805163095ea7b360e01b81526001600160a01b039283166004820152602481018890529051919092169163095ea7b39160448083019260209291908290030181600087803b1580156138e857600080fd5b505af11580156138fc573d6000803e3d6000fd5b505050506040513d602081101561391257600080fd5b5050600f5460408051630147c92360e11b815260048101849052602481018790526044810189905290516001600160a01b039092169163028f9246916064808201926020929091908290030181600087803b15801561397057600080fd5b505af1158015613984573d6000803e3d6000fd5b505050506040513d602081101561399a57600080fd5b5050505b50505b86156139f85781546139b9908863ffffffff613ba216565b825584546139f890339089908890889081106139d157fe5b60009182526020909120600590910201546001600160a01b0316919063ffffffff613ce016565b613a3564e8d4a51000611207876000018781548110613a1357fe5b600091825260209091206003600590920201015485549063ffffffff613c4516565b60018301556040805188815290516001600160a01b038a16918b9133917f457f950b75085c30ff780acd57bde642ff1316cc4aad9f286af2c1ffc4163a78919081900360200190a4505050505050505050565b600b546001600160a01b031681565b600b546001600160a01b03163314613ae7576040805162461bcd60e51b815260206004820152600e60248201526d139bdd08185d5d1a1bdc9a5e995960921b604482015290519081900360640190fd5b6001600160a01b03919091166000908152600e60205260409020805460ff1916911515919091179055565b6040805160208082018590526001600160601b0319606085901b16828401528251603481840301815260549092018352815191810191909120600090815260019091529081205480613b955760405162461bcd60e51b81526004018080602001828103825260248152602001806141d36024913960400191505060405180910390fd5b6000190190505b92915050565b6000613be483836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250613d97565b9392505050565b600082820183811015613be4576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b600082613c5457506000613b9c565b82820282848281613c6157fe5b0414613be45760405162461bcd60e51b81526004018080602001828103825260218152602001806141b26021913960400191505060405180910390fd5b6000613be483836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250613e2e565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052613d32908490613e93565b505050565b604080516001600160a01b0385811660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b179052613d91908590613e93565b50505050565b60008184841115613e265760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015613deb578181015183820152602001613dd3565b50505050905090810190601f168015613e185780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b60008183613e7d5760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315613deb578181015183820152602001613dd3565b506000838581613e8957fe5b0495945050505050565b613ea5826001600160a01b031661404b565b613ef6576040805162461bcd60e51b815260206004820152601f60248201527f5361666545524332303a2063616c6c20746f206e6f6e2d636f6e747261637400604482015290519081900360640190fd5b60006060836001600160a01b0316836040518082805190602001908083835b60208310613f345780518252601f199092019160209182019101613f15565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114613f96576040519150601f19603f3d011682016040523d82523d6000602084013e613f9b565b606091505b509150915081613ff2576040805162461bcd60e51b815260206004820181905260248201527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564604482015290519081900360640190fd5b805115613d915780806020019051602081101561400e57600080fd5b5051613d915760405162461bcd60e51b815260040180806020018281038252602a8152602001806141f7602a913960400191505060405180910390fd5b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a47081811480159061407f57508115155b949350505050565b60405180606001604052806060815260200160008152602001600081525090565b604051806040016040528060008152602001600081525090565b815481835581811115613d3257600302816003028360005260206000209182019101613d32919061411f565b604051806080016040528060006001600160a01b031681526020016000815260200160008152602001600081525090565b6107f891905b808211156141505760006141398282614154565b506000600182018190556002820155600301614125565b5090565b50805460008255600502906000526020600020908101906141759190614178565b50565b6107f891905b808211156141505780546001600160a01b031916815560006001820181905560028201819055600382015560050161417e56fe536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f776465706f73697420746865206c7020746f6b656e207768696368206e6f742065786973745361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a265627a7a7231582078ee108f036656281c9cae1df9275aa0d39ab0646ad6e1bbf78df78b470efb3064736f6c63430005110032000000000000000000000000000000000000d0151e748d25b766e77efe2a6c830000000000000000000000000000000000000000000000000000000000b8bcf8000000000000000000000000ca38af77f513fcf6914b090eb9d9c18310d1fbd0

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101fb5760003560e01c806367b26af71161011a5780638ea20a0e116100ad578063dd95d1021161007c578063dd95d1021461072e578063e025494c14610766578063e63697c81461078c578063f2f4eb26146107be578063f861accb146107c6576101fb565b80638ea20a0e146106725780639a99b4f01461068f578063b3b5df18146106bb578063bc157ac1146106fc576101fb565b806377df99a1116100e957806377df99a1146106025780637a189d551461060a578063800096301461061257806384d2422614610638576101fb565b806367b26af71461048e5780636f2a6791146104b25780636fd22545146104ba57806372e4c6de146105fa576101fb565b8063427b5b4d116101925780635312ea8e116101615780635312ea8e1461042057806362f16e461461043d578063630b5ba11461045a57806365c3a3fc14610462576101fb565b8063427b5b4d146103a457806348cd4cb1146103c15780634ac22193146103c957806351eb05a614610403576101fb565b80631526fe27116101ce5780631526fe2714610323578063213607ab146103595780632f6d4562146103615780633101f6fa1461037e576101fb565b8063081e3eda1461020057806309d1d0b61461021a57806311f7d48b146102565780631203e5731461031b575b600080fd5b6102086107f4565b60408051918252519081900360200190f35b6102546004803603608081101561023057600080fd5b508035906001600160a01b03602082013516906040810135906060013515156107fb565b005b6102826004803603604081101561026c57600080fd5b50803590602001356001600160a01b03166109eb565b604051808060200180602001838103835285818151815260200191508051906020019060200280838360005b838110156102c65781810151838201526020016102ae565b50505050905001838103825284818151815260200191508051906020019060200280838360005b838110156103055781810151838201526020016102ed565b5050505090500194505050505060405180910390f35b610208610c72565b6103406004803603602081101561033957600080fd5b5035610c7e565b6040805192835260208301919091528051918290030190f35b610208610caf565b6102546004803603602081101561037757600080fd5b5035610cb5565b6102546004803603602081101561039457600080fd5b50356001600160a01b0316610db6565b610208600480360360208110156103ba57600080fd5b5035610eb0565b610208610ec4565b610254600480360360808110156103df57600080fd5b506001600160a01b0381351690602081013590604081013590606001351515610eca565b6102546004803603602081101561041957600080fd5b503561110d565b6102546004803603602081101561043657600080fd5b5035611420565b6102086004803603602081101561045357600080fd5b50356115c4565b6102546115d1565b6102086004803603604081101561047857600080fd5b50803590602001356001600160a01b0316611620565b610496611a6e565b604080516001600160a01b039092168252519081900360200190f35b610496611a7d565b6104d7600480360360208110156104d057600080fd5b5035611a8c565b6040518080602001806020018060200180602001858103855289818151815260200191508051906020019060200280838360005b8381101561052357818101518382015260200161050b565b50505050905001858103845288818151815260200191508051906020019060200280838360005b8381101561056257818101518382015260200161054a565b50505050905001858103835287818151815260200191508051906020019060200280838360005b838110156105a1578181015183820152602001610589565b50505050905001858103825286818151815260200191508051906020019060200280838360005b838110156105e05781810151838201526020016105c8565b505050509050019850505050505050505060405180910390f35b610208611d73565b610208611d79565b610496611e6c565b6102546004803603602081101561062857600080fd5b50356001600160a01b0316611e7b565b61065e6004803603602081101561064e57600080fd5b50356001600160a01b0316611f75565b604080519115158252519081900360200190f35b6102546004803603602081101561068857600080fd5b5035611f8a565b610254600480360360408110156106a557600080fd5b506001600160a01b03813516906020013561200d565b6106de600480360360408110156106d157600080fd5b5080359060200135612121565b60408051938452602084019290925282820152519081900360600190f35b6102546004803603606081101561071257600080fd5b508035906001600160a01b0360208201351690604001356122eb565b6102546004803603608081101561074457600080fd5b508035906001600160a01b036020820135169060408101359060600135612dea565b6102546004803603602081101561077c57600080fd5b50356001600160a01b031661320f565b610254600480360360608110156107a257600080fd5b508035906001600160a01b036020820135169060400135613309565b610496613a88565b610254600480360360408110156107dc57600080fd5b506001600160a01b0381351690602001351515613a97565b6012545b90565b600b546001600160a01b0316331461084b576040805162461bcd60e51b815260206004820152600e60248201526d139bdd08185d5d1a1bdc9a5e995960921b604482015290519081900360640190fd5b60125484908110610894576040805162461bcd60e51b815260206004820152600e60248201526d1c1bdbdb081b9bdd08195e1a5cdd60921b604482015290519081900360640190fd5b81156108a2576108a26115d1565b6000601286815481106108b157fe5b9060005260206000209060030201905060006108cd8787613b12565b905060006109188661090c8560000185815481106108e757fe5b9060005260206000209060050201600201548660010154613ba290919063ffffffff16565b9063ffffffff613beb16565b90508583600001838154811061092a57fe5b9060005260206000209060050201600201819055506109768161090c60128b8154811061095357fe5b906000526020600020906003020160010154601354613ba290919063ffffffff16565b601381905550806012898154811061098a57fe5b906000526020600020906003020160010181905550866001600160a01b0316887f47738efd5c92e1c587f3f63db3f6319151242d1f3a6fdb08848c20a0ceac8a2f886040518082815260200191505060405180910390a35050505050505050565b606080836012805490508110610a39576040805162461bcd60e51b815260206004820152600e60248201526d1c1bdbdb081b9bdd08195e1a5cdd60921b604482015290519081900360640190fd5b610a41614087565b60128681548110610a4e57fe5b906000526020600020906003020160405180606001604052908160008201805480602002602001604051908101604052809291908181526020016000905b82821015610ae9576000848152602090819020604080516080810182526005860290920180546001600160a01b03168352600180820154848601526002820154928401929092526003015460608301529083529092019101610a8c565b5050505081526020016001820154815260200160028201548152505090506000816000015151905080604051908082528060200260200182016040528015610b3b578160200160208202803883390190505b50945080604051908082528060200260200182016040528015610b68578160200160208202803883390190505b50935060005b81811015610c67578251805182908110610b8457fe5b602002602001015160000151868281518110610b9c57fe5b60200260200101906001600160a01b031690816001600160a01b031681525050610bc46140a8565b60128981548110610bd157fe5b90600052602060002090600302016000018281548110610bed57fe5b90600052602060002090600502016004016000896001600160a01b03166001600160a01b031681526020019081526020016000206040518060400160405290816000820154815260200160018201548152505090508060000151868381518110610c5357fe5b602090810291909101015250600101610b6e565b505050509250929050565b678ac7230489e8000081565b60128181548110610c8b57fe5b90600052602060002090600302016000915090508060010154908060020154905082565b60105481565b60125481908110610cfe576040805162461bcd60e51b815260206004820152600e60248201526d1c1bdbdb081b9bdd08195e1a5cdd60921b604482015290519081900360640190fd5b600060128381548110610d0d57fe5b6000918252602082206003909102018054909250905b818160ff161015610daf576000836000018260ff1681548110610d4257fe5b6000918252602082206005909102015485546001600160a01b039091169250859060ff8516908110610d7057fe5b60009182526020808320338452600460059093020191909101905260409020805490915015610da557610da587836000613309565b5050600101610d23565b5050505050565b600b546001600160a01b03163314610e06576040805162461bcd60e51b815260206004820152600e60248201526d139bdd08185d5d1a1bdc9a5e995960921b604482015290519081900360640190fd5b6001600160a01b038116610e54576040805162461bcd60e51b815260206004820152601060248201526f4552525f5a45524f5f4144445245535360801b604482015290519081900360640190fd5b600d546040516001600160a01b038084169216907f2d7009b4ad6ed529569dce7873cae9732d181f4f9f789baea3b239c970d9308290600090a3600d80546001600160a01b0319166001600160a01b0392909216919091179055565b60028160048110610ebd57fe5b0154905081565b60115481565b600b546001600160a01b03163314610f1a576040805162461bcd60e51b815260206004820152600e60248201526d139bdd08185d5d1a1bdc9a5e995960921b604482015290519081900360640190fd5b60008211610f69576040805162461bcd60e51b81526020600482015260176024820152764c7020546f6b656e20466163746f72206973207a65726f60481b604482015290519081900360640190fd5b8015610f7757610f776115d1565b60006011544311610f8a57601154610f8c565b435b601354909150610fa2908463ffffffff613beb16565b60135560128054600091610fb990600183016140c2565b90508360128281548110610fc957fe5b9060005260206000209060030201600101819055508160128281548110610fec57fe5b9060005260206000209060030201600201819055506012818154811061100e57fe5b60009182526020808320604080516080810182526001600160a01b038c81168083528286018d81528385018d815260608086018b815260039a8b02909801805460018082018355918d528a8d209751600590910290970180546001600160a01b03191697909616969096178555915184860155516002840155945191909601558151808501889052928c901b6001600160601b0319168383015281518084036034018152605484018084528151918601919091208752938190529481902094909455908790529151879284917fa69d86e67bfa14ad558a2599f0df3af0dff00c36be738f9118440420f1c27067916074908290030190a4505050505050565b60125481908110611156576040805162461bcd60e51b815260206004820152600e60248201526d1c1bdbdb081b9bdd08195e1a5cdd60921b604482015290519081900360640190fd5b6012828154811061116357fe5b90600052602060002090600302016002015443116111805761141c565b6012828154811061118d57fe5b906000526020600020906003020160010154600014806111ad5750601354155b156111b75761141c565b6000601283815481106111c657fe5b9060005260206000209060030201905060006111e6826002015443612121565b50509050611213601354611207846001015484613c4590919063ffffffff16565b9063ffffffff613c9e16565b90506000805b835460ff821610156113905761122d6140ee565b846000018260ff168154811061123f57fe5b6000918252602080832060408051608081018252600590940290910180546001600160a01b0316808552600182015485850152600282015485840152600390910154606085015281516370a0823160e01b81523060048201529151939550926370a0823192602480840193919291829003018186803b1580156112c157600080fd5b505afa1580156112d5573d6000803e3d6000fd5b505050506040513d60208110156112eb57600080fd5b50519050806112fb575050611388565b61130b848263ffffffff613beb16565b9350600061132e8760010154611207856040015189613c4590919063ffffffff16565b905061135d61134c836112078464e8d4a5100063ffffffff613c4516565b60608501519063ffffffff613beb16565b876000018560ff168154811061136f57fe5b9060005260206000209060050201600301819055505050505b600101611219565b50806113a45750504360029091015561141c565b600c54604080516340c10f1960e01b81523060048201526024810185905290516001600160a01b03909216916340c10f199160448082019260009290919082900301818387803b1580156113f757600080fd5b505af115801561140b573d6000803e3d6000fd5b505050504383600201819055505050505b5050565b60005460ff16611477576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b6000805460ff19169055601254819081106114ca576040805162461bcd60e51b815260206004820152600e60248201526d1c1bdbdb081b9bdd08195e1a5cdd60921b604482015290519081900360640190fd5b6000601283815481106114d957fe5b60009182526020822060039091020191505b815460ff821610156115b1576000826000018260ff168154811061150b57fe5b60009182526020808320338452600460059093020191820190526040909120805491925090156115a75780548254611556916001600160a01b0390911690339063ffffffff613ce016565b8154815460408051918252516001600160a01b0390921691889133917fbbae553982d541d38dacb1ea468ac757f324d0e279b6e4a2958f9e894da575ff9181900360200190a4600080825560018201555b50506001016114eb565b50506000805460ff191660011790555050565b60068160058110610ebd57fe5b60125460005b818160ff16101561141c57600060128260ff16815481106115f457fe5b9060005260206000209060030201600101541115611618576116188160ff1661110d565b6001016115d7565b6012546000908390811061166c576040805162461bcd60e51b815260206004820152600e60248201526d1c1bdbdb081b9bdd08195e1a5cdd60921b604482015290519081900360640190fd5b611674614087565b6012858154811061168157fe5b906000526020600020906003020160405180606001604052908160008201805480602002602001604051908101604052809291908181526020016000905b8282101561171c576000848152602090819020604080516080810182526005860290920180546001600160a01b031683526001808201548486015260028201549284019290925260030154606083015290835290920191016116bf565b5050509082525060018201546020820152600290910154604090910152601354909150600090158061175057506020820151155b156118525760005b82515160ff821610156118485761176d6140a8565b6012888154811061177a57fe5b90600052602060002090600302016000018260ff168154811061179957fe5b600091825260208083206001600160a01b038b1684526004600590930201919091018152604091829020825180840190935280548352600101549082018190528551805192935061183d9261183092916118249164e8d4a51000916112079160ff8a1690811061180557fe5b6020026020010151606001518760000151613c4590919063ffffffff16565b9063ffffffff613ba216565b849063ffffffff613beb16565b925050600101611758565b509250611a679050565b6000611862836040015143612121565b505090506000611885601354611207866020015185613c4590919063ffffffff16565b905060005b84515160ff82161015611a5f5761189f6140ee565b8551805160ff84169081106118b057fe5b60200260200101519050600081600001516001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060206040518083038186803b15801561191657600080fd5b505afa15801561192a573d6000803e3d6000fd5b505050506040513d602081101561194057600080fd5b5051905080611950575050611a57565b86604001514311156119a257600061197d8860200151611207856040015188613c4590919063ffffffff16565b905061199b61134c836112078464e8d4a5100063ffffffff613c4516565b6060840152505b6119aa6140a8565b60128c815481106119b757fe5b90600052602060002090600302016000018460ff16815481106119d657fe5b600091825260208083206001600160a01b038f1684526004600590930201919091018152604091829020825180840190935280548084526001909101549183018290526060860151929350611a5192611a4492916118249164e8d4a51000916112079163ffffffff613c4516565b889063ffffffff613beb16565b96505050505b60010161188a565b509194505050505b5092915050565b600d546001600160a01b031681565b600f546001600160a01b031681565b606080606080846012805490508110611add576040805162461bcd60e51b815260206004820152600e60248201526d1c1bdbdb081b9bdd08195e1a5cdd60921b604482015290519081900360640190fd5b611ae5614087565b60128781548110611af257fe5b906000526020600020906003020160405180606001604052908160008201805480602002602001604051908101604052809291908181526020016000905b82821015611b8d576000848152602090819020604080516080810182526005860290920180546001600160a01b03168352600180820154848601526002820154928401929092526003015460608301529083529092019101611b30565b5050505081526020016001820154815260200160028201548152505090506000816000015151905080604051908082528060200260200182016040528015611bdf578160200160208202803883390190505b50965080604051908082528060200260200182016040528015611c0c578160200160208202803883390190505b50955080604051908082528060200260200182016040528015611c39578160200160208202803883390190505b50945080604051908082528060200260200182016040528015611c66578160200160208202803883390190505b50935060005b818160ff161015611d68578251805160ff8316908110611c8857fe5b602002602001015160000151888260ff1681518110611ca357fe5b6001600160a01b03909216602092830291909101909101528251805160ff8316908110611ccc57fe5b602002602001015160200151878260ff1681518110611ce757fe5b60209081029190910101528251805160ff8316908110611d0357fe5b602002602001015160400151868260ff1681518110611d1e57fe5b60209081029190910101528251805160ff8316908110611d3a57fe5b602002602001015160600151858260ff1681518110611d5557fe5b6020908102919091010152600101611c6c565b505050509193509193565b60135481565b6011546000904390811015611d925760009150506107f8565b611dab600260035b01546011549063ffffffff613beb16565b8110611dbb575050600a546107f8565b6000805b6004811015611e00576000611dda60028360048110611d9a57fe5b9050808410611df757611df483600163ffffffff613beb16565b92505b50600101611dbf565b5060058110611e56576040805162461bcd60e51b815260206004820152601e60248201527f746f6b656e73506572426c6f636b206c656e677468206e6f7420676f6f640000604482015290519081900360640190fd5b60068160058110611e6357fe5b01549250505090565b600c546001600160a01b031681565b600b546001600160a01b03163314611ecb576040805162461bcd60e51b815260206004820152600e60248201526d139bdd08185d5d1a1bdc9a5e995960921b604482015290519081900360640190fd5b6001600160a01b038116611f19576040805162461bcd60e51b815260206004820152601060248201526f4552525f5a45524f5f4144445245535360801b604482015290519081900360640190fd5b600b546040516001600160a01b038084169216907fc97c5f89233cbccedeecfbb88975bf75455bc0bb74e114c14701bd16912e48e290600090a3600b80546001600160a01b0319166001600160a01b0392909216919091179055565b600e6020526000908152604090205460ff1681565b600b546001600160a01b03163314611fda576040805162461bcd60e51b815260206004820152600e60248201526d139bdd08185d5d1a1bdc9a5e995960921b604482015290519081900360640190fd5b601081905560405181907f4f7480023dfce499bfa4ceb392e5346b936d1b117dec121fe6e8652c1c6e8a9490600090a250565b600b546001600160a01b0316331461205d576040805162461bcd60e51b815260206004820152600e60248201526d139bdd08185d5d1a1bdc9a5e995960921b604482015290519081900360640190fd5b6001600160a01b0382166000908152600e602052604090205460ff166120c0576040805162461bcd60e51b81526020600482015260136024820152723737ba1031b630b4b6b0b13632903a37b5b2b760691b604482015290519081900360640190fd5b600d546120e0906001600160a01b0384811691168363ffffffff613ce016565b600b5460405182916001600160a01b03808616929116907f70eb43c4a8ae8c40502dcf22436c509c28d6ff421cf07c491be56984bd98706890600090a45050565b60008060008385111561216f576040805162461bcd60e51b81526020600482015260116024820152705f66726f6d206d757374203c3d205f746f60781b604482015290519081900360640190fd5b601154600090819086101561218c576000945090925090506122e4565b61219860026003611d9a565b87106121cc57600a546121bb906121af888a613ba2565b9063ffffffff613c4516565b9450600593508392506122e4915050565b6000805b600481101561222e5760006121eb60028360048110611d9a57fe5b9050808a11156122095761220685600163ffffffff613beb16565b94505b808911156122255761222284600163ffffffff613beb16565b93505b506001016121d0565b50825b878910156122db576011548910156122495760115498505b600061225b848363ffffffff613ba216565b905080612282576006826005811061226f57fe5b01548a8a030283019250889950506122db565b80156122cf57600061229a60028460048110611d9a57fe5b9050600683600581106122a957fe5b0154909a8b03029290920191896122c783600163ffffffff613beb16565b9250506122d5565b506122db565b50612231565b50945090925090505b9250925092565b60125483908110612334576040805162461bcd60e51b815260206004820152600e60248201526d1c1bdbdb081b9bdd08195e1a5cdd60921b604482015290519081900360640190fd5b6000821161237c576040805162461bcd60e51b815260206004820152601060248201526f1b9bdd081d985b1a5908185b5bdd5b9d60821b604482015290519081900360640190fd5b60006012858154811061238b57fe5b9060005260206000209060030201905060006123a78686613b12565b905060006123c2836002015443613ba290919063ffffffff16565b9050601287815481106123d157fe5b60009182526020909120600390910201548210612427576040805162461bcd60e51b815260206004820152600f60248201526e0dcdee840ecc2d8d2c840d2dcc8caf608b1b604482015290519081900360640190fd5b6124308761110d565b60006012888154811061243f57fe5b9060005260206000209060030201600001838154811061245b57fe5b600091825260208083203384526004600590930201919091019052604090208054909150156129265760006124cb826001015461182464e8d4a510006112078960000189815481106124a957fe5b600091825260209091206003600590920201015487549063ffffffff613c4516565b9050801561292057600f5460408051631677695f60e21b8152336004820152815160009384936001600160a01b03909116926359dda57c9260248083019392829003018186803b15801561251e57600080fd5b505afa158015612532573d6000803e3d6000fd5b505050506040513d604081101561254857600080fd5b50805160209091015160105491935091508b141561274257811561273d57600f546040805162f8e2c160e01b8152336004820152600060248201819052915191926001600160a01b03169162f8e2c191604480820192602092909190829003018186803b1580156125b857600080fd5b505afa1580156125cc573d6000803e3d6000fd5b505050506040513d60208110156125e257600080fd5b505190508061262e576040805162461bcd60e51b81526020600482015260136024820152721b9bdd081d985b1a59081cdd1c99585b481a59606a1b604482015290519081900360640190fd5b600c54600f546040805163095ea7b360e01b81526001600160a01b039283166004820152602481018890529051919092169163095ea7b39160448083019260209291908290030181600087803b15801561268757600080fd5b505af115801561269b573d6000803e3d6000fd5b505050506040513d60208110156126b157600080fd5b5050600f5460408051630147c92360e11b815260048101849052602481018790526044810189905290516001600160a01b039092169163028f9246916064808201926020929091908290030181600087803b15801561270f57600080fd5b505af1158015612723573d6000803e3d6000fd5b505050506040513d602081101561273957600080fd5b5050505b61291d565b801561291d57600f546040805162f8e2c160e01b81523360048201526001602482015290516000926001600160a01b03169162f8e2c1916044808301926020929190829003018186803b15801561279857600080fd5b505afa1580156127ac573d6000803e3d6000fd5b505050506040513d60208110156127c257600080fd5b505190508061280e576040805162461bcd60e51b81526020600482015260136024820152721b9bdd081d985b1a59081cdd1c99585b481a59606a1b604482015290519081900360640190fd5b600c54600f546040805163095ea7b360e01b81526001600160a01b039283166004820152602481018890529051919092169163095ea7b39160448083019260209291908290030181600087803b15801561286757600080fd5b505af115801561287b573d6000803e3d6000fd5b505050506040513d602081101561289157600080fd5b5050600f5460408051630147c92360e11b815260048101849052602481018790526044810189905290516001600160a01b039092169163028f9246916064808201926020929091908290030181600087803b1580156128ef57600080fd5b505af1158015612903573d6000803e3d6000fd5b505050506040513d602081101561291957600080fd5b5050505b50505b50612d08565b600043600101905060115443101561293d57506011545b600f5460408051631677695f60e21b8152336004820152815160009384936001600160a01b03909116926359dda57c9260248083019392829003018186803b15801561298857600080fd5b505afa15801561299c573d6000803e3d6000fd5b505050506040513d60408110156129b257600080fd5b50805160209091015160105491935091508b1415612b6b5781612b6657600c54604080516340c10f1960e01b8152306004820152678ac7230489e80000602482015290516001600160a01b03909216916340c10f199160448082019260009290919082900301818387803b158015612a2957600080fd5b505af1158015612a3d573d6000803e3d6000fd5b5050600c54600f546040805163095ea7b360e01b81526001600160a01b039283166004820152678ac7230489e800006024820152905191909216935063095ea7b3925060448083019260209291908290030181600087803b158015612aa157600080fd5b505af1158015612ab5573d6000803e3d6000fd5b505050506040513d6020811015612acb57600080fd5b5050600f54604080516309755ecd60e41b8152336004820152678ac7230489e8000060248201526000604482018190526064820187905291516001600160a01b0390931692639755ecd092608480840193602093929083900390910190829087803b158015612b3957600080fd5b505af1158015612b4d573d6000803e3d6000fd5b505050506040513d6020811015612b6357600080fd5b50505b612d04565b80612d0457600c54604080516340c10f1960e01b8152306004820152678ac7230489e80000602482015290516001600160a01b03909216916340c10f199160448082019260009290919082900301818387803b158015612bca57600080fd5b505af1158015612bde573d6000803e3d6000fd5b5050600c54600f546040805163095ea7b360e01b81526001600160a01b039283166004820152678ac7230489e800006024820152905191909216935063095ea7b3925060448083019260209291908290030181600087803b158015612c4257600080fd5b505af1158015612c56573d6000803e3d6000fd5b505050506040513d6020811015612c6c57600080fd5b5050600f54604080516309755ecd60e41b8152336004820152678ac7230489e800006024820152600160448201526064810186905290516001600160a01b0390921691639755ecd0916084808201926020929091908290030181600087803b158015612cd757600080fd5b505af1158015612ceb573d6000803e3d6000fd5b505050506040513d6020811015612d0157600080fd5b50505b5050505b612d45333088876000018781548110612d1d57fe5b60009182526020909120600590910201546001600160a01b031692919063ffffffff613d3716565b8054612d57908763ffffffff613beb16565b81558354612d989064e8d4a510009061120790879087908110612d7657fe5b600091825260209091206003600590920201015484549063ffffffff613c4516565b60018201556040805187815290516001600160a01b038916918a9133917fd2f8022f659fd9c8c558f30c00fd5ee7038f7cb56da45095c3e0e7d48b3e0c4b919081900360200190a45050505050505050565b600b546001600160a01b03163314612e3a576040805162461bcd60e51b815260206004820152600e60248201526d139bdd08185d5d1a1bdc9a5e995960921b604482015290519081900360640190fd5b60125484908110612e83576040805162461bcd60e51b815260206004820152600e60248201526d1c1bdbdb081b9bdd08195e1a5cdd60921b604482015290519081900360640190fd5b60008211612ed2576040805162461bcd60e51b81526020600482015260176024820152764c7020546f6b656e20466163746f72206973207a65726f60481b604482015290519081900360640190fd5b612eda6115d1565b612ee2614087565b60128681548110612eef57fe5b906000526020600020906003020160405180606001604052908160008201805480602002602001604051908101604052809291908181526020016000905b82821015612f8a576000848152602090819020604080516080810182526005860290920180546001600160a01b03168352600180820154848601526002820154928401929092526003015460608301529083529092019101612f2d565b5050509082525060018281015460208084019190915260029093015460409283015281518084018b90526001600160601b031960608b901b168184015282516034818303018152605490910183528051908401206000908152925290205490915015613036576040805162461bcd60e51b81526020600482015260166024820152751b1c081d1bdad95b88185b1c9958591e48185919195960521b604482015290519081900360640190fd5b8051516001811080159061304a5750600881105b61309b576040805162461bcd60e51b815260206004820152601a60248201527f706f6f6c206c70546f6b656e206c656e67746820697320626164000000000000604482015290519081900360640190fd5b6013546130ae908563ffffffff613beb16565b6013556130b96140ee565b50604080516080810182526001600160a01b0388168152602080820188905291810186905260006060820152908301516130f9908663ffffffff613beb16565b6012898154811061310657fe5b9060005260206000209060030201600101819055506012888154811061312857fe5b60009182526020808320600392830201805460018082018355918552828520865160059092020180546001600160a01b0319166001600160a01b0392831617815586840151818401556040808801516002830155606080890151929096019190915580518085018f9052948d901b6001600160601b0319168582015280518086036034018152605486018083528151918601919091208752938390529485902091870190915590889052915188928a16918b917e689a87888f57a65e571d56c0e511885ea2a482adee423ebcb92376e9b54f78916074908290030190a45050505050505050565b600b546001600160a01b0316331461325f576040805162461bcd60e51b815260206004820152600e60248201526d139bdd08185d5d1a1bdc9a5e995960921b604482015290519081900360640190fd5b6001600160a01b0381166132ad576040805162461bcd60e51b815260206004820152601060248201526f4552525f5a45524f5f4144445245535360801b604482015290519081900360640190fd5b600f546040516001600160a01b038084169216907ffdf2bfa7711f98bdb4fe8a049c67f495c253496715db92f800b7cd492dddc6a190600090a3600f80546001600160a01b0319166001600160a01b0392909216919091179055565b60125483908110613352576040805162461bcd60e51b815260206004820152600e60248201526d1c1bdbdb081b9bdd08195e1a5cdd60921b604482015290519081900360640190fd5b60006012858154811061336157fe5b90600052602060002090600302019050600061337d8686613b12565b90506012868154811061338c57fe5b600091825260209091206003909102015481106133e2576040805162461bcd60e51b815260206004820152600f60248201526e0dcdee840ecc2d8d2c840d2dcc8caf608b1b604482015290519081900360640190fd5b60006133fb836002015443613ba290919063ffffffff16565b90506134068761110d565b60006012888154811061341557fe5b9060005260206000209060030201600001838154811061343157fe5b6000918252602080832033845260046005909302019190910190526040902080549091508611156134a9576040805162461bcd60e51b815260206004820152601a60248201527f77697468647261773a205f616d6f756e74206e6f7420676f6f64000000000000604482015290519081900360640190fd5b60006134ce826001015461182464e8d4a510006112078960000189815481106124a957fe5b905080156139a157600f5460408051631677695f60e21b8152336004820152815160009384936001600160a01b03909116926359dda57c9260248083019392829003018186803b15801561352157600080fd5b505afa158015613535573d6000803e3d6000fd5b505050506040513d604081101561354b57600080fd5b508051602091820151600c54600f546040805163095ea7b360e01b81526001600160a01b039283166004820152602481018a90529051949750929550169263095ea7b3926044808401938290030181600087803b1580156135ab57600080fd5b505af11580156135bf573d6000803e3d6000fd5b505050506040513d60208110156135d557600080fd5b50506010548b14156137c35781156137be57600f546040805162f8e2c160e01b8152336004820152600060248201819052915191926001600160a01b03169162f8e2c191604480820192602092909190829003018186803b15801561363957600080fd5b505afa15801561364d573d6000803e3d6000fd5b505050506040513d602081101561366357600080fd5b50519050806136af576040805162461bcd60e51b81526020600482015260136024820152721b9bdd081d985b1a59081cdd1c99585b481a59606a1b604482015290519081900360640190fd5b600c54600f546040805163095ea7b360e01b81526001600160a01b039283166004820152602481018890529051919092169163095ea7b39160448083019260209291908290030181600087803b15801561370857600080fd5b505af115801561371c573d6000803e3d6000fd5b505050506040513d602081101561373257600080fd5b5050600f5460408051630147c92360e11b815260048101849052602481018790526044810189905290516001600160a01b039092169163028f9246916064808201926020929091908290030181600087803b15801561379057600080fd5b505af11580156137a4573d6000803e3d6000fd5b505050506040513d60208110156137ba57600080fd5b5050505b61399e565b801561399e57600f546040805162f8e2c160e01b81523360048201526001602482015290516000926001600160a01b03169162f8e2c1916044808301926020929190829003018186803b15801561381957600080fd5b505afa15801561382d573d6000803e3d6000fd5b505050506040513d602081101561384357600080fd5b505190508061388f576040805162461bcd60e51b81526020600482015260136024820152721b9bdd081d985b1a59081cdd1c99585b481a59606a1b604482015290519081900360640190fd5b600c54600f546040805163095ea7b360e01b81526001600160a01b039283166004820152602481018890529051919092169163095ea7b39160448083019260209291908290030181600087803b1580156138e857600080fd5b505af11580156138fc573d6000803e3d6000fd5b505050506040513d602081101561391257600080fd5b5050600f5460408051630147c92360e11b815260048101849052602481018790526044810189905290516001600160a01b039092169163028f9246916064808201926020929091908290030181600087803b15801561397057600080fd5b505af1158015613984573d6000803e3d6000fd5b505050506040513d602081101561399a57600080fd5b5050505b50505b86156139f85781546139b9908863ffffffff613ba216565b825584546139f890339089908890889081106139d157fe5b60009182526020909120600590910201546001600160a01b0316919063ffffffff613ce016565b613a3564e8d4a51000611207876000018781548110613a1357fe5b600091825260209091206003600590920201015485549063ffffffff613c4516565b60018301556040805188815290516001600160a01b038a16918b9133917f457f950b75085c30ff780acd57bde642ff1316cc4aad9f286af2c1ffc4163a78919081900360200190a4505050505050505050565b600b546001600160a01b031681565b600b546001600160a01b03163314613ae7576040805162461bcd60e51b815260206004820152600e60248201526d139bdd08185d5d1a1bdc9a5e995960921b604482015290519081900360640190fd5b6001600160a01b03919091166000908152600e60205260409020805460ff1916911515919091179055565b6040805160208082018590526001600160601b0319606085901b16828401528251603481840301815260549092018352815191810191909120600090815260019091529081205480613b955760405162461bcd60e51b81526004018080602001828103825260248152602001806141d36024913960400191505060405180910390fd5b6000190190505b92915050565b6000613be483836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250613d97565b9392505050565b600082820183811015613be4576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b600082613c5457506000613b9c565b82820282848281613c6157fe5b0414613be45760405162461bcd60e51b81526004018080602001828103825260218152602001806141b26021913960400191505060405180910390fd5b6000613be483836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250613e2e565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052613d32908490613e93565b505050565b604080516001600160a01b0385811660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b179052613d91908590613e93565b50505050565b60008184841115613e265760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015613deb578181015183820152602001613dd3565b50505050905090810190601f168015613e185780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b60008183613e7d5760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315613deb578181015183820152602001613dd3565b506000838581613e8957fe5b0495945050505050565b613ea5826001600160a01b031661404b565b613ef6576040805162461bcd60e51b815260206004820152601f60248201527f5361666545524332303a2063616c6c20746f206e6f6e2d636f6e747261637400604482015290519081900360640190fd5b60006060836001600160a01b0316836040518082805190602001908083835b60208310613f345780518252601f199092019160209182019101613f15565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114613f96576040519150601f19603f3d011682016040523d82523d6000602084013e613f9b565b606091505b509150915081613ff2576040805162461bcd60e51b815260206004820181905260248201527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564604482015290519081900360640190fd5b805115613d915780806020019051602081101561400e57600080fd5b5051613d915760405162461bcd60e51b815260040180806020018281038252602a8152602001806141f7602a913960400191505060405180910390fd5b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a47081811480159061407f57508115155b949350505050565b60405180606001604052806060815260200160008152602001600081525090565b604051806040016040528060008152602001600081525090565b815481835581811115613d3257600302816003028360005260206000209182019101613d32919061411f565b604051806080016040528060006001600160a01b031681526020016000815260200160008152602001600081525090565b6107f891905b808211156141505760006141398282614154565b506000600182018190556002820155600301614125565b5090565b50805460008255600502906000526020600020908101906141759190614178565b50565b6107f891905b808211156141505780546001600160a01b031916815560006001820181905560028201819055600382015560050161417e56fe536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f776465706f73697420746865206c7020746f6b656e207768696368206e6f742065786973745361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a265627a7a7231582078ee108f036656281c9cae1df9275aa0d39ab0646ad6e1bbf78df78b470efb3064736f6c63430005110032

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

000000000000000000000000000000000000d0151e748d25b766e77efe2a6c830000000000000000000000000000000000000000000000000000000000b8bcf8000000000000000000000000ca38af77f513fcf6914b090eb9d9c18310d1fbd0

-----Decoded View---------------
Arg [0] : _xdex (address): 0x000000000000d0151E748d25b766e77efe2A6c83
Arg [1] : _startBlock (uint256): 12107000
Arg [2] : _safu (address): 0xcA38Af77f513FCf6914b090EB9D9C18310D1FBd0

-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 000000000000000000000000000000000000d0151e748d25b766e77efe2a6c83
Arg [1] : 0000000000000000000000000000000000000000000000000000000000b8bcf8
Arg [2] : 000000000000000000000000ca38af77f513fcf6914b090eb9d9c18310d1fbd0


Deployed Bytecode Sourcemap

37694:26695:0:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;37694:26695:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;42705:95;;;:::i;:::-;;;;;;;;;;;;;;;;47381:838;;;;;;13:3:-1;8;5:12;2:2;;;30:1;27;20:12;2:2;-1:-1;47381:838:0;;;-1:-1:-1;;;;;47381:838:0;;;;;;;;;;;;;;;;;:::i;:::-;;60088:647;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;60088:647:0;;;;;;-1:-1:-1;;;;;60088:647:0;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;60088:647:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;60088:647:0;;;;;;;;;;;;;;;;;;;39994:52;;;:::i;40609:26::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;40609:26:0;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;40460:27;;;:::i;59511:499::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;59511:499:0;;:::i;43458:176::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;43458:176:0;-1:-1:-1;;;;;43458:176:0;;:::i;39620:66::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;39620:66:0;;:::i;40548:25::-;;;:::i;43798:1115::-;;;;;;13:3:-1;8;5:12;2:2;;;30:1;27;20:12;2:2;-1:-1;;;;;;43798:1115:0;;;;;;;;;;;;;;;;;;;;:::i;48624:1343::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;48624:1343:0;;:::i;58669:783::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;58669:783:0;;:::i;39737:182::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;39737:182:0;;:::i;48302:246::-;;;:::i;50030:1959::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;50030:1959:0;;;;;;-1:-1:-1;;;;;50030:1959:0;;:::i;40229:19::-;;;:::i;:::-;;;;-1:-1:-1;;;;;40229:19:0;;;;;;;;;;;;;;40395:24;;;:::i;46289:917::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;46289:917:0;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;46289:917:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;46289:917:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;46289:917:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;46289:917:0;;;;;;;;;;;;;;;;;;;;;;;40734:31;;;:::i;62714:781::-;;;:::i;40104:16::-;;;:::i;43253:176::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;43253:176:0;-1:-1:-1;;;;;43253:176:0;;:::i;40303:47::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;40303:47:0;-1:-1:-1;;;;;40303:47:0;;:::i;:::-;;;;;;;;;;;;;;;;;;42840:128;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;42840:128:0;;:::i;63592:239::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;63592:239:0;;;;;;;;:::i;60743:1963::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;60743:1963:0;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;52058:4042;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;52058:4042:0;;;-1:-1:-1;;;;;52058:4042:0;;;;;;;;;;:::i;44921:1360::-;;;;;;13:3:-1;8;5:12;2:2;;;30:1;27;20:12;2:2;-1:-1;44921:1360:0;;;-1:-1:-1;;;;;44921:1360:0;;;;;;;;;;;;;;;:::i;43011:213::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;43011:213:0;-1:-1:-1;;;;;43011:213:0;;:::i;56108:2490::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;56108:2490:0;;;-1:-1:-1;;;;;56108:2490:0;;;;;;;;;;:::i;40055:19::-;;;:::i;63839:156::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;63839:156:0;;;;;;;;;;:::i;42705:95::-;42777:8;:15;42705:95;;:::o;47381:838::-;42164:4;;-1:-1:-1;;;;;42164:4:0;42150:10;:18;42142:45;;;;;-1:-1:-1;;;42142:45:0;;;;;;;;;;;;-1:-1:-1;;;42142:45:0;;;;;;;;;;;;;;;42356:8;:15;47540:4;;42349:22;;42341:49;;;;;-1:-1:-1;;;42341:49:0;;;;;;;;;;;;-1:-1:-1;;;42341:49:0;;;;;;;;;;;;;;;47561:11;47557:61;;;47589:17;:15;:17::i;:::-;47630:21;47654:8;47663:4;47654:14;;;;;;;;;;;;;;;;;;47630:38;;47679:13;47695:33;47713:4;47719:8;47695:17;:33::i;:::-;47679:49;;47785:21;47822:101;47899:9;47822:54;47842:4;:17;;47860:5;47842:24;;;;;;;;;;;;;;;;;;:33;;;47822:4;:15;;;:19;;:54;;;;:::i;:::-;:58;:101;:58;:101;:::i;:::-;47785:138;;47970:9;47934:4;:17;;47952:5;47934:24;;;;;;;;;;;;;;;;;;:33;;:45;;;;48007:86;48069:13;48007:43;48024:8;48033:4;48024:14;;;;;;;;;;;;;;;;;;:25;;;48007:12;;:16;;:43;;;;:::i;:86::-;47992:12;:101;;;;48132:13;48104:8;48113:4;48104:14;;;;;;;;;;;;;;;;;;:25;;:41;;;;48190:8;-1:-1:-1;;;;;48163:48:0;48176:4;48163:48;48201:9;48163:48;;;;;;;;;;;;;;;;;;42401:1;;;42198;47381:838;;;;:::o;60088:647::-;60219:25;60246:24;60195:4;42356:8;:15;;;;42349:4;:22;42341:49;;;;;-1:-1:-1;;;42341:49:0;;;;;;;;;;;;-1:-1:-1;;;42341:49:0;;;;;;;;;;;;;;;60288:20;;:::i;:::-;60311:8;60320:4;60311:14;;;;;;;;;;;;;;;;;;60288:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;60288:37:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;60336:14;60353:4;:17;;;:24;60336:41;;60413:6;60399:21;;;;;;;;;;;;;;;;;;;;;;29:2:-1;21:6;17:15;117:4;105:10;97:6;88:34;136:17;;-1:-1;60399:21:0;;60388:32;;60455:6;60441:21;;;;;;;;;;;;;;;;;;;;;;29:2:-1;21:6;17:15;117:4;105:10;97:6;88:34;136:17;;-1:-1;60441:21:0;-1:-1:-1;60431:31:0;-1:-1:-1;60478:9:0;60473:255;60497:6;60493:1;:10;60473:255;;;60547:17;;:20;;60565:1;;60547:20;;;;;;;;;;;;:28;;;60525:8;60534:1;60525:11;;;;;;;;;;;;;:51;-1:-1:-1;;;;;60525:51:0;;;-1:-1:-1;;;;;60525:51:0;;;;;60591:20;;:::i;:::-;60631:8;60640:4;60631:14;;;;;;;;;;;;;;;;;;:27;;60659:1;60631:30;;;;;;;;;;;;;;;;;;:39;;:46;60671:5;-1:-1:-1;;;;;60631:46:0;-1:-1:-1;;;;;60631:46:0;;;;;;;;;;;;60591:86;;;;;;;;;;;;;;;;;;;;;;;;;;;60705:4;:11;;;60692:7;60700:1;60692:10;;;;;;;;;;;;;;;;;:24;-1:-1:-1;60505:3:0;;60473:255;;;;42401:1;;60088:647;;;;;;:::o;39994:52::-;40038:8;39994:52;:::o;40609:26::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;40460:27::-;;;;:::o;59511:499::-;42356:8;:15;59573:4;;42349:22;;42341:49;;;;;-1:-1:-1;;;42341:49:0;;;;;;;;;;;;-1:-1:-1;;;42341:49:0;;;;;;;;;;;;;;;59590:21;59614:8;59623:4;59614:14;;;;;;;;;;;;;;;;;;;;59656:24;;59614:14;;-1:-1:-1;59656:24:0;59693:310;59715:6;59711:1;:10;;;59693:310;;;59743:14;59760:4;:17;;59778:1;59760:20;;;;;;;;;;;;;;;;;;;;;;:28;59827:20;;-1:-1:-1;;;;;59760:28:0;;;;-1:-1:-1;59827:4:0;;:20;;;;;;;;;;;;;;;;;;59857:10;59827:41;;:29;:20;;;;;:29;;;;:41;;;;;59887:11;;59827:41;;-1:-1:-1;59887:15:0;59883:109;;59950:26;59959:4;59965:7;59974:1;59950:8;:26::i;:::-;-1:-1:-1;;59723:3:0;;59693:310;;;;42401:1;;59511:499;;:::o;43458:176::-;42164:4;;-1:-1:-1;;;;;42164:4:0;42150:10;:18;42142:45;;;;;-1:-1:-1;;;42142:45:0;;;;;;;;;;;;-1:-1:-1;;;42142:45:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;43527:19:0;;43519:48;;;;;-1:-1:-1;;;43519:48:0;;;;;;;;;;;;-1:-1:-1;;;43519:48:0;;;;;;;;;;;;;;;43591:4;;43583:20;;-1:-1:-1;;;;;43583:20:0;;;;43591:4;;43583:20;;43591:4;;43583:20;43614:4;:12;;-1:-1:-1;;;;;;43614:12:0;-1:-1:-1;;;;;43614:12:0;;;;;;;;;;43458:176::o;39620:66::-;;;;;;;;;;;;;-1:-1:-1;39620:66:0;:::o;40548:25::-;;;;:::o;43798:1115::-;42164:4;;-1:-1:-1;;;;;42164:4:0;42150:10;:18;42142:45;;;;;-1:-1:-1;;;42142:45:0;;;;;;;;;;;;-1:-1:-1;;;42142:45:0;;;;;;;;;;;;;;;43983:1;43971:9;:13;43963:49;;;;;-1:-1:-1;;;43963:49:0;;;;;;;;;;;;-1:-1:-1;;;43963:49:0;;;;;;;;;;;;;;;44029:11;44025:61;;;44057:17;:15;:17::i;:::-;44096:24;44151:10;;44136:12;:25;:53;;44179:10;;44136:53;;;44164:12;44136:53;44217:12;;44096:93;;-1:-1:-1;44217:27:0;;44234:9;44217:27;:16;:27;:::i;:::-;44202:12;:42;44280:8;:17;;44257:20;;44280:17;;;;;;:::i;:::-;44257:40;;44344:9;44308:8;44317:12;44308:22;;;;;;;;;;;;;;;;;;:33;;:45;;;;44405:16;44364:8;44373:12;44364:22;;;;;;;;;;;;;;;;;;:38;;:57;;;;44432:8;44441:12;44432:22;;;;;;;;;;;;;;;;44487:181;;;;;;;;-1:-1:-1;;;;;44487:181:0;;;;;;;;;;;;;;;;;;;;;;;;;44432:22;;;;;;;27:10:-1;;39:1;23:18;;;45:23;;44432:247:0;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;44432:247:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;44778:40;;;;;;;;;;;;-1:-1:-1;;;;;;44778:40:0;;;;;;;26:21:-1;;;22:32;;6:49;;44778:40:0;;;;;;44768:51;;;;;;;;;44754:66;;;;;;;;;;:70;;;;44840:65;;;;;;44487:181;;44778:40;;44840:65;;;;;;;;;;42198:1;;43798:1115;;;;:::o;48624:1343::-;42356:8;:15;48676:4;;42349:22;;42341:49;;;;;-1:-1:-1;;;42341:49:0;;;;;;;;;;;;-1:-1:-1;;;42341:49:0;;;;;;;;;;;;;;;48713:8;48722:4;48713:14;;;;;;;;;;;;;;;;;;:30;;;48697:12;:46;48693:85;;48760:7;;48693:85;48794:8;48803:4;48794:14;;;;;;;;;;;;;;;;;;:25;;;48823:1;48794:30;:51;;;-1:-1:-1;48828:12:0;;:17;48794:51;48790:90;;;48862:7;;48790:90;48892:21;48916:8;48925:4;48916:14;;;;;;;;;;;;;;;;;;48892:38;;48942:18;48981:53;48999:4;:20;;;49021:12;48981:17;:53::i;:::-;48941:93;;;;49058:49;49094:12;;49058:31;49073:4;:15;;;49058:10;:14;;:31;;;;:::i;:::-;:35;:49;:35;:49;:::i;:::-;49045:62;-1:-1:-1;49120:21:0;;49156:590;49178:24;;49174:28;;;;49156:590;;;49224:25;;:::i;:::-;49252:4;:17;;49270:1;49252:20;;;;;;;;;;;;;;;;;;49224:48;;;;;;;;49252:20;;;;;;;49224:48;;-1:-1:-1;;;;;49224:48:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;49306:39;;-1:-1:-1;;;49306:39:0;;49339:4;49306:39;;;;;;49224:48;;-1:-1:-1;49224:48:0;49306:24;;:39;;;;;49252:20;;49306:39;;;;;;49224:48;49306:39;;;5:2:-1;;;;30:1;27;20:12;5:2;49306:39:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;49306:39:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;49306:39:0;;-1:-1:-1;49364:13:0;49360:62;;49398:8;;;;49360:62;49452:27;:13;49470:8;49452:27;:17;:27;:::i;:::-;49436:43;;49494:16;49530:52;49566:4;:15;;;49530:31;49545:6;:15;;;49530:10;:14;;:31;;;;:::i;:52::-;49494:88;-1:-1:-1;49634:100:0;49677:42;49710:8;49677:28;49494:88;38149:4;49677:28;:12;:28;:::i;:42::-;49634:20;;;;;:100;:24;:100;:::i;:::-;49597:4;:17;;49615:1;49597:20;;;;;;;;;;;;;;;;;;;;:34;;:137;;;;49156:590;;;;49204:3;;49156:590;;;-1:-1:-1;49762:18:0;49758:107;;-1:-1:-1;;49820:12:0;49797:20;;;;:35;49847:7;;49758:107;49877:4;;:36;;;-1:-1:-1;;;49877:36:0;;49895:4;49877:36;;;;;;;;;;;;-1:-1:-1;;;;;49877:4:0;;;;:9;;:36;;;;;:4;;:36;;;;;;;;:4;;:36;;;5:2:-1;;;;30:1;27;20:12;5:2;49877:36:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;49877:36:0;;;;49947:12;49924:4;:20;;:35;;;;42401:1;;;;48624:1343;;:::o;58669:783::-;17323:11;;;;17315:55;;;;;-1:-1:-1;;;17315:55:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;17462:5;17448:19;;-1:-1:-1;;17448:19:0;;;42356:8;:15;58770:4;;42349:22;;42341:49;;;;;-1:-1:-1;;;42341:49:0;;;;;;;;;;;;-1:-1:-1;;;42341:49:0;;;;;;;;;;;;;;;58792:21;58816:8;58825:4;58816:14;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;58843:602:0;58865:24;;58861:28;;;;58843:602;;;58911:26;58940:4;:17;;58958:1;58940:20;;;;;;;;;;;;;;;;;;59015:10;58999:27;;:15;58940:20;;;;;58999:15;;;:27;;;;;;59047:11;;58940:20;;-1:-1:-1;58999:27:0;59047:15;59043:391;;59132:11;;59083:14;;:61;;-1:-1:-1;;;;;59083:14:0;;;;59119:10;;59083:61;:27;:61;:::i;:::-;59278:14;;59316:11;;59170:176;;;;;;;-1:-1:-1;;;;;59278:14:0;;;;59243:4;;59210:10;;59170:176;;;;;;;;;59379:1;59365:15;;;59399;;;:19;59043:391;-1:-1:-1;;58891:3:0;;58843:602;;;-1:-1:-1;;17628:11:0;:18;;-1:-1:-1;;17628:18:0;17642:4;17628:18;;;-1:-1:-1;;58669:783:0:o;39737:182::-;;;;;;;;;48302:246;48364:8;:15;48347:14;48390:151;48416:6;48410:3;:12;;;48390:151;;;48477:1;48450:8;48459:3;48450:13;;;;;;;;;;;;;;;;;;;;:24;;;:28;48446:84;;;48499:15;48510:3;48499:15;;:10;:15::i;:::-;48424:5;;48390:151;;50030:1959;42356:8;:15;50156:7;;50132:4;;42349:22;;42341:49;;;;;-1:-1:-1;;;42341:49:0;;;;;;;;;;;;-1:-1:-1;;;42341:49:0;;;;;;;;;;;;;;;50181:20;;:::i;:::-;50204:8;50213:4;50204:14;;;;;;;;;;;;;;;;;;50181:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;50181:37:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;50181:37:0;;;-1:-1:-1;50181:37:0;;;;;;;;;;;;;;;;;;50270:12;;50181:37;;-1:-1:-1;;;50270:17:0;;:41;;-1:-1:-1;50291:15:0;;;;:20;50270:41;50266:575;;;50333:7;50328:466;50350:17;;:24;50346:28;;;;50328:466;;;50400:20;;:::i;:::-;50444:8;50453:4;50444:14;;;;;;;;;;;;;;;;;;:27;;50472:1;50444:30;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;50444:46:0;;;;:39;:30;;;;;:39;;;;:46;;;;;;;50400:90;;;;;;;;;;;;;;;;;;;;;50631:17;;:20;;50400:90;;-1:-1:-1;50524:254:0;;50563:196;;50400:90;50563:149;;38149:4;;50563:103;;50631:20;;;;;;;;;;;;;;;;:34;;;50563:4;:37;;;:67;;:103;;;;:::i;:149::-;:179;:196;:179;:196;:::i;:::-;50524:12;;:254;:16;:254;:::i;:::-;50509:269;-1:-1:-1;;50376:3:0;;50328:466;;;-1:-1:-1;50817:12:0;-1:-1:-1;50810:19:0;;-1:-1:-1;50810:19:0;50266:575;50854:18;50893:53;50911:4;:20;;;50933:12;50893:17;:53::i;:::-;50853:93;;;;50959:18;50980:49;51016:12;;50980:31;50995:4;:15;;;50980:10;:14;;:31;;;;:::i;:49::-;50959:70;-1:-1:-1;51047:7:0;51042:908;51064:17;;:24;51060:28;;;;51042:908;;;51110:25;;:::i;:::-;51138:17;;:20;;;;;;;;;;;;;;;;;;51110:48;;51173:16;51192:6;:14;;;-1:-1:-1;;;;;51192:24:0;;51225:4;51192:39;;;;;;;;;;;;;-1:-1:-1;;;;;51192:39:0;-1:-1:-1;;;;;51192:39:0;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;51192:39:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;51192:39:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;51192:39:0;;-1:-1:-1;51250:13:0;51246:62;;51284:8;;;;51246:62;51341:4;:20;;;51326:12;:35;51322:318;;;51382:16;51422:52;51458:4;:15;;;51422:31;51437:6;:15;;;51422:10;:14;;:31;;;;:::i;:52::-;51382:92;-1:-1:-1;51516:108:0;51563:42;51596:8;51563:28;51382:92;38149:4;51563:28;:12;:28;:::i;51516:108::-;51493:20;;;:131;-1:-1:-1;51322:318:0;51654:20;;:::i;:::-;51694:8;51703:4;51694:14;;;;;;;;;;;;;;;;;;:27;;51722:1;51694:30;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;51694:46:0;;;;:39;:30;;;;;:39;;;;:46;;;;;;;51654:86;;;;;;;;;;;;;;;;;;;;;;;;51821:20;;;;51654:86;;-1:-1:-1;51770:168:0;;51805:118;;51654:86;51805:57;;38149:4;;51805:37;;;:15;:37;:::i;:118::-;51770:12;;:168;:16;:168;:::i;:::-;51755:183;;51042:908;;;;51090:3;;51042:908;;;-1:-1:-1;51969:12:0;;-1:-1:-1;;;;42401:1:0;50030:1959;;;;;:::o;40229:19::-;;;-1:-1:-1;;;;;40229:19:0;;:::o;40395:24::-;;;-1:-1:-1;;;;;40395:24:0;;:::o;46289:917::-;46426:25;46466:29;46510:26;46551:31;46388:4;42356:8;:15;;;;42349:4;:22;42341:49;;;;;-1:-1:-1;;;42341:49:0;;;;;;;;;;;;-1:-1:-1;;;42341:49:0;;;;;;;;;;;;;;;46610:20;;:::i;:::-;46633:8;46642:4;46633:14;;;;;;;;;;;;;;;;;;46610:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;46610:37:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;46658:14;46675:4;:17;;;:24;46658:41;;46735:6;46721:21;;;;;;;;;;;;;;;;;;;;;;29:2:-1;21:6;17:15;117:4;105:10;97:6;88:34;136:17;;-1:-1;46721:21:0;;46710:32;;46782:6;46768:21;;;;;;;;;;;;;;;;;;;;;;29:2:-1;21:6;17:15;117:4;105:10;97:6;88:34;136:17;;-1:-1;46768:21:0;;46753:36;;46826:6;46812:21;;;;;;;;;;;;;;;;;;;;;;29:2:-1;21:6;17:15;117:4;105:10;97:6;88:34;136:17;;-1:-1;46812:21:0;;46800:33;;46875:6;46861:21;;;;;;;;;;;;;;;;;;;;;;29:2:-1;21:6;17:15;117:4;105:10;97:6;88:34;136:17;;-1:-1;46861:21:0;-1:-1:-1;46844:38:0;-1:-1:-1;46898:7:0;46893:306;46915:6;46911:1;:10;;;46893:306;;;46965:17;;:20;;;;;;;;;;;;;;;;;;:28;;;46943:8;46952:1;46943:11;;;;;;;;;;-1:-1:-1;;;;;46943:51:0;;;:11;;;;;;;;;;;:51;47027:17;;:20;;;;;;;;;;;;;;;;;;:32;;;47009:12;47022:1;47009:15;;;;;;;;;;;;;;;;;;;:50;47089:17;;:20;;;;;;;;;;;;;;;;;;:29;;;47074:9;47084:1;47074:12;;;;;;;;;;;;;;;;;;;:44;47153:17;;:20;;;;;;;;;;;;;;;;;;:34;;;47133:14;47148:1;47133:17;;;;;;;;;;;;;;;;;;;:54;46923:3;;46893:306;;;;42401:1;;46289:917;;;;;;:::o;40734:31::-;;;;:::o;62714:781::-;62838:10;;62769:7;;62804:12;;62831:17;;62827:58;;;62872:1;62865:8;;;;;62827:58;62907:57;62922:14;62937:25;62922:41;;;62907:10;;;:57;:14;:57;:::i;:::-;62899:4;:65;62895:146;;-1:-1:-1;;62988:41:0;;62981:48;;62895:146;63051:13;;63079:234;63103:21;63099:1;:25;63079:234;;;63146:22;63171:33;63186:14;63201:1;63186:17;;;;;;63171:33;63146:58;;63231:14;63223:4;:22;63219:83;;63274:12;:5;63284:1;63274:12;:9;:12;:::i;:::-;63266:20;;63219:83;-1:-1:-1;63126:3:0;;63079:234;;;-1:-1:-1;63369:21:0;63361:5;:29;63325:123;;;;;-1:-1:-1;;;63325:123:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;63466:14;63481:5;63466:21;;;;;;;;;63459:28;;;;62714:781;:::o;40104:16::-;;;-1:-1:-1;;;;;40104:16:0;;:::o;43253:176::-;42164:4;;-1:-1:-1;;;;;42164:4:0;42150:10;:18;42142:45;;;;;-1:-1:-1;;;42142:45:0;;;;;;;;;;;;-1:-1:-1;;;42142:45:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;43322:19:0;;43314:48;;;;;-1:-1:-1;;;43314:48:0;;;;;;;;;;;;-1:-1:-1;;;43314:48:0;;;;;;;;;;;;;;;43386:4;;43378:20;;-1:-1:-1;;;;;43378:20:0;;;;43386:4;;43378:20;;43386:4;;43378:20;43409:4;:12;;-1:-1:-1;;;;;;43409:12:0;-1:-1:-1;;;;;43409:12:0;;;;;;;;;;43253:176::o;40303:47::-;;;;;;;;;;;;;;;:::o;42840:128::-;42164:4;;-1:-1:-1;;;;;42164:4:0;42150:10;:18;42142:45;;;;;-1:-1:-1;;;42142:45:0;;;;;;;;;;;;-1:-1:-1;;;42142:45:0;;;;;;;;;;;;;;;42906:12;:19;;;42941;;42921:4;;42941:19;;;;;42840:128;:::o;63592:239::-;42164:4;;-1:-1:-1;;;;;42164:4:0;42150:10;:18;42142:45;;;;;-1:-1:-1;;;42142:45:0;;;;;;;;;;;;-1:-1:-1;;;42142:45:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;63682:22:0;;;;;;:15;:22;;;;;;;;63674:54;;;;;-1:-1:-1;;;63674:54:0;;;;;;;;;;;;-1:-1:-1;;;63674:54:0;;;;;;;;;;;;;;;63768:4;;63741:40;;-1:-1:-1;;;;;63741:26:0;;;;63768:4;63774:6;63741:40;:26;:40;:::i;:::-;63803:4;;63797:26;;63816:6;;-1:-1:-1;;;;;63797:26:0;;;;63803:4;;;63797:26;;63803:4;;63797:26;63592:239;;:::o;60743:1963::-;60860:20;60895:18;60928:16;60989:3;60980:5;:12;;60972:42;;;;;-1:-1:-1;;;60972:42:0;;;;;;;;;;;;-1:-1:-1;;;60972:42:0;;;;;;;;;;;;;;;61101:10;;61027:17;;;;61095:16;;61091:79;;;61136:1;;-1:-1:-1;61139:9:0;;-1:-1:-1;61150:7:0;-1:-1:-1;61128:30:0;;61091:79;61209:57;61224:14;61239:25;61224:41;;61209:57;61200:5;:66;61182:313;;61338:41;;61319:61;;:14;:3;61327:5;61319:7;:14::i;:::-;:18;:61;:18;:61;:::i;:::-;61293:190;-1:-1:-1;61399:25:0;;-1:-1:-1;61399:25:0;;-1:-1:-1;61293:190:0;;-1:-1:-1;;61293:190:0;61182:313;61507:13;;61537:341;61561:21;61557:1;:25;61537:341;;;61604:22;61629:33;61644:14;61659:1;61644:17;;;;;;61629:33;61604:58;;61689:14;61681:5;:22;61677:91;;;61736:16;:9;61750:1;61736:16;:13;:16;:::i;:::-;61724:28;;61677:91;61792:14;61786:3;:20;61782:85;;;61837:14;:7;61849:1;61837:14;:11;:14;:::i;:::-;61827:24;;61782:85;-1:-1:-1;61584:3:0;;61537:341;;;-1:-1:-1;61911:9:0;61931:721;61946:3;61938:5;:11;61931:721;;;61978:10;;61970:5;:18;61966:77;;;62017:10;;62009:18;;61966:77;62057:17;62077:23;:7;62089:10;62077:23;:11;:23;:::i;:::-;62057:43;-1:-1:-1;62119:14:0;62115:526;;62179:14;62194:10;62179:26;;;;;;;;;62170:5;62164:3;:11;62163:42;62154:51;;;;62232:3;62224:11;;62254:5;;;62115:526;62285:13;;62281:360;;62319:17;62339:42;62354:14;62369:10;62354:26;;;;;;62339:42;62319:62;;62431:14;62446:10;62431:26;;;;;;;;;62410:9;;:17;;62409:48;62400:57;;;;;62410:9;62525:17;:10;62540:1;62525:17;:14;:17;:::i;:::-;62512:30;;62281:360;;;;62620:5;;;62281:360;61931:721;;;;-1:-1:-1;62672:5:0;-1:-1:-1;62679:9:0;;-1:-1:-1;62690:7:0;-1:-1:-1;60743:1963:0;;;;;;:::o;52058:4042::-;42356:8;:15;52177:4;;42349:22;;42341:49;;;;;-1:-1:-1;;;42341:49:0;;;;;;;;;;;;-1:-1:-1;;;42341:49:0;;;;;;;;;;;;;;;52212:1;52202:7;:11;52194:40;;;;;-1:-1:-1;;;52194:40:0;;;;;;;;;;;;-1:-1:-1;;;52194:40:0;;;;;;;;;;;;;;;52247:21;52271:8;52280:4;52271:14;;;;;;;;;;;;;;;;;;52247:38;;52296:13;52312:33;52330:4;52336:8;52312:17;:33::i;:::-;52296:49;;52356:23;52382:38;52399:4;:20;;;52382:12;:16;;:38;;;;:::i;:::-;52356:64;;52449:8;52458:4;52449:14;;;;;;;;;;;;;;;;;;;;;:34;52441:42;;52433:70;;;;;-1:-1:-1;;;52433:70:0;;;;;;;;;;;;-1:-1:-1;;;52433:70:0;;;;;;;;;;;;;;;52516:16;52527:4;52516:10;:16::i;:::-;52545:21;52582:8;52591:4;52582:14;;;;;;;;;;;;;;;;;;:27;;52610:5;52582:34;;;;;;;;;;;;;;;;52626:10;52582:55;;:43;:34;;;;;:43;;;;:55;;;;;52654:11;;52582:55;;-1:-1:-1;52654:15:0;52650:3018;;52686:15;52721:184;52889:4;:15;;;52721:141;38149:4;52721:99;52781:4;:17;;52799:5;52781:24;;;;;;;;;;;;;;;;:38;:24;;;;;:38;;52721:33;;;:99;:59;:99;:::i;:184::-;52686:219;-1:-1:-1;52926:11:0;;52922:1424;;53086:6;;:28;;;-1:-1:-1;;;53086:28:0;;53103:10;53086:28;;;;;;53019:20;;;;-1:-1:-1;;;;;53086:6:0;;;;:16;;:28;;;;;;;;;;;:6;:28;;;5:2:-1;;;;30:1;27;20:12;5:2;53086:28:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;53086:28:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;53086:28:0;;;;;;;53147:12;;53086:28;;-1:-1:-1;53086:28:0;-1:-1:-1;53139:20:0;;53135:1196;;;53188:15;53184:540;;;53317:6;;:48;;;-1:-1:-1;;;53317:48:0;;53336:10;53317:48;;;;53269:16;53317:48;;;;;;;;53269:16;;-1:-1:-1;;;;;53317:6:0;;:18;;:48;;;;;;;;;;;;;;;:6;:48;;;5:2:-1;;;;30:1;27;20:12;5:2;53317:48:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;53317:48:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;53317:48:0;;-1:-1:-1;53400:12:0;53392:44;;;;;-1:-1:-1;;;53392:44:0;;;;;;;;;;;;-1:-1:-1;;;53392:44:0;;;;;;;;;;;;;;;53465:4;;53486:6;;53465:38;;;-1:-1:-1;;;53465:38:0;;-1:-1:-1;;;;;53486:6:0;;;53465:38;;;;;;;;;;;;:4;;;;;:12;;:38;;;;;;;;;;;;;;:4;;:38;;;5:2:-1;;;;30:1;27;20:12;5:2;53465:38:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;53465:38:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;53530:6:0;;:170;;;-1:-1:-1;;;53530:170:0;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;53530:6:0;;;;:20;;:170;;;;;53465:38;;53530:170;;;;;;;;:6;;:170;;;5:2:-1;;;;30:1;27;20:12;5:2;53530:170:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;53530:170:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;53184:540:0;53135:1196;;;53776:15;53772:540;;;53905:6;;:48;;;-1:-1:-1;;;53905:48:0;;53924:10;53905:48;;;;:6;:48;;;;;;53857:16;;-1:-1:-1;;;;;53905:6:0;;:18;;:48;;;;;;;;;;;;;;:6;:48;;;5:2:-1;;;;30:1;27;20:12;5:2;53905:48:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;53905:48:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;53905:48:0;;-1:-1:-1;53988:12:0;53980:44;;;;;-1:-1:-1;;;53980:44:0;;;;;;;;;;;;-1:-1:-1;;;53980:44:0;;;;;;;;;;;;;;;54053:4;;54074:6;;54053:38;;;-1:-1:-1;;;54053:38:0;;-1:-1:-1;;;;;54074:6:0;;;54053:38;;;;;;;;;;;;:4;;;;;:12;;:38;;;;;;;;;;;;;;:4;;:38;;;5:2:-1;;;;30:1;27;20:12;5:2;54053:38:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;54053:38:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;54118:6:0;;:170;;;-1:-1:-1;;;54118:170:0;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;54118:6:0;;;;:20;;:170;;;;;54053:38;;54118:170;;;;;;;;:6;;:170;;;5:2:-1;;;;30:1;27;20:12;5:2;54118:170:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;54118:170:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;53772:540:0;52922:1424;;;52650:3018;;;;54378:19;54400:12;54415:1;54400:16;54378:38;;54450:10;;54435:12;:25;54431:90;;;-1:-1:-1;54495:10:0;;54431:90;54643:6;;:28;;;-1:-1:-1;;;54643:28:0;;54660:10;54643:28;;;;;;54580:20;;;;-1:-1:-1;;;;;54643:6:0;;;;:16;;:28;;;;;;;;;;;:6;:28;;;5:2:-1;;;;30:1;27;20:12;5:2;54643:28:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;54643:28:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;54643:28:0;;;;;;;54757:12;;54643:28;;-1:-1:-1;54643:28:0;-1:-1:-1;54749:20:0;;54745:912;;;54795:15;54790:406;;54835:4;;:43;;;-1:-1:-1;;;54835:43:0;;54853:4;54835:43;;;;40038:8;54835:43;;;;;;-1:-1:-1;;;;;54835:4:0;;;;:9;;:43;;;;;:4;;:43;;;;;;;;:4;;:43;;;5:2:-1;;;;30:1;27;20:12;5:2;54835:43:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;-1:-1;;54901:4:0;;54922:6;;54901:48;;;-1:-1:-1;;;54901:48:0;;-1:-1:-1;;;;;54922:6:0;;;54901:48;;;;40038:8;54901:48;;;;;;:4;;;;;-1:-1:-1;54901:12:0;;-1:-1:-1;54901:48:0;;;;;;;;;;;;;;:4;;:48;;;5:2:-1;;;;30:1;27;20:12;5:2;54901:48:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;54901:48:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;54972:6:0;;:204;;;-1:-1:-1;;;54972:204:0;;55018:10;54972:204;;;;40038:8;54972:204;;;;:6;:204;;;;;;;;;;;;;;-1:-1:-1;;;;;54972:6:0;;;;:19;;:204;;;;;54901:48;;54972:204;;;;;;;;;;;:6;:204;;;5:2:-1;;;;30:1;27;20:12;5:2;54972:204:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;54972:204:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;54790:406:0;54745:912;;;55241:15;55236:406;;55281:4;;:43;;;-1:-1:-1;;;55281:43:0;;55299:4;55281:43;;;;40038:8;55281:43;;;;;;-1:-1:-1;;;;;55281:4:0;;;;:9;;:43;;;;;:4;;:43;;;;;;;;:4;;:43;;;5:2:-1;;;;30:1;27;20:12;5:2;55281:43:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;-1:-1;;55347:4:0;;55368:6;;55347:48;;;-1:-1:-1;;;55347:48:0;;-1:-1:-1;;;;;55368:6:0;;;55347:48;;;;40038:8;55347:48;;;;;;:4;;;;;-1:-1:-1;55347:12:0;;-1:-1:-1;55347:48:0;;;;;;;;;;;;;;:4;;:48;;;5:2:-1;;;;30:1;27;20:12;5:2;55347:48:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;55347:48:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;55418:6:0;;:204;;;-1:-1:-1;;;55418:204:0;;55464:10;55418:204;;;;40038:8;55418:204;;;;:6;:204;;;;;;;;;;;;-1:-1:-1;;;;;55418:6:0;;;;:19;;:204;;;;;55347:48;;55418:204;;;;;;;;:6;;:204;;;5:2:-1;;;;30:1;27;20:12;5:2;55418:204:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;55418:204:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;55236:406:0;52650:3018;;;;55680:144;55752:10;55786:4;55806:7;55680:4;:17;;55698:5;55680:24;;;;;;;;;;;;;;;;;;;;;:32;-1:-1:-1;;;;;55680:32:0;;:144;;;:49;:144;:::i;:::-;55849:11;;:24;;55865:7;55849:24;:15;:24;:::i;:::-;55835:38;;55948:24;;55904:117;;38149:4;;55904:83;;55948:4;;55966:5;;55948:24;;;;;;;;;;;;;;:38;:24;;;;;:38;;55904:25;;;:83;:43;:83;:::i;:117::-;55886:15;;;:135;56039:53;;;;;;;;-1:-1:-1;;;;;56039:53:0;;;56059:4;;56047:10;;56039:53;;;;;;;;;;42401:1;;;;52058:4042;;;;:::o;44921:1360::-;42164:4;;-1:-1:-1;;;;;42164:4:0;42150:10;:18;42142:45;;;;;-1:-1:-1;;;42142:45:0;;;;;;;;;;;;-1:-1:-1;;;42142:45:0;;;;;;;;;;;;;;;42356:8;:15;45089:4;;42349:22;;42341:49;;;;;-1:-1:-1;;;42341:49:0;;;;;;;;;;;;-1:-1:-1;;;42341:49:0;;;;;;;;;;;;;;;45126:1;45114:9;:13;45106:49;;;;;-1:-1:-1;;;45106:49:0;;;;;;;;;;;;-1:-1:-1;;;45106:49:0;;;;;;;;;;;;;;;45168:17;:15;:17::i;:::-;45198:20;;:::i;:::-;45221:8;45230:4;45221:14;;;;;;;;;;;;;;;;;;45198:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;45198:37:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;45198:37:0;;;-1:-1:-1;45198:37:0;;;;;;;;;;;;;;;;;;;;;;;45292:32;;;;;;;;-1:-1:-1;;;;;;45292:32:0;;;;;;;;;;;22::-1;26:21;;;22:32;6:49;;45292:32:0;;;;;;45282:43;;;;;;-1:-1:-1;45268:58:0;;;;;;;;45198:37;;-1:-1:-1;45268:63:0;45246:135;;;;;-1:-1:-1;;;45246:135:0;;;;;;;;;;;;-1:-1:-1;;;45246:135:0;;;;;;;;;;;;;;;45441:17;;:24;38046:1;45498:24;;;;;:51;;;38097:1;45526:5;:23;45498:51;45476:127;;;;;-1:-1:-1;;;45476:127:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;45631:12;;:27;;45648:9;45631:27;:16;:27;:::i;:::-;45616:12;:42;45671:30;;:::i;:::-;-1:-1:-1;45717:181:0;;;;;;;;-1:-1:-1;;;;;45717:181:0;;;;;;;;;;;;;;;;;-1:-1:-1;45717:181:0;;;;45937:15;;;;:30;;45838:9;45937:30;:19;:30;:::i;:::-;45909:8;45918:4;45909:14;;;;;;;;;;;;;;;;;;:25;;:58;;;;45978:8;45987:4;45978:14;;;;;;;;;;;;;;;;;;;;;27:10:-1;;39:1;23:18;;;45:23;;45978:45:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;;45978:45:0;-1:-1:-1;;;;;45978:45:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;46154:32;;;;;;;;;;;;-1:-1:-1;;;;;;46154:32:0;;;;;;;26:21:-1;;;22:32;;6:49;;46154:32:0;;;;;;46144:43;;;;;;;;;46130:58;;;;;;;;;;46191:9;;;46130:70;;;46218:55;;;;;;46249:12;;46154:32;;;;;46218:55;;;;;;;;;;42401:1;;;42198;44921:1360;;;;:::o;43011:213::-;42164:4;;-1:-1:-1;;;;;42164:4:0;42150:10;:18;42142:45;;;;;-1:-1:-1;;;42142:45:0;;;;;;;;;;;;-1:-1:-1;;;42142:45:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;43084:21:0;;43076:50;;;;;-1:-1:-1;;;43076:50:0;;;;;;;;;;;;-1:-1:-1;;;43076:50:0;;;;;;;;;;;;;;;43160:6;;43142:35;;-1:-1:-1;;;;;43142:35:0;;;;43160:6;;43142:35;;43160:6;;43142:35;43188:6;:28;;-1:-1:-1;;;;;;43188:28:0;-1:-1:-1;;;;;43188:28:0;;;;;;;;;;43011:213::o;56108:2490::-;42356:8;:15;56226:4;;42349:22;;42341:49;;;;;-1:-1:-1;;;42341:49:0;;;;;;;;;;;;-1:-1:-1;;;42341:49:0;;;;;;;;;;;;;;;56243:21;56267:8;56276:4;56267:14;;;;;;;;;;;;;;;;;;56243:38;;56292:13;56308:33;56326:4;56332:8;56308:17;:33::i;:::-;56292:49;;56368:8;56377:4;56368:14;;;;;;;;;;;;;;;;;;;;;:34;56360:42;;56352:70;;;;;-1:-1:-1;;;56352:70:0;;;;;;;;;;;;-1:-1:-1;;;56352:70:0;;;;;;;;;;;;;;;56433:23;56459:38;56476:4;:20;;;56459:12;:16;;:38;;;;:::i;:::-;56433:64;;56510:16;56521:4;56510:10;:16::i;:::-;56539:21;56576:8;56585:4;56576:14;;;;;;;;;;;;;;;;;;:27;;56604:5;56576:34;;;;;;;;;;;;;;;;56620:10;56576:55;;:43;:34;;;;;:43;;;;:55;;;;;56650:11;;56576:55;;-1:-1:-1;56650:22:0;-1:-1:-1;56650:22:0;56642:61;;;;;-1:-1:-1;;;56642:61:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;56716:15;56747:168;56899:4;:15;;;56747:129;38149:4;56747:91;56799:4;:17;;56817:5;56799:24;;;;;;;56747:168;56716:199;-1:-1:-1;56932:11:0;;56928:1214;;57080:6;;:28;;;-1:-1:-1;;;57080:28:0;;57097:10;57080:28;;;;;;57017:20;;;;-1:-1:-1;;;;;57080:6:0;;;;:16;;:28;;;;;;;;;;;:6;:28;;;5:2:-1;;;;30:1;27;20:12;5:2;57080:28:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;57080:28:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;57080:28:0;;;;;;;57182:4;;57203:6;;57080:28;57182:38;;-1:-1:-1;;;57182:38:0;;-1:-1:-1;;;;;57203:6:0;;;57182:38;;;;;;;;;;;;57080:28;;-1:-1:-1;57080:28:0;;-1:-1:-1;57182:4:0;;:12;;:38;;;;;;;;;;:4;;:38;;;5:2:-1;;;;30:1;27;20:12;5:2;57182:38:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;57182:38:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;57249:12:0;;57241:20;;57237:894;;;57286:15;57282:397;;;57402:6;;:48;;;-1:-1:-1;;;57402:48:0;;57421:10;57402:48;;;;57358:16;57402:48;;;;;;;;57358:16;;-1:-1:-1;;;;;57402:6:0;;:18;;:48;;;;;;;;;;;;;;;:6;:48;;;5:2:-1;;;;30:1;27;20:12;5:2;57402:48:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;57402:48:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;57402:48:0;;-1:-1:-1;57481:12:0;57473:44;;;;;-1:-1:-1;;;57473:44:0;;;;;;;;;;;;-1:-1:-1;;;57473:44:0;;;;;;;;;;;;;;;57542:4;;57563:6;;57542:38;;;-1:-1:-1;;;57542:38:0;;-1:-1:-1;;;;;57563:6:0;;;57542:38;;;;;;;;;;;;:4;;;;;:12;;:38;;;;;;;;;;;;;;:4;;:38;;;5:2:-1;;;;30:1;27;20:12;5:2;57542:38:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;57542:38:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;57603:6:0;;:56;;;-1:-1:-1;;;57603:56:0;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;57603:6:0;;;;:20;;:56;;;;;57542:38;;57603:56;;;;;;;;:6;;:56;;;5:2:-1;;;;30:1;27;20:12;5:2;57603:56:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;57603:56:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;57282:397:0;57237:894;;;57723:15;57719:397;;;57839:6;;:48;;;-1:-1:-1;;;57839:48:0;;57858:10;57839:48;;;;:6;:48;;;;;;57795:16;;-1:-1:-1;;;;;57839:6:0;;:18;;:48;;;;;;;;;;;;;;:6;:48;;;5:2:-1;;;;30:1;27;20:12;5:2;57839:48:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;57839:48:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;57839:48:0;;-1:-1:-1;57918:12:0;57910:44;;;;;-1:-1:-1;;;57910:44:0;;;;;;;;;;;;-1:-1:-1;;;57910:44:0;;;;;;;;;;;;;;;57979:4;;58000:6;;57979:38;;;-1:-1:-1;;;57979:38:0;;-1:-1:-1;;;;;58000:6:0;;;57979:38;;;;;;;;;;;;:4;;;;;:12;;:38;;;;;;;;;;;;;;:4;;:38;;;5:2:-1;;;;30:1;27;20:12;5:2;57979:38:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;57979:38:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;58040:6:0;;:56;;;-1:-1:-1;;;58040:56:0;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;58040:6:0;;;;:20;;:56;;;;;57979:38;;58040:56;;;;;;;;:6;;:56;;;5:2:-1;;;;30:1;27;20:12;5:2;58040:56:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;58040:56:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;57719:397:0;56928:1214;;;58156:11;;58152:221;;58198:11;;:24;;58214:7;58198:24;:15;:24;:::i;:::-;58184:38;;58237:24;;:124;;58309:10;;58339:7;;58237:4;;58255:5;;58237:24;;;;;;;;;;;;;;;;;;;:32;-1:-1:-1;;;;;58237:32:0;;:124;;:45;:124;:::i;:::-;58401:117;38149:4;58401:83;58445:4;:17;;58463:5;58445:24;;;;;;;;;;;;;;;;:38;:24;;;;;:38;;58401:25;;;:83;:43;:83;:::i;:117::-;58383:15;;;:135;58536:54;;;;;;;;-1:-1:-1;;;;;58536:54:0;;;58557:4;;58545:10;;58536:54;;;;;;;;;;42401:1;;;;;56108:2490;;;;:::o;40055:19::-;;;-1:-1:-1;;;;;40055:19:0;;:::o;63839:156::-;42164:4;;-1:-1:-1;;;;;42164:4:0;42150:10;:18;42142:45;;;;;-1:-1:-1;;;42142:45:0;;;;;;;;;;;;-1:-1:-1;;;42142:45:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;63953:22:0;;;;;;;;:15;:22;;;;;:34;;-1:-1:-1;;63953:34:0;;;;;;;;;;63839:156::o;64064:322::-;64250:32;;;;;;;;;;-1:-1:-1;;;;;;64250:32:0;;;;;;;;;;;22::-1;26:21;;;22:32;6:49;;64250:32:0;;;;;;64240:43;;;;;;;;;64172:7;64226:58;;;:13;:58;;;;;;;64303:9;64295:58;;;;-1:-1:-1;;;64295:58:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;64371:7:0;;-1:-1:-1;64064:322:0;;;;;:::o;4249:136::-;4307:7;4334:43;4338:1;4341;4334:43;;;;;;;;;;;;;;;;;:3;:43::i;:::-;4327:50;4249:136;-1:-1:-1;;;4249:136:0:o;3793:181::-;3851:7;3883:5;;;3907:6;;;;3899:46;;;;;-1:-1:-1;;;3899:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;5165:471;5223:7;5468:6;5464:47;;-1:-1:-1;5498:1:0;5491:8;;5464:47;5535:5;;;5539:1;5535;:5;:1;5559:5;;;;;:10;5551:56;;;;-1:-1:-1;;;5551:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6104:132;6162:7;6189:39;6193:1;6196;6189:39;;;;;;;;;;;;;;;;;:3;:39::i;12124:176::-;12233:58;;;-1:-1:-1;;;;;12233:58:0;;;;;;;;;;;;;;;26:21:-1;;;22:32;;;6:49;;12233:58:0;;;;;;;;25:18:-1;;61:17;;-1:-1;;;;;182:15;-1:-1;;;179:29;160:49;;12207:85:0;;12226:5;;12207:18;:85::i;:::-;12124:176;;;:::o;12308:204::-;12435:68;;;-1:-1:-1;;;;;12435:68:0;;;;;;;;;;;;;;;;;;;;;;26:21:-1;;;22:32;;;6:49;;12435:68:0;;;;;;;;25:18:-1;;61:17;;-1:-1;;;;;182:15;-1:-1;;;179:29;160:49;;12409:95:0;;12428:5;;12409:18;:95::i;:::-;12308:204;;;;:::o;4722:192::-;4808:7;4844:12;4836:6;;;;4828:29;;;;-1:-1:-1;;;4828:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;4828:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;4880:5:0;;;4722:192::o;6766:345::-;6852:7;6954:12;6947:5;6939:28;;;;-1:-1:-1;;;6939:28:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27:10:-1;;8:100;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;6939:28:0;;6978:9;6994:1;6990;:5;;;;;;;6766:345;-1:-1:-1;;;;;6766:345:0:o;14163:1114::-;14767:27;14775:5;-1:-1:-1;;;;;14767:25:0;;:27::i;:::-;14759:71;;;;;-1:-1:-1;;;14759:71:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;14904:12;14918:23;14953:5;-1:-1:-1;;;;;14945:19:0;14965:4;14945:25;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:11;36:153;;176:10;;164:23;;-1:-1;;139:12;;;;98:2;89:12;;;;114;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;14945:25:0;;;;;;;;;;;;;;;;;;;;;;;;14:1:-1;21;16:31;;;;75:4;69:11;64:16;;144:4;140:9;133:4;115:16;111:27;107:43;104:1;100:51;94:4;87:65;169:16;166:1;159:27;225:16;222:1;215:4;212:1;208:12;193:49;7:242;;16:31;36:4;31:9;;7:242;;14903:67:0;;;;14989:7;14981:52;;;;;-1:-1:-1;;;14981:52:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;15050:17;;:21;15046:224;;15192:10;15181:30;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;15181:30:0;15173:85;;;;-1:-1:-1;;;15173:85:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;9153:619;9213:4;9681:20;;9524:66;9721:23;;;;;;:42;;-1:-1:-1;9748:15:0;;;9721:42;9713:51;9153:619;-1:-1:-1;;;;9153:619:0:o;37694:26695::-;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;-1:-1:-1;;;;;37694:26695:0;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;37694:26695:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::o;:::-;;;;;;;;;;;;;-1:-1:-1;;;;;;37694:26695:0;;;;;;;;;;;;;;;;;;;;;;;

Swarm Source

bzzr://78ee108f036656281c9cae1df9275aa0d39ab0646ad6e1bbf78df78b470efb30

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  ]

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.