ETH Price: $3,440.64 (+3.33%)
Gas: 9.23 Gwei

Contract

0xE3FEF783783f97c7647c1F108D1c561e5EC13f92
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Liquidate Positi...183769582023-10-18 11:31:59402 days ago1697628719IN
0xE3FEF783...e5EC13f92
0 ETH0.0036957714.42727319
Open Long Positi...183769582023-10-18 11:31:59402 days ago1697628719IN
0xE3FEF783...e5EC13f92
0 ETH0.0081657714.42727319
Deposit183769312023-10-18 11:26:23402 days ago1697628383IN
0xE3FEF783...e5EC13f92
0 ETH0.000354937.59723997
Liquidate Positi...183769212023-10-18 11:24:23402 days ago1697628263IN
0xE3FEF783...e5EC13f92
0 ETH0.0038451115.01025686
Open Long Positi...183769212023-10-18 11:24:23402 days ago1697628263IN
0xE3FEF783...e5EC13f92
0 ETH0.0084957415.01025686
Deposit183769082023-10-18 11:21:47402 days ago1697628107IN
0xE3FEF783...e5EC13f92
0 ETH0.000399988.56159943
Liquidate Positi...183769012023-10-18 11:20:23402 days ago1697628023IN
0xE3FEF783...e5EC13f92
0 ETH0.0035171813.72944649
Open Long Positi...183769012023-10-18 11:20:23402 days ago1697628023IN
0xE3FEF783...e5EC13f92
0 ETH0.0077708113.72944649
Deposit183768962023-10-18 11:19:23402 days ago1697627963IN
0xE3FEF783...e5EC13f92
0 ETH0.000382598.18917465
Liquidate Positi...164481812023-01-20 13:01:23673 days ago1674219683IN
0xE3FEF783...e5EC13f92
0 ETH0.0061785324.11814585
Open Long Positi...164481812023-01-20 13:01:23673 days ago1674219683IN
0xE3FEF783...e5EC13f92
0 ETH0.0136507724.11814585
Deposit164481702023-01-20 12:59:11673 days ago1674219551IN
0xE3FEF783...e5EC13f92
0 ETH0.0009307815.77738023
Liquidate Positi...164465952023-01-20 7:43:23673 days ago1674200603IN
0xE3FEF783...e5EC13f92
0 ETH0.0042312916.51700716
Open Long Positi...164465952023-01-20 7:43:23673 days ago1674200603IN
0xE3FEF783...e5EC13f92
0 ETH0.0092688816.51700716
Deposit164465882023-01-20 7:41:59673 days ago1674200519IN
0xE3FEF783...e5EC13f92
0 ETH0.0008688714.72795032
Liquidate Positi...164465292023-01-20 7:29:59673 days ago1674199799IN
0xE3FEF783...e5EC13f92
0 ETH0.0043285316.89660119
Open Long Positi...164465292023-01-20 7:29:59673 days ago1674199799IN
0xE3FEF783...e5EC13f92
0 ETH0.0094818916.89660119
Deposit164465222023-01-20 7:28:35673 days ago1674199715IN
0xE3FEF783...e5EC13f92
0 ETH0.0008070213.67954016
Liquidate Positi...164464462023-01-20 7:12:59673 days ago1674198779IN
0xE3FEF783...e5EC13f92
0 ETH0.0044000717.1758481
Open Long Positi...164464462023-01-20 7:12:59673 days ago1674198779IN
0xE3FEF783...e5EC13f92
0 ETH0.009638617.1758481
Deposit164464372023-01-20 7:11:11673 days ago1674198671IN
0xE3FEF783...e5EC13f92
0 ETH0.0008622914.61639702
Liquidate Positi...164462752023-01-20 6:38:47673 days ago1674196727IN
0xE3FEF783...e5EC13f92
0 ETH0.0045692517.83625611
Open Long Positi...164462752023-01-20 6:38:47673 days ago1674196727IN
0xE3FEF783...e5EC13f92
0 ETH0.010924217.83625611
Deposit164462662023-01-20 6:36:59673 days ago1674196619IN
0xE3FEF783...e5EC13f92
0 ETH0.0008697614.74296505
Withdraw117291692021-01-26 4:23:021397 days ago1611634982IN
0xE3FEF783...e5EC13f92
0 ETH0.0029257662.0062
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block From To
183769582023-10-18 11:31:59402 days ago1697628719
0xE3FEF783...e5EC13f92
0 ETH
183769582023-10-18 11:31:59402 days ago1697628719
0xE3FEF783...e5EC13f92
0 ETH
183769582023-10-18 11:31:59402 days ago1697628719
0xE3FEF783...e5EC13f92
0 ETH
183769582023-10-18 11:31:59402 days ago1697628719
0xE3FEF783...e5EC13f92
0 ETH
183769582023-10-18 11:31:59402 days ago1697628719
0xE3FEF783...e5EC13f92
0 ETH
183769582023-10-18 11:31:59402 days ago1697628719
0xE3FEF783...e5EC13f92
0 ETH
183769582023-10-18 11:31:59402 days ago1697628719
0xE3FEF783...e5EC13f92
0 ETH
183769582023-10-18 11:31:59402 days ago1697628719
0xE3FEF783...e5EC13f92
0 ETH
183769582023-10-18 11:31:59402 days ago1697628719
0xE3FEF783...e5EC13f92
0 ETH
183769582023-10-18 11:31:59402 days ago1697628719
0xE3FEF783...e5EC13f92
0 ETH
183769582023-10-18 11:31:59402 days ago1697628719
0xE3FEF783...e5EC13f92
0 ETH
183769582023-10-18 11:31:59402 days ago1697628719
0xE3FEF783...e5EC13f92
0 ETH
183769582023-10-18 11:31:59402 days ago1697628719
0xE3FEF783...e5EC13f92
0 ETH
183769582023-10-18 11:31:59402 days ago1697628719
0xE3FEF783...e5EC13f92
0 ETH
183769582023-10-18 11:31:59402 days ago1697628719
0xE3FEF783...e5EC13f92
0 ETH
183769582023-10-18 11:31:59402 days ago1697628719
0xE3FEF783...e5EC13f92
0 ETH
183769582023-10-18 11:31:59402 days ago1697628719
0xE3FEF783...e5EC13f92
0 ETH
183769582023-10-18 11:31:59402 days ago1697628719
0xE3FEF783...e5EC13f92
0 ETH
183769582023-10-18 11:31:59402 days ago1697628719
0xE3FEF783...e5EC13f92
0 ETH
183769582023-10-18 11:31:59402 days ago1697628719
0xE3FEF783...e5EC13f92
0 ETH
183769582023-10-18 11:31:59402 days ago1697628719
0xE3FEF783...e5EC13f92
0 ETH
183769582023-10-18 11:31:59402 days ago1697628719
0xE3FEF783...e5EC13f92
0 ETH
183769582023-10-18 11:31:59402 days ago1697628719
0xE3FEF783...e5EC13f92
0 ETH
183769582023-10-18 11:31:59402 days ago1697628719
0xE3FEF783...e5EC13f92
0 ETH
183769582023-10-18 11:31:59402 days ago1697628719
0xE3FEF783...e5EC13f92
0 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
UniMexMargin

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, Unlicense license

Contract Source Code (Solidity)

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

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


pragma solidity >=0.6.0 <0.8.0;

/*
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with 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.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address payable) {
        return msg.sender;
    }

    function _msgData() internal view virtual 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/access/Ownable.sol


pragma solidity >=0.6.0 <0.8.0;

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor () internal {
        address msgSender = _msgSender();
        _owner = msgSender;
        emit OwnershipTransferred(address(0), msgSender);
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(_owner == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        emit OwnershipTransferred(_owner, address(0));
        _owner = address(0);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }
}

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


pragma solidity >=0.6.0 <0.8.0;

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

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

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

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

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

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

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

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

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


pragma solidity >=0.6.0 <0.8.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.
     */
    function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b <= a, errorMessage);
        uint256 c = a - b;

        return c;
    }

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

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

        return c;
    }

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

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

        return c;
    }

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

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

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


pragma solidity >=0.6.2 <0.8.0;

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

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

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

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

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

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

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

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

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.call{ value: value }(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

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

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

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.staticcall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private pure returns(bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

                // solhint-disable-next-line no-inline-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

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


pragma solidity >=0.6.0 <0.8.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 IERC20;` 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));
    }

    /**
     * @dev Deprecated. This function has issues similar to the ones found in
     * {IERC20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    function safeApprove(IERC20 token, address spender, uint256 value) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        // 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. We use {Address.functionCall} to perform this call, which verifies that
        // the target address contains contract code and also asserts for success in the low-level call.

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

// File: contracts/Uniswap.sol


pragma solidity 0.6.12;


interface IUniswapV2Pair {
    function getReserves() external view returns (uint112 r0, uint112 r1, uint32 blockTimestampLast);
    function swap(uint amount0Out, uint amount1Out, address to, bytes calldata data) external;
}

interface IUniswapV2Factory {
    function getPair(address a, address b) external view returns (address p);
}

interface IUniswapV2Router02 {
    function WETH() external returns (address);

    function swapExactTokensForTokensSupportingFeeOnTransferTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external;
}

library UniswapV2Library {
    using SafeMath for uint;

    // returns sorted token addresses, used to handle return values from pairs sorted in this order
    function sortTokens(address tokenA, address tokenB) internal pure returns (address token0, address token1) {
        require(tokenA != tokenB, 'UV2: IDENTICAL_ADDRESSES');
        (token0, token1) = tokenA < tokenB ? (tokenA, tokenB) : (tokenB, tokenA);
        require(token0 != address(0), 'UV2: ZERO_ADDRESS');
    }
    
    // given an input amount of an asset and pair reserves, returns the maximum output amount of the other asset
    function getAmountOut(uint amountIn, uint reserveIn, uint reserveOut) internal pure returns (uint amountOut) {
        require(amountIn > 0, 'UV2: INSUFFICIENT_INPUT_AMOUNT');
        require(reserveIn > 0 && reserveOut > 0, 'UV2: INSUFFICIENT_LIQUIDITY');
        uint amountInWithFee = amountIn.mul(997);
        uint numerator = amountInWithFee.mul(reserveOut);
        uint denominator = reserveIn.mul(1000).add(amountInWithFee);
        amountOut = numerator / denominator;
    }
}

// File: contracts/IUniMexFactory.sol


pragma solidity 0.6.12;

interface IUniMexFactory {
  function getPool(address) external returns(address);
  function getMaxLeverage(address) external returns(uint256);
  function allowedMargins(address) external returns (bool);
  function utilizationScaled(address token) external pure returns(uint256);
}

// File: contracts/UniMexMargin.sol

// SPDX-License-Identifier: UNLICENSED

pragma solidity 0.6.12;






interface IUniMexStaking {
    function distribute(uint256 _amount) external;
}

interface IUniMexPool {
    function borrow(uint256 _amount) external;
    function distribute(uint256 _amount) external;
    function repay(uint256 _amount) external returns (bool);
}

contract UniMexMargin is Ownable {
    using SafeMath for uint256;
    using SafeERC20 for IERC20;
    
    address private WETH_ADDRESS;
    IERC20 public WETH;
    uint256 public constant MAG = 1e18;
    uint256 public constant LIQUIDATION_MARGIN = 11*1e17; //10%
    uint256 public liquidationBonus = 9 * 1e16;
    uint256 public borrowInterestPercentScaled = 100; //10%
    uint256 public constant YEAR = 31536000;
    uint256 public positionNonce = 0;
    
    struct Position {
        bytes32 id;
        address token;
        address owner;
        uint256 owed;
        uint256 input;
        uint256 commitment;
        uint256 leverage;
        uint256 startTimestamp;
        bool isClosed;
        bool isShort;
        uint256 borrowInterest;
    }
    
    mapping(bytes32 => Position) public positionInfo;
    mapping(address => uint256) public balanceOf;
    mapping(address => uint256) public escrow;
    
    uint256 public delay;

    IUniMexStaking public staking;
    IUniMexFactory public unimex_factory;
    IUniswapV2Factory public uniswap_factory;
    IUniswapV2Router02 public uniswap_router;
    
    event OnOpenPosition(
        address indexed sender,
        bytes32 positionId,
        bool isShort,
        address indexed token
    );
    
    event OnClosePosition(
        address indexed sender,
        bytes32 positionId,
        bool isShort,
        address indexed token
    );
    
    //to prevent flashloans
    modifier isHuman() {
        require(msg.sender == tx.origin);
        _;
    }

    constructor(
        address _staking,
        address _factory,
        address _weth,
        address _uniswap_factory,
        address _uniswap_router
    ) public {
        staking = IUniMexStaking(_staking);
        unimex_factory = IUniMexFactory(_factory);
        WETH_ADDRESS = _weth;
        WETH = IERC20(_weth);
        uniswap_factory = IUniswapV2Factory(_uniswap_factory);
        uniswap_router = IUniswapV2Router02(_uniswap_router);
    }

    function setDelay(uint256 _delay) external onlyOwner {
        delay = _delay;
    }

    function setStaking(address _staking) external onlyOwner {
        require(_staking != address(0));
        staking = IUniMexStaking(_staking);
    }

    function setLiquidationBonus(uint256 _liquidationBonus) external onlyOwner {
        require(_liquidationBonus > 0, "ZERO_LIQUIDATION_BONUS");
        liquidationBonus = _liquidationBonus;
    }

    function setBorrowPercent(uint256 _newPercentScaled) external onlyOwner {
        borrowInterestPercentScaled = _newPercentScaled;
    }

    function deposit(uint256 _amount) public {
        WETH.safeTransferFrom(msg.sender, address(this), _amount);
        balanceOf[msg.sender] = balanceOf[msg.sender].add(_amount);
    }

    function withdraw(uint256 _amount) public {
        require(balanceOf[msg.sender] >= _amount);
        balanceOf[msg.sender] = balanceOf[msg.sender].sub(_amount);
        WETH.safeTransfer(msg.sender, _amount);
    }

    function transferUserToEscrow(address from, address to, uint256 amount) private {
        require(balanceOf[from] >= amount);
        balanceOf[from] = balanceOf[from].sub(amount);
        escrow[to] = escrow[to].add(amount);
    }

    function transferEscrowToUser(address from, address to, uint256 amount) private {
        require(escrow[from] >= amount);
        escrow[from] = escrow[from].sub(amount);
        balanceOf[to] = balanceOf[to].add(amount);
    }

    function transferToUser(address to, uint256 amount) private {
        balanceOf[to] = balanceOf[to].add(amount);
    }

    function getPositionId(
        address maker,
        address token,
        uint256 amount,
        uint256 leverage,
        uint256 nonce
    ) private pure returns (bytes32 positionId) {
        //date acts as a nonce
        positionId = keccak256(
            abi.encodePacked(maker, token, amount, leverage, nonce)
        );
    }

    function calculateConvertedValue(address baseToken, address quoteToken, uint256 amount) private view returns (uint256) {
        address token0;
        address token1;
        (token0, token1) = UniswapV2Library.sortTokens(baseToken, quoteToken);
        IUniswapV2Pair pair = IUniswapV2Pair(uniswap_factory.getPair(token0, token1));
        (uint256 reserve0, uint256 reserve1, ) = pair.getReserves();
        uint256 value;
        if (token1 == baseToken) {
            value = UniswapV2Library.getAmountOut(amount, reserve1, reserve0);
        } else {
            value = UniswapV2Library.getAmountOut(amount, reserve0, reserve1);
        }
        return value;
    }

    function swapTokens(address baseToken, address quoteToken, uint256 input, uint256 slippage) private returns (uint256 swap) {
        IERC20(baseToken).approve(address(uniswap_router), input);
        address[] memory path = new address[](2);
        path[0] = baseToken;
        path[1] = quoteToken;
        uint256 deadline = block.timestamp.add(delay);
        uint256 output = calculateConvertedValue(baseToken, quoteToken, input);
        uint256 outputWithSlippage = (output.sub(((output.mul(slippage)).div(MAG))));
        uint256 balanceBefore = IERC20(quoteToken).balanceOf(address(this));

        IUniswapV2Router02(uniswap_router)
            .swapExactTokensForTokensSupportingFeeOnTransferTokens(
                input,
                outputWithSlippage,
                path,
                address(this),
                deadline
            );
            
        uint256 balanceAfter = IERC20(quoteToken).balanceOf(address(this));
        swap = balanceAfter.sub(balanceBefore);

        require(swap > 0, "FAILED_SWAP");
    }

    function getCommitment(uint256 _amount, uint scaledLeverage) private pure returns (uint256 commitment) {
        commitment = (_amount.mul(MAG)).div(scaledLeverage);
    }

    function transferFees(uint256 fees, address pool) private {
        uint256 halfFees = fees.div(2);

        // Pool fees
        WETH.approve(pool, halfFees);	
        IUniMexPool(pool).distribute(halfFees);	

        // Staking Fees
        WETH.approve(address(staking), fees.sub(halfFees));
        staking.distribute(fees.sub(halfFees));
    }

    function transferToPool(address pool, address token, uint256 amount) private {
        IERC20(token).approve(pool, amount);
        IUniMexPool(pool).repay(amount);
    }

    function calculateBorrowInterest(bytes32 positionId) public view returns (uint256) {
        Position storage position = positionInfo[positionId];
        uint256 loanTime = block.timestamp.sub(position.startTimestamp);
        return position.owed.mul(loanTime).mul(position.borrowInterest).div(1000).div(YEAR);
    }

    function _openPosition(address token, uint256 amount, uint256 scaledLeverage, uint256 scaledSlippage, bool isShort) private {
        require(amount > 0, "AMOUNT_ZERO");
        address pool = unimex_factory.getPool(address(isShort ? IERC20(token) : WETH));

        require(pool != address(0), "POOL_DOES_NOT_EXIST");
        require(scaledLeverage <= unimex_factory.getMaxLeverage(token).mul(MAG), "LEVERAGE_EXCEEDS_MAX");
        require(scaledLeverage >= MAG, "LEVERAGE_BELOW_1");

        uint amountInWeth = isShort ? calculateConvertedValue(token, WETH_ADDRESS, amount) : amount;
        uint256 commitment = getCommitment(amountInWeth, scaledLeverage);
        require(balanceOf[msg.sender] >= commitment, "NO_BALANCE");
        
        IUniMexPool(pool).borrow(amount);

        uint256 swap;
        
        {
            (address baseToken, address quoteToken) = isShort ? (token, WETH_ADDRESS) : (WETH_ADDRESS, token);
            swap = swapTokens(baseToken, quoteToken, amount, scaledSlippage);
        }

        uint256 fees = (swap.mul(8)).div(1000);	

        swap = swap.sub(fees); // swap minus fees

        if(!isShort) {
            fees = swapTokens(token, WETH_ADDRESS, fees, scaledSlippage); // convert fees to ETH
        }

        transferFees(fees, pool);

        transferUserToEscrow(msg.sender, msg.sender, commitment.add(liquidationBonus));

        positionNonce = positionNonce + 1; //possible overflow is ok
        bytes32 positionId = getPositionId(
            msg.sender,
            token,
            amount,
            scaledLeverage,
            positionNonce
        );

        Position memory position = Position({
            owed: amount,
            input: swap,
            commitment: commitment,	
            owner: msg.sender,	
            startTimestamp: block.timestamp,
            isShort: isShort,
            isClosed: false,	
            leverage: scaledLeverage,
            token: token,
            id: positionId,
            borrowInterest: borrowInterestPercentScaled
        });
        
        positionInfo[position.id] = position;

        emit OnOpenPosition(msg.sender, position.id, isShort, token);
    }

    //slippage is a percentage x 1e18
    function openShortPosition(address token, uint256 amount, uint256 leverage, uint256 slippage) public isHuman {
        _openPosition(token, amount, leverage, slippage, true);
    }

    function openLongPosition(address token, uint256 amount, uint256 leverage, uint256 slippage) public isHuman {
        _openPosition(token, amount, leverage, slippage, false);
    }

    function _closeShort(Position storage position, uint256 slippage) private {

        uint256 input = position.input;
        uint256 owed = position.owed;
        uint256 commitment = position.commitment;

        address pool = unimex_factory.getPool(position.token);

        uint256 poolInterestInTokens = calculateBorrowInterest(position.id);
        uint256 swap = swapTokens(WETH_ADDRESS, position.token, input, slippage);
        require(swap >= owed.add(poolInterestInTokens).mul(input).div(input.add(commitment)), "LIQUIDATE_ONLY");

        bool isProfit = owed < swap;
        uint256 amount;

        if(isProfit) {
            uint256 profitInTokens = swap.sub(owed);
            amount = swapTokens(position.token, WETH_ADDRESS, profitInTokens, slippage); //profit in eth
        } else {
            uint256 commitmentInTokens = swapTokens(WETH_ADDRESS, position.token, commitment, slippage);
            amount = swapTokens(position.token, WETH_ADDRESS, commitmentInTokens.sub(owed.sub(swap)), slippage); //return to user's balance
        }

        uint256 poolInterestInWeth = poolInterestInTokens > 0 ? calculateConvertedValue(position.token, address(WETH), poolInterestInTokens) : 0;

        uint256 fees = amount.mul(8e15)
                             .div(1e18)
                             .add(poolInterestInWeth);

        transferToPool(pool, position.token, owed);

        transferFees(fees, pool);

        transferEscrowToUser(position.owner, isProfit ? position.owner : address(0x0), commitment);
        transferEscrowToUser(position.owner, position.owner, liquidationBonus);
        transferToUser(position.owner, amount.sub(fees));
        
        position.isClosed = true;
        emit OnClosePosition(msg.sender, position.id, true, position.token);
    }

    function _closeLong(Position storage position, uint256 slippage) private {
        uint256 input = position.input;
        uint256 owed = position.owed;
        address pool = unimex_factory.getPool(WETH_ADDRESS);

        uint256 poolInterestValue = calculateBorrowInterest(position.id);
        uint256 swap = swapTokens(position.token, WETH_ADDRESS, input, slippage);
        require(swap >= owed.sub(position.commitment).add(poolInterestValue), "LIQUIDATE_ONLY");

        uint256 commitment = position.commitment;

        bool isProfit = swap >= owed;

        uint256 amount = isProfit ? swap.sub(owed) : commitment.sub(owed.sub(swap));

        uint256 fees = amount.mul(8e15)
                             .div(1e18)
                             .add(poolInterestValue);

        transferToPool(pool, WETH_ADDRESS, owed);

        transferFees(fees, pool);

        transferEscrowToUser(position.owner, isProfit ? position.owner : address(0x0), commitment);
        transferEscrowToUser(position.owner, position.owner, liquidationBonus);

        transferToUser(position.owner, amount.sub(fees));

        position.isClosed = true;
        emit OnClosePosition(msg.sender, position.id, false, position.token);
    }

    function closePosition(bytes32 positionId, uint256 slippage) external isHuman {
        Position storage position = positionInfo[positionId];
        require(position.isClosed == false, "CLOSED_POSITION");
        require(msg.sender == position.owner, "BORROWER_ONLY");
        if(position.isShort) {
            _closeShort(position, slippage);
        }else{
            _closeLong(position, slippage);
        }
    }

    function canLiquidate(bytes32 positionId) public view returns(bool) {
        Position storage position = positionInfo[positionId];
        if(position.isShort) {
            uint256 value = calculateConvertedValue(WETH_ADDRESS, position.token, position.input);
            uint256 poolInterestInTokens = calculateBorrowInterest(position.id);

            return value < position.owed.add(poolInterestInTokens)
                                        .mul(position.input)
                                        .div(position.input.add(position.commitment))
                                        .mul(LIQUIDATION_MARGIN)
                                        .div(MAG);
        } else {
            uint256 value = calculateConvertedValue(position.token, WETH_ADDRESS, position.input);
            uint256 poolInterestValue = calculateBorrowInterest(position.id);
            return value.add(position.commitment) < position.owed.add(poolInterestValue)
                                                                 .mul(LIQUIDATION_MARGIN)
                                                                 .div(MAG);
        }

    }

    function liquidatePosition(bytes32 positionId, uint256 slippage) external isHuman {
        Position storage position = positionInfo[positionId];
        require(position.isClosed == false, "CLOSED_POSITION");
        bool isShort = position.isShort;
        (address baseToken, address quoteToken) = isShort ? (position.token, WETH_ADDRESS) : (WETH_ADDRESS, position.token);

        uint256 input = position.input;

        require(canLiquidate(positionId), "CANNOT_LIQUIDATE");

        uint256 swap = swapTokens(quoteToken, baseToken, input, slippage);

        uint256 commitment = isShort ? swapTokens(WETH_ADDRESS, position.token, position.commitment, slippage) : position.commitment;

        uint256 fees = calculateBorrowInterest(position.id)
                            .add(position.owed.mul(8e15).div(1e18));
        uint256 canReturn = swap.add(commitment);
        liquidate(position, canReturn, fees, slippage);
        transferEscrowToUser(position.owner, address(0x0), position.commitment.add(liquidationBonus));

        position.isClosed = true;
        
        emit OnClosePosition(msg.sender, position.id, isShort, position.token);
        WETH.safeTransfer(msg.sender, liquidationBonus);
    }

    function liquidate(Position memory position, uint256 canReturn, uint fees, uint slippage) private {
        address baseToken = position.isShort ? position.token : WETH_ADDRESS;
        address pool = unimex_factory.getPool(baseToken);
        if(canReturn > position.owed) {
            transferToPool(pool, baseToken, position.owed);
            uint256 remainder = canReturn.sub(position.owed);
            if(remainder > fees) { //can pay fees completely
                uint256 userReturnAmount = remainder.sub(fees);
                if(position.isShort) {
                    fees = swapTokens(position.token, WETH_ADDRESS, fees, slippage); //convert fees to weth
                }
                transferFees(fees, pool);
                if(position.isShort) {
                    userReturnAmount = swapTokens(position.token, WETH_ADDRESS, remainder.sub(fees), slippage);
                }
                transferToUser(position.owner, userReturnAmount);
            } else { //all is left is for fees
                if(position.isShort) {
                    //convert remainder to weth
                    remainder = swapTokens(position.token, WETH_ADDRESS, 
                        canReturn.sub(position.owed), slippage);
                }
                transferFees(remainder, pool);
            }
        } else {
            //return to pool all that's left
            transferToPool(pool, baseToken, canReturn);
        }
    }


}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_staking","type":"address"},{"internalType":"address","name":"_factory","type":"address"},{"internalType":"address","name":"_weth","type":"address"},{"internalType":"address","name":"_uniswap_factory","type":"address"},{"internalType":"address","name":"_uniswap_router","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"bytes32","name":"positionId","type":"bytes32"},{"indexed":false,"internalType":"bool","name":"isShort","type":"bool"},{"indexed":true,"internalType":"address","name":"token","type":"address"}],"name":"OnClosePosition","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"bytes32","name":"positionId","type":"bytes32"},{"indexed":false,"internalType":"bool","name":"isShort","type":"bool"},{"indexed":true,"internalType":"address","name":"token","type":"address"}],"name":"OnOpenPosition","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[],"name":"LIQUIDATION_MARGIN","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAG","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WETH","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"YEAR","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"borrowInterestPercentScaled","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"positionId","type":"bytes32"}],"name":"calculateBorrowInterest","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"positionId","type":"bytes32"}],"name":"canLiquidate","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"positionId","type":"bytes32"},{"internalType":"uint256","name":"slippage","type":"uint256"}],"name":"closePosition","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"delay","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"escrow","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"positionId","type":"bytes32"},{"internalType":"uint256","name":"slippage","type":"uint256"}],"name":"liquidatePosition","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"liquidationBonus","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"leverage","type":"uint256"},{"internalType":"uint256","name":"slippage","type":"uint256"}],"name":"openLongPosition","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"leverage","type":"uint256"},{"internalType":"uint256","name":"slippage","type":"uint256"}],"name":"openShortPosition","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"positionInfo","outputs":[{"internalType":"bytes32","name":"id","type":"bytes32"},{"internalType":"address","name":"token","type":"address"},{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"owed","type":"uint256"},{"internalType":"uint256","name":"input","type":"uint256"},{"internalType":"uint256","name":"commitment","type":"uint256"},{"internalType":"uint256","name":"leverage","type":"uint256"},{"internalType":"uint256","name":"startTimestamp","type":"uint256"},{"internalType":"bool","name":"isClosed","type":"bool"},{"internalType":"bool","name":"isShort","type":"bool"},{"internalType":"uint256","name":"borrowInterest","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"positionNonce","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newPercentScaled","type":"uint256"}],"name":"setBorrowPercent","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_delay","type":"uint256"}],"name":"setDelay","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_liquidationBonus","type":"uint256"}],"name":"setLiquidationBonus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_staking","type":"address"}],"name":"setStaking","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"staking","outputs":[{"internalType":"contract IUniMexStaking","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unimex_factory","outputs":[{"internalType":"contract IUniMexFactory","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"uniswap_factory","outputs":[{"internalType":"contract IUniswapV2Factory","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"uniswap_router","outputs":[{"internalType":"contract IUniswapV2Router02","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405267013fbe85edc90000600355606460045560006005553480156200002757600080fd5b50604051620030db380380620030db833981810160405260a08110156200004d57600080fd5b508051602082015160408301516060840151608090940151929391929091906000620000786200012f565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350600a80546001600160a01b039687166001600160a01b031991821617909155600b8054958716958216959095179094556001805493861693851684179055600280548516909317909255600c8054918516918416919091179055600d805491909316911617905562000133565b3390565b612f9880620001436000396000f3fe608060405234801561001057600080fd5b50600436106101da5760003560e01c80638ab10c73116101045780639e966634116100a2578063c167f09911610071578063c167f099146104a6578063dfeba59e146104c9578063e177246e146104ec578063f2fde38b14610509576101da565b80639e96663414610471578063ad5c464814610479578063b6b55f2514610481578063b98d1fe21461049e576101da565b80638f7b1822116100de5780638f7b18221461041e5780638ff390991461043b5780639052be611461046157806397bd101714610469576101da565b80638ab10c73146103c15780638ac4edb2146103f95780638da5cb5b14610416576101da565b8063617f05a01161017c578063715018a61161014b578063715018a6146103715780637b7c1f4c146103795780637f54c66e1461038157806383914540146103b9576101da565b8063617f05a01461030a57806361ba1508146103125780636a42b8f81461034357806370a082311461034b576101da565b80632e1a7d4d116101b85780632e1a7d4d146102a55780634c4be8a6146102c25780634cf088d9146102dc57806357d3c7c3146102e4576101da565b80631410c18b146101df5780631750832b1461020357806328842d4f14610286575b600080fd5b6101e761052f565b604080516001600160a01b039092168252519081900360200190f35b6102206004803603602081101561021957600080fd5b503561053e565b604080519b8c526001600160a01b039a8b1660208d0152989099168a89015260608a0196909652608089019490945260a088019290925260c087015260e08601521515610100850152151561012084015261014083019190915251908190036101600190f35b6102a36004803603602081101561029c57600080fd5b50356105aa565b005b6102a3600480360360208110156102bb57600080fd5b5035610655565b6102ca6106ba565b60408051918252519081900360200190f35b6101e76106c6565b6102ca600480360360208110156102fa57600080fd5b50356001600160a01b03166106d5565b6102ca6106e7565b61032f6004803603602081101561032857600080fd5b50356106f3565b604080519115158252519081900360200190f35b6102ca610841565b6102ca6004803603602081101561036157600080fd5b50356001600160a01b0316610847565b6102a3610859565b6102ca6108fb565b6102a36004803603608081101561039757600080fd5b506001600160a01b038135169060208101359060408101359060600135610901565b6102ca610921565b6102a3600480360360808110156103d757600080fd5b506001600160a01b038135169060208101359060408101359060600135610929565b6102a36004803603602081101561040f57600080fd5b5035610943565b6101e76109a0565b6102ca6004803603602081101561043457600080fd5b50356109af565b6102a36004803603602081101561045157600080fd5b50356001600160a01b0316610a06565b6101e7610a93565b6102ca610aa2565b6102ca610aa8565b6101e7610aae565b6102a36004803603602081101561049757600080fd5b5035610abd565b6101e7610b02565b6102a3600480360360408110156104bc57600080fd5b5080359060200135610b11565b6102a3600480360360408110156104df57600080fd5b5080359060200135610dfd565b6102a36004803603602081101561050257600080fd5b5035610ee4565b6102a36004803603602081101561051f57600080fd5b50356001600160a01b0316610f41565b600b546001600160a01b031681565b6006602081905260009182526040909120805460018201546002830154600384015460048501546005860154968601546007870154600888015460099098015496986001600160a01b0396871698969095169693959294939192909160ff80831692610100900416908b565b6105b2611039565b6000546001600160a01b03908116911614610602576040805162461bcd60e51b81526020600482018190526024820152600080516020612f19833981519152604482015290519081900360640190fd5b60008111610650576040805162461bcd60e51b81526020600482015260166024820152755a45524f5f4c49515549444154494f4e5f424f4e555360501b604482015290519081900360640190fd5b600355565b3360009081526007602052604090205481111561067157600080fd5b3360009081526007602052604090205461068b908261103d565b336000818152600760205260409020919091556002546106b7916001600160a01b039091169083611088565b50565b670de0b6b3a764000081565b600a546001600160a01b031681565b60086020526000908152604090205481565b670f43fc2c04ee000081565b60008181526006602052604081206008810154610100900460ff16156107bb576001805490820154600483015460009261073b926001600160a01b03918216929116906110da565b9050600061074c83600001546109af565b90506107af670de0b6b3a76400006107a9670f43fc2c04ee00006107a36107848860050154896004015461124990919063ffffffff16565b6107a989600401546107a3898c6003015461124990919063ffffffff16565b906112a3565b906112fc565b8210935050505061083c565b600180820154905460048301546000926107e3926001600160a01b03918216929116906110da565b905060006107f483600001546109af565b9050610825670de0b6b3a76400006107a9670f43fc2c04ee00006107a385886003015461124990919063ffffffff16565b6005840154610835908490611249565b1093505050505b919050565b60095481565b60076020526000908152604090205481565b610861611039565b6000546001600160a01b039081169116146108b1576040805162461bcd60e51b81526020600482018190526024820152600080516020612f19833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b60035481565b33321461090d57600080fd5b61091b84848484600061133e565b50505050565b6301e1338081565b33321461093557600080fd5b61091b84848484600161133e565b61094b611039565b6000546001600160a01b0390811691161461099b576040805162461bcd60e51b81526020600482018190526024820152600080516020612f19833981519152604482015290519081900360640190fd5b600455565b6000546001600160a01b031690565b6000818152600660205260408120600781015482906109cf90429061103d565b90506109fe6301e133806107a96103e86107a986600901546107a38789600301546112a390919063ffffffff16565b949350505050565b610a0e611039565b6000546001600160a01b03908116911614610a5e576040805162461bcd60e51b81526020600482018190526024820152600080516020612f19833981519152604482015290519081900360640190fd5b6001600160a01b038116610a7157600080fd5b600a80546001600160a01b0319166001600160a01b0392909216919091179055565b600d546001600160a01b031681565b60055481565b60045481565b6002546001600160a01b031681565b600254610ad5906001600160a01b0316333084611916565b33600090815260076020526040902054610aef9082611249565b3360009081526007602052604090205550565b600c546001600160a01b031681565b333214610b1d57600080fd5b6000828152600660205260409020600881015460ff1615610b77576040805162461bcd60e51b815260206004820152600f60248201526e21a627a9a2a22fa827a9a4aa24a7a760891b604482015290519081900360640190fd5b6008810154610100900460ff1660008082610ba65760018054908501546001600160a01b039182169116610bbc565b60018085015490546001600160a01b0391821691165b60048601549193509150610bcf876106f3565b610c13576040805162461bcd60e51b815260206004820152601060248201526f43414e4e4f545f4c495155494441544560801b604482015290519081900360640190fd5b6000610c218385848a611970565b9050600085610c34578660050154610c59565b60018054908801546005890154610c59926001600160a01b039081169216908b611970565b90506000610c9b610c8a670de0b6b3a76400006107a9661c6bf5263400008c600301546112a390919063ffffffff16565b8954610c95906109af565b90611249565b90506000610ca98484611249565b60408051610160810182528b54815260018c01546001600160a01b03908116602083015260028d0154169181019190915260038b0154606082015260048b0154608082015260058b015460a082015260068b015460c082015260078b015460e082015260088b015460ff80821615156101008085019190915290910416151561012082015260098b0154610140820152909150610d489082848d611cd8565b600289015460035460058b0154610d74926001600160a01b031691600091610d6f91611249565b611ea5565b60088901805460ff191660019081179091558901548954604080519182528a1515602083015280516001600160a01b039093169233927f1327491af5beea6d0338ab3dbd4baa51e6117f2b5e768437a996f1cc6a0d352992908290030190a3600354600254610df0916001600160a01b03909116903390611088565b5050505050505050505050565b333214610e0957600080fd5b6000828152600660205260409020600881015460ff1615610e63576040805162461bcd60e51b815260206004820152600f60248201526e21a627a9a2a22fa827a9a4aa24a7a760891b604482015290519081900360640190fd5b60028101546001600160a01b03163314610eb4576040805162461bcd60e51b815260206004820152600d60248201526c424f52524f5745525f4f4e4c5960981b604482015290519081900360640190fd5b6008810154610100900460ff1615610ed557610ed08183611f44565b610edf565b610edf8183612270565b505050565b610eec611039565b6000546001600160a01b03908116911614610f3c576040805162461bcd60e51b81526020600482018190526024820152600080516020612f19833981519152604482015290519081900360640190fd5b600955565b610f49611039565b6000546001600160a01b03908116911614610f99576040805162461bcd60e51b81526020600482018190526024820152600080516020612f19833981519152604482015290519081900360640190fd5b6001600160a01b038116610fde5760405162461bcd60e51b8152600401808060200182810382526026815260200180612ed26026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b3390565b600061107f83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506124ee565b90505b92915050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610edf908490612585565b60008060006110e98686612636565b600c546040805163e6a4390560e01b81526001600160a01b0380861660048301528085166024830152915194965092945060009391169163e6a43905916044808301926020929190829003018186803b15801561114557600080fd5b505afa158015611159573d6000803e3d6000fd5b505050506040513d602081101561116f57600080fd5b505160408051630240bc6b60e21b8152905191925060009182916001600160a01b03851691630902f1ac91600480820192606092909190829003018186803b1580156111ba57600080fd5b505afa1580156111ce573d6000803e3d6000fd5b505050506040513d60608110156111e457600080fd5b5080516020909101516dffffffffffffffffffffffffffff918216935016905060006001600160a01b03858116908b16141561122c5761122588838561271e565b905061123a565b61123788848461271e565b90505b955050505050505b9392505050565b60008282018381101561107f576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b6000826112b257506000611082565b828202828482816112bf57fe5b041461107f5760405162461bcd60e51b8152600401808060200182810382526021815260200180612ef86021913960400191505060405180910390fd5b600061107f83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f00000000000081525061281c565b60008411611381576040805162461bcd60e51b815260206004820152600b60248201526a414d4f554e545f5a45524f60a81b604482015290519081900360640190fd5b600b546000906001600160a01b031663bbe4f6db836113ab576002546001600160a01b03166113ad565b875b6040518263ffffffff1660e01b815260040180826001600160a01b03168152602001915050602060405180830381600087803b1580156113ec57600080fd5b505af1158015611400573d6000803e3d6000fd5b505050506040513d602081101561141657600080fd5b505190506001600160a01b03811661146b576040805162461bcd60e51b81526020600482015260136024820152721413d3d317d113d154d7d393d517d1561254d5606a1b604482015290519081900360640190fd5b600b546040805163808d856b60e01b81526001600160a01b03898116600483015291516114f793670de0b6b3a764000093169163808d856b9160248083019260209291908290030181600087803b1580156114c557600080fd5b505af11580156114d9573d6000803e3d6000fd5b505050506040513d60208110156114ef57600080fd5b5051906112a3565b841115611542576040805162461bcd60e51b81526020600482015260146024820152730988aac8aa4828e8abe8ab0868a8a88a6be9a82b60631b604482015290519081900360640190fd5b670de0b6b3a7640000841015611592576040805162461bcd60e51b815260206004820152601060248201526f4c455645524147455f42454c4f575f3160801b604482015290519081900360640190fd5b60008261159f57856115b7565b6001546115b79088906001600160a01b0316886110da565b905060006115c58287612881565b33600090815260076020526040902054909150811115611619576040805162461bcd60e51b815260206004820152600a6024820152694e4f5f42414c414e434560b01b604482015290519081900360640190fd5b826001600160a01b031663c5ebeaec886040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b15801561165f57600080fd5b505af1158015611673573d6000803e3d6000fd5b50505050600080600086611693576001546001600160a01b03168b6116a2565b6001548b906001600160a01b03165b915091506116b282828c8b611970565b9250600091506116cb90506103e86107a98460086112a3565b90506116d7828261103d565b9150856116fa576001546116f7908b906001600160a01b0316838a611970565b90505b6117048186612899565b611723333361171e6003548761124990919063ffffffff16565b612a8d565b6005546001016005819055506000611740338c8c8c600554612b2c565b905061174a612e5e565b6040518061016001604052808381526020018d6001600160a01b03168152602001336001600160a01b031681526020018c81526020018581526020018681526020018b8152602001428152602001600015158152602001891515815260200160045481525090508060066000836000015181526020019081526020016000206000820151816000015560208201518160010160006101000a8154816001600160a01b0302191690836001600160a01b0316021790555060408201518160020160006101000a8154816001600160a01b0302191690836001600160a01b03160217905550606082015181600301556080820151816004015560a0820151816005015560c0820151816006015560e082015181600701556101008201518160080160006101000a81548160ff0219169083151502179055506101208201518160080160016101000a81548160ff02191690831515021790555061014082015181600901559050508b6001600160a01b0316336001600160a01b03167fef9d0fe2c313eedf661ab58ae77f6b5e1d4ae0f604597251095e254d8b7f34b983600001518b6040518083815260200182151581526020019250505060405180910390a3505050505050505050505050565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b17905261091b908590612585565b600d546040805163095ea7b360e01b81526001600160a01b03928316600482015260248101859052905160009287169163095ea7b391604480830192602092919082900301818787803b1580156119c657600080fd5b505af11580156119da573d6000803e3d6000fd5b505050506040513d60208110156119f057600080fd5b505060408051600280825260608083018452926020830190803683370190505090508581600081518110611a2057fe5b60200260200101906001600160a01b031690816001600160a01b0316815250508481600181518110611a4e57fe5b60200260200101906001600160a01b031690816001600160a01b0316815250506000611a856009544261124990919063ffffffff16565b90506000611a948888886110da565b90506000611ab8611ab1670de0b6b3a76400006107a9858a6112a3565b839061103d565b90506000886001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b158015611b0957600080fd5b505afa158015611b1d573d6000803e3d6000fd5b505050506040513d6020811015611b3357600080fd5b5051600d54604051635c11d79560e01b8152600481018b81526024820186905230606483018190526084830189905260a0604484019081528a5160a48501528a519596506001600160a01b0390941694635c11d795948e9489948d94938d93919260c401906020878101910280838360005b83811015611bbd578181015183820152602001611ba5565b505050509050019650505050505050600060405180830381600087803b158015611be657600080fd5b505af1158015611bfa573d6000803e3d6000fd5b505050506000896001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b158015611c4d57600080fd5b505afa158015611c61573d6000803e3d6000fd5b505050506040513d6020811015611c7757600080fd5b50519050611c85818361103d565b965060008711611cca576040805162461bcd60e51b815260206004820152600b60248201526a04641494c45445f535741560ac1b604482015290519081900360640190fd5b505050505050949350505050565b6000846101200151611cf5576001546001600160a01b0316611cfb565b84602001515b600b546040805163bbe4f6db60e01b81526001600160a01b0380851660048301529151939450600093919092169163bbe4f6db91602480830192602092919082900301818787803b158015611d4f57600080fd5b505af1158015611d63573d6000803e3d6000fd5b505050506040513d6020811015611d7957600080fd5b50516060870151909150851115611e9257611d9981838860600151612b8c565b6000611db287606001518761103d90919063ffffffff16565b905084811115611e47576000611dc8828761103d565b905087610120015115611df5576020880151600154611df291906001600160a01b03168888611970565b95505b611dff8684612899565b87610120015115611e33576020880151600154611e3091906001600160a01b0316611e2a858a61103d565b88611970565b90505b611e41886040015182612c89565b50611e8c565b86610120015115611e825760208701516001546060890151611e7f92916001600160a01b031690611e79908a9061103d565b87611970565b90505b611e8c8183612899565b50611e9d565b611e9d818387612b8c565b505050505050565b6001600160a01b038316600090815260086020526040902054811115611eca57600080fd5b6001600160a01b038316600090815260086020526040902054611eed908261103d565b6001600160a01b03808516600090815260086020908152604080832094909455918516815260079091522054611f239082611249565b6001600160a01b039092166000908152600760205260409020919091555050565b60048083015460038401546005850154600b5460018701546040805163bbe4f6db60e01b81526001600160a01b039283169781019790975251949593949293600093919092169163bbe4f6db91602480830192602092919082900301818787803b158015611fb157600080fd5b505af1158015611fc5573d6000803e3d6000fd5b505050506040513d6020811015611fdb57600080fd5b50518654909150600090611fee906109af565b6001805490890154919250600091612014916001600160a01b039081169116888a611970565b90506120316120238786611249565b6107a9886107a38987611249565b811015612076576040805162461bcd60e51b815260206004820152600e60248201526d4c49515549444154455f4f4e4c5960901b604482015290519081900360640190fd5b808510600081156120b857600061208d848961103d565b6001808d015490549192506120b0916001600160a01b039182169116838d611970565b915050612115565b60018054908b01546000916120db916001600160a01b039182169116898d611970565b6001808d01549054919250612111916001600160a01b03918216911661210b6121048c8961103d565b859061103d565b8d611970565b9150505b6000808511612125576000612144565b60018b0154600254612144916001600160a01b039081169116876110da565b9050600061216982610c95670de0b6b3a76400006107a987661c6bf5263400006112a3565b60018d01549091506121869088906001600160a01b03168b612b8c565b6121908188612899565b60028c01546121c3906001600160a01b0316856121ae5760006121bd565b60028e01546001600160a01b03165b8a611ea5565b60028c01546003546121e0916001600160a01b0316908190611ea5565b60028c0154612201906001600160a01b03166121fc858461103d565b612c89565b60088c01805460ff191660019081179091558c8101548d5460408051918252602082019390935282516001600160a01b039092169233927f1327491af5beea6d0338ab3dbd4baa51e6117f2b5e768437a996f1cc6a0d35299281900390910190a3505050505050505050505050565b6004808301546003840154600b546001546040805163bbe4f6db60e01b81526001600160a01b03928316968101969096525193949293600093919092169163bbe4f6db9160248082019260209290919082900301818787803b1580156122d557600080fd5b505af11580156122e9573d6000803e3d6000fd5b505050506040513d60208110156122ff57600080fd5b50518554909150600090612312906109af565b6001808801549054919250600091612338916001600160a01b0390811691168789611970565b905061235582610c9589600501548761103d90919063ffffffff16565b81101561239a576040805162461bcd60e51b815260206004820152600e60248201526d4c49515549444154455f4f4e4c5960901b604482015290519081900360640190fd5b6005870154848210156000816123c3576123be6123b7888661103d565b849061103d565b6123cd565b6123cd848861103d565b905060006123f286610c95670de0b6b3a76400006107a986661c6bf5263400006112a3565b60015490915061240d9088906001600160a01b03168a612b8c565b6124178188612899565b60028b015461244a906001600160a01b031684612435576000612444565b60028d01546001600160a01b03165b86611ea5565b60028b0154600354612467916001600160a01b0316908190611ea5565b60028b0154612483906001600160a01b03166121fc848461103d565b60088b01805460ff191660019081179091558b01548b54604080519182526000602083015280516001600160a01b039093169233927f1327491af5beea6d0338ab3dbd4baa51e6117f2b5e768437a996f1cc6a0d352992908290030190a35050505050505050505050565b6000818484111561257d5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561254257818101518382015260200161252a565b50505050905090810190601f16801561256f5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b60606125da826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316612ccc9092919063ffffffff16565b805190915015610edf578080602001905160208110156125f957600080fd5b5051610edf5760405162461bcd60e51b815260040180806020018281038252602a815260200180612f39602a913960400191505060405180910390fd5b600080826001600160a01b0316846001600160a01b031614156126a0576040805162461bcd60e51b815260206004820152601860248201527f5556323a204944454e544943414c5f4144445245535345530000000000000000604482015290519081900360640190fd5b826001600160a01b0316846001600160a01b0316106126c05782846126c3565b83835b90925090506001600160a01b038216612717576040805162461bcd60e51b81526020600482015260116024820152705556323a205a45524f5f4144445245535360781b604482015290519081900360640190fd5b9250929050565b6000808411612774576040805162461bcd60e51b815260206004820152601e60248201527f5556323a20494e53554646494349454e545f494e5055545f414d4f554e540000604482015290519081900360640190fd5b6000831180156127845750600082115b6127d5576040805162461bcd60e51b815260206004820152601b60248201527f5556323a20494e53554646494349454e545f4c49515549444954590000000000604482015290519081900360640190fd5b60006127e3856103e56112a3565b905060006127f182856112a3565b9050600061280583610c95886103e86112a3565b905080828161281057fe5b04979650505050505050565b6000818361286b5760405162461bcd60e51b815260206004820181815283516024840152835190928392604490910191908501908083836000831561254257818101518382015260200161252a565b50600083858161287757fe5b0495945050505050565b600061107f826107a985670de0b6b3a76400006112a3565b60006128a68360026112fc565b6002546040805163095ea7b360e01b81526001600160a01b03868116600483015260248201859052915193945091169163095ea7b3916044808201926020929091908290030181600087803b1580156128fe57600080fd5b505af1158015612912573d6000803e3d6000fd5b505050506040513d602081101561292857600080fd5b5050604080516391c05b0b60e01b81526004810183905290516001600160a01b038416916391c05b0b91602480830192600092919082900301818387803b15801561297257600080fd5b505af1158015612986573d6000803e3d6000fd5b5050600254600a546001600160a01b03918216935063095ea7b39250166129ad868561103d565b6040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050602060405180830381600087803b1580156129f357600080fd5b505af1158015612a07573d6000803e3d6000fd5b505050506040513d6020811015612a1d57600080fd5b5050600a546001600160a01b03166391c05b0b612a3a858461103d565b6040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b158015612a7057600080fd5b505af1158015612a84573d6000803e3d6000fd5b50505050505050565b6001600160a01b038316600090815260076020526040902054811115612ab257600080fd5b6001600160a01b038316600090815260076020526040902054612ad5908261103d565b6001600160a01b03808516600090815260076020908152604080832094909455918516815260089091522054612b0b9082611249565b6001600160a01b039092166000908152600860205260409020919091555050565b604080516bffffffffffffffffffffffff19606097881b81166020808401919091529690971b9096166034870152604886019390935260688501919091526088808501919091528151808503909101815260a89093019052815191012090565b816001600160a01b031663095ea7b384836040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050602060405180830381600087803b158015612be357600080fd5b505af1158015612bf7573d6000803e3d6000fd5b505050506040513d6020811015612c0d57600080fd5b505060408051631b8fec7360e11b81526004810183905290516001600160a01b0385169163371fd8e69160248083019260209291908290030181600087803b158015612c5857600080fd5b505af1158015612c6c573d6000803e3d6000fd5b505050506040513d6020811015612c8257600080fd5b5050505050565b6001600160a01b038216600090815260076020526040902054612cac9082611249565b6001600160a01b0390921660009081526007602052604090209190915550565b60606109fe848460008585612ce085612df2565b612d31576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b60208310612d705780518252601f199092019160209182019101612d51565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114612dd2576040519150601f19603f3d011682016040523d82523d6000602084013e612dd7565b606091505b5091509150612de7828286612df8565b979650505050505050565b3b151590565b60608315612e07575081611242565b825115612e175782518084602001fd5b60405162461bcd60e51b815260206004820181815284516024840152845185939192839260440191908501908083836000831561254257818101518382015260200161252a565b6040518061016001604052806000801916815260200160006001600160a01b0316815260200160006001600160a01b03168152602001600081526020016000815260200160008152602001600081526020016000815260200160001515815260200160001515815260200160008152509056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65725361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a264697066735822122009fb6c39e5c3991f02f7c24b5d317661a2c2442bcbba4a372c72c2dbb208316664736f6c634300060c00330000000000000000000000008dc85b6056b40c950e6119899cac90be9eeb4da7000000000000000000000000c80b0efb594df8be90a643c7f7a462541cd7f6ee000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc20000000000000000000000005c69bee701ef814a2b6a3edd4b1652cb9cc5aa6f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101da5760003560e01c80638ab10c73116101045780639e966634116100a2578063c167f09911610071578063c167f099146104a6578063dfeba59e146104c9578063e177246e146104ec578063f2fde38b14610509576101da565b80639e96663414610471578063ad5c464814610479578063b6b55f2514610481578063b98d1fe21461049e576101da565b80638f7b1822116100de5780638f7b18221461041e5780638ff390991461043b5780639052be611461046157806397bd101714610469576101da565b80638ab10c73146103c15780638ac4edb2146103f95780638da5cb5b14610416576101da565b8063617f05a01161017c578063715018a61161014b578063715018a6146103715780637b7c1f4c146103795780637f54c66e1461038157806383914540146103b9576101da565b8063617f05a01461030a57806361ba1508146103125780636a42b8f81461034357806370a082311461034b576101da565b80632e1a7d4d116101b85780632e1a7d4d146102a55780634c4be8a6146102c25780634cf088d9146102dc57806357d3c7c3146102e4576101da565b80631410c18b146101df5780631750832b1461020357806328842d4f14610286575b600080fd5b6101e761052f565b604080516001600160a01b039092168252519081900360200190f35b6102206004803603602081101561021957600080fd5b503561053e565b604080519b8c526001600160a01b039a8b1660208d0152989099168a89015260608a0196909652608089019490945260a088019290925260c087015260e08601521515610100850152151561012084015261014083019190915251908190036101600190f35b6102a36004803603602081101561029c57600080fd5b50356105aa565b005b6102a3600480360360208110156102bb57600080fd5b5035610655565b6102ca6106ba565b60408051918252519081900360200190f35b6101e76106c6565b6102ca600480360360208110156102fa57600080fd5b50356001600160a01b03166106d5565b6102ca6106e7565b61032f6004803603602081101561032857600080fd5b50356106f3565b604080519115158252519081900360200190f35b6102ca610841565b6102ca6004803603602081101561036157600080fd5b50356001600160a01b0316610847565b6102a3610859565b6102ca6108fb565b6102a36004803603608081101561039757600080fd5b506001600160a01b038135169060208101359060408101359060600135610901565b6102ca610921565b6102a3600480360360808110156103d757600080fd5b506001600160a01b038135169060208101359060408101359060600135610929565b6102a36004803603602081101561040f57600080fd5b5035610943565b6101e76109a0565b6102ca6004803603602081101561043457600080fd5b50356109af565b6102a36004803603602081101561045157600080fd5b50356001600160a01b0316610a06565b6101e7610a93565b6102ca610aa2565b6102ca610aa8565b6101e7610aae565b6102a36004803603602081101561049757600080fd5b5035610abd565b6101e7610b02565b6102a3600480360360408110156104bc57600080fd5b5080359060200135610b11565b6102a3600480360360408110156104df57600080fd5b5080359060200135610dfd565b6102a36004803603602081101561050257600080fd5b5035610ee4565b6102a36004803603602081101561051f57600080fd5b50356001600160a01b0316610f41565b600b546001600160a01b031681565b6006602081905260009182526040909120805460018201546002830154600384015460048501546005860154968601546007870154600888015460099098015496986001600160a01b0396871698969095169693959294939192909160ff80831692610100900416908b565b6105b2611039565b6000546001600160a01b03908116911614610602576040805162461bcd60e51b81526020600482018190526024820152600080516020612f19833981519152604482015290519081900360640190fd5b60008111610650576040805162461bcd60e51b81526020600482015260166024820152755a45524f5f4c49515549444154494f4e5f424f4e555360501b604482015290519081900360640190fd5b600355565b3360009081526007602052604090205481111561067157600080fd5b3360009081526007602052604090205461068b908261103d565b336000818152600760205260409020919091556002546106b7916001600160a01b039091169083611088565b50565b670de0b6b3a764000081565b600a546001600160a01b031681565b60086020526000908152604090205481565b670f43fc2c04ee000081565b60008181526006602052604081206008810154610100900460ff16156107bb576001805490820154600483015460009261073b926001600160a01b03918216929116906110da565b9050600061074c83600001546109af565b90506107af670de0b6b3a76400006107a9670f43fc2c04ee00006107a36107848860050154896004015461124990919063ffffffff16565b6107a989600401546107a3898c6003015461124990919063ffffffff16565b906112a3565b906112fc565b8210935050505061083c565b600180820154905460048301546000926107e3926001600160a01b03918216929116906110da565b905060006107f483600001546109af565b9050610825670de0b6b3a76400006107a9670f43fc2c04ee00006107a385886003015461124990919063ffffffff16565b6005840154610835908490611249565b1093505050505b919050565b60095481565b60076020526000908152604090205481565b610861611039565b6000546001600160a01b039081169116146108b1576040805162461bcd60e51b81526020600482018190526024820152600080516020612f19833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b60035481565b33321461090d57600080fd5b61091b84848484600061133e565b50505050565b6301e1338081565b33321461093557600080fd5b61091b84848484600161133e565b61094b611039565b6000546001600160a01b0390811691161461099b576040805162461bcd60e51b81526020600482018190526024820152600080516020612f19833981519152604482015290519081900360640190fd5b600455565b6000546001600160a01b031690565b6000818152600660205260408120600781015482906109cf90429061103d565b90506109fe6301e133806107a96103e86107a986600901546107a38789600301546112a390919063ffffffff16565b949350505050565b610a0e611039565b6000546001600160a01b03908116911614610a5e576040805162461bcd60e51b81526020600482018190526024820152600080516020612f19833981519152604482015290519081900360640190fd5b6001600160a01b038116610a7157600080fd5b600a80546001600160a01b0319166001600160a01b0392909216919091179055565b600d546001600160a01b031681565b60055481565b60045481565b6002546001600160a01b031681565b600254610ad5906001600160a01b0316333084611916565b33600090815260076020526040902054610aef9082611249565b3360009081526007602052604090205550565b600c546001600160a01b031681565b333214610b1d57600080fd5b6000828152600660205260409020600881015460ff1615610b77576040805162461bcd60e51b815260206004820152600f60248201526e21a627a9a2a22fa827a9a4aa24a7a760891b604482015290519081900360640190fd5b6008810154610100900460ff1660008082610ba65760018054908501546001600160a01b039182169116610bbc565b60018085015490546001600160a01b0391821691165b60048601549193509150610bcf876106f3565b610c13576040805162461bcd60e51b815260206004820152601060248201526f43414e4e4f545f4c495155494441544560801b604482015290519081900360640190fd5b6000610c218385848a611970565b9050600085610c34578660050154610c59565b60018054908801546005890154610c59926001600160a01b039081169216908b611970565b90506000610c9b610c8a670de0b6b3a76400006107a9661c6bf5263400008c600301546112a390919063ffffffff16565b8954610c95906109af565b90611249565b90506000610ca98484611249565b60408051610160810182528b54815260018c01546001600160a01b03908116602083015260028d0154169181019190915260038b0154606082015260048b0154608082015260058b015460a082015260068b015460c082015260078b015460e082015260088b015460ff80821615156101008085019190915290910416151561012082015260098b0154610140820152909150610d489082848d611cd8565b600289015460035460058b0154610d74926001600160a01b031691600091610d6f91611249565b611ea5565b60088901805460ff191660019081179091558901548954604080519182528a1515602083015280516001600160a01b039093169233927f1327491af5beea6d0338ab3dbd4baa51e6117f2b5e768437a996f1cc6a0d352992908290030190a3600354600254610df0916001600160a01b03909116903390611088565b5050505050505050505050565b333214610e0957600080fd5b6000828152600660205260409020600881015460ff1615610e63576040805162461bcd60e51b815260206004820152600f60248201526e21a627a9a2a22fa827a9a4aa24a7a760891b604482015290519081900360640190fd5b60028101546001600160a01b03163314610eb4576040805162461bcd60e51b815260206004820152600d60248201526c424f52524f5745525f4f4e4c5960981b604482015290519081900360640190fd5b6008810154610100900460ff1615610ed557610ed08183611f44565b610edf565b610edf8183612270565b505050565b610eec611039565b6000546001600160a01b03908116911614610f3c576040805162461bcd60e51b81526020600482018190526024820152600080516020612f19833981519152604482015290519081900360640190fd5b600955565b610f49611039565b6000546001600160a01b03908116911614610f99576040805162461bcd60e51b81526020600482018190526024820152600080516020612f19833981519152604482015290519081900360640190fd5b6001600160a01b038116610fde5760405162461bcd60e51b8152600401808060200182810382526026815260200180612ed26026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b3390565b600061107f83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506124ee565b90505b92915050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610edf908490612585565b60008060006110e98686612636565b600c546040805163e6a4390560e01b81526001600160a01b0380861660048301528085166024830152915194965092945060009391169163e6a43905916044808301926020929190829003018186803b15801561114557600080fd5b505afa158015611159573d6000803e3d6000fd5b505050506040513d602081101561116f57600080fd5b505160408051630240bc6b60e21b8152905191925060009182916001600160a01b03851691630902f1ac91600480820192606092909190829003018186803b1580156111ba57600080fd5b505afa1580156111ce573d6000803e3d6000fd5b505050506040513d60608110156111e457600080fd5b5080516020909101516dffffffffffffffffffffffffffff918216935016905060006001600160a01b03858116908b16141561122c5761122588838561271e565b905061123a565b61123788848461271e565b90505b955050505050505b9392505050565b60008282018381101561107f576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b6000826112b257506000611082565b828202828482816112bf57fe5b041461107f5760405162461bcd60e51b8152600401808060200182810382526021815260200180612ef86021913960400191505060405180910390fd5b600061107f83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f00000000000081525061281c565b60008411611381576040805162461bcd60e51b815260206004820152600b60248201526a414d4f554e545f5a45524f60a81b604482015290519081900360640190fd5b600b546000906001600160a01b031663bbe4f6db836113ab576002546001600160a01b03166113ad565b875b6040518263ffffffff1660e01b815260040180826001600160a01b03168152602001915050602060405180830381600087803b1580156113ec57600080fd5b505af1158015611400573d6000803e3d6000fd5b505050506040513d602081101561141657600080fd5b505190506001600160a01b03811661146b576040805162461bcd60e51b81526020600482015260136024820152721413d3d317d113d154d7d393d517d1561254d5606a1b604482015290519081900360640190fd5b600b546040805163808d856b60e01b81526001600160a01b03898116600483015291516114f793670de0b6b3a764000093169163808d856b9160248083019260209291908290030181600087803b1580156114c557600080fd5b505af11580156114d9573d6000803e3d6000fd5b505050506040513d60208110156114ef57600080fd5b5051906112a3565b841115611542576040805162461bcd60e51b81526020600482015260146024820152730988aac8aa4828e8abe8ab0868a8a88a6be9a82b60631b604482015290519081900360640190fd5b670de0b6b3a7640000841015611592576040805162461bcd60e51b815260206004820152601060248201526f4c455645524147455f42454c4f575f3160801b604482015290519081900360640190fd5b60008261159f57856115b7565b6001546115b79088906001600160a01b0316886110da565b905060006115c58287612881565b33600090815260076020526040902054909150811115611619576040805162461bcd60e51b815260206004820152600a6024820152694e4f5f42414c414e434560b01b604482015290519081900360640190fd5b826001600160a01b031663c5ebeaec886040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b15801561165f57600080fd5b505af1158015611673573d6000803e3d6000fd5b50505050600080600086611693576001546001600160a01b03168b6116a2565b6001548b906001600160a01b03165b915091506116b282828c8b611970565b9250600091506116cb90506103e86107a98460086112a3565b90506116d7828261103d565b9150856116fa576001546116f7908b906001600160a01b0316838a611970565b90505b6117048186612899565b611723333361171e6003548761124990919063ffffffff16565b612a8d565b6005546001016005819055506000611740338c8c8c600554612b2c565b905061174a612e5e565b6040518061016001604052808381526020018d6001600160a01b03168152602001336001600160a01b031681526020018c81526020018581526020018681526020018b8152602001428152602001600015158152602001891515815260200160045481525090508060066000836000015181526020019081526020016000206000820151816000015560208201518160010160006101000a8154816001600160a01b0302191690836001600160a01b0316021790555060408201518160020160006101000a8154816001600160a01b0302191690836001600160a01b03160217905550606082015181600301556080820151816004015560a0820151816005015560c0820151816006015560e082015181600701556101008201518160080160006101000a81548160ff0219169083151502179055506101208201518160080160016101000a81548160ff02191690831515021790555061014082015181600901559050508b6001600160a01b0316336001600160a01b03167fef9d0fe2c313eedf661ab58ae77f6b5e1d4ae0f604597251095e254d8b7f34b983600001518b6040518083815260200182151581526020019250505060405180910390a3505050505050505050505050565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b17905261091b908590612585565b600d546040805163095ea7b360e01b81526001600160a01b03928316600482015260248101859052905160009287169163095ea7b391604480830192602092919082900301818787803b1580156119c657600080fd5b505af11580156119da573d6000803e3d6000fd5b505050506040513d60208110156119f057600080fd5b505060408051600280825260608083018452926020830190803683370190505090508581600081518110611a2057fe5b60200260200101906001600160a01b031690816001600160a01b0316815250508481600181518110611a4e57fe5b60200260200101906001600160a01b031690816001600160a01b0316815250506000611a856009544261124990919063ffffffff16565b90506000611a948888886110da565b90506000611ab8611ab1670de0b6b3a76400006107a9858a6112a3565b839061103d565b90506000886001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b158015611b0957600080fd5b505afa158015611b1d573d6000803e3d6000fd5b505050506040513d6020811015611b3357600080fd5b5051600d54604051635c11d79560e01b8152600481018b81526024820186905230606483018190526084830189905260a0604484019081528a5160a48501528a519596506001600160a01b0390941694635c11d795948e9489948d94938d93919260c401906020878101910280838360005b83811015611bbd578181015183820152602001611ba5565b505050509050019650505050505050600060405180830381600087803b158015611be657600080fd5b505af1158015611bfa573d6000803e3d6000fd5b505050506000896001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b158015611c4d57600080fd5b505afa158015611c61573d6000803e3d6000fd5b505050506040513d6020811015611c7757600080fd5b50519050611c85818361103d565b965060008711611cca576040805162461bcd60e51b815260206004820152600b60248201526a04641494c45445f535741560ac1b604482015290519081900360640190fd5b505050505050949350505050565b6000846101200151611cf5576001546001600160a01b0316611cfb565b84602001515b600b546040805163bbe4f6db60e01b81526001600160a01b0380851660048301529151939450600093919092169163bbe4f6db91602480830192602092919082900301818787803b158015611d4f57600080fd5b505af1158015611d63573d6000803e3d6000fd5b505050506040513d6020811015611d7957600080fd5b50516060870151909150851115611e9257611d9981838860600151612b8c565b6000611db287606001518761103d90919063ffffffff16565b905084811115611e47576000611dc8828761103d565b905087610120015115611df5576020880151600154611df291906001600160a01b03168888611970565b95505b611dff8684612899565b87610120015115611e33576020880151600154611e3091906001600160a01b0316611e2a858a61103d565b88611970565b90505b611e41886040015182612c89565b50611e8c565b86610120015115611e825760208701516001546060890151611e7f92916001600160a01b031690611e79908a9061103d565b87611970565b90505b611e8c8183612899565b50611e9d565b611e9d818387612b8c565b505050505050565b6001600160a01b038316600090815260086020526040902054811115611eca57600080fd5b6001600160a01b038316600090815260086020526040902054611eed908261103d565b6001600160a01b03808516600090815260086020908152604080832094909455918516815260079091522054611f239082611249565b6001600160a01b039092166000908152600760205260409020919091555050565b60048083015460038401546005850154600b5460018701546040805163bbe4f6db60e01b81526001600160a01b039283169781019790975251949593949293600093919092169163bbe4f6db91602480830192602092919082900301818787803b158015611fb157600080fd5b505af1158015611fc5573d6000803e3d6000fd5b505050506040513d6020811015611fdb57600080fd5b50518654909150600090611fee906109af565b6001805490890154919250600091612014916001600160a01b039081169116888a611970565b90506120316120238786611249565b6107a9886107a38987611249565b811015612076576040805162461bcd60e51b815260206004820152600e60248201526d4c49515549444154455f4f4e4c5960901b604482015290519081900360640190fd5b808510600081156120b857600061208d848961103d565b6001808d015490549192506120b0916001600160a01b039182169116838d611970565b915050612115565b60018054908b01546000916120db916001600160a01b039182169116898d611970565b6001808d01549054919250612111916001600160a01b03918216911661210b6121048c8961103d565b859061103d565b8d611970565b9150505b6000808511612125576000612144565b60018b0154600254612144916001600160a01b039081169116876110da565b9050600061216982610c95670de0b6b3a76400006107a987661c6bf5263400006112a3565b60018d01549091506121869088906001600160a01b03168b612b8c565b6121908188612899565b60028c01546121c3906001600160a01b0316856121ae5760006121bd565b60028e01546001600160a01b03165b8a611ea5565b60028c01546003546121e0916001600160a01b0316908190611ea5565b60028c0154612201906001600160a01b03166121fc858461103d565b612c89565b60088c01805460ff191660019081179091558c8101548d5460408051918252602082019390935282516001600160a01b039092169233927f1327491af5beea6d0338ab3dbd4baa51e6117f2b5e768437a996f1cc6a0d35299281900390910190a3505050505050505050505050565b6004808301546003840154600b546001546040805163bbe4f6db60e01b81526001600160a01b03928316968101969096525193949293600093919092169163bbe4f6db9160248082019260209290919082900301818787803b1580156122d557600080fd5b505af11580156122e9573d6000803e3d6000fd5b505050506040513d60208110156122ff57600080fd5b50518554909150600090612312906109af565b6001808801549054919250600091612338916001600160a01b0390811691168789611970565b905061235582610c9589600501548761103d90919063ffffffff16565b81101561239a576040805162461bcd60e51b815260206004820152600e60248201526d4c49515549444154455f4f4e4c5960901b604482015290519081900360640190fd5b6005870154848210156000816123c3576123be6123b7888661103d565b849061103d565b6123cd565b6123cd848861103d565b905060006123f286610c95670de0b6b3a76400006107a986661c6bf5263400006112a3565b60015490915061240d9088906001600160a01b03168a612b8c565b6124178188612899565b60028b015461244a906001600160a01b031684612435576000612444565b60028d01546001600160a01b03165b86611ea5565b60028b0154600354612467916001600160a01b0316908190611ea5565b60028b0154612483906001600160a01b03166121fc848461103d565b60088b01805460ff191660019081179091558b01548b54604080519182526000602083015280516001600160a01b039093169233927f1327491af5beea6d0338ab3dbd4baa51e6117f2b5e768437a996f1cc6a0d352992908290030190a35050505050505050505050565b6000818484111561257d5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561254257818101518382015260200161252a565b50505050905090810190601f16801561256f5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b60606125da826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316612ccc9092919063ffffffff16565b805190915015610edf578080602001905160208110156125f957600080fd5b5051610edf5760405162461bcd60e51b815260040180806020018281038252602a815260200180612f39602a913960400191505060405180910390fd5b600080826001600160a01b0316846001600160a01b031614156126a0576040805162461bcd60e51b815260206004820152601860248201527f5556323a204944454e544943414c5f4144445245535345530000000000000000604482015290519081900360640190fd5b826001600160a01b0316846001600160a01b0316106126c05782846126c3565b83835b90925090506001600160a01b038216612717576040805162461bcd60e51b81526020600482015260116024820152705556323a205a45524f5f4144445245535360781b604482015290519081900360640190fd5b9250929050565b6000808411612774576040805162461bcd60e51b815260206004820152601e60248201527f5556323a20494e53554646494349454e545f494e5055545f414d4f554e540000604482015290519081900360640190fd5b6000831180156127845750600082115b6127d5576040805162461bcd60e51b815260206004820152601b60248201527f5556323a20494e53554646494349454e545f4c49515549444954590000000000604482015290519081900360640190fd5b60006127e3856103e56112a3565b905060006127f182856112a3565b9050600061280583610c95886103e86112a3565b905080828161281057fe5b04979650505050505050565b6000818361286b5760405162461bcd60e51b815260206004820181815283516024840152835190928392604490910191908501908083836000831561254257818101518382015260200161252a565b50600083858161287757fe5b0495945050505050565b600061107f826107a985670de0b6b3a76400006112a3565b60006128a68360026112fc565b6002546040805163095ea7b360e01b81526001600160a01b03868116600483015260248201859052915193945091169163095ea7b3916044808201926020929091908290030181600087803b1580156128fe57600080fd5b505af1158015612912573d6000803e3d6000fd5b505050506040513d602081101561292857600080fd5b5050604080516391c05b0b60e01b81526004810183905290516001600160a01b038416916391c05b0b91602480830192600092919082900301818387803b15801561297257600080fd5b505af1158015612986573d6000803e3d6000fd5b5050600254600a546001600160a01b03918216935063095ea7b39250166129ad868561103d565b6040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050602060405180830381600087803b1580156129f357600080fd5b505af1158015612a07573d6000803e3d6000fd5b505050506040513d6020811015612a1d57600080fd5b5050600a546001600160a01b03166391c05b0b612a3a858461103d565b6040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b158015612a7057600080fd5b505af1158015612a84573d6000803e3d6000fd5b50505050505050565b6001600160a01b038316600090815260076020526040902054811115612ab257600080fd5b6001600160a01b038316600090815260076020526040902054612ad5908261103d565b6001600160a01b03808516600090815260076020908152604080832094909455918516815260089091522054612b0b9082611249565b6001600160a01b039092166000908152600860205260409020919091555050565b604080516bffffffffffffffffffffffff19606097881b81166020808401919091529690971b9096166034870152604886019390935260688501919091526088808501919091528151808503909101815260a89093019052815191012090565b816001600160a01b031663095ea7b384836040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050602060405180830381600087803b158015612be357600080fd5b505af1158015612bf7573d6000803e3d6000fd5b505050506040513d6020811015612c0d57600080fd5b505060408051631b8fec7360e11b81526004810183905290516001600160a01b0385169163371fd8e69160248083019260209291908290030181600087803b158015612c5857600080fd5b505af1158015612c6c573d6000803e3d6000fd5b505050506040513d6020811015612c8257600080fd5b5050505050565b6001600160a01b038216600090815260076020526040902054612cac9082611249565b6001600160a01b0390921660009081526007602052604090209190915550565b60606109fe848460008585612ce085612df2565b612d31576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b60208310612d705780518252601f199092019160209182019101612d51565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114612dd2576040519150601f19603f3d011682016040523d82523d6000602084013e612dd7565b606091505b5091509150612de7828286612df8565b979650505050505050565b3b151590565b60608315612e07575081611242565b825115612e175782518084602001fd5b60405162461bcd60e51b815260206004820181815284516024840152845185939192839260440191908501908083836000831561254257818101518382015260200161252a565b6040518061016001604052806000801916815260200160006001600160a01b0316815260200160006001600160a01b03168152602001600081526020016000815260200160008152602001600081526020016000815260200160001515815260200160001515815260200160008152509056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65725361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a264697066735822122009fb6c39e5c3991f02f7c24b5d317661a2c2442bcbba4a372c72c2dbb208316664736f6c634300060c0033

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

0000000000000000000000008dc85b6056b40c950e6119899cac90be9eeb4da7000000000000000000000000c80b0efb594df8be90a643c7f7a462541cd7f6ee000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc20000000000000000000000005c69bee701ef814a2b6a3edd4b1652cb9cc5aa6f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d

-----Decoded View---------------
Arg [0] : _staking (address): 0x8dC85B6056b40c950e6119899Cac90BE9EEb4da7
Arg [1] : _factory (address): 0xC80B0efB594df8bE90A643C7F7a462541Cd7F6eE
Arg [2] : _weth (address): 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2
Arg [3] : _uniswap_factory (address): 0x5C69bEe701ef814a2B6a3EDD4B1652CB9cc5aA6f
Arg [4] : _uniswap_router (address): 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D

-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 0000000000000000000000008dc85b6056b40c950e6119899cac90be9eeb4da7
Arg [1] : 000000000000000000000000c80b0efb594df8be90a643c7f7a462541cd7f6ee
Arg [2] : 000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
Arg [3] : 0000000000000000000000005c69bee701ef814a2b6a3edd4b1652cb9cc5aa6f
Arg [4] : 0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d


Deployed Bytecode Sourcemap

24838:17011:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;25863:36;;;:::i;:::-;;;;-1:-1:-1;;;;;25863:36:0;;;;;;;;;;;;;;25638:48;;;;;;;;;;;;;;;;-1:-1:-1;25638:48:0;;:::i;:::-;;;;;;;-1:-1:-1;;;;;25638:48:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27169:197;;;;;;;;;;;;;;;;-1:-1:-1;27169:197:0;;:::i;:::-;;27714:220;;;;;;;;;;;;;;;;-1:-1:-1;27714:220:0;;:::i;25010:34::-;;;:::i;:::-;;;;;;;;;;;;;;;;25827:29;;;:::i;25744:41::-;;;;;;;;;;;;;;;;-1:-1:-1;25744:41:0;-1:-1:-1;;;;;25744:41:0;;:::i;25051:52::-;;;:::i;37949:1158::-;;;;;;;;;;;;;;;;-1:-1:-1;37949:1158:0;;:::i;:::-;;;;;;;;;;;;;;;;;;25798:20;;;:::i;25693:44::-;;;;;;;;;;;;;;;;-1:-1:-1;25693:44:0;-1:-1:-1;;;;;25693:44:0;;:::i;2737:148::-;;;:::i;25116:42::-;;;:::i;34221:182::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;34221:182:0;;;;;;;;;;;;;;;;;;:::i;25226:39::-;;;:::i;34031:182::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;34031:182:0;;;;;;;;;;;;;;;;;;:::i;27374:138::-;;;;;;;;;;;;;;;;-1:-1:-1;27374:138:0;;:::i;2095:79::-;;;:::i;31413:322::-;;;;;;;;;;;;;;;;-1:-1:-1;31413:322:0;;:::i;27009:152::-;;;;;;;;;;;;;;;;-1:-1:-1;27009:152:0;-1:-1:-1;;;;;27009:152:0;;:::i;25953:40::-;;;:::i;25272:32::-;;;:::i;25165:48::-;;;:::i;24985:18::-;;;:::i;27520:186::-;;;;;;;;;;;;;;;;-1:-1:-1;27520:186:0;;:::i;25906:40::-;;;:::i;39115:1241::-;;;;;;;;;;;;;;;;-1:-1:-1;39115:1241:0;;;;;;;:::i;37512:429::-;;;;;;;;;;;;;;;;-1:-1:-1;37512:429:0;;;;;;;:::i;26915:86::-;;;;;;;;;;;;;;;;-1:-1:-1;26915:86:0;;:::i;3040:244::-;;;;;;;;;;;;;;;;-1:-1:-1;3040:244:0;-1:-1:-1;;;;;3040:244:0;;:::i;25863:36::-;;;-1:-1:-1;;;;;25863:36:0;;:::o;25638:48::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;25638:48:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;27169:197::-;2317:12;:10;:12::i;:::-;2307:6;;-1:-1:-1;;;;;2307:6:0;;;:22;;;2299:67;;;;;-1:-1:-1;;;2299:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;2299:67:0;;;;;;;;;;;;;;;27283:1:::1;27263:17;:21;27255:56;;;::::0;;-1:-1:-1;;;27255:56:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;27255:56:0;;;;;;;;;;;;;::::1;;27322:16;:36:::0;27169:197::o;27714:220::-;27785:10;27775:21;;;;:9;:21;;;;;;:32;-1:-1:-1;27775:32:0;27767:41;;;;;;27853:10;27843:21;;;;:9;:21;;;;;;:34;;27869:7;27843:25;:34::i;:::-;27829:10;27819:21;;;;:9;:21;;;;;:58;;;;27888:4;;:38;;-1:-1:-1;;;;;27888:4:0;;;;27918:7;27888:17;:38::i;:::-;27714:220;:::o;25010:34::-;25040:4;25010:34;:::o;25827:29::-;;;-1:-1:-1;;;;;25827:29:0;;:::o;25744:41::-;;;;;;;;;;;;;:::o;25051:52::-;25096:7;25051:52;:::o;37949:1158::-;38011:4;38056:24;;;:12;:24;;;;;38094:16;;;;;;;;;38091:1007;;;38167:12;;;38181:14;;;;38197;;;;38127:13;;38143:69;;-1:-1:-1;;;;;38167:12:0;;;;38181:14;;;38143:23;:69::i;:::-;38127:85;;38227:28;38258:36;38282:8;:11;;;38258:23;:36::i;:::-;38227:67;;38326:305;25040:4;38326:254;25096:7;38326:188;38474:39;38493:8;:19;;;38474:8;:14;;;:18;;:39;;;;:::i;:::-;38326:101;38412:8;:14;;;38326:39;38344:20;38326:8;:13;;;:17;;:39;;;;:::i;:::-;:85;;:101::i;:::-;:147;;:188::i;:305::-;38318:5;:313;38311:320;;;;;;;38091:1007;38704:14;;;;;38720:12;;38734:14;;;;38664:13;;38680:69;;-1:-1:-1;;;;;38704:14:0;;;;38720:12;;;38680:23;:69::i;:::-;38664:85;;38764:25;38792:36;38816:8;:11;;;38792:23;:36::i;:::-;38764:64;;38883:203;25040:4;38883:127;25096:7;38883:36;38901:17;38883:8;:13;;;:17;;:36;;;;:::i;:203::-;38860:19;;;;38850:30;;:5;;:9;:30::i;:::-;:236;38843:243;;;;;37949:1158;;;;:::o;25798:20::-;;;;:::o;25693:44::-;;;;;;;;;;;;;:::o;2737:148::-;2317:12;:10;:12::i;:::-;2307:6;;-1:-1:-1;;;;;2307:6:0;;;:22;;;2299:67;;;;;-1:-1:-1;;;2299:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;2299:67:0;;;;;;;;;;;;;;;2844:1:::1;2828:6:::0;;2807:40:::1;::::0;-1:-1:-1;;;;;2828:6:0;;::::1;::::0;2807:40:::1;::::0;2844:1;;2807:40:::1;2875:1;2858:19:::0;;-1:-1:-1;;;;;;2858:19:0::1;::::0;;2737:148::o;25116:42::-;;;;:::o;34221:182::-;26388:10;26402:9;26388:23;26380:32;;;;;;34340:55:::1;34354:5;34361:6;34369:8;34379;34389:5;34340:13;:55::i;:::-;34221:182:::0;;;;:::o;25226:39::-;25257:8;25226:39;:::o;34031:182::-;26388:10;26402:9;26388:23;26380:32;;;;;;34151:54:::1;34165:5;34172:6;34180:8;34190;34200:4;34151:13;:54::i;27374:138::-:0;2317:12;:10;:12::i;:::-;2307:6;;-1:-1:-1;;;;;2307:6:0;;;:22;;;2299:67;;;;;-1:-1:-1;;;2299:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;2299:67:0;;;;;;;;;;;;;;;27457:27:::1;:47:::0;27374:138::o;2095:79::-;2133:7;2160:6;-1:-1:-1;;;;;2160:6:0;2095:79;:::o;31413:322::-;31487:7;31535:24;;;:12;:24;;;;;31609:23;;;;31487:7;;31589:44;;:15;;:19;:44::i;:::-;31570:63;;31651:76;25257:8;31651:66;31712:4;31651:56;31683:8;:23;;;31651:27;31669:8;31651;:13;;;:17;;:27;;;;:::i;:76::-;31644:83;31413:322;-1:-1:-1;;;;31413:322:0:o;27009:152::-;2317:12;:10;:12::i;:::-;2307:6;;-1:-1:-1;;;;;2307:6:0;;;:22;;;2299:67;;;;;-1:-1:-1;;;2299:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;2299:67:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;27085:22:0;::::1;27077:31;;;::::0;::::1;;27119:7;:34:::0;;-1:-1:-1;;;;;;27119:34:0::1;-1:-1:-1::0;;;;;27119:34:0;;;::::1;::::0;;;::::1;::::0;;27009:152::o;25953:40::-;;;-1:-1:-1;;;;;25953:40:0;;:::o;25272:32::-;;;;:::o;25165:48::-;;;;:::o;24985:18::-;;;-1:-1:-1;;;;;24985:18:0;;:::o;27520:186::-;27572:4;;:57;;-1:-1:-1;;;;;27572:4:0;27594:10;27614:4;27621:7;27572:21;:57::i;:::-;27674:10;27664:21;;;;:9;:21;;;;;;:34;;27690:7;27664:25;:34::i;:::-;27650:10;27640:21;;;;:9;:21;;;;;:58;-1:-1:-1;27520:186:0:o;25906:40::-;;;-1:-1:-1;;;;;25906:40:0;;:::o;39115:1241::-;26388:10;26402:9;26388:23;26380:32;;;;;;39208:25:::1;39236:24:::0;;;:12:::1;:24;::::0;;;;39279:17:::1;::::0;::::1;::::0;::::1;;:26;39271:54;;;::::0;;-1:-1:-1;;;39271:54:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;39271:54:0;;;;;;;;;;;;;::::1;;39351:16;::::0;::::1;::::0;::::1;::::0;::::1;;;39336:12;::::0;39351:16;39420:73:::1;;39464:12;::::0;;39478:14;;::::1;::::0;-1:-1:-1;;;;;39464:12:0;;::::1;::::0;39478:14:::1;39420:73;;;39431:14;::::0;;::::1;::::0;39447:12;;-1:-1:-1;;;;;39431:14:0;;::::1;::::0;39447:12:::1;39420:73;39522:14;::::0;::::1;::::0;39378:115;;-1:-1:-1;39378:115:0;-1:-1:-1;39557:24:0::1;39570:10:::0;39557:12:::1;:24::i;:::-;39549:53;;;::::0;;-1:-1:-1;;;39549:53:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;39549:53:0;;;;;;;;;;;;;::::1;;39615:12;39630:50;39641:10;39653:9;39664:5;39671:8;39630:10;:50::i;:::-;39615:65;;39693:18;39714:7;:103;;39798:8;:19;;;39714:103;;;39735:12;::::0;;39749:14;;::::1;::::0;39765:19:::1;::::0;::::1;::::0;39724:71:::1;::::0;-1:-1:-1;;;;;39735:12:0;;::::1;::::0;39749:14:::1;::::0;39786:8;39724:10:::1;:71::i;:::-;39693:124;;39830:12;39845:105;39916:33;39944:4;39916:23;39934:4;39916:8;:13;;;:17;;:23;;;;:::i;:33::-;39869:11:::0;;39845:36:::1;::::0;:23:::1;:36::i;:::-;:70:::0;::::1;:105::i;:::-;39830:120:::0;-1:-1:-1;39961:17:0::1;39981:20;:4:::0;39990:10;39981:8:::1;:20::i;:::-;40012:46;::::0;;::::1;::::0;::::1;::::0;;;;;;::::1;::::0;::::1;::::0;-1:-1:-1;;;;;40012:46:0;;::::1;;::::0;::::1;::::0;::::1;::::0;::::1;::::0;::::1;::::0;;;;;;;::::1;::::0;::::1;::::0;;;;;::::1;::::0;::::1;::::0;;;;;::::1;::::0;::::1;::::0;;;;;::::1;::::0;::::1;::::0;;;;;::::1;::::0;::::1;::::0;;;;;::::1;::::0;::::1;::::0;::::1;::::0;;::::1;;;;::::0;;;;;;;;;::::1;;;;::::0;;;;::::1;::::0;::::1;::::0;;;;;39961:40;;-1:-1:-1;40012:46:0::1;::::0;39961:40;40043:4;40049:8;40012:9:::1;:46::i;:::-;40090:14;::::0;::::1;::::0;40144:16:::1;::::0;40120:19:::1;::::0;::::1;::::0;40069:93:::1;::::0;-1:-1:-1;;;;;40090:14:0::1;::::0;::::1;::::0;40120:41:::1;::::0;:23:::1;:41::i;:::-;40069:20;:93::i;:::-;40175:17;::::0;::::1;:24:::0;;-1:-1:-1;;40175:24:0::1;40195:4;40175:24:::0;;::::1;::::0;;;40275:14;::::1;::::0;40253:11;;40225:65:::1;::::0;;;;;;::::1;;;::::0;::::1;::::0;;;-1:-1:-1;;;;;40275:14:0;;::::1;::::0;40241:10:::1;::::0;40225:65:::1;::::0;;;;;;;::::1;40331:16;::::0;40301:4:::1;::::0;:47:::1;::::0;-1:-1:-1;;;;;40301:4:0;;::::1;::::0;40319:10:::1;::::0;40301:17:::1;:47::i;:::-;26423:1;;;;;;;;;39115:1241:::0;;:::o;37512:429::-;26388:10;26402:9;26388:23;26380:32;;;;;;37601:25:::1;37629:24:::0;;;:12:::1;:24;::::0;;;;37672:17:::1;::::0;::::1;::::0;::::1;;:26;37664:54;;;::::0;;-1:-1:-1;;;37664:54:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;37664:54:0;;;;;;;;;;;;;::::1;;37751:14;::::0;::::1;::::0;-1:-1:-1;;;;;37751:14:0::1;37737:10;:28;37729:54;;;::::0;;-1:-1:-1;;;37729:54:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;37729:54:0;;;;;;;;;;;;;::::1;;37797:16;::::0;::::1;::::0;::::1;::::0;::::1;;;37794:140;;;37830:31;37842:8;37852;37830:11;:31::i;:::-;37794:140;;;37892:30;37903:8;37913;37892:10;:30::i;:::-;26423:1;37512:429:::0;;:::o;26915:86::-;2317:12;:10;:12::i;:::-;2307:6;;-1:-1:-1;;;;;2307:6:0;;;:22;;;2299:67;;;;;-1:-1:-1;;;2299:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;2299:67:0;;;;;;;;;;;;;;;26979:5:::1;:14:::0;26915:86::o;3040:244::-;2317:12;:10;:12::i;:::-;2307:6;;-1:-1:-1;;;;;2307:6:0;;;:22;;;2299:67;;;;;-1:-1:-1;;;2299:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;2299:67:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;3129:22:0;::::1;3121:73;;;;-1:-1:-1::0;;;3121:73:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3231:6;::::0;;3210:38:::1;::::0;-1:-1:-1;;;;;3210:38:0;;::::1;::::0;3231:6;::::1;::::0;3210:38:::1;::::0;::::1;3259:6;:17:::0;;-1:-1:-1;;;;;;3259:17:0::1;-1:-1:-1::0;;;;;3259:17:0;;;::::1;::::0;;;::::1;::::0;;3040:244::o;632:106::-;720:10;632:106;:::o;7495:136::-;7553:7;7580:43;7584:1;7587;7580:43;;;;;;;;;;;;;;;;;:3;:43::i;:::-;7573:50;;7495:136;;;;;:::o;19182:177::-;19292:58;;;-1:-1:-1;;;;;19292:58:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;19292:58:0;-1:-1:-1;;;19292:58:0;;;19265:86;;19285:5;;19265:19;:86::i;28911:687::-;29021:7;29041:14;29066;29110:50;29138:9;29149:10;29110:27;:50::i;:::-;29208:15;;:39;;;-1:-1:-1;;;29208:39:0;;-1:-1:-1;;;;;29208:39:0;;;;;;;;;;;;;;;;29091:69;;-1:-1:-1;29091:69:0;;-1:-1:-1;29171:19:0;;29208:15;;;:23;;:39;;;;;;;;;;;;;;:15;:39;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;29208:39:0;29300:18;;;-1:-1:-1;;;29300:18:0;;;;29208:39;;-1:-1:-1;29260:16:0;;;;-1:-1:-1;;;;;29300:16:0;;;;;:18;;;;;;;;;;;;;;;:16;:18;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;29300:18:0;;;;;;;29259:59;;;;;-1:-1:-1;29259:59:0;;-1:-1:-1;29329:13:0;-1:-1:-1;;;;;29357:19:0;;;;;;;29353:215;;;29401:57;29431:6;29439:8;29449;29401:29;:57::i;:::-;29393:65;;29353:215;;;29499:57;29529:6;29537:8;29547;29499:29;:57::i;:::-;29491:65;;29353:215;29585:5;-1:-1:-1;;;;;;28911:687:0;;;;;;:::o;7031:181::-;7089:7;7121:5;;;7145:6;;;;7137:46;;;;;-1:-1:-1;;;7137:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;8385:471;8443:7;8688:6;8684:47;;-1:-1:-1;8718:1:0;8711:8;;8684:47;8755:5;;;8759:1;8755;:5;:1;8779:5;;;;;:10;8771:56;;;;-1:-1:-1;;;8771:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;9332:132;9390:7;9417:39;9421:1;9424;9417:39;;;;;;;;;;;;;;;;;:3;:39::i;31743:2241::-;31895:1;31886:6;:10;31878:34;;;;;-1:-1:-1;;;31878:34:0;;;;;;;;;;;;-1:-1:-1;;;31878:34:0;;;;;;;;;;;;;;;31938:14;;31923:12;;-1:-1:-1;;;;;31938:14:0;:22;31969:7;:30;;31995:4;;-1:-1:-1;;;;;31995:4:0;31969:30;;;31986:5;31969:30;31938:63;;;;;;;;;;;;;-1:-1:-1;;;;;31938:63:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;31938:63:0;;-1:-1:-1;;;;;;32022:18:0;;32014:50;;;;;-1:-1:-1;;;32014:50:0;;;;;;;;;;;;-1:-1:-1;;;32014:50:0;;;;;;;;;;;;;;;32101:14;;:36;;;-1:-1:-1;;;32101:36:0;;-1:-1:-1;;;;;32101:36:0;;;;;;;;;:45;;25040:4;;32101:14;;:29;;:36;;;;;;;;;;;;;;:14;;:36;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;32101:36:0;;:40;:45::i;:::-;32083:14;:63;;32075:96;;;;;-1:-1:-1;;;32075:96:0;;;;;;;;;;;;-1:-1:-1;;;32075:96:0;;;;;;;;;;;;;;;25040:4;32190:14;:21;;32182:50;;;;;-1:-1:-1;;;32182:50:0;;;;;;;;;;;;-1:-1:-1;;;32182:50:0;;;;;;;;;;;;;;;32245:17;32265:7;:71;;32330:6;32265:71;;;32306:12;;32275:52;;32299:5;;-1:-1:-1;;;;;32306:12:0;32320:6;32275:23;:52::i;:::-;32245:91;;32347:18;32368:43;32382:12;32396:14;32368:13;:43::i;:::-;32440:10;32430:21;;;;:9;:21;;;;;;32347:64;;-1:-1:-1;32430:35:0;-1:-1:-1;32430:35:0;32422:58;;;;;-1:-1:-1;;;32422:58:0;;;;;;;;;;;;-1:-1:-1;;;32422:58:0;;;;;;;;;;;;;;;32513:4;-1:-1:-1;;;;;32501:24:0;;32526:6;32501:32;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;32546:12;32595:17;32614:18;32636:7;:55;;32671:12;;-1:-1:-1;;;;;32671:12:0;32685:5;32636:55;;;32654:12;;32647:5;;-1:-1:-1;;;;;32654:12:0;32636:55;32594:97;;;;32713:57;32724:9;32735:10;32747:6;32755:14;32713:10;:57::i;:::-;32706:64;-1:-1:-1;32794:12:0;;-1:-1:-1;32809:23:0;;-1:-1:-1;32827:4:0;32810:11;32706:64;32819:1;32810:8;:11::i;32809:23::-;32794:38;-1:-1:-1;32853:14:0;:4;32794:38;32853:8;:14::i;:::-;32846:21;;32903:7;32899:123;;32952:12;;32934:53;;32945:5;;-1:-1:-1;;;;;32952:12:0;32966:4;32972:14;32934:10;:53::i;:::-;32927:60;;32899:123;33034:24;33047:4;33053;33034:12;:24::i;:::-;33071:78;33092:10;33104;33116:32;33131:16;;33116:10;:14;;:32;;;;:::i;:::-;33071:20;:78::i;:::-;33178:13;;33194:1;33178:17;33162:13;:33;;;;33232:18;33253:147;33281:10;33306:5;33326:6;33347:14;33376:13;;33253;:147::i;:::-;33232:168;;33413:24;;:::i;:::-;33440:406;;;;;;;;33766:10;33440:406;;;;33742:5;-1:-1:-1;;;;;33440:406:0;;;;;33562:10;-1:-1:-1;;;;;33440:406:0;;;;;33470:6;33440:406;;;;33498:4;33440:406;;;;33529:10;33440:406;;;;33706:14;33440:406;;;;33604:15;33440:406;;;;33675:5;33440:406;;;;;;33643:7;33440:406;;;;;;33807:27;;33440:406;;;33413:433;;33895:8;33867:12;:25;33880:8;:11;;;33867:25;;;;;;;;;;;:36;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;33867:36:0;;;;;-1:-1:-1;;;;;33867:36:0;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;33867:36:0;;;;;-1:-1:-1;;;;;33867:36:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;33970:5;-1:-1:-1;;;;;33921:55:0;33936:10;-1:-1:-1;;;;;33921:55:0;;33948:8;:11;;;33961:7;33921:55;;;;;;;;;;;;;;;;;;;;;;;;;;31743:2241;;;;;;;;;;;;:::o;19367:205::-;19495:68;;;-1:-1:-1;;;;;19495:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;19495:68:0;-1:-1:-1;;;19495:68:0;;;19468:96;;19488:5;;19468:19;:96::i;29606:1071::-;29774:14;;29740:57;;;-1:-1:-1;;;29740:57:0;;-1:-1:-1;;;;;29774:14:0;;;29740:57;;;;;;;;;;;;29715:12;;29740:25;;;;;:57;;;;;;;;;;;;;;29715:12;29740:25;:57;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;29832:16:0;;;29846:1;29832:16;;;29808:21;29832:16;;;;;29808:21;29832:16;;;;;;;;;;-1:-1:-1;29832:16:0;29808:40;;29869:9;29859:4;29864:1;29859:7;;;;;;;;;;;;;:19;-1:-1:-1;;;;;29859:19:0;;;-1:-1:-1;;;;;29859:19:0;;;;;29899:10;29889:4;29894:1;29889:7;;;;;;;;;;;;;:20;-1:-1:-1;;;;;29889:20:0;;;-1:-1:-1;;;;;29889:20:0;;;;;29920:16;29939:26;29959:5;;29939:15;:19;;:26;;;;:::i;:::-;29920:45;;29976:14;29993:53;30017:9;30028:10;30040:5;29993:23;:53::i;:::-;29976:70;-1:-1:-1;30057:26:0;30087:45;30099:31;25040:4;30100:20;29976:70;30111:8;30100:10;:20::i;30099:31::-;30087:6;;:10;:45::i;:::-;30057:76;;30144:21;30175:10;-1:-1:-1;;;;;30168:28:0;;30205:4;30168:43;;;;;;;;;;;;;-1:-1:-1;;;;;30168:43:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;30168:43:0;30243:14;;30224:260;;-1:-1:-1;;;30224:260:0;;;;;;;;;;;;;;30437:4;30224:260;;;;;;;;;;;;;;;;;;;;;;;;;;;30168:43;;-1:-1:-1;;;;;;30243:14:0;;;;30224:102;;30345:5;;30369:18;;30406:4;;30437;30461:8;;30224:260;;;;;30168:43;30224:260;;;;;;;;30243:14;30224:260;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30509:20;30539:10;-1:-1:-1;;;;;30532:28:0;;30569:4;30532:43;;;;;;;;;;;;;-1:-1:-1;;;;;30532:43:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;30532:43:0;;-1:-1:-1;30593:31:0;30532:43;30610:13;30593:16;:31::i;:::-;30586:38;;30652:1;30645:4;:8;30637:32;;;;;-1:-1:-1;;;30637:32:0;;;;;;;;;;;;-1:-1:-1;;;30637:32:0;;;;;;;;;;;;;;;29606:1071;;;;;;;;;;;;:::o;40364:1478::-;40473:17;40493:8;:16;;;:48;;40529:12;;-1:-1:-1;;;;;40529:12:0;40493:48;;;40512:8;:14;;;40493:48;40567:14;;:33;;;-1:-1:-1;;;40567:33:0;;-1:-1:-1;;;;;40567:33:0;;;;;;;;;40473:68;;-1:-1:-1;40552:12:0;;40567:14;;;;;:22;;:33;;;;;;;;;;;;;;40552:12;40567:14;:33;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;40567:33:0;40626:13;;;;40567:33;;-1:-1:-1;40614:25:0;;40611:1224;;;40656:46;40671:4;40677:9;40688:8;:13;;;40656:14;:46::i;:::-;40717:17;40737:28;40751:8;:13;;;40737:9;:13;;:28;;;;:::i;:::-;40717:48;;40795:4;40783:9;:16;40780:923;;;40846:24;40873:19;:9;40887:4;40873:13;:19::i;:::-;40846:46;;40914:8;:16;;;40911:150;;;40973:14;;;;40989:12;;40962:56;;40973:14;-1:-1:-1;;;;;40989:12:0;41003:4;41009:8;40962:10;:56::i;:::-;40955:63;;40911:150;41079:24;41092:4;41098;41079:12;:24::i;:::-;41125:8;:16;;;41122:154;;;41196:14;;;;41212:12;;41185:71;;41196:14;-1:-1:-1;;;;;41212:12:0;41226:19;:9;41240:4;41226:13;:19::i;:::-;41247:8;41185:10;:71::i;:::-;41166:90;;41122:154;41294:48;41309:8;:14;;;41325:16;41294:14;:48::i;:::-;40780:923;;;;41412:8;:16;;;41409:231;;;41525:14;;;;41541:12;;41595:13;;;;41514:106;;41525:14;-1:-1:-1;;;;;41541:12:0;;41581:28;;:9;;:13;:28::i;:::-;41611:8;41514:10;:106::i;:::-;41502:118;;41409:231;41658:29;41671:9;41682:4;41658:12;:29::i;:::-;40611:1224;;;;41781:42;41796:4;41802:9;41813;41781:14;:42::i;:::-;40364:1478;;;;;;:::o;28185:232::-;-1:-1:-1;;;;;28284:12:0;;;;;;:6;:12;;;;;;:22;-1:-1:-1;28284:22:0;28276:31;;;;;;-1:-1:-1;;;;;28333:12:0;;;;;;:6;:12;;;;;;:24;;28350:6;28333:16;:24::i;:::-;-1:-1:-1;;;;;28318:12:0;;;;;;;:6;:12;;;;;;;;:39;;;;28384:13;;;;;:9;:13;;;;;:25;;28402:6;28384:17;:25::i;:::-;-1:-1:-1;;;;;28368:13:0;;;;;;;:9;:13;;;;;:41;;;;-1:-1:-1;;28185:232:0:o;34411:1832::-;34514:14;;;;;34554:13;;;;34599:19;;;;34646:14;;;34669;;;34646:38;;;-1:-1:-1;;;34646:38:0;;-1:-1:-1;;;;;34669:14:0;;;34646:38;;;;;;;;34514:14;;34554:13;;34599:19;;34498:13;;34646:14;;;;;:22;;:38;;;;;;;;;;;;;;34498:13;34646:14;:38;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;34646:38:0;34752:11;;34646:38;;-1:-1:-1;34697:28:0;;34728:36;;:23;:36::i;:::-;34801:12;;;34815:14;;;;34697:67;;-1:-1:-1;34775:12:0;;34790:57;;-1:-1:-1;;;;;34801:12:0;;;;34815:14;34831:5;34838:8;34790:10;:57::i;:::-;34775:72;-1:-1:-1;34874:68:0;34920:21;:5;34930:10;34920:9;:21::i;:::-;34874:41;34909:5;34874:30;:4;34883:20;34874:8;:30::i;:68::-;34866:4;:76;;34858:103;;;;;-1:-1:-1;;;34858:103:0;;;;;;;;;;;;-1:-1:-1;;;34858:103:0;;;;;;;;;;;;;;;34990:11;;;34974:13;35039:450;;;;35067:22;35092:14;:4;35101;35092:8;:14::i;:::-;35141;;;;;35157:12;;35067:39;;-1:-1:-1;35130:66:0;;-1:-1:-1;;;;;35141:14:0;;;;35157:12;35067:39;35187:8;35130:10;:66::i;:::-;35121:75;;35039:450;;;;35285:12;;;35299:14;;;;35245:26;;35274:62;;-1:-1:-1;;;;;35285:12:0;;;;35299:14;35315:10;35327:8;35274:10;:62::i;:::-;35371:14;;;;;35387:12;;35245:91;;-1:-1:-1;35360:90:0;;-1:-1:-1;;;;;35371:14:0;;;;35387:12;35401:38;35424:14;:4;35433;35424:8;:14::i;:::-;35401:18;;:22;:38::i;:::-;35441:8;35360:10;:90::i;:::-;35351:99;;35039:450;;35501:26;35553:1;35530:20;:24;:107;;35636:1;35530:107;;;35581:14;;;;35605:4;;35557:76;;-1:-1:-1;;;;;35581:14:0;;;;35605:4;35612:20;35557:23;:76::i;:::-;35501:136;-1:-1:-1;35650:12:0;35665:112;35501:136;35665:57;35717:4;35665:16;:6;35676:4;35665:10;:16::i;:112::-;35811:14;;;;35650:127;;-1:-1:-1;35790:42:0;;35805:4;;-1:-1:-1;;;;;35811:14:0;35827:4;35790:14;:42::i;:::-;35845:24;35858:4;35864;35845:12;:24::i;:::-;35903:14;;;;35882:90;;-1:-1:-1;;;;;35903:14:0;35919:8;:40;;35955:3;35919:40;;;35930:14;;;;-1:-1:-1;;;;;35930:14:0;35919:40;35961:10;35882:20;:90::i;:::-;36004:14;;;;36036:16;;35983:70;;-1:-1:-1;;;;;36004:14:0;;;;35983:20;:70::i;:::-;36079:14;;;;36064:48;;-1:-1:-1;;;;;36079:14:0;36095:16;:6;36106:4;36095:10;:16::i;:::-;36064:14;:48::i;:::-;36133:17;;;:24;;-1:-1:-1;;36133:24:0;36153:4;36133:24;;;;;;36220:14;;;;36201:11;;36173:62;;;;;;;;;;;;;;;-1:-1:-1;;;;;36220:14:0;;;;36189:10;;36173:62;;;;;;;;;;34411:1832;;;;;;;;;;;;:::o;36251:1253::-;36351:14;;;;;36391:13;;;;36430:14;;;36453:12;36430:36;;;-1:-1:-1;;;36430:36:0;;-1:-1:-1;;;;;36453:12:0;;;36430:36;;;;;;;;36351:14;;36391:13;;36335;;36430:14;;;;;:22;;:36;;;;;;;;;;;;;;;36335:13;36430:14;:36;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;36430:36:0;36531:11;;36430:36;;-1:-1:-1;36479:25:0;;36507:36;;:23;:36::i;:::-;36580:14;;;;;36596:12;;36479:64;;-1:-1:-1;36554:12:0;;36569:57;;-1:-1:-1;;;;;36580:14:0;;;;36596:12;36610:5;36617:8;36569:10;:57::i;:::-;36554:72;;36653:52;36687:17;36653:29;36662:8;:19;;;36653:4;:8;;:29;;;;:::i;:52::-;36645:4;:60;;36637:87;;;;;-1:-1:-1;;;36637:87:0;;;;;;;;;;;;-1:-1:-1;;;36637:87:0;;;;;;;;;;;;;;;36758:19;;;;36806:12;;;;36737:18;36806:12;36848:58;;36876:30;36891:14;:4;36900;36891:8;:14::i;:::-;36876:10;;:14;:30::i;:::-;36848:58;;;36859:14;:4;36868;36859:8;:14::i;:::-;36831:75;-1:-1:-1;36919:12:0;36934:111;37027:17;36934:57;36986:4;36934:16;36831:75;36945:4;36934:10;:16::i;:111::-;37079:12;;36919:126;;-1:-1:-1;37058:40:0;;37073:4;;-1:-1:-1;;;;;37079:12:0;37093:4;37058:14;:40::i;:::-;37111:24;37124:4;37130;37111:12;:24::i;:::-;37169:14;;;;37148:90;;-1:-1:-1;;;;;37169:14:0;37185:8;:40;;37221:3;37185:40;;;37196:14;;;;-1:-1:-1;;;;;37196:14:0;37185:40;37227:10;37148:20;:90::i;:::-;37270:14;;;;37302:16;;37249:70;;-1:-1:-1;;;;;37270:14:0;;;;37249:20;:70::i;:::-;37347:14;;;;37332:48;;-1:-1:-1;;;;;37347:14:0;37363:16;:6;37374:4;37363:10;:16::i;37332:48::-;37393:17;;;:24;;-1:-1:-1;;37393:24:0;37413:4;37393:24;;;;;;37481:14;;;37461:11;;37433:63;;;;;;37393:17;37433:63;;;;;;-1:-1:-1;;;;;37481:14:0;;;;37449:10;;37433:63;;;;;;;;;36251:1253;;;;;;;;;;;:::o;7934:192::-;8020:7;8056:12;8048:6;;;;8040:29;;;;-1:-1:-1;;;8040:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;8092:5:0;;;7934:192::o;21487:761::-;21911:23;21937:69;21965:4;21937:69;;;;;;;;;;;;;;;;;21945:5;-1:-1:-1;;;;;21937:27:0;;;:69;;;;;:::i;:::-;22021:17;;21911:95;;-1:-1:-1;22021:21:0;22017:224;;22163:10;22152:30;;;;;;;;;;;;;;;-1:-1:-1;22152:30:0;22144:85;;;;-1:-1:-1;;;22144:85:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23136:323;23211:14;23227;23272:6;-1:-1:-1;;;;;23262:16:0;:6;-1:-1:-1;;;;;23262:16:0;;;23254:53;;;;;-1:-1:-1;;;23254:53:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;23346:6;-1:-1:-1;;;;;23337:15:0;:6;-1:-1:-1;;;;;23337:15:0;;:53;;23375:6;23383;23337:53;;;23356:6;23364;23337:53;23318:72;;-1:-1:-1;23318:72:0;-1:-1:-1;;;;;;23409:20:0;;23401:50;;;;;-1:-1:-1;;;23401:50:0;;;;;;;;;;;;-1:-1:-1;;;23401:50:0;;;;;;;;;;;;;;;23136:323;;;;;:::o;23585:491::-;23678:14;23724:1;23713:8;:12;23705:55;;;;;-1:-1:-1;;;23705:55:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;23791:1;23779:9;:13;:31;;;;;23809:1;23796:10;:14;23779:31;23771:71;;;;;-1:-1:-1;;;23771:71:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;23853:20;23876:17;:8;23889:3;23876:12;:17::i;:::-;23853:40;-1:-1:-1;23904:14:0;23921:31;23853:40;23941:10;23921:19;:31::i;:::-;23904:48;-1:-1:-1;23963:16:0;23982:40;24006:15;23982:19;:9;23996:4;23982:13;:19::i;:40::-;23963:59;;24057:11;24045:9;:23;;;;;;;23585:491;-1:-1:-1;;;;;;;23585:491:0:o;9960:278::-;10046:7;10081:12;10074:5;10066:28;;;;-1:-1:-1;;;10066:28:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;10105:9;10121:1;10117;:5;;;;;;;9960:278;-1:-1:-1;;;;;9960:278:0:o;30685:173::-;30768:18;30812:38;30835:14;30813:16;:7;25040:4;30813:11;:16::i;30866:358::-;30935:16;30954:11;:4;30963:1;30954:8;:11::i;:::-;31000:4;;:28;;;-1:-1:-1;;;31000:28:0;;-1:-1:-1;;;;;31000:28:0;;;;;;;;;;;;;;;30935:30;;-1:-1:-1;31000:4:0;;;:12;;:28;;;;;;;;;;;;;;;:4;;:28;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;31040:38:0;;;-1:-1:-1;;;31040:38:0;;;;;;;;;;-1:-1:-1;;;;;31040:28:0;;;;;:38;;;;;-1:-1:-1;;31040:38:0;;;;;;;-1:-1:-1;31040:28:0;:38;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;31117:4:0;;31138:7;;-1:-1:-1;;;;;31117:4:0;;;;-1:-1:-1;31117:12:0;;-1:-1:-1;31138:7:0;31148:18;:4;31157:8;31148;:18::i;:::-;31117:50;;;;;;;;;;;;;-1:-1:-1;;;;;31117:50:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;31178:7:0;;-1:-1:-1;;;;;31178:7:0;:18;31197;:4;31206:8;31197;:18::i;:::-;31178:38;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30866:358;;;:::o;27942:235::-;-1:-1:-1;;;;;28041:15:0;;;;;;:9;:15;;;;;;:25;-1:-1:-1;28041:25:0;28033:34;;;;;;-1:-1:-1;;;;;28096:15:0;;;;;;:9;:15;;;;;;:27;;28116:6;28096:19;:27::i;:::-;-1:-1:-1;;;;;28078:15:0;;;;;;;:9;:15;;;;;;;;:45;;;;28147:10;;;;;:6;:10;;;;;:22;;28162:6;28147:14;:22::i;:::-;-1:-1:-1;;;;;28134:10:0;;;;;;;:6;:10;;;;;:35;;;;-1:-1:-1;;27942:235:0:o;28553:350::-;28829:55;;;-1:-1:-1;;28829:55:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;28805:90;;;;;;28553:350::o;31232:173::-;31327:5;-1:-1:-1;;;;;31320:21:0;;31342:4;31348:6;31320:35;;;;;;;;;;;;;-1:-1:-1;;;;;31320:35:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;31366:31:0;;;-1:-1:-1;;;31366:31:0;;;;;;;;;;-1:-1:-1;;;;;31366:23:0;;;;;:31;;;;;31320:35;;31366:31;;;;;;;-1:-1:-1;31366:23:0;:31;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;31232:173:0:o;28425:120::-;-1:-1:-1;;;;;28512:13:0;;;;;;:9;:13;;;;;;:25;;28530:6;28512:17;:25::i;:::-;-1:-1:-1;;;;;28496:13:0;;;;;;;:9;:13;;;;;:41;;;;-1:-1:-1;28425:120:0:o;15181:195::-;15284:12;15316:52;15338:6;15346:4;15352:1;15355:12;15284;16485:18;16496:6;16485:10;:18::i;:::-;16477:60;;;;;-1:-1:-1;;;16477:60:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;16611:12;16625:23;16652:6;-1:-1:-1;;;;;16652:11:0;16672:5;16680:4;16652:33;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;16652:33:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;16610:75;;;;16703:52;16721:7;16730:10;16742:12;16703:17;:52::i;:::-;16696:59;16233:530;-1:-1:-1;;;;;;;16233:530:0:o;12263:422::-;12630:20;12669:8;;;12263:422::o;17769:742::-;17884:12;17913:7;17909:595;;;-1:-1:-1;17944:10:0;17937:17;;17909:595;18058:17;;:21;18054:439;;18321:10;18315:17;18382:15;18369:10;18365:2;18361:19;18354:44;18269:148;18457:20;;-1:-1:-1;;;18457:20:0;;;;;;;;;;;;;;;;;18464:12;;18457:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o

Swarm Source

ipfs://09fb6c39e5c3991f02f7c24b5d317661a2c2442bcbba4a372c72c2dbb2083166

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.