Mumbai Testnet

Contract

0xD6eF3eBb0cE519efDC431D9909b164456a93b985

Overview

MATIC Balance

Multichain Info

N/A
Transaction Hash
Method
Block
From
To
Value
Swap Dex334580572023-03-23 6:30:57447 days ago1679553057IN
0xD6eF3eBb...56a93b985
0 MATIC0.000358582.40000002
Swap Dex334262982023-03-22 11:46:09448 days ago1679485569IN
0xD6eF3eBb...56a93b985
0 MATIC0.000361762.50000001
Swap Dex334262672023-03-22 11:45:03448 days ago1679485503IN
0xD6eF3eBb...56a93b985
0 MATIC0.000344732.38229995
Limit Order DEX334245922023-03-22 10:45:45448 days ago1679481945IN
0xD6eF3eBb...56a93b985
0 MATIC0.000348661.50000001
Limit Order P2P334245632023-03-22 10:44:43448 days ago1679481883IN
0xD6eF3eBb...56a93b985
0 MATIC0.000089111.50000001
Limit Order P2P334245602023-03-22 10:44:37448 days ago1679481877IN
0xD6eF3eBb...56a93b985
0 MATIC0.000089111.50000001
Limit Order P2P334245562023-03-22 10:44:27448 days ago1679481867IN
0xD6eF3eBb...56a93b985
0 MATIC0.000089111.50000001
Limit Order P2P334245522023-03-22 10:44:19448 days ago1679481859IN
0xD6eF3eBb...56a93b985
0 MATIC0.000089111.50000001
Limit Order P2P334245482023-03-22 10:44:11448 days ago1679481851IN
0xD6eF3eBb...56a93b985
0 MATIC0.000089111.50000001
Limit Order P2P334245452023-03-22 10:44:05448 days ago1679481845IN
0xD6eF3eBb...56a93b985
0 MATIC0.000089111.50000001
Limit Order P2P334245412023-03-22 10:43:55448 days ago1679481835IN
0xD6eF3eBb...56a93b985
0 MATIC0.000089111.50000001
Limit Order P2P334245372023-03-22 10:43:47448 days ago1679481827IN
0xD6eF3eBb...56a93b985
0 MATIC0.000089111.50000001
Limit Order P2P334245332023-03-22 10:43:39448 days ago1679481819IN
0xD6eF3eBb...56a93b985
0 MATIC0.000089111.50000001
Limit Order P2P334245292023-03-22 10:43:31448 days ago1679481811IN
0xD6eF3eBb...56a93b985
0 MATIC0.000089111.50000001
Limit Order P2P334245262023-03-22 10:43:23448 days ago1679481803IN
0xD6eF3eBb...56a93b985
0 MATIC0.000089111.50000001
Limit Order P2P334245222023-03-22 10:43:15448 days ago1679481795IN
0xD6eF3eBb...56a93b985
0 MATIC0.000089111.50000001
Limit Order P2P334245182023-03-22 10:43:07448 days ago1679481787IN
0xD6eF3eBb...56a93b985
0 MATIC0.000089111.50000001
Limit Order P2P334245142023-03-22 10:42:59448 days ago1679481779IN
0xD6eF3eBb...56a93b985
0 MATIC0.000089111.50000001
Limit Order P2P334245112023-03-22 10:42:51448 days ago1679481771IN
0xD6eF3eBb...56a93b985
0 MATIC0.000089111.50000001
Limit Order P2P334245072023-03-22 10:42:43448 days ago1679481763IN
0xD6eF3eBb...56a93b985
0 MATIC0.000089111.50000001
Limit Order P2P334245032023-03-22 10:42:35448 days ago1679481755IN
0xD6eF3eBb...56a93b985
0 MATIC0.000089111.50000001
Limit Order P2P334244992023-03-22 10:42:27448 days ago1679481747IN
0xD6eF3eBb...56a93b985
0 MATIC0.000089111.50000001
Limit Order P2P334244962023-03-22 10:42:21448 days ago1679481741IN
0xD6eF3eBb...56a93b985
0 MATIC0.000089111.50000001
Limit Order P2P334244922023-03-22 10:42:11448 days ago1679481731IN
0xD6eF3eBb...56a93b985
0 MATIC0.000547891.50000001
Limit Order P2P334244222023-03-22 10:39:43448 days ago1679481583IN
0xD6eF3eBb...56a93b985
0 MATIC0.000929271.50000001
View all transactions

Parent Transaction Hash Block From To Value
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
ParalaxExchangeProxy

Compiler Version
v0.8.10+commit.fc410830

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 20 : ParalaxExchangeProxy.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.9;

import "./Storage.sol";
import "./interfaces/IParalaxExchange.sol";

contract ParalaxExchangeProxy is Storage, IParalaxExchange {
    error SwapDexError(bytes error);
    event SetFee(TypeFee TypeFee, uint256 value, address account);
    event RemoveLimitOrderP2P(bytes sign);
    event LimitOrderP2PError(bytes sign1, bytes sign2, bytes error);
    event LimitOrderDEXError(bytes sign1, bytes error);
    event InitOrderDCAError(bytes sign, bytes error);
    event DCAError(bytes sign, bytes error);

    struct OrderLMP2P {
        bytes sign1;
        bytes sign2;
        SignerData signerData1;
        SignerData signerData2;
    }

    struct LimitOrderDEX {
        bytes sign;
        SignerData signerData;
        address[] path;
    }
    struct InitOrderDCA {
        bytes sign;
        Order order;
    }

    string public constant DCA = "dca(bytes)";

    string public constant SWAP_DEX = "swapDex(uint256,uint256,address[])";

    string public constant SWAP_DEX_ETH =
        "swapDexETH(uint256,uint256,address[])";

    string public constant LIMIT_ORDER_P2P =
        "limitOrderP2P(bytes,bytes,(address,address,uint96,address,uint96,uint256),(address,address,uint96,address,uint96,uint256))";

    string public constant DCA_TM = "dcaTM(bytes)";

    string public constant INIT_TIME_MULTIPLIER =
        "initTimeMultiplier(bytes,((uint256,uint128,uint64,uint64,uint96,address,uint96,address,address,uint256),(uint256,uint256)))";

    string constant LIMIT_ORDER_DEX =
        "limitOrderDEX(bytes,(address,address,uint96,address,uint96,uint256),address[])";

    string constant INIT_ORDER_DCA =
        "initOrderDCA(bytes,((uint256,uint128,uint64,uint64,uint96,address,uint96,address,address,uint256),(uint256,uint256)))";

    constructor(
        address adapter,
        address treasure,
        uint256 delta,
        address implementation
    ) {
        EIP712._init("ParalaxExchange", "1");
        _grantRole(DEFAULT_ADMIN_ROLE, msg.sender);
        _grantRole(ADMIN_ROLE, msg.sender);

        _adapter = adapter;
        _treasure = treasure;
        _delta = delta;
        _implementation = implementation;
    }

    //-------------------------------------------------------------------------------------
    //--------------------------------- EXTERNAL FUNCTION ---------------------------------
    //-------------------------------------------------------------------------------------
    /* ---------------------------------- ADMIN FUNCTION ---------------------------------- */
    function setFeeDEX(uint256 fee) external onlyRole(ADMIN_ROLE) {
        feeDEX = fee;
        emit SetFee(TypeFee.FeeDEX, fee, msg.sender);
    }

    function setFeeLMDEX(uint256 fee) external onlyRole(ADMIN_ROLE) {
        feeLMDEX = fee;
        emit SetFee(TypeFee.FeeLMDEX, fee, msg.sender);
    }

    function setFeeLMP2P(uint256 fee) external onlyRole(ADMIN_ROLE) {
        feeLMP2P = fee;
        emit SetFee(TypeFee.FeeLMP2P, fee, msg.sender);
    }

    function setFeeDCA(uint256 fee) external onlyRole(ADMIN_ROLE) {
        feeDCA = fee;
        emit SetFee(TypeFee.FeeDCA, fee, msg.sender);
    }

    /* ----------------------------------- GENERAL FUNCTION ---------------------------------- */

    function swapDex(
        uint256 amountIn,
        uint256 amountOutMin,
        address[] calldata path
    ) external {
        (bool success, bytes memory data) = _implementation.delegatecall(
            abi.encodeWithSignature(SWAP_DEX, amountIn, amountOutMin, path)
        );

        if (!success) {
            revert SwapDexError(data);
        }
    }

    function swapDexETH(
        uint256 amountIn,
        uint256 amountOutMin,
        address[] calldata path
    ) external {
        (bool success, bytes memory data) = _implementation.delegatecall(
            abi.encodeWithSignature(SWAP_DEX, amountIn, amountOutMin, path)
        );

        if (!success) {
            revert SwapDexError(data);
        }
    }

    function limitOrderP2P(OrderLMP2P[] calldata orders) external {
        for (uint256 i = 0; i < orders.length; i++) {
            (bool success, bytes memory data) = _implementation.delegatecall(
                abi.encodeWithSignature(
                    LIMIT_ORDER_P2P,
                    orders[i].sign1,
                    orders[i].sign2,
                    orders[i].signerData1,
                    orders[i].signerData2
                )
            );
            if (!success) {
                // b = data;
                // console.log("limitOrderP2P");
                emit LimitOrderP2PError(orders[i].sign1, orders[i].sign2, data);
            }
        }
    }

    function limitOrderDEX(LimitOrderDEX[] calldata limitOrdersDEX) external {
        for (uint256 i = 0; i < limitOrdersDEX.length; i++) {
            (bool success, bytes memory data) = _implementation.delegatecall(
                abi.encodeWithSignature(
                    LIMIT_ORDER_DEX,
                    limitOrdersDEX[i].sign,
                    limitOrdersDEX[i].signerData,
                    limitOrdersDEX[i].path
                )
            );
            if (!success) {
                emit LimitOrderDEXError(limitOrdersDEX[i].sign, data);
            }
        }
    }

    function initOrderDCA(InitOrderDCA[] calldata dataInitOrderDCA) public {
        for (uint256 i = 0; i < dataInitOrderDCA.length; i++) {
            (bool success, bytes memory data) = _implementation.delegatecall(
                abi.encodeWithSignature(
                    INIT_ORDER_DCA,
                    dataInitOrderDCA[i].sign,
                    dataInitOrderDCA[i].order
                )
            );
            if (!success) {
                emit InitOrderDCAError(dataInitOrderDCA[i].sign, data);
            }
        }
    }

    function dca(bytes[] calldata sign) public {
        for (uint256 i = 0; i < sign.length; i++) {
            (bool success, bytes memory data) = _implementation.delegatecall(
                abi.encodeWithSignature(DCA, sign)
            );
            if (!success) {
                emit DCAError(sign[i], data);
            }
        }
    }

    function initTimeMultiplier(
        InitOrderDCA[] memory dataInitOrderDCA
    ) external {
        for (uint256 i = 0; i < dataInitOrderDCA.length; i++) {
            (bool success, bytes memory data) = _implementation.delegatecall(
                abi.encodeWithSignature(
                    INIT_TIME_MULTIPLIER,
                    dataInitOrderDCA[i].sign,
                    dataInitOrderDCA[i].order
                )
            );
            if (!success) {
                emit InitOrderDCAError(dataInitOrderDCA[i].sign, data);
            }
        }
    }

    function dcaTM(bytes[] calldata sign) external {
        for (uint256 i = 0; i < sign.length; i++) {
            (bool success, bytes memory data) = _implementation.delegatecall(
                abi.encodeWithSignature(DCA_TM, sign)
            );
            if (!success) {
                emit DCAError(sign[i], data);
            }
        }
    }

    function removeLimitOrderP2P(bytes calldata sign) external {
        require(msg.sender == _signerDatas[sign].account, "Access Error");
        _signerDatas[sign].deadline = 0;
        emit RemoveLimitOrderP2P(sign);
    }

    //-------------------------------------------------------------------------------------
    //------------------------------ EXTERNAL FUNCTION VIEW -------------------------------
    //-------------------------------------------------------------------------------------

    function getOrder(
        bytes calldata sign
    ) external view returns (SignerData memory) {
        return _signerDatas[sign];
    }

    function getOrderDCA(
        bytes calldata sign
    ) external view returns (OrderDCA memory) {
        return _ordersDCA[sign];
    }

    function getTimeMultiplier(
        bytes calldata sign
    ) external view returns (TimeMultiplier memory) {
        return _timeMultipliers[sign];
    }

    function getProcessingDCA(
        bytes calldata sign
    ) external view returns (ProcessingDCA memory) {
        return _processingDCA[sign];
    }

    //-------------------------------------------------------------------------------------
    //---------------------------------- PUBLIC FUNCTION ----------------------------------
    //-------------------------------------------------------------------------------------

    /**
     * @dev UniswapV2Router02 getAmountsOut function
     */
    function getAmountsOut(
        address[] memory path,
        uint256 amount
    ) public view returns (uint256[] memory amountsOut) {
        amountsOut = IUniswapV2Router02(_adapter).getAmountsOut(amount, path);
    }

    /**
     * @dev UniswapV2Router02 getAmountsIn function
     */
    function getAmountsIn(
        uint256 amountOut,
        address[] calldata path
    ) public view returns (uint256[] memory amountsIn) {
        amountsIn = IUniswapV2Router02(_adapter).getAmountsIn(amountOut, path);
    }
}

File 1 of 20 : AccessControl.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (access/AccessControl.sol)

pragma solidity ^0.8.0;

import "./IAccessControl.sol";
import "../utils/Context.sol";
import "../utils/Strings.sol";
import "../utils/introspection/ERC165.sol";

/**
 * @dev Contract module that allows children to implement role-based access
 * control mechanisms. This is a lightweight version that doesn't allow enumerating role
 * members except through off-chain means by accessing the contract event logs. Some
 * applications may benefit from on-chain enumerability, for those cases see
 * {AccessControlEnumerable}.
 *
 * Roles are referred to by their `bytes32` identifier. These should be exposed
 * in the external API and be unique. The best way to achieve this is by
 * using `public constant` hash digests:
 *
 * ```
 * bytes32 public constant MY_ROLE = keccak256("MY_ROLE");
 * ```
 *
 * Roles can be used to represent a set of permissions. To restrict access to a
 * function call, use {hasRole}:
 *
 * ```
 * function foo() public {
 *     require(hasRole(MY_ROLE, msg.sender));
 *     ...
 * }
 * ```
 *
 * Roles can be granted and revoked dynamically via the {grantRole} and
 * {revokeRole} functions. Each role has an associated admin role, and only
 * accounts that have a role's admin role can call {grantRole} and {revokeRole}.
 *
 * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means
 * that only accounts with this role will be able to grant or revoke other
 * roles. More complex role relationships can be created by using
 * {_setRoleAdmin}.
 *
 * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to
 * grant and revoke this role. Extra precautions should be taken to secure
 * accounts that have been granted it.
 */
abstract contract AccessControl is Context, IAccessControl, ERC165 {
    struct RoleData {
        mapping(address => bool) members;
        bytes32 adminRole;
    }

    mapping(bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

    /**
     * @dev Modifier that checks that an account has a specific role. Reverts
     * with a standardized message including the required role.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
     *
     * _Available since v4.1._
     */
    modifier onlyRole(bytes32 role) {
        _checkRole(role);
        _;
    }

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId);
    }

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) public view virtual override returns (bool) {
        return _roles[role].members[account];
    }

    /**
     * @dev Revert with a standard message if `_msgSender()` is missing `role`.
     * Overriding this function changes the behavior of the {onlyRole} modifier.
     *
     * Format of the revert message is described in {_checkRole}.
     *
     * _Available since v4.6._
     */
    function _checkRole(bytes32 role) internal view virtual {
        _checkRole(role, _msgSender());
    }

    /**
     * @dev Revert with a standard message if `account` is missing `role`.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
     */
    function _checkRole(bytes32 role, address account) internal view virtual {
        if (!hasRole(role, account)) {
            revert(
                string(
                    abi.encodePacked(
                        "AccessControl: account ",
                        Strings.toHexString(account),
                        " is missing role ",
                        Strings.toHexString(uint256(role), 32)
                    )
                )
            );
        }
    }

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) public view virtual override returns (bytes32) {
        return _roles[role].adminRole;
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     *
     * May emit a {RoleGranted} event.
     */
    function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _grantRole(role, account);
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     *
     * May emit a {RoleRevoked} event.
     */
    function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _revokeRole(role, account);
    }

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been revoked `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     *
     * May emit a {RoleRevoked} event.
     */
    function renounceRole(bytes32 role, address account) public virtual override {
        require(account == _msgSender(), "AccessControl: can only renounce roles for self");

        _revokeRole(role, account);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event. Note that unlike {grantRole}, this function doesn't perform any
     * checks on the calling account.
     *
     * May emit a {RoleGranted} event.
     *
     * [WARNING]
     * ====
     * This function should only be called from the constructor when setting
     * up the initial roles for the system.
     *
     * Using this function in any other way is effectively circumventing the admin
     * system imposed by {AccessControl}.
     * ====
     *
     * NOTE: This function is deprecated in favor of {_grantRole}.
     */
    function _setupRole(bytes32 role, address account) internal virtual {
        _grantRole(role, account);
    }

    /**
     * @dev Sets `adminRole` as ``role``'s admin role.
     *
     * Emits a {RoleAdminChanged} event.
     */
    function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual {
        bytes32 previousAdminRole = getRoleAdmin(role);
        _roles[role].adminRole = adminRole;
        emit RoleAdminChanged(role, previousAdminRole, adminRole);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * Internal function without access restriction.
     *
     * May emit a {RoleGranted} event.
     */
    function _grantRole(bytes32 role, address account) internal virtual {
        if (!hasRole(role, account)) {
            _roles[role].members[account] = true;
            emit RoleGranted(role, account, _msgSender());
        }
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * Internal function without access restriction.
     *
     * May emit a {RoleRevoked} event.
     */
    function _revokeRole(bytes32 role, address account) internal virtual {
        if (hasRole(role, account)) {
            _roles[role].members[account] = false;
            emit RoleRevoked(role, account, _msgSender());
        }
    }
}

File 1 of 20 : IAccessControl.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol)

pragma solidity ^0.8.0;

/**
 * @dev External interface of AccessControl declared to support ERC165 detection.
 */
interface IAccessControl {
    /**
     * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`
     *
     * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite
     * {RoleAdminChanged} not being emitted signaling this.
     *
     * _Available since v3.1._
     */
    event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);

    /**
     * @dev Emitted when `account` is granted `role`.
     *
     * `sender` is the account that originated the contract call, an admin role
     * bearer except when using {AccessControl-_setupRole}.
     */
    event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Emitted when `account` is revoked `role`.
     *
     * `sender` is the account that originated the contract call:
     *   - if using `revokeRole`, it is the admin role bearer
     *   - if using `renounceRole`, it is the role bearer (i.e. `account`)
     */
    event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) external view returns (bool);

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {AccessControl-_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) external view returns (bytes32);

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function grantRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function revokeRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been granted `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     */
    function renounceRole(bytes32 role, address account) external;
}

File 1 of 20 : draft-IERC20Permit.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/draft-IERC20Permit.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in
 * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].
 *
 * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by
 * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't
 * need to send a transaction, and thus is not required to hold Ether at all.
 */
interface IERC20Permit {
    /**
     * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,
     * given ``owner``'s signed approval.
     *
     * IMPORTANT: The same issues {IERC20-approve} has related to transaction
     * ordering also apply here.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `deadline` must be a timestamp in the future.
     * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`
     * over the EIP712-formatted function arguments.
     * - the signature must use ``owner``'s current nonce (see {nonces}).
     *
     * For more information on the signature format, see the
     * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP
     * section].
     */
    function permit(
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external;

    /**
     * @dev Returns the current nonce for `owner`. This value must be
     * included whenever a signature is generated for {permit}.
     *
     * Every successful call to {permit} increases ``owner``'s nonce by one. This
     * prevents a signature from being used multiple times.
     */
    function nonces(address owner) external view returns (uint256);

    /**
     * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}.
     */
    // solhint-disable-next-line func-name-mixedcase
    function DOMAIN_SEPARATOR() external view returns (bytes32);
}

File 1 of 20 : IERC20Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";

/**
 * @dev Interface for the optional metadata functions from the ERC20 standard.
 *
 * _Available since v4.1._
 */
interface IERC20Metadata is IERC20 {
    /**
     * @dev Returns the name of the token.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the symbol of the token.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the decimals places of the token.
     */
    function decimals() external view returns (uint8);
}

File 1 of 20 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @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);

    /**
     * @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 `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, 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 `from` to `to` 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 from,
        address to,
        uint256 amount
    ) external returns (bool);
}

File 1 of 20 : SafeERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";
import "../extensions/draft-IERC20Permit.sol";
import "../../../utils/Address.sol";

/**
 * @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 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'
        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) + value;
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    function safeDecreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        unchecked {
            uint256 oldAllowance = token.allowance(address(this), spender);
            require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
            uint256 newAllowance = oldAllowance - value;
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
        }
    }

    function safePermit(
        IERC20Permit token,
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal {
        uint256 nonceBefore = token.nonces(owner);
        token.permit(owner, spender, value, deadline, v, r, s);
        uint256 nonceAfter = token.nonces(owner);
        require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed");
    }

    /**
     * @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
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

File 1 of 20 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @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
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 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");

        (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 functionCallWithValue(target, data, 0, "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");
        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResultFromTarget(target, 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) {
        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

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

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling
     * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.
     *
     * _Available since v4.8._
     */
    function verifyCallResultFromTarget(
        address target,
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        if (success) {
            if (returndata.length == 0) {
                // only check isContract if the call was successful and the return data is empty
                // otherwise we already know that it was a contract
                require(isContract(target), "Address: call to non-contract");
            }
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    /**
     * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason or using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    function _revert(bytes memory returndata, string memory errorMessage) private pure {
        // 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
            /// @solidity memory-safe-assembly
            assembly {
                let returndata_size := mload(returndata)
                revert(add(32, returndata), returndata_size)
            }
        } else {
            revert(errorMessage);
        }
    }
}

File 1 of 20 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

/**
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}

File 1 of 20 : ECDSA.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/cryptography/ECDSA.sol)

pragma solidity ^0.8.0;

import "../Strings.sol";

/**
 * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.
 *
 * These functions can be used to verify that a message was signed by the holder
 * of the private keys of a given address.
 */
library ECDSA {
    enum RecoverError {
        NoError,
        InvalidSignature,
        InvalidSignatureLength,
        InvalidSignatureS,
        InvalidSignatureV // Deprecated in v4.8
    }

    function _throwError(RecoverError error) private pure {
        if (error == RecoverError.NoError) {
            return; // no error: do nothing
        } else if (error == RecoverError.InvalidSignature) {
            revert("ECDSA: invalid signature");
        } else if (error == RecoverError.InvalidSignatureLength) {
            revert("ECDSA: invalid signature length");
        } else if (error == RecoverError.InvalidSignatureS) {
            revert("ECDSA: invalid signature 's' value");
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature` or error string. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     *
     * Documentation for signature generation:
     * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js]
     * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers]
     *
     * _Available since v4.3._
     */
    function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) {
        if (signature.length == 65) {
            bytes32 r;
            bytes32 s;
            uint8 v;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            /// @solidity memory-safe-assembly
            assembly {
                r := mload(add(signature, 0x20))
                s := mload(add(signature, 0x40))
                v := byte(0, mload(add(signature, 0x60)))
            }
            return tryRecover(hash, v, r, s);
        } else {
            return (address(0), RecoverError.InvalidSignatureLength);
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature`. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     */
    function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, signature);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately.
     *
     * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures]
     *
     * _Available since v4.3._
     */
    function tryRecover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address, RecoverError) {
        bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff);
        uint8 v = uint8((uint256(vs) >> 255) + 27);
        return tryRecover(hash, v, r, s);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.
     *
     * _Available since v4.2._
     */
    function recover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, r, vs);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `v`,
     * `r` and `s` signature fields separately.
     *
     * _Available since v4.3._
     */
    function tryRecover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address, RecoverError) {
        // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature
        // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines
        // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most
        // signatures from current libraries generate a unique signature with an s-value in the lower half order.
        //
        // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value
        // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or
        // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept
        // these malleable signatures as well.
        if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) {
            return (address(0), RecoverError.InvalidSignatureS);
        }

        // If the signature is valid (and not malleable), return the signer address
        address signer = ecrecover(hash, v, r, s);
        if (signer == address(0)) {
            return (address(0), RecoverError.InvalidSignature);
        }

        return (signer, RecoverError.NoError);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `v`,
     * `r` and `s` signature fields separately.
     */
    function recover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, v, r, s);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from a `hash`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) {
        // 32 is the length in bytes of hash,
        // enforced by the type signature above
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash));
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from `s`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s));
    }

    /**
     * @dev Returns an Ethereum Signed Typed Data, created from a
     * `domainSeparator` and a `structHash`. This produces hash corresponding
     * to the one signed with the
     * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`]
     * JSON-RPC method as part of EIP-712.
     *
     * See {recover}.
     */
    function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash));
    }
}

File 1 of 20 : ERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)

pragma solidity ^0.8.0;

import "./IERC165.sol";

/**
 * @dev Implementation of the {IERC165} interface.
 *
 * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
 * for the additional interface id that will be supported. For example:
 *
 * ```solidity
 * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
 *     return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
 * }
 * ```
 *
 * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.
 */
abstract contract ERC165 is IERC165 {
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IERC165).interfaceId;
    }
}

File 1 of 20 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC165 standard, as defined in the
 * https://eips.ethereum.org/EIPS/eip-165[EIP].
 *
 * Implementers can declare support of contract interfaces, which can then be
 * queried by others ({ERC165Checker}).
 *
 * For an implementation, see {ERC165}.
 */
interface IERC165 {
    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);
}

File 1 of 20 : Math.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol)

pragma solidity ^0.8.0;

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    enum Rounding {
        Down, // Toward negative infinity
        Up, // Toward infinity
        Zero // Toward zero
    }

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

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

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

    /**
     * @dev Returns the ceiling of the division of two numbers.
     *
     * This differs from standard division with `/` in that it rounds up instead
     * of rounding down.
     */
    function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b - 1) / b can overflow on addition, so we distribute.
        return a == 0 ? 0 : (a - 1) / b + 1;
    }

    /**
     * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0
     * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv)
     * with further edits by Uniswap Labs also under MIT license.
     */
    function mulDiv(
        uint256 x,
        uint256 y,
        uint256 denominator
    ) internal pure returns (uint256 result) {
        unchecked {
            // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use
            // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256
            // variables such that product = prod1 * 2^256 + prod0.
            uint256 prod0; // Least significant 256 bits of the product
            uint256 prod1; // Most significant 256 bits of the product
            assembly {
                let mm := mulmod(x, y, not(0))
                prod0 := mul(x, y)
                prod1 := sub(sub(mm, prod0), lt(mm, prod0))
            }

            // Handle non-overflow cases, 256 by 256 division.
            if (prod1 == 0) {
                return prod0 / denominator;
            }

            // Make sure the result is less than 2^256. Also prevents denominator == 0.
            require(denominator > prod1);

            ///////////////////////////////////////////////
            // 512 by 256 division.
            ///////////////////////////////////////////////

            // Make division exact by subtracting the remainder from [prod1 prod0].
            uint256 remainder;
            assembly {
                // Compute remainder using mulmod.
                remainder := mulmod(x, y, denominator)

                // Subtract 256 bit number from 512 bit number.
                prod1 := sub(prod1, gt(remainder, prod0))
                prod0 := sub(prod0, remainder)
            }

            // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1.
            // See https://cs.stackexchange.com/q/138556/92363.

            // Does not overflow because the denominator cannot be zero at this stage in the function.
            uint256 twos = denominator & (~denominator + 1);
            assembly {
                // Divide denominator by twos.
                denominator := div(denominator, twos)

                // Divide [prod1 prod0] by twos.
                prod0 := div(prod0, twos)

                // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.
                twos := add(div(sub(0, twos), twos), 1)
            }

            // Shift in bits from prod1 into prod0.
            prod0 |= prod1 * twos;

            // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such
            // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for
            // four bits. That is, denominator * inv = 1 mod 2^4.
            uint256 inverse = (3 * denominator) ^ 2;

            // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works
            // in modular arithmetic, doubling the correct bits in each step.
            inverse *= 2 - denominator * inverse; // inverse mod 2^8
            inverse *= 2 - denominator * inverse; // inverse mod 2^16
            inverse *= 2 - denominator * inverse; // inverse mod 2^32
            inverse *= 2 - denominator * inverse; // inverse mod 2^64
            inverse *= 2 - denominator * inverse; // inverse mod 2^128
            inverse *= 2 - denominator * inverse; // inverse mod 2^256

            // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.
            // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is
            // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1
            // is no longer required.
            result = prod0 * inverse;
            return result;
        }
    }

    /**
     * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.
     */
    function mulDiv(
        uint256 x,
        uint256 y,
        uint256 denominator,
        Rounding rounding
    ) internal pure returns (uint256) {
        uint256 result = mulDiv(x, y, denominator);
        if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) {
            result += 1;
        }
        return result;
    }

    /**
     * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down.
     *
     * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11).
     */
    function sqrt(uint256 a) internal pure returns (uint256) {
        if (a == 0) {
            return 0;
        }

        // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.
        //
        // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have
        // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.
        //
        // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`
        // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`
        // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`
        //
        // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.
        uint256 result = 1 << (log2(a) >> 1);

        // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,
        // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at
        // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision
        // into the expected uint128 result.
        unchecked {
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            return min(result, a / result);
        }
    }

    /**
     * @notice Calculates sqrt(a), following the selected rounding direction.
     */
    function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = sqrt(a);
            return result + (rounding == Rounding.Up && result * result < a ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 2, rounded down, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 128;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 64;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 32;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 16;
            }
            if (value >> 8 > 0) {
                value >>= 8;
                result += 8;
            }
            if (value >> 4 > 0) {
                value >>= 4;
                result += 4;
            }
            if (value >> 2 > 0) {
                value >>= 2;
                result += 2;
            }
            if (value >> 1 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 2, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log2(value);
            return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 10, rounded down, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >= 10**64) {
                value /= 10**64;
                result += 64;
            }
            if (value >= 10**32) {
                value /= 10**32;
                result += 32;
            }
            if (value >= 10**16) {
                value /= 10**16;
                result += 16;
            }
            if (value >= 10**8) {
                value /= 10**8;
                result += 8;
            }
            if (value >= 10**4) {
                value /= 10**4;
                result += 4;
            }
            if (value >= 10**2) {
                value /= 10**2;
                result += 2;
            }
            if (value >= 10**1) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 10, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log10(value);
            return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 256, rounded down, of a positive value.
     * Returns 0 if given 0.
     *
     * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.
     */
    function log256(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 16;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 8;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 4;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 2;
            }
            if (value >> 8 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 10, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log256(value);
            return result + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0);
        }
    }
}

File 1 of 20 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

import "./math/Math.sol";

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant _SYMBOLS = "0123456789abcdef";
    uint8 private constant _ADDRESS_LENGTH = 20;

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        unchecked {
            uint256 length = Math.log10(value) + 1;
            string memory buffer = new string(length);
            uint256 ptr;
            /// @solidity memory-safe-assembly
            assembly {
                ptr := add(buffer, add(32, length))
            }
            while (true) {
                ptr--;
                /// @solidity memory-safe-assembly
                assembly {
                    mstore8(ptr, byte(mod(value, 10), _SYMBOLS))
                }
                value /= 10;
                if (value == 0) break;
            }
            return buffer;
        }
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        unchecked {
            return toHexString(value, Math.log256(value) + 1);
        }
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
     */
    function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
        bytes memory buffer = new bytes(2 * length + 2);
        buffer[0] = "0";
        buffer[1] = "x";
        for (uint256 i = 2 * length + 1; i > 1; --i) {
            buffer[i] = _SYMBOLS[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }

    /**
     * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.
     */
    function toHexString(address addr) internal pure returns (string memory) {
        return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);
    }
}

File 1 of 20 : EIP712.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.9;

import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";

abstract contract EIP712 {
    using ECDSA for bytes32;
    bytes32 public DOMAIN_SEPARATOR;

    function _init(string memory name, string memory version) internal {
        DOMAIN_SEPARATOR = keccak256(
            abi.encode(
                keccak256(
                    "EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)"
                ),
                keccak256(bytes(name)),
                keccak256(bytes(version)),
                block.chainid,
                address(this)
            )
        );
    }

    function _hashTypedDataV4(bytes32 hashStruct)
        internal
        view
        returns (bytes32 digest)
    {
        digest = keccak256(
            abi.encodePacked("\x19\x01", DOMAIN_SEPARATOR, hashStruct)
        );
    }

    function _verify(
        address owner,
        bytes calldata signature,
        bytes32 hashStruct
    ) internal view returns (bool) {
        bytes32 digest = _hashTypedDataV4(hashStruct);
        address recoveredAddress = digest.recover(signature);
        return (recoveredAddress == owner);
    }
}

File 1 of 20 : ExtensionPercent.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.10;

import "hardhat/console.sol";

abstract contract ExtensionPercent {
    uint256 internal constant PRECISION = 1e6;

    function calcPercent(
        uint256 amount,
        uint256 percent
    ) internal pure returns (uint256 share) {
        return ((amount * percent) / (PRECISION * 100));
    }

    function subtractPercentage(
        uint256 amount,
        uint256 percent
    ) internal pure returns (uint256 remains, uint256 share) {
        share = calcPercent(amount, percent);
        return (amount - share, share);
    }

    function addPercentage(
        uint256 amount,
        uint256 percent
    ) internal pure returns (uint256 remains, uint256 share) {
        share = calcPercent(amount, percent);
        return (amount + share, share);
    }
}

File 1 of 20 : IParalaxExchange.sol
pragma solidity ^0.8.10;

interface IParalaxExchange {




}

File 1 of 20 : IUniswapV2Router02.sol
pragma solidity ^0.8.10;

interface IUniswapV2Router01 {
    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);
}

interface IUniswapV2Router02 is IUniswapV2Router01 {
    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 2 of 20 : Storage.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.9;
import {IERC20Metadata} from "@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol";
import {IUniswapV2Router02} from "./interfaces/IUniswapV2Router02.sol";
import {SafeERC20, IERC20} from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";

import {AccessControl} from "@openzeppelin/contracts/access/AccessControl.sol";

import "./EIP712.sol";
import {ExtensionPercent} from "./ExtensionPercent.sol";

abstract contract Storage is ExtensionPercent, EIP712, AccessControl {
    using SafeERC20 for IERC20;
    struct SignerData {
        address account;
        address baseCurrency;
        uint96 deadline;
        address quoteCurrency;
        uint96 price;
        uint256 amount;
    }
    struct OrderDCA {
        uint256 price;
        uint128 volume;
        uint64 levels;
        uint64 period;
        uint96 slippage;
        address baseCurrency;
        uint96 scale;
        address quoteCurrency;
        address account;
        uint256 nonce;
    }
    struct TimeMultiplier {
        uint256 amount;
        uint256 interval;
    }
    struct Order {
        OrderDCA dca;
        TimeMultiplier tm;
    }
    struct ProcessingDCA {
        uint256 lastLevel;
        uint256 scaleAmount;
        uint256 done;
        uint256 doneTM;
    }

    enum TypeFee {
        FeeDEX,
        FeeLMDEX,
        FeeLMP2P,
        FeeDCA
    }

    bytes32 public constant ADMIN_ROLE = keccak256("ADMIN_ROLE");
    bytes32 public constant SIGNER_DATA =
        keccak256(
            "SignerData(address account,address baseCurrency,uint96 deadline,address quoteCurrency,uint96 price,uint256 amount)"
        );
    bytes32 public constant ORDER_DCA =
        keccak256(
            "OrderDCA(uint256 price,uint128 volume,uint64 levels,uint64 period,uint96 slippage,address baseCurrency,uint96 scale,address quoteCurrency,address account,uint256 nonce)"
        );
    bytes32 public constant TIME_MULTIPLIER =
        keccak256("TimeMultiplier(uint256 amount,uint256 interval)");
    bytes32 public constant ORDER =
        keccak256(
            "Order(OrderDCA dca,TimeMultiplier tm)OrderDCA(uint256 price,uint128 volume,uint64 levels,uint64 period,uint96 slippage,address baseCurrency,uint96 scale,address quoteCurrency,address account,uint256 nonce)TimeMultiplier(uint256 amount,uint256 interval)"
        );

    address internal _adapter;
    address internal _treasure;
    uint256 internal _delta;

    address public _implementation;
    uint256 public feeDEX;
    uint256 public feeLMDEX;
    uint256 public feeLMP2P;
    uint256 public feeDCA;
    uint256 public test;

    mapping(bytes => SignerData) internal _signerDatas;
    mapping(bytes => OrderDCA) internal _ordersDCA;
    mapping(bytes => TimeMultiplier) internal _timeMultipliers;
    // mapping(bytes => bool) internal _limitOrdersDEX;
    mapping(bytes => ProcessingDCA) internal _processingDCA;
}

File 2 of 20 : console.sol
// SPDX-License-Identifier: MIT
pragma solidity >= 0.4.22 <0.9.0;

library console {
	address constant CONSOLE_ADDRESS = address(0x000000000000000000636F6e736F6c652e6c6f67);

	function _sendLogPayload(bytes memory payload) private view {
		uint256 payloadLength = payload.length;
		address consoleAddress = CONSOLE_ADDRESS;
		assembly {
			let payloadStart := add(payload, 32)
			let r := staticcall(gas(), consoleAddress, payloadStart, payloadLength, 0, 0)
		}
	}

	function log() internal view {
		_sendLogPayload(abi.encodeWithSignature("log()"));
	}

	function logInt(int256 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(int256)", p0));
	}

	function logUint(uint256 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint256)", p0));
	}

	function logString(string memory p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string)", p0));
	}

	function logBool(bool p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool)", p0));
	}

	function logAddress(address p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address)", p0));
	}

	function logBytes(bytes memory p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes)", p0));
	}

	function logBytes1(bytes1 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes1)", p0));
	}

	function logBytes2(bytes2 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes2)", p0));
	}

	function logBytes3(bytes3 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes3)", p0));
	}

	function logBytes4(bytes4 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes4)", p0));
	}

	function logBytes5(bytes5 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes5)", p0));
	}

	function logBytes6(bytes6 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes6)", p0));
	}

	function logBytes7(bytes7 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes7)", p0));
	}

	function logBytes8(bytes8 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes8)", p0));
	}

	function logBytes9(bytes9 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes9)", p0));
	}

	function logBytes10(bytes10 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes10)", p0));
	}

	function logBytes11(bytes11 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes11)", p0));
	}

	function logBytes12(bytes12 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes12)", p0));
	}

	function logBytes13(bytes13 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes13)", p0));
	}

	function logBytes14(bytes14 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes14)", p0));
	}

	function logBytes15(bytes15 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes15)", p0));
	}

	function logBytes16(bytes16 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes16)", p0));
	}

	function logBytes17(bytes17 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes17)", p0));
	}

	function logBytes18(bytes18 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes18)", p0));
	}

	function logBytes19(bytes19 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes19)", p0));
	}

	function logBytes20(bytes20 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes20)", p0));
	}

	function logBytes21(bytes21 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes21)", p0));
	}

	function logBytes22(bytes22 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes22)", p0));
	}

	function logBytes23(bytes23 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes23)", p0));
	}

	function logBytes24(bytes24 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes24)", p0));
	}

	function logBytes25(bytes25 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes25)", p0));
	}

	function logBytes26(bytes26 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes26)", p0));
	}

	function logBytes27(bytes27 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes27)", p0));
	}

	function logBytes28(bytes28 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes28)", p0));
	}

	function logBytes29(bytes29 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes29)", p0));
	}

	function logBytes30(bytes30 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes30)", p0));
	}

	function logBytes31(bytes31 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes31)", p0));
	}

	function logBytes32(bytes32 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes32)", p0));
	}

	function log(uint256 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint256)", p0));
	}

	function log(string memory p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string)", p0));
	}

	function log(bool p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool)", p0));
	}

	function log(address p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address)", p0));
	}

	function log(uint256 p0, uint256 p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint256,uint256)", p0, p1));
	}

	function log(uint256 p0, string memory p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint256,string)", p0, p1));
	}

	function log(uint256 p0, bool p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint256,bool)", p0, p1));
	}

	function log(uint256 p0, address p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint256,address)", p0, p1));
	}

	function log(string memory p0, uint256 p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint256)", p0, p1));
	}

	function log(string memory p0, string memory p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string)", p0, p1));
	}

	function log(string memory p0, bool p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool)", p0, p1));
	}

	function log(string memory p0, address p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address)", p0, p1));
	}

	function log(bool p0, uint256 p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint256)", p0, p1));
	}

	function log(bool p0, string memory p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string)", p0, p1));
	}

	function log(bool p0, bool p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool)", p0, p1));
	}

	function log(bool p0, address p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address)", p0, p1));
	}

	function log(address p0, uint256 p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint256)", p0, p1));
	}

	function log(address p0, string memory p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string)", p0, p1));
	}

	function log(address p0, bool p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool)", p0, p1));
	}

	function log(address p0, address p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address)", p0, p1));
	}

	function log(uint256 p0, uint256 p1, uint256 p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,uint256)", p0, p1, p2));
	}

	function log(uint256 p0, uint256 p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,string)", p0, p1, p2));
	}

	function log(uint256 p0, uint256 p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,bool)", p0, p1, p2));
	}

	function log(uint256 p0, uint256 p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,address)", p0, p1, p2));
	}

	function log(uint256 p0, string memory p1, uint256 p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint256,string,uint256)", p0, p1, p2));
	}

	function log(uint256 p0, string memory p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint256,string,string)", p0, p1, p2));
	}

	function log(uint256 p0, string memory p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint256,string,bool)", p0, p1, p2));
	}

	function log(uint256 p0, string memory p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint256,string,address)", p0, p1, p2));
	}

	function log(uint256 p0, bool p1, uint256 p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint256,bool,uint256)", p0, p1, p2));
	}

	function log(uint256 p0, bool p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint256,bool,string)", p0, p1, p2));
	}

	function log(uint256 p0, bool p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint256,bool,bool)", p0, p1, p2));
	}

	function log(uint256 p0, bool p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint256,bool,address)", p0, p1, p2));
	}

	function log(uint256 p0, address p1, uint256 p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint256,address,uint256)", p0, p1, p2));
	}

	function log(uint256 p0, address p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint256,address,string)", p0, p1, p2));
	}

	function log(uint256 p0, address p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint256,address,bool)", p0, p1, p2));
	}

	function log(uint256 p0, address p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint256,address,address)", p0, p1, p2));
	}

	function log(string memory p0, uint256 p1, uint256 p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint256,uint256)", p0, p1, p2));
	}

	function log(string memory p0, uint256 p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint256,string)", p0, p1, p2));
	}

	function log(string memory p0, uint256 p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint256,bool)", p0, p1, p2));
	}

	function log(string memory p0, uint256 p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint256,address)", p0, p1, p2));
	}

	function log(string memory p0, string memory p1, uint256 p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,uint256)", p0, p1, p2));
	}

	function log(string memory p0, string memory p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,string)", p0, p1, p2));
	}

	function log(string memory p0, string memory p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,bool)", p0, p1, p2));
	}

	function log(string memory p0, string memory p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,address)", p0, p1, p2));
	}

	function log(string memory p0, bool p1, uint256 p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,uint256)", p0, p1, p2));
	}

	function log(string memory p0, bool p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,string)", p0, p1, p2));
	}

	function log(string memory p0, bool p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,bool)", p0, p1, p2));
	}

	function log(string memory p0, bool p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,address)", p0, p1, p2));
	}

	function log(string memory p0, address p1, uint256 p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,uint256)", p0, p1, p2));
	}

	function log(string memory p0, address p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,string)", p0, p1, p2));
	}

	function log(string memory p0, address p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,bool)", p0, p1, p2));
	}

	function log(string memory p0, address p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,address)", p0, p1, p2));
	}

	function log(bool p0, uint256 p1, uint256 p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint256,uint256)", p0, p1, p2));
	}

	function log(bool p0, uint256 p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint256,string)", p0, p1, p2));
	}

	function log(bool p0, uint256 p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint256,bool)", p0, p1, p2));
	}

	function log(bool p0, uint256 p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint256,address)", p0, p1, p2));
	}

	function log(bool p0, string memory p1, uint256 p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,uint256)", p0, p1, p2));
	}

	function log(bool p0, string memory p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,string)", p0, p1, p2));
	}

	function log(bool p0, string memory p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,bool)", p0, p1, p2));
	}

	function log(bool p0, string memory p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,address)", p0, p1, p2));
	}

	function log(bool p0, bool p1, uint256 p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint256)", p0, p1, p2));
	}

	function log(bool p0, bool p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,string)", p0, p1, p2));
	}

	function log(bool p0, bool p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool)", p0, p1, p2));
	}

	function log(bool p0, bool p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,address)", p0, p1, p2));
	}

	function log(bool p0, address p1, uint256 p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,uint256)", p0, p1, p2));
	}

	function log(bool p0, address p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,string)", p0, p1, p2));
	}

	function log(bool p0, address p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,bool)", p0, p1, p2));
	}

	function log(bool p0, address p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,address)", p0, p1, p2));
	}

	function log(address p0, uint256 p1, uint256 p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint256,uint256)", p0, p1, p2));
	}

	function log(address p0, uint256 p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint256,string)", p0, p1, p2));
	}

	function log(address p0, uint256 p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint256,bool)", p0, p1, p2));
	}

	function log(address p0, uint256 p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint256,address)", p0, p1, p2));
	}

	function log(address p0, string memory p1, uint256 p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,uint256)", p0, p1, p2));
	}

	function log(address p0, string memory p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,string)", p0, p1, p2));
	}

	function log(address p0, string memory p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,bool)", p0, p1, p2));
	}

	function log(address p0, string memory p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,address)", p0, p1, p2));
	}

	function log(address p0, bool p1, uint256 p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,uint256)", p0, p1, p2));
	}

	function log(address p0, bool p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,string)", p0, p1, p2));
	}

	function log(address p0, bool p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,bool)", p0, p1, p2));
	}

	function log(address p0, bool p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,address)", p0, p1, p2));
	}

	function log(address p0, address p1, uint256 p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,uint256)", p0, p1, p2));
	}

	function log(address p0, address p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,string)", p0, p1, p2));
	}

	function log(address p0, address p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,bool)", p0, p1, p2));
	}

	function log(address p0, address p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,address)", p0, p1, p2));
	}

	function log(uint256 p0, uint256 p1, uint256 p2, uint256 p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,uint256,uint256)", p0, p1, p2, p3));
	}

	function log(uint256 p0, uint256 p1, uint256 p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,uint256,string)", p0, p1, p2, p3));
	}

	function log(uint256 p0, uint256 p1, uint256 p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,uint256,bool)", p0, p1, p2, p3));
	}

	function log(uint256 p0, uint256 p1, uint256 p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,uint256,address)", p0, p1, p2, p3));
	}

	function log(uint256 p0, uint256 p1, string memory p2, uint256 p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,string,uint256)", p0, p1, p2, p3));
	}

	function log(uint256 p0, uint256 p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,string,string)", p0, p1, p2, p3));
	}

	function log(uint256 p0, uint256 p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,string,bool)", p0, p1, p2, p3));
	}

	function log(uint256 p0, uint256 p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,string,address)", p0, p1, p2, p3));
	}

	function log(uint256 p0, uint256 p1, bool p2, uint256 p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,bool,uint256)", p0, p1, p2, p3));
	}

	function log(uint256 p0, uint256 p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,bool,string)", p0, p1, p2, p3));
	}

	function log(uint256 p0, uint256 p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,bool,bool)", p0, p1, p2, p3));
	}

	function log(uint256 p0, uint256 p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,bool,address)", p0, p1, p2, p3));
	}

	function log(uint256 p0, uint256 p1, address p2, uint256 p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,address,uint256)", p0, p1, p2, p3));
	}

	function log(uint256 p0, uint256 p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,address,string)", p0, p1, p2, p3));
	}

	function log(uint256 p0, uint256 p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,address,bool)", p0, p1, p2, p3));
	}

	function log(uint256 p0, uint256 p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,address,address)", p0, p1, p2, p3));
	}

	function log(uint256 p0, string memory p1, uint256 p2, uint256 p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint256,string,uint256,uint256)", p0, p1, p2, p3));
	}

	function log(uint256 p0, string memory p1, uint256 p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint256,string,uint256,string)", p0, p1, p2, p3));
	}

	function log(uint256 p0, string memory p1, uint256 p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint256,string,uint256,bool)", p0, p1, p2, p3));
	}

	function log(uint256 p0, string memory p1, uint256 p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint256,string,uint256,address)", p0, p1, p2, p3));
	}

	function log(uint256 p0, string memory p1, string memory p2, uint256 p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint256,string,string,uint256)", p0, p1, p2, p3));
	}

	function log(uint256 p0, string memory p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint256,string,string,string)", p0, p1, p2, p3));
	}

	function log(uint256 p0, string memory p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint256,string,string,bool)", p0, p1, p2, p3));
	}

	function log(uint256 p0, string memory p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint256,string,string,address)", p0, p1, p2, p3));
	}

	function log(uint256 p0, string memory p1, bool p2, uint256 p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint256,string,bool,uint256)", p0, p1, p2, p3));
	}

	function log(uint256 p0, string memory p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint256,string,bool,string)", p0, p1, p2, p3));
	}

	function log(uint256 p0, string memory p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint256,string,bool,bool)", p0, p1, p2, p3));
	}

	function log(uint256 p0, string memory p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint256,string,bool,address)", p0, p1, p2, p3));
	}

	function log(uint256 p0, string memory p1, address p2, uint256 p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint256,string,address,uint256)", p0, p1, p2, p3));
	}

	function log(uint256 p0, string memory p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint256,string,address,string)", p0, p1, p2, p3));
	}

	function log(uint256 p0, string memory p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint256,string,address,bool)", p0, p1, p2, p3));
	}

	function log(uint256 p0, string memory p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint256,string,address,address)", p0, p1, p2, p3));
	}

	function log(uint256 p0, bool p1, uint256 p2, uint256 p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint256,bool,uint256,uint256)", p0, p1, p2, p3));
	}

	function log(uint256 p0, bool p1, uint256 p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint256,bool,uint256,string)", p0, p1, p2, p3));
	}

	function log(uint256 p0, bool p1, uint256 p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint256,bool,uint256,bool)", p0, p1, p2, p3));
	}

	function log(uint256 p0, bool p1, uint256 p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint256,bool,uint256,address)", p0, p1, p2, p3));
	}

	function log(uint256 p0, bool p1, string memory p2, uint256 p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint256,bool,string,uint256)", p0, p1, p2, p3));
	}

	function log(uint256 p0, bool p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint256,bool,string,string)", p0, p1, p2, p3));
	}

	function log(uint256 p0, bool p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint256,bool,string,bool)", p0, p1, p2, p3));
	}

	function log(uint256 p0, bool p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint256,bool,string,address)", p0, p1, p2, p3));
	}

	function log(uint256 p0, bool p1, bool p2, uint256 p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint256,bool,bool,uint256)", p0, p1, p2, p3));
	}

	function log(uint256 p0, bool p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint256,bool,bool,string)", p0, p1, p2, p3));
	}

	function log(uint256 p0, bool p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint256,bool,bool,bool)", p0, p1, p2, p3));
	}

	function log(uint256 p0, bool p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint256,bool,bool,address)", p0, p1, p2, p3));
	}

	function log(uint256 p0, bool p1, address p2, uint256 p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint256,bool,address,uint256)", p0, p1, p2, p3));
	}

	function log(uint256 p0, bool p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint256,bool,address,string)", p0, p1, p2, p3));
	}

	function log(uint256 p0, bool p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint256,bool,address,bool)", p0, p1, p2, p3));
	}

	function log(uint256 p0, bool p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint256,bool,address,address)", p0, p1, p2, p3));
	}

	function log(uint256 p0, address p1, uint256 p2, uint256 p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint256,address,uint256,uint256)", p0, p1, p2, p3));
	}

	function log(uint256 p0, address p1, uint256 p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint256,address,uint256,string)", p0, p1, p2, p3));
	}

	function log(uint256 p0, address p1, uint256 p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint256,address,uint256,bool)", p0, p1, p2, p3));
	}

	function log(uint256 p0, address p1, uint256 p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint256,address,uint256,address)", p0, p1, p2, p3));
	}

	function log(uint256 p0, address p1, string memory p2, uint256 p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint256,address,string,uint256)", p0, p1, p2, p3));
	}

	function log(uint256 p0, address p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint256,address,string,string)", p0, p1, p2, p3));
	}

	function log(uint256 p0, address p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint256,address,string,bool)", p0, p1, p2, p3));
	}

	function log(uint256 p0, address p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint256,address,string,address)", p0, p1, p2, p3));
	}

	function log(uint256 p0, address p1, bool p2, uint256 p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint256,address,bool,uint256)", p0, p1, p2, p3));
	}

	function log(uint256 p0, address p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint256,address,bool,string)", p0, p1, p2, p3));
	}

	function log(uint256 p0, address p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint256,address,bool,bool)", p0, p1, p2, p3));
	}

	function log(uint256 p0, address p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint256,address,bool,address)", p0, p1, p2, p3));
	}

	function log(uint256 p0, address p1, address p2, uint256 p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint256,address,address,uint256)", p0, p1, p2, p3));
	}

	function log(uint256 p0, address p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint256,address,address,string)", p0, p1, p2, p3));
	}

	function log(uint256 p0, address p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint256,address,address,bool)", p0, p1, p2, p3));
	}

	function log(uint256 p0, address p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint256,address,address,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint256 p1, uint256 p2, uint256 p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint256,uint256,uint256)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint256 p1, uint256 p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint256,uint256,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint256 p1, uint256 p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint256,uint256,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint256 p1, uint256 p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint256,uint256,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint256 p1, string memory p2, uint256 p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint256,string,uint256)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint256 p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint256,string,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint256 p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint256,string,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint256 p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint256,string,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint256 p1, bool p2, uint256 p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint256,bool,uint256)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint256 p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint256,bool,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint256 p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint256,bool,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint256 p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint256,bool,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint256 p1, address p2, uint256 p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint256,address,uint256)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint256 p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint256,address,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint256 p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint256,address,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint256 p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint256,address,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, uint256 p2, uint256 p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,uint256,uint256)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, uint256 p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,uint256,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, uint256 p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,uint256,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, uint256 p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,uint256,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, string memory p2, uint256 p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,string,uint256)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,string,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,string,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,string,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, bool p2, uint256 p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,bool,uint256)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,bool,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,bool,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,bool,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, address p2, uint256 p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,address,uint256)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,address,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,address,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,address,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, uint256 p2, uint256 p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,uint256,uint256)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, uint256 p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,uint256,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, uint256 p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,uint256,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, uint256 p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,uint256,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, string memory p2, uint256 p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,string,uint256)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,string,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,string,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,string,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, bool p2, uint256 p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,bool,uint256)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,bool,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,bool,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,bool,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, address p2, uint256 p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,address,uint256)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,address,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,address,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,address,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, uint256 p2, uint256 p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,uint256,uint256)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, uint256 p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,uint256,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, uint256 p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,uint256,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, uint256 p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,uint256,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, string memory p2, uint256 p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,string,uint256)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,string,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,string,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,string,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, bool p2, uint256 p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,bool,uint256)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,bool,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,bool,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,bool,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, address p2, uint256 p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,address,uint256)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,address,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,address,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,address,address)", p0, p1, p2, p3));
	}

	function log(bool p0, uint256 p1, uint256 p2, uint256 p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint256,uint256,uint256)", p0, p1, p2, p3));
	}

	function log(bool p0, uint256 p1, uint256 p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint256,uint256,string)", p0, p1, p2, p3));
	}

	function log(bool p0, uint256 p1, uint256 p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint256,uint256,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, uint256 p1, uint256 p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint256,uint256,address)", p0, p1, p2, p3));
	}

	function log(bool p0, uint256 p1, string memory p2, uint256 p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint256,string,uint256)", p0, p1, p2, p3));
	}

	function log(bool p0, uint256 p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint256,string,string)", p0, p1, p2, p3));
	}

	function log(bool p0, uint256 p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint256,string,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, uint256 p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint256,string,address)", p0, p1, p2, p3));
	}

	function log(bool p0, uint256 p1, bool p2, uint256 p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint256,bool,uint256)", p0, p1, p2, p3));
	}

	function log(bool p0, uint256 p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint256,bool,string)", p0, p1, p2, p3));
	}

	function log(bool p0, uint256 p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint256,bool,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, uint256 p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint256,bool,address)", p0, p1, p2, p3));
	}

	function log(bool p0, uint256 p1, address p2, uint256 p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint256,address,uint256)", p0, p1, p2, p3));
	}

	function log(bool p0, uint256 p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint256,address,string)", p0, p1, p2, p3));
	}

	function log(bool p0, uint256 p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint256,address,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, uint256 p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint256,address,address)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, uint256 p2, uint256 p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,uint256,uint256)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, uint256 p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,uint256,string)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, uint256 p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,uint256,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, uint256 p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,uint256,address)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, string memory p2, uint256 p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,string,uint256)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,string,string)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,string,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,string,address)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, bool p2, uint256 p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,bool,uint256)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,bool,string)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,bool,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,bool,address)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, address p2, uint256 p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,address,uint256)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,address,string)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,address,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,address,address)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, uint256 p2, uint256 p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint256,uint256)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, uint256 p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint256,string)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, uint256 p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint256,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, uint256 p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint256,address)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, string memory p2, uint256 p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,string,uint256)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,string,string)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,string,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,string,address)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, bool p2, uint256 p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool,uint256)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool,string)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool,address)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, address p2, uint256 p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,address,uint256)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,address,string)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,address,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,address,address)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, uint256 p2, uint256 p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,uint256,uint256)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, uint256 p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,uint256,string)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, uint256 p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,uint256,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, uint256 p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,uint256,address)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, string memory p2, uint256 p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,string,uint256)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,string,string)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,string,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,string,address)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, bool p2, uint256 p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,bool,uint256)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,bool,string)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,bool,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,bool,address)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, address p2, uint256 p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,address,uint256)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,address,string)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,address,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,address,address)", p0, p1, p2, p3));
	}

	function log(address p0, uint256 p1, uint256 p2, uint256 p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint256,uint256,uint256)", p0, p1, p2, p3));
	}

	function log(address p0, uint256 p1, uint256 p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint256,uint256,string)", p0, p1, p2, p3));
	}

	function log(address p0, uint256 p1, uint256 p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint256,uint256,bool)", p0, p1, p2, p3));
	}

	function log(address p0, uint256 p1, uint256 p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint256,uint256,address)", p0, p1, p2, p3));
	}

	function log(address p0, uint256 p1, string memory p2, uint256 p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint256,string,uint256)", p0, p1, p2, p3));
	}

	function log(address p0, uint256 p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint256,string,string)", p0, p1, p2, p3));
	}

	function log(address p0, uint256 p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint256,string,bool)", p0, p1, p2, p3));
	}

	function log(address p0, uint256 p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint256,string,address)", p0, p1, p2, p3));
	}

	function log(address p0, uint256 p1, bool p2, uint256 p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint256,bool,uint256)", p0, p1, p2, p3));
	}

	function log(address p0, uint256 p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint256,bool,string)", p0, p1, p2, p3));
	}

	function log(address p0, uint256 p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint256,bool,bool)", p0, p1, p2, p3));
	}

	function log(address p0, uint256 p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint256,bool,address)", p0, p1, p2, p3));
	}

	function log(address p0, uint256 p1, address p2, uint256 p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint256,address,uint256)", p0, p1, p2, p3));
	}

	function log(address p0, uint256 p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint256,address,string)", p0, p1, p2, p3));
	}

	function log(address p0, uint256 p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint256,address,bool)", p0, p1, p2, p3));
	}

	function log(address p0, uint256 p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint256,address,address)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, uint256 p2, uint256 p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,uint256,uint256)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, uint256 p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,uint256,string)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, uint256 p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,uint256,bool)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, uint256 p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,uint256,address)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, string memory p2, uint256 p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,string,uint256)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,string,string)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,string,bool)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,string,address)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, bool p2, uint256 p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,bool,uint256)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,bool,string)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,bool,bool)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,bool,address)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, address p2, uint256 p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,address,uint256)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,address,string)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,address,bool)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,address,address)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, uint256 p2, uint256 p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,uint256,uint256)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, uint256 p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,uint256,string)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, uint256 p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,uint256,bool)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, uint256 p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,uint256,address)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, string memory p2, uint256 p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,string,uint256)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,string,string)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,string,bool)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,string,address)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, bool p2, uint256 p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,bool,uint256)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,bool,string)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,bool,bool)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,bool,address)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, address p2, uint256 p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,address,uint256)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,address,string)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,address,bool)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,address,address)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, uint256 p2, uint256 p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,uint256,uint256)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, uint256 p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,uint256,string)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, uint256 p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,uint256,bool)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, uint256 p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,uint256,address)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, string memory p2, uint256 p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,string,uint256)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,string,string)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,string,bool)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,string,address)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, bool p2, uint256 p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,bool,uint256)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,bool,string)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,bool,bool)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,bool,address)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, address p2, uint256 p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,address,uint256)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,address,string)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,address,bool)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,address,address)", p0, p1, p2, p3));
	}

}

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

Contract ABI

[{"inputs":[{"internalType":"address","name":"adapter","type":"address"},{"internalType":"address","name":"treasure","type":"address"},{"internalType":"uint256","name":"delta","type":"uint256"},{"internalType":"address","name":"implementation","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"bytes","name":"error","type":"bytes"}],"name":"SwapDexError","type":"error"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bytes","name":"sign","type":"bytes"},{"indexed":false,"internalType":"bytes","name":"error","type":"bytes"}],"name":"DCAError","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bytes","name":"sign","type":"bytes"},{"indexed":false,"internalType":"bytes","name":"error","type":"bytes"}],"name":"InitOrderDCAError","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bytes","name":"sign1","type":"bytes"},{"indexed":false,"internalType":"bytes","name":"error","type":"bytes"}],"name":"LimitOrderDEXError","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bytes","name":"sign1","type":"bytes"},{"indexed":false,"internalType":"bytes","name":"sign2","type":"bytes"},{"indexed":false,"internalType":"bytes","name":"error","type":"bytes"}],"name":"LimitOrderP2PError","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bytes","name":"sign","type":"bytes"}],"name":"RemoveLimitOrderP2P","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"enum Storage.TypeFee","name":"TypeFee","type":"uint8"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"},{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"SetFee","type":"event"},{"inputs":[],"name":"ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DCA","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DCA_TM","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DOMAIN_SEPARATOR","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"INIT_TIME_MULTIPLIER","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"LIMIT_ORDER_P2P","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ORDER","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ORDER_DCA","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SIGNER_DATA","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SWAP_DEX","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SWAP_DEX_ETH","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TIME_MULTIPLIER","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_implementation","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes[]","name":"sign","type":"bytes[]"}],"name":"dca","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes[]","name":"sign","type":"bytes[]"}],"name":"dcaTM","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"feeDCA","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feeDEX","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feeLMDEX","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feeLMP2P","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountOut","type":"uint256"},{"internalType":"address[]","name":"path","type":"address[]"}],"name":"getAmountsIn","outputs":[{"internalType":"uint256[]","name":"amountsIn","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"path","type":"address[]"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"getAmountsOut","outputs":[{"internalType":"uint256[]","name":"amountsOut","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"sign","type":"bytes"}],"name":"getOrder","outputs":[{"components":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"baseCurrency","type":"address"},{"internalType":"uint96","name":"deadline","type":"uint96"},{"internalType":"address","name":"quoteCurrency","type":"address"},{"internalType":"uint96","name":"price","type":"uint96"},{"internalType":"uint256","name":"amount","type":"uint256"}],"internalType":"struct Storage.SignerData","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"sign","type":"bytes"}],"name":"getOrderDCA","outputs":[{"components":[{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint128","name":"volume","type":"uint128"},{"internalType":"uint64","name":"levels","type":"uint64"},{"internalType":"uint64","name":"period","type":"uint64"},{"internalType":"uint96","name":"slippage","type":"uint96"},{"internalType":"address","name":"baseCurrency","type":"address"},{"internalType":"uint96","name":"scale","type":"uint96"},{"internalType":"address","name":"quoteCurrency","type":"address"},{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"nonce","type":"uint256"}],"internalType":"struct Storage.OrderDCA","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"sign","type":"bytes"}],"name":"getProcessingDCA","outputs":[{"components":[{"internalType":"uint256","name":"lastLevel","type":"uint256"},{"internalType":"uint256","name":"scaleAmount","type":"uint256"},{"internalType":"uint256","name":"done","type":"uint256"},{"internalType":"uint256","name":"doneTM","type":"uint256"}],"internalType":"struct Storage.ProcessingDCA","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"sign","type":"bytes"}],"name":"getTimeMultiplier","outputs":[{"components":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"interval","type":"uint256"}],"internalType":"struct Storage.TimeMultiplier","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"bytes","name":"sign","type":"bytes"},{"components":[{"components":[{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint128","name":"volume","type":"uint128"},{"internalType":"uint64","name":"levels","type":"uint64"},{"internalType":"uint64","name":"period","type":"uint64"},{"internalType":"uint96","name":"slippage","type":"uint96"},{"internalType":"address","name":"baseCurrency","type":"address"},{"internalType":"uint96","name":"scale","type":"uint96"},{"internalType":"address","name":"quoteCurrency","type":"address"},{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"nonce","type":"uint256"}],"internalType":"struct Storage.OrderDCA","name":"dca","type":"tuple"},{"components":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"interval","type":"uint256"}],"internalType":"struct Storage.TimeMultiplier","name":"tm","type":"tuple"}],"internalType":"struct Storage.Order","name":"order","type":"tuple"}],"internalType":"struct ParalaxExchangeProxy.InitOrderDCA[]","name":"dataInitOrderDCA","type":"tuple[]"}],"name":"initOrderDCA","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"bytes","name":"sign","type":"bytes"},{"components":[{"components":[{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint128","name":"volume","type":"uint128"},{"internalType":"uint64","name":"levels","type":"uint64"},{"internalType":"uint64","name":"period","type":"uint64"},{"internalType":"uint96","name":"slippage","type":"uint96"},{"internalType":"address","name":"baseCurrency","type":"address"},{"internalType":"uint96","name":"scale","type":"uint96"},{"internalType":"address","name":"quoteCurrency","type":"address"},{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"nonce","type":"uint256"}],"internalType":"struct Storage.OrderDCA","name":"dca","type":"tuple"},{"components":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"interval","type":"uint256"}],"internalType":"struct Storage.TimeMultiplier","name":"tm","type":"tuple"}],"internalType":"struct Storage.Order","name":"order","type":"tuple"}],"internalType":"struct ParalaxExchangeProxy.InitOrderDCA[]","name":"dataInitOrderDCA","type":"tuple[]"}],"name":"initTimeMultiplier","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"bytes","name":"sign","type":"bytes"},{"components":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"baseCurrency","type":"address"},{"internalType":"uint96","name":"deadline","type":"uint96"},{"internalType":"address","name":"quoteCurrency","type":"address"},{"internalType":"uint96","name":"price","type":"uint96"},{"internalType":"uint256","name":"amount","type":"uint256"}],"internalType":"struct Storage.SignerData","name":"signerData","type":"tuple"},{"internalType":"address[]","name":"path","type":"address[]"}],"internalType":"struct ParalaxExchangeProxy.LimitOrderDEX[]","name":"limitOrdersDEX","type":"tuple[]"}],"name":"limitOrderDEX","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"bytes","name":"sign1","type":"bytes"},{"internalType":"bytes","name":"sign2","type":"bytes"},{"components":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"baseCurrency","type":"address"},{"internalType":"uint96","name":"deadline","type":"uint96"},{"internalType":"address","name":"quoteCurrency","type":"address"},{"internalType":"uint96","name":"price","type":"uint96"},{"internalType":"uint256","name":"amount","type":"uint256"}],"internalType":"struct Storage.SignerData","name":"signerData1","type":"tuple"},{"components":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"baseCurrency","type":"address"},{"internalType":"uint96","name":"deadline","type":"uint96"},{"internalType":"address","name":"quoteCurrency","type":"address"},{"internalType":"uint96","name":"price","type":"uint96"},{"internalType":"uint256","name":"amount","type":"uint256"}],"internalType":"struct Storage.SignerData","name":"signerData2","type":"tuple"}],"internalType":"struct ParalaxExchangeProxy.OrderLMP2P[]","name":"orders","type":"tuple[]"}],"name":"limitOrderP2P","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes","name":"sign","type":"bytes"}],"name":"removeLimitOrderP2P","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"fee","type":"uint256"}],"name":"setFeeDCA","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"fee","type":"uint256"}],"name":"setFeeDEX","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"fee","type":"uint256"}],"name":"setFeeLMDEX","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"fee","type":"uint256"}],"name":"setFeeLMP2P","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountIn","type":"uint256"},{"internalType":"uint256","name":"amountOutMin","type":"uint256"},{"internalType":"address[]","name":"path","type":"address[]"}],"name":"swapDex","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountIn","type":"uint256"},{"internalType":"uint256","name":"amountOutMin","type":"uint256"},{"internalType":"address[]","name":"path","type":"address[]"}],"name":"swapDexETH","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"test","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]

60806040523480156200001157600080fd5b506040516200313738038062003137833981016040819052620000349162000229565b6200008b6040518060400160405280600f81526020016e506172616c617845786368616e676560881b815250604051806040016040528060018152602001603160f81b8152506200010d60201b620019591760201c565b6200009860003362000183565b620000c47fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c217753362000183565b600280546001600160a01b039586166001600160a01b0319918216179091556003805494861694821694909417909355600491909155600580549190931691161790556200027d565b8151602080840191909120825183830120604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f9481019490945283019190915260608201524660808201523060a082015260c00160408051601f1981840301815291905280516020909101206000555050565b60008281526001602090815260408083206001600160a01b038516845290915290205460ff16620002085760008281526001602081815260408084206001600160a01b0386168086529252808420805460ff19169093179092559051339285917f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d9190a45b5050565b80516001600160a01b03811681146200022457600080fd5b919050565b600080600080608085870312156200024057600080fd5b6200024b856200020c565b93506200025b602086016200020c565b92506040850151915062000272606086016200020c565b905092959194509250565b612eaa806200028d6000396000f3fe608060405234801561001057600080fd5b50600436106102745760003560e01c80636883a3c111610151578063aaa3e9f2116100c3578063e5861a5e11610087578063e5861a5e14610638578063ec4f23891461065f578063f1b227f514610672578063f8a8fd6d14610685578063fdd2f2b01461068e578063ffdc8826146106b557600080fd5b8063aaa3e9f2146105f6578063b5b7845a14610609578063bc9b963b14610612578063d3443e4a1461051e578063d547741f1461062557600080fd5b80638e66dd42116101155780638e66dd4214610546578063916ca3d51461055957806391d148541461056c5780639fb58ef91461057f578063a217fddf146105c5578063a8bc9d4d146105cd57600080fd5b80636883a3c1146104c05780636f963db3146104eb578063723e85f91461050b578063735b58f21461051e57806375b238fc1461053157600080fd5b8063303f94f4116101ea57806351b11622116101ae57806351b11622146103e157806359679b0f146103f45780635a3e22e61461041f5780635ac9ac701461043257806360100886146104ae578063653dc869146104b757600080fd5b8063303f94f41461038e5780633644e5151461039657806336568abe1461039f5780633c398113146103b25780634d5e07fb146103ba57600080fd5b8063248a9ca31161023c578063248a9ca3146102fe5780632554b71b1461033057806326c162cf1461033957806329a9669e1461034c5780632bb3d41a146103545780632f2ff15d1461037b57600080fd5b806301ffc9a714610279578063099e7b66146102a15780630ff33867146102b657806311897c9a146102cb5780631f00ca74146102eb575b600080fd5b61028c610287366004611cb4565b6106d5565b60405190151581526020015b60405180910390f35b6102a961070c565b6040516102989190611d3a565b6102c96102c4366004611d4d565b610728565b005b6102de6102d9366004611e36565b610774565b6040516102989190611ed8565b6102de6102f9366004611f67565b6107f3565b61032261030c366004611d4d565b6000908152600160208190526040909120015490565b604051908152602001610298565b61032260075481565b6102c9610347366004611fb2565b610875565b6102a9610ac2565b6103227f16c4cb722701672f8f89d131ac66ee45f2ece1c7e3b7de919fd1147f09748b0881565b6102c9610389366004611ff3565b610ade565b6102a9610b04565b61032260005481565b6102c96103ad366004611ff3565b610b20565b6102a9610ba3565b6103227f1b6b9d326e91c07e38a6f0e33f655dbcc234ffee27b28971dd6f9fc01dc1887881565b6102c96103ef36600461201f565b610bbf565b600554610407906001600160a01b031681565b6040516001600160a01b039091168152602001610298565b6102c961042d3660046121f1565b610ca3565b61044561044036600461201f565b610e30565b6040516102989190600060c08201905060018060a01b0380845116835280602085015116602084015260408401516001600160601b03808216604086015282606087015116606086015280608087015116608086015250505060a083015160a083015292915050565b61032260085481565b61032260095481565b6102a96040518060400160405280600c81526020016b646361544d2862797465732960a01b81525081565b6104fe6104f936600461201f565b610eeb565b6040516102989190612417565b6102c9610519366004611fb2565b611008565b6102c961052c366004612426565b6111f3565b610322600080516020612d6b83398151915281565b6102c9610554366004611d4d565b6112f5565b6102c9610567366004611d4d565b611335565b61028c61057a366004611ff3565b611375565b61059261058d36600461201f565b6113a0565b60405161029891908151815260208083015190820152604080830151908201526060918201519181019190915260800190565b610322600081565b6102a96040518060400160405280600a8152602001696463612862797465732960b01b81525081565b6102c9610604366004611d4d565b611426565b61032260065481565b6102c9610620366004611fb2565b611466565b6102c9610633366004611ff3565b6115c8565b6103227f61c0c2f1d03e64280463b636261e3e1be5e0d3e4c2de7481c3f48f01471e980a81565b6102c961066d366004611fb2565b6115ee565b6102c9610680366004611fb2565b6117a5565b610322600a5481565b6103227f3a1b2bb6242652d4bbb312c3e422aa7a2fa20d3dc5a6bec7f53b9469f7afad5281565b6106c86106c336600461201f565b611905565b6040516102989190612478565b60006001600160e01b03198216637965db0b60e01b148061070657506301ffc9a760e01b6001600160e01b03198316145b92915050565b604051806060016040528060258152602001612cab6025913981565b600080516020612d6b833981519152610740816119cf565b6007829055604051600080516020612d4b83398151915290610768906001908590339061248f565b60405180910390a15050565b60025460405163d06ca61f60e01b81526060916001600160a01b03169063d06ca61f906107a790859087906004016124ce565b600060405180830381865afa1580156107c4573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526107ec9190810190612525565b9392505050565b6002546040516307c0329d60e21b81526060916001600160a01b031690631f00ca7490610828908790879087906004016125fc565b600060405180830381865afa158015610845573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261086d9190810190612525565b949350505050565b60005b81811015610abd576005546040805160a08101909152607a80825260009283926001600160a01b0390911691612dad60208301398686868181106108be576108be61261f565b90506020028101906108d09190612635565b6108da9080612656565b8888888181106108ec576108ec61261f565b90506020028101906108fe9190612635565b61090c906020810190612656565b8a8a8a81811061091e5761091e61261f565b90506020028101906109309190612635565b6040018b8b8b8181106109455761094561261f565b90506020028101906109579190612635565b610100016040516024016109709695949392919061273d565b60408051601f19818403018152908290529161098b91612785565b60408051918290039091206020830180516001600160e01b03166001600160e01b0319909216919091179052516109c29190612785565b600060405180830381855af49150503d80600081146109fd576040519150601f19603f3d011682016040523d82523d6000602084013e610a02565b606091505b509150915081610aa8577f02b97a1807452f27b19f59f9c22bf0a6dfaad25706543f4e9d4a4660890bd5e1858585818110610a3f57610a3f61261f565b9050602002810190610a519190612635565b610a5b9080612656565b878787818110610a6d57610a6d61261f565b9050602002810190610a7f9190612635565b610a8d906020810190612656565b85604051610a9f959493929190612797565b60405180910390a15b50508080610ab5906127f4565b915050610878565b505050565b604051806060016040528060228152602001612d8b6022913981565b60008281526001602081905260409091200154610afa816119cf565b610abd83836119dc565b6040518060a00160405280607a8152602001612dad607a913981565b6001600160a01b0381163314610b955760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b60648201526084015b60405180910390fd5b610b9f8282611a47565b5050565b6040518060a00160405280607b8152602001612cd0607b913981565b600b8282604051610bd192919061280f565b90815260405190819003602001902054336001600160a01b0390911614610c295760405162461bcd60e51b815260206004820152600c60248201526b20b1b1b2b9b99022b93937b960a11b6044820152606401610b8c565b6000600b8383604051610c3d92919061280f565b908152602001604051809103902060010160146101000a8154816001600160601b0302191690836001600160601b031602179055507f8763289cbb90e92e8f16d84e79fe6e994a5b47cf852f9ad41b7098bd39d8dadb828260405161076892919061281f565b60005b8151811015610b9f576005546040805160a08101909152607b80825260009283926001600160a01b0390911691612cd06020830139858581518110610ced57610ced61261f565b602002602001015160000151868681518110610d0b57610d0b61261f565b602002602001015160200151604051602401610d28929190612833565b60408051601f198184030181529082905291610d4391612785565b60408051918290039091206020830180516001600160e01b03166001600160e01b031990921691909117905251610d7a9190612785565b600060405180830381855af49150503d8060008114610db5576040519150601f19603f3d011682016040523d82523d6000602084013e610dba565b606091505b509150915081610e1b577f21d5a164150f1e5aa49457a231213242c8a52fcdac3d9e1b733ba68403d59749848481518110610df757610df761261f565b60200260200101516000015182604051610e12929190612876565b60405180910390a15b50508080610e28906127f4565b915050610ca6565b6040805160c081018252600080825260208201819052818301819052606082018190526080820181905260a08201529051600b90610e71908590859061280f565b90815260408051918290036020908101832060c08401835280546001600160a01b0390811685526001820154808216938601939093526001600160601b03600160a01b93849004811694860194909452600282015490811660608601529190910490911660808301526003015460a0820152905092915050565b6040805161014081018252600080825260208201819052818301819052606082018190526080820181905260a0820181905260c0820181905260e0820181905261010082018190526101208201529051600c90610f4b908590859061280f565b908152604080519182900360209081018320610140840183528054845260018101546001600160801b038116928501929092526001600160401b03600160801b8304811693850193909352600160c01b909104909116606083015260028101546001600160601b0380821660808501526001600160a01b03600160601b92839004811660a0860152600384015491821660c0860152919004811660e084015260048201541661010083015260050154610120820152905092915050565b60005b81811015610abd576005546040805160808101909152604e80825260009283926001600160a01b0390911691612e2760208301398686868181106110515761105161261f565b9050602002810190611063919061289b565b61106d9080612656565b88888881811061107f5761107f61261f565b9050602002810190611091919061289b565b6020018989898181106110a6576110a661261f565b90506020028101906110b8919061289b565b6110c69060e08101906128b1565b6040516024016110da9594939291906128fa565b60408051601f1981840301815290829052916110f591612785565b60408051918290039091206020830180516001600160e01b03166001600160e01b03199092169190911790525161112c9190612785565b600060405180830381855af49150503d8060008114611167576040519150601f19603f3d011682016040523d82523d6000602084013e61116c565b606091505b5091509150816111de577fa670357af7c122ccf6be664f496baa5412366e1408a771ac331a4782bebc09068585858181106111a9576111a961261f565b90506020028101906111bb919061289b565b6111c59080612656565b836040516111d593929190612931565b60405180910390a15b505080806111eb906127f4565b91505061100b565b6005546040805160608101909152602280825260009283926001600160a01b0390911691612d8b6020830139878787876040516024016112369493929190612961565b60408051601f19818403018152908290529161125191612785565b60408051918290039091206020830180516001600160e01b03166001600160e01b0319909216919091179052516112889190612785565b600060405180830381855af49150503d80600081146112c3576040519150601f19603f3d011682016040523d82523d6000602084013e6112c8565b606091505b5091509150816112ed578060405163122a941960e01b8152600401610b8c9190611d3a565b505050505050565b600080516020612d6b83398151915261130d816119cf565b6006829055604051600080516020612d4b83398151915290610768906000908590339061248f565b600080516020612d6b83398151915261134d816119cf565b6009829055604051600080516020612d4b83398151915290610768906003908590339061248f565b60009182526001602090815260408084206001600160a01b0393909316845291905290205460ff1690565b6113cb6040518060800160405280600081526020016000815260200160008152602001600081525090565b600e83836040516113dd92919061280f565b9081526020016040518091039020604051806080016040529081600082015481526020016001820154815260200160028201548152602001600382015481525050905092915050565b600080516020612d6b83398151915261143e816119cf565b6008829055604051600080516020612d4b83398151915290610768906002908590339061248f565b60005b81811015610abd57600554604080518082018252600c81526b646361544d2862797465732960a01b6020820152905160009283926001600160a01b03909116916114b99088908890602401612981565b60408051601f1981840301815290829052916114d491612785565b60408051918290039091206020830180516001600160e01b03166001600160e01b03199092169190911790525161150b9190612785565b600060405180830381855af49150503d8060008114611546576040519150601f19603f3d011682016040523d82523d6000602084013e61154b565b606091505b5091509150816115b3577f2f7f68701213106cc5a86a1606987a4596661f01b6cb2539d5fb1df8a157082f8585858181106115885761158861261f565b905060200281019061159a9190612656565b836040516115aa93929190612931565b60405180910390a15b505080806115c0906127f4565b915050611469565b600082815260016020819052604090912001546115e4816119cf565b610abd8383611a47565b60005b81811015610abd576005546040805160a08101909152607580825260009283926001600160a01b0390911691612c3660208301398686868181106116375761163761261f565b90506020028101906116499190612a1b565b6116539080612656565b8888888181106116655761166561261f565b90506020028101906116779190612a1b565b60200160405160240161168c93929190612a32565b60408051601f1981840301815290829052916116a791612785565b60408051918290039091206020830180516001600160e01b03166001600160e01b0319909216919091179052516116de9190612785565b600060405180830381855af49150503d8060008114611719576040519150601f19603f3d011682016040523d82523d6000602084013e61171e565b606091505b509150915081611790577f21d5a164150f1e5aa49457a231213242c8a52fcdac3d9e1b733ba68403d5974985858581811061175b5761175b61261f565b905060200281019061176d9190612a1b565b6117779080612656565b8360405161178793929190612931565b60405180910390a15b5050808061179d906127f4565b9150506115f1565b60005b81811015610abd57600554604080518082018252600a8152696463612862797465732960b01b6020820152905160009283926001600160a01b03909116916117f69088908890602401612981565b60408051601f19818403018152908290529161181191612785565b60408051918290039091206020830180516001600160e01b03166001600160e01b0319909216919091179052516118489190612785565b600060405180830381855af49150503d8060008114611883576040519150601f19603f3d011682016040523d82523d6000602084013e611888565b606091505b5091509150816118f0577f2f7f68701213106cc5a86a1606987a4596661f01b6cb2539d5fb1df8a157082f8585858181106118c5576118c561261f565b90506020028101906118d79190612656565b836040516118e793929190612931565b60405180910390a15b505080806118fd906127f4565b9150506117a8565b6040805180820190915260008082526020820152600d838360405161192b92919061280f565b9081526040805191829003602090810183208383019092528154835260019091015490820152905092915050565b8151602080840191909120825183830120604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f9481019490945283019190915260608201524660808201523060a082015260c00160408051601f1981840301815291905280516020909101206000555050565b6119d98133611aae565b50565b6119e68282611375565b610b9f5760008281526001602081815260408084206001600160a01b0386168086529252808420805460ff19169093179092559051339285917f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d9190a45050565b611a518282611375565b15610b9f5760008281526001602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b611ab88282611375565b610b9f57611ac581611b07565b611ad0836020611b19565b604051602001611ae1929190612b72565b60408051601f198184030181529082905262461bcd60e51b8252610b8c91600401611d3a565b60606107066001600160a01b03831660145b60606000611b28836002612be7565b611b33906002612c06565b6001600160401b03811115611b4a57611b4a611d66565b6040519080825280601f01601f191660200182016040528015611b74576020820181803683370190505b509050600360fc1b81600081518110611b8f57611b8f61261f565b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110611bbe57611bbe61261f565b60200101906001600160f81b031916908160001a9053506000611be2846002612be7565b611bed906001612c06565b90505b6001811115611c65576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110611c2157611c2161261f565b1a60f81b828281518110611c3757611c3761261f565b60200101906001600160f81b031916908160001a90535060049490941c93611c5e81612c1e565b9050611bf0565b5083156107ec5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610b8c565b600060208284031215611cc657600080fd5b81356001600160e01b0319811681146107ec57600080fd5b60005b83811015611cf9578181015183820152602001611ce1565b83811115611d08576000848401525b50505050565b60008151808452611d26816020860160208601611cde565b601f01601f19169290920160200192915050565b6020815260006107ec6020830184611d0e565b600060208284031215611d5f57600080fd5b5035919050565b634e487b7160e01b600052604160045260246000fd5b604080519081016001600160401b0381118282101715611d9e57611d9e611d66565b60405290565b60405161014081016001600160401b0381118282101715611d9e57611d9e611d66565b604051601f8201601f191681016001600160401b0381118282101715611def57611def611d66565b604052919050565b60006001600160401b03821115611e1057611e10611d66565b5060051b60200190565b80356001600160a01b0381168114611e3157600080fd5b919050565b60008060408385031215611e4957600080fd5b82356001600160401b03811115611e5f57600080fd5b8301601f81018513611e7057600080fd5b80356020611e85611e8083611df7565b611dc7565b82815260059290921b83018101918181019088841115611ea457600080fd5b938201935b83851015611ec957611eba85611e1a565b82529382019390820190611ea9565b98969091013596505050505050565b6020808252825182820181905260009190848201906040850190845b81811015611f1057835183529284019291840191600101611ef4565b50909695505050505050565b60008083601f840112611f2e57600080fd5b5081356001600160401b03811115611f4557600080fd5b6020830191508360208260051b8501011115611f6057600080fd5b9250929050565b600080600060408486031215611f7c57600080fd5b8335925060208401356001600160401b03811115611f9957600080fd5b611fa586828701611f1c565b9497909650939450505050565b60008060208385031215611fc557600080fd5b82356001600160401b03811115611fdb57600080fd5b611fe785828601611f1c565b90969095509350505050565b6000806040838503121561200657600080fd5b8235915061201660208401611e1a565b90509250929050565b6000806020838503121561203257600080fd5b82356001600160401b038082111561204957600080fd5b818501915085601f83011261205d57600080fd5b81358181111561206c57600080fd5b86602082850101111561207e57600080fd5b60209290920196919550909350505050565b80356001600160801b0381168114611e3157600080fd5b80356001600160401b0381168114611e3157600080fd5b80356001600160601b0381168114611e3157600080fd5b6000604082840312156120e757600080fd5b6120ef611d7c565b9050813581526020820135602082015292915050565b600081830361018081121561211957600080fd5b612121611d7c565b91506101408082121561213357600080fd5b61213b611da4565b91508335825261214d60208501612090565b602083015261215e604085016120a7565b604083015261216f606085016120a7565b6060830152612180608085016120be565b608083015261219160a08501611e1a565b60a08301526121a260c085016120be565b60c08301526121b360e08501611e1a565b60e08301526101006121c6818601611e1a565b9083015261012084810135908301528183526121e4858286016120d5565b6020840152505092915050565b6000602080838503121561220457600080fd5b82356001600160401b038082111561221b57600080fd5b818501915085601f83011261222f57600080fd5b813561223d611e8082611df7565b81815260059190911b8301840190848101908883111561225c57600080fd5b8585015b838110156123295780358581111561227757600080fd5b8601601f196101a0828d038201121561228f57600080fd5b612297611d7c565b89830135888111156122a857600080fd5b8301603f81018e136122b957600080fd5b8a810135898111156122cd576122cd611d66565b6122dd8c85601f84011601611dc7565b93508084528e60408284010111156122f457600080fd5b80604083018d86013760009084018c0152508181526123168d60408501612105565b818b015285525050918601918601612260565b5098975050505050505050565b80518252602081015161235460208401826001600160801b03169052565b50604081015161236f60408401826001600160401b03169052565b50606081015161238a60608401826001600160401b03169052565b5060808101516123a560808401826001600160601b03169052565b5060a08101516123c060a08401826001600160a01b03169052565b5060c08101516123db60c08401826001600160601b03169052565b5060e08101516123f660e08401826001600160a01b03169052565b50610100818101516001600160a01b03169083015261012090810151910152565b61014081016107068284612336565b6000806000806060858703121561243c57600080fd5b843593506020850135925060408501356001600160401b0381111561246057600080fd5b61246c87828801611f1c565b95989497509550505050565b815181526020808301519082015260408101610706565b60608101600485106124b157634e487b7160e01b600052602160045260246000fd5b93815260208101929092526001600160a01b031660409091015290565b6000604082018483526020604081850152818551808452606086019150828701935060005b818110156125185784516001600160a01b0316835293830193918301916001016124f3565b5090979650505050505050565b6000602080838503121561253857600080fd5b82516001600160401b0381111561254e57600080fd5b8301601f8101851361255f57600080fd5b805161256d611e8082611df7565b81815260059190911b8201830190838101908783111561258c57600080fd5b928401925b828410156125aa57835182529284019290840190612591565b979650505050505050565b8183526000602080850194508260005b858110156125f1576001600160a01b036125de83611e1a565b16875295820195908201906001016125c5565b509495945050505050565b8381526040602082015260006126166040830184866125b5565b95945050505050565b634e487b7160e01b600052603260045260246000fd5b600082356101be1983360301811261264c57600080fd5b9190910192915050565b6000808335601e1984360301811261266d57600080fd5b8301803591506001600160401b0382111561268757600080fd5b602001915036819003821315611f6057600080fd5b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b6001600160a01b03806126d783611e1a565b168352806126e760208401611e1a565b1660208401526126f9604083016120be565b6001600160601b0380821660408601528261271660608601611e1a565b16606086015280612729608086016120be565b16608086015250505060a090810135910152565b60006101c0808352612752818401898b61269c565b9050828103602084015261276781878961269c565b91505061277760408301856126c5565b6125aa6101008301846126c5565b6000825161264c818460208701611cde565b6060815260006127ab60608301878961269c565b82810360208401526127be81868861269c565b905082810360408401526127d28185611d0e565b98975050505050505050565b634e487b7160e01b600052601160045260246000fd5b6000600019821415612808576128086127de565b5060010190565b8183823760009101908152919050565b60208152600061086d60208301848661269c565b60006101a080835261284781840186611d0e565b915050612858602083018451612336565b60209283015180516101608401529092015161018090910152919050565b6040815260006128896040830185611d0e565b82810360208401526126168185611d0e565b6000823560fe1983360301811261264c57600080fd5b6000808335601e198436030181126128c857600080fd5b8301803591506001600160401b038211156128e257600080fd5b6020019150600581901b3603821315611f6057600080fd5b600061010080835261290f818401888a61269c565b905061291e60208401876126c5565b82810360e08401526127d28185876125b5565b60408152600061294560408301858761269c565b82810360208401526129578185611d0e565b9695505050505050565b8481528360208201526060604082015260006129576060830184866125b5565b60208082528181018390526000906040600585901b8401810190840186845b87811015612a0e57868403603f190183528135368a9003601e190181126129c657600080fd5b890180356001600160401b038111156129de57600080fd5b8036038b13156129ed57600080fd5b6129fa868289850161269c565b9550505091840191908401906001016129a0565b5091979650505050505050565b6000823561019e1983360301811261264c57600080fd5b60006101a0808352612a47818401868861269c565b91505082356020830152612a5d60208401612090565b6001600160801b038116604084015250612a79604084016120a7565b6001600160401b038116606084015250612a95606084016120a7565b6001600160401b038116608084015250612ab1608084016120be565b6001600160601b03811660a084015250612acd60a08401611e1a565b6001600160a01b03811660c084015250612ae960c084016120be565b6001600160601b03811660e084015250612b0560e08401611e1a565b610100612b1c818501836001600160a01b03169052565b612b27818601611e1a565b915050610120612b41818501836001600160a01b03169052565b6101409150808501358285015250612b69610160840182860180358252602090810135910152565b50949350505050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351612baa816017850160208801611cde565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351612bdb816028840160208801611cde565b01602801949350505050565b6000816000190483118215151615612c0157612c016127de565b500290565b60008219821115612c1957612c196127de565b500190565b600081612c2d57612c2d6127de565b50600019019056fe696e69744f726465724443412862797465732c282875696e743235362c75696e743132382c75696e7436342c75696e7436342c75696e7439362c616464726573732c75696e7439362c616464726573732c616464726573732c75696e74323536292c2875696e743235362c75696e74323536292929737761704465784554482875696e743235362c75696e743235362c616464726573735b5d29696e697454696d654d756c7469706c6965722862797465732c282875696e743235362c75696e743132382c75696e7436342c75696e7436342c75696e7439362c616464726573732c75696e7439362c616464726573732c616464726573732c75696e74323536292c2875696e743235362c75696e743235362929292c825dba7f3d6b949b49c860581b0c09525c4da0fb62dd6f8d3a5ebc395364e9a49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c21775737761704465782875696e743235362c75696e743235362c616464726573735b5d296c696d69744f726465725032502862797465732c62797465732c28616464726573732c616464726573732c75696e7439362c616464726573732c75696e7439362c75696e74323536292c28616464726573732c616464726573732c75696e7439362c616464726573732c75696e7439362c75696e7432353629296c696d69744f726465724445582862797465732c28616464726573732c616464726573732c75696e7439362c616464726573732c75696e7439362c75696e74323536292c616464726573735b5d29a26469706673582212206dce305555bb3c23ba497e3203b52ba877f4b106966c6d18d7926b525400c33c64736f6c634300080a0033000000000000000000000000a5e0829caced8ffdd4de3c43696c57f7d7a678ff0000000000000000000000001bf1311c383586e3591ee55ebf9d43ee1703d01500000000000000000000000000000000000000000000000000000000004c4b40000000000000000000000000b236c28ee7d0422075a3c5d9c0da517033f16bd8

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106102745760003560e01c80636883a3c111610151578063aaa3e9f2116100c3578063e5861a5e11610087578063e5861a5e14610638578063ec4f23891461065f578063f1b227f514610672578063f8a8fd6d14610685578063fdd2f2b01461068e578063ffdc8826146106b557600080fd5b8063aaa3e9f2146105f6578063b5b7845a14610609578063bc9b963b14610612578063d3443e4a1461051e578063d547741f1461062557600080fd5b80638e66dd42116101155780638e66dd4214610546578063916ca3d51461055957806391d148541461056c5780639fb58ef91461057f578063a217fddf146105c5578063a8bc9d4d146105cd57600080fd5b80636883a3c1146104c05780636f963db3146104eb578063723e85f91461050b578063735b58f21461051e57806375b238fc1461053157600080fd5b8063303f94f4116101ea57806351b11622116101ae57806351b11622146103e157806359679b0f146103f45780635a3e22e61461041f5780635ac9ac701461043257806360100886146104ae578063653dc869146104b757600080fd5b8063303f94f41461038e5780633644e5151461039657806336568abe1461039f5780633c398113146103b25780634d5e07fb146103ba57600080fd5b8063248a9ca31161023c578063248a9ca3146102fe5780632554b71b1461033057806326c162cf1461033957806329a9669e1461034c5780632bb3d41a146103545780632f2ff15d1461037b57600080fd5b806301ffc9a714610279578063099e7b66146102a15780630ff33867146102b657806311897c9a146102cb5780631f00ca74146102eb575b600080fd5b61028c610287366004611cb4565b6106d5565b60405190151581526020015b60405180910390f35b6102a961070c565b6040516102989190611d3a565b6102c96102c4366004611d4d565b610728565b005b6102de6102d9366004611e36565b610774565b6040516102989190611ed8565b6102de6102f9366004611f67565b6107f3565b61032261030c366004611d4d565b6000908152600160208190526040909120015490565b604051908152602001610298565b61032260075481565b6102c9610347366004611fb2565b610875565b6102a9610ac2565b6103227f16c4cb722701672f8f89d131ac66ee45f2ece1c7e3b7de919fd1147f09748b0881565b6102c9610389366004611ff3565b610ade565b6102a9610b04565b61032260005481565b6102c96103ad366004611ff3565b610b20565b6102a9610ba3565b6103227f1b6b9d326e91c07e38a6f0e33f655dbcc234ffee27b28971dd6f9fc01dc1887881565b6102c96103ef36600461201f565b610bbf565b600554610407906001600160a01b031681565b6040516001600160a01b039091168152602001610298565b6102c961042d3660046121f1565b610ca3565b61044561044036600461201f565b610e30565b6040516102989190600060c08201905060018060a01b0380845116835280602085015116602084015260408401516001600160601b03808216604086015282606087015116606086015280608087015116608086015250505060a083015160a083015292915050565b61032260085481565b61032260095481565b6102a96040518060400160405280600c81526020016b646361544d2862797465732960a01b81525081565b6104fe6104f936600461201f565b610eeb565b6040516102989190612417565b6102c9610519366004611fb2565b611008565b6102c961052c366004612426565b6111f3565b610322600080516020612d6b83398151915281565b6102c9610554366004611d4d565b6112f5565b6102c9610567366004611d4d565b611335565b61028c61057a366004611ff3565b611375565b61059261058d36600461201f565b6113a0565b60405161029891908151815260208083015190820152604080830151908201526060918201519181019190915260800190565b610322600081565b6102a96040518060400160405280600a8152602001696463612862797465732960b01b81525081565b6102c9610604366004611d4d565b611426565b61032260065481565b6102c9610620366004611fb2565b611466565b6102c9610633366004611ff3565b6115c8565b6103227f61c0c2f1d03e64280463b636261e3e1be5e0d3e4c2de7481c3f48f01471e980a81565b6102c961066d366004611fb2565b6115ee565b6102c9610680366004611fb2565b6117a5565b610322600a5481565b6103227f3a1b2bb6242652d4bbb312c3e422aa7a2fa20d3dc5a6bec7f53b9469f7afad5281565b6106c86106c336600461201f565b611905565b6040516102989190612478565b60006001600160e01b03198216637965db0b60e01b148061070657506301ffc9a760e01b6001600160e01b03198316145b92915050565b604051806060016040528060258152602001612cab6025913981565b600080516020612d6b833981519152610740816119cf565b6007829055604051600080516020612d4b83398151915290610768906001908590339061248f565b60405180910390a15050565b60025460405163d06ca61f60e01b81526060916001600160a01b03169063d06ca61f906107a790859087906004016124ce565b600060405180830381865afa1580156107c4573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526107ec9190810190612525565b9392505050565b6002546040516307c0329d60e21b81526060916001600160a01b031690631f00ca7490610828908790879087906004016125fc565b600060405180830381865afa158015610845573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261086d9190810190612525565b949350505050565b60005b81811015610abd576005546040805160a08101909152607a80825260009283926001600160a01b0390911691612dad60208301398686868181106108be576108be61261f565b90506020028101906108d09190612635565b6108da9080612656565b8888888181106108ec576108ec61261f565b90506020028101906108fe9190612635565b61090c906020810190612656565b8a8a8a81811061091e5761091e61261f565b90506020028101906109309190612635565b6040018b8b8b8181106109455761094561261f565b90506020028101906109579190612635565b610100016040516024016109709695949392919061273d565b60408051601f19818403018152908290529161098b91612785565b60408051918290039091206020830180516001600160e01b03166001600160e01b0319909216919091179052516109c29190612785565b600060405180830381855af49150503d80600081146109fd576040519150601f19603f3d011682016040523d82523d6000602084013e610a02565b606091505b509150915081610aa8577f02b97a1807452f27b19f59f9c22bf0a6dfaad25706543f4e9d4a4660890bd5e1858585818110610a3f57610a3f61261f565b9050602002810190610a519190612635565b610a5b9080612656565b878787818110610a6d57610a6d61261f565b9050602002810190610a7f9190612635565b610a8d906020810190612656565b85604051610a9f959493929190612797565b60405180910390a15b50508080610ab5906127f4565b915050610878565b505050565b604051806060016040528060228152602001612d8b6022913981565b60008281526001602081905260409091200154610afa816119cf565b610abd83836119dc565b6040518060a00160405280607a8152602001612dad607a913981565b6001600160a01b0381163314610b955760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b60648201526084015b60405180910390fd5b610b9f8282611a47565b5050565b6040518060a00160405280607b8152602001612cd0607b913981565b600b8282604051610bd192919061280f565b90815260405190819003602001902054336001600160a01b0390911614610c295760405162461bcd60e51b815260206004820152600c60248201526b20b1b1b2b9b99022b93937b960a11b6044820152606401610b8c565b6000600b8383604051610c3d92919061280f565b908152602001604051809103902060010160146101000a8154816001600160601b0302191690836001600160601b031602179055507f8763289cbb90e92e8f16d84e79fe6e994a5b47cf852f9ad41b7098bd39d8dadb828260405161076892919061281f565b60005b8151811015610b9f576005546040805160a08101909152607b80825260009283926001600160a01b0390911691612cd06020830139858581518110610ced57610ced61261f565b602002602001015160000151868681518110610d0b57610d0b61261f565b602002602001015160200151604051602401610d28929190612833565b60408051601f198184030181529082905291610d4391612785565b60408051918290039091206020830180516001600160e01b03166001600160e01b031990921691909117905251610d7a9190612785565b600060405180830381855af49150503d8060008114610db5576040519150601f19603f3d011682016040523d82523d6000602084013e610dba565b606091505b509150915081610e1b577f21d5a164150f1e5aa49457a231213242c8a52fcdac3d9e1b733ba68403d59749848481518110610df757610df761261f565b60200260200101516000015182604051610e12929190612876565b60405180910390a15b50508080610e28906127f4565b915050610ca6565b6040805160c081018252600080825260208201819052818301819052606082018190526080820181905260a08201529051600b90610e71908590859061280f565b90815260408051918290036020908101832060c08401835280546001600160a01b0390811685526001820154808216938601939093526001600160601b03600160a01b93849004811694860194909452600282015490811660608601529190910490911660808301526003015460a0820152905092915050565b6040805161014081018252600080825260208201819052818301819052606082018190526080820181905260a0820181905260c0820181905260e0820181905261010082018190526101208201529051600c90610f4b908590859061280f565b908152604080519182900360209081018320610140840183528054845260018101546001600160801b038116928501929092526001600160401b03600160801b8304811693850193909352600160c01b909104909116606083015260028101546001600160601b0380821660808501526001600160a01b03600160601b92839004811660a0860152600384015491821660c0860152919004811660e084015260048201541661010083015260050154610120820152905092915050565b60005b81811015610abd576005546040805160808101909152604e80825260009283926001600160a01b0390911691612e2760208301398686868181106110515761105161261f565b9050602002810190611063919061289b565b61106d9080612656565b88888881811061107f5761107f61261f565b9050602002810190611091919061289b565b6020018989898181106110a6576110a661261f565b90506020028101906110b8919061289b565b6110c69060e08101906128b1565b6040516024016110da9594939291906128fa565b60408051601f1981840301815290829052916110f591612785565b60408051918290039091206020830180516001600160e01b03166001600160e01b03199092169190911790525161112c9190612785565b600060405180830381855af49150503d8060008114611167576040519150601f19603f3d011682016040523d82523d6000602084013e61116c565b606091505b5091509150816111de577fa670357af7c122ccf6be664f496baa5412366e1408a771ac331a4782bebc09068585858181106111a9576111a961261f565b90506020028101906111bb919061289b565b6111c59080612656565b836040516111d593929190612931565b60405180910390a15b505080806111eb906127f4565b91505061100b565b6005546040805160608101909152602280825260009283926001600160a01b0390911691612d8b6020830139878787876040516024016112369493929190612961565b60408051601f19818403018152908290529161125191612785565b60408051918290039091206020830180516001600160e01b03166001600160e01b0319909216919091179052516112889190612785565b600060405180830381855af49150503d80600081146112c3576040519150601f19603f3d011682016040523d82523d6000602084013e6112c8565b606091505b5091509150816112ed578060405163122a941960e01b8152600401610b8c9190611d3a565b505050505050565b600080516020612d6b83398151915261130d816119cf565b6006829055604051600080516020612d4b83398151915290610768906000908590339061248f565b600080516020612d6b83398151915261134d816119cf565b6009829055604051600080516020612d4b83398151915290610768906003908590339061248f565b60009182526001602090815260408084206001600160a01b0393909316845291905290205460ff1690565b6113cb6040518060800160405280600081526020016000815260200160008152602001600081525090565b600e83836040516113dd92919061280f565b9081526020016040518091039020604051806080016040529081600082015481526020016001820154815260200160028201548152602001600382015481525050905092915050565b600080516020612d6b83398151915261143e816119cf565b6008829055604051600080516020612d4b83398151915290610768906002908590339061248f565b60005b81811015610abd57600554604080518082018252600c81526b646361544d2862797465732960a01b6020820152905160009283926001600160a01b03909116916114b99088908890602401612981565b60408051601f1981840301815290829052916114d491612785565b60408051918290039091206020830180516001600160e01b03166001600160e01b03199092169190911790525161150b9190612785565b600060405180830381855af49150503d8060008114611546576040519150601f19603f3d011682016040523d82523d6000602084013e61154b565b606091505b5091509150816115b3577f2f7f68701213106cc5a86a1606987a4596661f01b6cb2539d5fb1df8a157082f8585858181106115885761158861261f565b905060200281019061159a9190612656565b836040516115aa93929190612931565b60405180910390a15b505080806115c0906127f4565b915050611469565b600082815260016020819052604090912001546115e4816119cf565b610abd8383611a47565b60005b81811015610abd576005546040805160a08101909152607580825260009283926001600160a01b0390911691612c3660208301398686868181106116375761163761261f565b90506020028101906116499190612a1b565b6116539080612656565b8888888181106116655761166561261f565b90506020028101906116779190612a1b565b60200160405160240161168c93929190612a32565b60408051601f1981840301815290829052916116a791612785565b60408051918290039091206020830180516001600160e01b03166001600160e01b0319909216919091179052516116de9190612785565b600060405180830381855af49150503d8060008114611719576040519150601f19603f3d011682016040523d82523d6000602084013e61171e565b606091505b509150915081611790577f21d5a164150f1e5aa49457a231213242c8a52fcdac3d9e1b733ba68403d5974985858581811061175b5761175b61261f565b905060200281019061176d9190612a1b565b6117779080612656565b8360405161178793929190612931565b60405180910390a15b5050808061179d906127f4565b9150506115f1565b60005b81811015610abd57600554604080518082018252600a8152696463612862797465732960b01b6020820152905160009283926001600160a01b03909116916117f69088908890602401612981565b60408051601f19818403018152908290529161181191612785565b60408051918290039091206020830180516001600160e01b03166001600160e01b0319909216919091179052516118489190612785565b600060405180830381855af49150503d8060008114611883576040519150601f19603f3d011682016040523d82523d6000602084013e611888565b606091505b5091509150816118f0577f2f7f68701213106cc5a86a1606987a4596661f01b6cb2539d5fb1df8a157082f8585858181106118c5576118c561261f565b90506020028101906118d79190612656565b836040516118e793929190612931565b60405180910390a15b505080806118fd906127f4565b9150506117a8565b6040805180820190915260008082526020820152600d838360405161192b92919061280f565b9081526040805191829003602090810183208383019092528154835260019091015490820152905092915050565b8151602080840191909120825183830120604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f9481019490945283019190915260608201524660808201523060a082015260c00160408051601f1981840301815291905280516020909101206000555050565b6119d98133611aae565b50565b6119e68282611375565b610b9f5760008281526001602081815260408084206001600160a01b0386168086529252808420805460ff19169093179092559051339285917f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d9190a45050565b611a518282611375565b15610b9f5760008281526001602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b611ab88282611375565b610b9f57611ac581611b07565b611ad0836020611b19565b604051602001611ae1929190612b72565b60408051601f198184030181529082905262461bcd60e51b8252610b8c91600401611d3a565b60606107066001600160a01b03831660145b60606000611b28836002612be7565b611b33906002612c06565b6001600160401b03811115611b4a57611b4a611d66565b6040519080825280601f01601f191660200182016040528015611b74576020820181803683370190505b509050600360fc1b81600081518110611b8f57611b8f61261f565b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110611bbe57611bbe61261f565b60200101906001600160f81b031916908160001a9053506000611be2846002612be7565b611bed906001612c06565b90505b6001811115611c65576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110611c2157611c2161261f565b1a60f81b828281518110611c3757611c3761261f565b60200101906001600160f81b031916908160001a90535060049490941c93611c5e81612c1e565b9050611bf0565b5083156107ec5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610b8c565b600060208284031215611cc657600080fd5b81356001600160e01b0319811681146107ec57600080fd5b60005b83811015611cf9578181015183820152602001611ce1565b83811115611d08576000848401525b50505050565b60008151808452611d26816020860160208601611cde565b601f01601f19169290920160200192915050565b6020815260006107ec6020830184611d0e565b600060208284031215611d5f57600080fd5b5035919050565b634e487b7160e01b600052604160045260246000fd5b604080519081016001600160401b0381118282101715611d9e57611d9e611d66565b60405290565b60405161014081016001600160401b0381118282101715611d9e57611d9e611d66565b604051601f8201601f191681016001600160401b0381118282101715611def57611def611d66565b604052919050565b60006001600160401b03821115611e1057611e10611d66565b5060051b60200190565b80356001600160a01b0381168114611e3157600080fd5b919050565b60008060408385031215611e4957600080fd5b82356001600160401b03811115611e5f57600080fd5b8301601f81018513611e7057600080fd5b80356020611e85611e8083611df7565b611dc7565b82815260059290921b83018101918181019088841115611ea457600080fd5b938201935b83851015611ec957611eba85611e1a565b82529382019390820190611ea9565b98969091013596505050505050565b6020808252825182820181905260009190848201906040850190845b81811015611f1057835183529284019291840191600101611ef4565b50909695505050505050565b60008083601f840112611f2e57600080fd5b5081356001600160401b03811115611f4557600080fd5b6020830191508360208260051b8501011115611f6057600080fd5b9250929050565b600080600060408486031215611f7c57600080fd5b8335925060208401356001600160401b03811115611f9957600080fd5b611fa586828701611f1c565b9497909650939450505050565b60008060208385031215611fc557600080fd5b82356001600160401b03811115611fdb57600080fd5b611fe785828601611f1c565b90969095509350505050565b6000806040838503121561200657600080fd5b8235915061201660208401611e1a565b90509250929050565b6000806020838503121561203257600080fd5b82356001600160401b038082111561204957600080fd5b818501915085601f83011261205d57600080fd5b81358181111561206c57600080fd5b86602082850101111561207e57600080fd5b60209290920196919550909350505050565b80356001600160801b0381168114611e3157600080fd5b80356001600160401b0381168114611e3157600080fd5b80356001600160601b0381168114611e3157600080fd5b6000604082840312156120e757600080fd5b6120ef611d7c565b9050813581526020820135602082015292915050565b600081830361018081121561211957600080fd5b612121611d7c565b91506101408082121561213357600080fd5b61213b611da4565b91508335825261214d60208501612090565b602083015261215e604085016120a7565b604083015261216f606085016120a7565b6060830152612180608085016120be565b608083015261219160a08501611e1a565b60a08301526121a260c085016120be565b60c08301526121b360e08501611e1a565b60e08301526101006121c6818601611e1a565b9083015261012084810135908301528183526121e4858286016120d5565b6020840152505092915050565b6000602080838503121561220457600080fd5b82356001600160401b038082111561221b57600080fd5b818501915085601f83011261222f57600080fd5b813561223d611e8082611df7565b81815260059190911b8301840190848101908883111561225c57600080fd5b8585015b838110156123295780358581111561227757600080fd5b8601601f196101a0828d038201121561228f57600080fd5b612297611d7c565b89830135888111156122a857600080fd5b8301603f81018e136122b957600080fd5b8a810135898111156122cd576122cd611d66565b6122dd8c85601f84011601611dc7565b93508084528e60408284010111156122f457600080fd5b80604083018d86013760009084018c0152508181526123168d60408501612105565b818b015285525050918601918601612260565b5098975050505050505050565b80518252602081015161235460208401826001600160801b03169052565b50604081015161236f60408401826001600160401b03169052565b50606081015161238a60608401826001600160401b03169052565b5060808101516123a560808401826001600160601b03169052565b5060a08101516123c060a08401826001600160a01b03169052565b5060c08101516123db60c08401826001600160601b03169052565b5060e08101516123f660e08401826001600160a01b03169052565b50610100818101516001600160a01b03169083015261012090810151910152565b61014081016107068284612336565b6000806000806060858703121561243c57600080fd5b843593506020850135925060408501356001600160401b0381111561246057600080fd5b61246c87828801611f1c565b95989497509550505050565b815181526020808301519082015260408101610706565b60608101600485106124b157634e487b7160e01b600052602160045260246000fd5b93815260208101929092526001600160a01b031660409091015290565b6000604082018483526020604081850152818551808452606086019150828701935060005b818110156125185784516001600160a01b0316835293830193918301916001016124f3565b5090979650505050505050565b6000602080838503121561253857600080fd5b82516001600160401b0381111561254e57600080fd5b8301601f8101851361255f57600080fd5b805161256d611e8082611df7565b81815260059190911b8201830190838101908783111561258c57600080fd5b928401925b828410156125aa57835182529284019290840190612591565b979650505050505050565b8183526000602080850194508260005b858110156125f1576001600160a01b036125de83611e1a565b16875295820195908201906001016125c5565b509495945050505050565b8381526040602082015260006126166040830184866125b5565b95945050505050565b634e487b7160e01b600052603260045260246000fd5b600082356101be1983360301811261264c57600080fd5b9190910192915050565b6000808335601e1984360301811261266d57600080fd5b8301803591506001600160401b0382111561268757600080fd5b602001915036819003821315611f6057600080fd5b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b6001600160a01b03806126d783611e1a565b168352806126e760208401611e1a565b1660208401526126f9604083016120be565b6001600160601b0380821660408601528261271660608601611e1a565b16606086015280612729608086016120be565b16608086015250505060a090810135910152565b60006101c0808352612752818401898b61269c565b9050828103602084015261276781878961269c565b91505061277760408301856126c5565b6125aa6101008301846126c5565b6000825161264c818460208701611cde565b6060815260006127ab60608301878961269c565b82810360208401526127be81868861269c565b905082810360408401526127d28185611d0e565b98975050505050505050565b634e487b7160e01b600052601160045260246000fd5b6000600019821415612808576128086127de565b5060010190565b8183823760009101908152919050565b60208152600061086d60208301848661269c565b60006101a080835261284781840186611d0e565b915050612858602083018451612336565b60209283015180516101608401529092015161018090910152919050565b6040815260006128896040830185611d0e565b82810360208401526126168185611d0e565b6000823560fe1983360301811261264c57600080fd5b6000808335601e198436030181126128c857600080fd5b8301803591506001600160401b038211156128e257600080fd5b6020019150600581901b3603821315611f6057600080fd5b600061010080835261290f818401888a61269c565b905061291e60208401876126c5565b82810360e08401526127d28185876125b5565b60408152600061294560408301858761269c565b82810360208401526129578185611d0e565b9695505050505050565b8481528360208201526060604082015260006129576060830184866125b5565b60208082528181018390526000906040600585901b8401810190840186845b87811015612a0e57868403603f190183528135368a9003601e190181126129c657600080fd5b890180356001600160401b038111156129de57600080fd5b8036038b13156129ed57600080fd5b6129fa868289850161269c565b9550505091840191908401906001016129a0565b5091979650505050505050565b6000823561019e1983360301811261264c57600080fd5b60006101a0808352612a47818401868861269c565b91505082356020830152612a5d60208401612090565b6001600160801b038116604084015250612a79604084016120a7565b6001600160401b038116606084015250612a95606084016120a7565b6001600160401b038116608084015250612ab1608084016120be565b6001600160601b03811660a084015250612acd60a08401611e1a565b6001600160a01b03811660c084015250612ae960c084016120be565b6001600160601b03811660e084015250612b0560e08401611e1a565b610100612b1c818501836001600160a01b03169052565b612b27818601611e1a565b915050610120612b41818501836001600160a01b03169052565b6101409150808501358285015250612b69610160840182860180358252602090810135910152565b50949350505050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351612baa816017850160208801611cde565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351612bdb816028840160208801611cde565b01602801949350505050565b6000816000190483118215151615612c0157612c016127de565b500290565b60008219821115612c1957612c196127de565b500190565b600081612c2d57612c2d6127de565b50600019019056fe696e69744f726465724443412862797465732c282875696e743235362c75696e743132382c75696e7436342c75696e7436342c75696e7439362c616464726573732c75696e7439362c616464726573732c616464726573732c75696e74323536292c2875696e743235362c75696e74323536292929737761704465784554482875696e743235362c75696e743235362c616464726573735b5d29696e697454696d654d756c7469706c6965722862797465732c282875696e743235362c75696e743132382c75696e7436342c75696e7436342c75696e7439362c616464726573732c75696e7439362c616464726573732c616464726573732c75696e74323536292c2875696e743235362c75696e743235362929292c825dba7f3d6b949b49c860581b0c09525c4da0fb62dd6f8d3a5ebc395364e9a49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c21775737761704465782875696e743235362c75696e743235362c616464726573735b5d296c696d69744f726465725032502862797465732c62797465732c28616464726573732c616464726573732c75696e7439362c616464726573732c75696e7439362c75696e74323536292c28616464726573732c616464726573732c75696e7439362c616464726573732c75696e7439362c75696e7432353629296c696d69744f726465724445582862797465732c28616464726573732c616464726573732c75696e7439362c616464726573732c75696e7439362c75696e74323536292c616464726573735b5d29a26469706673582212206dce305555bb3c23ba497e3203b52ba877f4b106966c6d18d7926b525400c33c64736f6c634300080a0033

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

000000000000000000000000a5e0829caced8ffdd4de3c43696c57f7d7a678ff0000000000000000000000001bf1311c383586e3591ee55ebf9d43ee1703d01500000000000000000000000000000000000000000000000000000000004c4b40000000000000000000000000b236c28ee7d0422075a3c5d9c0da517033f16bd8

-----Decoded View---------------
Arg [0] : adapter (address): 0xa5E0829CaCEd8fFDD4De3c43696c57F7D7A678ff
Arg [1] : treasure (address): 0x1bF1311C383586e3591Ee55EbF9d43EE1703d015
Arg [2] : delta (uint256): 5000000
Arg [3] : implementation (address): 0xB236c28Ee7D0422075A3c5d9C0DA517033F16BD8

-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 000000000000000000000000a5e0829caced8ffdd4de3c43696c57f7d7a678ff
Arg [1] : 0000000000000000000000001bf1311c383586e3591ee55ebf9d43ee1703d015
Arg [2] : 00000000000000000000000000000000000000000000000000000000004c4b40
Arg [3] : 000000000000000000000000b236c28ee7d0422075a3c5d9c0da517033f16bd8


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

Txn Hash Block Value Eth2 PubKey Valid
View All Deposits
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.