ETH Price: $2,569.13 (+4.27%)
Gas: 0.17 GWei

Contract

0x2db0AFD0045F3518c77eC6591a542e326Befd3D7
Transaction Hash
Method
Block
From
To
0x4c688b5d86845102f49bb802279918b1f24224c7a7b0db16be9f8222c8507c9b -(pending)2024-10-11 0:42:573 days ago1728607377IN
0x2db0AFD0...26Befd3D7
0 ETH(Pending)(Pending)
0xa346dfd3ce7614d193ee690d0256f1afed59af1ab6f8094d7e24cff4cc318a94 -(pending)2024-10-11 0:42:573 days ago1728607377IN
0x2db0AFD0...26Befd3D7
0.0047 ETH(Pending)(Pending)
0xba418d4667773750001e6114603dc8027d1db7bef5f5c9fa045c9679f7b6779c -(pending)2024-10-11 0:42:573 days ago1728607377IN
0x2db0AFD0...26Befd3D7
0.003 ETH(Pending)(Pending)
0xd754f6446a4bca8e9a40f00532d66c807dc5746f23f06f38007a6dbbebecec87 -(pending)2024-10-11 0:42:573 days ago1728607377IN
0x2db0AFD0...26Befd3D7
0.005 ETH(Pending)(Pending)
0xdb4d948ec80227af680ec8efdbfa57ec8fabc8e39932d1291c946e07cb13a3c8 -(pending)2024-10-11 0:42:573 days ago1728607377IN
0x2db0AFD0...26Befd3D7
0.0021014 ETH(Pending)(Pending)
0x0800408a524c39543f562785d8f040d698cc939d59152a16df24edbf447a541b -(pending)2024-10-11 0:42:573 days ago1728607377IN
0x2db0AFD0...26Befd3D7
0.004 ETH(Pending)(Pending)
0x0e27f4185eaf6e7fecdb041078c2bd520b8f818ff5c509eb2ee4fcb76e5175b7 -(pending)2024-10-11 0:42:573 days ago1728607377IN
0x2db0AFD0...26Befd3D7
0.004 ETH(Pending)(Pending)
0x641c4fc018a04412a2ca924713a22ad4e5d164c9d329df2f2973e4f9b415074a -(pending)2024-10-11 0:42:573 days ago1728607377IN
0x2db0AFD0...26Befd3D7
0.007 ETH(Pending)(Pending)
0xd70b9c11fc52c8728ff51a5d338e040c242da1076dbbe4d3aa644bab42310409 -(pending)2024-10-11 0:42:573 days ago1728607377IN
0x2db0AFD0...26Befd3D7
0.00935 ETH(Pending)(Pending)
0x731936a6b715a1806c1afd37abcd8722b9e8c856e8b0f1368f545c5b58adebd0 -(pending)2024-10-11 0:42:573 days ago1728607377IN
0x2db0AFD0...26Befd3D7
0.0093 ETH(Pending)(Pending)
0xad56b3088cec07407440e18cbb3eea44269ae46890d814a52c6811bdb6bb741a -(pending)2024-10-11 0:42:573 days ago1728607377IN
0x2db0AFD0...26Befd3D7
0.0093 ETH(Pending)(Pending)
0xdf9ab2c4cef46251ae66749b9b83e0b98f60a3962be88444e850a55e7316fbdf -(pending)2024-10-11 0:42:573 days ago1728607377IN
0x2db0AFD0...26Befd3D7
0.0093 ETH(Pending)(Pending)
0x142966e24fd7986c3111af7abeb5e0af3c340d59cafd3781f7665411d9d3ed3a -(pending)2024-10-11 0:42:573 days ago1728607377IN
0x2db0AFD0...26Befd3D7
0.0093 ETH(Pending)(Pending)
0x2c28f864dca1912afcd39d83580d3f85f48866df121718bdf202d93644139aa9 -(pending)2024-10-11 0:42:573 days ago1728607377IN
0x2db0AFD0...26Befd3D7
0 ETH(Pending)(Pending)
0x23a939a6f9ec81b15dab5f216a5c10bac97ea38306f06cbadce0e9cca30b16f3 -(pending)2024-10-11 0:42:573 days ago1728607377IN
0x2db0AFD0...26Befd3D7
0.0065 ETH(Pending)(Pending)
0x6812c2cdcf41656aecff93aad74fa0e79c5ed365577b2f23825741e6b8f6389f -(pending)2024-10-11 0:42:573 days ago1728607377IN
0x2db0AFD0...26Befd3D7
0.0065 ETH(Pending)(Pending)
0x783f566634ad477258cb30ce23dd80baea8a0fbd891163ef9a6ca657776dffa1 -(pending)2024-10-11 0:42:573 days ago1728607377IN
0x2db0AFD0...26Befd3D7
0.00102 ETH(Pending)(Pending)
0xe66fdfb924df9155744d21c80c2c66eb946622818936f57b0a046d6cfa1c2a1f -(pending)2024-10-09 16:58:334 days ago1728493113IN
0x2db0AFD0...26Befd3D7
0.0002 ETH(Pending)(Pending)
0x8e4017ed679d387b4860b81cad88b984edbf2e07d8226d2b76ee085110f95020 -(pending)2024-10-09 1:06:015 days ago1728435961IN
0x2db0AFD0...26Befd3D7
0.003115452 ETH(Pending)(Pending)
0x71162f4ad9f0ec794c57536b6697d2939434a6f571e9399c7e42562cf49f40ed -(pending)2024-10-09 0:15:565 days ago1728432956IN
0x2db0AFD0...26Befd3D7
0.002 ETH(Pending)(Pending)
0x0cf5ac9fa84bdf25d1272872ababe5650ac5464d220f521b637ad5fee7b70e87 -(pending)2024-10-09 0:15:565 days ago1728432956IN
0x2db0AFD0...26Befd3D7
0.003 ETH(Pending)(Pending)
0x0dd5b41d6d44a3ec53b7e25772b79d2878ebcd8b5b7d0a44867c34905f7608a0 -(pending)2024-10-09 0:15:565 days ago1728432956IN
0x2db0AFD0...26Befd3D7
0.00703 ETH(Pending)(Pending)
0x6c554938934005f8da48565c121613dd081fe12e72442d85e36824ea63af2889 -(pending)2024-10-09 0:15:565 days ago1728432956IN
0x2db0AFD0...26Befd3D7
0.00703 ETH(Pending)(Pending)
0x07a55da4413160e0145f4fefad111938a9393fa84ff60c97a53e58a6416705fd -(pending)2024-10-09 0:15:565 days ago1728432956IN
0x2db0AFD0...26Befd3D7
0.00703 ETH(Pending)(Pending)
0x3373f9fbf3f7eebf344c954575882f30e241de9e772cc2cc81309975f418ad84 -(pending)2024-10-09 0:15:565 days ago1728432956IN
0x2db0AFD0...26Befd3D7
0.01125 ETH(Pending)(Pending)
View all transactions

Latest 25 internal transactions (View All)

Parent Transaction Hash Block From To
101565172024-10-14 14:00:4341 secs ago1728914443
0x2db0AFD0...26Befd3D7
0 ETH
101565172024-10-14 14:00:4341 secs ago1728914443
0x2db0AFD0...26Befd3D7
0.00314901 ETH
101565172024-10-14 14:00:4341 secs ago1728914443
0x2db0AFD0...26Befd3D7
0.0079589 ETH
101565172024-10-14 14:00:4341 secs ago1728914443
0x2db0AFD0...26Befd3D7
0.0079589 ETH
101565162024-10-14 14:00:4044 secs ago1728914440
0x2db0AFD0...26Befd3D7
0.0038914 ETH
101565162024-10-14 14:00:4044 secs ago1728914440
0x2db0AFD0...26Befd3D7
0.0038914 ETH
101565152024-10-14 14:00:3846 secs ago1728914438
0x2db0AFD0...26Befd3D7
0.00009172 ETH
101565152024-10-14 14:00:3846 secs ago1728914438
0x2db0AFD0...26Befd3D7
0.00009172 ETH
101565022024-10-14 14:00:011 min ago1728914401
0x2db0AFD0...26Befd3D7
0 ETH
101565022024-10-14 14:00:011 min ago1728914401
0x2db0AFD0...26Befd3D7
0.01465823 ETH
101564752024-10-14 13:58:462 mins ago1728914326
0x2db0AFD0...26Befd3D7
0 ETH
101564752024-10-14 13:58:462 mins ago1728914326
0x2db0AFD0...26Befd3D7
0.00803881 ETH
101564632024-10-14 13:58:103 mins ago1728914290
0x2db0AFD0...26Befd3D7
0 ETH
101564632024-10-14 13:58:103 mins ago1728914290
0x2db0AFD0...26Befd3D7
0.00002199 ETH
101564602024-10-14 13:58:013 mins ago1728914281
0x2db0AFD0...26Befd3D7
0.0000876 ETH
101564602024-10-14 13:58:013 mins ago1728914281
0x2db0AFD0...26Befd3D7
0.0000876 ETH
101564532024-10-14 13:57:413 mins ago1728914261
0x2db0AFD0...26Befd3D7
0 ETH
101564532024-10-14 13:57:413 mins ago1728914261
0x2db0AFD0...26Befd3D7
0.00008768 ETH
101564412024-10-14 13:57:064 mins ago1728914226
0x2db0AFD0...26Befd3D7
0.32959116 ETH
101564412024-10-14 13:57:064 mins ago1728914226
0x2db0AFD0...26Befd3D7
0.32959116 ETH
101564382024-10-14 13:56:594 mins ago1728914219
0x2db0AFD0...26Befd3D7
0.0059931 ETH
101564382024-10-14 13:56:594 mins ago1728914219
0x2db0AFD0...26Befd3D7
0.0059931 ETH
101564342024-10-14 13:56:474 mins ago1728914207
0x2db0AFD0...26Befd3D7
0 ETH
101564342024-10-14 13:56:474 mins ago1728914207
0x2db0AFD0...26Befd3D7
0.00011938 ETH
101564292024-10-14 13:56:334 mins ago1728914193
0x2db0AFD0...26Befd3D7
0 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Swap

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 100 runs

Other Settings:
default evmVersion, BSL 1.1 license

Contract Source Code (Solidity)

/**
 *Submitted for verification at scrollscan.com on 2023-11-01
*/

// SPDX-License-Identifier: BUSL-1.1

// OpenZeppelin Contracts v4.4.1 (utils/Context.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 contracts/core/interfaces/IiZiSwapFactory.sol


pragma solidity ^0.8.4;

interface IiZiSwapFactory {

    /// @notice emit when successfuly create a new pool (calling iZiSwapFactory#newPool)
    /// @param tokenX address of erc-20 tokenX
    /// @param tokenY address of erc-20 tokenY
    /// @param fee fee amount of swap (3000 means 0.3%)
    /// @param pointDelta minimum number of distance between initialized or limitorder points
    /// @param pool address of swap pool
    event NewPool(
        address indexed tokenX,
        address indexed tokenY,
        uint24 indexed fee,
        uint24 pointDelta,
        address pool
    );

    /// @notice module to support swap from tokenX to tokenY
    /// @return swapX2YModule address
    function swapX2YModule() external returns (address);

    /// @notice module to support swap from tokenY to tokenX
    /// @return swapY2XModule address
    function swapY2XModule() external returns (address);

    /// @notice module to support mint/burn/collect function of pool
    /// @return liquidityModule address
    function liquidityModule() external returns (address);

    /// @notice address of module for user to manage limit orders
    /// @return limitOrderModule address
    function limitOrderModule() external returns (address);

    /// @notice address of module for flash loan
    /// @return flashModule address
    function flashModule() external returns (address);

    /// @notice default fee rate from miner's fee gain
    /// @return defaultFeeChargePercent default fee rate * 100
    function defaultFeeChargePercent() external returns (uint24);

    /// @notice Enables a fee amount with the given pointDelta
    /// @dev Fee amounts may never be removed once enabled
    /// @param fee fee amount (3000 means 0.3%)
    /// @param pointDelta The spacing between points to be enforced for all pools created with the given fee amount
    function enableFeeAmount(uint24 fee, uint24 pointDelta) external;

    /// @notice Create a new pool which not exists.
    /// @param tokenX address of tokenX
    /// @param tokenY address of tokenY
    /// @param fee fee amount
    /// @param currentPoint initial point (log 1.0001 of price)
    /// @return address of newly created pool
    function newPool(
        address tokenX,
        address tokenY,
        uint24 fee,
        int24 currentPoint
    ) external returns (address);

    /// @notice Charge receiver of all pools.
    /// @return address of charge receiver
    function chargeReceiver() external view returns(address);

    /// @notice Get pool of (tokenX, tokenY, fee), address(0) for not exists.
    /// @param tokenX address of tokenX
    /// @param tokenY address of tokenY
    /// @param fee fee amount
    /// @return address of pool
    function pool(
        address tokenX,
        address tokenY,
        uint24 fee
    ) external view returns(address);

    /// @notice Get point delta of a given fee amount.
    /// @param fee fee amount
    /// @return pointDelta the point delta
    function fee2pointDelta(uint24 fee) external view returns (int24 pointDelta);

    /// @notice Change charge receiver, only owner of factory can call.
    /// @param _chargeReceiver address of new receiver
    function modifyChargeReceiver(address _chargeReceiver) external;

    /// @notice Change defaultFeeChargePercent
    /// @param _defaultFeeChargePercent new charge percent
    function modifyDefaultFeeChargePercent(uint24 _defaultFeeChargePercent) external;

    function deployPoolParams() external view returns(
        address tokenX,
        address tokenY,
        uint24 fee,
        int24 currentPoint,
        int24 pointDelta,
        uint24 feeChargePercent
    );
    
}


// File contracts/base/base.sol


pragma solidity ^0.8.4;

/// @title Interface for WETH9
interface IWETH9 is IERC20 {
    /// @notice Deposit ether to get wrapped ether
    function deposit() external payable;

    /// @notice Withdraw wrapped ether to get ether
    function withdraw(uint256) external;
}

abstract contract Base {
    /// @notice address of iZiSwapFactory
    address public immutable factory;

    /// @notice address of weth9 token
    address public immutable WETH9;

    modifier checkDeadline(uint256 deadline) {
        require(block.timestamp <= deadline, 'Out of time');
        _;
    }

    receive() external payable {}

    /// @notice Constructor of base.
    /// @param _factory address of iZiSwapFactory
    /// @param _WETH9 address of weth9 token
    constructor(address _factory, address _WETH9) {
        factory = _factory;
        WETH9 = _WETH9;
    }

    /// @notice Make multiple function calls in this contract in a single transaction
    ///     and return the data for each function call, revert if any function call fails
    /// @param data The encoded function data for each function call
    /// @return results result of each function call
    function multicall(bytes[] calldata data) external payable returns (bytes[] memory results) {
        results = new bytes[](data.length);
        for (uint256 i = 0; i < data.length; i++) {
            (bool success, bytes memory result) = address(this).delegatecall(data[i]);

            if (!success) {
                if (result.length < 68) revert();
                assembly {
                    result := add(result, 0x04)
                }
                revert(abi.decode(result, (string)));
            }

            results[i] = result;
        }
    }

    /// @notice Transfer tokens from the targeted address to the given destination
    /// @notice Errors with 'STF' if transfer fails
    /// @param token The contract address of the token to be transferred
    /// @param from The originating address from which the tokens will be transferred
    /// @param to The destination address of the transfer
    /// @param value The amount to be transferred
    function safeTransferFrom(
        address token,
        address from,
        address to,
        uint256 value
    ) internal {
        (bool success, bytes memory data) =
            token.call(abi.encodeWithSelector(IERC20.transferFrom.selector, from, to, value));
        require(success && (data.length == 0 || abi.decode(data, (bool))), 'STF');
    }

    /// @notice Transfer tokens from msg.sender to a recipient
    /// @dev Errors with ST if transfer fails
    /// @param token The contract address of the token which will be transferred
    /// @param to The recipient of the transfer
    /// @param value The value of the transfer
    function safeTransfer(
        address token,
        address to,
        uint256 value
    ) internal {
        (bool success, bytes memory data) = token.call(abi.encodeWithSelector(IERC20.transfer.selector, to, value));
        require(success && (data.length == 0 || abi.decode(data, (bool))), 'ST');
    }

    /// @notice Approve the stipulated contract to spend the given allowance in the given token
    /// @dev Errors with 'SA' if transfer fails
    /// @param token The contract address of the token to be approved
    /// @param to The target of the approval
    /// @param value The amount of the given token the target will be allowed to spend
    function safeApprove(
        address token,
        address to,
        uint256 value
    ) internal {
        (bool success, bytes memory data) = token.call(abi.encodeWithSelector(IERC20.approve.selector, to, value));
        require(success && (data.length == 0 || abi.decode(data, (bool))), 'SA');
    }

    /// @notice Transfer ETH to the recipient address
    /// @dev Fails with `STE`
    /// @param to The destination of the transfer
    /// @param value The value to be transferred
    function safeTransferETH(address to, uint256 value) internal {
        (bool success, ) = to.call{value: value}(new bytes(0));
        require(success, 'STE');
    }

    /// @notice Withdraw all weth9 token of this contract and send the withdrawed eth to recipient
    ///    usually used in multicall when mint/swap/update limitorder with eth
    ///    normally this contract has no any erc20 token or eth after or before a transaction
    ///    we donot need to worry that some one can steal eth from this contract
    /// @param minAmount The minimum amount of WETH9 to withdraw
    /// @param recipient The address to receive all withdrawed eth from this contract
    function unwrapWETH9(uint256 minAmount, address recipient) external payable {
        uint256 all = IWETH9(WETH9).balanceOf(address(this));
        require(all >= minAmount, 'WETH9 Not Enough');

        if (all > 0) {
            IWETH9(WETH9).withdraw(all);
            safeTransferETH(recipient, all);
        }
    }

    /// @notice Send all balance of specified token in this contract to recipient
    ///    usually used in multicall when mint/swap/update limitorder with eth
    ///    normally this contract has no any erc20 token or eth after or before a transaction
    ///    we donot need to worry that some one can steal some token from this contract
    /// @param token address of the token
    /// @param minAmount balance should >= minAmount
    /// @param recipient the address to receive specified token from this contract
    function sweepToken(
        address token,
        uint256 minAmount,
        address recipient
    ) external payable {
        uint256 all = IERC20(token).balanceOf(address(this));
        require(all >= minAmount, 'WETH9 Not Enough');

        if (all > 0) {
            safeTransfer(token, recipient, all);
        }
    }

    /// @notice Send all balance of eth in this contract to msg.sender
    ///    usually used in multicall when mint/swap/update limitorder with eth
    ///    normally this contract has no any erc20 token or eth after or before a transaction
    ///    we donot need to worry that some one can steal some token from this contract
    function refundETH() external payable {
        if (address(this).balance > 0) safeTransferETH(msg.sender, address(this).balance);
    }

    /// @param token The token to pay
    /// @param payer The entity that must pay
    /// @param recipient The entity that will receive payment
    /// @param value The amount to pay
    function pay(
        address token,
        address payer,
        address recipient,
        uint256 value
    ) internal {
        if (token == WETH9 && address(this).balance >= value) {
            // pay with WETH9
            IWETH9(WETH9).deposit{value: value}(); // wrap only what is needed to pay
            IWETH9(WETH9).transfer(recipient, value);
        } else if (payer == address(this)) {
            // pay with tokens already in the contract (for the exact input multihop case)
            safeTransfer(token, recipient, value);
        } else {
            // pull payment
            safeTransferFrom(token, payer, recipient, value);
        }
    }

    /// @notice Query pool address from factory by (tokenX, tokenY, fee).
    /// @param tokenX tokenX of swap pool
    /// @param tokenY tokenY of swap pool
    /// @param fee fee amount of swap pool
    function pool(address tokenX, address tokenY, uint24 fee) public view returns(address) {
        return IiZiSwapFactory(factory).pool(tokenX, tokenY, fee);
    }
    function verify(address tokenX, address tokenY, uint24 fee) internal view {
        require (msg.sender == pool(tokenX, tokenY, fee), "sp");
    }
}


// File contracts/libraries/BytesLib.sol

/*
 * @title Solidity Bytes Arrays Utils
 * @author Gonçalo Sá <[email protected]>
 *
 * @dev Bytes tightly packed arrays utility library for ethereum contracts written in Solidity.
 *      The library lets you concatenate, slice and type cast bytes arrays both in memory and storage.
 */
pragma solidity ^0.8.4;

library BytesLib {

    function slice(
        bytes memory _bytes,
        uint256 _start,
        uint256 _length
    ) internal pure returns (bytes memory) {
        require(_length + 31 >= _length, 'slice_overflow');
        require(_start + _length >= _start, 'slice_overflow');
        require(_bytes.length >= _start + _length, 'slice_outOfBounds');

        bytes memory tempBytes;

        assembly {
            switch iszero(_length)
                case 0 {
                    // Get a location of some free memory and store it in tempBytes as
                    // Solidity does for memory variables.
                    tempBytes := mload(0x40)

                    // The first word of the slice result is potentially a partial
                    // word read from the original array. To read it, we calculate
                    // the length of that partial word and start copying that many
                    // bytes into the array. The first word we copy will start with
                    // data we don't care about, but the last `lengthmod` bytes will
                    // land at the beginning of the contents of the new array. When
                    // we're done copying, we overwrite the full first word with
                    // the actual length of the slice.
                    let lengthmod := and(_length, 31)

                    // The multiplication in the next line is necessary
                    // because when slicing multiples of 32 bytes (lengthmod == 0)
                    // the following copy loop was copying the origin's length
                    // and then ending prematurely not copying everything it should.
                    let mc := add(add(tempBytes, lengthmod), mul(0x20, iszero(lengthmod)))
                    let end := add(mc, _length)

                    for {
                        // The multiplication in the next line has the same exact purpose
                        // as the one above.
                        let cc := add(add(add(_bytes, lengthmod), mul(0x20, iszero(lengthmod))), _start)
                    } lt(mc, end) {
                        mc := add(mc, 0x20)
                        cc := add(cc, 0x20)
                    } {
                        mstore(mc, mload(cc))
                    }

                    mstore(tempBytes, _length)

                    //update free-memory pointer
                    //allocating the array padded to 32 bytes like the compiler does now
                    mstore(0x40, and(add(mc, 31), not(31)))
                }
                //if we want a zero-length slice let's just return a zero-length array
                default {
                    tempBytes := mload(0x40)
                    //zero out the 32 bytes slice we are about to return
                    //we need to do it because Solidity does not garbage collect
                    mstore(tempBytes, 0)

                    mstore(0x40, add(tempBytes, 0x20))
                }
        }

        return tempBytes;
    }

    function toAddress(bytes memory _bytes, uint256 _start) internal pure returns (address) {
        require(_start + 20 >= _start, 'toAddress_overflow');
        require(_bytes.length >= _start + 20, 'toAddress_outOfBounds');
        address tempAddress;

        assembly {
            tempAddress := div(mload(add(add(_bytes, 0x20), _start)), 0x1000000000000000000000000)
        }

        return tempAddress;
    }

    function toUint24(bytes memory _bytes, uint256 _start) internal pure returns (uint24) {
        require(_start + 3 >= _start, 'toUint24_overflow');
        require(_bytes.length >= _start + 3, 'toUint24_outOfBounds');
        uint24 tempUint;

        assembly {
            tempUint := mload(add(add(_bytes, 0x3), _start))
        }

        return tempUint;
    }
    
}


// File contracts/libraries/Path.sol

pragma solidity ^0.8.4;

/// @title Functions for manipulating path data for multihop swaps
library Path {

    using BytesLib for bytes;

    /// @dev The length of the bytes encoded address
    uint256 private constant ADDR_SIZE = 20;
    /// @dev The length of the bytes encoded fee
    uint256 private constant FEE_SIZE = 3;

    /// @dev The offset of a single token address and pool fee
    uint256 private constant NEXT_OFFSET = ADDR_SIZE + FEE_SIZE;
    /// @dev The offset of an encoded pool key
    uint256 private constant POP_OFFSET = NEXT_OFFSET + ADDR_SIZE;
    /// @dev The minimum length of an encoding that contains 2 or more pools
    uint256 private constant MULTIPLE_POOLS_MIN_LENGTH = POP_OFFSET + NEXT_OFFSET;

    /// @notice Returns true iff the path contains two or more pools
    /// @param path The encoded swap path
    /// @return True if path contains two or more pools, otherwise false
    function hasMultiplePools(bytes memory path) internal pure returns (bool) {
        return path.length >= MULTIPLE_POOLS_MIN_LENGTH;
    }

    /// @notice Returns the number of pools in the path
    /// @param path The encoded swap path
    /// @return The number of pools in the path
    function numPools(bytes memory path) internal pure returns (uint256) {
        // Ignore the first token address. From then on every fee and token offset indicates a pool.
        return ((path.length - ADDR_SIZE) / NEXT_OFFSET);
    }

    /// @notice Decodes the first pool in path
    /// @param path The bytes encoded swap path
    /// @return tokenA The first token of the given pool
    /// @return tokenB The second token of the given pool
    /// @return fee The fee level of the pool
    function decodeFirstPool(bytes memory path)
        internal
        pure
        returns (
            address tokenA,
            address tokenB,
            uint24 fee
        )
    {
        tokenA = path.toAddress(0);
        fee = path.toUint24(ADDR_SIZE);
        tokenB = path.toAddress(NEXT_OFFSET);
    }

    /// @notice Gets the segment corresponding to the first pool in the path
    /// @param path The bytes encoded swap path
    /// @return The segment containing all data necessary to target the first pool in the path
    function getFirstPool(bytes memory path) internal pure returns (bytes memory) {
        return path.slice(0, POP_OFFSET);
    }

    /// @notice Skips a token + fee element from the buffer and returns the remainder
    /// @param path The swap path
    /// @return The remaining token + fee elements in the path
    function skipToken(bytes memory path) internal pure returns (bytes memory) {
        return path.slice(NEXT_OFFSET, path.length - NEXT_OFFSET);
    }
    
}


// File contracts/core/interfaces/IiZiSwapCallback.sol


pragma solidity ^0.8.4;

interface IiZiSwapMintCallback {

    /// @notice Called to msg.sender in iZiSwapPool#mint call
    /// @param x Amount of tokenX need to pay from miner
    /// @param y Amount of tokenY need to pay from miner
    /// @param data Any data passed through by the msg.sender via the iZiSwapPool#mint call
    function mintDepositCallback(
        uint256 x,
        uint256 y,
        bytes calldata data
    ) external;

}

interface IiZiSwapCallback {

    /// @notice Called to msg.sender in iZiSwapPool#swapY2X(DesireX) call
    /// @param x Amount of tokenX trader will acquire
    /// @param y Amount of tokenY trader will pay
    /// @param data Any dadta passed though by the msg.sender via the iZiSwapPool#swapY2X(DesireX) call
    function swapY2XCallback(
        uint256 x,
        uint256 y,
        bytes calldata data
    ) external;

    /// @notice Called to msg.sender in iZiSwapPool#swapX2Y(DesireY) call
    /// @param x Amount of tokenX trader will pay
    /// @param y Amount of tokenY trader will require
    /// @param data Any dadta passed though by the msg.sender via the iZiSwapPool#swapX2Y(DesireY) call
    function swapX2YCallback(
        uint256 x,
        uint256 y,
        bytes calldata data
    ) external;

}

interface IiZiSwapAddLimOrderCallback {

    /// @notice Called to msg.sender in iZiSwapPool#addLimOrderWithX(Y) call
    /// @param x Amount of tokenX seller will pay
    /// @param y Amount of tokenY seller will pay
    /// @param data Any dadta passed though by the msg.sender via the iZiSwapPool#addLimOrderWithX(Y) call
    function payCallback(
        uint256 x,
        uint256 y,
        bytes calldata data
    ) external;

}


// File contracts/core/interfaces/IiZiSwapPool.sol


pragma solidity ^0.8.4;

interface IiZiSwapPool {

    /// @notice Emitted when miner successfully add liquidity (mint).
    /// @param sender the address that minted the liquidity
    /// @param owner the owner who will benefit from this liquidity
    /// @param leftPoint left endpoint of the liquidity
    /// @param rightPoint right endpoint of the liquidity
    /// @param liquidity the amount of liquidity minted to the range [leftPoint, rightPoint)
    /// @param amountX amount of tokenX deposit
    /// @param amountY amount of tokenY deposit
    event Mint(
        address sender, 
        address indexed owner, 
        int24 indexed leftPoint, 
        int24 indexed rightPoint, 
        uint128 liquidity, 
        uint256 amountX, 
        uint256 amountY
    );

    /// @notice Emitted when miner successfully decrease liquidity (withdraw).
    /// @param owner owner address of liquidity
    /// @param leftPoint left endpoint of liquidity
    /// @param rightPoint right endpoint of liquidity
    /// @param liquidity amount of liquidity decreased
    /// @param amountX amount of tokenX withdrawed
    /// @param amountY amount of tokenY withdrawed
    event Burn(
        address indexed owner, 
        int24 indexed leftPoint,
        int24 indexed rightPoint,
        uint128 liquidity,
        uint256 amountX,
        uint256 amountY
    );

    /// @notice Emitted when fees and withdrawed liquidity are collected 
    /// @param owner The owner of the Liquidity
    /// @param recipient recipient of those token
    /// @param leftPoint The left point of the liquidity
    /// @param rightPoint The right point of the liquidity
    /// @param amountX The amount of tokenX (fees and withdrawed tokenX from liquidity)
    /// @param amountY The amount of tokenY (fees and withdrawed tokenY from liquidity)
    event CollectLiquidity(
        address indexed owner,
        address recipient,
        int24 indexed leftPoint,
        int24 indexed rightPoint,
        uint256 amountX,
        uint256 amountY
    );

    /// @notice Emitted when a trader successfully exchange.
    /// @param tokenX tokenX of pool
    /// @param tokenY tokenY of pool
    /// @param fee fee amount of pool
    /// @param sellXEarnY true for selling tokenX, false for buying tokenX
    /// @param amountX amount of tokenX in this exchange
    /// @param amountY amount of tokenY in this exchange
    event Swap(
        address indexed tokenX,
        address indexed tokenY,
        uint24 indexed fee,
        bool sellXEarnY,
        uint256 amountX,
        uint256 amountY
    );

    /// @notice Emitted by the pool for any flashes of tokenX/tokenY.
    /// @param sender the address that initiated the swap call, and that received the callback
    /// @param recipient the address that received the tokens from flash
    /// @param amountX the amount of tokenX that was flashed
    /// @param amountY the amount of tokenY that was flashed
    /// @param paidX the amount of tokenX paid for the flash, which can exceed the amountX plus the fee
    /// @param paidY the amount of tokenY paid for the flash, which can exceed the amountY plus the fee
    event Flash(
        address indexed sender,
        address indexed recipient,
        uint256 amountX,
        uint256 amountY,
        uint256 paidX,
        uint256 paidY
    );

    /// @notice Emitted when a seller successfully add a limit order.
    /// @param owner owner of limit order
    /// @param addAmount amount of token to sell the seller added
    /// @param acquireAmount amount of earn-token acquired, if there exists some opposite order before 
    /// @param point point of limit order
    /// @param claimSold claimed sold sell-token, if this owner has order with same direction on this point before
    /// @param claimEarn claimed earned earn-token, if this owner has order with same direction on this point before
    /// @param sellXEarnY direction of limit order, etc. sell tokenX or sell tokenY
    event AddLimitOrder(
        address indexed owner,
        uint128 addAmount,
        uint128 acquireAmount,
        int24 indexed point,
        uint128 claimSold,
        uint128 claimEarn,
        bool sellXEarnY
    );

    /// @notice Emitted when a seller successfully decrease a limit order.
    /// @param owner owner of limit order
    /// @param decreaseAmount amount of token to sell the seller decreased
    /// @param point point of limit order
    /// @param claimSold claimed sold sell-token
    /// @param claimEarn claimed earned earn-token
    /// @param sellXEarnY direction of limit order, etc. sell tokenX or sell tokenY
    event DecLimitOrder(
        address indexed owner,
        uint128 decreaseAmount,
        int24 indexed point,
        uint128 claimSold,
        uint128 claimEarn,
        bool sellXEarnY
    );

    /// @notice Emitted when collect from a limit order
    /// @param owner The owner of the Liquidity
    /// @param recipient recipient of those token
    /// @param point The point of the limit order
    /// @param collectDec The amount of decreased sell token collected
    /// @param collectEarn The amount of earn token collected
    /// @param sellXEarnY direction of limit order, etc. sell tokenX or sell tokenY
    event CollectLimitOrder(
        address indexed owner,
        address recipient,
        int24 indexed point,
        uint128 collectDec,
        uint128 collectEarn,
        bool sellXEarnY
    );

    /// @notice Returns the information about a liquidity by the liquidity's key.
    /// @param key the liquidity's key is a hash of a preimage composed by the miner(owner), pointLeft and pointRight
    /// @return liquidity the amount of liquidity,
    /// @return lastFeeScaleX_128 fee growth of tokenX inside the range as of the last mint/burn/collect,
    /// @return lastFeeScaleY_128 fee growth of tokenY inside the range as of the last mint/burn/collect,
    /// @return tokenOwedX the computed amount of tokenX miner can collect as of the last mint/burn/collect,
    /// @return tokenOwedY the computed amount of tokenY miner can collect as of the last mint/burn/collect
    function liquidity(bytes32 key)
        external
        view
        returns (
            uint128 liquidity,
            uint256 lastFeeScaleX_128,
            uint256 lastFeeScaleY_128,
            uint256 tokenOwedX,
            uint256 tokenOwedY
        );
    
    /// @notice Returns the information about a user's limit order (sell tokenY and earn tokenX).
    /// @param key the limit order's key is a hash of a preimage composed by the seller, point
    /// @return lastAccEarn total amount of tokenX earned by all users at this point as of the last add/dec/collect
    /// @return sellingRemain amount of tokenY not selled in this limit order
    /// @return sellingDec amount of tokenY decreased by seller from this limit order
    /// @return earn amount of unlegacy earned tokenX in this limit order not assigned
    /// @return legacyEarn amount of legacy earned tokenX in this limit order not assgined
    /// @return earnAssign assigned amount of tokenX earned (both legacy and unlegacy) in this limit order
    function userEarnX(bytes32 key)
        external
        view
        returns (
            uint256 lastAccEarn,
            uint128 sellingRemain,
            uint128 sellingDec,
            uint128 earn,
            uint128 legacyEarn,
            uint128 earnAssign
        );
    
    /// @notice Returns the information about a user's limit order (sell tokenX and earn tokenY).
    /// @param key the limit order's key is a hash of a preimage composed by the seller, point
    /// @return lastAccEarn total amount of tokenY earned by all users at this point as of the last add/dec/collect
    /// @return sellingRemain amount of tokenX not selled in this limit order
    /// @return sellingDec amount of tokenX decreased by seller from this limit order
    /// @return earn amount of unlegacy earned tokenY in this limit order not assigned
    /// @return legacyEarn amount of legacy earned tokenY in this limit order not assgined
    /// @return earnAssign assigned amount of tokenY earned (both legacy and unlegacy) in this limit order
    function userEarnY(bytes32 key)
        external
        view
        returns (
            uint256 lastAccEarn,
            uint128 sellingRemain,
            uint128 sellingDec,
            uint128 earn,
            uint128 legacyEarn,
            uint128 earnAssign
        );
    
    /// @notice Mark a given amount of tokenY in a limitorder(sellx and earn y) as assigned.
    /// @param point point (log Price) of seller's limit order,be sure to be times of pointDelta
    /// @param assignY max amount of tokenY to mark assigned
    /// @param fromLegacy true for assigning earned token from legacyEarnY
    /// @return actualAssignY actual amount of tokenY marked
    function assignLimOrderEarnY(
        int24 point,
        uint128 assignY,
        bool fromLegacy
    ) external returns(uint128 actualAssignY);
    
    /// @notice Mark a given amount of tokenX in a limitorder(selly and earn x) as assigned.
    /// @param point point (log Price) of seller's limit order,be sure to be times of pointDelta
    /// @param assignX max amount of tokenX to mark assigned
    /// @param fromLegacy true for assigning earned token from legacyEarnX
    /// @return actualAssignX actual amount of tokenX marked
    function assignLimOrderEarnX(
        int24 point,
        uint128 assignX,
        bool fromLegacy
    ) external returns(uint128 actualAssignX);

    /// @notice Decrease limitorder of selling X.
    /// @param point point of seller's limit order, be sure to be times of pointDelta
    /// @param deltaX max amount of tokenX seller wants to decrease
    /// @return actualDeltaX actual amount of tokenX decreased
    /// @return legacyAccEarn legacyAccEarnY of pointOrder at point when calling this interface
    function decLimOrderWithX(
        int24 point,
        uint128 deltaX
    ) external returns (uint128 actualDeltaX, uint256 legacyAccEarn);
    
    /// @notice Decrease limitorder of selling Y.
    /// @param point point of seller's limit order, be sure to be times of pointDelta
    /// @param deltaY max amount of tokenY seller wants to decrease
    /// @return actualDeltaY actual amount of tokenY decreased
    /// @return legacyAccEarn legacyAccEarnX of pointOrder at point when calling this interface
    function decLimOrderWithY(
        int24 point,
        uint128 deltaY
    ) external returns (uint128 actualDeltaY, uint256 legacyAccEarn);
    
    /// @notice Add a limit order (selling x) in the pool.
    /// @param recipient owner of the limit order
    /// @param point point of the order, be sure to be times of pointDelta
    /// @param amountX amount of tokenX to sell
    /// @param data any data that should be passed through to the callback
    /// @return orderX actual added amount of tokenX
    /// @return acquireY amount of tokenY acquired if there is a limit order to sell y before adding
    function addLimOrderWithX(
        address recipient,
        int24 point,
        uint128 amountX,
        bytes calldata data
    ) external returns (uint128 orderX, uint128 acquireY);

    /// @notice Add a limit order (selling y) in the pool.
    /// @param recipient owner of the limit order
    /// @param point point of the order, be sure to be times of pointDelta
    /// @param amountY amount of tokenY to sell
    /// @param data any data that should be passed through to the callback
    /// @return orderY actual added amount of tokenY
    /// @return acquireX amount of tokenX acquired if there exists a limit order to sell x before adding
    function addLimOrderWithY(
        address recipient,
        int24 point,
        uint128 amountY,
        bytes calldata data
    ) external returns (uint128 orderY, uint128 acquireX);

    /// @notice Collect earned or decreased token from limit order.
    /// @param recipient address to benefit
    /// @param point point of limit order, be sure to be times of pointDelta
    /// @param collectDec max amount of decreased selling token to collect
    /// @param collectEarn max amount of earned token to collect
    /// @param isEarnY direction of this limit order, true for sell y, false for sell x
    /// @return actualCollectDec actual amount of decresed selling token collected
    /// @return actualCollectEarn actual amount of earned token collected
    function collectLimOrder(
        address recipient, int24 point, uint128 collectDec, uint128 collectEarn, bool isEarnY
    ) external returns(uint128 actualCollectDec, uint128 actualCollectEarn);

    /// @notice Add liquidity to the pool.
    /// @param recipient newly created liquidity will belong to this address
    /// @param leftPt left endpoint of the liquidity, be sure to be times of pointDelta
    /// @param rightPt right endpoint of the liquidity, be sure to be times of pointDelta
    /// @param liquidDelta amount of liquidity to add
    /// @param data any data that should be passed through to the callback
    /// @return amountX The amount of tokenX that was paid for the liquidity. Matches the value in the callback
    /// @return amountY The amount of tokenY that was paid for the liquidity. Matches the value in the callback
    function mint(
        address recipient,
        int24 leftPt,
        int24 rightPt,
        uint128 liquidDelta,
        bytes calldata data
    ) external returns (uint256 amountX, uint256 amountY);

    /// @notice Decrease a given amount of liquidity from msg.sender's liquidities.
    /// @param leftPt left endpoint of the liquidity
    /// @param rightPt right endpoint of the liquidity
    /// @param liquidDelta amount of liquidity to burn
    /// @return amountX The amount of tokenX should be refund after burn
    /// @return amountY The amount of tokenY should be refund after burn
    function burn(
        int24 leftPt,
        int24 rightPt,
        uint128 liquidDelta
    ) external returns (uint256 amountX, uint256 amountY);

    /// @notice Collect tokens (fee or refunded after burn) from a liquidity.
    /// @param recipient the address which should receive the collected tokens
    /// @param leftPt left endpoint of the liquidity
    /// @param rightPt right endpoint of the liquidity
    /// @param amountXLim max amount of tokenX the owner wants to collect
    /// @param amountYLim max amount of tokenY the owner wants to collect
    /// @return actualAmountX the amount tokenX collected
    /// @return actualAmountY the amount tokenY collected
    function collect(
        address recipient,
        int24 leftPt,
        int24 rightPt,
        uint256 amountXLim,
        uint256 amountYLim
    ) external returns (uint256 actualAmountX, uint256 actualAmountY);

    /// @notice Swap tokenY for tokenX, given max amount of tokenY user willing to pay.
    /// @param recipient the address to receive tokenX
    /// @param amount the max amount of tokenY user willing to pay
    /// @param highPt the highest point(price) of x/y during swap
    /// @param data any data to be passed through to the callback
    /// @return amountX amount of tokenX payed
    /// @return amountY amount of tokenY acquired
    function swapY2X(
        address recipient,
        uint128 amount,
        int24 highPt,
        bytes calldata data
    ) external returns (uint256 amountX, uint256 amountY);
    
    /// @notice Swap tokenY for tokenX, given amount of tokenX user desires.
    /// @param recipient the address to receive tokenX
    /// @param desireX the amount of tokenX user desires
    /// @param highPt the highest point(price) of x/y during swap
    /// @param data any data to be passed through to the callback
    /// @return amountX amount of tokenX payed
    /// @return amountY amount of tokenY acquired
    function swapY2XDesireX(
        address recipient,
        uint128 desireX,
        int24 highPt,
        bytes calldata data
    ) external returns (uint256 amountX, uint256 amountY);
    
    /// @notice Swap tokenX for tokenY, given max amount of tokenX user willing to pay.
    /// @param recipient the address to receive tokenY
    /// @param amount the max amount of tokenX user willing to pay
    /// @param lowPt the lowest point(price) of x/y during swap
    /// @param data any data to be passed through to the callback
    /// @return amountX amount of tokenX acquired
    /// @return amountY amount of tokenY payed
    function swapX2Y(
        address recipient,
        uint128 amount,
        int24 lowPt,
        bytes calldata data
    ) external returns (uint256 amountX, uint256 amountY);
    
    /// @notice Swap tokenX for tokenY, given amount of tokenY user desires.
    /// @param recipient the address to receive tokenY
    /// @param desireY the amount of tokenY user desires
    /// @param lowPt the lowest point(price) of x/y during swap
    /// @param data any data to be passed through to the callback
    /// @return amountX amount of tokenX acquired
    /// @return amountY amount of tokenY payed
    function swapX2YDesireY(
        address recipient,
        uint128 desireY,
        int24 lowPt,
        bytes calldata data
    ) external returns (uint256 amountX, uint256 amountY);

    /// @notice Returns sqrt(1.0001), in 96 bit fixpoint number.
    function sqrtRate_96() external view returns(uint160);
    
    /// @notice State values of pool.
    /// @return sqrtPrice_96 a 96 fixpoing number describe the sqrt value of current price(tokenX/tokenY)
    /// @return currentPoint the current point of the pool, 1.0001 ^ currentPoint = price
    /// @return observationCurrentIndex the index of the last oracle observation that was written,
    /// @return observationQueueLen the current maximum number of observations stored in the pool,
    /// @return observationNextQueueLen the next maximum number of observations, to be updated when the observation.
    /// @return locked whether the pool is locked (only used for checking reentrance)
    /// @return liquidity liquidity on the currentPoint (currX * sqrtPrice + currY / sqrtPrice)
    /// @return liquidityX liquidity of tokenX
    function state()
        external view
        returns(
            uint160 sqrtPrice_96,
            int24 currentPoint,
            uint16 observationCurrentIndex,
            uint16 observationQueueLen,
            uint16 observationNextQueueLen,
            bool locked,
            uint128 liquidity,
            uint128 liquidityX
        );
    
    /// @notice LimitOrder info on a given point.
    /// @param point the given point 
    /// @return sellingX total amount of tokenX selling on the point
    /// @return earnY total amount of unclaimed earned tokenY for unlegacy sellingX
    /// @return accEarnY total amount of earned tokenY(via selling tokenX) by all users at this point as of the last swap
    /// @return legacyAccEarnY latest recorded 'accEarnY' value when sellingX is clear (legacy)
    /// @return legacyEarnY total amount of unclaimed earned tokenY for legacy (cleared during swap) sellingX
    /// @return sellingY total amount of tokenYselling on the point
    /// @return earnX total amount of unclaimed earned tokenX for unlegacy sellingY
    /// @return legacyEarnX total amount of unclaimed earned tokenX for legacy (cleared during swap) sellingY
    /// @return accEarnX total amount of earned tokenX(via selling tokenY) by all users at this point as of the last swap
    /// @return legacyAccEarnX latest recorded 'accEarnX' value when sellingY is clear (legacy)
    function limitOrderData(int24 point)
        external view
        returns(
            uint128 sellingX,
            uint128 earnY,
            uint256 accEarnY,
            uint256 legacyAccEarnY,
            uint128 legacyEarnY,
            uint128 sellingY,
            uint128 earnX,
            uint128 legacyEarnX,
            uint256 accEarnX,
            uint256 legacyAccEarnX
        );
    
    /// @notice Query infomation about a point whether has limit order or is an liquidity's endpoint.
    /// @param point point to query
    /// @return val endpoint for val&1>0 and has limit order for val&2 > 0
    function orderOrEndpoint(int24 point) external returns(int24 val);

    /// @notice Returns observation data about a specific index.
    /// @param index the index of observation array
    /// @return timestamp the timestamp of the observation,
    /// @return accPoint the point multiplied by seconds elapsed for the life of the pool as of the observation timestamp,
    /// @return init whether the observation has been initialized and the above values are safe to use
    function observations(uint256 index)
        external
        view
        returns (
            uint32 timestamp,
            int56 accPoint,
            bool init
        );

    /// @notice Point status in the pool.
    /// @param point the point
    /// @return liquidSum the total amount of liquidity that uses the point either as left endpoint or right endpoint
    /// @return liquidDelta how much liquidity changes when the pool price crosses the point from left to right
    /// @return accFeeXOut_128 the fee growth on the other side of the point from the current point in tokenX
    /// @return accFeeYOut_128 the fee growth on the other side of the point from the current point in tokenY
    /// @return isEndpt whether the point is an endpoint of a some miner's liquidity, true if liquidSum > 0
    function points(int24 point)
        external
        view
        returns (
            uint128 liquidSum,
            int128 liquidDelta,
            uint256 accFeeXOut_128,
            uint256 accFeeYOut_128,
            bool isEndpt
        );

    /// @notice Returns 256 packed point (statusVal>0) boolean values. See PointBitmap for more information.
    function pointBitmap(int16 wordPosition) external view returns (uint256);

    /// @notice Returns the integral value of point(time) and integral value of 1/liquidity(time)
    ///     at some target timestamps (block.timestamp - secondsAgo[i])
    /// @dev Reverts if target timestamp is early than oldest observation in the queue
    /// @dev If you call this method with secondsAgos = [3600, 0]. the average point of this pool during recent hour is 
    /// (accPoints[1] - accPoints[0]) / 3600
    /// @param secondsAgos describe the target timestamp , targetTimestimp[i] = block.timestamp - secondsAgo[i]
    /// @return accPoints integral value of point(time) from 0 to each target timestamp
    function observe(uint32[] calldata secondsAgos)
        external
        view
        returns (int56[] memory accPoints);
    
    /// @notice Expand max-length of observation queue.
    /// @param newNextQueueLen new value of observationNextQueueLen, which should be greater than current observationNextQueueLen
    function expandObservationQueue(uint16 newNextQueueLen) external;

    /// @notice Borrow tokenX and/or tokenY and pay it back within a block.
    /// @dev The caller needs to implement a IiZiSwapPool#flashCallback callback function
    /// @param recipient the address which will receive the tokenY and/or tokenX
    /// @param amountX the amount of tokenX to borrow
    /// @param amountY the amount of tokenY to borrow
    /// @param data Any data to be passed through to the callback
    function flash(
        address recipient,
        uint256 amountX,
        uint256 amountY,
        bytes calldata data
    ) external;

    /// @notice Returns a snapshot infomation of Liquidity in [leftPoint, rightPoint).
    /// @param leftPoint left endpoint of range, should be times of pointDelta
    /// @param rightPoint right endpoint of range, should be times of pointDelta
    /// @return deltaLiquidities an array of delta liquidity for points in the range
    ///    note 1. delta liquidity here is amount of liquidity changed when cross a point from left to right
    ///    note 2. deltaLiquidities only contains points which are times of pointDelta
    ///    note 3. this function may cost a ENORMOUS amount of gas, be careful to call
    function liquiditySnapshot(int24 leftPoint, int24 rightPoint) external view returns(int128[] memory deltaLiquidities);

    struct LimitOrderStruct {
        uint128 sellingX;
        uint128 earnY;
        uint256 accEarnY;
        uint128 sellingY;
        uint128 earnX;
        uint256 accEarnX;
    }

    /// @notice Returns a snapshot infomation of Limit Order in [leftPoint, rightPoint).
    /// @param leftPoint left endpoint of range, should be times of pointDelta
    /// @param rightPoint right endpoint of range, should be times of pointDelta
    /// @return limitOrders an array of Limit Orders for points in the range
    ///    note 1. this function may cost a HUGE amount of gas, be careful to call
    function limitOrderSnapshot(int24 leftPoint, int24 rightPoint) external view returns(LimitOrderStruct[] memory limitOrders); 

    /// @notice Amount of charged fee on tokenX.
    function totalFeeXCharged() external view returns(uint256);

    /// @notice Amount of charged fee on tokenY.
    function totalFeeYCharged() external view returns(uint256);

    /// @notice Percent to charge from miner's fee.
    function feeChargePercent() external view returns(uint24);

    /// @notice Collect charged fee, only factory's chargeReceiver can call.
    function collectFeeCharged() external;

    /// @notice modify 'feeChargePercent', only owner has authority.
    /// @param newFeeChargePercent new value of feeChargePercent, a nature number range in [0, 100], 
    function modifyFeeChargePercent(uint24 newFeeChargePercent) external;
    
}


// File contracts/Swap.sol


pragma solidity ^0.8.4;



contract Swap is Base, IiZiSwapCallback {

    uint256 private constant DEFAULT_PAYED_CACHED = type(uint256).max;
    uint256 private payedCached = DEFAULT_PAYED_CACHED;

    using Path for bytes;

    struct SwapCallbackData {
        bytes path;
        address payer;
    }

    /// @notice constructor to create this contract
    /// @param _factory address of iZiSwapFactory
    /// @param _weth address of weth token
    constructor(address _factory, address _weth) Base(_factory, _weth) {}

    /// @notice Callback for swapY2X and swapY2XDesireX, in order to pay tokenY from trader.
    /// @param x amount of tokenX trader acquired
    /// @param y amount of tokenY need to pay from trader
    /// @param data encoded SwapCallbackData
    function swapY2XCallback(
        uint256 x,
        uint256 y,
        bytes calldata data
    ) external override {
        SwapCallbackData memory dt = abi.decode(data, (SwapCallbackData));

        (address token0, address token1, uint24 fee) = dt.path.decodeFirstPool();
        verify(token0, token1, fee);
        if (token0 < token1) {
            // token1 is y, amount of token1 is calculated
            // called from swapY2XDesireX(...)
            if (dt.path.hasMultiplePools()) {
                dt.path = dt.path.skipToken();
                swapDesireInternal(y, msg.sender, dt);
            } else {
                pay(token1, dt.payer, msg.sender, y);
                payedCached = y;
            }
        } else {
            // token0 is y, amount of token0 is input param
            // called from swapY2X(...)
            pay(token0, dt.payer, msg.sender, y);
        }
    }

    /// @notice Callback for swapX2Y and swapX2YDesireY, in order to pay tokenX from trader.
    /// @param x amount of tokenX need to pay from trader
    /// @param y amount of tokenY trader acquired
    /// @param data encoded SwapCallbackData
    function swapX2YCallback(
        uint256 x,
        uint256 y,
        bytes calldata data
    ) external override {
        SwapCallbackData memory dt = abi.decode(data, (SwapCallbackData));
        (address token0, address token1, uint24 fee) = dt.path.decodeFirstPool();
        verify(token0, token1, fee);
        if (token0 < token1) {
            // token0 is x, amount of token0 is input param
            // called from swapX2Y(...)
            pay(token0, dt.payer, msg.sender, x);
        } else {
            // token1 is x, amount of token1 is calculated param
            // called from swapX2YDesireY(...)
            if (dt.path.hasMultiplePools()) {
                dt.path = dt.path.skipToken();
                swapDesireInternal(x, msg.sender, dt);
            } else {
                pay(token1, dt.payer, msg.sender, x);
                payedCached = x;
            }
        }
    }

    function swapDesireInternal(
        uint256 desire,
        address recipient,
        SwapCallbackData memory data
    ) private returns (uint256 acquire) {
        // allow swapping to the router address with address 0
        if (recipient == address(0)) recipient = address(this);

        (address tokenOut, address tokenIn, uint24 fee) = data.path.decodeFirstPool();

        address poolAddr = pool(tokenOut, tokenIn, fee);
        if (tokenOut < tokenIn) {
            // tokenOut is tokenX, tokenIn is tokenY
            // we should call y2XDesireX

            (acquire, ) = IiZiSwapPool(poolAddr).swapY2XDesireX(
                recipient, uint128(desire), 800001,
                abi.encode(data)
            );
        } else {
            // tokenOut is tokenY
            // tokenIn is tokenX
            (, acquire) = IiZiSwapPool(poolAddr).swapX2YDesireY(
                recipient, uint128(desire), -800001,
                abi.encode(data)
            );
        }
    }

    function swapAmountInternal(
        uint128 amount,
        address recipient,
        SwapCallbackData memory data
    ) private returns (uint256 cost, uint256 acquire) {
        // allow swapping to the router address with address 0
        if (recipient == address(0)) recipient = address(this);

        address payer = msg.sender; // msg.sender pays for the first hop

        bool firstHop = true;

        while (true) {
            bool hasMultiplePools = data.path.hasMultiplePools();
            (address tokenIn, address tokenOut, uint24 fee) = data.path.decodeFirstPool();
            address poolAddr = pool(tokenOut, tokenIn, fee);
            if (tokenIn < tokenOut) {
                // swapX2Y
                uint256 costX;
                (costX, acquire) = IiZiSwapPool(poolAddr).swapX2Y(
                    hasMultiplePools? address(this): recipient, amount, -799999,
                    abi.encode(SwapCallbackData({path: abi.encodePacked(tokenIn, fee, tokenOut), payer: payer}))
                );
                if (firstHop) {
                    cost = costX;
                }
            } else {
                // swapY2X
                uint256 costY;
                (acquire, costY) = IiZiSwapPool(poolAddr).swapY2X(
                    hasMultiplePools? address(this): recipient, amount, 799999,
                    abi.encode(SwapCallbackData({path: abi.encodePacked(tokenIn, fee, tokenOut), payer: payer}))
                );
                if (firstHop) {
                    cost = costY;
                }
            }
            firstHop = false;

            // decide whether to continue or terminate
            if (hasMultiplePools) {
                payer = address(this); // at this point, the caller has paid
                data.path = data.path.skipToken();
                amount = uint128(acquire);
            } else {
                break;
            }
        }
    }

    struct SwapDesireParams {
        bytes path;
        address recipient;
        uint128 desire;
        uint256 maxPayed;

        uint256 deadline;
    }


    /// @notice Swap given amount of target token, usually used in multi-hop case.
    function swapDesire(SwapDesireParams calldata params)
        external
        payable
        checkDeadline(params.deadline)
        returns (uint256 cost, uint256 acquire)
    {
        
        acquire = swapDesireInternal(
            params.desire,
            params.recipient,
            SwapCallbackData({path: params.path, payer: msg.sender})
        );
        cost = payedCached;
        require(cost <= params.maxPayed, 'Too much payed in swapDesire');
        require(acquire >= params.desire, 'Too much requested in swapDesire');
        payedCached = DEFAULT_PAYED_CACHED;
    }

    struct SwapAmountParams {
        bytes path;
        address recipient;
        // uint256 deadline;
        uint128 amount;
        uint256 minAcquired;

        uint256 deadline;
    }

    /// @notice Swap given amount of input token, usually used in multi-hop case.
    function swapAmount(SwapAmountParams calldata params)
        external
        payable
        checkDeadline(params.deadline)
        returns (uint256 cost, uint256 acquire) 
    {
        (cost, acquire) = swapAmountInternal(
            params.amount, 
            params.recipient, 
            SwapCallbackData({path: params.path, payer: msg.sender})
        );
        require(acquire >= params.minAcquired, 'Too much requested in swapAmount');
    }

    /// parameters when calling Swap.swap..., grouped together to avoid stake too deep
    struct SwapParams {
        // tokenX of swap pool
        address tokenX;
        // tokenY of swap pool
        address tokenY;
        // fee amount of swap pool
        uint24 fee;
        // highPt for y2x, lowPt for x2y
        // here y2X is calling swapY2X or swapY2XDesireX
        // in swapY2XDesireX, if boundaryPt is 800001, means user wants to get enough X
        // in swapX2YDesireY, if boundaryPt is -800001, means user wants to get enough Y
        int24 boundaryPt; 
        // who will receive acquired token
        address recipient;
        // desired amount for desired mode, paid amount for non-desired mode
        // here, desire mode is calling swapX2YDesireY or swapY2XDesireX
        uint128 amount;
        // max amount of payed token from trader, used in desire mode
        uint256 maxPayed;
        // min amount of received token trader wanted, used in undesire mode
        uint256 minAcquired;

        uint256 deadline;
    }

    // amount of exchanged tokens
    struct ExchangeAmount {
        // amount of tokenX paid or acquired
        uint256 amountX;
        // amount of tokenY acquired or paid
        uint256 amountY;
    }

    /// @notice Swap tokenY for tokenX, given max amount of tokenY user willing to pay
    /// @param swapParams params(for example: max amount in above line), see SwapParams for more
    function swapY2X(
        SwapParams calldata swapParams
    ) external payable checkDeadline(swapParams.deadline) {
        require(swapParams.tokenX < swapParams.tokenY, "x<y");
        address poolAddr = pool(swapParams.tokenX, swapParams.tokenY, swapParams.fee);
        address payer = msg.sender;
        address recipient = (swapParams.recipient == address(0)) ? address(this): swapParams.recipient;
        (uint256 amountX, ) = IiZiSwapPool(poolAddr).swapY2X(
            recipient, swapParams.amount, swapParams.boundaryPt,
            abi.encode(SwapCallbackData({path: abi.encodePacked(swapParams.tokenY, swapParams.fee, swapParams.tokenX), payer: payer}))
        );
        require(amountX >= swapParams.minAcquired, "XMIN");
    }

    /// @notice Swap tokenY for tokenX, given user's desired amount of tokenX.
    /// @param swapParams params(for example: desired amount in above line), see SwapParams for more
    function swapY2XDesireX(
        SwapParams calldata swapParams
    ) external payable checkDeadline(swapParams.deadline) {
        require(swapParams.tokenX < swapParams.tokenY, "x<y");
        address poolAddr = pool(swapParams.tokenX, swapParams.tokenY, swapParams.fee);
        address payer = msg.sender;
        address recipient = (swapParams.recipient == address(0)) ? address(this): swapParams.recipient;
        ExchangeAmount memory amount;
        (amount.amountX, amount.amountY) = IiZiSwapPool(poolAddr).swapY2XDesireX(
            recipient, swapParams.amount, swapParams.boundaryPt,
            abi.encode(SwapCallbackData({path: abi.encodePacked(swapParams.tokenX, swapParams.fee, swapParams.tokenY), payer: payer}))
        );
        if (swapParams.boundaryPt == 800001) {
            require(amount.amountX >= swapParams.amount, 'Too much requested in swapY2XDesireX');
        }
        require(amount.amountY <= swapParams.maxPayed, "YMAX");
    }

    /// @notice Swap tokenX for tokenY, given max amount of tokenX user willing to pay.
    /// @param swapParams params(for example: max amount in above line), see SwapParams for more
    function swapX2Y(
        SwapParams calldata swapParams
    ) external payable checkDeadline(swapParams.deadline) {
        require(swapParams.tokenX < swapParams.tokenY, "x<y");
        address poolAddr = pool(swapParams.tokenX, swapParams.tokenY, swapParams.fee);
        address payer = msg.sender;
        address recipient = (swapParams.recipient == address(0)) ? address(this): swapParams.recipient;
        (, uint256 amountY) = IiZiSwapPool(poolAddr).swapX2Y(
            recipient, swapParams.amount, swapParams.boundaryPt,
            abi.encode(SwapCallbackData({path: abi.encodePacked(swapParams.tokenX, swapParams.fee, swapParams.tokenY), payer: payer}))
        );
        require(amountY >= swapParams.minAcquired, "YMIN");
    }

    /// @notice Swap tokenX for tokenY, given amount of tokenY user desires.
    /// @param swapParams params(for example: desired amount in above line), see SwapParams for more
    function swapX2YDesireY(
        SwapParams calldata swapParams
    ) external payable checkDeadline(swapParams.deadline) {
        require(swapParams.tokenX < swapParams.tokenY, "x<y");
        address poolAddr = pool(swapParams.tokenX, swapParams.tokenY, swapParams.fee);
        address payer = msg.sender;
        address recipient = (swapParams.recipient == address(0)) ? address(this): swapParams.recipient;
        ExchangeAmount memory amount;
        (amount.amountX, amount.amountY) = IiZiSwapPool(poolAddr).swapX2YDesireY(
            recipient, swapParams.amount, swapParams.boundaryPt,
            abi.encode(SwapCallbackData({path: abi.encodePacked(swapParams.tokenY, swapParams.fee, swapParams.tokenX), payer: payer}))
        );
        require(amount.amountX <= swapParams.maxPayed, "XMAX");
        if (swapParams.boundaryPt == -800001) {
            require(amount.amountY >= swapParams.amount, 'Too much requested in swapX2YDesireY');
        }
    }
    
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_factory","type":"address"},{"internalType":"address","name":"_weth","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"WETH9","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"factory","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes[]","name":"data","type":"bytes[]"}],"name":"multicall","outputs":[{"internalType":"bytes[]","name":"results","type":"bytes[]"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"tokenX","type":"address"},{"internalType":"address","name":"tokenY","type":"address"},{"internalType":"uint24","name":"fee","type":"uint24"}],"name":"pool","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"refundETH","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"components":[{"internalType":"bytes","name":"path","type":"bytes"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint128","name":"amount","type":"uint128"},{"internalType":"uint256","name":"minAcquired","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"internalType":"struct Swap.SwapAmountParams","name":"params","type":"tuple"}],"name":"swapAmount","outputs":[{"internalType":"uint256","name":"cost","type":"uint256"},{"internalType":"uint256","name":"acquire","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[{"components":[{"internalType":"bytes","name":"path","type":"bytes"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint128","name":"desire","type":"uint128"},{"internalType":"uint256","name":"maxPayed","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"internalType":"struct Swap.SwapDesireParams","name":"params","type":"tuple"}],"name":"swapDesire","outputs":[{"internalType":"uint256","name":"cost","type":"uint256"},{"internalType":"uint256","name":"acquire","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"tokenX","type":"address"},{"internalType":"address","name":"tokenY","type":"address"},{"internalType":"uint24","name":"fee","type":"uint24"},{"internalType":"int24","name":"boundaryPt","type":"int24"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint128","name":"amount","type":"uint128"},{"internalType":"uint256","name":"maxPayed","type":"uint256"},{"internalType":"uint256","name":"minAcquired","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"internalType":"struct Swap.SwapParams","name":"swapParams","type":"tuple"}],"name":"swapX2Y","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"x","type":"uint256"},{"internalType":"uint256","name":"y","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"swapX2YCallback","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"tokenX","type":"address"},{"internalType":"address","name":"tokenY","type":"address"},{"internalType":"uint24","name":"fee","type":"uint24"},{"internalType":"int24","name":"boundaryPt","type":"int24"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint128","name":"amount","type":"uint128"},{"internalType":"uint256","name":"maxPayed","type":"uint256"},{"internalType":"uint256","name":"minAcquired","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"internalType":"struct Swap.SwapParams","name":"swapParams","type":"tuple"}],"name":"swapX2YDesireY","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"tokenX","type":"address"},{"internalType":"address","name":"tokenY","type":"address"},{"internalType":"uint24","name":"fee","type":"uint24"},{"internalType":"int24","name":"boundaryPt","type":"int24"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint128","name":"amount","type":"uint128"},{"internalType":"uint256","name":"maxPayed","type":"uint256"},{"internalType":"uint256","name":"minAcquired","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"internalType":"struct Swap.SwapParams","name":"swapParams","type":"tuple"}],"name":"swapY2X","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"x","type":"uint256"},{"internalType":"uint256","name":"y","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"swapY2XCallback","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"tokenX","type":"address"},{"internalType":"address","name":"tokenY","type":"address"},{"internalType":"uint24","name":"fee","type":"uint24"},{"internalType":"int24","name":"boundaryPt","type":"int24"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint128","name":"amount","type":"uint128"},{"internalType":"uint256","name":"maxPayed","type":"uint256"},{"internalType":"uint256","name":"minAcquired","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"internalType":"struct Swap.SwapParams","name":"swapParams","type":"tuple"}],"name":"swapY2XDesireX","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"minAmount","type":"uint256"},{"internalType":"address","name":"recipient","type":"address"}],"name":"sweepToken","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"minAmount","type":"uint256"},{"internalType":"address","name":"recipient","type":"address"}],"name":"unwrapWETH9","outputs":[],"stateMutability":"payable","type":"function"},{"stateMutability":"payable","type":"receive"}]

60c06040526000196000553480156200001757600080fd5b5060405162002a6938038062002a698339810160408190526200003a9162000076565b6001600160601b0319606092831b8116608052911b1660a052620000ad565b80516001600160a01b03811681146200007157600080fd5b919050565b6000806040838503121562000089578182fd5b620000948362000059565b9150620000a46020840162000059565b90509250929050565b60805160601c60a05160601c612966620001036000396000818161017a0152818161097f01528181610a42015281816118090152818161184f01526118e4015260008181610221015261105801526129666000f3fe6080604052600436106100cc5760003560e01c806375ceafe61161007a57806375ceafe6146101a9578063826377f6146101bc578063ac9650d8146101cf578063becbcc6a146101ef578063c45a01551461020f578063d3e1c28414610243578063df2ab5bb14610263578063f3da61a91461027657600080fd5b8063115ff67e146100d857806312210e8a14610105578063187806841461010f578063247ec02c1461012f57806346edd9c81461014257806349404b7c146101555780634aa4a4fc1461016857600080fd5b366100d357005b600080fd5b6100eb6100e636600461235e565b610289565b604080519283526020830191909152015b60405180910390f35b61010d61040f565b005b34801561011b57600080fd5b5061010d61012a3660046124ff565b610421565b61010d61013d366004612442565b6104d1565b61010d610150366004612442565b610732565b61010d6101633660046124ad565b610965565b34801561017457600080fd5b5061019c7f000000000000000000000000000000000000000000000000000000000000000081565b6040516100fc919061260c565b6100eb6101b736600461235e565b610ab5565b61010d6101ca366004612442565b610bb7565b6101e26101dd366004612237565b610ea2565b6040516100fc9190612667565b3480156101fb57600080fd5b5061019c61020a3660046121b0565b611023565b34801561021b57600080fd5b5061019c7f000000000000000000000000000000000000000000000000000000000000000081565b34801561024f57600080fd5b5061010d61025e3660046124ff565b6110dc565b61010d6102713660046121f6565b61117b565b61010d610284366004612442565b611233565b6000808260800135804211156102ba5760405162461bcd60e51b81526004016102b19061274a565b60405180910390fd5b61033e6102cd6060860160408701612454565b6001600160801b03166102e66040870160208801612171565b60408051808201909152806102fb89806127ac565b8080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525050509082525033602090910152611521565b9150600054925083606001358311156103995760405162461bcd60e51b815260206004820152601c60248201527f546f6f206d75636820706179656420696e20737761704465736972650000000060448201526064016102b1565b6103a96060850160408601612454565b6001600160801b03168210156104015760405162461bcd60e51b815260206004820181905260248201527f546f6f206d7563682072657175657374656420696e207377617044657369726560448201526064016102b1565b506000196000559092909150565b471561041f5761041f33476116d8565b565b600061042f82840184612390565b90506000806000610443846000015161177b565b9250925092506104548383836117b7565b816001600160a01b0316836001600160a01b031610156104835761047e838560200151338b611807565b6104c7565b835161048e90611997565b156104b157835161049e906119d1565b84526104ab883386611521565b506104c7565b6104c1828560200151338b611807565b60008890555b5050505050505050565b806101000135804211156104f75760405162461bcd60e51b81526004016102b19061274a565b6105076040830160208401612171565b6001600160a01b031661051d6020840184612171565b6001600160a01b0316106105435760405162461bcd60e51b81526004016102b1906126db565b60006105756105556020850185612171565b6105656040860160208701612171565b61020a606087016040880161247b565b90503360008061058b60a0870160808801612171565b6001600160a01b0316146105ae576105a960a0860160808701612171565b6105b0565b305b905060006001600160a01b038416632c481252836105d460c08a0160a08b01612454565b6105e460808b0160608c016122c6565b60405180604001604052808c60200160208101906106029190612171565b8d6040016020810190610615919061247b565b8e60000160208101906106289190612171565b60405160200161063a939291906125a5565b6040516020818303038152906040528152602001896001600160a01b031681525060405160200161066b919061276f565b6040516020818303038152906040526040518563ffffffff1660e01b81526004016106999493929190612620565b6040805180830381600087803b1580156106b257600080fd5b505af11580156106c6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106ea91906124dc565b5090508560e0013581101561072a5760405162461bcd60e51b81526004016102b1906020808252600490820152632c26a4a760e11b604082015260600190565b505050505050565b806101000135804211156107585760405162461bcd60e51b81526004016102b19061274a565b6107686040830160208401612171565b6001600160a01b031661077e6020840184612171565b6001600160a01b0316106107a45760405162461bcd60e51b81526004016102b1906126db565b60006107b66105556020850185612171565b9050336000806107cc60a0870160808801612171565b6001600160a01b0316146107ef576107ea60a0860160808701612171565b6107f1565b305b905060006001600160a01b03841663857f812f8361081560c08a0160a08b01612454565b61082560808b0160608c016122c6565b604080518082019091528061083d60208e018e612171565b8d6040016020810190610850919061247b565b8e60200160208101906108639190612171565b604051602001610875939291906125a5565b6040516020818303038152906040528152602001896001600160a01b03168152506040516020016108a6919061276f565b6040516020818303038152906040526040518563ffffffff1660e01b81526004016108d49493929190612620565b6040805180830381600087803b1580156108ed57600080fd5b505af1158015610901573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061092591906124dc565b9150508560e0013581101561072a5760405162461bcd60e51b81526004016102b1906020808252600490820152632ca6a4a760e11b604082015260600190565b6040516370a0823160e01b81526000906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906370a08231906109b490309060040161260c565b60206040518083038186803b1580156109cc57600080fd5b505afa1580156109e0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a049190612495565b905082811015610a265760405162461bcd60e51b81526004016102b190612720565b8015610ab057604051632e1a7d4d60e01b8152600481018290527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031690632e1a7d4d90602401600060405180830381600087803b158015610a8e57600080fd5b505af1158015610aa2573d6000803e3d6000fd5b50505050610ab082826116d8565b505050565b600080826080013580421115610add5760405162461bcd60e51b81526004016102b19061274a565b610b58610af06060860160408701612454565b610b006040870160208801612171565b6040805180820190915280610b1589806127ac565b8080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525050509082525033602090910152611a08565b90935091506060840135821015610bb15760405162461bcd60e51b815260206004820181905260248201527f546f6f206d7563682072657175657374656420696e2073776170416d6f756e7460448201526064016102b1565b50915091565b80610100013580421115610bdd5760405162461bcd60e51b81526004016102b19061274a565b610bed6040830160208401612171565b6001600160a01b0316610c036020840184612171565b6001600160a01b031610610c295760405162461bcd60e51b81526004016102b1906126db565b6000610c3b6105556020850185612171565b905033600080610c5160a0870160808801612171565b6001600160a01b031614610c7457610c6f60a0860160808701612171565b610c76565b305b9050610c95604051806040016040528060008152602001600081525090565b6001600160a01b03841663f094685a83610cb560c08a0160a08b01612454565b610cc560808b0160608c016122c6565b6040805180820190915280610cdd60208e018e612171565b8d6040016020810190610cf0919061247b565b8e6020016020810190610d039190612171565b604051602001610d15939291906125a5565b6040516020818303038152906040528152602001896001600160a01b0316815250604051602001610d46919061276f565b6040516020818303038152906040526040518563ffffffff1660e01b8152600401610d749493929190612620565b6040805180830381600087803b158015610d8d57600080fd5b505af1158015610da1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610dc591906124dc565b60208301528152610ddc60808701606088016122c6565b60020b620c35011415610e6157610df960c0870160a08801612454565b6001600160801b031681600001511015610e615760405162461bcd60e51b8152602060048201526024808201527f546f6f206d7563682072657175657374656420696e20737761705932584465736044820152630d2e4cab60e31b60648201526084016102b1565b8560c001358160200151111561072a5760405162461bcd60e51b81526004016102b1906020808252600490820152630b29a82b60e31b604082015260600190565b6060816001600160401b03811115610eca57634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015610efd57816020015b6060815260200190600190039081610ee85790505b50905060005b8281101561101c5760008030868685818110610f2f57634e487b7160e01b600052603260045260246000fd5b9050602002810190610f4191906127ac565b604051610f4f9291906125e0565b600060405180830381855af49150503d8060008114610f8a576040519150601f19603f3d011682016040523d82523d6000602084013e610f8f565b606091505b509150915081610fdb57604481511015610fa857600080fd5b60048101905080806020019051810190610fc291906122e7565b60405162461bcd60e51b81526004016102b191906126c8565b80848481518110610ffc57634e487b7160e01b600052603260045260246000fd5b602002602001018190525050508080611014906128d1565b915050610f03565b5092915050565b604051635f65e63560e11b81526001600160a01b038481166004830152838116602483015262ffffff831660448301526000917f00000000000000000000000000000000000000000000000000000000000000009091169063becbcc6a9060640160206040518083038186803b15801561109c57600080fd5b505afa1580156110b0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110d49190612194565b949350505050565b60006110ea82840184612390565b905060008060006110fe846000015161177b565b92509250925061110f8383836117b7565b816001600160a01b0316836001600160a01b0316101561116b57835161113490611997565b15611151578351611144906119d1565b84526104ab873386611521565b611161828560200151338a611807565b60008790556104c7565b6104c7838560200151338a611807565b6040516370a0823160e01b81526000906001600160a01b038516906370a08231906111aa90309060040161260c565b60206040518083038186803b1580156111c257600080fd5b505afa1580156111d6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111fa9190612495565b90508281101561121c5760405162461bcd60e51b81526004016102b190612720565b801561122d5761122d848383611cc1565b50505050565b806101000135804211156112595760405162461bcd60e51b81526004016102b19061274a565b6112696040830160208401612171565b6001600160a01b031661127f6020840184612171565b6001600160a01b0316106112a55760405162461bcd60e51b81526004016102b1906126db565b60006112b76105556020850185612171565b9050336000806112cd60a0870160808801612171565b6001600160a01b0316146112f0576112eb60a0860160808701612171565b6112f2565b305b9050611311604051806040016040528060008152602001600081525090565b6001600160a01b0384166359dd14368361133160c08a0160a08b01612454565b61134160808b0160608c016122c6565b60405180604001604052808c602001602081019061135f9190612171565b8d6040016020810190611372919061247b565b8e60000160208101906113859190612171565b604051602001611397939291906125a5565b6040516020818303038152906040528152602001896001600160a01b03168152506040516020016113c8919061276f565b6040516020818303038152906040526040518563ffffffff1660e01b81526004016113f69493929190612620565b6040805180830381600087803b15801561140f57600080fd5b505af1158015611423573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061144791906124dc565b602083015280825260c0870135101561148b5760405162461bcd60e51b81526004016102b1906020808252600490820152630b09a82b60e31b604082015260600190565b61149b60808701606088016122c6565b60020b620c350019141561072a576114b960c0870160a08801612454565b6001600160801b03168160200151101561072a5760405162461bcd60e51b8152602060048201526024808201527f546f6f206d7563682072657175657374656420696e20737761705832594465736044820152636972655960e01b60648201526084016102b1565b60006001600160a01b038316611535573092505b6000806000611547856000015161177b565b925092509250600061155a848484611023565b9050826001600160a01b0316846001600160a01b0316101561162357806001600160a01b031663f094685a888a620c35018a60405160200161159c919061276f565b6040516020818303038152906040526040518563ffffffff1660e01b81526004016115ca9493929190612620565b6040805180830381600087803b1580156115e357600080fd5b505af11580156115f7573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061161b91906124dc565b5094506116cd565b806001600160a01b03166359dd1436888a620c3500198a60405160200161164a919061276f565b6040516020818303038152906040526040518563ffffffff1660e01b81526004016116789493929190612620565b6040805180830381600087803b15801561169157600080fd5b505af11580156116a5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116c991906124dc565b9550505b505050509392505050565b604080516000808252602082019092526001600160a01b03841690839060405161170291906125f0565b60006040518083038185875af1925050503d806000811461173f576040519150601f19603f3d011682016040523d82523d6000602084013e611744565b606091505b5050905080610ab05760405162461bcd60e51b815260206004820152600360248201526253544560e81b60448201526064016102b1565b600080806117898482611dc1565b9250611796846014611e75565b90506117ae6117a760036014612876565b8590611dc1565b91509193909250565b6117c2838383611023565b6001600160a01b0316336001600160a01b031614610ab05760405162461bcd60e51b8152602060048201526002602482015261073760f41b60448201526064016102b1565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316846001600160a01b03161480156118485750804710155b1561196a577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663d0e30db0826040518263ffffffff1660e01b81526004016000604051808303818588803b1580156118a857600080fd5b505af11580156118bc573d6000803e3d6000fd5b505060405163a9059cbb60e01b81526001600160a01b038681166004830152602482018690527f000000000000000000000000000000000000000000000000000000000000000016935063a9059cbb92506044019050602060405180830381600087803b15801561192c57600080fd5b505af1158015611940573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061196491906122a6565b5061122d565b6001600160a01b03831630141561198b57611986848383611cc1565b61122d565b61122d84848484611f20565b60006119a560036014612876565b60146119b2600382612876565b6119bc9190612876565b6119c69190612876565b825110159050919050565b6060611a026119e260036014612876565b6119ee60036014612876565b84516119fa919061288e565b849190612022565b92915050565b6000806001600160a01b038416611a1d573093505b3360015b6000611a308660000151611997565b90506000806000611a44896000015161177b565b9250925092506000611a57838584611023565b9050826001600160a01b0316846001600160a01b03161015611b7b576000816001600160a01b031663857f812f87611a8f578d611a91565b305b8f620c34fe1960405180604001604052808b8a8c604051602001611ab7939291906125a5565b60405160208183030381529060405281526020018e6001600160a01b0316815250604051602001611ae8919061276f565b6040516020818303038152906040526040518563ffffffff1660e01b8152600401611b169493929190612620565b6040805180830381600087803b158015611b2f57600080fd5b505af1158015611b43573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b6791906124dc565b995090508615611b75578099505b50611c7f565b6000816001600160a01b0316632c48125287611b97578d611b99565b305b8f620c34ff60405180604001604052808b8a8c604051602001611bbe939291906125a5565b60405160208183030381529060405281526020018e6001600160a01b0316815250604051602001611bef919061276f565b6040516020818303038152906040526040518563ffffffff1660e01b8152600401611c1d9493929190612620565b6040805180830381600087803b158015611c3657600080fd5b505af1158015611c4a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c6e91906124dc565b90995090508615611c7d578099505b505b600095508415611ca3578951309750611c97906119d1565b8a52969a508a96611cad565b5050505050611cb7565b5050505050611a21565b5050935093915050565b604080516001600160a01b038481166024830152604480830185905283518084039091018152606490920183526020820180516001600160e01b031663a9059cbb60e01b1790529151600092839290871691611d1d91906125f0565b6000604051808303816000865af19150503d8060008114611d5a576040519150601f19603f3d011682016040523d82523d6000602084013e611d5f565b606091505b5091509150818015611d89575080511580611d89575080806020019051810190611d8991906122a6565b611dba5760405162461bcd60e51b815260206004820152600260248201526114d560f21b60448201526064016102b1565b5050505050565b600081611dcf816014612876565b1015611e125760405162461bcd60e51b8152602060048201526012602482015271746f416464726573735f6f766572666c6f7760701b60448201526064016102b1565b611e1d826014612876565b83511015611e655760405162461bcd60e51b8152602060048201526015602482015274746f416464726573735f6f75744f66426f756e647360581b60448201526064016102b1565b500160200151600160601b900490565b600081611e83816003612876565b1015611ec55760405162461bcd60e51b8152602060048201526011602482015270746f55696e7432345f6f766572666c6f7760781b60448201526064016102b1565b611ed0826003612876565b83511015611f175760405162461bcd60e51b8152602060048201526014602482015273746f55696e7432345f6f75744f66426f756e647360601b60448201526064016102b1565b50016003015190565b604080516001600160a01b0385811660248301528481166044830152606480830185905283518084039091018152608490920183526020820180516001600160e01b03166323b872dd60e01b1790529151600092839290881691611f8491906125f0565b6000604051808303816000865af19150503d8060008114611fc1576040519150601f19603f3d011682016040523d82523d6000602084013e611fc6565b606091505b5091509150818015611ff0575080511580611ff0575080806020019051810190611ff091906122a6565b61072a5760405162461bcd60e51b815260206004820152600360248201526229aa2360e91b60448201526064016102b1565b60608161203081601f612876565b101561204e5760405162461bcd60e51b81526004016102b1906126f8565b826120598382612876565b10156120775760405162461bcd60e51b81526004016102b1906126f8565b6120818284612876565b845110156120c55760405162461bcd60e51b8152602060048201526011602482015270736c6963655f6f75744f66426f756e647360781b60448201526064016102b1565b6060821580156120e4576040519150600082526020820160405261212e565b6040519150601f8416801560200281840101858101878315602002848b0101015b8183101561211d578051835260209283019201612105565b5050858452601f01601f1916604052505b50949350505050565b803561214281612918565b919050565b600060a08284031215612158578081fd5b50919050565b803562ffffff8116811461214257600080fd5b600060208284031215612182578081fd5b813561218d81612918565b9392505050565b6000602082840312156121a5578081fd5b815161218d81612918565b6000806000606084860312156121c4578182fd5b83356121cf81612918565b925060208401356121df81612918565b91506121ed6040850161215e565b90509250925092565b60008060006060848603121561220a578283fd5b833561221581612918565b925060208401359150604084013561222c81612918565b809150509250925092565b60008060208385031215612249578182fd5b82356001600160401b038082111561225f578384fd5b818501915085601f830112612272578384fd5b813581811115612280578485fd5b8660208260051b8501011115612294578485fd5b60209290920196919550909350505050565b6000602082840312156122b7578081fd5b8151801515811461218d578182fd5b6000602082840312156122d7578081fd5b81358060020b811461218d578182fd5b6000602082840312156122f8578081fd5b81516001600160401b0381111561230d578182fd5b8201601f8101841361231d578182fd5b805161233061232b8261284f565b61281f565b818152856020838501011115612344578384fd5b6123558260208301602086016128a5565b95945050505050565b60006020828403121561236f578081fd5b81356001600160401b03811115612384578182fd5b6110d484828501612147565b600060208083850312156123a2578182fd5b82356001600160401b03808211156123b8578384fd5b90840190604082870312156123cb578384fd5b6123d36127f7565b8235828111156123e1578586fd5b83019150601f820187136123f3578485fd5b813561240161232b8261284f565b8181528886838601011115612414578687fd5b818685018783013790810185018690528152612431838501612137565b848201528094505050505092915050565b60006101208284031215612158578081fd5b600060208284031215612465578081fd5b81356001600160801b038116811461218d578182fd5b60006020828403121561248c578081fd5b61218d8261215e565b6000602082840312156124a6578081fd5b5051919050565b600080604083850312156124bf578182fd5b8235915060208301356124d181612918565b809150509250929050565b600080604083850312156124ee578182fd5b505080516020909101519092909150565b60008060008060608587031215612514578182fd5b843593506020850135925060408501356001600160401b0380821115612538578384fd5b818701915087601f83011261254b578384fd5b813581811115612559578485fd5b88602082850101111561256a578485fd5b95989497505060200194505050565b600081518084526125918160208601602086016128a5565b601f01601f19169290920160200192915050565b606093841b6bffffffffffffffffffffffff19908116825260e89390931b6001600160e81b0319166014820152921b166017820152602b0190565b8183823760009101908152919050565b600082516126028184602087016128a5565b9190910192915050565b6001600160a01b0391909116815260200190565b6001600160a01b03851681526001600160801b0384166020820152600283900b604082015260806060820181905260009061265d90830184612579565b9695505050505050565b6000602080830181845280855180835260408601915060408160051b8701019250838701855b828110156126bb57603f198886030184526126a9858351612579565b9450928501929085019060010161268d565b5092979650505050505050565b60208152600061218d6020830184612579565b602080825260039082015262783c7960e81b604082015260600190565b6020808252600e908201526d736c6963655f6f766572666c6f7760901b604082015260600190565b60208082526010908201526f0ae8aa89072409cdee8408adcdeeaced60831b604082015260600190565b6020808252600b908201526a4f7574206f662074696d6560a81b604082015260600190565b60208152600082516040602084015261278b6060840182612579565b602094909401516001600160a01b0316604093909301929092525090919050565b6000808335601e198436030181126127c2578283fd5b8301803591506001600160401b038211156127db578283fd5b6020019150368190038213156127f057600080fd5b9250929050565b604080519081016001600160401b038111828210171561281957612819612902565b60405290565b604051601f8201601f191681016001600160401b038111828210171561284757612847612902565b604052919050565b60006001600160401b0382111561286857612868612902565b50601f01601f191660200190565b60008219821115612889576128896128ec565b500190565b6000828210156128a0576128a06128ec565b500390565b60005b838110156128c05781810151838201526020016128a8565b8381111561122d5750506000910152565b60006000198214156128e5576128e56128ec565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b038116811461292d57600080fd5b5056fea264697066735822122078ee27f2e530732175884dc64f31c6041da99ef6cd21f953da98cf7ec9d451eb64736f6c634300080400330000000000000000000000008c7d3063579bdb0b90997e18a770eae32e1ebb080000000000000000000000005300000000000000000000000000000000000004

Deployed Bytecode

0x6080604052600436106100cc5760003560e01c806375ceafe61161007a57806375ceafe6146101a9578063826377f6146101bc578063ac9650d8146101cf578063becbcc6a146101ef578063c45a01551461020f578063d3e1c28414610243578063df2ab5bb14610263578063f3da61a91461027657600080fd5b8063115ff67e146100d857806312210e8a14610105578063187806841461010f578063247ec02c1461012f57806346edd9c81461014257806349404b7c146101555780634aa4a4fc1461016857600080fd5b366100d357005b600080fd5b6100eb6100e636600461235e565b610289565b604080519283526020830191909152015b60405180910390f35b61010d61040f565b005b34801561011b57600080fd5b5061010d61012a3660046124ff565b610421565b61010d61013d366004612442565b6104d1565b61010d610150366004612442565b610732565b61010d6101633660046124ad565b610965565b34801561017457600080fd5b5061019c7f000000000000000000000000530000000000000000000000000000000000000481565b6040516100fc919061260c565b6100eb6101b736600461235e565b610ab5565b61010d6101ca366004612442565b610bb7565b6101e26101dd366004612237565b610ea2565b6040516100fc9190612667565b3480156101fb57600080fd5b5061019c61020a3660046121b0565b611023565b34801561021b57600080fd5b5061019c7f0000000000000000000000008c7d3063579bdb0b90997e18a770eae32e1ebb0881565b34801561024f57600080fd5b5061010d61025e3660046124ff565b6110dc565b61010d6102713660046121f6565b61117b565b61010d610284366004612442565b611233565b6000808260800135804211156102ba5760405162461bcd60e51b81526004016102b19061274a565b60405180910390fd5b61033e6102cd6060860160408701612454565b6001600160801b03166102e66040870160208801612171565b60408051808201909152806102fb89806127ac565b8080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525050509082525033602090910152611521565b9150600054925083606001358311156103995760405162461bcd60e51b815260206004820152601c60248201527f546f6f206d75636820706179656420696e20737761704465736972650000000060448201526064016102b1565b6103a96060850160408601612454565b6001600160801b03168210156104015760405162461bcd60e51b815260206004820181905260248201527f546f6f206d7563682072657175657374656420696e207377617044657369726560448201526064016102b1565b506000196000559092909150565b471561041f5761041f33476116d8565b565b600061042f82840184612390565b90506000806000610443846000015161177b565b9250925092506104548383836117b7565b816001600160a01b0316836001600160a01b031610156104835761047e838560200151338b611807565b6104c7565b835161048e90611997565b156104b157835161049e906119d1565b84526104ab883386611521565b506104c7565b6104c1828560200151338b611807565b60008890555b5050505050505050565b806101000135804211156104f75760405162461bcd60e51b81526004016102b19061274a565b6105076040830160208401612171565b6001600160a01b031661051d6020840184612171565b6001600160a01b0316106105435760405162461bcd60e51b81526004016102b1906126db565b60006105756105556020850185612171565b6105656040860160208701612171565b61020a606087016040880161247b565b90503360008061058b60a0870160808801612171565b6001600160a01b0316146105ae576105a960a0860160808701612171565b6105b0565b305b905060006001600160a01b038416632c481252836105d460c08a0160a08b01612454565b6105e460808b0160608c016122c6565b60405180604001604052808c60200160208101906106029190612171565b8d6040016020810190610615919061247b565b8e60000160208101906106289190612171565b60405160200161063a939291906125a5565b6040516020818303038152906040528152602001896001600160a01b031681525060405160200161066b919061276f565b6040516020818303038152906040526040518563ffffffff1660e01b81526004016106999493929190612620565b6040805180830381600087803b1580156106b257600080fd5b505af11580156106c6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106ea91906124dc565b5090508560e0013581101561072a5760405162461bcd60e51b81526004016102b1906020808252600490820152632c26a4a760e11b604082015260600190565b505050505050565b806101000135804211156107585760405162461bcd60e51b81526004016102b19061274a565b6107686040830160208401612171565b6001600160a01b031661077e6020840184612171565b6001600160a01b0316106107a45760405162461bcd60e51b81526004016102b1906126db565b60006107b66105556020850185612171565b9050336000806107cc60a0870160808801612171565b6001600160a01b0316146107ef576107ea60a0860160808701612171565b6107f1565b305b905060006001600160a01b03841663857f812f8361081560c08a0160a08b01612454565b61082560808b0160608c016122c6565b604080518082019091528061083d60208e018e612171565b8d6040016020810190610850919061247b565b8e60200160208101906108639190612171565b604051602001610875939291906125a5565b6040516020818303038152906040528152602001896001600160a01b03168152506040516020016108a6919061276f565b6040516020818303038152906040526040518563ffffffff1660e01b81526004016108d49493929190612620565b6040805180830381600087803b1580156108ed57600080fd5b505af1158015610901573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061092591906124dc565b9150508560e0013581101561072a5760405162461bcd60e51b81526004016102b1906020808252600490820152632ca6a4a760e11b604082015260600190565b6040516370a0823160e01b81526000906001600160a01b037f000000000000000000000000530000000000000000000000000000000000000416906370a08231906109b490309060040161260c565b60206040518083038186803b1580156109cc57600080fd5b505afa1580156109e0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a049190612495565b905082811015610a265760405162461bcd60e51b81526004016102b190612720565b8015610ab057604051632e1a7d4d60e01b8152600481018290527f00000000000000000000000053000000000000000000000000000000000000046001600160a01b031690632e1a7d4d90602401600060405180830381600087803b158015610a8e57600080fd5b505af1158015610aa2573d6000803e3d6000fd5b50505050610ab082826116d8565b505050565b600080826080013580421115610add5760405162461bcd60e51b81526004016102b19061274a565b610b58610af06060860160408701612454565b610b006040870160208801612171565b6040805180820190915280610b1589806127ac565b8080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525050509082525033602090910152611a08565b90935091506060840135821015610bb15760405162461bcd60e51b815260206004820181905260248201527f546f6f206d7563682072657175657374656420696e2073776170416d6f756e7460448201526064016102b1565b50915091565b80610100013580421115610bdd5760405162461bcd60e51b81526004016102b19061274a565b610bed6040830160208401612171565b6001600160a01b0316610c036020840184612171565b6001600160a01b031610610c295760405162461bcd60e51b81526004016102b1906126db565b6000610c3b6105556020850185612171565b905033600080610c5160a0870160808801612171565b6001600160a01b031614610c7457610c6f60a0860160808701612171565b610c76565b305b9050610c95604051806040016040528060008152602001600081525090565b6001600160a01b03841663f094685a83610cb560c08a0160a08b01612454565b610cc560808b0160608c016122c6565b6040805180820190915280610cdd60208e018e612171565b8d6040016020810190610cf0919061247b565b8e6020016020810190610d039190612171565b604051602001610d15939291906125a5565b6040516020818303038152906040528152602001896001600160a01b0316815250604051602001610d46919061276f565b6040516020818303038152906040526040518563ffffffff1660e01b8152600401610d749493929190612620565b6040805180830381600087803b158015610d8d57600080fd5b505af1158015610da1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610dc591906124dc565b60208301528152610ddc60808701606088016122c6565b60020b620c35011415610e6157610df960c0870160a08801612454565b6001600160801b031681600001511015610e615760405162461bcd60e51b8152602060048201526024808201527f546f6f206d7563682072657175657374656420696e20737761705932584465736044820152630d2e4cab60e31b60648201526084016102b1565b8560c001358160200151111561072a5760405162461bcd60e51b81526004016102b1906020808252600490820152630b29a82b60e31b604082015260600190565b6060816001600160401b03811115610eca57634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015610efd57816020015b6060815260200190600190039081610ee85790505b50905060005b8281101561101c5760008030868685818110610f2f57634e487b7160e01b600052603260045260246000fd5b9050602002810190610f4191906127ac565b604051610f4f9291906125e0565b600060405180830381855af49150503d8060008114610f8a576040519150601f19603f3d011682016040523d82523d6000602084013e610f8f565b606091505b509150915081610fdb57604481511015610fa857600080fd5b60048101905080806020019051810190610fc291906122e7565b60405162461bcd60e51b81526004016102b191906126c8565b80848481518110610ffc57634e487b7160e01b600052603260045260246000fd5b602002602001018190525050508080611014906128d1565b915050610f03565b5092915050565b604051635f65e63560e11b81526001600160a01b038481166004830152838116602483015262ffffff831660448301526000917f0000000000000000000000008c7d3063579bdb0b90997e18a770eae32e1ebb089091169063becbcc6a9060640160206040518083038186803b15801561109c57600080fd5b505afa1580156110b0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110d49190612194565b949350505050565b60006110ea82840184612390565b905060008060006110fe846000015161177b565b92509250925061110f8383836117b7565b816001600160a01b0316836001600160a01b0316101561116b57835161113490611997565b15611151578351611144906119d1565b84526104ab873386611521565b611161828560200151338a611807565b60008790556104c7565b6104c7838560200151338a611807565b6040516370a0823160e01b81526000906001600160a01b038516906370a08231906111aa90309060040161260c565b60206040518083038186803b1580156111c257600080fd5b505afa1580156111d6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111fa9190612495565b90508281101561121c5760405162461bcd60e51b81526004016102b190612720565b801561122d5761122d848383611cc1565b50505050565b806101000135804211156112595760405162461bcd60e51b81526004016102b19061274a565b6112696040830160208401612171565b6001600160a01b031661127f6020840184612171565b6001600160a01b0316106112a55760405162461bcd60e51b81526004016102b1906126db565b60006112b76105556020850185612171565b9050336000806112cd60a0870160808801612171565b6001600160a01b0316146112f0576112eb60a0860160808701612171565b6112f2565b305b9050611311604051806040016040528060008152602001600081525090565b6001600160a01b0384166359dd14368361133160c08a0160a08b01612454565b61134160808b0160608c016122c6565b60405180604001604052808c602001602081019061135f9190612171565b8d6040016020810190611372919061247b565b8e60000160208101906113859190612171565b604051602001611397939291906125a5565b6040516020818303038152906040528152602001896001600160a01b03168152506040516020016113c8919061276f565b6040516020818303038152906040526040518563ffffffff1660e01b81526004016113f69493929190612620565b6040805180830381600087803b15801561140f57600080fd5b505af1158015611423573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061144791906124dc565b602083015280825260c0870135101561148b5760405162461bcd60e51b81526004016102b1906020808252600490820152630b09a82b60e31b604082015260600190565b61149b60808701606088016122c6565b60020b620c350019141561072a576114b960c0870160a08801612454565b6001600160801b03168160200151101561072a5760405162461bcd60e51b8152602060048201526024808201527f546f6f206d7563682072657175657374656420696e20737761705832594465736044820152636972655960e01b60648201526084016102b1565b60006001600160a01b038316611535573092505b6000806000611547856000015161177b565b925092509250600061155a848484611023565b9050826001600160a01b0316846001600160a01b0316101561162357806001600160a01b031663f094685a888a620c35018a60405160200161159c919061276f565b6040516020818303038152906040526040518563ffffffff1660e01b81526004016115ca9493929190612620565b6040805180830381600087803b1580156115e357600080fd5b505af11580156115f7573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061161b91906124dc565b5094506116cd565b806001600160a01b03166359dd1436888a620c3500198a60405160200161164a919061276f565b6040516020818303038152906040526040518563ffffffff1660e01b81526004016116789493929190612620565b6040805180830381600087803b15801561169157600080fd5b505af11580156116a5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116c991906124dc565b9550505b505050509392505050565b604080516000808252602082019092526001600160a01b03841690839060405161170291906125f0565b60006040518083038185875af1925050503d806000811461173f576040519150601f19603f3d011682016040523d82523d6000602084013e611744565b606091505b5050905080610ab05760405162461bcd60e51b815260206004820152600360248201526253544560e81b60448201526064016102b1565b600080806117898482611dc1565b9250611796846014611e75565b90506117ae6117a760036014612876565b8590611dc1565b91509193909250565b6117c2838383611023565b6001600160a01b0316336001600160a01b031614610ab05760405162461bcd60e51b8152602060048201526002602482015261073760f41b60448201526064016102b1565b7f00000000000000000000000053000000000000000000000000000000000000046001600160a01b0316846001600160a01b03161480156118485750804710155b1561196a577f00000000000000000000000053000000000000000000000000000000000000046001600160a01b031663d0e30db0826040518263ffffffff1660e01b81526004016000604051808303818588803b1580156118a857600080fd5b505af11580156118bc573d6000803e3d6000fd5b505060405163a9059cbb60e01b81526001600160a01b038681166004830152602482018690527f000000000000000000000000530000000000000000000000000000000000000416935063a9059cbb92506044019050602060405180830381600087803b15801561192c57600080fd5b505af1158015611940573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061196491906122a6565b5061122d565b6001600160a01b03831630141561198b57611986848383611cc1565b61122d565b61122d84848484611f20565b60006119a560036014612876565b60146119b2600382612876565b6119bc9190612876565b6119c69190612876565b825110159050919050565b6060611a026119e260036014612876565b6119ee60036014612876565b84516119fa919061288e565b849190612022565b92915050565b6000806001600160a01b038416611a1d573093505b3360015b6000611a308660000151611997565b90506000806000611a44896000015161177b565b9250925092506000611a57838584611023565b9050826001600160a01b0316846001600160a01b03161015611b7b576000816001600160a01b031663857f812f87611a8f578d611a91565b305b8f620c34fe1960405180604001604052808b8a8c604051602001611ab7939291906125a5565b60405160208183030381529060405281526020018e6001600160a01b0316815250604051602001611ae8919061276f565b6040516020818303038152906040526040518563ffffffff1660e01b8152600401611b169493929190612620565b6040805180830381600087803b158015611b2f57600080fd5b505af1158015611b43573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b6791906124dc565b995090508615611b75578099505b50611c7f565b6000816001600160a01b0316632c48125287611b97578d611b99565b305b8f620c34ff60405180604001604052808b8a8c604051602001611bbe939291906125a5565b60405160208183030381529060405281526020018e6001600160a01b0316815250604051602001611bef919061276f565b6040516020818303038152906040526040518563ffffffff1660e01b8152600401611c1d9493929190612620565b6040805180830381600087803b158015611c3657600080fd5b505af1158015611c4a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c6e91906124dc565b90995090508615611c7d578099505b505b600095508415611ca3578951309750611c97906119d1565b8a52969a508a96611cad565b5050505050611cb7565b5050505050611a21565b5050935093915050565b604080516001600160a01b038481166024830152604480830185905283518084039091018152606490920183526020820180516001600160e01b031663a9059cbb60e01b1790529151600092839290871691611d1d91906125f0565b6000604051808303816000865af19150503d8060008114611d5a576040519150601f19603f3d011682016040523d82523d6000602084013e611d5f565b606091505b5091509150818015611d89575080511580611d89575080806020019051810190611d8991906122a6565b611dba5760405162461bcd60e51b815260206004820152600260248201526114d560f21b60448201526064016102b1565b5050505050565b600081611dcf816014612876565b1015611e125760405162461bcd60e51b8152602060048201526012602482015271746f416464726573735f6f766572666c6f7760701b60448201526064016102b1565b611e1d826014612876565b83511015611e655760405162461bcd60e51b8152602060048201526015602482015274746f416464726573735f6f75744f66426f756e647360581b60448201526064016102b1565b500160200151600160601b900490565b600081611e83816003612876565b1015611ec55760405162461bcd60e51b8152602060048201526011602482015270746f55696e7432345f6f766572666c6f7760781b60448201526064016102b1565b611ed0826003612876565b83511015611f175760405162461bcd60e51b8152602060048201526014602482015273746f55696e7432345f6f75744f66426f756e647360601b60448201526064016102b1565b50016003015190565b604080516001600160a01b0385811660248301528481166044830152606480830185905283518084039091018152608490920183526020820180516001600160e01b03166323b872dd60e01b1790529151600092839290881691611f8491906125f0565b6000604051808303816000865af19150503d8060008114611fc1576040519150601f19603f3d011682016040523d82523d6000602084013e611fc6565b606091505b5091509150818015611ff0575080511580611ff0575080806020019051810190611ff091906122a6565b61072a5760405162461bcd60e51b815260206004820152600360248201526229aa2360e91b60448201526064016102b1565b60608161203081601f612876565b101561204e5760405162461bcd60e51b81526004016102b1906126f8565b826120598382612876565b10156120775760405162461bcd60e51b81526004016102b1906126f8565b6120818284612876565b845110156120c55760405162461bcd60e51b8152602060048201526011602482015270736c6963655f6f75744f66426f756e647360781b60448201526064016102b1565b6060821580156120e4576040519150600082526020820160405261212e565b6040519150601f8416801560200281840101858101878315602002848b0101015b8183101561211d578051835260209283019201612105565b5050858452601f01601f1916604052505b50949350505050565b803561214281612918565b919050565b600060a08284031215612158578081fd5b50919050565b803562ffffff8116811461214257600080fd5b600060208284031215612182578081fd5b813561218d81612918565b9392505050565b6000602082840312156121a5578081fd5b815161218d81612918565b6000806000606084860312156121c4578182fd5b83356121cf81612918565b925060208401356121df81612918565b91506121ed6040850161215e565b90509250925092565b60008060006060848603121561220a578283fd5b833561221581612918565b925060208401359150604084013561222c81612918565b809150509250925092565b60008060208385031215612249578182fd5b82356001600160401b038082111561225f578384fd5b818501915085601f830112612272578384fd5b813581811115612280578485fd5b8660208260051b8501011115612294578485fd5b60209290920196919550909350505050565b6000602082840312156122b7578081fd5b8151801515811461218d578182fd5b6000602082840312156122d7578081fd5b81358060020b811461218d578182fd5b6000602082840312156122f8578081fd5b81516001600160401b0381111561230d578182fd5b8201601f8101841361231d578182fd5b805161233061232b8261284f565b61281f565b818152856020838501011115612344578384fd5b6123558260208301602086016128a5565b95945050505050565b60006020828403121561236f578081fd5b81356001600160401b03811115612384578182fd5b6110d484828501612147565b600060208083850312156123a2578182fd5b82356001600160401b03808211156123b8578384fd5b90840190604082870312156123cb578384fd5b6123d36127f7565b8235828111156123e1578586fd5b83019150601f820187136123f3578485fd5b813561240161232b8261284f565b8181528886838601011115612414578687fd5b818685018783013790810185018690528152612431838501612137565b848201528094505050505092915050565b60006101208284031215612158578081fd5b600060208284031215612465578081fd5b81356001600160801b038116811461218d578182fd5b60006020828403121561248c578081fd5b61218d8261215e565b6000602082840312156124a6578081fd5b5051919050565b600080604083850312156124bf578182fd5b8235915060208301356124d181612918565b809150509250929050565b600080604083850312156124ee578182fd5b505080516020909101519092909150565b60008060008060608587031215612514578182fd5b843593506020850135925060408501356001600160401b0380821115612538578384fd5b818701915087601f83011261254b578384fd5b813581811115612559578485fd5b88602082850101111561256a578485fd5b95989497505060200194505050565b600081518084526125918160208601602086016128a5565b601f01601f19169290920160200192915050565b606093841b6bffffffffffffffffffffffff19908116825260e89390931b6001600160e81b0319166014820152921b166017820152602b0190565b8183823760009101908152919050565b600082516126028184602087016128a5565b9190910192915050565b6001600160a01b0391909116815260200190565b6001600160a01b03851681526001600160801b0384166020820152600283900b604082015260806060820181905260009061265d90830184612579565b9695505050505050565b6000602080830181845280855180835260408601915060408160051b8701019250838701855b828110156126bb57603f198886030184526126a9858351612579565b9450928501929085019060010161268d565b5092979650505050505050565b60208152600061218d6020830184612579565b602080825260039082015262783c7960e81b604082015260600190565b6020808252600e908201526d736c6963655f6f766572666c6f7760901b604082015260600190565b60208082526010908201526f0ae8aa89072409cdee8408adcdeeaced60831b604082015260600190565b6020808252600b908201526a4f7574206f662074696d6560a81b604082015260600190565b60208152600082516040602084015261278b6060840182612579565b602094909401516001600160a01b0316604093909301929092525090919050565b6000808335601e198436030181126127c2578283fd5b8301803591506001600160401b038211156127db578283fd5b6020019150368190038213156127f057600080fd5b9250929050565b604080519081016001600160401b038111828210171561281957612819612902565b60405290565b604051601f8201601f191681016001600160401b038111828210171561284757612847612902565b604052919050565b60006001600160401b0382111561286857612868612902565b50601f01601f191660200190565b60008219821115612889576128896128ec565b500190565b6000828210156128a0576128a06128ec565b500390565b60005b838110156128c05781810151838201526020016128a8565b8381111561122d5750506000910152565b60006000198214156128e5576128e56128ec565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b038116811461292d57600080fd5b5056fea264697066735822122078ee27f2e530732175884dc64f31c6041da99ef6cd21f953da98cf7ec9d451eb64736f6c63430008040033

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

0000000000000000000000008c7d3063579bdb0b90997e18a770eae32e1ebb080000000000000000000000005300000000000000000000000000000000000004

-----Decoded View---------------
Arg [0] : _factory (address): 0x8c7d3063579BdB0b90997e18A770eaE32E1eBb08
Arg [1] : _weth (address): 0x5300000000000000000000000000000000000004

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 0000000000000000000000008c7d3063579bdb0b90997e18a770eae32e1ebb08
Arg [1] : 0000000000000000000000005300000000000000000000000000000000000004


Deployed Bytecode Sourcemap

49885:13091:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;56043:610;;;;;;:::i;:::-;;:::i;:::-;;;;22734:25:1;;;22790:2;22775:18;;22768:34;;;;22707:18;56043:610:0;;;;;;;;12956:138;;;:::i;:::-;;51838:930;;;;;;;;;;-1:-1:-1;51838:930:0;;;;;:::i;:::-;;:::i;58909:757::-;;;;;;:::i;:::-;;:::i;61036:::-;;;;;;:::i;:::-;;:::i;11410:328::-;;;;;;:::i;:::-;;:::i;7118:30::-;;;;;;;;;;;;;;;;;;;;;;:::i;56947:467::-;;;;;;:::i;:::-;;:::i;59856:985::-;;;;;;:::i;:::-;;:::i;7878:581::-;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;14190:163::-;;;;;;;;;;-1:-1:-1;14190:163:0;;;;;:::i;:::-;;:::i;7037:32::-;;;;;;;;;;;;;;;50654:926;;;;;;;;;;-1:-1:-1;50654:926:0;;;;;:::i;:::-;;:::i;12274:338::-;;;;;;:::i;:::-;;:::i;61981:986::-;;;;;;:::i;:::-;;:::i;56043:610::-;56190:12;56204:15;56155:6;:15;;;7236:8;7217:15;:27;;7209:51;;;;-1:-1:-1;;;7209:51:0;;;;;;;:::i;:::-;;;;;;;;;56257:159:::1;56290:13;::::0;;;::::1;::::0;::::1;;:::i;:::-;-1:-1:-1::0;;;;;56257:159:0::1;56318:16;::::0;;;::::1;::::0;::::1;;:::i;:::-;56349:56;::::0;;;;::::1;::::0;;;;56373:11:::1;:6:::0;;:11:::1;:::i;:::-;56349:56;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;::::0;;;;-1:-1:-1;;;56349:56:0;;;-1:-1:-1;56393:10:0::1;56349:56;::::0;;::::1;::::0;56257:18:::1;:159::i;:::-;56247:169;;56434:11;;56427:18;;56472:6;:15;;;56464:4;:23;;56456:64;;;::::0;-1:-1:-1;;;56456:64:0;;16212:2:1;56456:64:0::1;::::0;::::1;16194:21:1::0;16251:2;16231:18;;;16224:30;16290;16270:18;;;16263:58;16338:18;;56456:64:0::1;16184:178:1::0;56456:64:0::1;56550:13;::::0;;;::::1;::::0;::::1;;:::i;:::-;-1:-1:-1::0;;;;;56539:24:0::1;:7;:24;;56531:69;;;::::0;-1:-1:-1;;;56531:69:0;;18311:2:1;56531:69:0::1;::::0;::::1;18293:21:1::0;;;18330:18;;;18323:30;18389:34;18369:18;;;18362:62;18441:18;;56531:69:0::1;18283:182:1::0;56531:69:0::1;-1:-1:-1::0;;;56611:11:0::1;:34:::0;56043:610;;;;-1:-1:-1;56043:610:0:o;12956:138::-;13009:21;:25;13005:81;;13036:50;13052:10;13064:21;13036:15;:50::i;:::-;12956:138::o;51838:930::-;51969:26;51998:36;;;;52009:4;51998:36;:::i;:::-;51969:65;;52046:14;52062;52078:10;52092:25;:2;:7;;;:23;:25::i;:::-;52045:72;;;;;;52128:27;52135:6;52143;52151:3;52128:6;:27::i;:::-;52179:6;-1:-1:-1;;;;;52170:15:0;:6;-1:-1:-1;;;;;52170:15:0;;52166:595;;;52304:36;52308:6;52316:2;:8;;;52326:10;52338:1;52304:3;:36::i;:::-;52166:595;;;52491:7;;:26;;:24;:26::i;:::-;52487:263;;;52548:7;;:19;;:17;:19::i;:::-;52538:29;;52586:37;52605:1;52608:10;52538:2;52586:18;:37::i;:::-;;52487:263;;;52664:36;52668:6;52676:2;:8;;;52686:10;52698:1;52664:3;:36::i;:::-;52719:11;:15;;;52487:263;51838:930;;;;;;;;:::o;58909:757::-;59005:10;:19;;;7236:8;7217:15;:27;;7209:51;;;;-1:-1:-1;;;7209:51:0;;;;;;;:::i;:::-;59065:17:::1;::::0;;;::::1;::::0;::::1;;:::i;:::-;-1:-1:-1::0;;;;;59045:37:0::1;:17;;::::0;::::1;:10:::0;:17:::1;:::i;:::-;-1:-1:-1::0;;;;;59045:37:0::1;;59037:53;;;;-1:-1:-1::0;;;59037:53:0::1;;;;;;;:::i;:::-;59101:16;59120:58;59125:17;;::::0;::::1;:10:::0;:17:::1;:::i;:::-;59144;::::0;;;::::1;::::0;::::1;;:::i;:::-;59163:14;::::0;;;::::1;::::0;::::1;;:::i;59120:58::-;59101:77:::0;-1:-1:-1;59205:10:0::1;59189:13;::::0;59247:20:::1;::::0;;;::::1;::::0;::::1;;:::i;:::-;-1:-1:-1::0;;;;;59247:34:0::1;;59246:74;;59300:20;::::0;;;::::1;::::0;::::1;;:::i;:::-;59246:74;;;59293:4;59246:74;59226:94:::0;-1:-1:-1;59332:15:0::1;-1:-1:-1::0;;;;;59353:30:0;::::1;;59226:94:::0;59409:17:::1;::::0;;;::::1;::::0;::::1;;:::i;:::-;59428:21;::::0;;;::::1;::::0;::::1;;:::i;:::-;59475:110;;;;;;;;59516:10;:17;;;;;;;;;;:::i;:::-;59535:10;:14;;;;;;;;;;:::i;:::-;59551:10;:17;;;;;;;;;;:::i;:::-;59499:70;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;59475:110;;;;59578:5;-1:-1:-1::0;;;;;59475:110:0::1;;;::::0;59464:122:::1;;;;;;;;:::i;:::-;;;;;;;;;;;;;59353:244;;;;;;;;;;;;;;;;;;:::i;:::-;;::::0;::::1;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;59331:266;;;59627:10;:22;;;59616:7;:33;;59608:50;;;;-1:-1:-1::0;;;59608:50:0::1;;;;;;20377:2:1::0;20359:21;;;20416:1;20396:18;;;20389:29;-1:-1:-1;;;20449:2:1;20434:18;;20427:34;20493:2;20478:18;;20349:153;59608:50:0::1;7271:1;;;;58909:757:::0;;:::o;61036:::-;61132:10;:19;;;7236:8;7217:15;:27;;7209:51;;;;-1:-1:-1;;;7209:51:0;;;;;;;:::i;:::-;61192:17:::1;::::0;;;::::1;::::0;::::1;;:::i;:::-;-1:-1:-1::0;;;;;61172:37:0::1;:17;;::::0;::::1;:10:::0;:17:::1;:::i;:::-;-1:-1:-1::0;;;;;61172:37:0::1;;61164:53;;;;-1:-1:-1::0;;;61164:53:0::1;;;;;;;:::i;:::-;61228:16;61247:58;61252:17;;::::0;::::1;:10:::0;:17:::1;:::i;61247:58::-;61228:77:::0;-1:-1:-1;61332:10:0::1;61316:13;::::0;61374:20:::1;::::0;;;::::1;::::0;::::1;;:::i;:::-;-1:-1:-1::0;;;;;61374:34:0::1;;61373:74;;61427:20;::::0;;;::::1;::::0;::::1;;:::i;:::-;61373:74;;;61420:4;61373:74;61353:94:::0;-1:-1:-1;61461:15:0::1;-1:-1:-1::0;;;;;61480:30:0;::::1;;61353:94:::0;61536:17:::1;::::0;;;::::1;::::0;::::1;;:::i;:::-;61555:21;::::0;;;::::1;::::0;::::1;;:::i;:::-;61602:110;::::0;;;;::::1;::::0;;;;61643:17:::1;;::::0;::::1;:10:::0;:17:::1;:::i;:::-;61662:10;:14;;;;;;;;;;:::i;:::-;61678:10;:17;;;;;;;;;;:::i;:::-;61626:70;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;61602:110;;;;61705:5;-1:-1:-1::0;;;;;61602:110:0::1;;;::::0;61591:122:::1;;;;;;;;:::i;:::-;;;;;;;;;;;;;61480:244;;;;;;;;;;;;;;;;;;:::i;:::-;;::::0;::::1;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;61458:266;;;61754:10;:22;;;61743:7;:33;;61735:50;;;;-1:-1:-1::0;;;61735:50:0::1;;;;;;17647:2:1::0;17629:21;;;17686:1;17666:18;;;17659:29;-1:-1:-1;;;17719:2:1;17704:18;;17697:34;17763:2;17748:18;;17619:153;11410:328:0;11511:38;;-1:-1:-1;;;11511:38:0;;11497:11;;-1:-1:-1;;;;;11518:5:0;11511:23;;;;:38;;11543:4;;11511:38;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;11497:52;;11575:9;11568:3;:16;;11560:45;;;;-1:-1:-1;;;11560:45:0;;;;;;;:::i;:::-;11622:7;;11618:113;;11646:27;;-1:-1:-1;;;11646:27:0;;;;;22524:25:1;;;11653:5:0;-1:-1:-1;;;;;11646:22:0;;;;22497:18:1;;11646:27:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;11688:31;11704:9;11715:3;11688:15;:31::i;:::-;11410:328;;;:::o;56947:467::-;57094:12;57108:15;57059:6;:15;;;7236:8;7217:15;:27;;7209:51;;;;-1:-1:-1;;;7209:51:0;;;;;;;:::i;:::-;57160:161:::1;57193:13;::::0;;;::::1;::::0;::::1;;:::i;:::-;57222:16;::::0;;;::::1;::::0;::::1;;:::i;:::-;57254:56;::::0;;;;::::1;::::0;;;;57278:11:::1;:6:::0;;:11:::1;:::i;:::-;57254:56;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;::::0;;;;-1:-1:-1;;;57254:56:0;;;-1:-1:-1;57298:10:0::1;57254:56;::::0;;::::1;::::0;57160:18:::1;:161::i;:::-;57142:179:::0;;-1:-1:-1;57142:179:0;-1:-1:-1;57351:18:0::1;::::0;::::1;;57340:29:::0;::::1;;57332:74;;;::::0;-1:-1:-1;;;57332:74:0;;21395:2:1;57332:74:0::1;::::0;::::1;21377:21:1::0;;;21414:18;;;21407:30;21473:34;21453:18;;;21446:62;21525:18;;57332:74:0::1;21367:182:1::0;57332:74:0::1;56947:467:::0;;;;:::o;59856:985::-;59959:10;:19;;;7236:8;7217:15;:27;;7209:51;;;;-1:-1:-1;;;7209:51:0;;;;;;;:::i;:::-;60019:17:::1;::::0;;;::::1;::::0;::::1;;:::i;:::-;-1:-1:-1::0;;;;;59999:37:0::1;:17;;::::0;::::1;:10:::0;:17:::1;:::i;:::-;-1:-1:-1::0;;;;;59999:37:0::1;;59991:53;;;;-1:-1:-1::0;;;59991:53:0::1;;;;;;;:::i;:::-;60055:16;60074:58;60079:17;;::::0;::::1;:10:::0;:17:::1;:::i;60074:58::-;60055:77:::0;-1:-1:-1;60159:10:0::1;60143:13;::::0;60201:20:::1;::::0;;;::::1;::::0;::::1;;:::i;:::-;-1:-1:-1::0;;;;;60201:34:0::1;;60200:74;;60254:20;::::0;;;::::1;::::0;::::1;;:::i;:::-;60200:74;;;60247:4;60200:74;60180:94;;60285:28;-1:-1:-1::0;;;;;;;;;;;;;;;;;;;60285:28:0::1;-1:-1:-1::0;;;;;60359:37:0;::::1;;60411:9:::0;60422:17:::1;::::0;;;::::1;::::0;::::1;;:::i;:::-;60441:21;::::0;;;::::1;::::0;::::1;;:::i;:::-;60488:110;::::0;;;;::::1;::::0;;;;60529:17:::1;;::::0;::::1;:10:::0;:17:::1;:::i;:::-;60548:10;:14;;;;;;;;;;:::i;:::-;60564:10;:17;;;;;;;;;;:::i;:::-;60512:70;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;60488:110;;;;60591:5;-1:-1:-1::0;;;;;60488:110:0::1;;;::::0;60477:122:::1;;;;;;;;:::i;:::-;;;;;;;;;;;;;60359:251;;;;;;;;;;;;;;;;;;:::i;:::-;;::::0;::::1;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;60341:14;::::0;::::1;60324:286:::0;;;60625:21:::1;::::0;;;::::1;::::0;::::1;;:::i;:::-;:31;;60650:6;60625:31;60621:148;;;60699:17;::::0;;;::::1;::::0;::::1;;:::i;:::-;-1:-1:-1::0;;;;;60681:35:0::1;:6;:14;;;:35;;60673:84;;;::::0;-1:-1:-1;;;60673:84:0;;16569:2:1;60673:84:0::1;::::0;::::1;16551:21:1::0;16608:2;16588:18;;;16581:30;16647:34;16627:18;;;16620:62;-1:-1:-1;;;16698:18:1;;;16691:34;16742:19;;60673:84:0::1;16541:226:1::0;60673:84:0::1;60805:10;:19;;;60787:6;:14;;;:37;;60779:54;;;;-1:-1:-1::0;;;60779:54:0::1;;;;;;14798:2:1::0;14780:21;;;14837:1;14817:18;;;14810:29;-1:-1:-1;;;14870:2:1;14855:18;;14848:34;14914:2;14899:18;;14770:153;7878:581:0;7946:22;8003:4;-1:-1:-1;;;;;7991:24:0;;;;;-1:-1:-1;;;7991:24:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;7981:34;;8031:9;8026:426;8046:15;;;8026:426;;;8084:12;;8129:4;8148;;8153:1;8148:7;;;;;-1:-1:-1;;;8148:7:0;;;;;;;;;;;;;;;;;;;;:::i;:::-;8121:35;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8083:73;;;;8178:7;8173:232;;8226:2;8210:6;:13;:18;8206:32;;;8230:8;;;8206:32;8311:4;8303:6;8299:17;8289:27;;8371:6;8360:28;;;;;;;;;;;;:::i;:::-;8353:36;;-1:-1:-1;;;8353:36:0;;;;;;;;:::i;8173:232::-;8434:6;8421:7;8429:1;8421:10;;;;;;-1:-1:-1;;;8421:10:0;;;;;;;;;;;;;;:19;;;;8026:426;;8063:3;;;;;:::i;:::-;;;;8026:426;;;;7878:581;;;;:::o;14190:163::-;14295:50;;-1:-1:-1;;;14295:50:0;;-1:-1:-1;;;;;9865:15:1;;;14295:50:0;;;9847:34:1;9917:15;;;9897:18;;;9890:43;9981:8;9969:21;;9949:18;;;9942:49;14268:7:0;;14311;14295:29;;;;;;9782:18:1;;14295:50:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;14288:57;14190:163;-1:-1:-1;;;;14190:163:0:o;50654:926::-;50785:26;50814:36;;;;50825:4;50814:36;:::i;:::-;50785:65;;50864:14;50880;50896:10;50910:25;:2;:7;;;:23;:25::i;:::-;50863:72;;;;;;50946:27;50953:6;50961;50969:3;50946:6;:27::i;:::-;50997:6;-1:-1:-1;;;;;50988:15:0;:6;-1:-1:-1;;;;;50988:15:0;;50984:589;;;51132:7;;:26;;:24;:26::i;:::-;51128:263;;;51189:7;;:19;;:17;:19::i;:::-;51179:29;;51227:37;51246:1;51249:10;51179:2;51227:18;:37::i;51128:263::-;51305:36;51309:6;51317:2;:8;;;51327:10;51339:1;51305:3;:36::i;:::-;51360:11;:15;;;50984:589;;;51525:36;51529:6;51537:2;:8;;;51547:10;51559:1;51525:3;:36::i;12274:338::-;12423:38;;-1:-1:-1;;;12423:38:0;;12409:11;;-1:-1:-1;;;;;12423:23:0;;;;;:38;;12455:4;;12423:38;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;12409:52;;12487:9;12480:3;:16;;12472:45;;;;-1:-1:-1;;;12472:45:0;;;;;;;:::i;:::-;12534:7;;12530:75;;12558:35;12571:5;12578:9;12589:3;12558:12;:35::i;:::-;12274:338;;;;:::o;61981:986::-;62084:10;:19;;;7236:8;7217:15;:27;;7209:51;;;;-1:-1:-1;;;7209:51:0;;;;;;;:::i;:::-;62144:17:::1;::::0;;;::::1;::::0;::::1;;:::i;:::-;-1:-1:-1::0;;;;;62124:37:0::1;:17;;::::0;::::1;:10:::0;:17:::1;:::i;:::-;-1:-1:-1::0;;;;;62124:37:0::1;;62116:53;;;;-1:-1:-1::0;;;62116:53:0::1;;;;;;;:::i;:::-;62180:16;62199:58;62204:17;;::::0;::::1;:10:::0;:17:::1;:::i;62199:58::-;62180:77:::0;-1:-1:-1;62284:10:0::1;62268:13;::::0;62326:20:::1;::::0;;;::::1;::::0;::::1;;:::i;:::-;-1:-1:-1::0;;;;;62326:34:0::1;;62325:74;;62379:20;::::0;;;::::1;::::0;::::1;;:::i;:::-;62325:74;;;62372:4;62325:74;62305:94;;62410:28;-1:-1:-1::0;;;;;;;;;;;;;;;;;;;62410:28:0::1;-1:-1:-1::0;;;;;62484:37:0;::::1;;62536:9:::0;62547:17:::1;::::0;;;::::1;::::0;::::1;;:::i;:::-;62566:21;::::0;;;::::1;::::0;::::1;;:::i;:::-;62613:110;;;;;;;;62654:10;:17;;;;;;;;;;:::i;:::-;62673:10;:14;;;;;;;;;;:::i;:::-;62689:10;:17;;;;;;;;;;:::i;:::-;62637:70;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;62613:110;;;;62716:5;-1:-1:-1::0;;;;;62613:110:0::1;;;::::0;62602:122:::1;;;;;;;;:::i;:::-;;;;;;;;;;;;;62484:251;;;;;;;;;;;;;;;;;;:::i;:::-;;::::0;::::1;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;62466:14;::::0;::::1;62449:286:::0;;;;62772:19:::1;::::0;::::1;;-1:-1:-1::0;62754:37:0::1;62746:54;;;;-1:-1:-1::0;;;62746:54:0::1;;;;;;17979:2:1::0;17961:21;;;18018:1;17998:18;;;17991:29;-1:-1:-1;;;18051:2:1;18036:18;;18029:34;18095:2;18080:18;;17951:153;62746:54:0::1;62815:21;::::0;;;::::1;::::0;::::1;;:::i;:::-;:32;;-1:-1:-1::0;;62815:32:0::1;62811:149;;;62890:17;::::0;;;::::1;::::0;::::1;;:::i;:::-;-1:-1:-1::0;;;;;62872:35:0::1;:6;:14;;;:35;;62864:84;;;::::0;-1:-1:-1;;;62864:84:0;;15130:2:1;62864:84:0::1;::::0;::::1;15112:21:1::0;15169:2;15149:18;;;15142:30;15208:34;15188:18;;;15181:62;-1:-1:-1;;;15259:18:1;;;15252:34;15303:19;;62864:84:0::1;15102:226:1::0;52776:1018:0;52920:15;-1:-1:-1;;;;;53016:23:0;;53012:54;;53061:4;53041:25;;53012:54;53080:16;53098:15;53115:10;53129:27;:4;:9;;;:25;:27::i;:::-;53079:77;;;;;;53169:16;53188:28;53193:8;53203:7;53212:3;53188:4;:28::i;:::-;53169:47;;53242:7;-1:-1:-1;;;;;53231:18:0;:8;-1:-1:-1;;;;;53231:18:0;;53227:560;;;53391:8;-1:-1:-1;;;;;53378:37:0;;53434:9;53453:6;53462;53498:4;53487:16;;;;;;;;:::i;:::-;;;;;;;;;;;;;53378:140;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;53364:154:0;-1:-1:-1;53227:560:0;;;53647:8;-1:-1:-1;;;;;53634:37:0;;53690:9;53709:6;-1:-1:-1;;53755:4:0;53744:16;;;;;;;;:::i;:::-;;;;;;;;;;;;;53634:141;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;53620:155;-1:-1:-1;;53227:560:0;52776:1018;;;;;;;;;:::o;10724:168::-;10837:12;;;10797;10837;;;;;;;;;-1:-1:-1;;;;;10815:7:0;;;10830:5;;10815:35;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;10796:54;;;10869:7;10861:23;;;;-1:-1:-1;;;10861:23:0;;15881:2:1;10861:23:0;;;15863:21:1;15920:1;15900:18;;;15893:29;-1:-1:-1;;;15938:18:1;;;15931:33;15981:18;;10861:23:0;15853:152:1;20608:326:0;20716:14;;;20821:17;:4;20716:14;20821;:17::i;:::-;20812:26;-1:-1:-1;20855:24:0;:4;19102:2;20855:13;:24::i;:::-;20849:30;-1:-1:-1;20899:27:0;19310:20;19197:1;19102:2;19310:20;:::i;:::-;20899:4;;:14;:27::i;:::-;20890:36;;20608:326;;;;;:::o;14359:148::-;14467:25;14472:6;14480;14488:3;14467:4;:25::i;:::-;-1:-1:-1;;;;;14453:39:0;:10;-1:-1:-1;;;;;14453:39:0;;14444:55;;;;-1:-1:-1;;;14444:55:0;;17317:2:1;14444:55:0;;;17299:21:1;17356:1;17336:18;;;17329:29;-1:-1:-1;;;17374:18:1;;;17367:32;17416:18;;14444:55:0;17289:151:1;13291:686:0;13444:5;-1:-1:-1;;;;;13435:14:0;:5;-1:-1:-1;;;;;13435:14:0;;:48;;;;;13478:5;13453:21;:30;;13435:48;13431:539;;;13538:5;-1:-1:-1;;;;;13531:21:0;;13560:5;13531:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;13618:40:0;;-1:-1:-1;;;13618:40:0;;-1:-1:-1;;;;;13146:32:1;;;13618:40:0;;;13128:51:1;13195:18;;;13188:34;;;13625:5:0;13618:22;;-1:-1:-1;13618:22:0;;-1:-1:-1;13101:18:1;;;-1:-1:-1;13618:40:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;13431:539;;;-1:-1:-1;;;;;13680:22:0;;13697:4;13680:22;13676:294;;;13811:37;13824:5;13831:9;13842:5;13811:12;:37::i;:::-;13676:294;;;13910:48;13927:5;13934;13941:9;13952:5;13910:16;:48::i;19804:140::-;19872:4;19310:20;19197:1;19102:2;19310:20;:::i;:::-;19102:2;19310:20;19197:1;19102:2;19310:20;:::i;:::-;19423:23;;;;:::i;:::-;19584:24;;;;:::i;:::-;19896:4;:11;:40;;19889:47;;19804:140;;;:::o;21488:151::-;21549:12;21581:50;19310:20;19197:1;19102:2;19310:20;:::i;:::-;;19197:1;19102:2;19310:20;:::i;:::-;21605:4;:11;:25;;;;:::i;:::-;21581:4;;:50;:10;:50::i;:::-;21574:57;21488:151;-1:-1:-1;;21488:151:0:o;53802:1977::-;53946:12;;-1:-1:-1;;;;;54056:23:0;;54052:54;;54101:4;54081:25;;54052:54;54135:10;54211:4;54228:1544;54256:21;54280:28;:4;:9;;;:26;:28::i;:::-;54256:52;;54324:15;54341:16;54359:10;54373:27;:4;:9;;;:25;:27::i;:::-;54323:77;;;;;;54415:16;54434:28;54439:8;54449:7;54458:3;54434:4;:28::i;:::-;54415:47;;54491:8;-1:-1:-1;;;;;54481:18:0;:7;-1:-1:-1;;;;;54481:18:0;;54477:923;;;54548:13;54612:8;-1:-1:-1;;;;;54599:30:0;;54652:16;:42;;54685:9;54652:42;;;54678:4;54652:42;54696:6;-1:-1:-1;;54745:80:0;;;;;;;;54786:7;54795:3;54800:8;54769:40;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;54745:80;;;;54818:5;-1:-1:-1;;;;;54745:80:0;;;;54734:92;;;;;;;;:::i;:::-;;;;;;;;;;;;;54599:246;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;54580:265;-1:-1:-1;54580:265:0;-1:-1:-1;54864:69:0;;;;54908:5;54901:12;;54864:69;54477:923;;;;55001:13;55065:8;-1:-1:-1;;;;;55052:30:0;;55105:16;:42;;55138:9;55105:42;;;55131:4;55105:42;55149:6;55157;55197:80;;;;;;;;55238:7;55247:3;55252:8;55221:40;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;55197:80;;;;55270:5;-1:-1:-1;;;;;55197:80:0;;;;55186:92;;;;;;;;:::i;:::-;;;;;;;;;;;;;55052:245;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;55033:264;;-1:-1:-1;55033:264:0;-1:-1:-1;55316:69:0;;;;55360:5;55353:12;;55316:69;54477:923;;55425:5;55414:16;;55507;55503:258;;;55634:9;;55560:4;;-1:-1:-1;55634:21:0;;:19;:21::i;:::-;55622:33;;55691:7;;-1:-1:-1;55691:7:0;;55503:258;;;55740:5;;;;;;;55503:258;54228:1544;;;;;;;;53802:1977;;;;;;;;:::o;9540:316::-;9705:59;;;-1:-1:-1;;;;;13146:32:1;;;9705:59:0;;;13128:51:1;13195:18;;;;13188:34;;;9705:59:0;;;;;;;;;;13101:18:1;;;;9705:59:0;;;;;;;-1:-1:-1;;;;;9705:59:0;-1:-1:-1;;;9705:59:0;;;9694:71;;-1:-1:-1;;;;9694:10:0;;;;:71;;9705:59;9694:71;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;9658:107;;;;9784:7;:57;;;;-1:-1:-1;9796:11:0;;:16;;:44;;;9827:4;9816:24;;;;;;;;;;;;:::i;:::-;9776:72;;;;-1:-1:-1;;;9776:72:0;;18672:2:1;9776:72:0;;;18654:21:1;18711:1;18691:18;;;18684:29;-1:-1:-1;;;18729:18:1;;;18722:32;18771:18;;9776:72:0;18644:151:1;9776:72:0;9540:316;;;;;:::o;17997:426::-;18076:7;18119:6;18104:11;18119:6;18113:2;18104:11;:::i;:::-;:21;;18096:52;;;;-1:-1:-1;;;18096:52:0;;21756:2:1;18096:52:0;;;21738:21:1;21795:2;21775:18;;;21768:30;-1:-1:-1;;;21814:18:1;;;21807:48;21872:18;;18096:52:0;21728:168:1;18096:52:0;18184:11;:6;18193:2;18184:11;:::i;:::-;18167:6;:13;:28;;18159:62;;;;-1:-1:-1;;;18159:62:0;;19696:2:1;18159:62:0;;;19678:21:1;19735:2;19715:18;;;19708:30;-1:-1:-1;;;19754:18:1;;;19747:51;19815:18;;18159:62:0;19668:171:1;18159:62:0;-1:-1:-1;18313:30:0;18329:4;18313:30;18307:37;-1:-1:-1;;;18303:71:0;;;17997:426::o;18431:375::-;18509:6;18550;18536:10;18550:6;18545:1;18536:10;:::i;:::-;:20;;18528:50;;;;-1:-1:-1;;;18528:50:0;;15535:2:1;18528:50:0;;;15517:21:1;15574:2;15554:18;;;15547:30;-1:-1:-1;;;15593:18:1;;;15586:47;15650:18;;18528:50:0;15507:167:1;18528:50:0;18614:10;:6;18623:1;18614:10;:::i;:::-;18597:6;:13;:27;;18589:60;;;;-1:-1:-1;;;18589:60:0;;19347:2:1;18589:60:0;;;19329:21:1;19386:2;19366:18;;;19359:30;-1:-1:-1;;;19405:18:1;;;19398:50;19465:18;;18589:60:0;19319:170:1;18589:60:0;-1:-1:-1;18730:29:0;18746:3;18730:29;18724:36;;18431:375::o;8875:367::-;9080:69;;;-1:-1:-1;;;;;10260:15:1;;;9080:69:0;;;10242:34:1;10312:15;;;10292:18;;;10285:43;10344:18;;;;10337:34;;;9080:69:0;;;;;;;;;;10177:18:1;;;;9080:69:0;;;;;;;-1:-1:-1;;;;;9080:69:0;-1:-1:-1;;;9080:69:0;;;9069:81;;-1:-1:-1;;;;9069:10:0;;;;:81;;9080:69;9069:81;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;9020:130;;;;9169:7;:57;;;;-1:-1:-1;9181:11:0;;:16;;:44;;;9212:4;9201:24;;;;;;;;;;;;:::i;:::-;9161:73;;;;-1:-1:-1;;;9161:73:0;;20046:2:1;9161:73:0;;;20028:21:1;20085:1;20065:18;;;20058:29;-1:-1:-1;;;20103:18:1;;;20096:33;20146:18;;9161:73:0;20018:152:1;14918:3071:0;15044:12;15093:7;15077:12;15093:7;15087:2;15077:12;:::i;:::-;:23;;15069:50;;;;-1:-1:-1;;;15069:50:0;;;;;;;:::i;:::-;15158:6;15138:16;15147:7;15158:6;15138:16;:::i;:::-;:26;;15130:53;;;;-1:-1:-1;;;15130:53:0;;;;;;;:::i;:::-;15219:16;15228:7;15219:6;:16;:::i;:::-;15202:6;:13;:33;;15194:63;;;;-1:-1:-1;;;15194:63:0;;21049:2:1;15194:63:0;;;21031:21:1;21088:2;21068:18;;;21061:30;-1:-1:-1;;;21107:18:1;;;21100:47;21164:18;;15194:63:0;21021:167:1;15194:63:0;15270:22;15336:15;;15369:2137;;;;17662:4;17656:11;17643:24;;17863:1;17852:9;17845:20;17917:4;17906:9;17902:20;17896:4;17889:34;15329:2613;;15369:2137;15566:4;15560:11;15547:24;;16271:2;16262:7;16258:16;16679:9;16672:17;16666:4;16662:28;16650:9;16639;16635:25;16631:60;16732:7;16728:2;16724:16;17005:6;16991:9;16984:17;16978:4;16974:28;16962:9;16954:6;16950:22;16946:57;16942:70;16764:470;17043:3;17039:2;17036:11;16764:470;;;17201:9;;17190:21;;17089:4;17081:13;;;;17126;16764:470;;;-1:-1:-1;;17258:26:0;;;17482:2;17465:11;-1:-1:-1;;17461:25:0;17455:4;17448:39;-1:-1:-1;15329:2613:0;-1:-1:-1;17972:9:0;14918:3071;-1:-1:-1;;;;14918:3071:0:o;14:134:1:-;82:20;;111:31;82:20;111:31;:::i;:::-;63:85;;;:::o;153:173::-;222:5;267:3;258:6;253:3;249:16;245:26;242:2;;;288:5;281;274:20;242:2;-1:-1:-1;314:6:1;232:94;-1:-1:-1;232:94:1:o;331:161::-;398:20;;458:8;447:20;;437:31;;427:2;;482:1;479;472:12;497:257;556:6;609:2;597:9;588:7;584:23;580:32;577:2;;;630:6;622;615:22;577:2;674:9;661:23;693:31;718:5;693:31;:::i;:::-;743:5;567:187;-1:-1:-1;;;567:187:1:o;759:261::-;829:6;882:2;870:9;861:7;857:23;853:32;850:2;;;903:6;895;888:22;850:2;940:9;934:16;959:31;984:5;959:31;:::i;1025:470::-;1101:6;1109;1117;1170:2;1158:9;1149:7;1145:23;1141:32;1138:2;;;1191:6;1183;1176:22;1138:2;1235:9;1222:23;1254:31;1279:5;1254:31;:::i;:::-;1304:5;-1:-1:-1;1361:2:1;1346:18;;1333:32;1374:33;1333:32;1374:33;:::i;:::-;1426:7;-1:-1:-1;1452:37:1;1485:2;1470:18;;1452:37;:::i;:::-;1442:47;;1128:367;;;;;:::o;1500:466::-;1577:6;1585;1593;1646:2;1634:9;1625:7;1621:23;1617:32;1614:2;;;1667:6;1659;1652:22;1614:2;1711:9;1698:23;1730:31;1755:5;1730:31;:::i;:::-;1780:5;-1:-1:-1;1832:2:1;1817:18;;1804:32;;-1:-1:-1;1888:2:1;1873:18;;1860:32;1901:33;1860:32;1901:33;:::i;:::-;1953:7;1943:17;;;1604:362;;;;;:::o;1971:676::-;2068:6;2076;2129:2;2117:9;2108:7;2104:23;2100:32;2097:2;;;2150:6;2142;2135:22;2097:2;2195:9;2182:23;-1:-1:-1;;;;;2265:2:1;2257:6;2254:14;2251:2;;;2286:6;2278;2271:22;2251:2;2329:6;2318:9;2314:22;2304:32;;2374:7;2367:4;2363:2;2359:13;2355:27;2345:2;;2401:6;2393;2386:22;2345:2;2446;2433:16;2472:2;2464:6;2461:14;2458:2;;;2493:6;2485;2478:22;2458:2;2551:7;2546:2;2536:6;2533:1;2529:14;2525:2;2521:23;2517:32;2514:45;2511:2;;;2577:6;2569;2562:22;2511:2;2613;2605:11;;;;;2635:6;;-1:-1:-1;2087:560:1;;-1:-1:-1;;;;2087:560:1:o;2652:297::-;2719:6;2772:2;2760:9;2751:7;2747:23;2743:32;2740:2;;;2793:6;2785;2778:22;2740:2;2830:9;2824:16;2883:5;2876:13;2869:21;2862:5;2859:32;2849:2;;2910:6;2902;2895:22;2954:293;3011:6;3064:2;3052:9;3043:7;3039:23;3035:32;3032:2;;;3085:6;3077;3070:22;3032:2;3129:9;3116:23;3182:5;3179:1;3168:20;3161:5;3158:31;3148:2;;3208:6;3200;3193:22;3252:675;3332:6;3385:2;3373:9;3364:7;3360:23;3356:32;3353:2;;;3406:6;3398;3391:22;3353:2;3444:9;3438:16;-1:-1:-1;;;;;3469:6:1;3466:30;3463:2;;;3514:6;3506;3499:22;3463:2;3542:22;;3595:4;3587:13;;3583:27;-1:-1:-1;3573:2:1;;3629:6;3621;3614:22;3573:2;3663;3657:9;3688:48;3704:31;3732:2;3704:31;:::i;:::-;3688:48;:::i;:::-;3759:2;3752:5;3745:17;3799:7;3794:2;3789;3785;3781:11;3777:20;3774:33;3771:2;;;3825:6;3817;3810:22;3771:2;3843:54;3894:2;3889;3882:5;3878:14;3873:2;3869;3865:11;3843:54;:::i;:::-;3916:5;3343:584;-1:-1:-1;;;;;3343:584:1:o;3932:394::-;4027:6;4080:2;4068:9;4059:7;4055:23;4051:32;4048:2;;;4101:6;4093;4086:22;4048:2;4146:9;4133:23;-1:-1:-1;;;;;4171:6:1;4168:30;4165:2;;;4216:6;4208;4201:22;4165:2;4244:76;4312:7;4303:6;4292:9;4288:22;4244:76;:::i;4331:1118::-;4424:6;4455:2;4498;4486:9;4477:7;4473:23;4469:32;4466:2;;;4519:6;4511;4504:22;4466:2;4564:9;4551:23;-1:-1:-1;;;;;4634:2:1;4626:6;4623:14;4620:2;;;4655:6;4647;4640:22;4620:2;4683:22;;;;4739:4;4721:16;;;4717:27;4714:2;;;4762:6;4754;4747:22;4714:2;4793:22;;:::i;:::-;4853:2;4840:16;4881:2;4871:8;4868:16;4865:2;;;4902:6;4894;4887:22;4865:2;4930:17;;;-1:-1:-1;4978:4:1;4970:13;;4966:27;-1:-1:-1;4956:2:1;;5012:6;5004;4997:22;4956:2;5053;5040:16;5078:48;5094:31;5122:2;5094:31;:::i;5078:48::-;5149:2;5142:5;5135:17;5189:7;5184:2;5179;5175;5171:11;5167:20;5164:33;5161:2;;;5215:6;5207;5200:22;5161:2;5275;5270;5266;5262:11;5257:2;5250:5;5246:14;5233:45;5298:14;;;5294:23;;5287:39;;;5335:20;;5387:31;5406:11;;;5387:31;:::i;:::-;5382:2;5375:5;5371:14;5364:55;5438:5;5428:15;;;;;;4435:1014;;;;:::o;5853:207::-;5942:6;5995:3;5983:9;5974:7;5970:23;5966:33;5963:2;;;6017:6;6009;6002:22;6065:306;6124:6;6177:2;6165:9;6156:7;6152:23;6148:32;6145:2;;;6198:6;6190;6183:22;6145:2;6229:23;;-1:-1:-1;;;;;6281:31:1;;6271:42;;6261:2;;6332:6;6324;6317:22;6376:194;6434:6;6487:2;6475:9;6466:7;6462:23;6458:32;6455:2;;;6508:6;6500;6493:22;6455:2;6536:28;6554:9;6536:28;:::i;6575:194::-;6645:6;6698:2;6686:9;6677:7;6673:23;6669:32;6666:2;;;6719:6;6711;6704:22;6666:2;-1:-1:-1;6747:16:1;;6656:113;-1:-1:-1;6656:113:1:o;6774:325::-;6842:6;6850;6903:2;6891:9;6882:7;6878:23;6874:32;6871:2;;;6924:6;6916;6909:22;6871:2;6965:9;6952:23;6942:33;;7025:2;7014:9;7010:18;6997:32;7038:31;7063:5;7038:31;:::i;:::-;7088:5;7078:15;;;6861:238;;;;;:::o;7104:255::-;7183:6;7191;7244:2;7232:9;7223:7;7219:23;7215:32;7212:2;;;7265:6;7257;7250:22;7212:2;-1:-1:-1;;7293:16:1;;7349:2;7334:18;;;7328:25;7293:16;;7328:25;;-1:-1:-1;7202:157:1:o;7364:777::-;7452:6;7460;7468;7476;7529:2;7517:9;7508:7;7504:23;7500:32;7497:2;;;7550:6;7542;7535:22;7497:2;7591:9;7578:23;7568:33;;7648:2;7637:9;7633:18;7620:32;7610:42;;7703:2;7692:9;7688:18;7675:32;-1:-1:-1;;;;;7767:2:1;7759:6;7756:14;7753:2;;;7788:6;7780;7773:22;7753:2;7831:6;7820:9;7816:22;7806:32;;7876:7;7869:4;7865:2;7861:13;7857:27;7847:2;;7903:6;7895;7888:22;7847:2;7948;7935:16;7974:2;7966:6;7963:14;7960:2;;;7995:6;7987;7980:22;7960:2;8045:7;8040:2;8031:6;8027:2;8023:15;8019:24;8016:37;8013:2;;;8071:6;8063;8056:22;8013:2;7487:654;;;;-1:-1:-1;;8107:2:1;8099:11;;-1:-1:-1;;;7487:654:1:o;8146:257::-;8187:3;8225:5;8219:12;8252:6;8247:3;8240:19;8268:63;8324:6;8317:4;8312:3;8308:14;8301:4;8294:5;8290:16;8268:63;:::i;:::-;8385:2;8364:15;-1:-1:-1;;8360:29:1;8351:39;;;;8392:4;8347:50;;8195:208;-1:-1:-1;;8195:208:1:o;8408:431::-;8661:2;8657:15;;;-1:-1:-1;;8653:24:1;;;8641:37;;8734:3;8712:16;;;;-1:-1:-1;;;;;;8708:41:1;8703:2;8694:12;;8687:63;8784:15;;8780:24;8775:2;8766:12;;8759:46;8830:2;8821:12;;8581:258::o;8844:273::-;9027:6;9019;9014:3;9001:33;8983:3;9053:16;;9078:15;;;9053:16;8991:126;-1:-1:-1;8991:126:1:o;9122:274::-;9251:3;9289:6;9283:13;9305:53;9351:6;9346:3;9339:4;9331:6;9327:17;9305:53;:::i;:::-;9374:16;;;;;9259:137;-1:-1:-1;;9259:137:1:o;9401:203::-;-1:-1:-1;;;;;9565:32:1;;;;9547:51;;9535:2;9520:18;;9502:102::o;10382:495::-;-1:-1:-1;;;;;10609:32:1;;10591:51;;-1:-1:-1;;;;;10678:32:1;;10673:2;10658:18;;10651:60;10758:1;10747:21;;;10742:2;10727:18;;10720:49;10698:3;10800:2;10785:18;;10778:31;;;-1:-1:-1;;10826:45:1;;10851:19;;10843:6;10826:45;:::i;:::-;10818:53;10581:296;-1:-1:-1;;;;;;10581:296:1:o;13233:803::-;13393:4;13422:2;13462;13451:9;13447:18;13492:2;13481:9;13474:21;13515:6;13550;13544:13;13581:6;13573;13566:22;13619:2;13608:9;13604:18;13597:25;;13681:2;13671:6;13668:1;13664:14;13653:9;13649:30;13645:39;13631:53;;13719:2;13711:6;13707:15;13740:4;13753:254;13767:6;13764:1;13761:13;13753:254;;;13860:2;13856:7;13844:9;13836:6;13832:22;13828:36;13823:3;13816:49;13888:39;13920:6;13911;13905:13;13888:39;:::i;:::-;13878:49;-1:-1:-1;13985:12:1;;;;13950:15;;;;13789:1;13782:9;13753:254;;;-1:-1:-1;14024:6:1;;13402:634;-1:-1:-1;;;;;;;13402:634:1:o;14041:219::-;14190:2;14179:9;14172:21;14153:4;14210:44;14250:2;14239:9;14235:18;14227:6;14210:44;:::i;14265:326::-;14467:2;14449:21;;;14506:1;14486:18;;;14479:29;-1:-1:-1;;;14539:2:1;14524:18;;14517:33;14582:2;14567:18;;14439:152::o;16772:338::-;16974:2;16956:21;;;17013:2;16993:18;;;16986:30;-1:-1:-1;;;17047:2:1;17032:18;;17025:44;17101:2;17086:18;;16946:164::o;18800:340::-;19002:2;18984:21;;;19041:2;19021:18;;;19014:30;-1:-1:-1;;;19075:2:1;19060:18;;19053:46;19131:2;19116:18;;18974:166::o;20507:335::-;20709:2;20691:21;;;20748:2;20728:18;;;20721:30;-1:-1:-1;;;20782:2:1;20767:18;;20760:41;20833:2;20818:18;;20681:161::o;21901:472::-;22098:2;22087:9;22080:21;22061:4;22136:6;22130:13;22179:4;22174:2;22163:9;22159:18;22152:32;22207:50;22253:2;22242:9;22238:18;22224:12;22207:50;:::i;:::-;22317:2;22305:15;;;;22299:22;-1:-1:-1;;;;;22295:48:1;22288:4;22273:20;;;;22266:78;;;;-1:-1:-1;22193:64:1;;22070:303;-1:-1:-1;22070:303:1:o;22813:533::-;22890:4;22896:6;22956:11;22943:25;23050:2;23046:7;23035:8;23019:14;23015:29;23011:43;22991:18;22987:68;22977:2;;23072:4;23066;23059:18;22977:2;23102:33;;23154:20;;;-1:-1:-1;;;;;;23186:30:1;;23183:2;;;23232:4;23226;23219:18;23183:2;23268:4;23256:17;;-1:-1:-1;23299:14:1;23295:27;;;23285:38;;23282:2;;;23336:1;23333;23326:12;23282:2;22907:439;;;;;:::o;23351:257::-;23423:4;23417:11;;;23455:17;;-1:-1:-1;;;;;23487:34:1;;23523:22;;;23484:62;23481:2;;;23549:18;;:::i;:::-;23585:4;23578:24;23397:211;:::o;23613:275::-;23684:2;23678:9;23749:2;23730:13;;-1:-1:-1;;23726:27:1;23714:40;;-1:-1:-1;;;;;23769:34:1;;23805:22;;;23766:62;23763:2;;;23831:18;;:::i;:::-;23867:2;23860:22;23658:230;;-1:-1:-1;23658:230:1:o;23893:186::-;23941:4;-1:-1:-1;;;;;23966:6:1;23963:30;23960:2;;;23996:18;;:::i;:::-;-1:-1:-1;24062:2:1;24041:15;-1:-1:-1;;24037:29:1;24068:4;24033:40;;23950:129::o;24084:128::-;24124:3;24155:1;24151:6;24148:1;24145:13;24142:2;;;24161:18;;:::i;:::-;-1:-1:-1;24197:9:1;;24132:80::o;24217:125::-;24257:4;24285:1;24282;24279:8;24276:2;;;24290:18;;:::i;:::-;-1:-1:-1;24327:9:1;;24266:76::o;24347:258::-;24419:1;24429:113;24443:6;24440:1;24437:13;24429:113;;;24519:11;;;24513:18;24500:11;;;24493:39;24465:2;24458:10;24429:113;;;24560:6;24557:1;24554:13;24551:2;;;-1:-1:-1;;24595:1:1;24577:16;;24570:27;24400:205::o;24610:135::-;24649:3;-1:-1:-1;;24670:17:1;;24667:2;;;24690:18;;:::i;:::-;-1:-1:-1;24737:1:1;24726:13;;24657:88::o;24750:127::-;24811:10;24806:3;24802:20;24799:1;24792:31;24842:4;24839:1;24832:15;24866:4;24863:1;24856:15;24882:127;24943:10;24938:3;24934:20;24931:1;24924:31;24974:4;24971:1;24964:15;24998:4;24995:1;24988:15;25014:131;-1:-1:-1;;;;;25089:31:1;;25079:42;;25069:2;;25135:1;25132;25125:12;25069:2;25059:86;:::o

Swarm Source

ipfs://78ee27f2e530732175884dc64f31c6041da99ef6cd21f953da98cf7ec9d451eb

Block Transaction Gas Used Reward
view all blocks sequenced

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

Validator Index Block Amount
View All Withdrawals

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

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