Contract 0x6107114BDf5691ADEE675Ea6E9f09d34c6338cc4

 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x741dcf63b81729bf8f176c46c4192d6ffb9e0cabfa2943a4b23070dc7343402b0x60806040150331582021-05-28 12:56:37144 days 6 hrs ago0x1fa44444291e2066b89969192b731eae6cd2cd25 IN  Contract Creation0 MATIC0.002579032
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
HQuickSwap

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at polygonscan.com on 2021-06-15
*/

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

// SPDX-License-Identifier: MIT

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/interface/IERC20Usdt.sol

pragma solidity ^0.6.0;

interface IERC20Usdt {
    function totalSupply() external view returns (uint256);

    function balanceOf(address account) external view returns (uint256);

    function transfer(address recipient, uint256 amount) external;

    function allowance(address owner, address spender) external view returns (uint256);

    function approve(address spender, uint256 amount) external;

    function transferFrom(address sender, address recipient, uint256 amount) external;

    event Transfer(address indexed from, address indexed to, uint256 value);

    event Approval(address indexed owner, address indexed spender, uint256 value);
}

// File: contracts/Config.sol

pragma solidity ^0.6.0;

contract Config {
    // function signature of "postProcess()"
    bytes4 public constant POSTPROCESS_SIG = 0xc2722916;

    // The base amount of percentage function
    uint256 public constant PERCENTAGE_BASE = 1 ether;

    // Handler post-process type. Others should not happen now.
    enum HandlerType {Token, Custom, Others}
}

// File: contracts/lib/LibCache.sol

pragma solidity ^0.6.0;

library LibCache {
    function set(
        mapping(bytes32 => bytes32) storage _cache,
        bytes32 _key,
        bytes32 _value
    ) internal {
        _cache[_key] = _value;
    }

    function setAddress(
        mapping(bytes32 => bytes32) storage _cache,
        bytes32 _key,
        address _value
    ) internal {
        _cache[_key] = bytes32(uint256(uint160(_value)));
    }

    function setUint256(
        mapping(bytes32 => bytes32) storage _cache,
        bytes32 _key,
        uint256 _value
    ) internal {
        _cache[_key] = bytes32(_value);
    }

    function getAddress(
        mapping(bytes32 => bytes32) storage _cache,
        bytes32 _key
    ) internal view returns (address ret) {
        ret = address(uint160(uint256(_cache[_key])));
    }

    function getUint256(
        mapping(bytes32 => bytes32) storage _cache,
        bytes32 _key
    ) internal view returns (uint256 ret) {
        ret = uint256(_cache[_key]);
    }

    function get(mapping(bytes32 => bytes32) storage _cache, bytes32 _key)
        internal
        view
        returns (bytes32 ret)
    {
        ret = _cache[_key];
    }
}

// File: contracts/lib/LibStack.sol

pragma solidity ^0.6.0;


library LibStack {
    function setAddress(bytes32[] storage _stack, address _input) internal {
        _stack.push(bytes32(uint256(uint160(_input))));
    }

    function set(bytes32[] storage _stack, bytes32 _input) internal {
        _stack.push(_input);
    }

    function setHandlerType(bytes32[] storage _stack, Config.HandlerType _input)
        internal
    {
        _stack.push(bytes12(uint96(_input)));
    }

    function getAddress(bytes32[] storage _stack)
        internal
        returns (address ret)
    {
        ret = address(uint160(uint256(peek(_stack))));
        _stack.pop();
    }

    function getSig(bytes32[] storage _stack) internal returns (bytes4 ret) {
        ret = bytes4(peek(_stack));
        _stack.pop();
    }

    function get(bytes32[] storage _stack) internal returns (bytes32 ret) {
        ret = peek(_stack);
        _stack.pop();
    }

    function peek(bytes32[] storage _stack)
        internal
        view
        returns (bytes32 ret)
    {
        require(_stack.length > 0, "stack empty");
        ret = _stack[_stack.length - 1];
    }
}

// File: contracts/Storage.sol

pragma solidity ^0.6.0;



/// @notice A cache structure composed by a bytes32 array
contract Storage {
    using LibCache for mapping(bytes32 => bytes32);
    using LibStack for bytes32[];

    bytes32[] public stack;
    mapping(bytes32 => bytes32) public cache;

    // keccak256 hash of "msg.sender"
    // prettier-ignore
    bytes32 public constant MSG_SENDER_KEY = 0xb2f2618cecbbb6e7468cc0f2aa43858ad8d153e0280b22285e28e853bb9d453a;

    // keccak256 hash of "cube.counter"
    // prettier-ignore
    bytes32 public constant CUBE_COUNTER_KEY = 0xf9543f11459ccccd21306c8881aaab675ff49d988c1162fd1dd9bbcdbe4446be;

    modifier isStackEmpty() {
        require(stack.length == 0, "Stack not empty");
        _;
    }

    modifier isCubeCounterZero() {
        require(_getCubeCounter() == 0, "Cube counter not zero");
        _;
    }

    modifier isInitialized() {
        require(_getSender() != address(0), "Sender is not initialized");
        _;
    }

    modifier isNotInitialized() {
        require(_getSender() == address(0), "Sender is initialized");
        _;
    }

    function _setSender() internal isNotInitialized {
        cache.setAddress(MSG_SENDER_KEY, msg.sender);
    }

    function _resetSender() internal {
        cache.setAddress(MSG_SENDER_KEY, address(0));
    }

    function _getSender() internal view returns (address) {
        return cache.getAddress(MSG_SENDER_KEY);
    }

    function _addCubeCounter() internal {
        cache.setUint256(CUBE_COUNTER_KEY, _getCubeCounter() + 1);
    }

    function _resetCubeCounter() internal {
        cache.setUint256(CUBE_COUNTER_KEY, 0);
    }

    function _getCubeCounter() internal view returns (uint256) {
        return cache.getUint256(CUBE_COUNTER_KEY);
    }
}

// File: contracts/handlers/HandlerBase.sol

pragma solidity ^0.6.0;





abstract contract HandlerBase is Storage, Config {
    using SafeERC20 for IERC20;

    address private constant MATIC_TOKEN =
        0x0000000000000000000000000000000000001010;

    function postProcess() external payable virtual {
        revert("Invalid post process");
        /* Implementation template
        bytes4 sig = stack.getSig();
        if (sig == bytes4(keccak256(bytes("handlerFunction_1()")))) {
            // Do something
        } else if (sig == bytes4(keccak256(bytes("handlerFunction_2()")))) {
            bytes32 temp = stack.get();
            // Do something
        } else revert("Invalid post process");
        */
    }

    function _updateToken(address token) internal {
        _notMaticToken(token);
        stack.setAddress(token);
        // Ignore token type to fit old handlers
        // stack.setHandlerType(uint256(HandlerType.Token));
    }

    function _updatePostProcess(bytes32[] memory params) internal {
        for (uint256 i = params.length; i > 0; i--) {
            stack.set(params[i - 1]);
        }
        stack.set(msg.sig);
        stack.setHandlerType(HandlerType.Custom);
    }

    function getContractName() public pure virtual returns (string memory);

    function _revertMsg(string memory functionName, string memory reason)
        internal
        view
    {
        revert(
            string(
                abi.encodePacked(
                    _uint2String(_getCubeCounter()),
                    "_",
                    getContractName(),
                    "_",
                    functionName,
                    ": ",
                    reason
                )
            )
        );
    }

    function _revertMsg(string memory functionName) internal view {
        _revertMsg(functionName, "Unspecified");
    }

    function _uint2String(uint256 n) internal pure returns (string memory) {
        if (n == 0) {
            return "0";
        } else {
            uint256 len = 0;
            for (uint256 temp = n; temp > 0; temp /= 10) {
                len++;
            }
            bytes memory str = new bytes(len);
            for (uint256 i = len; i > 0; i--) {
                str[i - 1] = bytes1(uint8(48 + (n % 10)));
                n /= 10;
            }
            return string(str);
        }
    }

    function _getBalance(address token, uint256 amount)
        internal
        view
        returns (uint256)
    {
        if (amount != uint256(-1)) {
            return amount;
        }

        // ETH case
        if (
            token == address(0) ||
            token == address(0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE)
        ) {
            return address(this).balance;
        }
        // ERC20 token case
        return IERC20(token).balanceOf(address(this));
    }

    function _tokenApprove(
        address token,
        address spender,
        uint256 amount
    ) internal {
        try IERC20Usdt(token).approve(spender, amount) {} catch {
            IERC20(token).safeApprove(spender, 0);
            IERC20(token).safeApprove(spender, amount);
        }
    }

    // Do not support matic token (0x0000...1010)
    function _notMaticToken(address token) internal pure {
        require(token != MATIC_TOKEN, "Not support matic token");
    }

    function _notMaticToken(address[] memory tokens) internal pure {
        for (uint256 i = 0; i < tokens.length; i++) {
            require(tokens[i] != MATIC_TOKEN, "Not support matic token");
        }
    }
}

// File: contracts/handlers/quickswap/IUniswapV2Pair.sol

pragma solidity >=0.6.0;

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

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

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

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

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

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

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

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

    function initialize(address, address) external;
}

// File: contracts/handlers/quickswap/libraries/UniswapV2Library.sol

pragma solidity >=0.6.0;



library UniswapV2Library {
    using SafeMath for uint256;

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

    // calculates the CREATE2 address for a pair without making any external calls
    function pairFor(
        address factory,
        address tokenA,
        address tokenB
    ) internal pure returns (address pair) {
        (address token0, address token1) = sortTokens(tokenA, tokenB);

        pair = address(
            uint256(
                keccak256(
                    abi.encodePacked(
                        hex"ff",
                        factory,
                        keccak256(abi.encodePacked(token0, token1)),
                        hex"96e8ac4277198ff8b6f785478aa9a39f403cb768dd02cbee326c3e7da348845f" // init code hash
                    )
                )
            )
        );
    }

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

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

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

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

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

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

// File: contracts/handlers/quickswap/IUniswapV2Router02.sol

pragma solidity ^0.6.0;


interface IUniswapV2Router02 {
    function factory() external pure returns (address);

    function WETH() external pure returns (address);

    function addLiquidity(
        address tokenA,
        address tokenB,
        uint256 amountADesired,
        uint256 amountBDesired,
        uint256 amountAMin,
        uint256 amountBMin,
        address to,
        uint256 deadline
    )
        external
        returns (
            uint256 amountA,
            uint256 amountB,
            uint256 liquidity
        );

    function addLiquidityETH(
        address token,
        uint256 amountTokenDesired,
        uint256 amountTokenMin,
        uint256 amountETHMin,
        address to,
        uint256 deadline
    )
        external
        payable
        returns (
            uint256 amountToken,
            uint256 amountETH,
            uint256 liquidity
        );

    function removeLiquidity(
        address tokenA,
        address tokenB,
        uint256 liquidity,
        uint256 amountAMin,
        uint256 amountBMin,
        address to,
        uint256 deadline
    ) external returns (uint256 amountA, uint256 amountB);

    function removeLiquidityETH(
        address token,
        uint256 liquidity,
        uint256 amountTokenMin,
        uint256 amountETHMin,
        address to,
        uint256 deadline
    ) external returns (uint256 amountToken, uint256 amountETH);

    function removeLiquidityWithPermit(
        address tokenA,
        address tokenB,
        uint256 liquidity,
        uint256 amountAMin,
        uint256 amountBMin,
        address to,
        uint256 deadline,
        bool approveMax,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external returns (uint256 amountA, uint256 amountB);

    function removeLiquidityETHWithPermit(
        address token,
        uint256 liquidity,
        uint256 amountTokenMin,
        uint256 amountETHMin,
        address to,
        uint256 deadline,
        bool approveMax,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external returns (uint256 amountToken, uint256 amountETH);

    function swapExactTokensForTokens(
        uint256 amountIn,
        uint256 amountOutMin,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external returns (uint256[] memory amounts);

    function swapTokensForExactTokens(
        uint256 amountOut,
        uint256 amountInMax,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external returns (uint256[] memory amounts);

    function swapExactETHForTokens(
        uint256 amountOutMin,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external payable returns (uint256[] memory amounts);

    function swapTokensForExactETH(
        uint256 amountOut,
        uint256 amountInMax,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external returns (uint256[] memory amounts);

    function swapExactTokensForETH(
        uint256 amountIn,
        uint256 amountOutMin,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external returns (uint256[] memory amounts);

    function swapETHForExactTokens(
        uint256 amountOut,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external payable returns (uint256[] memory amounts);

    function quote(
        uint256 amountA,
        uint256 reserveA,
        uint256 reserveB
    ) external pure returns (uint256 amountB);

    function getAmountOut(
        uint256 amountIn,
        uint256 reserveIn,
        uint256 reserveOut
    ) external pure returns (uint256 amountOut);

    function getAmountIn(
        uint256 amountOut,
        uint256 reserveIn,
        uint256 reserveOut
    ) external pure returns (uint256 amountIn);

    function getAmountsOut(uint256 amountIn, address[] calldata path)
        external
        view
        returns (uint256[] memory amounts);

    function getAmountsIn(uint256 amountOut, address[] calldata path)
        external
        view
        returns (uint256[] memory amounts);

    function removeLiquidityETHSupportingFeeOnTransferTokens(
        address token,
        uint256 liquidity,
        uint256 amountTokenMin,
        uint256 amountETHMin,
        address to,
        uint256 deadline
    ) external returns (uint256 amountETH);

    function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens(
        address token,
        uint256 liquidity,
        uint256 amountTokenMin,
        uint256 amountETHMin,
        address to,
        uint256 deadline,
        bool approveMax,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external returns (uint256 amountETH);

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

    function swapExactETHForTokensSupportingFeeOnTransferTokens(
        uint256 amountOutMin,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external payable;

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

// File: contracts/handlers/quickswap/HQuickSwap.sol

pragma solidity ^0.6.0;






contract HQuickSwap is HandlerBase {
    using SafeERC20 for IERC20;
    using SafeMath for uint256;

    // prettier-ignore
    address public constant UNISWAPV2_ROUTER = 0xa5E0829CaCEd8fFDD4De3c43696c57F7D7A678ff;

    function getContractName() public pure override returns (string memory) {
        return "HQuickSwap";
    }

    function addLiquidityETH(
        uint256 value,
        address token,
        uint256 amountTokenDesired,
        uint256 amountTokenMin,
        uint256 amountETHMin
    )
        external
        payable
        returns (
            uint256 amountToken,
            uint256 amountETH,
            uint256 liquidity
        )
    {
        _notMaticToken(token);

        // Get uniswapV2 router
        IUniswapV2Router02 router = IUniswapV2Router02(UNISWAPV2_ROUTER);

        // Approve token
        value = _getBalance(address(0), value);
        amountTokenDesired = _getBalance(token, amountTokenDesired);
        _tokenApprove(token, UNISWAPV2_ROUTER, amountTokenDesired);

        // Add liquidity ETH
        try
            router.addLiquidityETH{value: value}(
                token,
                amountTokenDesired,
                amountTokenMin,
                amountETHMin,
                address(this),
                now + 1
            )
        returns (uint256 ret1, uint256 ret2, uint256 ret3) {
            amountToken = ret1;
            amountETH = ret2;
            liquidity = ret3;
        } catch Error(string memory reason) {
            _revertMsg("addLiquidityETH", reason);
        } catch {
            _revertMsg("addLiquidityETH");
        }

        // Update involved token
        address pair =
            UniswapV2Library.pairFor(router.factory(), token, router.WETH());
        _updateToken(pair);
    }

    function addLiquidity(
        address tokenA,
        address tokenB,
        uint256 amountADesired,
        uint256 amountBDesired,
        uint256 amountAMin,
        uint256 amountBMin
    )
        external
        payable
        returns (
            uint256 amountA,
            uint256 amountB,
            uint256 liquidity
        )
    {
        _notMaticToken(tokenA);
        _notMaticToken(tokenB);

        // Get uniswapV2 router
        IUniswapV2Router02 router = IUniswapV2Router02(UNISWAPV2_ROUTER);

        // Approve token
        amountADesired = _getBalance(tokenA, amountADesired);
        amountBDesired = _getBalance(tokenB, amountBDesired);
        _tokenApprove(tokenA, UNISWAPV2_ROUTER, amountADesired);
        _tokenApprove(tokenB, UNISWAPV2_ROUTER, amountBDesired);

        // Add liquidity
        try
            router.addLiquidity(
                tokenA,
                tokenB,
                amountADesired,
                amountBDesired,
                amountAMin,
                amountBMin,
                address(this),
                now + 1
            )
        returns (uint256 ret1, uint256 ret2, uint256 ret3) {
            amountA = ret1;
            amountB = ret2;
            liquidity = ret3;
        } catch Error(string memory reason) {
            _revertMsg("addLiquidity", reason);
        } catch {
            _revertMsg("addLiquidity");
        }

        // Update involved token
        address pair =
            UniswapV2Library.pairFor(router.factory(), tokenA, tokenB);
        _updateToken(pair);
    }

    function removeLiquidityETH(
        address token,
        uint256 liquidity,
        uint256 amountTokenMin,
        uint256 amountETHMin
    ) external payable returns (uint256 amountToken, uint256 amountETH) {
        // Get uniswapV2 router
        IUniswapV2Router02 router = IUniswapV2Router02(UNISWAPV2_ROUTER);
        address pair =
            UniswapV2Library.pairFor(router.factory(), token, router.WETH());

        // Approve token
        liquidity = _getBalance(pair, liquidity);
        _tokenApprove(pair, UNISWAPV2_ROUTER, liquidity);

        // remove liquidityETH
        try
            router.removeLiquidityETH(
                token,
                liquidity,
                amountTokenMin,
                amountETHMin,
                address(this),
                now + 1
            )
        returns (uint256 ret1, uint256 ret2) {
            amountToken = ret1;
            amountETH = ret2;
        } catch Error(string memory reason) {
            _revertMsg("removeLiquidityETH", reason);
        } catch {
            _revertMsg("removeLiquidityETH");
        }

        // Update involved token
        _updateToken(token);
    }

    function removeLiquidity(
        address tokenA,
        address tokenB,
        uint256 liquidity,
        uint256 amountAMin,
        uint256 amountBMin
    ) external payable returns (uint256 amountA, uint256 amountB) {
        // Get uniswapV2 router
        IUniswapV2Router02 router = IUniswapV2Router02(UNISWAPV2_ROUTER);
        address pair =
            UniswapV2Library.pairFor(router.factory(), tokenA, tokenB);

        // Approve token
        liquidity = _getBalance(pair, liquidity);
        _tokenApprove(pair, UNISWAPV2_ROUTER, liquidity);

        // remove liquidity
        try
            router.removeLiquidity(
                tokenA,
                tokenB,
                liquidity,
                amountAMin,
                amountBMin,
                address(this),
                now + 1
            )
        returns (uint256 ret1, uint256 ret2) {
            amountA = ret1;
            amountB = ret2;
        } catch Error(string memory reason) {
            _revertMsg("removeLiquidity", reason);
        } catch {
            _revertMsg("removeLiquidity");
        }

        // Update involved token
        _updateToken(tokenA);
        _updateToken(tokenB);
    }

    function swapExactETHForTokens(
        uint256 value,
        uint256 amountOutMin,
        address[] calldata path
    ) external payable returns (uint256 amount) {
        if (path.length < 2)
            _revertMsg("swapExactETHForTokens", "invalid path");
        address tokenOut = path[path.length - 1];

        // Get uniswapV2 router
        IUniswapV2Router02 router = IUniswapV2Router02(UNISWAPV2_ROUTER);
        value = _getBalance(address(0), value);
        try
            router.swapExactETHForTokens{value: value}(
                amountOutMin,
                path,
                address(this),
                now + 1
            )
        returns (uint256[] memory amounts) {
            amount = amounts[amounts.length - 1];
        } catch Error(string memory reason) {
            _revertMsg("swapExactETHForTokens", reason);
        } catch {
            _revertMsg("swapExactETHForTokens");
        }

        _updateToken(tokenOut);
    }

    function swapETHForExactTokens(
        uint256 value,
        uint256 amountOut,
        address[] calldata path
    ) external payable returns (uint256 amount) {
        if (path.length < 2)
            _revertMsg("swapETHForExactTokens", "invalid path");
        address tokenOut = path[path.length - 1];

        // Get uniswapV2 router
        IUniswapV2Router02 router = IUniswapV2Router02(UNISWAPV2_ROUTER);

        // if amount == uint256(-1) return balance of Proxy
        value = _getBalance(address(0), value);

        try
            router.swapETHForExactTokens{value: value}(
                amountOut,
                path,
                address(this),
                now + 1
            )
        returns (uint256[] memory amounts) {
            amount = amounts[0];
        } catch Error(string memory reason) {
            _revertMsg("swapETHForExactTokens", reason);
        } catch {
            _revertMsg("swapETHForExactTokens");
        }

        _updateToken(tokenOut);
    }

    function swapExactTokensForETH(
        uint256 amountIn,
        uint256 amountOutMin,
        address[] calldata path
    ) external payable returns (uint256 amount) {
        if (path.length < 2)
            _revertMsg("swapExactTokensForETH", "invalid path");
        address tokenIn = path[0];
        _notMaticToken(tokenIn);

        // Get uniswapV2 router
        IUniswapV2Router02 router = IUniswapV2Router02(UNISWAPV2_ROUTER);

        // Approve token
        amountIn = _getBalance(tokenIn, amountIn);
        _tokenApprove(tokenIn, UNISWAPV2_ROUTER, amountIn);

        try
            router.swapExactTokensForETH(
                amountIn,
                amountOutMin,
                path,
                address(this),
                now + 1
            )
        returns (uint256[] memory amounts) {
            amount = amounts[amounts.length - 1];
        } catch Error(string memory reason) {
            _revertMsg("swapExactTokensForETH", reason);
        } catch {
            _revertMsg("swapExactTokensForETH");
        }
    }

    function swapTokensForExactETH(
        uint256 amountOut,
        uint256 amountInMax,
        address[] calldata path
    ) external payable returns (uint256 amount) {
        if (path.length < 2)
            _revertMsg("swapTokensForExactETH", "invalid path");
        address tokenIn = path[0];
        _notMaticToken(tokenIn);

        // Get uniswapV2 router
        IUniswapV2Router02 router = IUniswapV2Router02(UNISWAPV2_ROUTER);

        // if amount == uint256(-1) return balance of Proxy
        amountInMax = _getBalance(tokenIn, amountInMax);

        // Approve token
        _tokenApprove(tokenIn, UNISWAPV2_ROUTER, amountInMax);

        try
            router.swapTokensForExactETH(
                amountOut,
                amountInMax,
                path,
                address(this),
                now + 1
            )
        returns (uint256[] memory amounts) {
            amount = amounts[0];
        } catch Error(string memory reason) {
            _revertMsg("swapTokensForExactETH", reason);
        } catch {
            _revertMsg("swapTokensForExactETH");
        }
    }

    function swapExactTokensForTokens(
        uint256 amountIn,
        uint256 amountOutMin,
        address[] calldata path
    ) external payable returns (uint256 amount) {
        if (path.length < 2)
            _revertMsg("swapExactTokensForTokens", "invalid path");
        address tokenIn = path[0];
        address tokenOut = path[path.length - 1];
        _notMaticToken(tokenIn);

        // Get uniswapV2 router
        IUniswapV2Router02 router = IUniswapV2Router02(UNISWAPV2_ROUTER);

        // Approve token
        amountIn = _getBalance(tokenIn, amountIn);
        _tokenApprove(tokenIn, UNISWAPV2_ROUTER, amountIn);

        try
            router.swapExactTokensForTokens(
                amountIn,
                amountOutMin,
                path,
                address(this),
                now + 1
            )
        returns (uint256[] memory amounts) {
            amount = amounts[amounts.length - 1];
        } catch Error(string memory reason) {
            _revertMsg("swapExactTokensForTokens", reason);
        } catch {
            _revertMsg("swapExactTokensForTokens");
        }

        _updateToken(tokenOut);
    }

    function swapTokensForExactTokens(
        uint256 amountOut,
        uint256 amountInMax,
        address[] calldata path
    ) external payable returns (uint256 amount) {
        if (path.length < 2)
            _revertMsg("swapTokensForExactTokens", "invalid path");
        address tokenIn = path[0];
        address tokenOut = path[path.length - 1];
        _notMaticToken(tokenIn);

        // Get uniswapV2 router
        IUniswapV2Router02 router = IUniswapV2Router02(UNISWAPV2_ROUTER);

        // if amount == uint256(-1) return balance of Proxy
        amountInMax = _getBalance(tokenIn, amountInMax);

        // Approve token
        _tokenApprove(tokenIn, UNISWAPV2_ROUTER, amountInMax);

        try
            router.swapTokensForExactTokens(
                amountOut,
                amountInMax,
                path,
                address(this),
                now + 1
            )
        returns (uint256[] memory amounts) {
            amount = amounts[0];
        } catch Error(string memory reason) {
            _revertMsg("swapTokensForExactTokens", reason);
        } catch {
            _revertMsg("swapTokensForExactTokens");
        }

        _updateToken(tokenOut);
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[],"name":"CUBE_COUNTER_KEY","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MSG_SENDER_KEY","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PERCENTAGE_BASE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"POSTPROCESS_SIG","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"UNISWAPV2_ROUTER","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"tokenA","type":"address"},{"internalType":"address","name":"tokenB","type":"address"},{"internalType":"uint256","name":"amountADesired","type":"uint256"},{"internalType":"uint256","name":"amountBDesired","type":"uint256"},{"internalType":"uint256","name":"amountAMin","type":"uint256"},{"internalType":"uint256","name":"amountBMin","type":"uint256"}],"name":"addLiquidity","outputs":[{"internalType":"uint256","name":"amountA","type":"uint256"},{"internalType":"uint256","name":"amountB","type":"uint256"},{"internalType":"uint256","name":"liquidity","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amountTokenDesired","type":"uint256"},{"internalType":"uint256","name":"amountTokenMin","type":"uint256"},{"internalType":"uint256","name":"amountETHMin","type":"uint256"}],"name":"addLiquidityETH","outputs":[{"internalType":"uint256","name":"amountToken","type":"uint256"},{"internalType":"uint256","name":"amountETH","type":"uint256"},{"internalType":"uint256","name":"liquidity","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"cache","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getContractName","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"postProcess","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"tokenA","type":"address"},{"internalType":"address","name":"tokenB","type":"address"},{"internalType":"uint256","name":"liquidity","type":"uint256"},{"internalType":"uint256","name":"amountAMin","type":"uint256"},{"internalType":"uint256","name":"amountBMin","type":"uint256"}],"name":"removeLiquidity","outputs":[{"internalType":"uint256","name":"amountA","type":"uint256"},{"internalType":"uint256","name":"amountB","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"liquidity","type":"uint256"},{"internalType":"uint256","name":"amountTokenMin","type":"uint256"},{"internalType":"uint256","name":"amountETHMin","type":"uint256"}],"name":"removeLiquidityETH","outputs":[{"internalType":"uint256","name":"amountToken","type":"uint256"},{"internalType":"uint256","name":"amountETH","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"stack","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"uint256","name":"amountOut","type":"uint256"},{"internalType":"address[]","name":"path","type":"address[]"}],"name":"swapETHForExactTokens","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"uint256","name":"amountOutMin","type":"uint256"},{"internalType":"address[]","name":"path","type":"address[]"}],"name":"swapExactETHForTokens","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountIn","type":"uint256"},{"internalType":"uint256","name":"amountOutMin","type":"uint256"},{"internalType":"address[]","name":"path","type":"address[]"}],"name":"swapExactTokensForETH","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountIn","type":"uint256"},{"internalType":"uint256","name":"amountOutMin","type":"uint256"},{"internalType":"address[]","name":"path","type":"address[]"}],"name":"swapExactTokensForTokens","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountOut","type":"uint256"},{"internalType":"uint256","name":"amountInMax","type":"uint256"},{"internalType":"address[]","name":"path","type":"address[]"}],"name":"swapTokensForExactETH","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountOut","type":"uint256"},{"internalType":"uint256","name":"amountInMax","type":"uint256"},{"internalType":"address[]","name":"path","type":"address[]"}],"name":"swapTokensForExactTokens","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"stateMutability":"payable","type":"function"}]

608060405234801561001057600080fd5b50612db0806100206000396000f3fe6080604052600436106101145760003560e01c806387c13943116100a0578063dc9031c411610064578063dc9031c414610526578063e2dc85dc14610550578063ef66f72514610592578063f5f5ba721461060c578063fa2901a51461069657610114565b806387c139431461041257806399eb59b914610427578063a1cfacde14610451578063c2722916146104a2578063d0241dac146104ac57610114565b8063397d4b4a116100e7578063397d4b4a1461023557806349618dad146102af57806358871c81146102e057806386818f261461031e57806387151a791461039857610114565b80630f532d18146101195780631413dc7d1461014057806318a22c40146101555780633351733f146101cf575b600080fd5b34801561012557600080fd5b5061012e6106c8565b60408051918252519081900360200190f35b34801561014c57600080fd5b5061012e6106ec565b61012e6004803603606081101561016b57600080fd5b813591602081013591810190606081016040820135600160201b81111561019157600080fd5b8201836020820111156101a357600080fd5b803590602001918460208302840111600160201b831117156101c457600080fd5b509092509050610710565b610217600480360360c08110156101e557600080fd5b506001600160a01b03813581169160208101359091169060408101359060608101359060808101359060a001356109e7565b60408051938452602084019290925282820152519081900360600190f35b61012e6004803603606081101561024b57600080fd5b813591602081013591810190606081016040820135600160201b81111561027157600080fd5b82018360208201111561028357600080fd5b803590602001918460208302840111600160201b831117156102a457600080fd5b509092509050610c19565b3480156102bb57600080fd5b506102c4610f29565b604080516001600160a01b039092168252519081900360200190f35b610217600480360360a08110156102f657600080fd5b508035906001600160a01b036020820135169060408101359060608101359060800135610f3b565b61012e6004803603606081101561033457600080fd5b813591602081013591810190606081016040820135600160201b81111561035a57600080fd5b82018360208201111561036c57600080fd5b803590602001918460208302840111600160201b8311171561038d57600080fd5b5090925090506111b0565b61012e600480360360608110156103ae57600080fd5b813591602081013591810190606081016040820135600160201b8111156103d457600080fd5b8201836020820111156103e657600080fd5b803590602001918460208302840111600160201b8311171561040757600080fd5b509092509050611498565b34801561041e57600080fd5b5061012e61174d565b34801561043357600080fd5b5061012e6004803603602081101561044a57600080fd5b5035611759565b6104896004803603608081101561046757600080fd5b506001600160a01b03813516906020810135906040810135906060013561176b565b6040805192835260208301919091528051918290030190f35b6104aa61198e565b005b61012e600480360360608110156104c257600080fd5b813591602081013591810190606081016040820135600160201b8111156104e857600080fd5b8201836020820111156104fa57600080fd5b803590602001918460208302840111600160201b8311171561051b57600080fd5b5090925090506119d2565b34801561053257600080fd5b5061012e6004803603602081101561054957600080fd5b5035611c6a565b610489600480360360a081101561056657600080fd5b506001600160a01b03813581169160208101359091169060408101359060608101359060800135611c88565b61012e600480360360608110156105a857600080fd5b813591602081013591810190606081016040820135600160201b8111156105ce57600080fd5b8201836020820111156105e057600080fd5b803590602001918460208302840111600160201b8311171561060157600080fd5b509092509050611e7c565b34801561061857600080fd5b50610621612135565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561065b578181015183820152602001610643565b50505050905090810190601f1680156106885780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b3480156106a257600080fd5b506106ab61215a565b604080516001600160e01b03199092168252519081900360200190f35b7fb2f2618cecbbb6e7468cc0f2aa43858ad8d153e0280b22285e28e853bb9d453a81565b7ff9543f11459ccccd21306c8881aaab675ff49d988c1162fd1dd9bbcdbe4446be81565b6000600282101561077657610776604051806040016040528060158152602001740e6eec2e0a8ded6cadce68cdee48af0c2c6e88aa89605b1b8152506040518060400160405280600c81526020016b0d2dcecc2d8d2c840e0c2e8d60a31b815250612165565b60008383600081811061078557fe5b905060200201356001600160a01b031690506107a081612374565b600080516020612cfb8339815191526107b982876123d7565b95506107d482600080516020612cfb833981519152886124a2565b806001600160a01b0316634a25d94a8888888830426001016040518763ffffffff1660e01b81526004018087815260200186815260200180602001846001600160a01b031681526020018381526020018281038252868682818152602001925060200280828437600081840152601f19601f820116905080830192505050975050505050505050600060405180830381600087803b15801561087557600080fd5b505af192505050801561093557506040513d6000823e601f3d908101601f1916820160405260208110156108a857600080fd5b8101908080516040519392919084600160201b8211156108c757600080fd5b9083019060208201858111156108dc57600080fd5b82518660208202830111600160201b821117156108f857600080fd5b82525081516020918201928201910280838360005b8381101561092557818101518382015260200161090d565b5050505090500160405250505060015b6109c457610941612c0a565b8061094c5750610989565b610983604051806040016040528060158152602001740e6eec2e0a8ded6cadce68cdee48af0c2c6e88aa89605b1b81525082612165565b506109bf565b6109bf604051806040016040528060158152602001740e6eec2e0a8ded6cadce68cdee48af0c2c6e88aa89605b1b81525061253c565b6109dd565b806000815181106109d157fe5b60200260200101519350505b5050949350505050565b60008060006109f589612374565b6109fe88612374565b600080516020612cfb833981519152610a178a896123d7565b9750610a2389886123d7565b9650610a3e8a600080516020612cfb8339815191528a6124a2565b610a5789600080516020612cfb833981519152896124a2565b6040805162e8e33760e81b81526001600160a01b038c811660048301528b81166024830152604482018b9052606482018a90526084820189905260a482018890523060c48301526001420160e483015291519183169163e8e3370091610104808201926060929091908290030181600087803b158015610ad657600080fd5b505af1925050508015610b0a57506040513d6060811015610af657600080fd5b508051602082015160409092015190919060015b610b8757610b16612c0a565b80610b215750610b55565b610b4f6040518060400160405280600c81526020016b6164644c697175696469747960a01b81525082612165565b50610b82565b610b826040518060400160405280600c81526020016b6164644c697175696469747960a01b81525061253c565b610b8f565b919550935091505b6000610c00826001600160a01b031663c45a01556040518163ffffffff1660e01b815260040160206040518083038186803b158015610bcd57600080fd5b505afa158015610be1573d6000803e3d6000fd5b505050506040513d6020811015610bf757600080fd5b50518c8c612569565b9050610c0b81612629565b505096509650969350505050565b60006002821015610c8257610c826040518060400160405280601881526020017773776170546f6b656e73466f724578616374546f6b656e7360401b8152506040518060400160405280600c81526020016b0d2dcecc2d8d2c840e0c2e8d60a31b815250612165565b600083836000818110610c9157fe5b905060200201356001600160a01b031690506000848460018787905003818110610cb757fe5b905060200201356001600160a01b03169050610cd282612374565b600080516020612cfb833981519152610ceb83886123d7565b9650610d0683600080516020612cfb833981519152896124a2565b806001600160a01b0316638803dbee8989898930426001016040518763ffffffff1660e01b81526004018087815260200186815260200180602001846001600160a01b031681526020018381526020018281038252868682818152602001925060200280828437600081840152601f19601f820116905080830192505050975050505050505050600060405180830381600087803b158015610da757600080fd5b505af1925050508015610e6757506040513d6000823e601f3d908101601f191682016040526020811015610dda57600080fd5b8101908080516040519392919084600160201b821115610df957600080fd5b908301906020820185811115610e0e57600080fd5b82518660208202830111600160201b82111715610e2a57600080fd5b82525081516020918201928201910280838360005b83811015610e57578181015183820152602001610e3f565b5050505090500160405250505060015b610efc57610e73612c0a565b80610e7e5750610ebe565b610eb86040518060400160405280601881526020017773776170546f6b656e73466f724578616374546f6b656e7360401b81525082612165565b50610ef7565b610ef76040518060400160405280601881526020017773776170546f6b656e73466f724578616374546f6b656e7360401b81525061253c565b610f15565b80600081518110610f0957fe5b60200260200101519450505b610f1e82612629565b505050949350505050565b600080516020612cfb83398151915281565b6000806000610f4987612374565b600080516020612cfb833981519152610f6360008a6123d7565b9850610f6f88886123d7565b9650610f8a88600080516020612cfb833981519152896124a2565b6040805163f305d71960e01b81526001600160a01b038a81166004830152602482018a905260448201899052606482018890523060848301526001420160a483015291519183169163f305d719918c9160c480830192606092919082900301818588803b158015610ffa57600080fd5b505af19350505050801561102f57506040513d606081101561101b57600080fd5b508051602082015160409092015190919060015b6110b25761103b612c0a565b80611046575061107d565b6110776040518060400160405280600f81526020016e0c2c8c898d2e2ead2c8d2e8f28aa89608b1b81525082612165565b506110ad565b6110ad6040518060400160405280600f81526020016e0c2c8c898d2e2ead2c8d2e8f28aa89608b1b81525061253c565b6110ba565b919550935091505b6000611198826001600160a01b031663c45a01556040518163ffffffff1660e01b815260040160206040518083038186803b1580156110f857600080fd5b505afa15801561110c573d6000803e3d6000fd5b505050506040513d602081101561112257600080fd5b5051604080516315ab88c960e31b815290518c916001600160a01b0387169163ad5c464891600480820192602092909190829003018186803b15801561116757600080fd5b505afa15801561117b573d6000803e3d6000fd5b505050506040513d602081101561119157600080fd5b5051612569565b90506111a381612629565b5050955095509592505050565b600060028210156112195761121960405180604001604052806018815260200177737761704578616374546f6b656e73466f72546f6b656e7360401b8152506040518060400160405280600c81526020016b0d2dcecc2d8d2c840e0c2e8d60a31b815250612165565b60008383600081811061122857fe5b905060200201356001600160a01b03169050600084846001878790500381811061124e57fe5b905060200201356001600160a01b0316905061126982612374565b600080516020612cfb83398151915261128283896123d7565b975061129d83600080516020612cfb8339815191528a6124a2565b806001600160a01b03166338ed17398989898930426001016040518763ffffffff1660e01b81526004018087815260200186815260200180602001846001600160a01b031681526020018381526020018281038252868682818152602001925060200280828437600081840152601f19601f820116905080830192505050975050505050505050600060405180830381600087803b15801561133e57600080fd5b505af19250505080156113fe57506040513d6000823e601f3d908101601f19168201604052602081101561137157600080fd5b8101908080516040519392919084600160201b82111561139057600080fd5b9083019060208201858111156113a557600080fd5b82518660208202830111600160201b821117156113c157600080fd5b82525081516020918201928201910280838360005b838110156113ee5781810151838201526020016113d6565b5050505090500160405250505060015b6114885761140a612c0a565b80611415575061144f565b610eb860405180604001604052806018815260200177737761704578616374546f6b656e73466f72546f6b656e7360401b81525082612165565b610ef760405180604001604052806018815260200177737761704578616374546f6b656e73466f72546f6b656e7360401b81525061253c565b80600182510381518110610f0957fe5b600060028210156114fe576114fe6040518060400160405280601581526020017473776170455448466f724578616374546f6b656e7360581b8152506040518060400160405280600c81526020016b0d2dcecc2d8d2c840e0c2e8d60a31b815250612165565b60008383600019810181811061151057fe5b905060200201356001600160a01b031690506000600080516020612cfb83398151915290506115406000886123d7565b9650806001600160a01b031663fb3bdb418888888830426001016040518763ffffffff1660e01b81526004018086815260200180602001846001600160a01b031681526020018381526020018281038252868682818152602001925060200280828437600081840152601f19601f82011690508083019250505096505050505050506000604051808303818588803b1580156115db57600080fd5b505af19350505050801561169c57506040513d6000823e601f3d908101601f19168201604052602081101561160f57600080fd5b8101908080516040519392919084600160201b82111561162e57600080fd5b90830190602082018581111561164357600080fd5b82518660208202830111600160201b8211171561165f57600080fd5b82525081516020918201928201910280838360005b8381101561168c578181015183820152602001611674565b5050505090500160405250505060015b61172b576116a8612c0a565b806116b357506116f0565b6116ea6040518060400160405280601581526020017473776170455448466f724578616374546f6b656e7360581b81525082612165565b50611726565b6117266040518060400160405280601581526020017473776170455448466f724578616374546f6b656e7360581b81525061253c565b611744565b8060008151811061173857fe5b60200260200101519350505b6109dd82612629565b670de0b6b3a764000081565b60016020526000908152604090205481565b6000806000600080516020612cfb8339815191529050600061182e826001600160a01b031663c45a01556040518163ffffffff1660e01b815260040160206040518083038186803b1580156117bf57600080fd5b505afa1580156117d3573d6000803e3d6000fd5b505050506040513d60208110156117e957600080fd5b5051604080516315ab88c960e31b815290518b916001600160a01b0387169163ad5c464891600480820192602092909190829003018186803b15801561116757600080fd5b905061183a81886123d7565b965061185581600080516020612cfb833981519152896124a2565b60408051629d473b60e21b81526001600160a01b038a81166004830152602482018a905260448201899052606482018890523060848301526001420160a48301528251908516926302751cec9260c480820193918290030181600087803b1580156118bf57600080fd5b505af19250505080156118eb57506040513d60408110156118df57600080fd5b50805160209091015160015b611974576118f7612c0a565b80611902575061193c565b611936604051806040016040528060128152602001710e4cadadeecca98d2e2ead2c8d2e8f28aa8960731b81525082612165565b5061196f565b61196f604051806040016040528060128152602001710e4cadadeecca98d2e2ead2c8d2e8f28aa8960731b81525061253c565b61197a565b90945092505b61198388612629565b505094509492505050565b6040805162461bcd60e51b8152602060048201526014602482015273496e76616c696420706f73742070726f6365737360601b604482015290519081900360640190fd5b60006002821015611a3857611a3860405180604001604052806015815260200174737761704578616374455448466f72546f6b656e7360581b8152506040518060400160405280600c81526020016b0d2dcecc2d8d2c840e0c2e8d60a31b815250612165565b600083836000198101818110611a4a57fe5b905060200201356001600160a01b031690506000600080516020612cfb8339815191529050611a7a6000886123d7565b9650806001600160a01b0316637ff36ab58888888830426001016040518763ffffffff1660e01b81526004018086815260200180602001846001600160a01b031681526020018381526020018281038252868682818152602001925060200280828437600081840152601f19601f82011690508083019250505096505050505050506000604051808303818588803b158015611b1557600080fd5b505af193505050508015611bd657506040513d6000823e601f3d908101601f191682016040526020811015611b4957600080fd5b8101908080516040519392919084600160201b821115611b6857600080fd5b908301906020820185811115611b7d57600080fd5b82518660208202830111600160201b82111715611b9957600080fd5b82525081516020918201928201910280838360005b83811015611bc6578181015183820152602001611bae565b5050505090500160405250505060015b611c5a57611be2612c0a565b80611bed5750611c24565b6116ea60405180604001604052806015815260200174737761704578616374455448466f72546f6b656e7360581b81525082612165565b61172660405180604001604052806015815260200174737761704578616374455448466f72546f6b656e7360581b81525061253c565b8060018251038151811061173857fe5b60008181548110611c7757fe5b600091825260209091200154905081565b6000806000600080516020612cfb83398151915290506000611d0f826001600160a01b031663c45a01556040518163ffffffff1660e01b815260040160206040518083038186803b158015611cdc57600080fd5b505afa158015611cf0573d6000803e3d6000fd5b505050506040513d6020811015611d0657600080fd5b50518a8a612569565b9050611d1b81886123d7565b9650611d3681600080516020612cfb833981519152896124a2565b60408051635d5155ef60e11b81526001600160a01b038b811660048301528a81166024830152604482018a905260648201899052608482018890523060a48301526001420160c483015282519085169263baa2abde9260e480820193918290030181600087803b158015611da957600080fd5b505af1925050508015611dd557506040513d6040811015611dc957600080fd5b50805160209091015160015b611e5857611de1612c0a565b80611dec5750611e23565b611e1d6040518060400160405280600f81526020016e72656d6f76654c697175696469747960881b81525082612165565b50611e53565b611e536040518060400160405280600f81526020016e72656d6f76654c697175696469747960881b81525061253c565b611e5e565b90945092505b611e6789612629565b611e7088612629565b50509550959350505050565b60006002821015611ee257611ee2604051806040016040528060158152602001740e6eec2e08af0c2c6e8a8ded6cadce68cdee48aa89605b1b8152506040518060400160405280600c81526020016b0d2dcecc2d8d2c840e0c2e8d60a31b815250612165565b600083836000818110611ef157fe5b905060200201356001600160a01b03169050611f0c81612374565b600080516020612cfb833981519152611f2582886123d7565b9650611f4082600080516020612cfb833981519152896124a2565b806001600160a01b03166318cbafe58888888830426001016040518763ffffffff1660e01b81526004018087815260200186815260200180602001846001600160a01b031681526020018381526020018281038252868682818152602001925060200280828437600081840152601f19601f820116905080830192505050975050505050505050600060405180830381600087803b158015611fe157600080fd5b505af19250505080156120a157506040513d6000823e601f3d908101601f19168201604052602081101561201457600080fd5b8101908080516040519392919084600160201b82111561203357600080fd5b90830190602082018581111561204857600080fd5b82518660208202830111600160201b8211171561206457600080fd5b82525081516020918201928201910280838360005b83811015612091578181015183820152602001612079565b5050505090500160405250505060015b612125576120ad612c0a565b806120b857506120ef565b610983604051806040016040528060158152602001740e6eec2e08af0c2c6e8a8ded6cadce68cdee48aa89605b1b81525082612165565b6109bf604051806040016040528060158152602001740e6eec2e08af0c2c6e8a8ded6cadce68cdee48aa89605b1b81525061253c565b806001825103815181106109d157fe5b60408051808201909152600a815269048517569636b537761760b41b60208201525b90565b636139148b60e11b81565b61217561217061263d565b61266f565b61217d612135565b83836040516020018085805190602001908083835b602083106121b15780518252601f199092019160209182019101612192565b6001836020036101000a03801982511681845116808217855250505050505090500180605f60f81b81525060010184805190602001908083835b6020831061220a5780518252601f1990920191602091820191016121eb565b6001836020036101000a03801982511681845116808217855250505050505090500180605f60f81b81525060010183805190602001908083835b602083106122635780518252601f199092019160209182019101612244565b51815160209384036101000a60001901801990921691161790526101d160f51b919093019081528451600290910192850191508083835b602083106122b95780518252601f19909201916020918201910161229a565b6001836020036101000a03801982511681845116808217855250505050505090500194505050505060405160208183030381529060405260405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015612339578181015183820152602001612321565b50505050905090810190601f1680156123665780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b6001600160a01b03811661101014156123d4576040805162461bcd60e51b815260206004820152601760248201527f4e6f7420737570706f7274206d6174696320746f6b656e000000000000000000604482015290519081900360640190fd5b50565b600060001982146123e957508061249c565b6001600160a01b038316158061241b57506001600160a01b03831673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee145b1561242757504761249c565b604080516370a0823160e01b815230600482015290516001600160a01b038516916370a08231916024808301926020929190829003018186803b15801561246d57600080fd5b505afa158015612481573d6000803e3d6000fd5b505050506040513d602081101561249757600080fd5b505190505b92915050565b826001600160a01b031663095ea7b383836040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050600060405180830381600087803b1580156124f957600080fd5b505af192505050801561250a575060015b612537576125236001600160a01b03841683600061274c565b6125376001600160a01b038416838361274c565b505050565b6123d4816040518060400160405280600b81526020016a155b9cdc1958da599a595960aa1b815250612165565b6000806000612578858561285f565b604080516bffffffffffffffffffffffff19606094851b811660208084019190915293851b81166034830152825160288184030181526048830184528051908501206001600160f81b031960688401529a90941b9093166069840152607d8301989098527f96e8ac4277198ff8b6f785478aa9a39f403cb768dd02cbee326c3e7da348845f609d808401919091528851808403909101815260bd909201909752805196019590952095945050505050565b61263281612374565b6123d460008261293d565b600061266a60017ff9543f11459ccccd21306c8881aaab675ff49d988c1162fd1dd9bbcdbe4446be61295f565b905090565b60608161269457506040805180820190915260018152600360fc1b6020820152612747565b6000825b80156126ae5760019190910190600a9004612698565b5060608167ffffffffffffffff811180156126c857600080fd5b506040519080825280601f01601f1916602001820160405280156126f3576020820181803683370190505b509050815b801561273d57600a850660300160f81b82600183038151811061271757fe5b60200101906001600160f81b031916908160001a905350600a85049450600019016126f8565b5091506127479050565b919050565b8015806127d2575060408051636eb1769f60e11b81523060048201526001600160a01b03848116602483015291519185169163dd62ed3e91604480820192602092909190829003018186803b1580156127a457600080fd5b505afa1580156127b8573d6000803e3d6000fd5b505050506040513d60208110156127ce57600080fd5b5051155b61280d5760405162461bcd60e51b8152600401808060200182810382526036815260200180612d456036913960400191505060405180910390fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052612537908490612972565b600080826001600160a01b0316846001600160a01b031614156128b35760405162461bcd60e51b8152600401808060200182810382526025815260200180612cb06025913960400191505060405180910390fd5b826001600160a01b0316846001600160a01b0316106128d35782846128d6565b83835b90925090506001600160a01b038216612936576040805162461bcd60e51b815260206004820152601e60248201527f556e697377617056324c6962726172793a205a45524f5f414444524553530000604482015290519081900360640190fd5b9250929050565b8154600181018355600092835260209092206001600160a01b03909116910155565b6000908152602091909152604090205490565b60606129c7826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316612a239092919063ffffffff16565b805190915015612537578080602001905160208110156129e657600080fd5b50516125375760405162461bcd60e51b815260040180806020018281038252602a815260200180612d1b602a913960400191505060405180910390fd5b6060612a328484600085612a3c565b90505b9392505050565b606082471015612a7d5760405162461bcd60e51b8152600401808060200182810382526026815260200180612cd56026913960400191505060405180910390fd5b612a8685612b98565b612ad7576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b60208310612b165780518252601f199092019160209182019101612af7565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114612b78576040519150601f19603f3d011682016040523d82523d6000602084013e612b7d565b606091505b5091509150612b8d828286612b9e565b979650505050505050565b3b151590565b60608315612bad575081612a35565b825115612bbd5782518084602001fd5b60405162461bcd60e51b8152602060048201818152845160248401528451859391928392604401919085019080838360008315612339578181015183820152602001612321565b60e01c90565b600060443d1015612c1a57612157565b600481823e6308c379a0612c2e8251612c04565b14612c3857612157565b6040513d600319016004823e80513d67ffffffffffffffff8160248401118184111715612c685750505050612157565b82840192508251915080821115612c825750505050612157565b503d83016020828401011115612c9a57505050612157565b601f01601f191681016020016040529150509056fe556e697377617056324c6962726172793a204944454e544943414c5f414444524553534553416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c000000000000000000000000a5e0829caced8ffdd4de3c43696c57f7d7a678ff5361666545524332303a204552433230206f7065726174696f6e20646964206e6f7420737563636565645361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f20746f206e6f6e2d7a65726f20616c6c6f77616e6365a26469706673582212206ca2388aa28952d68768821c6040ba6a0f9130b40ade5cdd12edf09266f2260b64736f6c634300060c0033

Deployed ByteCode Sourcemap

41727:12718:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;22974:107;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;23155:109;;;;;;;;;;;;;:::i;50844:1145::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;50844:1145:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;50844:1145:0;;;;;;;;;;-1:-1:-1;50844:1145:0;;-1:-1:-1;50844:1145:0;-1:-1:-1;50844:1145:0;:::i;43586:1635::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;43586:1635:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;53196:1246;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;53196:1246:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;53196:1246:0;;;;;;;;;;-1:-1:-1;53196:1246:0;;-1:-1:-1;53196:1246:0;-1:-1:-1;53196:1246:0;:::i;41861:85::-;;;;;;;;;;;;;:::i;:::-;;;;-1:-1:-1;;;;;41861:85:0;;;;;;;;;;;;;;42073:1505;;;;;;;;;;;;;;;;-1:-1:-1;42073:1505:0;;;-1:-1:-1;;;;;42073:1505:0;;;;;;;;;;;;;;;;;;;;:::i;51997:1191::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;51997:1191:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;51997:1191:0;;;;;;;;;;-1:-1:-1;51997:1191:0;;-1:-1:-1;51997:1191:0;-1:-1:-1;51997:1191:0;:::i;48700:1038::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;48700:1038:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;48700:1038:0;;;;;;;;;;-1:-1:-1;48700:1038:0;;-1:-1:-1;48700:1038:0;-1:-1:-1;48700:1038:0;:::i;19957:49::-;;;;;;;;;;;;;:::i;22862:40::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;22862:40:0;;:::i;45229:1206::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;45229:1206:0;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;24723:479;;;:::i;:::-;;47696:996;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;47696:996:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;47696:996:0;;;;;;;;;;-1:-1:-1;47696:996:0;;-1:-1:-1;47696:996:0;-1:-1:-1;47696:996:0;:::i;22833:22::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;22833:22:0;;:::i;46443:1245::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;46443:1245:0;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;49746:1090::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;49746:1090:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;49746:1090:0;;;;;;;;;;-1:-1:-1;49746:1090:0;;-1:-1:-1;49746:1090:0;-1:-1:-1;49746:1090:0;:::i;41955:110::-;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;19850:51;;;;;;;;;;;;;:::i;:::-;;;;-1:-1:-1;;;;;;19850:51:0;;;;;;;;;;;;;;22974:107;23015:66;22974:107;:::o;23155:109::-;23198:66;23155:109;:::o;50844:1145::-;51000:14;51045:1;51031:15;;51027:85;;;51061:51;;;;;;;;;;;;;;-1:-1:-1;;;51061:51:0;;;;;;;;;;;;;;;;-1:-1:-1;;;51061:51:0;;;:10;:51::i;:::-;51123:15;51141:4;;51146:1;51141:7;;;;;;;;;;;;;-1:-1:-1;;;;;51141:7:0;51123:25;;51159:23;51174:7;51159:14;:23::i;:::-;-1:-1:-1;;;;;;;;;;;51380:33:0;51392:7;51401:11;51380;:33::i;:::-;51366:47;;51452:53;51466:7;-1:-1:-1;;;;;;;;;;;51493:11:0;51452:13;:53::i;:::-;51535:6;-1:-1:-1;;;;;51535:28:0;;51582:9;51610:11;51640:4;;51671;51695:3;51701:1;51695:7;51535:182;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;51535:182:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;51535:182:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;51535:182:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;51535:182:0;;;;;;;;;;;;-1:-1:-1;51535:182:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;51518:464;;;;:::i;:::-;;;;;;;;51858:43;;;;;;;;;;;;;;-1:-1:-1;;;51858:43:0;;;51894:6;51858:10;:43::i;:::-;51809:104;51518:464;;;51935:35;;;;;;;;;;;;;;-1:-1:-1;;;51935:35:0;;;:10;:35::i;:::-;51518:464;;;51786:7;51794:1;51786:10;;;;;;;;;;;;;;51777:19;;51727:81;51518:464;50844:1145;;;;;;;;:::o;43586:1635::-;43856:15;43886;43916:17;43961:22;43976:6;43961:14;:22::i;:::-;43994;44009:6;43994:14;:22::i;:::-;-1:-1:-1;;;;;;;;;;;44182:35:0;44194:6;44202:14;44182:11;:35::i;:::-;44165:52;;44245:35;44257:6;44265:14;44245:11;:35::i;:::-;44228:52;;44291:55;44305:6;-1:-1:-1;;;;;;;;;;;44331:14:0;44291:13;:55::i;:::-;44357;44371:6;-1:-1:-1;;;;;;;;;;;44397:14:0;44357:13;:55::i;:::-;44468:266;;;-1:-1:-1;;;44468:266:0;;-1:-1:-1;;;;;44468:266:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;44688:4;44468:266;;;;44718:1;44712:3;:7;44468:266;;;;;;:19;;;;;;:266;;;;;;;;;;;;;;;-1:-1:-1;44468:19:0;:266;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;44468:266:0;;;;;;;;;;;;;;;;44451:601;;;;:::i;:::-;;;;;;;;44946:34;;;;;;;;;;;;;;-1:-1:-1;;;44946:34:0;;;44973:6;44946:10;:34::i;:::-;44897:95;44451:601;;;45014:26;;;;;;;;;;;;;;-1:-1:-1;;;45014:26:0;;;:10;:26::i;:::-;44451:601;;;44820:4;;-1:-1:-1;44849:4:0;-1:-1:-1;44880:4:0;-1:-1:-1;44451:601:0;45098:12;45126:58;45151:6;-1:-1:-1;;;;;45151:14:0;;:16;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;45151:16:0;45169:6;45177;45126:24;:58::i;:::-;45098:86;;45195:18;45208:4;45195:12;:18::i;:::-;43586:1635;;;;;;;;;;;;:::o;53196:1246::-;53355:14;53400:1;53386:15;;53382:88;;;53416:54;;;;;;;;;;;;;;-1:-1:-1;;;53416:54:0;;;;;;;;;;;;;;;;-1:-1:-1;;;53416:54:0;;;:10;:54::i;:::-;53481:15;53499:4;;53504:1;53499:7;;;;;;;;;;;;;-1:-1:-1;;;;;53499:7:0;53481:25;;53517:16;53536:4;;53555:1;53541:4;;:11;;:15;53536:21;;;;;;;;;;;;;-1:-1:-1;;;;;53536:21:0;53517:40;;53568:23;53583:7;53568:14;:23::i;:::-;-1:-1:-1;;;;;;;;;;;53789:33:0;53801:7;53810:11;53789;:33::i;:::-;53775:47;;53861:53;53875:7;-1:-1:-1;;;;;;;;;;;53902:11:0;53861:13;:53::i;:::-;53944:6;-1:-1:-1;;;;;53944:31:0;;53994:9;54022:11;54052:4;;54083;54107:3;54113:1;54107:7;53944:185;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;53944:185:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;53944:185:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;53944:185:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;53944:185:0;;;;;;;;;;;;-1:-1:-1;53944:185:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;53927:473;;;;:::i;:::-;;;;;;;;54270:46;;;;;;;;;;;;;;-1:-1:-1;;;54270:46:0;;;54309:6;54270:10;:46::i;:::-;54221:107;53927:473;;;54350:38;;;;;;;;;;;;;;-1:-1:-1;;;54350:38:0;;;:10;:38::i;:::-;53927:473;;;54198:7;54206:1;54198:10;;;;;;;;;;;;;;54189:19;;54139:81;53927:473;54412:22;54425:8;54412:12;:22::i;:::-;53196:1246;;;;;;;;;:::o;41861:85::-;-1:-1:-1;;;;;;;;;;;41861:85:0;:::o;42073:1505::-;42321:19;42355:17;42387;42432:21;42447:5;42432:14;:21::i;:::-;-1:-1:-1;;;;;;;;;;;42610:30:0;42499:25;42634:5;42610:11;:30::i;:::-;42602:38;;42672;42684:5;42691:18;42672:11;:38::i;:::-;42651:59;;42721:58;42735:5;-1:-1:-1;;;;;;;;;;;42760:18:0;42721:13;:58::i;:::-;42839:234;;;-1:-1:-1;;;42839:234:0;;-1:-1:-1;;;;;42839:234:0;;;;;;;;;;;;;;;;;;;;;;;;;43027:4;42839:234;;;;43057:1;43051:3;:7;42839:234;;;;;;:22;;;;;;42869:5;;42839:234;;;;;;;;;;;;;;42869:5;42839:22;:234;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;42839:234:0;;;;;;;;;;;;;;;;42822:581;;;;:::i;:::-;;;;;;;;43291:37;;;;;;;;;;;;;;-1:-1:-1;;;43291:37:0;;;43321:6;43291:10;:37::i;:::-;43242:98;42822:581;;;43362:29;;;;;;;;;;;;;;-1:-1:-1;;;43362:29:0;;;:10;:29::i;:::-;42822:581;;;43163:4;;-1:-1:-1;43194:4:0;-1:-1:-1;43225:4:0;-1:-1:-1;42822:581:0;43449:12;43477:64;43502:6;-1:-1:-1;;;;;43502:14:0;;:16;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;43502:16:0;43527:13;;;-1:-1:-1;;;43527:13:0;;;;43520:5;;-1:-1:-1;;;;;43527:11:0;;;;;:13;;;;;43502:16;;43527:13;;;;;;;;:11;:13;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;43527:13:0;43477:24;:64::i;:::-;43449:92;;43552:18;43565:4;43552:12;:18::i;:::-;42073:1505;;;;;;;;;;;:::o;51997:1191::-;52156:14;52201:1;52187:15;;52183:88;;;52217:54;;;;;;;;;;;;;;-1:-1:-1;;;52217:54:0;;;;;;;;;;;;;;;;-1:-1:-1;;;52217:54:0;;;:10;:54::i;:::-;52282:15;52300:4;;52305:1;52300:7;;;;;;;;;;;;;-1:-1:-1;;;;;52300:7:0;52282:25;;52318:16;52337:4;;52356:1;52342:4;;:11;;:15;52337:21;;;;;;;;;;;;;-1:-1:-1;;;;;52337:21:0;52318:40;;52369:23;52384:7;52369:14;:23::i;:::-;-1:-1:-1;;;;;;;;;;;52552:30:0;52564:7;52573:8;52552:11;:30::i;:::-;52541:41;;52593:50;52607:7;-1:-1:-1;;;;;;;;;;;52634:8:0;52593:13;:50::i;:::-;52673:6;-1:-1:-1;;;;;52673:31:0;;52723:8;52750:12;52781:4;;52812;52836:3;52842:1;52836:7;52673:185;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;52673:185:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;52673:185:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;52673:185:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;52673:185:0;;;;;;;;;;;;-1:-1:-1;52673:185:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;52656:490;;;;:::i;:::-;;;;;;;;53016:46;;;;;;;;;;;;;;-1:-1:-1;;;53016:46:0;;;53055:6;53016:10;:46::i;52656:490::-;53096:38;;;;;;;;;;;;;;-1:-1:-1;;;53096:38:0;;;:10;:38::i;52656:490::-;52927:7;52952:1;52935:7;:14;:18;52927:27;;;;;;;48700:1038;48850:14;48895:1;48881:15;;48877:85;;;48911:51;;;;;;;;;;;;;;-1:-1:-1;;;48911:51:0;;;;;;;;;;;;;;;;-1:-1:-1;;;48911:51:0;;;:10;:51::i;:::-;48973:16;48992:4;;-1:-1:-1;;48997:15:0;;48992:21;;;;;;;;;;;;;-1:-1:-1;;;;;48992:21:0;48973:40;;49059:25;-1:-1:-1;;;;;;;;;;;49059:64:0;;49205:30;49225:1;49229:5;49205:11;:30::i;:::-;49197:38;;49265:6;-1:-1:-1;;;;;49265:28:0;;49301:5;49326:9;49354:4;;49385;49409:3;49415:1;49409:7;49265:166;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;49265:166:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;49265:166:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;49265:166:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;49265:166:0;;;;;;;;;;;;-1:-1:-1;49265:166:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;49248:448;;;;:::i;:::-;;;;;;;;49572:43;;;;;;;;;;;;;;-1:-1:-1;;;49572:43:0;;;49608:6;49572:10;:43::i;:::-;49523:104;49248:448;;;49649:35;;;;;;;;;;;;;;-1:-1:-1;;;49649:35:0;;;:10;:35::i;:::-;49248:448;;;49500:7;49508:1;49500:10;;;;;;;;;;;;;;49491:19;;49441:81;49248:448;49708:22;49721:8;49708:12;:22::i;19957:49::-;19999:7;19957:49;:::o;22862:40::-;;;;;;;;;;;;;:::o;45229:1206::-;45406:19;45427:17;45490:25;-1:-1:-1;;;;;;;;;;;45490:64:0;;45565:12;45593:64;45618:6;-1:-1:-1;;;;;45618:14:0;;:16;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;45618:16:0;45643:13;;;-1:-1:-1;;;45643:13:0;;;;45636:5;;-1:-1:-1;;;;;45643:11:0;;;;;:13;;;;;45618:16;;45643:13;;;;;;;;:11;:13;;;;;;;;;;45593:64;45565:92;;45708:28;45720:4;45726:9;45708:11;:28::i;:::-;45696:40;;45747:48;45761:4;-1:-1:-1;;;;;;;;;;;45785:9:0;45747:13;:48::i;:::-;45857:214;;;-1:-1:-1;;;45857:214:0;;-1:-1:-1;;;;;45857:214:0;;;;;;;;;;;;;;;;;;;;;;;;;46025:4;45857:214;;;;46055:1;46049:3;:7;45857:214;;;;;;:25;;;;;;:214;;;;;;;;;;;-1:-1:-1;45857:25:0;:214;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;45857:214:0;;;;;;;;;45840:522;;;;:::i;:::-;;;;;;;;46244:40;;;;;;;;;;;;;;-1:-1:-1;;;46244:40:0;;;46277:6;46244:10;:40::i;:::-;46195:101;45840:522;;;46318:32;;;;;;;;;;;;;;-1:-1:-1;;;46318:32:0;;;:10;:32::i;:::-;45840:522;;;46147:4;;-1:-1:-1;46178:4:0;-1:-1:-1;45840:522:0;46408:19;46421:5;46408:12;:19::i;:::-;45229:1206;;;;;;;;;:::o;24723:479::-;24782:30;;;-1:-1:-1;;;24782:30:0;;;;;;;;;;;;-1:-1:-1;;;24782:30:0;;;;;;;;;;;;;;47696:996;47849:14;47894:1;47880:15;;47876:85;;;47910:51;;;;;;;;;;;;;;-1:-1:-1;;;47910:51:0;;;;;;;;;;;;;;;;-1:-1:-1;;;47910:51:0;;;:10;:51::i;:::-;47972:16;47991:4;;-1:-1:-1;;47996:15:0;;47991:21;;;;;;;;;;;;;-1:-1:-1;;;;;47991:21:0;47972:40;;48058:25;-1:-1:-1;;;;;;;;;;;48058:64:0;;48141:30;48161:1;48165:5;48141:11;:30::i;:::-;48133:38;;48199:6;-1:-1:-1;;;;;48199:28:0;;48235:5;48260:12;48291:4;;48322;48346:3;48352:1;48346:7;48199:169;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;48199:169:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;48199:169:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;48199:169:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;48199:169:0;;;;;;;;;;;;-1:-1:-1;48199:169:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;48182:468;;;;:::i;:::-;;;;;;;;48526:43;;;;;;;;;;;;;;-1:-1:-1;;;48526:43:0;;;48562:6;48526:10;:43::i;48182:468::-;48603:35;;;;;;;;;;;;;;-1:-1:-1;;;48603:35:0;;;:10;:35::i;48182:468::-;48437:7;48462:1;48445:7;:14;:18;48437:27;;;;;;;22833:22;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;22833:22:0;:::o;46443:1245::-;46637:15;46654;46715:25;-1:-1:-1;;;;;;;;;;;46715:64:0;;46790:12;46818:58;46843:6;-1:-1:-1;;;;;46843:14:0;;:16;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;46843:16:0;46861:6;46869;46818:24;:58::i;:::-;46790:86;;46927:28;46939:4;46945:9;46927:11;:28::i;:::-;46915:40;;46966:48;46980:4;-1:-1:-1;;;;;;;;;;;47004:9:0;46966:13;:48::i;:::-;47073:231;;;-1:-1:-1;;;47073:231:0;;-1:-1:-1;;;;;47073:231:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;47258:4;47073:231;;;;47288:1;47282:3;:7;47073:231;;;;;;:22;;;;;;:231;;;;;;;;;;;-1:-1:-1;47073:22:0;:231;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;47073:231:0;;;;;;;;;47056:527;;;;:::i;:::-;;;;;;;;47471:37;;;;;;;;;;;;;;-1:-1:-1;;;47471:37:0;;;47501:6;47471:10;:37::i;:::-;47422:98;47056:527;;;47542:29;;;;;;;;;;;;;;-1:-1:-1;;;47542:29:0;;;:10;:29::i;:::-;47056:527;;;47376:4;;-1:-1:-1;47405:4:0;-1:-1:-1;47056:527:0;47629:20;47642:6;47629:12;:20::i;:::-;47660;47673:6;47660:12;:20::i;:::-;46443:1245;;;;;;;;;;:::o;49746:1090::-;49902:14;49947:1;49933:15;;49929:85;;;49963:51;;;;;;;;;;;;;;-1:-1:-1;;;49963:51:0;;;;;;;;;;;;;;;;-1:-1:-1;;;49963:51:0;;;:10;:51::i;:::-;50025:15;50043:4;;50048:1;50043:7;;;;;;;;;;;;;-1:-1:-1;;;;;50043:7:0;50025:25;;50061:23;50076:7;50061:14;:23::i;:::-;-1:-1:-1;;;;;;;;;;;50244:30:0;50256:7;50265:8;50244:11;:30::i;:::-;50233:41;;50285:50;50299:7;-1:-1:-1;;;;;;;;;;;50326:8:0;50285:13;:50::i;:::-;50365:6;-1:-1:-1;;;;;50365:28:0;;50412:8;50439:12;50470:4;;50501;50525:3;50531:1;50525:7;50365:182;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;50365:182:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;50365:182:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;50365:182:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;50365:182:0;;;;;;;;;;;;-1:-1:-1;50365:182:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;50348:481;;;;:::i;:::-;;;;;;;;50705:43;;;;;;;;;;;;;;-1:-1:-1;;;50705:43:0;;;50741:6;50705:10;:43::i;50348:481::-;50782:35;;;;;;;;;;;;;;-1:-1:-1;;;50782:35:0;;;:10;:35::i;50348:481::-;50616:7;50641:1;50624:7;:14;:18;50616:27;;;;;;;41955:110;42038:19;;;;;;;;;;;;-1:-1:-1;;;42038:19:0;;;;41955:110;;:::o;19850:51::-;-1:-1:-1;;;19850:51:0;:::o;25792:470::-;25995:31;26008:17;:15;:17::i;:::-;25995:12;:31::i;:::-;26075:17;:15;:17::i;:::-;26141:12;26203:6;25956:272;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;25956:272:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;25956:272:0;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;25956:272:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;25956:272:0;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;25956:272:0;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;25956:272:0;;;;;;;;;;;-1:-1:-1;;;25956:272:0;;;;;;;;;;;;;;;;;-1:-1:-1;25956:272:0;;;;;;;;;;;;;-1:-1:-1;;25956:272:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;25910:344;;-1:-1:-1;;;25910:344:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27798:128;-1:-1:-1;;;;;27870:20:0;;24672:42;27870:20;;27862:56;;;;;-1:-1:-1;;;27862:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;27798:128;:::o;26922:500::-;27024:7;-1:-1:-1;;27053:6:0;:21;27049:67;;-1:-1:-1;27098:6:0;27091:13;;27049:67;-1:-1:-1;;;;;27167:19:0;;;;:96;;-1:-1:-1;;;;;;27203:60:0;;27220:42;27203:60;27167:96;27149:181;;;-1:-1:-1;27297:21:0;27290:28;;27149:181;27376:38;;;-1:-1:-1;;;27376:38:0;;27408:4;27376:38;;;;;;-1:-1:-1;;;;;27376:23:0;;;;;:38;;;;;;;;;;;;;;:23;:38;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;27376:38:0;;-1:-1:-1;26922:500:0;;;;;:::o;27430:309::-;27570:5;-1:-1:-1;;;;;27559:25:0;;27585:7;27594:6;27559:42;;;;;;;;;;;;;-1:-1:-1;;;;;27559:42:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27555:177;;27626:37;-1:-1:-1;;;;;27626:25:0;;27652:7;27661:1;27626:25;:37::i;:::-;27678:42;-1:-1:-1;;;;;27678:25:0;;27704:7;27713:6;27678:25;:42::i;:::-;27430:309;;;:::o;26270:120::-;26343:39;26354:12;26343:39;;;;;;;;;;;;;-1:-1:-1;;;26343:39:0;;;:10;:39::i;31462:653::-;31585:12;31611:14;31627;31645:26;31656:6;31664;31645:10;:26::i;:::-;31892:32;;;-1:-1:-1;;31892:32:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;31882:43;;;;;;-1:-1:-1;;;;;;31771:291:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;31739:342;;;;;;;;;31462:653;-1:-1:-1;;;;;31462:653:0:o;25210:232::-;25267:21;25282:5;25267:14;:21::i;:::-;25299:23;:5;25316;25299:16;:23::i;24325:119::-;24375:7;24402:34;:5;23198:66;24402:16;:34::i;:::-;24395:41;;24325:119;:::o;26398:516::-;26454:13;26484:6;26480:427;;-1:-1:-1;26507:10:0;;;;;;;;;;;;-1:-1:-1;;;26507:10:0;;;;;;26480:427;26550:11;26600:1;26580:85;26603:8;;26580:85;;26644:5;;;;;;26621:2;26613:10;;26580:85;;;;26679:16;26708:3;26698:14;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;26698:14:0;-1:-1:-1;26679:33:0;-1:-1:-1;26744:3:0;26727:136;26749:5;;26727:136;;26816:2;26812:1;:6;26806:2;:13;26793:28;;26780:3;26788:1;26784;:5;26780:10;;;;;;;;;;;:41;-1:-1:-1;;;;;26780:41:0;;;;;;;;-1:-1:-1;26845:2:0;26840:7;;;-1:-1:-1;;;26756:3:0;26727:136;;;-1:-1:-1;26891:3:0;-1:-1:-1;26877:18:0;;-1:-1:-1;26877:18:0;26480:427;26398:516;;;:::o;16583:622::-;16953:10;;;16952:62;;-1:-1:-1;16969:39:0;;;-1:-1:-1;;;16969:39:0;;16993:4;16969:39;;;;-1:-1:-1;;;;;16969:39:0;;;;;;;;;:15;;;;;;:39;;;;;;;;;;;;;;;:15;:39;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;16969:39:0;:44;16952:62;16944:152;;;;-1:-1:-1;;;16944:152:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;17134:62;;;-1:-1:-1;;;;;17134:62:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;17134:62:0;-1:-1:-1;;;17134:62:0;;;17107:90;;17127:5;;17107:19;:90::i;30963:407::-;31065:14;31081;31131:6;-1:-1:-1;;;;;31121:16:0;:6;-1:-1:-1;;;;;31121:16:0;;;31113:66;;;;-1:-1:-1;;;31113:66:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;31218:6;-1:-1:-1;;;;;31209:15:0;:6;-1:-1:-1;;;;;31209:15:0;;:79;;31273:6;31281;31209:79;;;31241:6;31249;31209:79;31190:98;;-1:-1:-1;31190:98:0;-1:-1:-1;;;;;;31307:20:0;;31299:63;;;;;-1:-1:-1;;;31299:63:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;30963:407;;;;;:::o;21480:136::-;21562:46;;;;;;;21574:33;21562:46;;;;;;;-1:-1:-1;;;;;21582:24:0;;;21562:46;;;21480:136::o;21012:185::-;21138:11;21176:12;;;;;;;;;;;;;21012:185::o;18229:761::-;18653:23;18679:69;18707:4;18679:69;;;;;;;;;;;;;;;;;18687:5;-1:-1:-1;;;;;18679:27:0;;;:69;;;;;:::i;:::-;18763:17;;18653:95;;-1:-1:-1;18763:21:0;18759:224;;18905:10;18894:30;;;;;;;;;;;;;;;-1:-1:-1;18894:30:0;18886:85;;;;-1:-1:-1;;;18886:85:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;11923:195;12026:12;12058:52;12080:6;12088:4;12094:1;12097:12;12058:21;:52::i;:::-;12051:59;;11923:195;;;;;;:::o;12975:530::-;13102:12;13160:5;13135:21;:30;;13127:81;;;;-1:-1:-1;;;13127:81:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;13227:18;13238:6;13227:10;:18::i;:::-;13219:60;;;;;-1:-1:-1;;;13219:60:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;13353:12;13367:23;13394:6;-1:-1:-1;;;;;13394:11:0;13414:5;13422:4;13394:33;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;13394:33:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;13352:75;;;;13445:52;13463:7;13472:10;13484:12;13445:17;:52::i;:::-;13438:59;12975:530;-1:-1:-1;;;;;;;12975:530:0:o;9005:422::-;9372:20;9411:8;;;9005:422::o;14511:742::-;14626:12;14655:7;14651:595;;;-1:-1:-1;14686:10:0;14679:17;;14651:595;14800:17;;:21;14796:439;;15063:10;15057:17;15124:15;15111:10;15107:2;15103:19;15096:44;15011:148;15199:20;;-1:-1:-1;;;15199:20:0;;;;;;;;;;;;;;;;;15206:12;;15199:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;110:106:-1;195:3;191:15;;163:53::o;224:739::-;;297:4;279:16;276:26;273:2;;;305:5;;273:2;339:1;-1:-1;;318:23;414:10;357:34;-1:-1;382:8;357:34;:::i;:::-;406:19;396:2;;429:5;;396:2;460;454:9;496:16;-1:-1;;492:24;339:1;454:9;468:49;543:4;537:11;624:16;576:18;624:16;617:4;609:6;605:17;602:39;576:18;568:6;565:30;556:91;553:2;;;655:5;;;;;;553:2;693:6;687:4;683:17;672:28;;725:3;719:10;705:24;;576:18;740:6;737:30;734:2;;;770:5;;;;;;734:2;;847:16;841:4;837:27;807:4;814:6;802:3;794:27;;829:36;826:2;;;868:5;;;;;826:2;89:7;73:14;-1:-1;;69:28;892:50;;807:4;892:50;460:2;881:62;900:3;-1:-1;;267:696;:::o

Swarm Source

ipfs://6ca2388aa28952d68768821c6040ba6a0f9130b40ade5cdd12edf09266f2260b
Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.