/

    Spirit Positions NFT-V2 (SPIRIT-POS)

    Overview

    TokenID

    18

    Total Transfers

    -

    Market

    Onchain Market Cap

    -

    Circulating Supply Market Cap

    -
    Loading...
    Loading
    Loading...
    Loading
    Loading...
    Loading

    Click here to update the token information / general information
    This contract may be a proxy contract. Click on More Options and select Is this a proxy? to confirm and enable the "Read as Proxy" & "Write as Proxy" tabs.

    Contract Source Code Verified (Exact Match)

    Contract Name:
    NonfungiblePositionManager

    Compiler Version
    v0.8.20+commit.a1b79de6

    Optimization Enabled:
    Yes with 2000 runs

    Other Settings:
    paris EvmVersion
    File 1 of 58 : NonfungiblePositionManager.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    // SPDX-License-Identifier: GPL-2.0-or-later
    pragma solidity =0.8.20;
    import '@cryptoalgebra/integral-core/contracts/interfaces/IAlgebraPool.sol';
    import '@cryptoalgebra/integral-core/contracts/interfaces/IAlgebraFactory.sol';
    import '@cryptoalgebra/integral-core/contracts/libraries/Constants.sol';
    import '@cryptoalgebra/integral-core/contracts/libraries/FullMath.sol';
    import './interfaces/INonfungiblePositionManager.sol';
    import './interfaces/INonfungibleTokenPositionDescriptor.sol';
    import './interfaces/IPositionFollower.sol';
    import './libraries/PoolInteraction.sol';
    import './libraries/PoolAddress.sol';
    import './base/LiquidityManagement.sol';
    import './base/PeripheryImmutableState.sol';
    import './base/Multicall.sol';
    import './base/ERC721Permit.sol';
    import './base/PeripheryValidation.sol';
    import './base/SelfPermit.sol';
    import './base/PoolInitializer.sol';
    import './libraries/LiquidityAmounts.sol';
    /// @title Algebra Integral 1.0 NFT positions
    /// @notice Wraps Algebra positions in the ERC721 non-fungible token interface
    /// @dev Credit to Uniswap Labs under GPL-2.0-or-later license:
    /// https://github.com/Uniswap/v3-periphery
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 2 of 58 : IAlgebraMintCallback.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    // SPDX-License-Identifier: GPL-2.0-or-later
    pragma solidity >=0.5.0;
    /// @title Callback for IAlgebraPoolActions#mint
    /// @notice Any contract that calls IAlgebraPoolActions#mint must implement this interface
    /// @dev Credit to Uniswap Labs under GPL-2.0-or-later license:
    /// https://github.com/Uniswap/v3-core/tree/main/contracts/interfaces
    interface IAlgebraMintCallback {
    /// @notice Called to `msg.sender` after minting liquidity to a position from IAlgebraPool#mint.
    /// @dev In the implementation you must pay the pool tokens owed for the minted liquidity.
    /// The caller of this method _must_ be checked to be a AlgebraPool deployed by the canonical AlgebraFactory.
    /// @param amount0Owed The amount of token0 due to the pool for the minted liquidity
    /// @param amount1Owed The amount of token1 due to the pool for the minted liquidity
    /// @param data Any data passed through by the caller via the IAlgebraPoolActions#mint call
    function algebraMintCallback(uint256 amount0Owed, uint256 amount1Owed, bytes calldata data) external;
    }
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 3 of 58 : IAlgebraFactory.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    // SPDX-License-Identifier: GPL-2.0-or-later
    pragma solidity >=0.5.0;
    pragma abicoder v2;
    import './plugin/IAlgebraPluginFactory.sol';
    import './vault/IAlgebraVaultFactory.sol';
    /// @title The interface for the Algebra Factory
    /// @dev Credit to Uniswap Labs under GPL-2.0-or-later license:
    /// https://github.com/Uniswap/v3-core/tree/main/contracts/interfaces
    interface IAlgebraFactory {
    /// @notice Emitted when a process of ownership renounce is started
    /// @param timestamp The timestamp of event
    /// @param finishTimestamp The timestamp when ownership renounce will be possible to finish
    event RenounceOwnershipStart(uint256 timestamp, uint256 finishTimestamp);
    /// @notice Emitted when a process of ownership renounce cancelled
    /// @param timestamp The timestamp of event
    event RenounceOwnershipStop(uint256 timestamp);
    /// @notice Emitted when a process of ownership renounce finished
    /// @param timestamp The timestamp of ownership renouncement
    event RenounceOwnershipFinish(uint256 timestamp);
    /// @notice Emitted when a pool is created
    /// @param token0 The first token of the pool by address sort order
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 4 of 58 : IAlgebraPool.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    // SPDX-License-Identifier: GPL-2.0-or-later
    pragma solidity >=0.8.4;
    import './pool/IAlgebraPoolImmutables.sol';
    import './pool/IAlgebraPoolState.sol';
    import './pool/IAlgebraPoolActions.sol';
    import './pool/IAlgebraPoolPermissionedActions.sol';
    import './pool/IAlgebraPoolEvents.sol';
    import './pool/IAlgebraPoolErrors.sol';
    /// @title The interface for a Algebra Pool
    /// @dev The pool interface is broken up into many smaller pieces.
    /// This interface includes custom error definitions and cannot be used in older versions of Solidity.
    /// For older versions of Solidity use #IAlgebraPoolLegacy
    /// Credit to Uniswap Labs under GPL-2.0-or-later license:
    /// https://github.com/Uniswap/v3-core/tree/main/contracts/interfaces
    interface IAlgebraPool is
    IAlgebraPoolImmutables,
    IAlgebraPoolState,
    IAlgebraPoolActions,
    IAlgebraPoolPermissionedActions,
    IAlgebraPoolEvents,
    IAlgebraPoolErrors
    {
    // used only for combining interfaces
    }
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 5 of 58 : IAlgebraPluginFactory.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    // SPDX-License-Identifier: GPL-2.0-or-later
    pragma solidity >=0.5.0;
    /// @title An interface for a contract that is capable of deploying Algebra plugins
    /// @dev Such a factory is needed if the plugin should be automatically created and connected to each new pool
    interface IAlgebraPluginFactory {
    /// @notice Deploys new plugin contract for pool
    /// @param pool The address of the pool for which the new plugin will be created
    /// @param token0 First token of the pool
    /// @param token1 Second token of the pool
    /// @return New plugin address
    function createPlugin(address pool, address token0, address token1) external returns (address);
    }
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 6 of 58 : IAlgebraPoolActions.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    // SPDX-License-Identifier: GPL-2.0-or-later
    pragma solidity >=0.5.0;
    /// @title Permissionless pool actions
    /// @dev Credit to Uniswap Labs under GPL-2.0-or-later license:
    /// https://github.com/Uniswap/v3-core/tree/main/contracts/interfaces
    interface IAlgebraPoolActions {
    /// @notice Sets the initial price for the pool
    /// @dev Price is represented as a sqrt(amountToken1/amountToken0) Q64.96 value
    /// @dev Initialization should be done in one transaction with pool creation to avoid front-running
    /// @param initialPrice The initial sqrt price of the pool as a Q64.96
    function initialize(uint160 initialPrice) external;
    /// @notice Adds liquidity for the given recipient/bottomTick/topTick position
    /// @dev The caller of this method receives a callback in the form of IAlgebraMintCallback#algebraMintCallback
    /// in which they must pay any token0 or token1 owed for the liquidity. The amount of token0/token1 due depends
    /// on bottomTick, topTick, the amount of liquidity, and the current price.
    /// @param leftoversRecipient The address which will receive potential surplus of paid tokens
    /// @param recipient The address for which the liquidity will be created
    /// @param bottomTick The lower tick of the position in which to add liquidity
    /// @param topTick The upper tick of the position in which to add liquidity
    /// @param liquidityDesired The desired amount of liquidity to mint
    /// @param data Any data that should be passed through to the callback
    /// @return amount0 The amount of token0 that was paid to mint the given amount of liquidity. Matches the value in the callback
    /// @return amount1 The amount of token1 that was paid to mint the given amount of liquidity. Matches the value in the callback
    /// @return liquidityActual The actual minted amount of liquidity
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 7 of 58 : IAlgebraPoolErrors.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    // SPDX-License-Identifier: GPL-2.0-or-later
    pragma solidity >=0.8.4;
    /// @title Errors emitted by a pool
    /// @notice Contains custom errors emitted by the pool
    /// @dev Custom errors are separated from the common pool interface for compatibility with older versions of Solidity
    interface IAlgebraPoolErrors {
    // #### pool errors ####
    /// @notice Emitted by the reentrancy guard
    error locked();
    /// @notice Emitted if arithmetic error occurred
    error arithmeticError();
    /// @notice Emitted if an attempt is made to initialize the pool twice
    error alreadyInitialized();
    /// @notice Emitted if an attempt is made to mint or swap in uninitialized pool
    error notInitialized();
    /// @notice Emitted if 0 is passed as amountRequired to swap function
    error zeroAmountRequired();
    /// @notice Emitted if invalid amount is passed as amountRequired to swap function
    error invalidAmountRequired();
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 8 of 58 : IAlgebraPoolEvents.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    // SPDX-License-Identifier: GPL-2.0-or-later
    pragma solidity >=0.5.0;
    /// @title Events emitted by a pool
    /// @dev Credit to Uniswap Labs under GPL-2.0-or-later license:
    /// https://github.com/Uniswap/v3-core/tree/main/contracts/interfaces
    interface IAlgebraPoolEvents {
    /// @notice Emitted exactly once by a pool when #initialize is first called on the pool
    /// @dev Mint/Burn/Swaps cannot be emitted by the pool before Initialize
    /// @param price The initial sqrt price of the pool, as a Q64.96
    /// @param tick The initial tick of the pool, i.e. log base 1.0001 of the starting price of the pool
    event Initialize(uint160 price, int24 tick);
    /// @notice Emitted when liquidity is minted for a given position
    /// @param sender The address that minted the liquidity
    /// @param owner The owner of the position and recipient of any minted liquidity
    /// @param bottomTick The lower tick of the position
    /// @param topTick The upper tick of the position
    /// @param liquidityAmount The amount of liquidity minted to the position range
    /// @param amount0 How much token0 was required for the minted liquidity
    /// @param amount1 How much token1 was required for the minted liquidity
    event Mint(
    address sender,
    address indexed owner,
    int24 indexed bottomTick,
    int24 indexed topTick,
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 9 of 58 : IAlgebraPoolImmutables.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    // SPDX-License-Identifier: GPL-2.0-or-later
    pragma solidity >=0.5.0;
    /// @title Pool state that never changes
    /// @dev Credit to Uniswap Labs under GPL-2.0-or-later license:
    /// https://github.com/Uniswap/v3-core/tree/main/contracts/interfaces
    interface IAlgebraPoolImmutables {
    /// @notice The Algebra factory contract, which must adhere to the IAlgebraFactory interface
    /// @return The contract address
    function factory() external view returns (address);
    /// @notice The first of the two tokens of the pool, sorted by address
    /// @return The token contract address
    function token0() external view returns (address);
    /// @notice The second of the two tokens of the pool, sorted by address
    /// @return The token contract address
    function token1() external view returns (address);
    /// @notice The maximum amount of position liquidity that can use any tick in the range
    /// @dev This parameter is enforced per tick to prevent liquidity from overflowing a uint128 at any point, and
    /// also prevents out-of-range liquidity from being used to prevent adding in-range liquidity to a pool
    /// @return The max amount of liquidity per tick
    function maxLiquidityPerTick() external view returns (uint128);
    }
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 10 of 58 : IAlgebraPoolPermissionedActions.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    // SPDX-License-Identifier: GPL-2.0-or-later
    pragma solidity >=0.5.0;
    /// @title Permissioned pool actions
    /// @notice Contains pool methods that may only be called by permissioned addresses
    /// @dev Credit to Uniswap Labs under GPL-2.0-or-later license:
    /// https://github.com/Uniswap/v3-core/tree/main/contracts/interfaces
    interface IAlgebraPoolPermissionedActions {
    /// @notice Set the community's % share of the fees. Only factory owner or POOLS_ADMINISTRATOR_ROLE role
    /// @param newCommunityFee The new community fee percent in thousandths (1e-3)
    function setCommunityFee(uint16 newCommunityFee) external;
    /// @notice Set the new tick spacing values. Only factory owner or POOLS_ADMINISTRATOR_ROLE role
    /// @param newTickSpacing The new tick spacing value
    function setTickSpacing(int24 newTickSpacing) external;
    /// @notice Set the new plugin address. Only factory owner or POOLS_ADMINISTRATOR_ROLE role
    /// @param newPluginAddress The new plugin address
    function setPlugin(address newPluginAddress) external;
    /// @notice Set new plugin config. Only factory owner or POOLS_ADMINISTRATOR_ROLE role
    /// @param newConfig In the new configuration of the plugin,
    /// each bit of which is responsible for a particular hook.
    function setPluginConfig(uint8 newConfig) external;
    /// @notice Set new community fee vault address. Only factory owner or POOLS_ADMINISTRATOR_ROLE role
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 11 of 58 : IAlgebraPoolState.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    // SPDX-License-Identifier: GPL-2.0-or-later
    pragma solidity >=0.5.0;
    /// @title Pool state that can change
    /// @dev Important security note: when using this data by external contracts, it is necessary to take into account the possibility
    /// of manipulation (including read-only reentrancy).
    /// This interface is based on the UniswapV3 interface, credit to Uniswap Labs under GPL-2.0-or-later license:
    /// https://github.com/Uniswap/v3-core/tree/main/contracts/interfaces
    interface IAlgebraPoolState {
    /// @notice Safely get most important state values of Algebra Integral AMM
    /// @dev Several values exposed as a single method to save gas when accessed externally.
    /// **Important security note: this method checks reentrancy lock and should be preferred in most cases**.
    /// @return sqrtPrice The current price of the pool as a sqrt(dToken1/dToken0) Q64.96 value
    /// @return tick The current global tick of the pool. May not always be equal to SqrtTickMath.getTickAtSqrtRatio(price) if the price is on a tick
          boundary
    /// @return lastFee The current (last known) pool fee value in hundredths of a bip, i.e. 1e-6 (so '100' is '0.01%'). May be obsolete if using
          dynamic fee plugin
    /// @return pluginConfig The current plugin config as bitmap. Each bit is responsible for enabling/disabling the hooks, the last bit turns on/off
          dynamic fees logic
    /// @return activeLiquidity The currently in-range liquidity available to the pool
    /// @return nextTick The next initialized tick after current global tick
    /// @return previousTick The previous initialized tick before (or at) current global tick
    function safelyGetStateOfAMM()
    external
    view
    returns (uint160 sqrtPrice, int24 tick, uint16 lastFee, uint8 pluginConfig, uint128 activeLiquidity, int24 nextTick, int24 previousTick);
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 12 of 58 : IAlgebraVaultFactory.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    // SPDX-License-Identifier: GPL-2.0-or-later
    pragma solidity >=0.5.0;
    /// @title The interface for the Algebra Vault Factory
    /// @notice This contract can be used for automatic vaults creation
    /// @dev Version: Algebra Integral
    interface IAlgebraVaultFactory {
    /// @notice returns address of the community fee vault for the pool
    /// @param pool the address of Algebra Integral pool
    /// @return communityFeeVault the address of community fee vault
    function getVaultForPool(address pool) external view returns (address communityFeeVault);
    /// @notice creates the community fee vault for the pool if needed
    /// @param pool the address of Algebra Integral pool
    /// @return communityFeeVault the address of community fee vault
    function createVaultForPool(address pool) external returns (address communityFeeVault);
    }
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 13 of 58 : Constants.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    // SPDX-License-Identifier: GPL-2.0-or-later
    pragma solidity >=0.5.0 <0.9.0;
    /// @title Contains common constants for Algebra contracts
    /// @dev Constants moved to the library, not the base contract, to further emphasize their constant nature
    library Constants {
    uint8 internal constant RESOLUTION = 96;
    uint256 internal constant Q96 = 1 << 96;
    uint256 internal constant Q128 = 1 << 128;
    uint24 internal constant FEE_DENOMINATOR = 1e6;
    uint16 internal constant FLASH_FEE = 0.01e4; // fee for flash loan in hundredths of a bip (0.01%)
    uint16 internal constant INIT_DEFAULT_FEE = 0.05e4; // init default fee value in hundredths of a bip (0.05%)
    uint16 internal constant MAX_DEFAULT_FEE = 5e4; // max default fee value in hundredths of a bip (5%)
    int24 internal constant INIT_DEFAULT_TICK_SPACING = 60;
    int24 internal constant MAX_TICK_SPACING = 500;
    int24 internal constant MIN_TICK_SPACING = 1;
    // the frequency with which the accumulated community fees are sent to the vault
    uint32 internal constant COMMUNITY_FEE_TRANSFER_FREQUENCY = 8 hours;
    // max(uint128) / (MAX_TICK - MIN_TICK)
    uint128 internal constant MAX_LIQUIDITY_PER_TICK = 191757638537527648490752896198553;
    uint16 internal constant MAX_COMMUNITY_FEE = 1e3; // 100%
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 14 of 58 : FullMath.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    // SPDX-License-Identifier: MIT
    pragma solidity ^0.8.0;
    /// @title Contains 512-bit math functions
    /// @notice Facilitates multiplication and division that can have overflow of an intermediate value without any loss of precision
    /// @dev Handles "phantom overflow" i.e., allows multiplication and division where an intermediate value overflows 256 bits
    library FullMath {
    /// @notice Calculates floor(a×b÷denominator) with full precision. Throws if result overflows a uint256 or denominator == 0
    /// @param a The multiplicand
    /// @param b The multiplier
    /// @param denominator The divisor
    /// @return result The 256-bit result
    /// @dev Credit to Remco Bloemen under MIT license https://xn--2-umb.com/21/muldiv
    function mulDiv(uint256 a, uint256 b, uint256 denominator) internal pure returns (uint256 result) {
    unchecked {
    // 512-bit multiply [prod1 prod0] = a * b
    // Compute the product mod 2**256 and mod 2**256 - 1
    // then use the Chinese Remainder Theorem to reconstruct
    // the 512 bit result. The result is stored in two 256
    // variables such that product = prod1 * 2**256 + prod0
    uint256 prod0 = a * b; // Least significant 256 bits of the product
    uint256 prod1; // Most significant 256 bits of the product
    assembly {
    let mm := mulmod(a, b, not(0))
    prod1 := sub(sub(mm, prod0), lt(mm, prod0))
    }
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 15 of 58 : TickMath.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    // SPDX-License-Identifier: GPL-2.0-or-later
    pragma solidity >=0.8.4 <0.9.0;
    import '../interfaces/pool/IAlgebraPoolErrors.sol';
    /// @title Math library for computing sqrt prices from ticks and vice versa
    /// @notice Computes sqrt price for ticks of size 1.0001, i.e. sqrt(1.0001^tick) as fixed point Q64.96 numbers. Supports
    /// prices between 2**-128 and 2**128
    /// @dev Credit to Uniswap Labs under GPL-2.0-or-later license:
    /// https://github.com/Uniswap/v3-core/blob/main/contracts/libraries
    library TickMath {
    /// @dev The minimum tick that may be passed to #getSqrtRatioAtTick computed from log base 1.0001 of 2**-128
    int24 internal constant MIN_TICK = -887272;
    /// @dev The maximum tick that may be passed to #getSqrtRatioAtTick computed from log base 1.0001 of 2**128
    int24 internal constant MAX_TICK = -MIN_TICK;
    /// @dev The minimum value that can be returned from #getSqrtRatioAtTick. Equivalent to getSqrtRatioAtTick(MIN_TICK)
    uint160 internal constant MIN_SQRT_RATIO = 4295128739;
    /// @dev The maximum value that can be returned from #getSqrtRatioAtTick. Equivalent to getSqrtRatioAtTick(MAX_TICK)
    uint160 internal constant MAX_SQRT_RATIO = 1461446703485210103287273052203988822378723970342;
    /// @notice Calculates sqrt(1.0001^tick) * 2^96
    /// @dev Throws if |tick| > max tick
    /// @param tick The input tick for the above formula
    /// @return price A Fixed point Q64.96 number representing the sqrt of the ratio of the two assets (token1/token0)
    /// at the given tick
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 16 of 58 : draft-IERC20Permit.sol
    1
    2
    3
    4
    5
    6
    7
    8
    // SPDX-License-Identifier: MIT
    // OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/extensions/draft-IERC20Permit.sol)
    pragma solidity ^0.8.0;
    // EIP-2612 is Final as of 2022-11-01. This file is deprecated.
    import "./IERC20Permit.sol";
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 17 of 58 : IERC20Permit.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    // SPDX-License-Identifier: MIT
    // OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/extensions/IERC20Permit.sol)
    pragma solidity ^0.8.0;
    /**
    * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in
    * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].
    *
    * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by
    * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't
    * need to send a transaction, and thus is not required to hold Ether at all.
    */
    interface IERC20Permit {
    /**
    * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,
    * given ``owner``'s signed approval.
    *
    * IMPORTANT: The same issues {IERC20-approve} has related to transaction
    * ordering also apply here.
    *
    * Emits an {Approval} event.
    *
    * Requirements:
    *
    * - `spender` cannot be the zero address.
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 18 of 58 : IERC20.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    // SPDX-License-Identifier: MIT
    // OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol)
    pragma solidity ^0.8.0;
    /**
    * @dev Interface of the ERC20 standard as defined in the EIP.
    */
    interface IERC20 {
    /**
    * @dev Emitted when `value` tokens are moved from one account (`from`) to
    * another (`to`).
    *
    * Note that `value` may be zero.
    */
    event Transfer(address indexed from, address indexed to, uint256 value);
    /**
    * @dev Emitted when the allowance of a `spender` for an `owner` is set by
    * a call to {approve}. `value` is the new allowance.
    */
    event Approval(address indexed owner, address indexed spender, uint256 value);
    /**
    * @dev Returns the amount of tokens in existence.
    */
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 19 of 58 : ERC721.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    // SPDX-License-Identifier: MIT
    // OpenZeppelin Contracts (last updated v4.9.0) (token/ERC721/ERC721.sol)
    pragma solidity ^0.8.0;
    import "./IERC721.sol";
    import "./IERC721Receiver.sol";
    import "./extensions/IERC721Metadata.sol";
    import "../../utils/Address.sol";
    import "../../utils/Context.sol";
    import "../../utils/Strings.sol";
    import "../../utils/introspection/ERC165.sol";
    /**
    * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
    * the Metadata extension, but not including the Enumerable extension, which is available separately as
    * {ERC721Enumerable}.
    */
    contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
    using Address for address;
    using Strings for uint256;
    // Token name
    string private _name;
    // Token symbol
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 20 of 58 : ERC721Enumerable.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    // SPDX-License-Identifier: MIT
    // OpenZeppelin Contracts (last updated v4.8.0) (token/ERC721/extensions/ERC721Enumerable.sol)
    pragma solidity ^0.8.0;
    import "../ERC721.sol";
    import "./IERC721Enumerable.sol";
    /**
    * @dev This implements an optional extension of {ERC721} defined in the EIP that adds
    * enumerability of all the token ids in the contract as well as all token ids owned by each
    * account.
    */
    abstract contract ERC721Enumerable is ERC721, IERC721Enumerable {
    // Mapping from owner to list of owned token IDs
    mapping(address => mapping(uint256 => uint256)) private _ownedTokens;
    // Mapping from token ID to index of the owner tokens list
    mapping(uint256 => uint256) private _ownedTokensIndex;
    // Array with all token ids, used for enumeration
    uint256[] private _allTokens;
    // Mapping from token id to position in the allTokens array
    mapping(uint256 => uint256) private _allTokensIndex;
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 21 of 58 : IERC721Enumerable.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    // SPDX-License-Identifier: MIT
    // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol)
    pragma solidity ^0.8.0;
    import "../IERC721.sol";
    /**
    * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension
    * @dev See https://eips.ethereum.org/EIPS/eip-721
    */
    interface IERC721Enumerable is IERC721 {
    /**
    * @dev Returns the total amount of tokens stored by the contract.
    */
    function totalSupply() external view returns (uint256);
    /**
    * @dev Returns a token ID owned by `owner` at a given `index` of its token list.
    * Use along with {balanceOf} to enumerate all of ``owner``'s tokens.
    */
    function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256);
    /**
    * @dev Returns a token ID at a given `index` of all the tokens stored by the contract.
    * Use along with {totalSupply} to enumerate all tokens.
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 22 of 58 : IERC721Metadata.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    // SPDX-License-Identifier: MIT
    // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol)
    pragma solidity ^0.8.0;
    import "../IERC721.sol";
    /**
    * @title ERC-721 Non-Fungible Token Standard, optional metadata extension
    * @dev See https://eips.ethereum.org/EIPS/eip-721
    */
    interface IERC721Metadata is IERC721 {
    /**
    * @dev Returns the token collection name.
    */
    function name() external view returns (string memory);
    /**
    * @dev Returns the token collection symbol.
    */
    function symbol() external view returns (string memory);
    /**
    * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
    */
    function tokenURI(uint256 tokenId) external view returns (string memory);
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 23 of 58 : IERC721.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    // SPDX-License-Identifier: MIT
    // OpenZeppelin Contracts (last updated v4.9.0) (token/ERC721/IERC721.sol)
    pragma solidity ^0.8.0;
    import "../../utils/introspection/IERC165.sol";
    /**
    * @dev Required interface of an ERC721 compliant contract.
    */
    interface IERC721 is IERC165 {
    /**
    * @dev Emitted when `tokenId` token is transferred from `from` to `to`.
    */
    event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);
    /**
    * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
    */
    event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);
    /**
    * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.
    */
    event ApprovalForAll(address indexed owner, address indexed operator, bool approved);
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 24 of 58 : IERC721Receiver.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    // SPDX-License-Identifier: MIT
    // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol)
    pragma solidity ^0.8.0;
    /**
    * @title ERC721 token receiver interface
    * @dev Interface for any contract that wants to support safeTransfers
    * from ERC721 asset contracts.
    */
    interface IERC721Receiver {
    /**
    * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}
    * by `operator` from `from`, this function is called.
    *
    * It must return its Solidity selector to confirm the token transfer.
    * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted.
    *
    * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`.
    */
    function onERC721Received(
    address operator,
    address from,
    uint256 tokenId,
    bytes calldata data
    ) external returns (bytes4);
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 25 of 58 : Address.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    // SPDX-License-Identifier: MIT
    // OpenZeppelin Contracts (last updated v4.9.0) (utils/Address.sol)
    pragma solidity ^0.8.1;
    /**
    * @dev Collection of functions related to the address type
    */
    library Address {
    /**
    * @dev Returns true if `account` is a contract.
    *
    * [IMPORTANT]
    * ====
    * It is unsafe to assume that an address for which this function returns
    * false is an externally-owned account (EOA) and not a contract.
    *
    * Among others, `isContract` will return false for the following
    * types of addresses:
    *
    * - an externally-owned account
    * - a contract in construction
    * - an address where a contract will be created
    * - an address where a contract lived, but was destroyed
    *
    * Furthermore, `isContract` will also return true if the target contract within
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 26 of 58 : Context.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    // SPDX-License-Identifier: MIT
    // OpenZeppelin Contracts v4.4.1 (utils/Context.sol)
    pragma solidity ^0.8.0;
    /**
    * @dev Provides information about the current execution context, including the
    * sender of the transaction and its data. While these are generally available
    * via msg.sender and msg.data, they should not be accessed in such a direct
    * manner, since when dealing with meta-transactions the account sending and
    * paying for execution may not be the actual sender (as far as an application
    * is concerned).
    *
    * This contract is only required for intermediate, library-like contracts.
    */
    abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
    return msg.sender;
    }
    function _msgData() internal view virtual returns (bytes calldata) {
    return msg.data;
    }
    }
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 27 of 58 : ERC165.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    // SPDX-License-Identifier: MIT
    // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)
    pragma solidity ^0.8.0;
    import "./IERC165.sol";
    /**
    * @dev Implementation of the {IERC165} interface.
    *
    * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
    * for the additional interface id that will be supported. For example:
    *
    * ```solidity
    * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
    * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
    * }
    * ```
    *
    * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.
    */
    abstract contract ERC165 is IERC165 {
    /**
    * @dev See {IERC165-supportsInterface}.
    */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 28 of 58 : IERC165.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    // SPDX-License-Identifier: MIT
    // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)
    pragma solidity ^0.8.0;
    /**
    * @dev Interface of the ERC165 standard, as defined in the
    * https://eips.ethereum.org/EIPS/eip-165[EIP].
    *
    * Implementers can declare support of contract interfaces, which can then be
    * queried by others ({ERC165Checker}).
    *
    * For an implementation, see {ERC165}.
    */
    interface IERC165 {
    /**
    * @dev Returns true if this contract implements the interface defined by
    * `interfaceId`. See the corresponding
    * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
    * to learn more about how these ids are created.
    *
    * This function call must use less than 30 000 gas.
    */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);
    }
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 29 of 58 : Math.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    // SPDX-License-Identifier: MIT
    // OpenZeppelin Contracts (last updated v4.9.0) (utils/math/Math.sol)
    pragma solidity ^0.8.0;
    /**
    * @dev Standard math utilities missing in the Solidity language.
    */
    library Math {
    enum Rounding {
    Down, // Toward negative infinity
    Up, // Toward infinity
    Zero // Toward zero
    }
    /**
    * @dev Returns the largest of two numbers.
    */
    function max(uint256 a, uint256 b) internal pure returns (uint256) {
    return a > b ? a : b;
    }
    /**
    * @dev Returns the smallest of two numbers.
    */
    function min(uint256 a, uint256 b) internal pure returns (uint256) {
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 30 of 58 : SignedMath.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    // SPDX-License-Identifier: MIT
    // OpenZeppelin Contracts (last updated v4.8.0) (utils/math/SignedMath.sol)
    pragma solidity ^0.8.0;
    /**
    * @dev Standard signed math utilities missing in the Solidity language.
    */
    library SignedMath {
    /**
    * @dev Returns the largest of two signed numbers.
    */
    function max(int256 a, int256 b) internal pure returns (int256) {
    return a > b ? a : b;
    }
    /**
    * @dev Returns the smallest of two signed numbers.
    */
    function min(int256 a, int256 b) internal pure returns (int256) {
    return a < b ? a : b;
    }
    /**
    * @dev Returns the average of two signed numbers without overflow.
    * The result is rounded towards zero.
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 31 of 58 : Strings.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    // SPDX-License-Identifier: MIT
    // OpenZeppelin Contracts (last updated v4.9.0) (utils/Strings.sol)
    pragma solidity ^0.8.0;
    import "./math/Math.sol";
    import "./math/SignedMath.sol";
    /**
    * @dev String operations.
    */
    library Strings {
    bytes16 private constant _SYMBOLS = "0123456789abcdef";
    uint8 private constant _ADDRESS_LENGTH = 20;
    /**
    * @dev Converts a `uint256` to its ASCII `string` decimal representation.
    */
    function toString(uint256 value) internal pure returns (string memory) {
    unchecked {
    uint256 length = Math.log10(value) + 1;
    string memory buffer = new string(length);
    uint256 ptr;
    /// @solidity memory-safe-assembly
    assembly {
    ptr := add(buffer, add(32, length))
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 32 of 58 : BlockTimestamp.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    // SPDX-License-Identifier: GPL-2.0-or-later
    pragma solidity =0.8.20;
    /// @title Function for getting block timestamp
    /// @dev Base contract that is overridden for tests
    abstract contract BlockTimestamp {
    /// @dev Method that exists purely to be overridden for tests
    /// @return The current block timestamp
    function _blockTimestamp() internal view virtual returns (uint256) {
    return block.timestamp;
    }
    }
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 33 of 58 : ERC721Permit.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    // SPDX-License-Identifier: GPL-2.0-or-later
    pragma solidity =0.8.20;
    import '@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol';
    import '@openzeppelin/contracts/utils/Address.sol';
    import '../interfaces/external/IERC1271.sol';
    import '../interfaces/IERC721Permit.sol';
    import './BlockTimestamp.sol';
    /// @title ERC721 with permit
    /// @notice Nonfungible tokens that support an approve via signature, i.e. permit
    abstract contract ERC721Permit is BlockTimestamp, ERC721Enumerable, IERC721Permit {
    bytes32 private constant _TYPE_HASH =
    keccak256('EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)');
    /// @dev Gets the current nonce for a token ID and then increments it, returning the original value
    function _getAndIncrementNonce(uint256 tokenId) internal virtual returns (uint256);
    /// @dev The hash of the name used in the permit signature verification
    bytes32 private immutable nameHash;
    /// @dev The hash of the version string used in the permit signature verification
    bytes32 private immutable versionHash;
    bytes32 private immutable _cachedDomainSeparator;
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 34 of 58 : LiquidityManagement.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    // SPDX-License-Identifier: GPL-2.0-or-later
    pragma solidity =0.8.20;
    import '@cryptoalgebra/integral-core/contracts/interfaces/IAlgebraFactory.sol';
    import '@cryptoalgebra/integral-core/contracts/interfaces/callback/IAlgebraMintCallback.sol';
    import '@cryptoalgebra/integral-core/contracts/libraries/TickMath.sol';
    import '../libraries/PoolAddress.sol';
    import '../libraries/CallbackValidation.sol';
    import '../libraries/LiquidityAmounts.sol';
    import '../libraries/PoolInteraction.sol';
    import './PeripheryPayments.sol';
    import './PeripheryImmutableState.sol';
    /// @title Liquidity management functions
    /// @notice Internal functions for safely managing liquidity in Algebra
    /// @dev Credit to Uniswap Labs under GPL-2.0-or-later license:
    /// https://github.com/Uniswap/v3-periphery
    abstract contract LiquidityManagement is IAlgebraMintCallback, PeripheryImmutableState, PeripheryPayments {
    using PoolInteraction for IAlgebraPool;
    struct MintCallbackData {
    PoolAddress.PoolKey poolKey;
    address payer;
    }
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 35 of 58 : Multicall.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    // SPDX-License-Identifier: GPL-2.0-or-later
    pragma solidity =0.8.20;
    import '../interfaces/IMulticall.sol';
    /// @title Multicall
    /// @notice Enables calling multiple methods in a single call to the contract
    abstract contract Multicall is IMulticall {
    /// @inheritdoc IMulticall
    function multicall(bytes[] calldata data) external payable override returns (bytes[] memory results) {
    results = new bytes[](data.length);
    unchecked {
    for (uint256 i = 0; i < data.length; i++) {
    (bool success, bytes memory result) = address(this).delegatecall(data[i]);
    if (!success) {
    // Look for revert reason and bubble it up if present
    require(result.length > 0);
    // The easiest way to bubble the revert reason is using memory via assembly
    assembly ('memory-safe') {
    revert(add(32, result), mload(result))
    }
    }
    results[i] = result;
    }
    }
    }
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 36 of 58 : PeripheryImmutableState.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    // SPDX-License-Identifier: GPL-2.0-or-later
    pragma solidity =0.8.20;
    import '../interfaces/IPeripheryImmutableState.sol';
    /// @title Immutable state
    /// @notice Immutable state used by periphery contracts
    /// @dev Credit to Uniswap Labs under GPL-2.0-or-later license:
    /// https://github.com/Uniswap/v3-periphery
    abstract contract PeripheryImmutableState is IPeripheryImmutableState {
    /// @inheritdoc IPeripheryImmutableState
    address public immutable override factory;
    /// @inheritdoc IPeripheryImmutableState
    address public immutable override poolDeployer;
    /// @inheritdoc IPeripheryImmutableState
    address public immutable override WNativeToken;
    constructor(address _factory, address _WNativeToken, address _poolDeployer) {
    factory = _factory;
    poolDeployer = _poolDeployer;
    WNativeToken = _WNativeToken;
    }
    }
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 37 of 58 : PeripheryPayments.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    // SPDX-License-Identifier: GPL-2.0-or-later
    pragma solidity >=0.7.5;
    import '@openzeppelin/contracts/token/ERC20/IERC20.sol';
    import '../interfaces/IPeripheryPayments.sol';
    import '../interfaces/external/IWNativeToken.sol';
    import '../libraries/TransferHelper.sol';
    import './PeripheryImmutableState.sol';
    /// @dev Credit to Uniswap Labs under GPL-2.0-or-later license:
    /// https://github.com/Uniswap/v3-periphery
    abstract contract PeripheryPayments is IPeripheryPayments, PeripheryImmutableState {
    receive() external payable {
    require(msg.sender == WNativeToken, 'Not WNativeToken');
    }
    function _balanceOfToken(address token) private view returns (uint256) {
    return (IERC20(token).balanceOf(address(this)));
    }
    /// @inheritdoc IPeripheryPayments
    function unwrapWNativeToken(uint256 amountMinimum, address recipient) external payable override {
    uint256 balanceWNativeToken = _balanceOfToken(WNativeToken);
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 38 of 58 : PeripheryValidation.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    // SPDX-License-Identifier: GPL-2.0-or-later
    pragma solidity =0.8.20;
    import './BlockTimestamp.sol';
    /// @dev Credit to Uniswap Labs under GPL-2.0-or-later license:
    /// https://github.com/Uniswap/v3-periphery
    abstract contract PeripheryValidation is BlockTimestamp {
    modifier checkDeadline(uint256 deadline) {
    _checkDeadline(deadline);
    _;
    }
    function _checkDeadline(uint256 deadline) private view {
    require(_blockTimestamp() <= deadline, 'Transaction too old');
    }
    }
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 39 of 58 : PoolInitializer.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    // SPDX-License-Identifier: GPL-2.0-or-later
    pragma solidity =0.8.20;
    import '@cryptoalgebra/integral-core/contracts/interfaces/IAlgebraFactory.sol';
    import '@cryptoalgebra/integral-core/contracts/interfaces/IAlgebraPool.sol';
    import './PeripheryImmutableState.sol';
    import '../interfaces/IPoolInitializer.sol';
    import '../libraries/PoolInteraction.sol';
    /// @title Creates and initializes Algebra Pools
    /// @dev Credit to Uniswap Labs under GPL-2.0-or-later license:
    /// https://github.com/Uniswap/v3-periphery
    abstract contract PoolInitializer is IPoolInitializer, PeripheryImmutableState {
    using PoolInteraction for IAlgebraPool;
    /// @inheritdoc IPoolInitializer
    function createAndInitializePoolIfNecessary(
    address token0,
    address token1,
    uint160 sqrtPriceX96
    ) external payable override returns (address pool) {
    require(token0 < token1, 'Invalid order of tokens');
    pool = IAlgebraFactory(factory).poolByPair(token0, token1);
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 40 of 58 : SelfPermit.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    // SPDX-License-Identifier: GPL-2.0-or-later
    pragma solidity >=0.5.0;
    import '@openzeppelin/contracts/token/ERC20/IERC20.sol';
    import '@openzeppelin/contracts/token/ERC20/extensions/draft-IERC20Permit.sol';
    import '../interfaces/ISelfPermit.sol';
    import '../interfaces/external/IERC20PermitAllowed.sol';
    /// @title Self Permit
    /// @notice Functionality to call permit on any EIP-2612-compliant token for use in the route
    /// @dev These functions are expected to be embedded in multicalls to allow EOAs to approve a contract and call a function
    /// that requires an approval in a single transaction.
    abstract contract SelfPermit is ISelfPermit {
    /// @inheritdoc ISelfPermit
    function selfPermit(
    address token,
    uint256 value,
    uint256 deadline,
    uint8 v,
    bytes32 r,
    bytes32 s
    ) public payable override {
    IERC20Permit(token).permit(msg.sender, address(this), value, deadline, v, r, s);
    }
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 41 of 58 : IERC1271.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    // SPDX-License-Identifier: GPL-2.0-or-later
    pragma solidity >=0.5.0;
    /// @title Interface for verifying contract-based account signatures
    /// @notice Interface that verifies provided signature for the data
    /// @dev Interface defined by EIP-1271
    interface IERC1271 {
    /// @notice Returns whether the provided signature is valid for the provided data
    /// @dev MUST return the bytes4 magic value 0x1626ba7e when function passes.
    /// MUST NOT modify state (using STATICCALL for solc < 0.5, view modifier for solc > 0.5).
    /// MUST allow external calls.
    /// @param hash Hash of the data to be signed
    /// @param signature Signature byte array associated with _data
    /// @return magicValue The bytes4 magic value 0x1626ba7e
    function isValidSignature(bytes32 hash, bytes memory signature) external view returns (bytes4 magicValue);
    }
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 42 of 58 : IERC20PermitAllowed.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    // SPDX-License-Identifier: GPL-2.0-or-later
    pragma solidity >=0.5.0;
    /// @title Interface for permit
    /// @notice Interface used by DAI/CHAI for permit
    interface IERC20PermitAllowed {
    /// @notice Approve the spender to spend some tokens via the holder signature
    /// @dev This is the permit interface used by DAI and CHAI
    /// @param holder The address of the token holder, the token owner
    /// @param spender The address of the token spender
    /// @param nonce The holder's nonce, increases at each call to permit
    /// @param expiry The timestamp at which the permit is no longer valid
    /// @param allowed Boolean that sets approval amount, true for type(uint256).max and false for 0
    /// @param v Must produce valid secp256k1 signature from the holder along with `r` and `s`
    /// @param r Must produce valid secp256k1 signature from the holder along with `v` and `s`
    /// @param s Must produce valid secp256k1 signature from the holder along with `r` and `v`
    function permit(
    address holder,
    address spender,
    uint256 nonce,
    uint256 expiry,
    bool allowed,
    uint8 v,
    bytes32 r,
    bytes32 s
    ) external;
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 43 of 58 : IWNativeToken.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    // SPDX-License-Identifier: GPL-2.0-or-later
    pragma solidity ^0.8.0;
    import '@openzeppelin/contracts/token/ERC20/IERC20.sol';
    /// @title Interface for WNativeToken
    interface IWNativeToken is IERC20 {
    /// @notice Deposit ether to get wrapped ether
    function deposit() external payable;
    /// @notice Withdraw wrapped ether to get ether
    function withdraw(uint256) external;
    }
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 44 of 58 : IERC721Permit.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    // SPDX-License-Identifier: GPL-2.0-or-later
    pragma solidity >=0.7.5;
    import '@openzeppelin/contracts/token/ERC721/IERC721.sol';
    /// @title ERC721 with permit
    /// @notice Extension to ERC721 that includes a permit function for signature based approvals
    interface IERC721Permit is IERC721 {
    /// @notice The permit typehash used in the permit signature
    /// @return The typehash for the permit
    function PERMIT_TYPEHASH() external pure returns (bytes32);
    /// @notice The domain separator used in the permit signature
    /// @return The domain separator used in encoding of permit signature
    function DOMAIN_SEPARATOR() external view returns (bytes32);
    /// @notice Approve of a specific token ID for spending by spender via signature
    /// @param spender The account that is being approved
    /// @param tokenId The ID of the token that is being approved for spending
    /// @param deadline The deadline timestamp by which the call must be mined for the approve to work
    /// @param v Must produce valid secp256k1 signature from the holder along with `r` and `s`
    /// @param r Must produce valid secp256k1 signature from the holder along with `v` and `s`
    /// @param s Must produce valid secp256k1 signature from the holder along with `r` and `v`
    function permit(
    address spender,
    uint256 tokenId,
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 45 of 58 : IMulticall.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    // SPDX-License-Identifier: GPL-2.0-or-later
    pragma solidity >=0.7.5;
    pragma abicoder v2;
    /// @title Multicall interface
    /// @notice Enables calling multiple methods in a single call to the contract
    interface IMulticall {
    /// @notice Call multiple functions in the current contract and return the data from all of them if they all succeed
    /// @dev The `msg.value` should not be trusted for any method callable from multicall.
    /// @param data The encoded function data for each of the calls to make to this contract
    /// @return results The results from each of the calls passed in via data
    function multicall(bytes[] calldata data) external payable returns (bytes[] memory results);
    }
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 46 of 58 : INonfungiblePositionManager.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    // SPDX-License-Identifier: GPL-2.0-or-later
    pragma solidity >=0.7.5;
    pragma abicoder v2;
    import '@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol';
    import '@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol';
    import './IPoolInitializer.sol';
    import './IERC721Permit.sol';
    import './IPeripheryPayments.sol';
    import './IPeripheryImmutableState.sol';
    /// @title Non-fungible token for positions
    /// @notice Wraps Algebra positions in a non-fungible token interface which allows for them to be transferred
    /// and authorized.
    /// @dev Credit to Uniswap Labs under GPL-2.0-or-later license:
    /// https://github.com/Uniswap/v3-periphery
    interface INonfungiblePositionManager is
    IPoolInitializer,
    IPeripheryPayments,
    IPeripheryImmutableState,
    IERC721Metadata,
    IERC721Enumerable,
    IERC721Permit
    {
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 47 of 58 : INonfungibleTokenPositionDescriptor.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    // SPDX-License-Identifier: GPL-2.0-or-later
    pragma solidity >=0.5.0;
    import './INonfungiblePositionManager.sol';
    /// @title Describes position NFT tokens via URI
    /// @dev Credit to Uniswap Labs under GPL-2.0-or-later license:
    /// https://github.com/Uniswap/v3-periphery
    interface INonfungibleTokenPositionDescriptor {
    /// @notice Produces the URI describing a particular token ID for a position manager
    /// @dev Note this URI may be a data: URI with the JSON contents directly inlined
    /// @param positionManager The position manager for which to describe the token
    /// @param tokenId The ID of the token for which to produce a description, which may not be valid
    /// @return The URI of the ERC721-compliant metadata
    function tokenURI(INonfungiblePositionManager positionManager, uint256 tokenId)
    external
    view
    returns (string memory);
    }
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 48 of 58 : IPeripheryImmutableState.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    // SPDX-License-Identifier: GPL-2.0-or-later
    pragma solidity >=0.5.0;
    /// @title Immutable state
    /// @notice Functions that return immutable state of the router
    /// @dev Credit to Uniswap Labs under GPL-2.0-or-later license:
    /// https://github.com/Uniswap/v3-periphery
    interface IPeripheryImmutableState {
    /// @return Returns the address of the Algebra factory
    function factory() external view returns (address);
    /// @return Returns the address of the pool Deployer
    function poolDeployer() external view returns (address);
    /// @return Returns the address of WNativeToken
    function WNativeToken() external view returns (address);
    }
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 49 of 58 : IPeripheryPayments.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    // SPDX-License-Identifier: GPL-2.0-or-later
    pragma solidity >=0.7.5;
    /// @title Periphery Payments
    /// @notice Functions to ease deposits and withdrawals of NativeToken
    /// @dev Credit to Uniswap Labs under GPL-2.0-or-later license:
    /// https://github.com/Uniswap/v3-periphery
    interface IPeripheryPayments {
    /// @notice Unwraps the contract's WNativeToken balance and sends it to recipient as NativeToken.
    /// @dev The amountMinimum parameter prevents malicious contracts from stealing WNativeToken from users.
    /// @param amountMinimum The minimum amount of WNativeToken to unwrap
    /// @param recipient The address receiving NativeToken
    function unwrapWNativeToken(uint256 amountMinimum, address recipient) external payable;
    /// @notice Refunds any NativeToken balance held by this contract to the `msg.sender`
    /// @dev Useful for bundling with mint or increase liquidity that uses ether, or exact output swaps
    /// that use ether for the input amount
    function refundNativeToken() external payable;
    /// @notice Transfers the full amount of a token held by this contract to recipient
    /// @dev The amountMinimum parameter prevents malicious contracts from stealing the token from users
    /// @param token The contract address of the token which will be transferred to `recipient`
    /// @param amountMinimum The minimum amount of token required for a transfer
    /// @param recipient The destination address of the token
    function sweepToken(
    address token,
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 50 of 58 : IPoolInitializer.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    // SPDX-License-Identifier: GPL-2.0-or-later
    pragma solidity >=0.7.5;
    pragma abicoder v2;
    /// @title Creates and initializes Algebra Pools
    /// @notice Provides a method for creating and initializing a pool, if necessary, for bundling with other methods that
    /// require the pool to exist.
    /// @dev Credit to Uniswap Labs under GPL-2.0-or-later license:
    /// https://github.com/Uniswap/v3-periphery
    interface IPoolInitializer {
    /// @notice Creates a new pool if it does not exist, then initializes if not initialized
    /// @dev This method can be bundled with others via IMulticall for the first action (e.g. mint) performed against a pool
    /// @param token0 The contract address of token0 of the pool
    /// @param token1 The contract address of token1 of the pool
    /// @param sqrtPriceX96 The initial square root price of the pool as a Q64.96 value
    /// @return pool Returns the pool address based on the pair of tokens and fee, will return the newly created pool address if necessary
    function createAndInitializePoolIfNecessary(
    address token0,
    address token1,
    uint160 sqrtPriceX96
    ) external payable returns (address pool);
    }
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 51 of 58 : IPositionFollower.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    // SPDX-License-Identifier: GPL-2.0-or-later
    pragma solidity >=0.5.0;
    /// @title Contract tracking liquidity position
    /// @notice Using these methods farmingCenter receives information about changes in the positions
    interface IPositionFollower {
    /// @notice Report a change of liquidity in position
    /// @param tokenId The ID of the token for which liquidity is being added
    /// @param liquidityDelta The amount of added liquidity
    function applyLiquidityDelta(uint256 tokenId, int256 liquidityDelta) external;
    }
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 52 of 58 : ISelfPermit.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    // SPDX-License-Identifier: GPL-2.0-or-later
    pragma solidity >=0.7.5;
    /// @title Self Permit
    /// @notice Functionality to call permit on any EIP-2612-compliant token for use in the route
    interface ISelfPermit {
    /// @notice Permits this contract to spend a given token from `msg.sender`
    /// @dev The `owner` is always msg.sender and the `spender` is always address(this).
    /// @param token The address of the token spent
    /// @param value The amount that can be spent of token
    /// @param deadline A timestamp, the current blocktime must be less than or equal to this timestamp
    /// @param v Must produce valid secp256k1 signature from the holder along with `r` and `s`
    /// @param r Must produce valid secp256k1 signature from the holder along with `v` and `s`
    /// @param s Must produce valid secp256k1 signature from the holder along with `r` and `v`
    function selfPermit(
    address token,
    uint256 value,
    uint256 deadline,
    uint8 v,
    bytes32 r,
    bytes32 s
    ) external payable;
    /// @notice Permits this contract to spend a given token from `msg.sender`
    /// @dev The `owner` is always msg.sender and the `spender` is always address(this).
    /// Can be used instead of #selfPermit to prevent calls from failing due to a frontrun of a call to #selfPermit
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 53 of 58 : CallbackValidation.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    // SPDX-License-Identifier: GPL-2.0-or-later
    pragma solidity ^0.8.0;
    import '@cryptoalgebra/integral-core/contracts/interfaces/IAlgebraPool.sol';
    import './PoolAddress.sol';
    /// @notice Provides validation for callbacks from Algebra Pools
    /// @dev Credit to Uniswap Labs under GPL-2.0-or-later license:
    /// https://github.com/Uniswap/v3-periphery
    library CallbackValidation {
    /// @notice Returns the address of a valid Algebra Pool
    /// @param poolDeployer The contract address of the Algebra pool deployer
    /// @param tokenA The contract address of either token0 or token1
    /// @param tokenB The contract address of the other token
    /// @return pool The Algebra pool contract address
    function verifyCallback(
    address poolDeployer,
    address tokenA,
    address tokenB
    ) internal view returns (IAlgebraPool pool) {
    return verifyCallback(poolDeployer, PoolAddress.getPoolKey(tokenA, tokenB));
    }
    /// @notice Returns the address of a valid Algebra Pool
    /// @param poolDeployer The contract address of the Algebra pool deployer
    /// @param poolKey The identifying key of the ALgebra pool
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 54 of 58 : LiquidityAmounts.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    // SPDX-License-Identifier: GPL-2.0-or-later
    pragma solidity >=0.5.0;
    import '@cryptoalgebra/integral-core/contracts/libraries/FullMath.sol';
    import '@cryptoalgebra/integral-core/contracts/libraries/Constants.sol';
    /// @title Liquidity amount functions
    /// @notice Provides functions for computing liquidity amounts from token amounts and prices
    /// @dev Credit to Uniswap Labs under GPL-2.0-or-later license:
    /// https://github.com/Uniswap/v3-periphery
    library LiquidityAmounts {
    /// @notice Downcasts uint256 to uint128
    /// @param x The uint258 to be downcasted
    /// @return y The passed value, downcasted to uint128
    function toUint128(uint256 x) private pure returns (uint128 y) {
    require((y = uint128(x)) == x);
    }
    /// @notice Computes the amount of liquidity received for a given amount of token0 and price range
    /// @dev Calculates amount0 * (sqrt(upper) * sqrt(lower)) / (sqrt(upper) - sqrt(lower))
    /// @param sqrtRatioAX96 A sqrt price representing the first tick boundary
    /// @param sqrtRatioBX96 A sqrt price representing the second tick boundary
    /// @param amount0 The amount0 being sent in
    /// @return liquidity The amount of returned liquidity
    function getLiquidityForAmount0(
    uint160 sqrtRatioAX96,
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 55 of 58 : PoolAddress.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    // SPDX-License-Identifier: GPL-2.0-or-later
    pragma solidity >=0.5.0;
    /// @title Provides functions for deriving a pool address from the poolDeployer and tokens
    /// @dev Credit to Uniswap Labs under GPL-2.0-or-later license:
    /// https://github.com/Uniswap/v3-periphery
    library PoolAddress {
    bytes32 internal constant POOL_INIT_CODE_HASH = 0xf96d2474815c32e070cd63233f06af5413efc5dcb430aee4ff18cc29007c562d;
    /// @notice The identifying key of the pool
    struct PoolKey {
    address token0;
    address token1;
    }
    /// @notice Returns PoolKey: the ordered tokens
    /// @param tokenA The first token of a pool, unsorted
    /// @param tokenB The second token of a pool, unsorted
    /// @return Poolkey The pool details with ordered token0 and token1 assignments
    function getPoolKey(address tokenA, address tokenB) internal pure returns (PoolKey memory) {
    if (tokenA > tokenB) (tokenA, tokenB) = (tokenB, tokenA);
    return PoolKey({token0: tokenA, token1: tokenB});
    }
    /// @notice Deterministically computes the pool address given the poolDeployer and PoolKey
    /// @param poolDeployer The Algebra poolDeployer contract address
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 56 of 58 : PoolInteraction.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    // SPDX-License-Identifier: GPL-2.0-or-later
    pragma solidity =0.8.20;
    import '@cryptoalgebra/integral-core/contracts/interfaces/IAlgebraPool.sol';
    import './PositionKey.sol';
    /// @title Implements commonly used interactions with Algebra pool
    library PoolInteraction {
    function _getPositionInPool(
    IAlgebraPool pool,
    address owner,
    int24 tickLower,
    int24 tickUpper
    )
    internal
    view
    returns (
    uint256 liquidityAmount,
    uint256 innerFeeGrowth0Token,
    uint256 innerFeeGrowth1Token,
    uint128 fees0,
    uint128 fees1
    )
    {
    bytes32 positionKey = PositionKey.compute(owner, tickLower, tickUpper);
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 57 of 58 : PositionKey.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    // SPDX-License-Identifier: GPL-2.0-or-later
    pragma solidity >=0.5.0;
    library PositionKey {
    /// @dev Returns the key of the position in the core library
    function compute(
    address owner,
    int24 bottomTick,
    int24 topTick
    ) internal pure returns (bytes32 key) {
    assembly {
    key := or(shl(24, or(shl(24, owner), and(bottomTick, 0xFFFFFF))), and(topTick, 0xFFFFFF))
    }
    }
    }
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    File 58 of 58 : TransferHelper.sol
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    // SPDX-License-Identifier: GPL-2.0-or-later
    pragma solidity >=0.6.0;
    import '@openzeppelin/contracts/token/ERC20/IERC20.sol';
    /// @dev Credit to Uniswap Labs under GPL-2.0-or-later license:
    /// https://github.com/Uniswap/v3-periphery
    library TransferHelper {
    /// @notice Transfers 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');
    }
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    Settings
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    {
    "evmVersion": "paris",
    "optimizer": {
    "enabled": true,
    "runs": 2000
    },
    "metadata": {
    "bytecodeHash": "none"
    },
    "outputSelection": {
    "*": {
    "*": [
    "evm.bytecode",
    "evm.deployedBytecode",
    "devdoc",
    "userdoc",
    "metadata",
    "abi"
    ]
    }
    },
    "libraries": {}
    }
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    Contract Security Audit

    Contract ABI

    [{"inputs":[{"internalType":"address","name":"_factory","type":"address"},{"internalType":"address","name":"_WNativeToken","type":"address"},{"internalType":"address","name":"_tokenDescriptor_","type":"address"},{"internalType":"address","name":"_poolDeployer","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"tickOutOfRange","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"address","name":"recipient","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount0","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount1","type":"uint256"}],"name":"Collect","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint128","name":"liquidity","type":"uint128"},{"indexed":false,"internalType":"uint256","name":"amount0","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount1","type":"uint256"}],"name":"DecreaseLiquidity","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"farmingCenterAddress","type":"address"}],"name":"FarmingCenter","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"FarmingFailed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint128","name":"liquidityDesired","type":"uint128"},{"indexed":false,"internalType":"uint128","name":"actualLiquidity","type":"uint128"},{"indexed":false,"internalType":"uint256","name":"amount0","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount1","type":"uint256"},{"indexed":false,"internalType":"address","name":"pool","type":"address"}],"name":"IncreaseLiquidity","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"DOMAIN_SEPARATOR","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"NONFUNGIBLE_POSITION_MANAGER_ADMINISTRATOR_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PERMIT_TYPEHASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WNativeToken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount0Owed","type":"uint256"},{"internalType":"uint256","name":"amount1Owed","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"algebraMintCallback","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bool","name":"approve","type":"bool"},{"internalType":"address","name":"farmingAddress","type":"address"}],"name":"approveForFarming","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"components":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint128","name":"amount0Max","type":"uint128"},{"internalType":"uint128","name":"amount1Max","type":"uint128"}],"internalType":"struct INonfungiblePositionManager.CollectParams","name":"params","type":"tuple"}],"name":"collect","outputs":[{"internalType":"uint256","name":"amount0","type":"uint256"},{"internalType":"uint256","name":"amount1","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"token0","type":"address"},{"internalType":"address","name":"token1","type":"address"},{"internalType":"uint160","name":"sqrtPriceX96","type":"uint160"}],"name":"createAndInitializePoolIfNecessary","outputs":[{"internalType":"address","name":"pool","type":"address"}],"stateMutability":"payable","type":"function"},{"inputs":[{"components":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint128","name":"liquidity","type":"uint128"},{"internalType":"uint256","name":"amount0Min","type":"uint256"},{"internalType":"uint256","name":"amount1Min","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"internalType":"struct INonfungiblePositionManager.DecreaseLiquidityParams","name":"params","type":"tuple"}],"name":"decreaseLiquidity","outputs":[{"internalType":"uint256","name":"amount0","type":"uint256"},{"internalType":"uint256","name":"amount1","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"factory","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"farmingApprovals","outputs":[{"internalType":"address","name":"farmingCenterAddress","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"farmingCenter","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"amount0Desired","type":"uint256"},{"internalType":"uint256","name":"amount1Desired","type":"uint256"},{"internalType":"uint256","name":"amount0Min","type":"uint256"},{"internalType":"uint256","name":"amount1Min","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"internalType":"struct INonfungiblePositionManager.IncreaseLiquidityParams","name":"params","type":"tuple"}],"name":"increaseLiquidity","outputs":[{"internalType":"uint128","name":"liquidity","type":"uint128"},{"internalType":"uint256","name":"amount0","type":"uint256"},{"internalType":"uint256","name":"amount1","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"isApprovedOrOwner","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"token0","type":"address"},{"internalType":"address","name":"token1","type":"address"},{"internalType":"int24","name":"tickLower","type":"int24"},{"internalType":"int24","name":"tickUpper","type":"int24"},{"internalType":"uint256","name":"amount0Desired","type":"uint256"},{"internalType":"uint256","name":"amount1Desired","type":"uint256"},{"internalType":"uint256","name":"amount0Min","type":"uint256"},{"internalType":"uint256","name":"amount1Min","type":"uint256"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"internalType":"struct INonfungiblePositionManager.MintParams","name":"params","type":"tuple"}],"name":"mint","outputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint128","name":"liquidity","type":"uint128"},{"internalType":"uint256","name":"amount0","type":"uint256"},{"internalType":"uint256","name":"amount1","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"bytes[]","name":"data","type":"bytes[]"}],"name":"multicall","outputs":[{"internalType":"bytes[]","name":"results","type":"bytes[]"}],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"permit","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"poolDeployer","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"positions","outputs":[{"internalType":"uint88","name":"nonce","type":"uint88"},{"internalType":"address","name":"operator","type":"address"},{"internalType":"address","name":"token0","type":"address"},{"internalType":"address","name":"token1","type":"address"},{"internalType":"int24","name":"tickLower","type":"int24"},{"internalType":"int24","name":"tickUpper","type":"int24"},{"internalType":"uint128","name":"liquidity","type":"uint128"},{"internalType":"uint256","name":"feeGrowthInside0LastX128","type":"uint256"},{"internalType":"uint256","name":"feeGrowthInside1LastX128","type":"uint256"},{"internalType":"uint128","name":"tokensOwed0","type":"uint128"},{"internalType":"uint128","name":"tokensOwed1","type":"uint128"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"refundNativeToken","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"selfPermit","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"uint256","name":"expiry","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"selfPermitAllowed","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"uint256","name":"expiry","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"selfPermitAllowedIfNecessary","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"selfPermitIfNecessary","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newFarmingCenter","type":"address"}],"name":"setFarmingCenter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amountMinimum","type":"uint256"},{"internalType":"address","name":"recipient","type":"address"}],"name":"sweepToken","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bool","name":"toActive","type":"bool"}],"name":"switchFarmingStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenFarmedIn","outputs":[{"internalType":"address","name":"farmingCenterAddress","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountMinimum","type":"uint256"},{"internalType":"address","name":"recipient","type":"address"}],"name":"unwrapWNativeToken","outputs":[],"stateMutability":"payable","type":"function"},{"stateMutability":"payable","type":"receive"}]

    6101a06040527601000000000000000000000000000000000000000000016010553480156200002d57600080fd5b50604051620062e0380380620062e08339810160408190526200005091620001bd565b8383826040518060400160405280601781526020017f53706972697420506f736974696f6e73204e46542d56320000000000000000008152506040518060400160405280600a8152602001695350495249542d504f5360b01b815250604051806040016040528060018152602001603360f81b81525082828160009081620000d99190620002bf565b506001620000e88282620002bf565b50508351602080860191909120608081815284518584012060a08181524660e0819052604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f818901528082019690965260608601939093529284019290925230838301528051808403909201825260c09092019091528051910120905060c05250503061010052506001600160a01b03928316610120528216610140528116610160529190911661018052506200038b915050565b80516001600160a01b0381168114620001b857600080fd5b919050565b60008060008060808587031215620001d457600080fd5b620001df85620001a0565b9350620001ef60208601620001a0565b9250620001ff60408601620001a0565b91506200020f60608601620001a0565b905092959194509250565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200024557607f821691505b6020821081036200026657634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620002ba57600081815260208120601f850160051c81016020861015620002955750805b601f850160051c820191505b81811015620002b657828155600101620002a1565b5050505b505050565b81516001600160401b03811115620002db57620002db6200021a565b620002f381620002ec845462000230565b846200026c565b602080601f8311600181146200032b5760008415620003125750858301515b600019600386901b1c1916600185901b178555620002b6565b600085815260208120601f198616915b828110156200035c578886015182559484019460019091019084016200033b565b50858210156200037b5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60805160a05160c05160e0516101005161012051610140516101605161018051615e90620004506000396000612af30152600081816103110152818161073701528181611ac801528181611b7301528181613a6601528181613aac0152613b5a015260008181610574015281816114060152818161325d0152613562015260008181610917015281816116c6015281816118ea01526119a5015260006112cb015260006112f50152600061131f01526000611398015260006113700152615e906000f3fe6080604052600436106103015760003560e01c806369bc35b21161018f578063ac9650d8116100e1578063dd56e5d81161008a578063e985e9c511610064578063e985e9c5146109c2578063f3995c6714610a0b578063fc6f786514610a1e57600080fd5b8063dd56e5d814610959578063df2ab5bb14610979578063e7ce18a31461098c57600080fd5b8063c2e3140a116100bb578063c2e3140a146108f2578063c45a015514610905578063c87b56dd1461093957600080fd5b8063ac9650d81461087e578063b227aa791461089e578063b88d4fde146108d257600080fd5b80638af3ac85116101435780639cc1a2831161011d5780639cc1a28314610810578063a22cb4651461084b578063a4a78f0c1461086b57600080fd5b80638af3ac851461072557806395d89b411461075957806399fbab881461076e57600080fd5b806370a082311161017457806370a08231146106df5780637ac2ff7b146106ff578063832f630a1461071257600080fd5b806369bc35b2146106ac57806370227515146106bf57600080fd5b80633119049a11610253578063430c2081116101fc5780634f6ccce7116101d65780634f6ccce71461065957806351246d6e146106795780636352211e1461068c57600080fd5b8063430c2081146106065780634659a494146106265780634d10862d1461063957600080fd5b8063418652701161022d57806341865270146105cb57806342842e0e146105d357806342966c68146105f357600080fd5b80633119049a146105625780633644e515146105965780633dd657c5146105ab57600080fd5b806318160ddd116102b55780632d0b22de1161028f5780632d0b22de146104d85780632f745c591461050e57806330adf81f1461052e57600080fd5b806318160ddd14610461578063219f5d171461048057806323b872dd146104b857600080fd5b8063081812fc116102e6578063081812fc146103e1578063095ea7b3146104195780630c49ccbe1461043957600080fd5b806301ffc9a71461038a57806306fdde03146103bf57600080fd5b3661038557336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146103835760405162461bcd60e51b815260206004820152601060248201527f4e6f7420574e6174697665546f6b656e0000000000000000000000000000000060448201526064015b60405180910390fd5b005b600080fd5b34801561039657600080fd5b506103aa6103a5366004615259565b610a31565b60405190151581526020015b60405180910390f35b3480156103cb57600080fd5b506103d4610a8d565b6040516103b691906152c6565b3480156103ed57600080fd5b506104016103fc3660046152d9565b610b1f565b6040516001600160a01b0390911681526020016103b6565b34801561042557600080fd5b50610383610434366004615307565b610b55565b61044c610447366004615333565b610c86565b604080519283526020830191909152016103b6565b34801561046d57600080fd5b506008545b6040519081526020016103b6565b61049361048e36600461534b565b610f5c565b604080516001600160801b0390941684526020840192909252908201526060016103b6565b3480156104c457600080fd5b506103836104d336600461535d565b61118f565b3480156104e457600080fd5b506104016104f33660046152d9565b600b602052600090815260409020546001600160a01b031681565b34801561051a57600080fd5b50610472610529366004615307565b611216565b34801561053a57600080fd5b506104727f49ecf333e5b8c95c40fdafc95c1ad136e8914a8fb55e9dc8bb01eaa83a2df9ad81565b34801561056e57600080fd5b506104017f000000000000000000000000000000000000000000000000000000000000000081565b3480156105a257600080fd5b506104726112be565b3480156105b757600080fd5b506103836105c636600461539e565b6113f1565b61038361146f565b3480156105df57600080fd5b506103836105ee36600461535d565b611481565b6103836106013660046152d9565b61149c565b34801561061257600080fd5b506103aa610621366004615307565b6115a8565b61038361063436600461542d565b6115c4565b34801561064557600080fd5b50610383610654366004615489565b611672565b34801561066557600080fd5b506104726106743660046152d9565b6117a3565b6104016106873660046154a6565b611847565b34801561069857600080fd5b506104016106a73660046152d9565b611a5c565b6103836106ba3660046154f1565b611ac1565b3480156106cb57600080fd5b506103836106da36600461552f565b611be1565b3480156106eb57600080fd5b506104726106fa366004615489565b611d19565b61038361070d36600461542d565b611db3565b610383610720366004615554565b6121bb565b34801561073157600080fd5b506104017f000000000000000000000000000000000000000000000000000000000000000081565b34801561076557600080fd5b506103d461226c565b34801561077a57600080fd5b5061078e6107893660046152d9565b61227b565b604080516affffffffffffffffffffff909c168c526001600160a01b039a8b1660208d0152988a16988b0198909852979095166060890152600293840b60808901529190920b60a08701526001600160801b0391821660c087015260e086015261010085019190915291821661012084015216610140820152610160016103b6565b61082361081e36600461557b565b612429565b604080519485526001600160801b0390931660208501529183015260608201526080016103b6565b34801561085757600080fd5b5061038361086636600461558e565b6128af565b61038361087936600461542d565b6128be565b61089161088c3660046155bc565b6128e6565b6040516103b69190615631565b3480156108aa57600080fd5b506104727fff0e0466f109fcf4f5660899d8847c592e1e8dea30ffbe040704b23ad381d76281565b3480156108de57600080fd5b506103836108ed366004615742565b612a07565b61038361090036600461542d565b612a95565b34801561091157600080fd5b506104017f000000000000000000000000000000000000000000000000000000000000000081565b34801561094557600080fd5b506103d46109543660046152d9565b612ab3565b34801561096557600080fd5b50600a54610401906001600160a01b031681565b6103836109873660046157f7565b612b6a565b34801561099857600080fd5b506104016109a73660046152d9565b600c602052600090815260409020546001600160a01b031681565b3480156109ce57600080fd5b506103aa6109dd36600461582e565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b610383610a1936600461542d565b612bd8565b61044c610a2c36600461585c565b612c48565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f780e9d63000000000000000000000000000000000000000000000000000000001480610a875750610a8782612f8d565b92915050565b606060008054610a9c9061586e565b80601f0160208091040260200160405190810160405280929190818152602001828054610ac89061586e565b8015610b155780601f10610aea57610100808354040283529160200191610b15565b820191906000526020600020905b815481529060010190602001808311610af857829003601f168201915b5050505050905090565b6000610b2a82613070565b506000908152600f60205260409020546b01000000000000000000000090046001600160a01b031690565b6000610b6082611a5c565b9050806001600160a01b0316836001600160a01b031603610be95760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f7200000000000000000000000000000000000000000000000000000000000000606482015260840161037a565b336001600160a01b0382161480610c055750610c0581336109dd565b610c775760405162461bcd60e51b815260206004820152603d60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c000000606482015260840161037a565b610c8183836130d7565b505050565b6000808235610c948161316e565b8360800135610ca2816131c4565b6000610cb460408701602088016158b7565b6001600160801b031611610cc757600080fd5b84356000908152600f60209081526040918290206001810154909269ffffffffffffffffffff8216926a01000000000000000000008304600290810b936d0100000000000000000000000000810490910b92600160801b9091046001600160801b031691610d39918c01908c016158b7565b6001600160801b0316816001600160801b03161015610d5757600080fd5b6000610d6285613214565b9050610d8e84848d6020016020810190610d7c91906158b7565b6001600160a01b038516929190613282565b909a50985060408b01358a10801590610dab57508a606001358910155b610df75760405162461bcd60e51b815260206004820152601460248201527f507269636520736c69707061676520636865636b000000000000000000000000604482015260640161037a565b600080610e08888430898989613365565b91509150818c018860040160008282829054906101000a90046001600160801b03160192506101000a8154816001600160801b0302191690836001600160801b03160217905550808b018860040160108282829054906101000a90046001600160801b03160192506101000a8154816001600160801b0302191690836001600160801b031602179055508c6020016020810190610ea591906158b7565b6001890180546001600160801b039287038316600160801b02921691909117905550508a357f26f6a048ee9138f2c0ce266f322cb99228e8d619ae2bff30c67f8dcf9d2377b4610efb60408e0160208f016158b7565b604080516001600160801b039092168252602082018e905281018c905260600160405180910390a2610f4f8b35610f3860408e0160208f016158b7565b6001600160801b0316610f4a906158ea565b6133df565b5050505050505050915091565b60008060008360a00135610f6f816131c4565b84356000908152600f6020908152604080832060018082015469ffffffffffffffffffff81168652600e855283862084516101208101865281546001600160a01b039081168252938201549093168387015230838601526a01000000000000000000008204600290810b60608086018290526d0100000000000000000000000000850490920b6080808701829052988f013560a0870152968e013560c0860152908d013560e0850152958c0135610100840152929592949392600160801b9091046001600160801b031691819061104590613523565b929e50909c509a50925090506000806110628985308a8a8a613365565b915091508082176001600160801b03166000146110c657600489018054600160801b6001600160801b03808316860181167fffffffffffffffffffffffffffffffff0000000000000000000000000000000090931683178290048116850116021790555b8c85018960010160106101000a8154816001600160801b0302191690836001600160801b031602179055508d600001357f8a82de7fe9b33e0e6bca0e26f5bd14a74f1164ffe236d50e0a36c3ea70f2b814848f8f8f896040516111629594939291906001600160801b039586168152939094166020840152604083019190915260608201526001600160a01b0391909116608082015260a00190565b60405180910390a261117e8e356001600160801b038f166133df565b505050505050505050509193909250565b611199338261373c565b61120b5760405162461bcd60e51b815260206004820152602d60248201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560448201527f72206f7220617070726f76656400000000000000000000000000000000000000606482015260840161037a565b610c818383836137bb565b600061122183611d19565b82106112955760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201527f74206f6620626f756e6473000000000000000000000000000000000000000000606482015260840161037a565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b6000306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614801561131757507f000000000000000000000000000000000000000000000000000000000000000046145b1561134157507f000000000000000000000000000000000000000000000000000000000000000090565b6113e9604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f60208201527f0000000000000000000000000000000000000000000000000000000000000000918101919091527f000000000000000000000000000000000000000000000000000000000000000060608201524660808201523060a082015260009060c00160405160208183030381529060405280519060200120905090565b905090565b90565b60006113ff82840184615922565b905061142f7f000000000000000000000000000000000000000000000000000000000000000082600001516139fe565b50841561144a57805151602082015161144a91903388613a64565b83156114685761146881600001516020015182602001513387613a64565b5050505050565b471561147f5761147f3347613bfd565b565b610c8183838360405180602001604052806000815250612a07565b806114a68161316e565b6000828152600f6020526040902060048101546001820154600160801b8083046001600160801b03908116938116919092049190911617171561152b5760405162461bcd60e51b815260206004820152600b60248201527f4e6f7420636c6561726564000000000000000000000000000000000000000000604482015260640161037a565b6000838152600f6020908152604080832080547fff00000000000000000000000000000000000000000000000000000000000000168155600181018490556002810184905560038101849055600401839055600c9091529020805473ffffffffffffffffffffffffffffffffffffffff19169055610c8183613cba565b60006115b382613070565b6115bd838361373c565b9392505050565b6040517f8fcbaf0c00000000000000000000000000000000000000000000000000000000815233600482015230602482015260448101869052606481018590526001608482015260ff841660a482015260c4810183905260e481018290526001600160a01b03871690638fcbaf0c90610104015b600060405180830381600087803b15801561165257600080fd5b505af1158015611666573d6000803e3d6000fd5b50505050505050505050565b6040517fe8ae2b690000000000000000000000000000000000000000000000000000000081527fff0e0466f109fcf4f5660899d8847c592e1e8dea30ffbe040704b23ad381d76260048201523360248201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063e8ae2b6990604401602060405180830381865afa158015611715573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611739919061599e565b61174257600080fd5b600a805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0383169081179091556040519081527f29f9e1ebeee07596f3165f3e42cb9d4d8d22b0481e968d6c74be3dd037c15d9b9060200160405180910390a150565b60006117ae60085490565b82106118225760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201527f7574206f6620626f756e64730000000000000000000000000000000000000000606482015260840161037a565b60088281548110611835576118356159bb565b90600052602060002001549050919050565b6000826001600160a01b0316846001600160a01b0316106118aa5760405162461bcd60e51b815260206004820152601760248201527f496e76616c6964206f72646572206f6620746f6b656e73000000000000000000604482015260640161037a565b6040517fd9a641e10000000000000000000000000000000000000000000000000000000081526001600160a01b03858116600483015284811660248301527f0000000000000000000000000000000000000000000000000000000000000000169063d9a641e190604401602060405180830381865afa158015611931573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061195591906159d1565b90506001600160a01b038116611a23576040517fe34336150000000000000000000000000000000000000000000000000000000081526001600160a01b03858116600483015284811660248301527f0000000000000000000000000000000000000000000000000000000000000000169063e3433615906044016020604051808303816000875af11580156119ee573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a1291906159d1565b9050611a1e8183613d6a565b6115bd565b6000611a37826001600160a01b0316613dda565b9050806001600160a01b0316600003611a5457611a548284613d6a565b509392505050565b6000818152600260205260408120546001600160a01b031680610a875760405162461bcd60e51b815260206004820152601860248201527f4552433732313a20696e76616c696420746f6b656e2049440000000000000000604482015260640161037a565b6000611aec7f0000000000000000000000000000000000000000000000000000000000000000613e4a565b905082811015611b3e5760405162461bcd60e51b815260206004820152601960248201527f496e73756666696369656e7420574e6174697665546f6b656e00000000000000604482015260640161037a565b8015610c81576040517f2e1a7d4d000000000000000000000000000000000000000000000000000000008152600481018290527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031690632e1a7d4d90602401600060405180830381600087803b158015611bbf57600080fd5b505af1158015611bd3573d6000803e3d6000fd5b50505050610c818282613bfd565b600a546001600160a01b031633811460008315611c68576000858152600b60205260409020546001600160a01b03848116911614611c615760405162461bcd60e51b815260206004820152601860248201527f4e6f7420617070726f76656420666f72206661726d696e670000000000000000604482015260640161037a565b5081611c8d565b8180611c8a57506000858152600c60205260409020546001600160a01b031633145b91505b81611cda5760405162461bcd60e51b815260206004820152601260248201527f4f6e6c79204661726d696e6743656e7465720000000000000000000000000000604482015260640161037a565b6000948552600c6020526040909420805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0390951694909417909355505050565b60006001600160a01b038216611d975760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f74206120766160448201527f6c6964206f776e65720000000000000000000000000000000000000000000000606482015260840161037a565b506001600160a01b031660009081526003602052604090205490565b83421115611e035760405162461bcd60e51b815260206004820152600e60248201527f5065726d69742065787069726564000000000000000000000000000000000000604482015260640161037a565b6000611e0d6112be565b6000878152600f6020526040902080547fffffffffffffffffffffffffffffffffffffffffff0000000000000000000000811660016affffffffffffffffffffff928316908101909216179091557f49ecf333e5b8c95c40fdafc95c1ad136e8914a8fb55e9dc8bb01eaa83a2df9ad90899089906040805160208101959095526001600160a01b03909316928401929092526060830152608082015260a0810187905260c00160405160208183030381529060405280519060200120604051602001611f0b9291907f190100000000000000000000000000000000000000000000000000000000000081526002810192909252602282015260420190565b6040516020818303038152906040528051906020012090506000611f2e87611a5c565b9050806001600160a01b0316886001600160a01b031603611fb75760405162461bcd60e51b815260206004820152602760248201527f4552433732315065726d69743a20617070726f76616c20746f2063757272656e60448201527f74206f776e657200000000000000000000000000000000000000000000000000606482015260840161037a565b6001600160a01b0381163b156120d157604080516020810186905280820185905260f887901b7fff000000000000000000000000000000000000000000000000000000000000001660608201528151604181830301815260618201928390527f1626ba7e000000000000000000000000000000000000000000000000000000009092526120cc916001600160a01b03841691631626ba7e9161205e918791906065016159ee565b602060405180830381865afa15801561207b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061209f9190615a07565b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916631626ba7e60e01b14613ecf565b6121a7565b6040805160008082526020820180845285905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015612125573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166121885760405162461bcd60e51b815260206004820152601160248201527f496e76616c6964207369676e6174757265000000000000000000000000000000604482015260640161037a565b6121a5826001600160a01b0316826001600160a01b031614613ecf565b505b6121b188886130d7565b5050505050505050565b826121c58161316e565b6000831561222d57600a546001600160a01b0384811691161461222a5760405162461bcd60e51b815260206004820152601760248201527f496e76616c6964206661726d696e672061646472657373000000000000000000604482015260640161037a565b50815b6000948552600b6020526040909420805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0390951694909417909355505050565b606060018054610a9c9061586e565b6000818152600f6020526040812060018101548291829182916a01000000000000000000008204600290810b926d0100000000000000000000000000810490910b916001600160801b03600160801b83041691859182918291829169ffffffffffffffffffff168083036123315760405162461bcd60e51b815260206004820152601060248201527f496e76616c696420746f6b656e20494400000000000000000000000000000000604482015260640161037a565b6000600e60008369ffffffffffffffffffff1669ffffffffffffffffffff16815260200190815260200160002090508260000160009054906101000a90046affffffffffffffffffffff1683600001600b9054906101000a90046001600160a01b03168260000160009054906101000a90046001600160a01b03168360010160009054906101000a90046001600160a01b03168d8d8d89600201548a600301548b60040160009054906101000a90046001600160801b03168c60040160109054906101000a90046001600160801b03169d509d509d509d509d509d509d509d509d509d509d5050505091939597999b90929496989a50565b60008060008084610120013561243e816131c4565b6000806124f46040518061012001604052808a60000160208101906124639190615489565b6001600160a01b031681526020018a60200160208101906124849190615489565b6001600160a01b031681523060208201526040908101906124ab9060608d01908d01615a33565b60020b81526020016124c360808c0160608d01615a33565b60020b81526080808c0135602083015260a08c0135604083015260c08c0135606083015260e08c0135910152613523565b92995090975095509250905061256a6125156101208a016101008b01615489565b601080547fffffffffffffffffffff000000000000000000000000000000000000000000008116600175ffffffffffffffffffffffffffffffffffffffffffff92831690810190921617909155985088613f1c565b6000806125a33061258160608d0160408e01615a33565b61259160808e0160608f01615a33565b6001600160a01b0388169291906140c2565b5050925092505060006125ff8560405180604001604052808e60000160208101906125ce9190615489565b6001600160a01b031681526020018e60200160208101906125ef9190615489565b6001600160a01b0316905261417a565b60408051610140810182526000808252602082015269ffffffffffffffffffff83168183015291925060608083019161263c918f01908f01615a33565b60020b815260200161265460808e0160608f01615a33565b60020b81526020018a6001600160801b0316815260200184815260200183815260200160006001600160801b0316815260200160006001600160801b0316815250600f60008c815260200190815260200160002060008201518160000160006101000a8154816affffffffffffffffffffff02191690836affffffffffffffffffffff160217905550602082015181600001600b6101000a8154816001600160a01b0302191690836001600160a01b0316021790555060408201518160010160006101000a81548169ffffffffffffffffffff021916908369ffffffffffffffffffff160217905550606082015181600101600a6101000a81548162ffffff021916908360020b62ffffff160217905550608082015181600101600d6101000a81548162ffffff021916908360020b62ffffff16021790555060a08201518160010160106101000a8154816001600160801b0302191690836001600160801b0316021790555060c0820151816002015560e082015181600301556101008201518160040160006101000a8154816001600160801b0302191690836001600160801b031602179055506101208201518160040160106101000a8154816001600160801b0302191690836001600160801b03160217905550905050897f8a82de7fe9b33e0e6bca0e26f5bd14a74f1164ffe236d50e0a36c3ea70f2b814858b8b8b8a60405161289a9594939291906001600160801b039586168152939094166020840152604083019190915260608201526001600160a01b0391909116608082015260a00190565b60405180910390a25050505050509193509193565b6128ba33838361428a565b5050565b6000196128ca87614376565b10156128de576128de8686868686866115c4565b505050505050565b60608167ffffffffffffffff811115612901576129016156b1565b60405190808252806020026020018201604052801561293457816020015b606081526020019060019003908161291f5790505b50905060005b82811015612a005760008030868685818110612958576129586159bb565b905060200281019061296a9190615a50565b604051612978929190615abc565b600060405180830381855af49150503d80600081146129b3576040519150601f19603f3d011682016040523d82523d6000602084013e6129b8565b606091505b5091509150816129d85760008151116129d057600080fd5b805181602001fd5b808484815181106129eb576129eb6159bb565b6020908102919091010152505060010161293a565b5092915050565b612a11338361373c565b612a835760405162461bcd60e51b815260206004820152602d60248201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560448201527f72206f7220617070726f76656400000000000000000000000000000000000000606482015260840161037a565b612a8f848484846143c4565b50505050565b84612a9f87614376565b10156128de576128de868686868686612bd8565b6060612abe82613070565b6040517fe9dc6375000000000000000000000000000000000000000000000000000000008152306004820152602481018390527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063e9dc637590604401600060405180830381865afa158015612b42573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610a879190810190615acc565b6000612b7584613e4a565b905082811015612bc75760405162461bcd60e51b815260206004820152601260248201527f496e73756666696369656e7420746f6b656e0000000000000000000000000000604482015260640161037a565b8015612a8f57612a8f84838361444d565b6040517fd505accf000000000000000000000000000000000000000000000000000000008152336004820152306024820152604481018690526064810185905260ff8416608482015260a4810183905260c481018290526001600160a01b0387169063d505accf9060e401611638565b6000808235612c568161316e565b6000612c6860608601604087016158b7565b6001600160801b03161180612c9557506000612c8a60808601606087016158b7565b6001600160801b0316115b612c9e57600080fd5b600080612cb16040870160208801615489565b6001600160a01b031614612cd457612ccf6040860160208701615489565b612cd6565b305b85356000908152600f60205260408120600181015492935091612d049069ffffffffffffffffffff16613214565b600183015460048401549192506a01000000000000000000008104600290810b926d0100000000000000000000000000830490910b916001600160801b03600160801b91829004811692808216929004168215612d8f57612d716001600160a01b03871686866000613282565b5050600080612d848989308a8a8a613365565b940193929092019150505b600080836001600160801b03168e6040016020810190612daf91906158b7565b6001600160801b031611612dd5578d6040016020810190612dd091906158b7565b612dd7565b835b836001600160801b03168f6060016020810190612df491906158b7565b6001600160801b031611612e1a578e6060016020810190612e1591906158b7565b612e1c565b835b6040517f4f1eb3d80000000000000000000000000000000000000000000000000000000081526001600160a01b038d8116600483015260028b810b60248401528a900b60448301526001600160801b0380851660648401528316608483015292945090925090891690634f1eb3d89060a40160408051808303816000875af1158015612eac573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612ed09190615b4e565b8386036001600160801b039081168487038216600160801b027fffffffffffffffffffffffffffffffff00000000000000000000000000000000161760048d01556040519281169f50169c508e35907f40d0efd1a53d60ecbf40971b9daf7dc90178c3aadc7aab1765632738fa8b8f0190612f75908d90869086906001600160a01b039390931683526001600160801b03918216602084015216604082015260600190565b60405180910390a25050505050505050505050915091565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd00000000000000000000000000000000000000000000000000000000148061302057507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610a8757507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff00000000000000000000000000000000000000000000000000000000831614610a87565b6000818152600260205260409020546001600160a01b03166130d45760405162461bcd60e51b815260206004820152601860248201527f4552433732313a20696e76616c696420746f6b656e2049440000000000000000604482015260640161037a565b50565b6000818152600f6020526040902080547fff0000000000000000000000000000000000000000ffffffffffffffffffffff166b0100000000000000000000006001600160a01b03851690810291909117909155819061313582611a5c565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b613178338261373c565b6130d45760405162461bcd60e51b815260206004820152600c60248201527f4e6f7420617070726f7665640000000000000000000000000000000000000000604482015260640161037a565b804211156130d45760405162461bcd60e51b815260206004820152601360248201527f5472616e73616374696f6e20746f6f206f6c6400000000000000000000000000604482015260640161037a565b69ffffffffffffffffffff81166000908152600e60209081526040808320815180830190925280546001600160a01b0390811683526001909101541691810191909152610a87907f00000000000000000000000000000000000000000000000000000000000000009061458f565b6040517f3b3bc70e000000000000000000000000000000000000000000000000000000008152600284810b600483015283900b60248201526001600160801b038216604482015260806064820152600360848201527f307830000000000000000000000000000000000000000000000000000000000060a482015260009081906001600160a01b03871690633b3bc70e9060c40160408051808303816000875af1158015613334573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906133589190615b7d565b9150915094509492505050565b600080808061337f6001600160a01b038a168989896140c2565b505092509250506133a48a600201548303866001600160801b0316600160801b6146f0565b93506133c48a600301548203866001600160801b0316600160801b6146f0565b60028b01929092556003909901989098555096945050505050565b6000828152600c60205260409020546001600160a01b03168061340157505050565b600a546001600160a01b0316806134185750505050565b806001600160a01b0316826001600160a01b031603612a8f576040517f06e65c9000000000000000000000000000000000000000000000000000000000815260048101859052602481018490526001600160a01b038216906306e65c9090604401600060405180830381600087803b15801561349357600080fd5b505af19250505080156134a4575060015b612a8f576134b0615ba1565b806308c379a00361350057506134c4615bbc565b806134cf5750613519565b60405185907f4f27462fbdc9bce16bb573a06acba6b27394e151da96ce8098d8e29a6dc8d64b90600090a250612a8f565b634e487b710361351957613512615c64565b906134cf57505b3d6000803e3d6000fd5b600080600080600080604051806040016040528088600001516001600160a01b0316815260200188602001516001600160a01b031681525090506135877f00000000000000000000000000000000000000000000000000000000000000008261458f565b9150600061359d836001600160a01b0316613dda565b905060006135ae8960600151614789565b905060006135bf8a60800151614789565b90506135d68383838d60a001518e60c00151614a7d565b9850505050816001600160a01b031663aafe29c03389604001518a606001518b608001518b6040518060400160405280898152602001336001600160a01b03168152506040516020016136529190815180516001600160a01b039081168352602091820151811682840152920151909116604082015260600190565b6040516020818303038152906040526040518763ffffffff1660e01b815260040161368296959493929190615c84565b6060604051808303816000875af11580156136a1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906136c59190615cdd565b60e08a0151909750919550935084108015906136e657508661010001518310155b6137325760405162461bcd60e51b815260206004820152601460248201527f507269636520736c69707061676520636865636b000000000000000000000000604482015260640161037a565b5091939590929450565b60008061374883611a5c565b9050806001600160a01b0316846001600160a01b0316148061378f57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b806137b35750836001600160a01b03166137a884610b1f565b6001600160a01b0316145b949350505050565b826001600160a01b03166137ce82611a5c565b6001600160a01b03161461384a5760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201527f6f776e6572000000000000000000000000000000000000000000000000000000606482015260840161037a565b6001600160a01b0382166138c55760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f7265737300000000000000000000000000000000000000000000000000000000606482015260840161037a565b6138d28383836001614b41565b826001600160a01b03166138e582611a5c565b6001600160a01b0316146139615760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201527f6f776e6572000000000000000000000000000000000000000000000000000000606482015260840161037a565b6000818152600460209081526040808320805473ffffffffffffffffffffffffffffffffffffffff199081169091556001600160a01b0387811680865260038552838620805460001901905590871680865283862080546001019055868652600290945282852080549092168417909155905184937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6000613a0a838361458f565b9050336001600160a01b03821614610a875760405162461bcd60e51b815260206004820152601a60248201527f496e76616c69642063616c6c6572206f662063616c6c6261636b000000000000604482015260640161037a565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316846001600160a01b0316148015613aa55750804710155b15613bd1577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663d0e30db0826040518263ffffffff1660e01b81526004016000604051808303818588803b158015613b0557600080fd5b505af1158015613b19573d6000803e3d6000fd5b50506040517fa9059cbb0000000000000000000000000000000000000000000000000000000081526001600160a01b038681166004830152602482018690527f000000000000000000000000000000000000000000000000000000000000000016935063a9059cbb925060440190506020604051808303816000875af1158015613ba7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613bcb919061599e565b50612a8f565b306001600160a01b03841603613bf157613bec84838361444d565b612a8f565b612a8f84848484614bb6565b604080516000808252602082019092526001600160a01b038416908390604051613c279190615d0b565b60006040518083038185875af1925050503d8060008114613c64576040519150601f19603f3d011682016040523d82523d6000602084013e613c69565b606091505b5050905080610c815760405162461bcd60e51b815260206004820152600360248201527f5354450000000000000000000000000000000000000000000000000000000000604482015260640161037a565b6000613cc582611a5c565b9050613cd5816000846001614b41565b613cde82611a5c565b6000838152600460209081526040808320805473ffffffffffffffffffffffffffffffffffffffff199081169091556001600160a01b0385168085526003845282852080546000190190558785526002909352818420805490911690555192935084927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b6040517ff637731d0000000000000000000000000000000000000000000000000000000081526001600160a01b03828116600483015283169063f637731d90602401600060405180830381600087803b158015613dc657600080fd5b505af11580156128de573d6000803e3d6000fd5b6000816001600160a01b031663e76c01e46040518163ffffffff1660e01b815260040160c060405180830381865afa158015613e1a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613e3e9190615d39565b50939695505050505050565b6040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201526000906001600160a01b038316906370a08231906024015b602060405180830381865afa158015613eab573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a879190615db8565b806130d45760405162461bcd60e51b815260206004820152600c60248201527f556e617574686f72697a65640000000000000000000000000000000000000000604482015260640161037a565b6001600160a01b038216613f725760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015260640161037a565b6000818152600260205260409020546001600160a01b031615613fd75760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640161037a565b613fe5600083836001614b41565b6000818152600260205260409020546001600160a01b03161561404a5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640161037a565b6001600160a01b0382166000818152600360209081526040808320805460010190558483526002909152808220805473ffffffffffffffffffffffffffffffffffffffff19168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000808080808062ffffff80881690891660188b811b91909117901b176040517f514ea4bf000000000000000000000000000000000000000000000000000000008152600481018290529091506001600160a01b038b169063514ea4bf9060240160a060405180830381865afa158015614140573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906141649190615dd1565b9550955095509550955050945094509450945094565b6001600160a01b0382166000908152600d602052604081205469ffffffffffffffffffff1690819003610a87575060108054600169ffffffffffffffffffff76010000000000000000000000000000000000000000000080840482168381019092160275ffffffffffffffffffffffffffffffffffffffffffff909316929092179092556001600160a01b038085166000908152600d6020908152604080832080547fffffffffffffffffffffffffffffffffffffffffffff000000000000000000001686179055848352600e82529091208551815490841673ffffffffffffffffffffffffffffffffffffffff1991821617825591860151940180549490921693169290921790915592915050565b816001600160a01b0316836001600160a01b0316036142eb5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015260640161037a565b6001600160a01b0383811660008181526005602090815260408083209487168084529482529182902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6040517fdd62ed3e0000000000000000000000000000000000000000000000000000000081523360048201523060248201526000906001600160a01b0383169063dd62ed3e90604401613e8e565b6143cf8484846137bb565b6143db84848484614d00565b612a8f5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e7465720000000000000000000000000000606482015260840161037a565b604080516001600160a01b038481166024830152604480830185905283518084039091018152606490920183526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb0000000000000000000000000000000000000000000000000000000017905291516000928392908716916144d79190615d0b565b6000604051808303816000865af19150503d8060008114614514576040519150601f19603f3d011682016040523d82523d6000602084013e614519565b606091505b5091509150818015614543575080511580614543575080806020019051810190614543919061599e565b6114685760405162461bcd60e51b815260206004820152600260248201527f5354000000000000000000000000000000000000000000000000000000000000604482015260640161037a565b600081602001516001600160a01b031682600001516001600160a01b0316106145fa5760405162461bcd60e51b815260206004820152601760248201527f496e76616c6964206f72646572206f6620746f6b656e73000000000000000000604482015260640161037a565b828260000151836020015160405160200161462b9291906001600160a01b0392831681529116602082015260400190565b60408051601f198184030181529082905280516020918201206146d1939290917ff96d2474815c32e070cd63233f06af5413efc5dcb430aee4ff18cc29007c562d91017fff00000000000000000000000000000000000000000000000000000000000000815260609390931b7fffffffffffffffffffffffffffffffffffffffff0000000000000000000000001660018401526015830191909152603582015260550190565b60408051601f1981840301815291905280516020909101209392505050565b6000838302816000198587098281108382030391505080841161471257600080fd5b80600003614725575082900490506115bd565b8385870960008581038616958690049560026003880281188089028203028089028203028089028203028089028203028089028203028089029091030291819003819004600101858411909403939093029190930391909104170290509392505050565b6000600282900b60171d62ffffff818401821816620d89e88111156147da576040517f3c10250f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600160801b60018216156147fb57506ffffcb933bd6fad37aa2d162d1a5940015b600282161561481a576ffff97272373d413259a46990580e213a0260801c5b6004821615614839576ffff2e50f5f656932ef12357cf3c7fdcc0260801c5b6008821615614858576fffe5caca7e10e4e61c3624eaa0941cd00260801c5b6010821615614877576fffcb9843d60f6159c9db58835c9266440260801c5b6020821615614896576fff973b41fa98c081472e6896dfb254c00260801c5b60408216156148b5576fff2ea16466c96a3843ec78b326b528610260801c5b60808216156148d4576ffe5dee046a99a2a811c461f1969c30530260801c5b6101008216156148f4576ffcbe86c7900a88aedcffc83b479aa3a40260801c5b610200821615614914576ff987a7253ac413176f2b074cf7815e540260801c5b610400821615614934576ff3392b0822b70005940c7a398e4b70f30260801c5b610800821615614954576fe7159475a2c29b7443b29c7fa6e889d90260801c5b611000821615614974576fd097f3bdfd2022b8845ad8f792aa58250260801c5b612000821615614994576fa9f746462d870fdf8a65dc1f90e061e50260801c5b6140008216156149b4576f70d869a156d2a1b890bb3df62baf32f70260801c5b6180008216156149d4576f31be135f97d08fd981231505542fcfa60260801c5b620100008216156149f5576f09aa508b5b7a84e1c677de54f3e99bc90260801c5b62020000821615614a15576e5d6af8dedb81196699c329225ee6040260801c5b620400008210614a5b5762040000821615614a3e576d2216e584f5fa1ea926041bedfe980260801c5b62080000821615614a5b576b048a170391f7dc42444e8fa20260801c5b60008560020b1315614a6c57600019045b63ffffffff0160201c949350505050565b6000836001600160a01b0316856001600160a01b03161115614a9d579293925b846001600160a01b0316866001600160a01b031611614ac857614ac1858585614e99565b9050614b38565b836001600160a01b0316866001600160a01b03161015614b2a576000614aef878686614e99565b90506000614afe878986614f05565b9050806001600160801b0316826001600160801b031610614b1f5780614b21565b815b92505050614b38565b614b35858584614f05565b90505b95945050505050565b6001600160a01b03841615614baa576000828152600f6020908152604080832080547fff0000000000000000000000000000000000000000ffffffffffffffffffffff169055600b9091529020805473ffffffffffffffffffffffffffffffffffffffff191690555b612a8f84848484614f4b565b604080516001600160a01b0385811660248301528481166044830152606480830185905283518084039091018152608490920183526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f23b872dd000000000000000000000000000000000000000000000000000000001790529151600092839290881691614c489190615d0b565b6000604051808303816000865af19150503d8060008114614c85576040519150601f19603f3d011682016040523d82523d6000602084013e614c8a565b606091505b5091509150818015614cb4575080511580614cb4575080806020019051810190614cb4919061599e565b6128de5760405162461bcd60e51b815260206004820152600360248201527f5354460000000000000000000000000000000000000000000000000000000000604482015260640161037a565b60006001600160a01b0384163b15614e8e576040517f150b7a020000000000000000000000000000000000000000000000000000000081526001600160a01b0385169063150b7a0290614d5d903390899088908890600401615e28565b6020604051808303816000875af1925050508015614d98575060408051601f3d908101601f19168201909252614d9591810190615a07565b60015b614e43573d808015614dc6576040519150601f19603f3d011682016040523d82523d6000602084013e614dcb565b606091505b5080516000036129d05760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e7465720000000000000000000000000000606482015260840161037a565b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a02000000000000000000000000000000000000000000000000000000001490506137b3565b506001949350505050565b6000826001600160a01b0316846001600160a01b03161115614eb9579192915b6000614ee5856001600160a01b0316856001600160a01b03166c010000000000000000000000006146f0565b9050614b38614f0084838888036001600160a01b03166146f0565b615080565b6000826001600160a01b0316846001600160a01b03161115614f25579192915b6137b3614f00836c010000000000000000000000008787036001600160a01b03166146f0565b6001811115614fc25760405162461bcd60e51b815260206004820152603560248201527f455243373231456e756d657261626c653a20636f6e736563757469766520747260448201527f616e7366657273206e6f7420737570706f727465640000000000000000000000606482015260840161037a565b816001600160a01b03851661501e5761501981600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b615041565b836001600160a01b0316856001600160a01b03161461504157615041858261509b565b6001600160a01b03841661505d5761505881615138565b611468565b846001600160a01b0316846001600160a01b0316146114685761146884826151e7565b806001600160801b038116811461509657600080fd5b919050565b600060016150a884611d19565b6150b29190615e5a565b600083815260076020526040902054909150808214615105576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b60085460009061514a90600190615e5a565b60008381526009602052604081205460088054939450909284908110615172576151726159bb565b906000526020600020015490508060088381548110615193576151936159bb565b60009182526020808320909101929092558281526009909152604080822084905585825281205560088054806151cb576151cb615e6d565b6001900381819060005260206000200160009055905550505050565b60006151f283611d19565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b7fffffffff00000000000000000000000000000000000000000000000000000000811681146130d457600080fd5b60006020828403121561526b57600080fd5b81356115bd8161522b565b60005b83811015615291578181015183820152602001615279565b50506000910152565b600081518084526152b2816020860160208601615276565b601f01601f19169290920160200192915050565b6020815260006115bd602083018461529a565b6000602082840312156152eb57600080fd5b5035919050565b6001600160a01b03811681146130d457600080fd5b6000806040838503121561531a57600080fd5b8235615325816152f2565b946020939093013593505050565b600060a0828403121561534557600080fd5b50919050565b600060c0828403121561534557600080fd5b60008060006060848603121561537257600080fd5b833561537d816152f2565b9250602084013561538d816152f2565b929592945050506040919091013590565b600080600080606085870312156153b457600080fd5b8435935060208501359250604085013567ffffffffffffffff808211156153da57600080fd5b818701915087601f8301126153ee57600080fd5b8135818111156153fd57600080fd5b88602082850101111561540f57600080fd5b95989497505060200194505050565b60ff811681146130d457600080fd5b60008060008060008060c0878903121561544657600080fd5b8635615451816152f2565b95506020870135945060408701359350606087013561546f8161541e565b9598949750929560808101359460a0909101359350915050565b60006020828403121561549b57600080fd5b81356115bd816152f2565b6000806000606084860312156154bb57600080fd5b83356154c6816152f2565b925060208401356154d6816152f2565b915060408401356154e6816152f2565b809150509250925092565b6000806040838503121561550457600080fd5b823591506020830135615516816152f2565b809150509250929050565b80151581146130d457600080fd5b6000806040838503121561554257600080fd5b82359150602083013561551681615521565b60008060006060848603121561556957600080fd5b8335925060208401356154d681615521565b6000610140828403121561534557600080fd5b600080604083850312156155a157600080fd5b82356155ac816152f2565b9150602083013561551681615521565b600080602083850312156155cf57600080fd5b823567ffffffffffffffff808211156155e757600080fd5b818501915085601f8301126155fb57600080fd5b81358181111561560a57600080fd5b8660208260051b850101111561561f57600080fd5b60209290920196919550909350505050565b6000602080830181845280855180835260408601915060408160051b870101925083870160005b828110156156a4577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc088860301845261569285835161529a565b94509285019290850190600101615658565b5092979650505050505050565b634e487b7160e01b600052604160045260246000fd5b6040810181811067ffffffffffffffff821117156156e7576156e76156b1565b60405250565b601f19601f830116810181811067ffffffffffffffff82111715615713576157136156b1565b6040525050565b600067ffffffffffffffff821115615734576157346156b1565b50601f01601f191660200190565b6000806000806080858703121561575857600080fd5b8435615763816152f2565b93506020850135615773816152f2565b925060408501359150606085013567ffffffffffffffff81111561579657600080fd5b8501601f810187136157a757600080fd5b80356157b28161571a565b6040516157bf82826156ed565b8281528960208486010111156157d457600080fd5b826020850160208301376000602084830101528094505050505092959194509250565b60008060006060848603121561580c57600080fd5b8335615817816152f2565b92506020840135915060408401356154e6816152f2565b6000806040838503121561584157600080fd5b823561584c816152f2565b91506020830135615516816152f2565b60006080828403121561534557600080fd5b600181811c9082168061588257607f821691505b60208210810361534557634e487b7160e01b600052602260045260246000fd5b6001600160801b03811681146130d457600080fd5b6000602082840312156158c957600080fd5b81356115bd816158a2565b634e487b7160e01b600052601160045260246000fd5b60007f8000000000000000000000000000000000000000000000000000000000000000820361591b5761591b6158d4565b5060000390565b6000818303606081121561593557600080fd5b604051615941816156c7565b604082121561594f57600080fd5b604051915061595d826156c7565b8335615968816152f2565b82526020840135615978816152f2565b602083015290815260408301359061598f826152f2565b60208101919091529392505050565b6000602082840312156159b057600080fd5b81516115bd81615521565b634e487b7160e01b600052603260045260246000fd5b6000602082840312156159e357600080fd5b81516115bd816152f2565b8281526040602082015260006137b3604083018461529a565b600060208284031215615a1957600080fd5b81516115bd8161522b565b8060020b81146130d457600080fd5b600060208284031215615a4557600080fd5b81356115bd81615a24565b60008083357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe1843603018112615a8557600080fd5b83018035915067ffffffffffffffff821115615aa057600080fd5b602001915036819003821315615ab557600080fd5b9250929050565b8183823760009101908152919050565b600060208284031215615ade57600080fd5b815167ffffffffffffffff811115615af557600080fd5b8201601f81018413615b0657600080fd5b8051615b118161571a565b604051615b1e82826156ed565b828152866020848601011115615b3357600080fd5b615b44836020830160208701615276565b9695505050505050565b60008060408385031215615b6157600080fd5b8251615b6c816158a2565b6020840151909250615516816158a2565b60008060408385031215615b9057600080fd5b505080516020909101519092909150565b600060033d11156113ee5760046000803e5060005160e01c90565b600060443d1015615bca5790565b6040517ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc803d016004833e81513d67ffffffffffffffff8160248401118184111715615c1857505050505090565b8285019150815181811115615c305750505050505090565b843d8701016020828501011115615c4a5750505050505090565b615c59602082860101876156ed565b509095945050505050565b60008060233d1115615c80576020600460003e50506000516001905b9091565b60006001600160a01b0380891683528088166020840152508560020b60408301528460020b60608301526001600160801b038416608083015260c060a0830152615cd160c083018461529a565b98975050505050505050565b600080600060608486031215615cf257600080fd5b835192506020840151915060408401516154e6816158a2565b60008251615d1d818460208701615276565b9190910192915050565b805161ffff8116811461509657600080fd5b60008060008060008060c08789031215615d5257600080fd5b8651615d5d816152f2565b6020880151909650615d6e81615a24565b9450615d7c60408801615d27565b93506060870151615d8c8161541e565b9250615d9a60808801615d27565b915060a0870151615daa81615521565b809150509295509295509295565b600060208284031215615dca57600080fd5b5051919050565b600080600080600060a08688031215615de957600080fd5b8551945060208601519350604086015192506060860151615e09816158a2565b6080870151909250615e1a816158a2565b809150509295509295909350565b60006001600160a01b03808716835280861660208401525083604083015260806060830152614b35608083018461529a565b81810381811115610a8757610a876158d4565b634e487b7160e01b600052603160045260246000fdfea164736f6c6343000814000a000000000000000000000000b860200bd68dc39ceafd6ebb82883f189f4cda76000000000000000000000000db78663ad25d2c684087adf5993530019141e339000000000000000000000000fca97cf455760f634de123158b3286090147b11700000000000000000000000098af00a67f5cc0b362da34283d7d32817f6c9a29

    Deployed Bytecode

    0x6080604052600436106103015760003560e01c806369bc35b21161018f578063ac9650d8116100e1578063dd56e5d81161008a578063e985e9c511610064578063e985e9c5146109c2578063f3995c6714610a0b578063fc6f786514610a1e57600080fd5b8063dd56e5d814610959578063df2ab5bb14610979578063e7ce18a31461098c57600080fd5b8063c2e3140a116100bb578063c2e3140a146108f2578063c45a015514610905578063c87b56dd1461093957600080fd5b8063ac9650d81461087e578063b227aa791461089e578063b88d4fde146108d257600080fd5b80638af3ac85116101435780639cc1a2831161011d5780639cc1a28314610810578063a22cb4651461084b578063a4a78f0c1461086b57600080fd5b80638af3ac851461072557806395d89b411461075957806399fbab881461076e57600080fd5b806370a082311161017457806370a08231146106df5780637ac2ff7b146106ff578063832f630a1461071257600080fd5b806369bc35b2146106ac57806370227515146106bf57600080fd5b80633119049a11610253578063430c2081116101fc5780634f6ccce7116101d65780634f6ccce71461065957806351246d6e146106795780636352211e1461068c57600080fd5b8063430c2081146106065780634659a494146106265780634d10862d1461063957600080fd5b8063418652701161022d57806341865270146105cb57806342842e0e146105d357806342966c68146105f357600080fd5b80633119049a146105625780633644e515146105965780633dd657c5146105ab57600080fd5b806318160ddd116102b55780632d0b22de1161028f5780632d0b22de146104d85780632f745c591461050e57806330adf81f1461052e57600080fd5b806318160ddd14610461578063219f5d171461048057806323b872dd146104b857600080fd5b8063081812fc116102e6578063081812fc146103e1578063095ea7b3146104195780630c49ccbe1461043957600080fd5b806301ffc9a71461038a57806306fdde03146103bf57600080fd5b3661038557336001600160a01b037f000000000000000000000000db78663ad25d2c684087adf5993530019141e33916146103835760405162461bcd60e51b815260206004820152601060248201527f4e6f7420574e6174697665546f6b656e0000000000000000000000000000000060448201526064015b60405180910390fd5b005b600080fd5b34801561039657600080fd5b506103aa6103a5366004615259565b610a31565b60405190151581526020015b60405180910390f35b3480156103cb57600080fd5b506103d4610a8d565b6040516103b691906152c6565b3480156103ed57600080fd5b506104016103fc3660046152d9565b610b1f565b6040516001600160a01b0390911681526020016103b6565b34801561042557600080fd5b50610383610434366004615307565b610b55565b61044c610447366004615333565b610c86565b604080519283526020830191909152016103b6565b34801561046d57600080fd5b506008545b6040519081526020016103b6565b61049361048e36600461534b565b610f5c565b604080516001600160801b0390941684526020840192909252908201526060016103b6565b3480156104c457600080fd5b506103836104d336600461535d565b61118f565b3480156104e457600080fd5b506104016104f33660046152d9565b600b602052600090815260409020546001600160a01b031681565b34801561051a57600080fd5b50610472610529366004615307565b611216565b34801561053a57600080fd5b506104727f49ecf333e5b8c95c40fdafc95c1ad136e8914a8fb55e9dc8bb01eaa83a2df9ad81565b34801561056e57600080fd5b506104017f00000000000000000000000098af00a67f5cc0b362da34283d7d32817f6c9a2981565b3480156105a257600080fd5b506104726112be565b3480156105b757600080fd5b506103836105c636600461539e565b6113f1565b61038361146f565b3480156105df57600080fd5b506103836105ee36600461535d565b611481565b6103836106013660046152d9565b61149c565b34801561061257600080fd5b506103aa610621366004615307565b6115a8565b61038361063436600461542d565b6115c4565b34801561064557600080fd5b50610383610654366004615489565b611672565b34801561066557600080fd5b506104726106743660046152d9565b6117a3565b6104016106873660046154a6565b611847565b34801561069857600080fd5b506104016106a73660046152d9565b611a5c565b6103836106ba3660046154f1565b611ac1565b3480156106cb57600080fd5b506103836106da36600461552f565b611be1565b3480156106eb57600080fd5b506104726106fa366004615489565b611d19565b61038361070d36600461542d565b611db3565b610383610720366004615554565b6121bb565b34801561073157600080fd5b506104017f000000000000000000000000db78663ad25d2c684087adf5993530019141e33981565b34801561076557600080fd5b506103d461226c565b34801561077a57600080fd5b5061078e6107893660046152d9565b61227b565b604080516affffffffffffffffffffff909c168c526001600160a01b039a8b1660208d0152988a16988b0198909852979095166060890152600293840b60808901529190920b60a08701526001600160801b0391821660c087015260e086015261010085019190915291821661012084015216610140820152610160016103b6565b61082361081e36600461557b565b612429565b604080519485526001600160801b0390931660208501529183015260608201526080016103b6565b34801561085757600080fd5b5061038361086636600461558e565b6128af565b61038361087936600461542d565b6128be565b61089161088c3660046155bc565b6128e6565b6040516103b69190615631565b3480156108aa57600080fd5b506104727fff0e0466f109fcf4f5660899d8847c592e1e8dea30ffbe040704b23ad381d76281565b3480156108de57600080fd5b506103836108ed366004615742565b612a07565b61038361090036600461542d565b612a95565b34801561091157600080fd5b506104017f000000000000000000000000b860200bd68dc39ceafd6ebb82883f189f4cda7681565b34801561094557600080fd5b506103d46109543660046152d9565b612ab3565b34801561096557600080fd5b50600a54610401906001600160a01b031681565b6103836109873660046157f7565b612b6a565b34801561099857600080fd5b506104016109a73660046152d9565b600c602052600090815260409020546001600160a01b031681565b3480156109ce57600080fd5b506103aa6109dd36600461582e565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b610383610a1936600461542d565b612bd8565b61044c610a2c36600461585c565b612c48565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f780e9d63000000000000000000000000000000000000000000000000000000001480610a875750610a8782612f8d565b92915050565b606060008054610a9c9061586e565b80601f0160208091040260200160405190810160405280929190818152602001828054610ac89061586e565b8015610b155780601f10610aea57610100808354040283529160200191610b15565b820191906000526020600020905b815481529060010190602001808311610af857829003601f168201915b5050505050905090565b6000610b2a82613070565b506000908152600f60205260409020546b01000000000000000000000090046001600160a01b031690565b6000610b6082611a5c565b9050806001600160a01b0316836001600160a01b031603610be95760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f7200000000000000000000000000000000000000000000000000000000000000606482015260840161037a565b336001600160a01b0382161480610c055750610c0581336109dd565b610c775760405162461bcd60e51b815260206004820152603d60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c000000606482015260840161037a565b610c8183836130d7565b505050565b6000808235610c948161316e565b8360800135610ca2816131c4565b6000610cb460408701602088016158b7565b6001600160801b031611610cc757600080fd5b84356000908152600f60209081526040918290206001810154909269ffffffffffffffffffff8216926a01000000000000000000008304600290810b936d0100000000000000000000000000810490910b92600160801b9091046001600160801b031691610d39918c01908c016158b7565b6001600160801b0316816001600160801b03161015610d5757600080fd5b6000610d6285613214565b9050610d8e84848d6020016020810190610d7c91906158b7565b6001600160a01b038516929190613282565b909a50985060408b01358a10801590610dab57508a606001358910155b610df75760405162461bcd60e51b815260206004820152601460248201527f507269636520736c69707061676520636865636b000000000000000000000000604482015260640161037a565b600080610e08888430898989613365565b91509150818c018860040160008282829054906101000a90046001600160801b03160192506101000a8154816001600160801b0302191690836001600160801b03160217905550808b018860040160108282829054906101000a90046001600160801b03160192506101000a8154816001600160801b0302191690836001600160801b031602179055508c6020016020810190610ea591906158b7565b6001890180546001600160801b039287038316600160801b02921691909117905550508a357f26f6a048ee9138f2c0ce266f322cb99228e8d619ae2bff30c67f8dcf9d2377b4610efb60408e0160208f016158b7565b604080516001600160801b039092168252602082018e905281018c905260600160405180910390a2610f4f8b35610f3860408e0160208f016158b7565b6001600160801b0316610f4a906158ea565b6133df565b5050505050505050915091565b60008060008360a00135610f6f816131c4565b84356000908152600f6020908152604080832060018082015469ffffffffffffffffffff81168652600e855283862084516101208101865281546001600160a01b039081168252938201549093168387015230838601526a01000000000000000000008204600290810b60608086018290526d0100000000000000000000000000850490920b6080808701829052988f013560a0870152968e013560c0860152908d013560e0850152958c0135610100840152929592949392600160801b9091046001600160801b031691819061104590613523565b929e50909c509a50925090506000806110628985308a8a8a613365565b915091508082176001600160801b03166000146110c657600489018054600160801b6001600160801b03808316860181167fffffffffffffffffffffffffffffffff0000000000000000000000000000000090931683178290048116850116021790555b8c85018960010160106101000a8154816001600160801b0302191690836001600160801b031602179055508d600001357f8a82de7fe9b33e0e6bca0e26f5bd14a74f1164ffe236d50e0a36c3ea70f2b814848f8f8f896040516111629594939291906001600160801b039586168152939094166020840152604083019190915260608201526001600160a01b0391909116608082015260a00190565b60405180910390a261117e8e356001600160801b038f166133df565b505050505050505050509193909250565b611199338261373c565b61120b5760405162461bcd60e51b815260206004820152602d60248201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560448201527f72206f7220617070726f76656400000000000000000000000000000000000000606482015260840161037a565b610c818383836137bb565b600061122183611d19565b82106112955760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201527f74206f6620626f756e6473000000000000000000000000000000000000000000606482015260840161037a565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b6000306001600160a01b037f0000000000000000000000005084e9fdf9264489a14e77c011073d757e572bb41614801561131757507f000000000000000000000000000000000000000000000000000000000000009246145b1561134157507f59558a26d137c0e8f1c15056a376c98bc6882787d3b19744204bfdce147b711190565b6113e9604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f60208201527f3af402ccff689f6433605f2396cb5af1e9de19a37f8694caa2da5f655aa058a4918101919091527f2a80e1ef1d7842f27f2e6be0972bb708b9a135c38860dbe73c27c3486c34f4de60608201524660808201523060a082015260009060c00160405160208183030381529060405280519060200120905090565b905090565b90565b60006113ff82840184615922565b905061142f7f00000000000000000000000098af00a67f5cc0b362da34283d7d32817f6c9a2982600001516139fe565b50841561144a57805151602082015161144a91903388613a64565b83156114685761146881600001516020015182602001513387613a64565b5050505050565b471561147f5761147f3347613bfd565b565b610c8183838360405180602001604052806000815250612a07565b806114a68161316e565b6000828152600f6020526040902060048101546001820154600160801b8083046001600160801b03908116938116919092049190911617171561152b5760405162461bcd60e51b815260206004820152600b60248201527f4e6f7420636c6561726564000000000000000000000000000000000000000000604482015260640161037a565b6000838152600f6020908152604080832080547fff00000000000000000000000000000000000000000000000000000000000000168155600181018490556002810184905560038101849055600401839055600c9091529020805473ffffffffffffffffffffffffffffffffffffffff19169055610c8183613cba565b60006115b382613070565b6115bd838361373c565b9392505050565b6040517f8fcbaf0c00000000000000000000000000000000000000000000000000000000815233600482015230602482015260448101869052606481018590526001608482015260ff841660a482015260c4810183905260e481018290526001600160a01b03871690638fcbaf0c90610104015b600060405180830381600087803b15801561165257600080fd5b505af1158015611666573d6000803e3d6000fd5b50505050505050505050565b6040517fe8ae2b690000000000000000000000000000000000000000000000000000000081527fff0e0466f109fcf4f5660899d8847c592e1e8dea30ffbe040704b23ad381d76260048201523360248201527f000000000000000000000000b860200bd68dc39ceafd6ebb82883f189f4cda766001600160a01b03169063e8ae2b6990604401602060405180830381865afa158015611715573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611739919061599e565b61174257600080fd5b600a805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0383169081179091556040519081527f29f9e1ebeee07596f3165f3e42cb9d4d8d22b0481e968d6c74be3dd037c15d9b9060200160405180910390a150565b60006117ae60085490565b82106118225760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201527f7574206f6620626f756e64730000000000000000000000000000000000000000606482015260840161037a565b60088281548110611835576118356159bb565b90600052602060002001549050919050565b6000826001600160a01b0316846001600160a01b0316106118aa5760405162461bcd60e51b815260206004820152601760248201527f496e76616c6964206f72646572206f6620746f6b656e73000000000000000000604482015260640161037a565b6040517fd9a641e10000000000000000000000000000000000000000000000000000000081526001600160a01b03858116600483015284811660248301527f000000000000000000000000b860200bd68dc39ceafd6ebb82883f189f4cda76169063d9a641e190604401602060405180830381865afa158015611931573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061195591906159d1565b90506001600160a01b038116611a23576040517fe34336150000000000000000000000000000000000000000000000000000000081526001600160a01b03858116600483015284811660248301527f000000000000000000000000b860200bd68dc39ceafd6ebb82883f189f4cda76169063e3433615906044016020604051808303816000875af11580156119ee573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a1291906159d1565b9050611a1e8183613d6a565b6115bd565b6000611a37826001600160a01b0316613dda565b9050806001600160a01b0316600003611a5457611a548284613d6a565b509392505050565b6000818152600260205260408120546001600160a01b031680610a875760405162461bcd60e51b815260206004820152601860248201527f4552433732313a20696e76616c696420746f6b656e2049440000000000000000604482015260640161037a565b6000611aec7f000000000000000000000000db78663ad25d2c684087adf5993530019141e339613e4a565b905082811015611b3e5760405162461bcd60e51b815260206004820152601960248201527f496e73756666696369656e7420574e6174697665546f6b656e00000000000000604482015260640161037a565b8015610c81576040517f2e1a7d4d000000000000000000000000000000000000000000000000000000008152600481018290527f000000000000000000000000db78663ad25d2c684087adf5993530019141e3396001600160a01b031690632e1a7d4d90602401600060405180830381600087803b158015611bbf57600080fd5b505af1158015611bd3573d6000803e3d6000fd5b50505050610c818282613bfd565b600a546001600160a01b031633811460008315611c68576000858152600b60205260409020546001600160a01b03848116911614611c615760405162461bcd60e51b815260206004820152601860248201527f4e6f7420617070726f76656420666f72206661726d696e670000000000000000604482015260640161037a565b5081611c8d565b8180611c8a57506000858152600c60205260409020546001600160a01b031633145b91505b81611cda5760405162461bcd60e51b815260206004820152601260248201527f4f6e6c79204661726d696e6743656e7465720000000000000000000000000000604482015260640161037a565b6000948552600c6020526040909420805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0390951694909417909355505050565b60006001600160a01b038216611d975760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f74206120766160448201527f6c6964206f776e65720000000000000000000000000000000000000000000000606482015260840161037a565b506001600160a01b031660009081526003602052604090205490565b83421115611e035760405162461bcd60e51b815260206004820152600e60248201527f5065726d69742065787069726564000000000000000000000000000000000000604482015260640161037a565b6000611e0d6112be565b6000878152600f6020526040902080547fffffffffffffffffffffffffffffffffffffffffff0000000000000000000000811660016affffffffffffffffffffff928316908101909216179091557f49ecf333e5b8c95c40fdafc95c1ad136e8914a8fb55e9dc8bb01eaa83a2df9ad90899089906040805160208101959095526001600160a01b03909316928401929092526060830152608082015260a0810187905260c00160405160208183030381529060405280519060200120604051602001611f0b9291907f190100000000000000000000000000000000000000000000000000000000000081526002810192909252602282015260420190565b6040516020818303038152906040528051906020012090506000611f2e87611a5c565b9050806001600160a01b0316886001600160a01b031603611fb75760405162461bcd60e51b815260206004820152602760248201527f4552433732315065726d69743a20617070726f76616c20746f2063757272656e60448201527f74206f776e657200000000000000000000000000000000000000000000000000606482015260840161037a565b6001600160a01b0381163b156120d157604080516020810186905280820185905260f887901b7fff000000000000000000000000000000000000000000000000000000000000001660608201528151604181830301815260618201928390527f1626ba7e000000000000000000000000000000000000000000000000000000009092526120cc916001600160a01b03841691631626ba7e9161205e918791906065016159ee565b602060405180830381865afa15801561207b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061209f9190615a07565b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916631626ba7e60e01b14613ecf565b6121a7565b6040805160008082526020820180845285905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015612125573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166121885760405162461bcd60e51b815260206004820152601160248201527f496e76616c6964207369676e6174757265000000000000000000000000000000604482015260640161037a565b6121a5826001600160a01b0316826001600160a01b031614613ecf565b505b6121b188886130d7565b5050505050505050565b826121c58161316e565b6000831561222d57600a546001600160a01b0384811691161461222a5760405162461bcd60e51b815260206004820152601760248201527f496e76616c6964206661726d696e672061646472657373000000000000000000604482015260640161037a565b50815b6000948552600b6020526040909420805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0390951694909417909355505050565b606060018054610a9c9061586e565b6000818152600f6020526040812060018101548291829182916a01000000000000000000008204600290810b926d0100000000000000000000000000810490910b916001600160801b03600160801b83041691859182918291829169ffffffffffffffffffff168083036123315760405162461bcd60e51b815260206004820152601060248201527f496e76616c696420746f6b656e20494400000000000000000000000000000000604482015260640161037a565b6000600e60008369ffffffffffffffffffff1669ffffffffffffffffffff16815260200190815260200160002090508260000160009054906101000a90046affffffffffffffffffffff1683600001600b9054906101000a90046001600160a01b03168260000160009054906101000a90046001600160a01b03168360010160009054906101000a90046001600160a01b03168d8d8d89600201548a600301548b60040160009054906101000a90046001600160801b03168c60040160109054906101000a90046001600160801b03169d509d509d509d509d509d509d509d509d509d509d5050505091939597999b90929496989a50565b60008060008084610120013561243e816131c4565b6000806124f46040518061012001604052808a60000160208101906124639190615489565b6001600160a01b031681526020018a60200160208101906124849190615489565b6001600160a01b031681523060208201526040908101906124ab9060608d01908d01615a33565b60020b81526020016124c360808c0160608d01615a33565b60020b81526080808c0135602083015260a08c0135604083015260c08c0135606083015260e08c0135910152613523565b92995090975095509250905061256a6125156101208a016101008b01615489565b601080547fffffffffffffffffffff000000000000000000000000000000000000000000008116600175ffffffffffffffffffffffffffffffffffffffffffff92831690810190921617909155985088613f1c565b6000806125a33061258160608d0160408e01615a33565b61259160808e0160608f01615a33565b6001600160a01b0388169291906140c2565b5050925092505060006125ff8560405180604001604052808e60000160208101906125ce9190615489565b6001600160a01b031681526020018e60200160208101906125ef9190615489565b6001600160a01b0316905261417a565b60408051610140810182526000808252602082015269ffffffffffffffffffff83168183015291925060608083019161263c918f01908f01615a33565b60020b815260200161265460808e0160608f01615a33565b60020b81526020018a6001600160801b0316815260200184815260200183815260200160006001600160801b0316815260200160006001600160801b0316815250600f60008c815260200190815260200160002060008201518160000160006101000a8154816affffffffffffffffffffff02191690836affffffffffffffffffffff160217905550602082015181600001600b6101000a8154816001600160a01b0302191690836001600160a01b0316021790555060408201518160010160006101000a81548169ffffffffffffffffffff021916908369ffffffffffffffffffff160217905550606082015181600101600a6101000a81548162ffffff021916908360020b62ffffff160217905550608082015181600101600d6101000a81548162ffffff021916908360020b62ffffff16021790555060a08201518160010160106101000a8154816001600160801b0302191690836001600160801b0316021790555060c0820151816002015560e082015181600301556101008201518160040160006101000a8154816001600160801b0302191690836001600160801b031602179055506101208201518160040160106101000a8154816001600160801b0302191690836001600160801b03160217905550905050897f8a82de7fe9b33e0e6bca0e26f5bd14a74f1164ffe236d50e0a36c3ea70f2b814858b8b8b8a60405161289a9594939291906001600160801b039586168152939094166020840152604083019190915260608201526001600160a01b0391909116608082015260a00190565b60405180910390a25050505050509193509193565b6128ba33838361428a565b5050565b6000196128ca87614376565b10156128de576128de8686868686866115c4565b505050505050565b60608167ffffffffffffffff811115612901576129016156b1565b60405190808252806020026020018201604052801561293457816020015b606081526020019060019003908161291f5790505b50905060005b82811015612a005760008030868685818110612958576129586159bb565b905060200281019061296a9190615a50565b604051612978929190615abc565b600060405180830381855af49150503d80600081146129b3576040519150601f19603f3d011682016040523d82523d6000602084013e6129b8565b606091505b5091509150816129d85760008151116129d057600080fd5b805181602001fd5b808484815181106129eb576129eb6159bb565b6020908102919091010152505060010161293a565b5092915050565b612a11338361373c565b612a835760405162461bcd60e51b815260206004820152602d60248201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560448201527f72206f7220617070726f76656400000000000000000000000000000000000000606482015260840161037a565b612a8f848484846143c4565b50505050565b84612a9f87614376565b10156128de576128de868686868686612bd8565b6060612abe82613070565b6040517fe9dc6375000000000000000000000000000000000000000000000000000000008152306004820152602481018390527f000000000000000000000000fca97cf455760f634de123158b3286090147b1176001600160a01b03169063e9dc637590604401600060405180830381865afa158015612b42573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610a879190810190615acc565b6000612b7584613e4a565b905082811015612bc75760405162461bcd60e51b815260206004820152601260248201527f496e73756666696369656e7420746f6b656e0000000000000000000000000000604482015260640161037a565b8015612a8f57612a8f84838361444d565b6040517fd505accf000000000000000000000000000000000000000000000000000000008152336004820152306024820152604481018690526064810185905260ff8416608482015260a4810183905260c481018290526001600160a01b0387169063d505accf9060e401611638565b6000808235612c568161316e565b6000612c6860608601604087016158b7565b6001600160801b03161180612c9557506000612c8a60808601606087016158b7565b6001600160801b0316115b612c9e57600080fd5b600080612cb16040870160208801615489565b6001600160a01b031614612cd457612ccf6040860160208701615489565b612cd6565b305b85356000908152600f60205260408120600181015492935091612d049069ffffffffffffffffffff16613214565b600183015460048401549192506a01000000000000000000008104600290810b926d0100000000000000000000000000830490910b916001600160801b03600160801b91829004811692808216929004168215612d8f57612d716001600160a01b03871686866000613282565b5050600080612d848989308a8a8a613365565b940193929092019150505b600080836001600160801b03168e6040016020810190612daf91906158b7565b6001600160801b031611612dd5578d6040016020810190612dd091906158b7565b612dd7565b835b836001600160801b03168f6060016020810190612df491906158b7565b6001600160801b031611612e1a578e6060016020810190612e1591906158b7565b612e1c565b835b6040517f4f1eb3d80000000000000000000000000000000000000000000000000000000081526001600160a01b038d8116600483015260028b810b60248401528a900b60448301526001600160801b0380851660648401528316608483015292945090925090891690634f1eb3d89060a40160408051808303816000875af1158015612eac573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612ed09190615b4e565b8386036001600160801b039081168487038216600160801b027fffffffffffffffffffffffffffffffff00000000000000000000000000000000161760048d01556040519281169f50169c508e35907f40d0efd1a53d60ecbf40971b9daf7dc90178c3aadc7aab1765632738fa8b8f0190612f75908d90869086906001600160a01b039390931683526001600160801b03918216602084015216604082015260600190565b60405180910390a25050505050505050505050915091565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd00000000000000000000000000000000000000000000000000000000148061302057507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610a8757507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff00000000000000000000000000000000000000000000000000000000831614610a87565b6000818152600260205260409020546001600160a01b03166130d45760405162461bcd60e51b815260206004820152601860248201527f4552433732313a20696e76616c696420746f6b656e2049440000000000000000604482015260640161037a565b50565b6000818152600f6020526040902080547fff0000000000000000000000000000000000000000ffffffffffffffffffffff166b0100000000000000000000006001600160a01b03851690810291909117909155819061313582611a5c565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b613178338261373c565b6130d45760405162461bcd60e51b815260206004820152600c60248201527f4e6f7420617070726f7665640000000000000000000000000000000000000000604482015260640161037a565b804211156130d45760405162461bcd60e51b815260206004820152601360248201527f5472616e73616374696f6e20746f6f206f6c6400000000000000000000000000604482015260640161037a565b69ffffffffffffffffffff81166000908152600e60209081526040808320815180830190925280546001600160a01b0390811683526001909101541691810191909152610a87907f00000000000000000000000098af00a67f5cc0b362da34283d7d32817f6c9a299061458f565b6040517f3b3bc70e000000000000000000000000000000000000000000000000000000008152600284810b600483015283900b60248201526001600160801b038216604482015260806064820152600360848201527f307830000000000000000000000000000000000000000000000000000000000060a482015260009081906001600160a01b03871690633b3bc70e9060c40160408051808303816000875af1158015613334573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906133589190615b7d565b9150915094509492505050565b600080808061337f6001600160a01b038a168989896140c2565b505092509250506133a48a600201548303866001600160801b0316600160801b6146f0565b93506133c48a600301548203866001600160801b0316600160801b6146f0565b60028b01929092556003909901989098555096945050505050565b6000828152600c60205260409020546001600160a01b03168061340157505050565b600a546001600160a01b0316806134185750505050565b806001600160a01b0316826001600160a01b031603612a8f576040517f06e65c9000000000000000000000000000000000000000000000000000000000815260048101859052602481018490526001600160a01b038216906306e65c9090604401600060405180830381600087803b15801561349357600080fd5b505af19250505080156134a4575060015b612a8f576134b0615ba1565b806308c379a00361350057506134c4615bbc565b806134cf5750613519565b60405185907f4f27462fbdc9bce16bb573a06acba6b27394e151da96ce8098d8e29a6dc8d64b90600090a250612a8f565b634e487b710361351957613512615c64565b906134cf57505b3d6000803e3d6000fd5b600080600080600080604051806040016040528088600001516001600160a01b0316815260200188602001516001600160a01b031681525090506135877f00000000000000000000000098af00a67f5cc0b362da34283d7d32817f6c9a298261458f565b9150600061359d836001600160a01b0316613dda565b905060006135ae8960600151614789565b905060006135bf8a60800151614789565b90506135d68383838d60a001518e60c00151614a7d565b9850505050816001600160a01b031663aafe29c03389604001518a606001518b608001518b6040518060400160405280898152602001336001600160a01b03168152506040516020016136529190815180516001600160a01b039081168352602091820151811682840152920151909116604082015260600190565b6040516020818303038152906040526040518763ffffffff1660e01b815260040161368296959493929190615c84565b6060604051808303816000875af11580156136a1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906136c59190615cdd565b60e08a0151909750919550935084108015906136e657508661010001518310155b6137325760405162461bcd60e51b815260206004820152601460248201527f507269636520736c69707061676520636865636b000000000000000000000000604482015260640161037a565b5091939590929450565b60008061374883611a5c565b9050806001600160a01b0316846001600160a01b0316148061378f57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b806137b35750836001600160a01b03166137a884610b1f565b6001600160a01b0316145b949350505050565b826001600160a01b03166137ce82611a5c565b6001600160a01b03161461384a5760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201527f6f776e6572000000000000000000000000000000000000000000000000000000606482015260840161037a565b6001600160a01b0382166138c55760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f7265737300000000000000000000000000000000000000000000000000000000606482015260840161037a565b6138d28383836001614b41565b826001600160a01b03166138e582611a5c565b6001600160a01b0316146139615760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201527f6f776e6572000000000000000000000000000000000000000000000000000000606482015260840161037a565b6000818152600460209081526040808320805473ffffffffffffffffffffffffffffffffffffffff199081169091556001600160a01b0387811680865260038552838620805460001901905590871680865283862080546001019055868652600290945282852080549092168417909155905184937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6000613a0a838361458f565b9050336001600160a01b03821614610a875760405162461bcd60e51b815260206004820152601a60248201527f496e76616c69642063616c6c6572206f662063616c6c6261636b000000000000604482015260640161037a565b7f000000000000000000000000db78663ad25d2c684087adf5993530019141e3396001600160a01b0316846001600160a01b0316148015613aa55750804710155b15613bd1577f000000000000000000000000db78663ad25d2c684087adf5993530019141e3396001600160a01b031663d0e30db0826040518263ffffffff1660e01b81526004016000604051808303818588803b158015613b0557600080fd5b505af1158015613b19573d6000803e3d6000fd5b50506040517fa9059cbb0000000000000000000000000000000000000000000000000000000081526001600160a01b038681166004830152602482018690527f000000000000000000000000db78663ad25d2c684087adf5993530019141e33916935063a9059cbb925060440190506020604051808303816000875af1158015613ba7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613bcb919061599e565b50612a8f565b306001600160a01b03841603613bf157613bec84838361444d565b612a8f565b612a8f84848484614bb6565b604080516000808252602082019092526001600160a01b038416908390604051613c279190615d0b565b60006040518083038185875af1925050503d8060008114613c64576040519150601f19603f3d011682016040523d82523d6000602084013e613c69565b606091505b5050905080610c815760405162461bcd60e51b815260206004820152600360248201527f5354450000000000000000000000000000000000000000000000000000000000604482015260640161037a565b6000613cc582611a5c565b9050613cd5816000846001614b41565b613cde82611a5c565b6000838152600460209081526040808320805473ffffffffffffffffffffffffffffffffffffffff199081169091556001600160a01b0385168085526003845282852080546000190190558785526002909352818420805490911690555192935084927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b6040517ff637731d0000000000000000000000000000000000000000000000000000000081526001600160a01b03828116600483015283169063f637731d90602401600060405180830381600087803b158015613dc657600080fd5b505af11580156128de573d6000803e3d6000fd5b6000816001600160a01b031663e76c01e46040518163ffffffff1660e01b815260040160c060405180830381865afa158015613e1a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613e3e9190615d39565b50939695505050505050565b6040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201526000906001600160a01b038316906370a08231906024015b602060405180830381865afa158015613eab573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a879190615db8565b806130d45760405162461bcd60e51b815260206004820152600c60248201527f556e617574686f72697a65640000000000000000000000000000000000000000604482015260640161037a565b6001600160a01b038216613f725760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015260640161037a565b6000818152600260205260409020546001600160a01b031615613fd75760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640161037a565b613fe5600083836001614b41565b6000818152600260205260409020546001600160a01b03161561404a5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640161037a565b6001600160a01b0382166000818152600360209081526040808320805460010190558483526002909152808220805473ffffffffffffffffffffffffffffffffffffffff19168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000808080808062ffffff80881690891660188b811b91909117901b176040517f514ea4bf000000000000000000000000000000000000000000000000000000008152600481018290529091506001600160a01b038b169063514ea4bf9060240160a060405180830381865afa158015614140573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906141649190615dd1565b9550955095509550955050945094509450945094565b6001600160a01b0382166000908152600d602052604081205469ffffffffffffffffffff1690819003610a87575060108054600169ffffffffffffffffffff76010000000000000000000000000000000000000000000080840482168381019092160275ffffffffffffffffffffffffffffffffffffffffffff909316929092179092556001600160a01b038085166000908152600d6020908152604080832080547fffffffffffffffffffffffffffffffffffffffffffff000000000000000000001686179055848352600e82529091208551815490841673ffffffffffffffffffffffffffffffffffffffff1991821617825591860151940180549490921693169290921790915592915050565b816001600160a01b0316836001600160a01b0316036142eb5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015260640161037a565b6001600160a01b0383811660008181526005602090815260408083209487168084529482529182902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6040517fdd62ed3e0000000000000000000000000000000000000000000000000000000081523360048201523060248201526000906001600160a01b0383169063dd62ed3e90604401613e8e565b6143cf8484846137bb565b6143db84848484614d00565b612a8f5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e7465720000000000000000000000000000606482015260840161037a565b604080516001600160a01b038481166024830152604480830185905283518084039091018152606490920183526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb0000000000000000000000000000000000000000000000000000000017905291516000928392908716916144d79190615d0b565b6000604051808303816000865af19150503d8060008114614514576040519150601f19603f3d011682016040523d82523d6000602084013e614519565b606091505b5091509150818015614543575080511580614543575080806020019051810190614543919061599e565b6114685760405162461bcd60e51b815260206004820152600260248201527f5354000000000000000000000000000000000000000000000000000000000000604482015260640161037a565b600081602001516001600160a01b031682600001516001600160a01b0316106145fa5760405162461bcd60e51b815260206004820152601760248201527f496e76616c6964206f72646572206f6620746f6b656e73000000000000000000604482015260640161037a565b828260000151836020015160405160200161462b9291906001600160a01b0392831681529116602082015260400190565b60408051601f198184030181529082905280516020918201206146d1939290917ff96d2474815c32e070cd63233f06af5413efc5dcb430aee4ff18cc29007c562d91017fff00000000000000000000000000000000000000000000000000000000000000815260609390931b7fffffffffffffffffffffffffffffffffffffffff0000000000000000000000001660018401526015830191909152603582015260550190565b60408051601f1981840301815291905280516020909101209392505050565b6000838302816000198587098281108382030391505080841161471257600080fd5b80600003614725575082900490506115bd565b8385870960008581038616958690049560026003880281188089028203028089028203028089028203028089028203028089028203028089029091030291819003819004600101858411909403939093029190930391909104170290509392505050565b6000600282900b60171d62ffffff818401821816620d89e88111156147da576040517f3c10250f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600160801b60018216156147fb57506ffffcb933bd6fad37aa2d162d1a5940015b600282161561481a576ffff97272373d413259a46990580e213a0260801c5b6004821615614839576ffff2e50f5f656932ef12357cf3c7fdcc0260801c5b6008821615614858576fffe5caca7e10e4e61c3624eaa0941cd00260801c5b6010821615614877576fffcb9843d60f6159c9db58835c9266440260801c5b6020821615614896576fff973b41fa98c081472e6896dfb254c00260801c5b60408216156148b5576fff2ea16466c96a3843ec78b326b528610260801c5b60808216156148d4576ffe5dee046a99a2a811c461f1969c30530260801c5b6101008216156148f4576ffcbe86c7900a88aedcffc83b479aa3a40260801c5b610200821615614914576ff987a7253ac413176f2b074cf7815e540260801c5b610400821615614934576ff3392b0822b70005940c7a398e4b70f30260801c5b610800821615614954576fe7159475a2c29b7443b29c7fa6e889d90260801c5b611000821615614974576fd097f3bdfd2022b8845ad8f792aa58250260801c5b612000821615614994576fa9f746462d870fdf8a65dc1f90e061e50260801c5b6140008216156149b4576f70d869a156d2a1b890bb3df62baf32f70260801c5b6180008216156149d4576f31be135f97d08fd981231505542fcfa60260801c5b620100008216156149f5576f09aa508b5b7a84e1c677de54f3e99bc90260801c5b62020000821615614a15576e5d6af8dedb81196699c329225ee6040260801c5b620400008210614a5b5762040000821615614a3e576d2216e584f5fa1ea926041bedfe980260801c5b62080000821615614a5b576b048a170391f7dc42444e8fa20260801c5b60008560020b1315614a6c57600019045b63ffffffff0160201c949350505050565b6000836001600160a01b0316856001600160a01b03161115614a9d579293925b846001600160a01b0316866001600160a01b031611614ac857614ac1858585614e99565b9050614b38565b836001600160a01b0316866001600160a01b03161015614b2a576000614aef878686614e99565b90506000614afe878986614f05565b9050806001600160801b0316826001600160801b031610614b1f5780614b21565b815b92505050614b38565b614b35858584614f05565b90505b95945050505050565b6001600160a01b03841615614baa576000828152600f6020908152604080832080547fff0000000000000000000000000000000000000000ffffffffffffffffffffff169055600b9091529020805473ffffffffffffffffffffffffffffffffffffffff191690555b612a8f84848484614f4b565b604080516001600160a01b0385811660248301528481166044830152606480830185905283518084039091018152608490920183526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f23b872dd000000000000000000000000000000000000000000000000000000001790529151600092839290881691614c489190615d0b565b6000604051808303816000865af19150503d8060008114614c85576040519150601f19603f3d011682016040523d82523d6000602084013e614c8a565b606091505b5091509150818015614cb4575080511580614cb4575080806020019051810190614cb4919061599e565b6128de5760405162461bcd60e51b815260206004820152600360248201527f5354460000000000000000000000000000000000000000000000000000000000604482015260640161037a565b60006001600160a01b0384163b15614e8e576040517f150b7a020000000000000000000000000000000000000000000000000000000081526001600160a01b0385169063150b7a0290614d5d903390899088908890600401615e28565b6020604051808303816000875af1925050508015614d98575060408051601f3d908101601f19168201909252614d9591810190615a07565b60015b614e43573d808015614dc6576040519150601f19603f3d011682016040523d82523d6000602084013e614dcb565b606091505b5080516000036129d05760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e7465720000000000000000000000000000606482015260840161037a565b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a02000000000000000000000000000000000000000000000000000000001490506137b3565b506001949350505050565b6000826001600160a01b0316846001600160a01b03161115614eb9579192915b6000614ee5856001600160a01b0316856001600160a01b03166c010000000000000000000000006146f0565b9050614b38614f0084838888036001600160a01b03166146f0565b615080565b6000826001600160a01b0316846001600160a01b03161115614f25579192915b6137b3614f00836c010000000000000000000000008787036001600160a01b03166146f0565b6001811115614fc25760405162461bcd60e51b815260206004820152603560248201527f455243373231456e756d657261626c653a20636f6e736563757469766520747260448201527f616e7366657273206e6f7420737570706f727465640000000000000000000000606482015260840161037a565b816001600160a01b03851661501e5761501981600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b615041565b836001600160a01b0316856001600160a01b03161461504157615041858261509b565b6001600160a01b03841661505d5761505881615138565b611468565b846001600160a01b0316846001600160a01b0316146114685761146884826151e7565b806001600160801b038116811461509657600080fd5b919050565b600060016150a884611d19565b6150b29190615e5a565b600083815260076020526040902054909150808214615105576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b60085460009061514a90600190615e5a565b60008381526009602052604081205460088054939450909284908110615172576151726159bb565b906000526020600020015490508060088381548110615193576151936159bb565b60009182526020808320909101929092558281526009909152604080822084905585825281205560088054806151cb576151cb615e6d565b6001900381819060005260206000200160009055905550505050565b60006151f283611d19565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b7fffffffff00000000000000000000000000000000000000000000000000000000811681146130d457600080fd5b60006020828403121561526b57600080fd5b81356115bd8161522b565b60005b83811015615291578181015183820152602001615279565b50506000910152565b600081518084526152b2816020860160208601615276565b601f01601f19169290920160200192915050565b6020815260006115bd602083018461529a565b6000602082840312156152eb57600080fd5b5035919050565b6001600160a01b03811681146130d457600080fd5b6000806040838503121561531a57600080fd5b8235615325816152f2565b946020939093013593505050565b600060a0828403121561534557600080fd5b50919050565b600060c0828403121561534557600080fd5b60008060006060848603121561537257600080fd5b833561537d816152f2565b9250602084013561538d816152f2565b929592945050506040919091013590565b600080600080606085870312156153b457600080fd5b8435935060208501359250604085013567ffffffffffffffff808211156153da57600080fd5b818701915087601f8301126153ee57600080fd5b8135818111156153fd57600080fd5b88602082850101111561540f57600080fd5b95989497505060200194505050565b60ff811681146130d457600080fd5b60008060008060008060c0878903121561544657600080fd5b8635615451816152f2565b95506020870135945060408701359350606087013561546f8161541e565b9598949750929560808101359460a0909101359350915050565b60006020828403121561549b57600080fd5b81356115bd816152f2565b6000806000606084860312156154bb57600080fd5b83356154c6816152f2565b925060208401356154d6816152f2565b915060408401356154e6816152f2565b809150509250925092565b6000806040838503121561550457600080fd5b823591506020830135615516816152f2565b809150509250929050565b80151581146130d457600080fd5b6000806040838503121561554257600080fd5b82359150602083013561551681615521565b60008060006060848603121561556957600080fd5b8335925060208401356154d681615521565b6000610140828403121561534557600080fd5b600080604083850312156155a157600080fd5b82356155ac816152f2565b9150602083013561551681615521565b600080602083850312156155cf57600080fd5b823567ffffffffffffffff808211156155e757600080fd5b818501915085601f8301126155fb57600080fd5b81358181111561560a57600080fd5b8660208260051b850101111561561f57600080fd5b60209290920196919550909350505050565b6000602080830181845280855180835260408601915060408160051b870101925083870160005b828110156156a4577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc088860301845261569285835161529a565b94509285019290850190600101615658565b5092979650505050505050565b634e487b7160e01b600052604160045260246000fd5b6040810181811067ffffffffffffffff821117156156e7576156e76156b1565b60405250565b601f19601f830116810181811067ffffffffffffffff82111715615713576157136156b1565b6040525050565b600067ffffffffffffffff821115615734576157346156b1565b50601f01601f191660200190565b6000806000806080858703121561575857600080fd5b8435615763816152f2565b93506020850135615773816152f2565b925060408501359150606085013567ffffffffffffffff81111561579657600080fd5b8501601f810187136157a757600080fd5b80356157b28161571a565b6040516157bf82826156ed565b8281528960208486010111156157d457600080fd5b826020850160208301376000602084830101528094505050505092959194509250565b60008060006060848603121561580c57600080fd5b8335615817816152f2565b92506020840135915060408401356154e6816152f2565b6000806040838503121561584157600080fd5b823561584c816152f2565b91506020830135615516816152f2565b60006080828403121561534557600080fd5b600181811c9082168061588257607f821691505b60208210810361534557634e487b7160e01b600052602260045260246000fd5b6001600160801b03811681146130d457600080fd5b6000602082840312156158c957600080fd5b81356115bd816158a2565b634e487b7160e01b600052601160045260246000fd5b60007f8000000000000000000000000000000000000000000000000000000000000000820361591b5761591b6158d4565b5060000390565b6000818303606081121561593557600080fd5b604051615941816156c7565b604082121561594f57600080fd5b604051915061595d826156c7565b8335615968816152f2565b82526020840135615978816152f2565b602083015290815260408301359061598f826152f2565b60208101919091529392505050565b6000602082840312156159b057600080fd5b81516115bd81615521565b634e487b7160e01b600052603260045260246000fd5b6000602082840312156159e357600080fd5b81516115bd816152f2565b8281526040602082015260006137b3604083018461529a565b600060208284031215615a1957600080fd5b81516115bd8161522b565b8060020b81146130d457600080fd5b600060208284031215615a4557600080fd5b81356115bd81615a24565b60008083357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe1843603018112615a8557600080fd5b83018035915067ffffffffffffffff821115615aa057600080fd5b602001915036819003821315615ab557600080fd5b9250929050565b8183823760009101908152919050565b600060208284031215615ade57600080fd5b815167ffffffffffffffff811115615af557600080fd5b8201601f81018413615b0657600080fd5b8051615b118161571a565b604051615b1e82826156ed565b828152866020848601011115615b3357600080fd5b615b44836020830160208701615276565b9695505050505050565b60008060408385031215615b6157600080fd5b8251615b6c816158a2565b6020840151909250615516816158a2565b60008060408385031215615b9057600080fd5b505080516020909101519092909150565b600060033d11156113ee5760046000803e5060005160e01c90565b600060443d1015615bca5790565b6040517ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc803d016004833e81513d67ffffffffffffffff8160248401118184111715615c1857505050505090565b8285019150815181811115615c305750505050505090565b843d8701016020828501011115615c4a5750505050505090565b615c59602082860101876156ed565b509095945050505050565b60008060233d1115615c80576020600460003e50506000516001905b9091565b60006001600160a01b0380891683528088166020840152508560020b60408301528460020b60608301526001600160801b038416608083015260c060a0830152615cd160c083018461529a565b98975050505050505050565b600080600060608486031215615cf257600080fd5b835192506020840151915060408401516154e6816158a2565b60008251615d1d818460208701615276565b9190910192915050565b805161ffff8116811461509657600080fd5b60008060008060008060c08789031215615d5257600080fd5b8651615d5d816152f2565b6020880151909650615d6e81615a24565b9450615d7c60408801615d27565b93506060870151615d8c8161541e565b9250615d9a60808801615d27565b915060a0870151615daa81615521565b809150509295509295509295565b600060208284031215615dca57600080fd5b5051919050565b600080600080600060a08688031215615de957600080fd5b8551945060208601519350604086015192506060860151615e09816158a2565b6080870151909250615e1a816158a2565b809150509295509295909350565b60006001600160a01b03808716835280861660208401525083604083015260806060830152614b35608083018461529a565b81810381811115610a8757610a876158d4565b634e487b7160e01b600052603160045260246000fdfea164736f6c6343000814000a

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

    000000000000000000000000b860200bd68dc39ceafd6ebb82883f189f4cda76000000000000000000000000db78663ad25d2c684087adf5993530019141e339000000000000000000000000fca97cf455760f634de123158b3286090147b11700000000000000000000000098af00a67f5cc0b362da34283d7d32817f6c9a29

    -----Decoded View---------------
    Arg [0] : _factory (address): 0xb860200BD68dc39cEAfd6ebb82883f189f4CdA76
    Arg [1] : _WNativeToken (address): 0xdB78663Ad25D2C684087adF5993530019141E339
    Arg [2] : _tokenDescriptor_ (address): 0xFCa97CF455760F634De123158b3286090147b117
    Arg [3] : _poolDeployer (address): 0x98AF00a67F5cC0b362Da34283D7d32817F6c9A29

    -----Encoded View---------------
    4 Constructor Arguments found :
    Arg [0] : 000000000000000000000000b860200bd68dc39ceafd6ebb82883f189f4cda76
    Arg [1] : 000000000000000000000000db78663ad25d2c684087adf5993530019141e339
    Arg [2] : 000000000000000000000000fca97cf455760f634de123158b3286090147b117
    Arg [3] : 00000000000000000000000098af00a67f5cc0b362da34283d7d32817f6c9a29


    [ Download: CSV Export  ]

    A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.