ETH Price: $2,397.01 (-0.35%)

Token

Boosterpool token USD/WETH (BPT1)
 

Overview

Max Total Supply

0 BPT1

Holders

0

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 18 Decimals)

Balance
0 BPT1

Value
$0.00
0x8dd0b59c37f67e66fc5d964eade40197fc4e81f0
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information
# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
Booster

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2022-08-22
*/

// File: @uniswap/v3-core/contracts/libraries/FixedPoint96.sol


pragma solidity >=0.4.0;

/// @title FixedPoint96
/// @notice A library for handling binary fixed point numbers, see https://en.wikipedia.org/wiki/Q_(number_format)
/// @dev Used in SqrtPriceMath.sol
library FixedPoint96 {
    uint8 internal constant RESOLUTION = 96;
    uint256 internal constant Q96 = 0x1000000000000000000000000;
}

// File: github.com/Uniswap/v3-core/blob/0.8/contracts/libraries/FullMath.sol


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; // Least significant 256 bits of the product
            uint256 prod1; // Most significant 256 bits of the product
            assembly {
                let mm := mulmod(a, b, not(0))
                prod0 := mul(a, b)
                prod1 := sub(sub(mm, prod0), lt(mm, prod0))
            }

            // Handle non-overflow cases, 256 by 256 division
            if (prod1 == 0) {
                require(denominator > 0);
                assembly {
                    result := div(prod0, denominator)
                }
                return result;
            }

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

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

            // Make division exact by subtracting the remainder from [prod1 prod0]
            // Compute remainder using mulmod
            uint256 remainder;
            assembly {
                remainder := mulmod(a, b, denominator)
            }
            // Subtract 256 bit number from 512 bit number
            assembly {
                prod1 := sub(prod1, gt(remainder, prod0))
                prod0 := sub(prod0, remainder)
            }

            // Factor powers of two out of denominator
            // Compute largest power of two divisor of denominator.
            // Always >= 1.
            uint256 twos = (0 - denominator) & denominator;
            // Divide denominator by power of two
            assembly {
                denominator := div(denominator, twos)
            }

            // Divide [prod1 prod0] by the factors of two
            assembly {
                prod0 := div(prod0, twos)
            }
            // Shift in bits from prod1 into prod0. For this we need
            // to flip `twos` such that it is 2**256 / twos.
            // If twos is zero, then it becomes one
            assembly {
                twos := add(div(sub(0, twos), twos), 1)
            }
            prod0 |= prod1 * twos;

            // Invert denominator mod 2**256
            // Now that denominator is an odd number, it has an inverse
            // modulo 2**256 such that denominator * inv = 1 mod 2**256.
            // Compute the inverse by starting with a seed that is correct
            // correct for four bits. That is, denominator * inv = 1 mod 2**4
            uint256 inv = (3 * denominator) ^ 2;
            // Now use Newton-Raphson iteration to improve the precision.
            // Thanks to Hensel's lifting lemma, this also works in modular
            // arithmetic, doubling the correct bits in each step.
            inv *= 2 - denominator * inv; // inverse mod 2**8
            inv *= 2 - denominator * inv; // inverse mod 2**16
            inv *= 2 - denominator * inv; // inverse mod 2**32
            inv *= 2 - denominator * inv; // inverse mod 2**64
            inv *= 2 - denominator * inv; // inverse mod 2**128
            inv *= 2 - denominator * inv; // inverse mod 2**256

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

    /// @notice Calculates ceil(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
    function mulDivRoundingUp(
        uint256 a,
        uint256 b,
        uint256 denominator
    ) internal pure returns (uint256 result) {
        unchecked {
            result = mulDiv(a, b, denominator);
            if (mulmod(a, b, denominator) > 0) {
                require(result < type(uint256).max);
                result++;
            }
        }
    }
}

// File: github/TrinityLabDAO/booster-pool-contracts/contracts/libraries/LiquidityAmounts.sol


pragma solidity >=0.5.0;



/// @title Liquidity amount functions
/// @notice Provides functions for computing liquidity amounts from token amounts and prices
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,
        uint160 sqrtRatioBX96,
        uint256 amount0
    ) internal pure returns (uint128 liquidity) {
        if (sqrtRatioAX96 > sqrtRatioBX96) (sqrtRatioAX96, sqrtRatioBX96) = (sqrtRatioBX96, sqrtRatioAX96);
        uint256 intermediate = FullMath.mulDiv(sqrtRatioAX96, sqrtRatioBX96, FixedPoint96.Q96);
        unchecked {
            return toUint128(FullMath.mulDiv(amount0, intermediate, sqrtRatioBX96 - sqrtRatioAX96));
        }
    }

    /// @notice Computes the amount of liquidity received for a given amount of token1 and price range
    /// @dev Calculates amount1 / (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 amount1 The amount1 being sent in
    /// @return liquidity The amount of returned liquidity
    function getLiquidityForAmount1(
        uint160 sqrtRatioAX96,
        uint160 sqrtRatioBX96,
        uint256 amount1
    ) internal pure returns (uint128 liquidity) {
        if (sqrtRatioAX96 > sqrtRatioBX96) (sqrtRatioAX96, sqrtRatioBX96) = (sqrtRatioBX96, sqrtRatioAX96);
        unchecked {
            return toUint128(FullMath.mulDiv(amount1, FixedPoint96.Q96, sqrtRatioBX96 - sqrtRatioAX96));
        }
    }

    /// @notice Computes the maximum amount of liquidity received for a given amount of token0, token1, the current
    /// pool prices and the prices at the tick boundaries
    /// @param sqrtRatioX96 A sqrt price representing the current pool prices
    /// @param sqrtRatioAX96 A sqrt price representing the first tick boundary
    /// @param sqrtRatioBX96 A sqrt price representing the second tick boundary
    /// @param amount0 The amount of token0 being sent in
    /// @param amount1 The amount of token1 being sent in
    /// @return liquidity The maximum amount of liquidity received
    function getLiquidityForAmounts(
        uint160 sqrtRatioX96,
        uint160 sqrtRatioAX96,
        uint160 sqrtRatioBX96,
        uint256 amount0,
        uint256 amount1
    ) internal pure returns (uint128 liquidity) {
        if (sqrtRatioAX96 > sqrtRatioBX96) (sqrtRatioAX96, sqrtRatioBX96) = (sqrtRatioBX96, sqrtRatioAX96);

        if (sqrtRatioX96 <= sqrtRatioAX96) {
            liquidity = getLiquidityForAmount0(sqrtRatioAX96, sqrtRatioBX96, amount0);
        } else if (sqrtRatioX96 < sqrtRatioBX96) {
            uint128 liquidity0 = getLiquidityForAmount0(sqrtRatioX96, sqrtRatioBX96, amount0);
            uint128 liquidity1 = getLiquidityForAmount1(sqrtRatioAX96, sqrtRatioX96, amount1);

            liquidity = liquidity0 < liquidity1 ? liquidity0 : liquidity1;
        } else {
            liquidity = getLiquidityForAmount1(sqrtRatioAX96, sqrtRatioBX96, amount1);
        }
    }

    /// @notice Computes the amount of token0 for a given amount of liquidity and a price range
    /// @param sqrtRatioAX96 A sqrt price representing the first tick boundary
    /// @param sqrtRatioBX96 A sqrt price representing the second tick boundary
    /// @param liquidity The liquidity being valued
    /// @return amount0 The amount of token0
    function getAmount0ForLiquidity(
        uint160 sqrtRatioAX96,
        uint160 sqrtRatioBX96,
        uint128 liquidity
    ) internal pure returns (uint256 amount0) {
        unchecked {
            if (sqrtRatioAX96 > sqrtRatioBX96) (sqrtRatioAX96, sqrtRatioBX96) = (sqrtRatioBX96, sqrtRatioAX96);

            return
                FullMath.mulDiv(
                    uint256(liquidity) << FixedPoint96.RESOLUTION,
                    sqrtRatioBX96 - sqrtRatioAX96,
                    sqrtRatioBX96
                ) / sqrtRatioAX96;
        }
    }

    /// @notice Computes the amount of token1 for a given amount of liquidity and a price range
    /// @param sqrtRatioAX96 A sqrt price representing the first tick boundary
    /// @param sqrtRatioBX96 A sqrt price representing the second tick boundary
    /// @param liquidity The liquidity being valued
    /// @return amount1 The amount of token1
    function getAmount1ForLiquidity(
        uint160 sqrtRatioAX96,
        uint160 sqrtRatioBX96,
        uint128 liquidity
    ) internal pure returns (uint256 amount1) {
        if (sqrtRatioAX96 > sqrtRatioBX96) (sqrtRatioAX96, sqrtRatioBX96) = (sqrtRatioBX96, sqrtRatioAX96);

        unchecked {
            return FullMath.mulDiv(liquidity, sqrtRatioBX96 - sqrtRatioAX96, FixedPoint96.Q96);
        }
    }

    /// @notice Computes the token0 and token1 value for a given amount of liquidity, the current
    /// pool prices and the prices at the tick boundaries
    /// @param sqrtRatioX96 A sqrt price representing the current pool prices
    /// @param sqrtRatioAX96 A sqrt price representing the first tick boundary
    /// @param sqrtRatioBX96 A sqrt price representing the second tick boundary
    /// @param liquidity The liquidity being valued
    /// @return amount0 The amount of token0
    /// @return amount1 The amount of token1
    function getAmountsForLiquidity(
        uint160 sqrtRatioX96,
        uint160 sqrtRatioAX96,
        uint160 sqrtRatioBX96,
        uint128 liquidity
    ) internal pure returns (uint256 amount0, uint256 amount1) {
        if (sqrtRatioAX96 > sqrtRatioBX96) (sqrtRatioAX96, sqrtRatioBX96) = (sqrtRatioBX96, sqrtRatioAX96);

        if (sqrtRatioX96 <= sqrtRatioAX96) {
            amount0 = getAmount0ForLiquidity(sqrtRatioAX96, sqrtRatioBX96, liquidity);
        } else if (sqrtRatioX96 < sqrtRatioBX96) {
            amount0 = getAmount0ForLiquidity(sqrtRatioX96, sqrtRatioBX96, liquidity);
            amount1 = getAmount1ForLiquidity(sqrtRatioAX96, sqrtRatioX96, liquidity);
        } else {
            amount1 = getAmount1ForLiquidity(sqrtRatioAX96, sqrtRatioBX96, liquidity);
        }
    }
}
// File: github.com/Uniswap/v3-core/blob/0.8/contracts/libraries/TickMath.sol


pragma solidity ^0.8.0;

/// @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
library TickMath {
    error T();
    error R();

    /// @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 sqrtPriceX96 A Fixed point Q64.96 number representing the sqrt of the ratio of the two assets (token1/token0)
    /// at the given tick
    function getSqrtRatioAtTick(int24 tick) internal pure returns (uint160 sqrtPriceX96) {
        unchecked {
            uint256 absTick = tick < 0 ? uint256(-int256(tick)) : uint256(int256(tick));
            if (absTick > uint256(int256(MAX_TICK))) revert T();

            uint256 ratio = absTick & 0x1 != 0
                ? 0xfffcb933bd6fad37aa2d162d1a594001
                : 0x100000000000000000000000000000000;
            if (absTick & 0x2 != 0) ratio = (ratio * 0xfff97272373d413259a46990580e213a) >> 128;
            if (absTick & 0x4 != 0) ratio = (ratio * 0xfff2e50f5f656932ef12357cf3c7fdcc) >> 128;
            if (absTick & 0x8 != 0) ratio = (ratio * 0xffe5caca7e10e4e61c3624eaa0941cd0) >> 128;
            if (absTick & 0x10 != 0) ratio = (ratio * 0xffcb9843d60f6159c9db58835c926644) >> 128;
            if (absTick & 0x20 != 0) ratio = (ratio * 0xff973b41fa98c081472e6896dfb254c0) >> 128;
            if (absTick & 0x40 != 0) ratio = (ratio * 0xff2ea16466c96a3843ec78b326b52861) >> 128;
            if (absTick & 0x80 != 0) ratio = (ratio * 0xfe5dee046a99a2a811c461f1969c3053) >> 128;
            if (absTick & 0x100 != 0) ratio = (ratio * 0xfcbe86c7900a88aedcffc83b479aa3a4) >> 128;
            if (absTick & 0x200 != 0) ratio = (ratio * 0xf987a7253ac413176f2b074cf7815e54) >> 128;
            if (absTick & 0x400 != 0) ratio = (ratio * 0xf3392b0822b70005940c7a398e4b70f3) >> 128;
            if (absTick & 0x800 != 0) ratio = (ratio * 0xe7159475a2c29b7443b29c7fa6e889d9) >> 128;
            if (absTick & 0x1000 != 0) ratio = (ratio * 0xd097f3bdfd2022b8845ad8f792aa5825) >> 128;
            if (absTick & 0x2000 != 0) ratio = (ratio * 0xa9f746462d870fdf8a65dc1f90e061e5) >> 128;
            if (absTick & 0x4000 != 0) ratio = (ratio * 0x70d869a156d2a1b890bb3df62baf32f7) >> 128;
            if (absTick & 0x8000 != 0) ratio = (ratio * 0x31be135f97d08fd981231505542fcfa6) >> 128;
            if (absTick & 0x10000 != 0) ratio = (ratio * 0x9aa508b5b7a84e1c677de54f3e99bc9) >> 128;
            if (absTick & 0x20000 != 0) ratio = (ratio * 0x5d6af8dedb81196699c329225ee604) >> 128;
            if (absTick & 0x40000 != 0) ratio = (ratio * 0x2216e584f5fa1ea926041bedfe98) >> 128;
            if (absTick & 0x80000 != 0) ratio = (ratio * 0x48a170391f7dc42444e8fa2) >> 128;

            if (tick > 0) ratio = type(uint256).max / ratio;

            // this divides by 1<<32 rounding up to go from a Q128.128 to a Q128.96.
            // we then downcast because we know the result always fits within 160 bits due to our tick input constraint
            // we round up in the division so getTickAtSqrtRatio of the output price is always consistent
            sqrtPriceX96 = uint160((ratio >> 32) + (ratio % (1 << 32) == 0 ? 0 : 1));
        }
    }

    /// @notice Calculates the greatest tick value such that getRatioAtTick(tick) <= ratio
    /// @dev Throws in case sqrtPriceX96 < MIN_SQRT_RATIO, as MIN_SQRT_RATIO is the lowest value getRatioAtTick may
    /// ever return.
    /// @param sqrtPriceX96 The sqrt ratio for which to compute the tick as a Q64.96
    /// @return tick The greatest tick for which the ratio is less than or equal to the input ratio
    function getTickAtSqrtRatio(uint160 sqrtPriceX96) internal pure returns (int24 tick) {
        unchecked {
            // second inequality must be < because the price can never reach the price at the max tick
            if (!(sqrtPriceX96 >= MIN_SQRT_RATIO && sqrtPriceX96 < MAX_SQRT_RATIO)) revert R();
            uint256 ratio = uint256(sqrtPriceX96) << 32;

            uint256 r = ratio;
            uint256 msb = 0;

            assembly {
                let f := shl(7, gt(r, 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF))
                msb := or(msb, f)
                r := shr(f, r)
            }
            assembly {
                let f := shl(6, gt(r, 0xFFFFFFFFFFFFFFFF))
                msb := or(msb, f)
                r := shr(f, r)
            }
            assembly {
                let f := shl(5, gt(r, 0xFFFFFFFF))
                msb := or(msb, f)
                r := shr(f, r)
            }
            assembly {
                let f := shl(4, gt(r, 0xFFFF))
                msb := or(msb, f)
                r := shr(f, r)
            }
            assembly {
                let f := shl(3, gt(r, 0xFF))
                msb := or(msb, f)
                r := shr(f, r)
            }
            assembly {
                let f := shl(2, gt(r, 0xF))
                msb := or(msb, f)
                r := shr(f, r)
            }
            assembly {
                let f := shl(1, gt(r, 0x3))
                msb := or(msb, f)
                r := shr(f, r)
            }
            assembly {
                let f := gt(r, 0x1)
                msb := or(msb, f)
            }

            if (msb >= 128) r = ratio >> (msb - 127);
            else r = ratio << (127 - msb);

            int256 log_2 = (int256(msb) - 128) << 64;

            assembly {
                r := shr(127, mul(r, r))
                let f := shr(128, r)
                log_2 := or(log_2, shl(63, f))
                r := shr(f, r)
            }
            assembly {
                r := shr(127, mul(r, r))
                let f := shr(128, r)
                log_2 := or(log_2, shl(62, f))
                r := shr(f, r)
            }
            assembly {
                r := shr(127, mul(r, r))
                let f := shr(128, r)
                log_2 := or(log_2, shl(61, f))
                r := shr(f, r)
            }
            assembly {
                r := shr(127, mul(r, r))
                let f := shr(128, r)
                log_2 := or(log_2, shl(60, f))
                r := shr(f, r)
            }
            assembly {
                r := shr(127, mul(r, r))
                let f := shr(128, r)
                log_2 := or(log_2, shl(59, f))
                r := shr(f, r)
            }
            assembly {
                r := shr(127, mul(r, r))
                let f := shr(128, r)
                log_2 := or(log_2, shl(58, f))
                r := shr(f, r)
            }
            assembly {
                r := shr(127, mul(r, r))
                let f := shr(128, r)
                log_2 := or(log_2, shl(57, f))
                r := shr(f, r)
            }
            assembly {
                r := shr(127, mul(r, r))
                let f := shr(128, r)
                log_2 := or(log_2, shl(56, f))
                r := shr(f, r)
            }
            assembly {
                r := shr(127, mul(r, r))
                let f := shr(128, r)
                log_2 := or(log_2, shl(55, f))
                r := shr(f, r)
            }
            assembly {
                r := shr(127, mul(r, r))
                let f := shr(128, r)
                log_2 := or(log_2, shl(54, f))
                r := shr(f, r)
            }
            assembly {
                r := shr(127, mul(r, r))
                let f := shr(128, r)
                log_2 := or(log_2, shl(53, f))
                r := shr(f, r)
            }
            assembly {
                r := shr(127, mul(r, r))
                let f := shr(128, r)
                log_2 := or(log_2, shl(52, f))
                r := shr(f, r)
            }
            assembly {
                r := shr(127, mul(r, r))
                let f := shr(128, r)
                log_2 := or(log_2, shl(51, f))
                r := shr(f, r)
            }
            assembly {
                r := shr(127, mul(r, r))
                let f := shr(128, r)
                log_2 := or(log_2, shl(50, f))
            }

            int256 log_sqrt10001 = log_2 * 255738958999603826347141; // 128.128 number

            int24 tickLow = int24((log_sqrt10001 - 3402992956809132418596140100660247210) >> 128);
            int24 tickHi = int24((log_sqrt10001 + 291339464771989622907027621153398088495) >> 128);

            tick = tickLow == tickHi ? tickLow : getSqrtRatioAtTick(tickHi) <= sqrtPriceX96 ? tickHi : tickLow;
        }
    }
}

// File: @uniswap/v3-periphery/contracts/libraries/PositionKey.sol


pragma solidity >=0.5.0;

library PositionKey {
    /// @dev Returns the key of the position in the core library
    function compute(
        address owner,
        int24 tickLower,
        int24 tickUpper
    ) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked(owner, tickLower, tickUpper));
    }
}

// File: @uniswap/v3-core/contracts/interfaces/pool/IUniswapV3PoolEvents.sol


pragma solidity >=0.5.0;

/// @title Events emitted by a pool
/// @notice Contains all events emitted by the pool
interface IUniswapV3PoolEvents {
    /// @notice Emitted exactly once by a pool when #initialize is first called on the pool
    /// @dev Mint/Burn/Swap cannot be emitted by the pool before Initialize
    /// @param sqrtPriceX96 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 sqrtPriceX96, 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 tickLower The lower tick of the position
    /// @param tickUpper The upper tick of the position
    /// @param amount 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 tickLower,
        int24 indexed tickUpper,
        uint128 amount,
        uint256 amount0,
        uint256 amount1
    );

    /// @notice Emitted when fees are collected by the owner of a position
    /// @dev Collect events may be emitted with zero amount0 and amount1 when the caller chooses not to collect fees
    /// @param owner The owner of the position for which fees are collected
    /// @param tickLower The lower tick of the position
    /// @param tickUpper The upper tick of the position
    /// @param amount0 The amount of token0 fees collected
    /// @param amount1 The amount of token1 fees collected
    event Collect(
        address indexed owner,
        address recipient,
        int24 indexed tickLower,
        int24 indexed tickUpper,
        uint128 amount0,
        uint128 amount1
    );

    /// @notice Emitted when a position's liquidity is removed
    /// @dev Does not withdraw any fees earned by the liquidity position, which must be withdrawn via #collect
    /// @param owner The owner of the position for which liquidity is removed
    /// @param tickLower The lower tick of the position
    /// @param tickUpper The upper tick of the position
    /// @param amount The amount of liquidity to remove
    /// @param amount0 The amount of token0 withdrawn
    /// @param amount1 The amount of token1 withdrawn
    event Burn(
        address indexed owner,
        int24 indexed tickLower,
        int24 indexed tickUpper,
        uint128 amount,
        uint256 amount0,
        uint256 amount1
    );

    /// @notice Emitted by the pool for any swaps between token0 and token1
    /// @param sender The address that initiated the swap call, and that received the callback
    /// @param recipient The address that received the output of the swap
    /// @param amount0 The delta of the token0 balance of the pool
    /// @param amount1 The delta of the token1 balance of the pool
    /// @param sqrtPriceX96 The sqrt(price) of the pool after the swap, as a Q64.96
    /// @param liquidity The liquidity of the pool after the swap
    /// @param tick The log base 1.0001 of price of the pool after the swap
    event Swap(
        address indexed sender,
        address indexed recipient,
        int256 amount0,
        int256 amount1,
        uint160 sqrtPriceX96,
        uint128 liquidity,
        int24 tick
    );

    /// @notice Emitted by the pool for any flashes of token0/token1
    /// @param sender The address that initiated the swap call, and that received the callback
    /// @param recipient The address that received the tokens from flash
    /// @param amount0 The amount of token0 that was flashed
    /// @param amount1 The amount of token1 that was flashed
    /// @param paid0 The amount of token0 paid for the flash, which can exceed the amount0 plus the fee
    /// @param paid1 The amount of token1 paid for the flash, which can exceed the amount1 plus the fee
    event Flash(
        address indexed sender,
        address indexed recipient,
        uint256 amount0,
        uint256 amount1,
        uint256 paid0,
        uint256 paid1
    );

    /// @notice Emitted by the pool for increases to the number of observations that can be stored
    /// @dev observationCardinalityNext is not the observation cardinality until an observation is written at the index
    /// just before a mint/swap/burn.
    /// @param observationCardinalityNextOld The previous value of the next observation cardinality
    /// @param observationCardinalityNextNew The updated value of the next observation cardinality
    event IncreaseObservationCardinalityNext(
        uint16 observationCardinalityNextOld,
        uint16 observationCardinalityNextNew
    );

    /// @notice Emitted when the protocol fee is changed by the pool
    /// @param feeProtocol0Old The previous value of the token0 protocol fee
    /// @param feeProtocol1Old The previous value of the token1 protocol fee
    /// @param feeProtocol0New The updated value of the token0 protocol fee
    /// @param feeProtocol1New The updated value of the token1 protocol fee
    event SetFeeProtocol(uint8 feeProtocol0Old, uint8 feeProtocol1Old, uint8 feeProtocol0New, uint8 feeProtocol1New);

    /// @notice Emitted when the collected protocol fees are withdrawn by the factory owner
    /// @param sender The address that collects the protocol fees
    /// @param recipient The address that receives the collected protocol fees
    /// @param amount0 The amount of token0 protocol fees that is withdrawn
    /// @param amount0 The amount of token1 protocol fees that is withdrawn
    event CollectProtocol(address indexed sender, address indexed recipient, uint128 amount0, uint128 amount1);
}

// File: @uniswap/v3-core/contracts/interfaces/pool/IUniswapV3PoolOwnerActions.sol


pragma solidity >=0.5.0;

/// @title Permissioned pool actions
/// @notice Contains pool methods that may only be called by the factory owner
interface IUniswapV3PoolOwnerActions {
    /// @notice Set the denominator of the protocol's % share of the fees
    /// @param feeProtocol0 new protocol fee for token0 of the pool
    /// @param feeProtocol1 new protocol fee for token1 of the pool
    function setFeeProtocol(uint8 feeProtocol0, uint8 feeProtocol1) external;

    /// @notice Collect the protocol fee accrued to the pool
    /// @param recipient The address to which collected protocol fees should be sent
    /// @param amount0Requested The maximum amount of token0 to send, can be 0 to collect fees in only token1
    /// @param amount1Requested The maximum amount of token1 to send, can be 0 to collect fees in only token0
    /// @return amount0 The protocol fee collected in token0
    /// @return amount1 The protocol fee collected in token1
    function collectProtocol(
        address recipient,
        uint128 amount0Requested,
        uint128 amount1Requested
    ) external returns (uint128 amount0, uint128 amount1);
}

// File: @uniswap/v3-core/contracts/interfaces/pool/IUniswapV3PoolActions.sol


pragma solidity >=0.5.0;

/// @title Permissionless pool actions
/// @notice Contains pool methods that can be called by anyone
interface IUniswapV3PoolActions {
    /// @notice Sets the initial price for the pool
    /// @dev Price is represented as a sqrt(amountToken1/amountToken0) Q64.96 value
    /// @param sqrtPriceX96 the initial sqrt price of the pool as a Q64.96
    function initialize(uint160 sqrtPriceX96) external;

    /// @notice Adds liquidity for the given recipient/tickLower/tickUpper position
    /// @dev The caller of this method receives a callback in the form of IUniswapV3MintCallback#uniswapV3MintCallback
    /// in which they must pay any token0 or token1 owed for the liquidity. The amount of token0/token1 due depends
    /// on tickLower, tickUpper, the amount of liquidity, and the current price.
    /// @param recipient The address for which the liquidity will be created
    /// @param tickLower The lower tick of the position in which to add liquidity
    /// @param tickUpper The upper tick of the position in which to add liquidity
    /// @param amount The 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
    function mint(
        address recipient,
        int24 tickLower,
        int24 tickUpper,
        uint128 amount,
        bytes calldata data
    ) external returns (uint256 amount0, uint256 amount1);

    /// @notice Collects tokens owed to a position
    /// @dev Does not recompute fees earned, which must be done either via mint or burn of any amount of liquidity.
    /// Collect must be called by the position owner. To withdraw only token0 or only token1, amount0Requested or
    /// amount1Requested may be set to zero. To withdraw all tokens owed, caller may pass any value greater than the
    /// actual tokens owed, e.g. type(uint128).max. Tokens owed may be from accumulated swap fees or burned liquidity.
    /// @param recipient The address which should receive the fees collected
    /// @param tickLower The lower tick of the position for which to collect fees
    /// @param tickUpper The upper tick of the position for which to collect fees
    /// @param amount0Requested How much token0 should be withdrawn from the fees owed
    /// @param amount1Requested How much token1 should be withdrawn from the fees owed
    /// @return amount0 The amount of fees collected in token0
    /// @return amount1 The amount of fees collected in token1
    function collect(
        address recipient,
        int24 tickLower,
        int24 tickUpper,
        uint128 amount0Requested,
        uint128 amount1Requested
    ) external returns (uint128 amount0, uint128 amount1);

    /// @notice Burn liquidity from the sender and account tokens owed for the liquidity to the position
    /// @dev Can be used to trigger a recalculation of fees owed to a position by calling with an amount of 0
    /// @dev Fees must be collected separately via a call to #collect
    /// @param tickLower The lower tick of the position for which to burn liquidity
    /// @param tickUpper The upper tick of the position for which to burn liquidity
    /// @param amount How much liquidity to burn
    /// @return amount0 The amount of token0 sent to the recipient
    /// @return amount1 The amount of token1 sent to the recipient
    function burn(
        int24 tickLower,
        int24 tickUpper,
        uint128 amount
    ) external returns (uint256 amount0, uint256 amount1);

    /// @notice Swap token0 for token1, or token1 for token0
    /// @dev The caller of this method receives a callback in the form of IUniswapV3SwapCallback#uniswapV3SwapCallback
    /// @param recipient The address to receive the output of the swap
    /// @param zeroForOne The direction of the swap, true for token0 to token1, false for token1 to token0
    /// @param amountSpecified The amount of the swap, which implicitly configures the swap as exact input (positive), or exact output (negative)
    /// @param sqrtPriceLimitX96 The Q64.96 sqrt price limit. If zero for one, the price cannot be less than this
    /// value after the swap. If one for zero, the price cannot be greater than this value after the swap
    /// @param data Any data to be passed through to the callback
    /// @return amount0 The delta of the balance of token0 of the pool, exact when negative, minimum when positive
    /// @return amount1 The delta of the balance of token1 of the pool, exact when negative, minimum when positive
    function swap(
        address recipient,
        bool zeroForOne,
        int256 amountSpecified,
        uint160 sqrtPriceLimitX96,
        bytes calldata data
    ) external returns (int256 amount0, int256 amount1);

    /// @notice Receive token0 and/or token1 and pay it back, plus a fee, in the callback
    /// @dev The caller of this method receives a callback in the form of IUniswapV3FlashCallback#uniswapV3FlashCallback
    /// @dev Can be used to donate underlying tokens pro-rata to currently in-range liquidity providers by calling
    /// with 0 amount{0,1} and sending the donation amount(s) from the callback
    /// @param recipient The address which will receive the token0 and token1 amounts
    /// @param amount0 The amount of token0 to send
    /// @param amount1 The amount of token1 to send
    /// @param data Any data to be passed through to the callback
    function flash(
        address recipient,
        uint256 amount0,
        uint256 amount1,
        bytes calldata data
    ) external;

    /// @notice Increase the maximum number of price and liquidity observations that this pool will store
    /// @dev This method is no-op if the pool already has an observationCardinalityNext greater than or equal to
    /// the input observationCardinalityNext.
    /// @param observationCardinalityNext The desired minimum number of observations for the pool to store
    function increaseObservationCardinalityNext(uint16 observationCardinalityNext) external;
}

// File: @uniswap/v3-core/contracts/interfaces/pool/IUniswapV3PoolDerivedState.sol


pragma solidity >=0.5.0;

/// @title Pool state that is not stored
/// @notice Contains view functions to provide information about the pool that is computed rather than stored on the
/// blockchain. The functions here may have variable gas costs.
interface IUniswapV3PoolDerivedState {
    /// @notice Returns the cumulative tick and liquidity as of each timestamp `secondsAgo` from the current block timestamp
    /// @dev To get a time weighted average tick or liquidity-in-range, you must call this with two values, one representing
    /// the beginning of the period and another for the end of the period. E.g., to get the last hour time-weighted average tick,
    /// you must call it with secondsAgos = [3600, 0].
    /// @dev The time weighted average tick represents the geometric time weighted average price of the pool, in
    /// log base sqrt(1.0001) of token1 / token0. The TickMath library can be used to go from a tick value to a ratio.
    /// @param secondsAgos From how long ago each cumulative tick and liquidity value should be returned
    /// @return tickCumulatives Cumulative tick values as of each `secondsAgos` from the current block timestamp
    /// @return secondsPerLiquidityCumulativeX128s Cumulative seconds per liquidity-in-range value as of each `secondsAgos` from the current block
    /// timestamp
    function observe(uint32[] calldata secondsAgos)
        external
        view
        returns (int56[] memory tickCumulatives, uint160[] memory secondsPerLiquidityCumulativeX128s);

    /// @notice Returns a snapshot of the tick cumulative, seconds per liquidity and seconds inside a tick range
    /// @dev Snapshots must only be compared to other snapshots, taken over a period for which a position existed.
    /// I.e., snapshots cannot be compared if a position is not held for the entire period between when the first
    /// snapshot is taken and the second snapshot is taken.
    /// @param tickLower The lower tick of the range
    /// @param tickUpper The upper tick of the range
    /// @return tickCumulativeInside The snapshot of the tick accumulator for the range
    /// @return secondsPerLiquidityInsideX128 The snapshot of seconds per liquidity for the range
    /// @return secondsInside The snapshot of seconds per liquidity for the range
    function snapshotCumulativesInside(int24 tickLower, int24 tickUpper)
        external
        view
        returns (
            int56 tickCumulativeInside,
            uint160 secondsPerLiquidityInsideX128,
            uint32 secondsInside
        );
}

// File: @uniswap/v3-core/contracts/interfaces/pool/IUniswapV3PoolState.sol


pragma solidity >=0.5.0;

/// @title Pool state that can change
/// @notice These methods compose the pool's state, and can change with any frequency including multiple times
/// per transaction
interface IUniswapV3PoolState {
    /// @notice The 0th storage slot in the pool stores many values, and is exposed as a single method to save gas
    /// when accessed externally.
    /// @return sqrtPriceX96 The current price of the pool as a sqrt(token1/token0) Q64.96 value
    /// tick The current tick of the pool, i.e. according to the last tick transition that was run.
    /// This value may not always be equal to SqrtTickMath.getTickAtSqrtRatio(sqrtPriceX96) if the price is on a tick
    /// boundary.
    /// observationIndex The index of the last oracle observation that was written,
    /// observationCardinality The current maximum number of observations stored in the pool,
    /// observationCardinalityNext The next maximum number of observations, to be updated when the observation.
    /// feeProtocol The protocol fee for both tokens of the pool.
    /// Encoded as two 4 bit values, where the protocol fee of token1 is shifted 4 bits and the protocol fee of token0
    /// is the lower 4 bits. Used as the denominator of a fraction of the swap fee, e.g. 4 means 1/4th of the swap fee.
    /// unlocked Whether the pool is currently locked to reentrancy
    function slot0()
        external
        view
        returns (
            uint160 sqrtPriceX96,
            int24 tick,
            uint16 observationIndex,
            uint16 observationCardinality,
            uint16 observationCardinalityNext,
            uint8 feeProtocol,
            bool unlocked
        );

    /// @notice The fee growth as a Q128.128 fees of token0 collected per unit of liquidity for the entire life of the pool
    /// @dev This value can overflow the uint256
    function feeGrowthGlobal0X128() external view returns (uint256);

    /// @notice The fee growth as a Q128.128 fees of token1 collected per unit of liquidity for the entire life of the pool
    /// @dev This value can overflow the uint256
    function feeGrowthGlobal1X128() external view returns (uint256);

    /// @notice The amounts of token0 and token1 that are owed to the protocol
    /// @dev Protocol fees will never exceed uint128 max in either token
    function protocolFees() external view returns (uint128 token0, uint128 token1);

    /// @notice The currently in range liquidity available to the pool
    /// @dev This value has no relationship to the total liquidity across all ticks
    function liquidity() external view returns (uint128);

    /// @notice Look up information about a specific tick in the pool
    /// @param tick The tick to look up
    /// @return liquidityGross the total amount of position liquidity that uses the pool either as tick lower or
    /// tick upper,
    /// liquidityNet how much liquidity changes when the pool price crosses the tick,
    /// feeGrowthOutside0X128 the fee growth on the other side of the tick from the current tick in token0,
    /// feeGrowthOutside1X128 the fee growth on the other side of the tick from the current tick in token1,
    /// tickCumulativeOutside the cumulative tick value on the other side of the tick from the current tick
    /// secondsPerLiquidityOutsideX128 the seconds spent per liquidity on the other side of the tick from the current tick,
    /// secondsOutside the seconds spent on the other side of the tick from the current tick,
    /// initialized Set to true if the tick is initialized, i.e. liquidityGross is greater than 0, otherwise equal to false.
    /// Outside values can only be used if the tick is initialized, i.e. if liquidityGross is greater than 0.
    /// In addition, these values are only relative and must be used only in comparison to previous snapshots for
    /// a specific position.
    function ticks(int24 tick)
        external
        view
        returns (
            uint128 liquidityGross,
            int128 liquidityNet,
            uint256 feeGrowthOutside0X128,
            uint256 feeGrowthOutside1X128,
            int56 tickCumulativeOutside,
            uint160 secondsPerLiquidityOutsideX128,
            uint32 secondsOutside,
            bool initialized
        );

    /// @notice Returns 256 packed tick initialized boolean values. See TickBitmap for more information
    function tickBitmap(int16 wordPosition) external view returns (uint256);

    /// @notice Returns the information about a position by the position's key
    /// @param key The position's key is a hash of a preimage composed by the owner, tickLower and tickUpper
    /// @return _liquidity The amount of liquidity in the position,
    /// Returns feeGrowthInside0LastX128 fee growth of token0 inside the tick range as of the last mint/burn/poke,
    /// Returns feeGrowthInside1LastX128 fee growth of token1 inside the tick range as of the last mint/burn/poke,
    /// Returns tokensOwed0 the computed amount of token0 owed to the position as of the last mint/burn/poke,
    /// Returns tokensOwed1 the computed amount of token1 owed to the position as of the last mint/burn/poke
    function positions(bytes32 key)
        external
        view
        returns (
            uint128 _liquidity,
            uint256 feeGrowthInside0LastX128,
            uint256 feeGrowthInside1LastX128,
            uint128 tokensOwed0,
            uint128 tokensOwed1
        );

    /// @notice Returns data about a specific observation index
    /// @param index The element of the observations array to fetch
    /// @dev You most likely want to use #observe() instead of this method to get an observation as of some amount of time
    /// ago, rather than at a specific index in the array.
    /// @return blockTimestamp The timestamp of the observation,
    /// Returns tickCumulative the tick multiplied by seconds elapsed for the life of the pool as of the observation timestamp,
    /// Returns secondsPerLiquidityCumulativeX128 the seconds per in range liquidity for the life of the pool as of the observation timestamp,
    /// Returns initialized whether the observation has been initialized and the values are safe to use
    function observations(uint256 index)
        external
        view
        returns (
            uint32 blockTimestamp,
            int56 tickCumulative,
            uint160 secondsPerLiquidityCumulativeX128,
            bool initialized
        );
}

// File: @uniswap/v3-core/contracts/interfaces/pool/IUniswapV3PoolImmutables.sol


pragma solidity >=0.5.0;

/// @title Pool state that never changes
/// @notice These parameters are fixed for a pool forever, i.e., the methods will always return the same values
interface IUniswapV3PoolImmutables {
    /// @notice The contract that deployed the pool, which must adhere to the IUniswapV3Factory 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 pool's fee in hundredths of a bip, i.e. 1e-6
    /// @return The fee
    function fee() external view returns (uint24);

    /// @notice The pool tick spacing
    /// @dev Ticks can only be used at multiples of this value, minimum of 1 and always positive
    /// e.g.: a tickSpacing of 3 means ticks can be initialized every 3rd tick, i.e., ..., -6, -3, 0, 3, 6, ...
    /// This value is an int24 to avoid casting even though it is always positive.
    /// @return The tick spacing
    function tickSpacing() external view returns (int24);

    /// @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);
}

// File: @uniswap/v3-core/contracts/interfaces/IUniswapV3Pool.sol


pragma solidity >=0.5.0;







/// @title The interface for a Uniswap V3 Pool
/// @notice A Uniswap pool facilitates swapping and automated market making between any two assets that strictly conform
/// to the ERC20 specification
/// @dev The pool interface is broken up into many smaller pieces
interface IUniswapV3Pool is
    IUniswapV3PoolImmutables,
    IUniswapV3PoolState,
    IUniswapV3PoolDerivedState,
    IUniswapV3PoolActions,
    IUniswapV3PoolOwnerActions,
    IUniswapV3PoolEvents
{

}

// File: @uniswap/v3-core/contracts/interfaces/callback/IUniswapV3SwapCallback.sol


pragma solidity >=0.5.0;

/// @title Callback for IUniswapV3PoolActions#swap
/// @notice Any contract that calls IUniswapV3PoolActions#swap must implement this interface
interface IUniswapV3SwapCallback {
    /// @notice Called to `msg.sender` after executing a swap via IUniswapV3Pool#swap.
    /// @dev In the implementation you must pay the pool tokens owed for the swap.
    /// The caller of this method must be checked to be a UniswapV3Pool deployed by the canonical UniswapV3Factory.
    /// amount0Delta and amount1Delta can both be 0 if no tokens were swapped.
    /// @param amount0Delta The amount of token0 that was sent (negative) or must be received (positive) by the pool by
    /// the end of the swap. If positive, the callback must send that amount of token0 to the pool.
    /// @param amount1Delta The amount of token1 that was sent (negative) or must be received (positive) by the pool by
    /// the end of the swap. If positive, the callback must send that amount of token1 to the pool.
    /// @param data Any data passed through by the caller via the IUniswapV3PoolActions#swap call
    function uniswapV3SwapCallback(
        int256 amount0Delta,
        int256 amount1Delta,
        bytes calldata data
    ) external;
}

// File: @uniswap/v3-core/contracts/interfaces/callback/IUniswapV3MintCallback.sol


pragma solidity >=0.5.0;

/// @title Callback for IUniswapV3PoolActions#mint
/// @notice Any contract that calls IUniswapV3PoolActions#mint must implement this interface
interface IUniswapV3MintCallback {
    /// @notice Called to `msg.sender` after minting liquidity to a position from IUniswapV3Pool#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 UniswapV3Pool deployed by the canonical UniswapV3Factory.
    /// @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 IUniswapV3PoolActions#mint call
    function uniswapV3MintCallback(
        uint256 amount0Owed,
        uint256 amount1Owed,
        bytes calldata data
    ) external;
}

// File: @openzeppelin/contracts/utils/math/Math.sol


// OpenZeppelin Contracts (last updated v4.7.0) (utils/math/Math.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.
        // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have
        // `msb(a) <= a < 2*msb(a)`.
        // We also know that `k`, the position of the most significant bit, is such that `msb(a) = 2**k`.
        // This gives `2**k < a <= 2**(k+1)` → `2**(k/2) <= sqrt(a) < 2 ** (k/2+1)`.
        // Using an algorithm similar to the msb conmputation, we are able to compute `result = 2**(k/2)` which is a
        // good first aproximation of `sqrt(a)` with at least 1 correct bit.
        uint256 result = 1;
        uint256 x = a;
        if (x >> 128 > 0) {
            x >>= 128;
            result <<= 64;
        }
        if (x >> 64 > 0) {
            x >>= 64;
            result <<= 32;
        }
        if (x >> 32 > 0) {
            x >>= 32;
            result <<= 16;
        }
        if (x >> 16 > 0) {
            x >>= 16;
            result <<= 8;
        }
        if (x >> 8 > 0) {
            x >>= 8;
            result <<= 4;
        }
        if (x >> 4 > 0) {
            x >>= 4;
            result <<= 2;
        }
        if (x >> 2 > 0) {
            result <<= 1;
        }

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

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

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


// OpenZeppelin Contracts (last updated v4.7.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 0;
    }

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

        (bool success, ) = recipient.call{value: amount}("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

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

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

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

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

        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

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

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

        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

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

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

        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly
                /// @solidity memory-safe-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

// File: @openzeppelin/contracts/token/ERC20/extensions/draft-IERC20Permit.sol


// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/draft-IERC20Permit.sol)

pragma solidity ^0.8.0;

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

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

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

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


// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

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

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

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


// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

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

    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

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

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

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

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

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

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


// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;




/**
 * @title SafeERC20
 * @dev Wrappers around ERC20 operations that throw on failure (when the token
 * contract returns false). Tokens that return no value (and instead revert or
 * throw on failure) are also supported, non-reverting calls are assumed to be
 * successful.
 * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeERC20 {
    using Address for address;

    function safeTransfer(
        IERC20 token,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    function safeTransferFrom(
        IERC20 token,
        address from,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
    }

    /**
     * @dev Deprecated. This function has issues similar to the ones found in
     * {IERC20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    function safeApprove(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        require(
            (value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

    function safeIncreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        uint256 newAllowance = token.allowance(address(this), spender) + value;
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

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

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

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function _callOptionalReturn(IERC20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that
        // the target address contains contract code and also asserts for success in the low-level call.

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

// File: @openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol


// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)

pragma solidity ^0.8.0;


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

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

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

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


// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC20/ERC20.sol)

pragma solidity ^0.8.0;




/**
 * @dev Implementation of the {IERC20} interface.
 *
 * This implementation is agnostic to the way tokens are created. This means
 * that a supply mechanism has to be added in a derived contract using {_mint}.
 * For a generic mechanism see {ERC20PresetMinterPauser}.
 *
 * TIP: For a detailed writeup see our guide
 * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * We have followed general OpenZeppelin Contracts guidelines: functions revert
 * instead returning `false` on failure. This behavior is nonetheless
 * conventional and does not conflict with the expectations of ERC20
 * applications.
 *
 * Additionally, an {Approval} event is emitted on calls to {transferFrom}.
 * This allows applications to reconstruct the allowance for all accounts just
 * by listening to said events. Other implementations of the EIP may not emit
 * these events, as it isn't required by the specification.
 *
 * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
 * functions have been added to mitigate the well-known issues around setting
 * allowances. See {IERC20-approve}.
 */
contract ERC20 is Context, IERC20, IERC20Metadata {
    mapping(address => uint256) private _balances;

    mapping(address => mapping(address => uint256)) private _allowances;

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

    /**
     * @dev Sets the values for {name} and {symbol}.
     *
     * The default value of {decimals} is 18. To select a different value for
     * {decimals} you should overload it.
     *
     * All two of these values are immutable: they can only be set once during
     * construction.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

    /**
     * @dev Returns the name of the token.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev Returns the number of decimals used to get its user representation.
     * For example, if `decimals` equals `2`, a balance of `505` tokens should
     * be displayed to a user as `5.05` (`505 / 10 ** 2`).
     *
     * Tokens usually opt for a value of 18, imitating the relationship between
     * Ether and Wei. This is the value {ERC20} uses, unless this function is
     * overridden;
     *
     * NOTE: This information is only used for _display_ purposes: it in
     * no way affects any of the arithmetic of the contract, including
     * {IERC20-balanceOf} and {IERC20-transfer}.
     */
    function decimals() public view virtual override returns (uint8) {
        return 18;
    }

    /**
     * @dev See {IERC20-totalSupply}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        return _totalSupply;
    }

    /**
     * @dev See {IERC20-balanceOf}.
     */
    function balanceOf(address account) public view virtual override returns (uint256) {
        return _balances[account];
    }

    /**
     * @dev See {IERC20-transfer}.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - the caller must have a balance of at least `amount`.
     */
    function transfer(address to, uint256 amount) public virtual override returns (bool) {
        address owner = _msgSender();
        _transfer(owner, to, amount);
        return true;
    }

    /**
     * @dev See {IERC20-allowance}.
     */
    function allowance(address owner, address spender) public view virtual override returns (uint256) {
        return _allowances[owner][spender];
    }

    /**
     * @dev See {IERC20-approve}.
     *
     * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on
     * `transferFrom`. This is semantically equivalent to an infinite approval.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        address owner = _msgSender();
        _approve(owner, spender, amount);
        return true;
    }

    /**
     * @dev See {IERC20-transferFrom}.
     *
     * Emits an {Approval} event indicating the updated allowance. This is not
     * required by the EIP. See the note at the beginning of {ERC20}.
     *
     * NOTE: Does not update the allowance if the current allowance
     * is the maximum `uint256`.
     *
     * Requirements:
     *
     * - `from` and `to` cannot be the zero address.
     * - `from` must have a balance of at least `amount`.
     * - the caller must have allowance for ``from``'s tokens of at least
     * `amount`.
     */
    function transferFrom(
        address from,
        address to,
        uint256 amount
    ) public virtual override returns (bool) {
        address spender = _msgSender();
        _spendAllowance(from, spender, amount);
        _transfer(from, to, amount);
        return true;
    }

    /**
     * @dev Atomically increases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
        address owner = _msgSender();
        _approve(owner, spender, allowance(owner, spender) + addedValue);
        return true;
    }

    /**
     * @dev Atomically decreases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `spender` must have allowance for the caller of at least
     * `subtractedValue`.
     */
    function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
        address owner = _msgSender();
        uint256 currentAllowance = allowance(owner, spender);
        require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
        unchecked {
            _approve(owner, spender, currentAllowance - subtractedValue);
        }

        return true;
    }

    /**
     * @dev Moves `amount` of tokens from `from` to `to`.
     *
     * This internal function is equivalent to {transfer}, and can be used to
     * e.g. implement automatic token fees, slashing mechanisms, etc.
     *
     * Emits a {Transfer} event.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `from` must have a balance of at least `amount`.
     */
    function _transfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {
        require(from != address(0), "ERC20: transfer from the zero address");
        require(to != address(0), "ERC20: transfer to the zero address");

        _beforeTokenTransfer(from, to, amount);

        uint256 fromBalance = _balances[from];
        require(fromBalance >= amount, "ERC20: transfer amount exceeds balance");
        unchecked {
            _balances[from] = fromBalance - amount;
        }
        _balances[to] += amount;

        emit Transfer(from, to, amount);

        _afterTokenTransfer(from, to, amount);
    }

    /** @dev Creates `amount` tokens and assigns them to `account`, increasing
     * the total supply.
     *
     * Emits a {Transfer} event with `from` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function _mint(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: mint to the zero address");

        _beforeTokenTransfer(address(0), account, amount);

        _totalSupply += amount;
        _balances[account] += amount;
        emit Transfer(address(0), account, amount);

        _afterTokenTransfer(address(0), account, amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`, reducing the
     * total supply.
     *
     * Emits a {Transfer} event with `to` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     * - `account` must have at least `amount` tokens.
     */
    function _burn(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: burn from the zero address");

        _beforeTokenTransfer(account, address(0), amount);

        uint256 accountBalance = _balances[account];
        require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
        unchecked {
            _balances[account] = accountBalance - amount;
        }
        _totalSupply -= amount;

        emit Transfer(account, address(0), amount);

        _afterTokenTransfer(account, address(0), amount);
    }

    /**
     * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.
     *
     * This internal function is equivalent to `approve`, and can be used to
     * e.g. set automatic allowances for certain subsystems, etc.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `owner` cannot be the zero address.
     * - `spender` cannot be the zero address.
     */
    function _approve(
        address owner,
        address spender,
        uint256 amount
    ) internal virtual {
        require(owner != address(0), "ERC20: approve from the zero address");
        require(spender != address(0), "ERC20: approve to the zero address");

        _allowances[owner][spender] = amount;
        emit Approval(owner, spender, amount);
    }

    /**
     * @dev Updates `owner` s allowance for `spender` based on spent `amount`.
     *
     * Does not update the allowance amount in case of infinite allowance.
     * Revert if not enough allowance is available.
     *
     * Might emit an {Approval} event.
     */
    function _spendAllowance(
        address owner,
        address spender,
        uint256 amount
    ) internal virtual {
        uint256 currentAllowance = allowance(owner, spender);
        if (currentAllowance != type(uint256).max) {
            require(currentAllowance >= amount, "ERC20: insufficient allowance");
            unchecked {
                _approve(owner, spender, currentAllowance - amount);
            }
        }
    }

    /**
     * @dev Hook that is called before any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * will be transferred to `to`.
     * - when `from` is zero, `amount` tokens will be minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens will be burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {}

    /**
     * @dev Hook that is called after any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * has been transferred to `to`.
     * - when `from` is zero, `amount` tokens have been minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens have been burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {}
}

// File: @openzeppelin/contracts/security/ReentrancyGuard.sol


// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;

        _;

        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }
}

// File: github/TrinityLabDAO/booster-pool-contracts/contracts/BoosterPool.sol


// Copyright (c) 2021 TrinityLabDAO

// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:

// The above copyright notice and this permission notice shall be included in all
// copies or substantial portions of the Software.

// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
pragma solidity 0.8.7;













/**
 * @title   Booster pool
 * @notice  A pool that provides liquidity on Uniswap V3.
 */
contract Booster is
    IUniswapV3MintCallback,
    IUniswapV3SwapCallback,
    ERC20,
    ReentrancyGuard
{
    using SafeERC20 for IERC20;

    event Deposit(
        address indexed sender,
        address indexed to,
        uint256 shares,
        uint256 amount0,
        uint256 amount1
    );

    event Withdraw(
        address indexed sender,
        address indexed to,
        uint256 shares,
        uint256 amount0,
        uint256 amount1
    );

    event CollectFees(
        uint256 feesToPool0,
        uint256 feesToPool1,
        uint256 feesToTreasuryA0,
        uint256 feesToTreasuryA1,
        uint256 feesToTreasuryB0,
        uint256 feesToTreasuryB1
    );

    event Total(
        uint128 liquidityTotal,
        uint256 liquidityDesired
    );

    event Snapshot(int24 tick, uint256 totalAmount0, uint256 totalAmount1, uint256 totalSupply);

    event AddressA(address oldAddress, address newAddress);
    event AddressB(address oldAddress, address newAddress);
    event ProtocolFeeA(uint256 oldProtocolFee, uint256 newProtocolFee);
    event ProtocolFeeB(uint256 oldProtocolFee, uint256 newProtocolFee);
    event PendingGovernance(address candidate);
    event Governance(address oldGovernance, address newGovernance);
    event Strategy(address oldStrategy, address newStrategy);
    event Deactivate();

    IUniswapV3Pool public immutable pool;
    IERC20 public immutable token0;
    IERC20 public immutable token1;
    int24 public immutable tickSpacing;

    address public governance;
    address public pendingGovernance;
    address public strategy;
    
    int24 public baseLower;
    int24 public baseUpper;

    address public addressA;
    address public addressB;
    uint256 public protocolFeeA;
    uint256 public protocolFeeB;

    uint256 public treasuryA0;
    uint256 public treasuryA1;

    uint256 public treasuryB0;
    uint256 public treasuryB1;

    bool public isDeactivated;

    /**
     * @param _pool Underlying Uniswap V3 pool
     * @param _addressB Address with access to Treasury A
     * @param _addressB Address with access to Treasury B
     * @param _protocolFeeA Protocol fee expressed as multiple of 1e-6, accumulates in the treasuryA
     * @param _protocolFeeB Protocol fee expressed as multiple of 1e-6, accumulates in the treasuryB
     * _protocolFeeA and _protocolFeeB in total must not exceed 1e-6
     * @param tokenName Token name
     * @param tokenSymbol Token symbol
     * @param _strategy Address that can rebalance 
     * @param _tickLower Position tick lower
     * @param _tickUpper Position tick upper
     */
    constructor(
        address _pool,
        address _addressA,
        address _addressB,
        uint256 _protocolFeeA,
        uint256 _protocolFeeB,
        string memory tokenName,
        string memory tokenSymbol,
        address _strategy,
        int24 _tickLower,
        int24 _tickUpper
    ) ERC20(tokenName, tokenSymbol) {
        pool = IUniswapV3Pool(_pool);
        token0 = IERC20(IUniswapV3Pool(_pool).token0());
        token1 = IERC20(IUniswapV3Pool(_pool).token1());
        int24 _tickSpacing = IUniswapV3Pool(_pool).tickSpacing();
        tickSpacing = _tickSpacing;

        governance = msg.sender;
        require(_strategy != address(0) && _strategy != address(this), "_strategy");
        strategy = _strategy;
        isDeactivated = false;
        require(_addressA != address(0) && _addressA != address(this), "_addressA");
        addressA = _addressA;
        require(_addressB != address(0) && _addressB != address(this), "_addressBto");
        addressB = _addressB;
        protocolFeeA = _protocolFeeA;
        protocolFeeB = _protocolFeeB; 
        require((_protocolFeeA + _protocolFeeB) < 1e6, "protocolFee");

         _checkRange(_tickLower, _tickUpper, _tickSpacing);
        baseLower = _tickLower;
        baseUpper = _tickUpper; 
    }

    /**
     * @notice Deposits tokens in proportion to the vault's current holdings.
     * @dev These tokens sit in the vault and are not used for liquidity on
     * Uniswap until the next rebalance. Also note it's not necessary to check
     * if user manipulated price to deposit cheaper, as the value of range
     * orders can only by manipulated higher.
     * @param amount0Desired Max amount of token0 to deposit
     * @param amount1Desired Max amount of token1 to deposit
     * @param amount0Min Revert if resulting `amount0` is less than this
     * @param amount1Min Revert if resulting `amount1` is less than this
     * @param to Recipient of shares
     * @return shares Number of shares minted
     * @return amount0 Amount of token0 deposited
     * @return amount1 Amount of token1 deposited
     */
    function deposit(
        uint256 amount0Desired,
        uint256 amount1Desired,
        uint256 amount0Min,
        uint256 amount1Min,
        address to
    )
        external
        nonReentrant
        returns (
            uint256 shares,
            uint256 amount0,
            uint256 amount1
        )
    {
        require(!isDeactivated, "deactivated"); 
        require(amount0Desired > 0 || amount1Desired > 0, "amount0Desired or amount1Desired");
        require(to != address(0) && to != address(this), "to");

        // Poke positions so vault's current holdings are up-to-date
        _poke(baseLower, baseUpper);

        // Calculate amounts proportional to vault's holdings
        (shares, amount0, amount1) = _calcSharesAndAmounts(amount0Desired, amount1Desired);
        require(shares > 0, "shares");
        require(amount0 >= amount0Min, "amount0Min");
        require(amount1 >= amount1Min, "amount1Min");

        // Pull in tokens from sender
        if (amount0 > 0) token0.safeTransferFrom(msg.sender, address(this), amount0);
        if (amount1 > 0) token1.safeTransferFrom(msg.sender, address(this), amount1);

        // Mint shares to recipient
        _mint(to, shares);
        emit Deposit(msg.sender, to, shares, amount0, amount1);
        _reinvest(0, 0);
    }

    /// @dev Do zero-burns to poke a position on Uniswap so earned fees are
    /// updated. Should be called if total amounts needs to include up-to-date
    /// fees.
    function _poke(int24 tickLower, int24 tickUpper) internal {
        (uint128 liquidity, , , , ) = _position(tickLower, tickUpper);
        if (liquidity > 0) {
            pool.burn(tickLower, tickUpper, 0);
        }
    }

    /// @dev Calculates the largest possible `amount0` and `amount1` such that
    /// they're in the same proportion as total amounts, but not greater than
    /// `amount0Desired` and `amount1Desired` respectively.
    function _calcSharesAndAmounts(uint256 amount0Desired, uint256 amount1Desired)
        internal
        returns (
            uint256 shares,
            uint256 amount0,
            uint256 amount1
        )
    {
        uint128 liquidityDesired = _liquidityForAmounts(baseLower, baseUpper, amount0Desired, amount1Desired);
        uint256 BPtotalSupply = totalSupply();

        uint128 liquidityTotal = _getTotalLiquidity();
        //uint128 liquidityTotal = _liquidityForAmounts(baseLower, baseUpper, total0, total1);

        emit Total(liquidityTotal, liquidityDesired);

        // If total supply > 0, vault can't be empty
        assert(BPtotalSupply == 0 || liquidityTotal > 0 );

        (amount0, amount1) = _amountsForLiquidity(baseLower, baseUpper, liquidityDesired);
        //adding one penny due to loss during conversion 
        (amount0, amount1) = ((amount0 + 1), (amount1 + 1));
        if (BPtotalSupply == 0) {
            // For first deposit, just use the liquidity desired      
            shares = liquidityDesired;
        } else {
            shares = uint256(liquidityDesired) * BPtotalSupply / liquidityTotal;        
        }
    }

    function calcSharesAndAmounts(uint256 amount0Desired, uint256 amount1Desired) 
        external
        returns (
            uint256 shares,
            uint256 amount0,
            uint256 amount1
        )
    {
        _poke(baseLower, baseUpper);
        (shares, amount0, amount1) = _calcSharesAndAmounts(amount0Desired, amount1Desired);
    }

    /**
     * @notice Withdraws tokens in proportion to the vault's holdings.
     * @param shares Shares burned by sender
     * @param amount0Min Revert if resulting `amount0` is smaller than this
     * @param amount1Min Revert if resulting `amount1` is smaller than this
     * @param to Recipient of tokens
     * @return amount0 Amount of token0 sent to recipient
     * @return amount1 Amount of token1 sent to recipient
     */
    function withdraw(
        uint256 shares,
        uint256 amount0Min,
        uint256 amount1Min,
        address to
    ) external nonReentrant returns (uint256 amount0, uint256 amount1) {
        require(shares > 0, "shares");
        require(to != address(0) && to != address(this), "to");
        uint256 BPtotalSupply = totalSupply();

        // Burn shares
        _burn(msg.sender, shares);

        //if the pool is deactivated, then the assets are taken from the contract storage, in proportion to the boosterPool tokens
        if(isDeactivated){
            // Calculate token amounts proportional to unused balances
            amount0 = getBalance0() * shares / BPtotalSupply;
            amount1 = getBalance1() * shares / BPtotalSupply;
        } else {
            // Withdraw proportion of liquidity from Uniswap pool
            (amount0, amount1) = _burnLiquidityShare(baseLower, baseUpper, shares, BPtotalSupply);
        }

        require(amount0 >= amount0Min, "amount0Min");
        require(amount1 >= amount1Min, "amount1Min");

        // Push tokens to recipient
        if (amount0 > 0) token0.safeTransfer(to, amount0);
        if (amount1 > 0) token1.safeTransfer(to, amount1);

        emit Withdraw(msg.sender, to, shares, amount0, amount1);
    }

    /// @dev Withdraws share of liquidity in a range from Uniswap pool.
    function _burnLiquidityShare(
        int24 tickLower,
        int24 tickUpper,
        uint256 shares,
        uint256 BPtotalSupply
    ) internal returns (uint256 amount0, uint256 amount1) {
        (uint128 totalLiquidity, , , , ) = _position(tickLower, tickUpper);
        uint256 liquidity = uint256(totalLiquidity) * shares / BPtotalSupply;

        if (liquidity > 0) {
            (uint256 burned0, uint256 burned1, uint256 fees0, uint256 fees1) =
                _burnAndCollect(tickLower, tickUpper, _toUint128(liquidity));

            // Add share of fees
            amount0 = burned0 + (fees0 * shares / BPtotalSupply);
            amount1 = burned1 + (fees1 * shares / BPtotalSupply);
        }
    }

    /**
     * @notice The fees earned are withdrawn from Uniswap V3 
     * and the maximum possible liquidity is deposited into the position.
     * @param swapAmount the number of tokens to be exchanged. 
     * A positive or negative value indicates the direction of the swap 
     * (zeroForOne - The direction of the swap, true for token0 to token1, false for token1 to token0)
     * @param sqrtPriceLimitX96 - The Q64.96 sqrt price limit. If zero for one, the price cannot be less than this value after the swap. If one for zero, the price cannot be greater than this value after the swap
     */
    function reinvest(
        int256 swapAmount,
        uint160 sqrtPriceLimitX96
    ) external nonReentrant {
        require(!isDeactivated, "deactivated"); 
        require(msg.sender == strategy, "strategy");
        _poke(baseLower, baseUpper);
        _reinvest(swapAmount, sqrtPriceLimitX96);
    }

    function _reinvest(
        int256 swapAmount,
        uint160 sqrtPriceLimitX96
    ) internal {
        _burnAndCollect(baseLower, baseUpper, 0);
        // swap and mint liquidity (fees) to position
        _swapAndMint(swapAmount, sqrtPriceLimitX96, baseLower, baseUpper);
    }

    /**
     * @notice Updates positions. Can only be called by the strategy.
     * @param swapAmount the number of tokens to be exchanged. 
     * A positive or negative value indicates the direction of the swap 
     * (zeroForOne - The direction of the swap, true for token0 to token1, false for token1 to token0)
     * @param sqrtPriceLimitX96 - The Q64.96 sqrt price limit. If zero for one, the price cannot be less than this value after the swap. If one for zero, the price cannot be greater than this value after the swap
     * @param tickLower new tick lower
     * @param tickUpper new tick upper
     */
    function rebalance(
        int256 swapAmount,
        uint160 sqrtPriceLimitX96,
        int24 tickLower,
        int24 tickUpper
    ) external nonReentrant {
        require(!isDeactivated, "deactivated"); 
        require(msg.sender == strategy, "strategy");   
        _checkRange(tickLower, tickUpper, tickSpacing);

        // Withdraw all current liquidity from Uniswap pool
        (uint128 baseLiquidity, , , , ) = _position(baseLower, baseUpper);
        _burnAndCollect(baseLower, baseUpper, baseLiquidity);
        
        // swap and mint liquidity to position
        _swapAndMint(swapAmount, sqrtPriceLimitX96, tickLower, tickUpper);
        (baseLower, baseUpper) = (tickLower, tickUpper);
    }

    function _swapAndMint(
        int256 swapAmount,
        uint160 sqrtPriceLimitX96,
        int24 _baseLower,
        int24 _baseUpper
    ) internal {
        // Emit snapshot to record balances and supply
        uint256 balance0 = getBalance0();
        uint256 balance1 = getBalance1();
        (, int24 tick, , , , , ) = pool.slot0();
        emit Snapshot(tick, balance0, balance1, totalSupply());

        if (swapAmount != 0) {
            pool.swap(
                address(this),
                swapAmount > 0,
                swapAmount > 0 ? swapAmount : -swapAmount,
                sqrtPriceLimitX96,
                ""
            );
            balance0 = getBalance0();
            balance1 = getBalance1();
        }

        // Place base order on Uniswap
        uint128 liquidity = _liquidityForAmounts(_baseLower, _baseUpper, balance0, balance1);
        if (liquidity > 0) {
            pool.mint(address(this), _baseLower, _baseUpper, liquidity, "");
        }
    }

    function _checkRange(int24 tickLower, int24 tickUpper,  int24 _tickSpacing) internal pure {
        require(tickLower < tickUpper, "tickLower < tickUpper");
        require(tickLower >= TickMath.MIN_TICK, "tickLower too low");
        require(tickUpper <= TickMath.MAX_TICK, "tickUpper too high");
        require(tickLower % _tickSpacing == 0, "tickLower % tickSpacing");
        require(tickUpper % _tickSpacing == 0, "tickUpper % tickSpacing");
    }

    /// @dev Withdraws liquidity from a range and collects all fees in the
    /// process.
    function _burnAndCollect(
        int24 tickLower,
        int24 tickUpper,
        uint128 liquidity
    )
        internal
        returns (
            uint256 burned0,
            uint256 burned1,
            uint256 feesToPool0,
            uint256 feesToPool1
        )
    {
        if (liquidity > 0) {
            (burned0, burned1) = pool.burn(tickLower, tickUpper, liquidity);
        }

        // Collect all owed tokens including earned fees
        (uint256 collect0, uint256 collect1) =
            pool.collect(
                address(this),
                tickLower,
                tickUpper,
                type(uint128).max,
                type(uint128).max
            );

        feesToPool0 = collect0 - burned0;
        feesToPool1 = collect1 - burned1;

        uint256 feesToTreasuryA0 = 0;
        uint256 feesToTreasuryA1 = 0;
        uint256 feesToTreasuryB0 = 0;
        uint256 feesToTreasuryB1 = 0;

        if ((protocolFeeA + protocolFeeB) > 0) {        
            feesToTreasuryA0 = feesToPool0 * protocolFeeA / 1e6;
            feesToTreasuryA1 = feesToPool1 * protocolFeeA / 1e6;
            feesToTreasuryB0 = feesToPool0 * protocolFeeB / 1e6;
            feesToTreasuryB1 = feesToPool1 * protocolFeeB / 1e6;

            treasuryA0 = treasuryA0 + feesToTreasuryA0;
            treasuryA1 = treasuryA1 + feesToTreasuryA1;
            treasuryB0 = treasuryB0 + feesToTreasuryB0;
            treasuryB1 = treasuryB1 + feesToTreasuryB1;

            feesToPool0 = feesToPool0 - feesToTreasuryA0 - feesToTreasuryB0;
            feesToPool1 = feesToPool1 - feesToTreasuryA1 - feesToTreasuryB1;
        }
        emit CollectFees(feesToPool0, feesToPool1, feesToTreasuryA0, feesToTreasuryA1, feesToTreasuryB0, feesToTreasuryB1);
    }

    /**
    * @notice calculates the liquidity value in the Uniswap V3 pool, taking into account the accrued fee minus the protocol commission
    * @return liquidity Total liquidity in pool and contract
    */
    function _getTotalLiquidity() internal view returns (uint128 liquidity) {

        (uint128 liquidityInPosition, , , uint128 tokensOwed0, uint128 tokensOwed1) =
            _position(baseLower, baseUpper);

        uint256 oneMinusFee = uint256(1e6) - (protocolFeeA + protocolFeeB);
        uint256 amount0 = getBalance0() + (uint256(tokensOwed0) * oneMinusFee / 1e6);
        uint256 amount1 = getBalance1() + (uint256(tokensOwed1) * oneMinusFee / 1e6);

        //liquidity in position add liquidity from fees and contract balance
        liquidity = liquidityInPosition + _liquidityForAmounts(baseLower, baseUpper, amount0, amount1);
    }

    /**
     * @notice Amounts of token0 and token1 held in vault's position. Includes
     * owed fees but excludes the proportion of fees that will be paid to the
     * protocol. Doesn't include fees accrued since last poke.
     */
    function _getPositionAmounts()
        internal
        view
        returns (uint256 amount0, uint256 amount1)
    {
        (uint128 liquidity, , , uint128 tokensOwed0, uint128 tokensOwed1) =
            _position(baseLower, baseUpper);
        (amount0, amount1) = _amountsForLiquidity(baseLower, baseUpper, liquidity);

        // Subtract protocol fees
        uint256 oneMinusFee = uint256(1e6) - (protocolFeeA + protocolFeeB);
        amount0 = amount0 + (uint256(tokensOwed0) * oneMinusFee / 1e6);
        amount1 = amount1 + (uint256(tokensOwed1) * oneMinusFee / 1e6);
    }

    /**
    * @notice calculates how many assets token0 and token1 can be obtained for BP tokens
    * @param amountBP Amount of BP tokens for whom the calculation
    * @return amount0 computed value of token0
    * @return amount1 computed value of token1
    */
    function getTotalAmounts(uint256 amountBP)
        external
        returns(uint256 amount0, uint256 amount1)
    {
        uint256 BPtotalSupply = totalSupply();
        if(BPtotalSupply > 0){
            _poke(baseLower, baseUpper);
            (amount0,  amount1) = _getPositionAmounts();
            (amount0,  amount1) = ((amount0 * amountBP / BPtotalSupply), (amount1 * amountBP / BPtotalSupply));
        } else {
            (amount0,  amount1) = (0,0);
        }
    }

    /**
    * @notice Amounts of token0 and token1 in the Uniswap V3 pool to be collected
    * @return collect0 amount of accrued fees in token0
    * @return collect1 amount of accrued fees in token1
    */
    function collectPositionFees()
        external
        returns(uint256 collect0, uint256 collect1)
    {
        _poke(baseLower, baseUpper);
        (,,collect0, collect1) = _burnAndCollect(baseLower, baseUpper, 0);
    }

    /**
     * @notice Balance of token0 in vault not used in any position.
     */
    function getBalance0() public view returns (uint256) {
        return token0.balanceOf(address(this)) - treasuryA0 - treasuryB0;

    }

    /**
     * @notice Balance of token1 in vault not used in any position.
     */
    function getBalance1() public view returns (uint256) {
        return token1.balanceOf(address(this)) - treasuryA1 - treasuryB1;
    }

    /// @dev Wrapper around `IUniswapV3Pool.positions()`.
    function _position(int24 tickLower, int24 tickUpper)
        internal
        view
        returns (
            uint128,
            uint256,
            uint256,
            uint128,
            uint128
        )
    {
        bytes32 positionKey = PositionKey.compute(address(this), tickLower, tickUpper);
        return pool.positions(positionKey);
    }

    /// @dev Wrapper around `LiquidityAmounts.getAmountsForLiquidity()`.
    function _amountsForLiquidity(
        int24 tickLower,
        int24 tickUpper,
        uint128 liquidity
    ) internal view returns (uint256, uint256) {
        (uint160 sqrtRatioX96, , , , , , ) = pool.slot0();
        return
            LiquidityAmounts.getAmountsForLiquidity(
                sqrtRatioX96,
                TickMath.getSqrtRatioAtTick(tickLower),
                TickMath.getSqrtRatioAtTick(tickUpper),
                liquidity
            );
    }

    /// @dev Wrapper around `LiquidityAmounts.getLiquidityForAmounts()`.
    function _liquidityForAmounts(
        int24 tickLower,
        int24 tickUpper,
        uint256 amount0,
        uint256 amount1
    ) internal view returns (uint128) {
        (uint160 sqrtRatioX96, , , , , , ) = pool.slot0();
        return
            LiquidityAmounts.getLiquidityForAmounts(
                sqrtRatioX96,
                TickMath.getSqrtRatioAtTick(tickLower),
                TickMath.getSqrtRatioAtTick(tickUpper),
                amount0,
                amount1
            );
    }

    /// @dev Casts uint256 to uint128 with overflow check.
    function _toUint128(uint256 x) internal pure returns (uint128) {
        assert(x <= type(uint128).max);
        return uint128(x);
    }

    /// @dev Callback for Uniswap V3 pool.
    function uniswapV3MintCallback(
        uint256 amount0,
        uint256 amount1,
        bytes calldata data
    ) external override {
        require(msg.sender == address(pool));
        if (amount0 > 0) token0.safeTransfer(msg.sender, amount0);
        if (amount1 > 0) token1.safeTransfer(msg.sender, amount1);
    }

    /// @dev Callback for Uniswap V3 pool.
    function uniswapV3SwapCallback(
        int256 amount0Delta,
        int256 amount1Delta,
        bytes calldata data
    ) external override {
        require(msg.sender == address(pool));
        if (amount0Delta > 0) token0.safeTransfer(msg.sender, uint256(amount0Delta));
        if (amount1Delta > 0) token1.safeTransfer(msg.sender, uint256(amount1Delta));
    }

    /**
     * @notice Used to collect accumulated protocol fees from the treasury A.
     */
    function collectTreasuryA(
        uint256 amount0,
        uint256 amount1,
        address to
    ) external onlyAddressA {
        treasuryA0 = treasuryA0 - amount0;
        treasuryA1 = treasuryA1 - amount1;
        if (amount0 > 0) token0.safeTransfer(to, amount0);
        if (amount1 > 0) token1.safeTransfer(to, amount1);
    }

    /**
     * @notice Used to collect accumulated protocol fees from the treasury B.
     */
    function collectTreasuryB(
        uint256 amount0,
        uint256 amount1,
        address to
    ) external onlyAddressB {
        treasuryB0 = treasuryB0 - amount0;
        treasuryB1 = treasuryB1 - amount1;
        if (amount0 > 0) token0.safeTransfer(to, amount0);
        if (amount1 > 0) token1.safeTransfer(to, amount1);
    }

    /**
     * @notice Removes tokens accidentally sent to this vault.
     */
    function sweep(
        IERC20 token,
        uint256 amount,
        address to
    ) external onlyGovernance {
        require(token != token0 && token != token1, "token");
        token.safeTransfer(to, amount);
    }

    /**
     * @notice Used to set the strategy contract that determines the position
     * ranges and calls rebalance(). Must be called after this vault is
     * deployed.
     */
    function setStrategy(address newStrategy) external onlyGovernance {
        require(newStrategy != address(0) && newStrategy != address(this), "strategy");
        emit Strategy(strategy, newStrategy);
        strategy = newStrategy;
    }

    function setAddressA(address newAddressA) external onlyGovernance {
        require(newAddressA != address(0) && newAddressA != address(this), "addressA");
        emit AddressA(addressA, newAddressA);
        addressA = newAddressA;       
    }

    function setAddressB(address newAddressB) external onlyGovernance {
        require(newAddressB != address(0) && newAddressB != address(this), "addressB");
        emit AddressB(addressB, newAddressB);
        addressB = newAddressB;
    }
    /**
     * @notice Used to change the protocol fee charged on pool fees earned from
     * Uniswap, expressed as multiple of 1e-6.
     */
    function setProtocolFeeA(uint256 newProtocolFeeA) external onlyGovernance {
        require((newProtocolFeeA + protocolFeeB) < 1e6, "protocolFeeA");
        emit ProtocolFeeA(protocolFeeA, newProtocolFeeA);
        protocolFeeA = newProtocolFeeA;
    }

    function setProtocolFeeB(uint256 newProtocolFeeB) external onlyGovernance {
        require((newProtocolFeeB + protocolFeeA) < 1e6, "protocolFeeB");
        emit ProtocolFeeB(protocolFeeB, newProtocolFeeB);
        protocolFeeB = newProtocolFeeB;
    }

    function deactivateMode() external onlyGovernance {
        require(!isDeactivated, "deactivated"); 
        isDeactivated = true;
        (uint128 baseLiquidity, , , , ) = _position(baseLower, baseUpper);
        _burnAndCollect(baseLower, baseUpper, baseLiquidity);
        emit Deactivate();
    }

    /**
     * @notice Governance address is not updated until the new governance
     * address has called `acceptGovernance()` to accept this responsibility.
     */
    function setGovernance(address newGovernance) external onlyGovernance {
        require(newGovernance != address(0) && newGovernance != address(this), "governance");
        pendingGovernance = newGovernance;
        emit PendingGovernance(pendingGovernance);
    }

    /**
     * @notice `setGovernance()` should be called by the existing governance
     * address prior to calling this function.
     */
    function acceptGovernance() external {
        require(msg.sender == pendingGovernance, "pendingGovernance");
        emit Governance(governance, msg.sender);
        governance = msg.sender;    
    }

    modifier onlyGovernance {
        require(msg.sender == governance, "governance");
        _;
    }

    modifier onlyAddressA {
        require(msg.sender == addressA, "addressA");
        _;
    }

    modifier onlyAddressB {
        require(msg.sender == addressB, "addressB");
        _;
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_pool","type":"address"},{"internalType":"address","name":"_addressA","type":"address"},{"internalType":"address","name":"_addressB","type":"address"},{"internalType":"uint256","name":"_protocolFeeA","type":"uint256"},{"internalType":"uint256","name":"_protocolFeeB","type":"uint256"},{"internalType":"string","name":"tokenName","type":"string"},{"internalType":"string","name":"tokenSymbol","type":"string"},{"internalType":"address","name":"_strategy","type":"address"},{"internalType":"int24","name":"_tickLower","type":"int24"},{"internalType":"int24","name":"_tickUpper","type":"int24"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"T","type":"error"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"oldAddress","type":"address"},{"indexed":false,"internalType":"address","name":"newAddress","type":"address"}],"name":"AddressA","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"oldAddress","type":"address"},{"indexed":false,"internalType":"address","name":"newAddress","type":"address"}],"name":"AddressB","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"feesToPool0","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"feesToPool1","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"feesToTreasuryA0","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"feesToTreasuryA1","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"feesToTreasuryB0","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"feesToTreasuryB1","type":"uint256"}],"name":"CollectFees","type":"event"},{"anonymous":false,"inputs":[],"name":"Deactivate","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"shares","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount0","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount1","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"oldGovernance","type":"address"},{"indexed":false,"internalType":"address","name":"newGovernance","type":"address"}],"name":"Governance","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"candidate","type":"address"}],"name":"PendingGovernance","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"oldProtocolFee","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newProtocolFee","type":"uint256"}],"name":"ProtocolFeeA","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"oldProtocolFee","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newProtocolFee","type":"uint256"}],"name":"ProtocolFeeB","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"int24","name":"tick","type":"int24"},{"indexed":false,"internalType":"uint256","name":"totalAmount0","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"totalAmount1","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"totalSupply","type":"uint256"}],"name":"Snapshot","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"oldStrategy","type":"address"},{"indexed":false,"internalType":"address","name":"newStrategy","type":"address"}],"name":"Strategy","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint128","name":"liquidityTotal","type":"uint128"},{"indexed":false,"internalType":"uint256","name":"liquidityDesired","type":"uint256"}],"name":"Total","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"shares","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount0","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount1","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[],"name":"acceptGovernance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"addressA","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"addressB","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseLower","outputs":[{"internalType":"int24","name":"","type":"int24"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseUpper","outputs":[{"internalType":"int24","name":"","type":"int24"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount0Desired","type":"uint256"},{"internalType":"uint256","name":"amount1Desired","type":"uint256"}],"name":"calcSharesAndAmounts","outputs":[{"internalType":"uint256","name":"shares","type":"uint256"},{"internalType":"uint256","name":"amount0","type":"uint256"},{"internalType":"uint256","name":"amount1","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"collectPositionFees","outputs":[{"internalType":"uint256","name":"collect0","type":"uint256"},{"internalType":"uint256","name":"collect1","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount0","type":"uint256"},{"internalType":"uint256","name":"amount1","type":"uint256"},{"internalType":"address","name":"to","type":"address"}],"name":"collectTreasuryA","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount0","type":"uint256"},{"internalType":"uint256","name":"amount1","type":"uint256"},{"internalType":"address","name":"to","type":"address"}],"name":"collectTreasuryB","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"deactivateMode","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"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":"to","type":"address"}],"name":"deposit","outputs":[{"internalType":"uint256","name":"shares","type":"uint256"},{"internalType":"uint256","name":"amount0","type":"uint256"},{"internalType":"uint256","name":"amount1","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getBalance0","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getBalance1","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountBP","type":"uint256"}],"name":"getTotalAmounts","outputs":[{"internalType":"uint256","name":"amount0","type":"uint256"},{"internalType":"uint256","name":"amount1","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"governance","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"isDeactivated","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pendingGovernance","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pool","outputs":[{"internalType":"contract IUniswapV3Pool","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"protocolFeeA","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"protocolFeeB","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"int256","name":"swapAmount","type":"int256"},{"internalType":"uint160","name":"sqrtPriceLimitX96","type":"uint160"},{"internalType":"int24","name":"tickLower","type":"int24"},{"internalType":"int24","name":"tickUpper","type":"int24"}],"name":"rebalance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"int256","name":"swapAmount","type":"int256"},{"internalType":"uint160","name":"sqrtPriceLimitX96","type":"uint160"}],"name":"reinvest","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newAddressA","type":"address"}],"name":"setAddressA","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newAddressB","type":"address"}],"name":"setAddressB","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newGovernance","type":"address"}],"name":"setGovernance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newProtocolFeeA","type":"uint256"}],"name":"setProtocolFeeA","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newProtocolFeeB","type":"uint256"}],"name":"setProtocolFeeB","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newStrategy","type":"address"}],"name":"setStrategy","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"strategy","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"to","type":"address"}],"name":"sweep","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tickSpacing","outputs":[{"internalType":"int24","name":"","type":"int24"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"token0","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"token1","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"treasuryA0","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"treasuryA1","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"treasuryB0","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"treasuryB1","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount0","type":"uint256"},{"internalType":"uint256","name":"amount1","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"uniswapV3MintCallback","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"int256","name":"amount0Delta","type":"int256"},{"internalType":"int256","name":"amount1Delta","type":"int256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"uniswapV3SwapCallback","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"shares","type":"uint256"},{"internalType":"uint256","name":"amount0Min","type":"uint256"},{"internalType":"uint256","name":"amount1Min","type":"uint256"},{"internalType":"address","name":"to","type":"address"}],"name":"withdraw","outputs":[{"internalType":"uint256","name":"amount0","type":"uint256"},{"internalType":"uint256","name":"amount1","type":"uint256"}],"stateMutability":"nonpayable","type":"function"}]

6101006040523480156200001257600080fd5b5060405162004d7638038062004d768339810160408190526200003591620007d7565b8451859085906200004e90600390602085019062000625565b5080516200006490600490602084019062000625565b50506001600555506001600160601b031960608b901b1660805260408051630dfe168160e01b815290516001600160a01b038c1691630dfe1681916004808301926020929190829003018186803b158015620000bf57600080fd5b505afa158015620000d4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620000fa9190620007b2565b6001600160a01b031660a0816001600160a01b031660601b81525050896001600160a01b031663d21220a76040518163ffffffff1660e01b815260040160206040518083038186803b1580156200015057600080fd5b505afa15801562000165573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200018b9190620007b2565b6001600160a01b031660c0816001600160a01b031660601b8152505060008a6001600160a01b031663d0c93a7c6040518163ffffffff1660e01b815260040160206040518083038186803b158015620001e357600080fd5b505afa158015620001f8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200021e9190620008c8565b600281810b900b60e81b60e052600680546001600160a01b0319163317905590506001600160a01b038416158015906200026157506001600160a01b0384163014155b6200029f5760405162461bcd60e51b81526020600482015260096024820152685f737472617465677960b81b60448201526064015b60405180910390fd5b600880546001600160a01b0319166001600160a01b03868116919091179091556011805460ff191690558a1615801590620002e357506001600160a01b038a163014155b6200031d5760405162461bcd60e51b81526020600482015260096024820152685f616464726573734160b81b604482015260640162000296565b600980546001600160a01b0319166001600160a01b038c8116919091179091558916158015906200035757506001600160a01b0389163014155b620003935760405162461bcd60e51b815260206004820152600b60248201526a5f6164647265737342746f60a81b604482015260640162000296565b600a80546001600160a01b0319166001600160a01b038b16179055600b889055600c879055620f4240620003c8888a620008e6565b10620004055760405162461bcd60e51b815260206004820152600b60248201526a70726f746f636f6c46656560a81b604482015260640162000296565b6200041283838362000464565b5060088054600292830b62ffffff908116600160b81b0262ffffff60b81b199590940b16600160a01b029390931665ffffffffffff60a01b199093169290921717905550620009c19650505050505050565b8160020b8360020b12620004bb5760405162461bcd60e51b815260206004820152601560248201527f7469636b4c6f776572203c207469636b55707065720000000000000000000000604482015260640162000296565b620d89e719600284900b1215620005095760405162461bcd60e51b81526020600482015260116024820152707469636b4c6f77657220746f6f206c6f7760781b604482015260640162000296565b62000518620d89e7196200096f565b60020b8260020b1315620005645760405162461bcd60e51b81526020600482015260126024820152710e8d2c6d6aae0e0cae440e8dede40d0d2ced60731b604482015260640162000296565b6200057081846200093e565b60020b15620005c25760405162461bcd60e51b815260206004820152601760248201527f7469636b4c6f7765722025207469636b53706163696e67000000000000000000604482015260640162000296565b620005ce81836200093e565b60020b15620006205760405162461bcd60e51b815260206004820152601760248201527f7469636b55707065722025207469636b53706163696e67000000000000000000604482015260640162000296565b505050565b828054620006339062000901565b90600052602060002090601f016020900481019282620006575760008555620006a2565b82601f106200067257805160ff1916838001178555620006a2565b82800160010185558215620006a2579182015b82811115620006a257825182559160200191906001019062000685565b50620006b0929150620006b4565b5090565b5b80821115620006b05760008155600101620006b5565b80516001600160a01b0381168114620006e357600080fd5b919050565b8051600281900b8114620006e357600080fd5b600082601f8301126200070d57600080fd5b81516001600160401b03808211156200072a576200072a620009ab565b604051601f8301601f19908116603f01168101908282118183101715620007555762000755620009ab565b816040528381526020925086838588010111156200077257600080fd5b600091505b8382101562000796578582018301518183018401529082019062000777565b83821115620007a85760008385830101525b9695505050505050565b600060208284031215620007c557600080fd5b620007d082620006cb565b9392505050565b6000806000806000806000806000806101408b8d031215620007f857600080fd5b620008038b620006cb565b99506200081360208c01620006cb565b98506200082360408c01620006cb565b60608c015160808d015160a08e0151929a5090985096506001600160401b03808211156200085057600080fd5b6200085e8e838f01620006fb565b965060c08d01519150808211156200087557600080fd5b50620008848d828e01620006fb565b9450506200089560e08c01620006cb565b9250620008a66101008c01620006e8565b9150620008b76101208c01620006e8565b90509295989b9194979a5092959850565b600060208284031215620008db57600080fd5b620007d082620006e8565b60008219821115620008fc57620008fc62000995565b500190565b600181811c908216806200091657607f821691505b602082108114156200093857634e487b7160e01b600052602260045260246000fd5b50919050565b60008260020b806200096057634e487b7160e01b600052601260045260246000fd5b808360020b0791505092915050565b60008160020b627fffff198114156200098c576200098c62000995565b60000392915050565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b60805160601c60a05160601c60c05160601c60e05160e81c6142b262000ac4600039600081816105f60152611a4501526000818161061d01528181610b9401528181610c7c01528181610e1b015281816116d9015281816117e1015281816119210152611c5801526000818161033c01528181610b5901528181610d3801528181610de1015281816114a70152818161169f015281816117a7015281816118e40152611c1b0152600081816103920152818161176a01528181611bdb015281816120310152818161243f01528181612519015281816125ea01528181612ca301528181612d9f01528181612ef301528181612f88015261314901526142b26000f3fe608060405234801561001057600080fd5b50600436106102f15760003560e01c806395d89b411161019d578063d21220a7116100e9578063e716e062116100a2578063f48ac5d01161007c578063f48ac5d0146106d7578063fa082743146106e0578063fa461e33146106f4578063fd4e4d751461070757600080fd5b8063e716e0621461069e578063f347f106146106b1578063f39c38a0146106c457600080fd5b8063d21220a714610618578063d331bef71461063f578063d348799714610652578063d96d659414610665578063dc2c256f14610678578063dd62ed3e1461068b57600080fd5b8063ab033ea911610156578063b9480d4a11610130578063b9480d4a146105cd578063b9f835ef146105d6578063ca8460bc146105de578063d0c93a7c146105f157600080fd5b8063ab033ea91461057f578063ac6a24df14610592578063ae445278146105ba57600080fd5b806395d89b4114610518578063a457c2d714610520578063a4ef9cf414610533578063a58c4ae614610546578063a8c62e7614610559578063a9059cbb1461056c57600080fd5b8063395093511161025c5780636dcf811d116102155780638405f1d4116101ef5780638405f1d4146104cd578063888a9134146104e05780638929399f146105075780639026b8bc1461050f57600080fd5b80636dcf811d1461048e5780636e3447da1461049b57806370a08231146104a457600080fd5b8063395093511461043257806341aec538146104455780634526196e1461044d5780635aa6e67514610460578063629d940514610473578063686da1351461047b57600080fd5b8063238efcbc116102ae578063238efcbc146103bc57806323b872dd146103c657806330e4d533146103d9578063313ce567146103e257806333a100ca146103f1578063365d0ed71461040457600080fd5b806306fdde03146102f6578063095ea7b3146103145780630dfe1681146103375780631060e0cb1461037657806316f0115b1461038d57806318160ddd146103b4575b600080fd5b6102fe61071a565b60405161030b9190613fe8565b60405180910390f35b610327610322366004613c32565b6107ac565b604051901515815260200161030b565b61035e7f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b03909116815260200161030b565b61037f600f5481565b60405190815260200161030b565b61035e7f000000000000000000000000000000000000000000000000000000000000000081565b60025461037f565b6103c46107c4565b005b6103276103d4366004613bf1565b610870565b61037f600d5481565b6040516012815260200161030b565b6103c46103ff366004613b9b565b610896565b610417610412366004613f7f565b610966565b6040805193845260208401929092529082015260600161030b565b610327610440366004613c32565b610c32565b61037f610c54565b600a5461035e906001600160a01b031681565b60065461035e906001600160a01b031681565b61037f610d10565b6103c4610489366004613f1b565b610d67565b6011546103279060ff1681565b61037f60105481565b61037f6104b2366004613b9b565b6001600160a01b031660009081526020819052604090205490565b6104176104db366004613ef9565b610e47565b6008546104f490600160b81b900460020b81565b60405160029190910b815260200161030b565b6103c4610e88565b61037f600c5481565b6102fe610f63565b61032761052e366004613c32565b610f72565b6103c4610541366004613b9b565b610ff8565b6103c4610554366004613ec7565b6110e3565b60085461035e906001600160a01b031681565b61032761057a366004613c32565b61119c565b6103c461058d366004613b9b565b6111aa565b6105a56105a0366004613ec7565b611265565b6040805192835260208301919091520161030b565b6103c46105c8366004613b9b565b6112ec565b61037f600b5481565b6105a56113d7565b6103c46105ec366004613f1b565b61142d565b6104f47f000000000000000000000000000000000000000000000000000000000000000081565b61035e7f000000000000000000000000000000000000000000000000000000000000000081565b6105a561064d366004613f49565b6114ce565b6103c4610660366004613cdf565b61175f565b6103c4610673366004613d32565b61180e565b6103c4610686366004613c79565b6118b8565b61037f610699366004613bb8565b61199e565b6103c46106ac366004613d57565b6119c9565b6103c46106bf366004613ec7565b611b17565b60075461035e906001600160a01b031681565b61037f600e5481565b6008546104f490600160a01b900460020b81565b6103c4610702366004613cdf565b611bd0565b60095461035e906001600160a01b031681565b60606003805461072990614176565b80601f016020809104026020016040519081016040528092919081815260200182805461075590614176565b80156107a25780601f10610777576101008083540402835291602001916107a2565b820191906000526020600020905b81548152906001019060200180831161078557829003601f168201915b5050505050905090565b6000336107ba818585611c7f565b5060019392505050565b6007546001600160a01b031633146108175760405162461bcd60e51b815260206004820152601160248201527070656e64696e67476f7665726e616e636560781b60448201526064015b60405180910390fd5b600654604080516001600160a01b0390921682523360208301527f4534e9339c464936b89c0f6508be9266c0426dbca2193a736976908c72dbe160910160405180910390a1600680546001600160a01b03191633179055565b60003361087e858285611da3565b610889858585611e17565b60019150505b9392505050565b6006546001600160a01b031633146108c05760405162461bcd60e51b815260040161080e9061401b565b6001600160a01b038116158015906108e157506001600160a01b0381163014155b6108fd5760405162461bcd60e51b815260040161080e90614064565b600854604080516001600160a01b03928316815291831660208301527f1157d3718a643eef40ad506b7553d0fb68122469510f4275be321d88e0d456b9910160405180910390a1600880546001600160a01b0319166001600160a01b0392909216919091179055565b60008060006002600554141561098e5760405162461bcd60e51b815260040161080e90614086565b600260055560115460ff16156109b65760405162461bcd60e51b815260040161080e9061403f565b60008811806109c55750600087115b610a115760405162461bcd60e51b815260206004820181905260248201527f616d6f756e743044657369726564206f7220616d6f756e743144657369726564604482015260640161080e565b6001600160a01b03841615801590610a3257506001600160a01b0384163014155b610a635760405162461bcd60e51b8152602060048201526002602482015261746f60f01b604482015260640161080e565b600854610a8590600160a01b8104600290810b91600160b81b9004900b611fe5565b610a8f88886120bb565b9194509250905082610acc5760405162461bcd60e51b815260206004820152600660248201526573686172657360d01b604482015260640161080e565b85821015610b095760405162461bcd60e51b815260206004820152600a60248201526930b6b7bab73a1826b4b760b11b604482015260640161080e565b84811015610b465760405162461bcd60e51b815260206004820152600a60248201526930b6b7bab73a18a6b4b760b11b604482015260640161080e565b8115610b8157610b816001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000163330856121f8565b8015610bbc57610bbc6001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000163330846121f8565b610bc68484612263565b60408051848152602081018490529081018290526001600160a01b0385169033907f4e2ca0515ed1aef1395f66b5303bb5d6f1bf9d61a353fa53f73f8ac9973fa9f69060600160405180910390a3610c1f600080612343565b6001600581905550955095509592505050565b6000336107ba818585610c45838361199e565b610c4f91906140e8565b611c7f565b601054600e546040516370a0823160e01b815230600482015260009291906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906370a08231906024015b60206040518083038186803b158015610cbf57600080fd5b505afa158015610cd3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cf79190613ee0565b610d019190614133565b610d0b9190614133565b905090565b600f54600d546040516370a0823160e01b815230600482015260009291906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906370a0823190602401610ca7565b600a546001600160a01b03163314610dac5760405162461bcd60e51b815260206004820152600860248201526730b2323932b9b9a160c11b604482015260640161080e565b82600f54610dba9190614133565b600f55601054610dcb908390614133565b6010558215610e0857610e086001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000168285612391565b8115610e4257610e426001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000168284612391565b505050565b60085460009081908190610e7090600160a01b8104600290810b91600160b81b9004900b611fe5565b610e7a85856120bb565b919790965090945092505050565b6006546001600160a01b03163314610eb25760405162461bcd60e51b815260040161080e9061401b565b60115460ff1615610ed55760405162461bcd60e51b815260040161080e9061403f565b6011805460ff19166001179055600854600090610f0790600160a01b8104600290810b91600160b81b9004900b6123c1565b5050600854929350610f3392600160a01b8104600290810b9350600160b81b909104900b9050836124d5565b50506040517fc2a8834045efeaf0b37df1cf2e5979bff82a0c7f93c99b649a004940ef3cda45925060009150a150565b60606004805461072990614176565b60003381610f80828661199e565b905083811015610fe05760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b606482015260840161080e565b610fed8286868403611c7f565b506001949350505050565b6006546001600160a01b031633146110225760405162461bcd60e51b815260040161080e9061401b565b6001600160a01b0381161580159061104357506001600160a01b0381163014155b61107a5760405162461bcd60e51b815260206004820152600860248201526730b2323932b9b9a160c11b604482015260640161080e565b600a54604080516001600160a01b03928316815291831660208301527f693689e2ee122a2e7c2db2ad09560925a2bfbab01f4054cd9fab6289ab338b16910160405180910390a1600a80546001600160a01b0319166001600160a01b0392909216919091179055565b6006546001600160a01b0316331461110d5760405162461bcd60e51b815260040161080e9061401b565b620f4240600b548261111f91906140e8565b1061115b5760405162461bcd60e51b815260206004820152600c60248201526b383937ba37b1b7b62332b2a160a11b604482015260640161080e565b600c5460408051918252602082018390527f1435456c4cdddc14bafc4827cf1093128afb1012ef9ec54145d9c798572ecb2f910160405180910390a1600c55565b6000336107ba818585611e17565b6006546001600160a01b031633146111d45760405162461bcd60e51b815260040161080e9061401b565b6001600160a01b038116158015906111f557506001600160a01b0381163014155b6112115760405162461bcd60e51b815260040161080e9061401b565b600780546001600160a01b0319166001600160a01b0383169081179091556040519081527f3b993242201943fb861f1a018a7d246a1ad1d9bfdcde2be84c918dda5791af6d9060200160405180910390a150565b600080600061127360025490565b905080156112de5760085461129d90600160a01b8104600290810b91600160b81b9004900b611fe5565b6112a56127fb565b9093509150806112b58585614114565b6112bf9190614100565b816112ca8685614114565b6112d49190614100565b90935091506112e6565b600092508291505b50915091565b6006546001600160a01b031633146113165760405162461bcd60e51b815260040161080e9061401b565b6001600160a01b0381161580159061133757506001600160a01b0381163014155b61136e5760405162461bcd60e51b8152602060048201526008602482015267616464726573734160c01b604482015260640161080e565b600954604080516001600160a01b03928316815291831660208301527f588b083c323c665bbd4bab09381c646fdc0bf760cd5e303ae3329eec856b7e9a910160405180910390a1600980546001600160a01b0319166001600160a01b0392909216919091179055565b60085460009081906113fe90600160a01b8104600290810b91600160b81b9004900b611fe5565b60085461142290600160a01b8104600290810b91600160b81b9004900b60006124d5565b909590945092505050565b6009546001600160a01b031633146114725760405162461bcd60e51b8152602060048201526008602482015267616464726573734160c01b604482015260640161080e565b82600d546114809190614133565b600d55600e54611491908390614133565b600e558215610e0857610e086001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000168285612391565b600080600260055414156114f45760405162461bcd60e51b815260040161080e90614086565b60026005558561152f5760405162461bcd60e51b815260206004820152600660248201526573686172657360d01b604482015260640161080e565b6001600160a01b0383161580159061155057506001600160a01b0383163014155b6115815760405162461bcd60e51b8152602060048201526002602482015261746f60f01b604482015260640161080e565b600061158c60025490565b905061159833886128e1565b60115460ff16156115e85780876115ad610d10565b6115b79190614114565b6115c19190614100565b925080876115cd610c54565b6115d79190614114565b6115e19190614100565b9150611612565b60085461160c90600160a01b8104600290810b91600160b81b9004900b8984612a2f565b90935091505b8583101561164f5760405162461bcd60e51b815260206004820152600a60248201526930b6b7bab73a1826b4b760b11b604482015260640161080e565b8482101561168c5760405162461bcd60e51b815260206004820152600a60248201526930b6b7bab73a18a6b4b760b11b604482015260640161080e565b82156116c6576116c66001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000168585612391565b8115611700576117006001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000168584612391565b60408051888152602081018590529081018390526001600160a01b0385169033907febff2602b3f468259e1e99f613fed6691f3a6526effe6ef3e768ba7ae7a36c4f9060600160405180910390a3506001600555909590945092505050565b336001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161461179457600080fd5b83156117ce576117ce6001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000163386612391565b8215611808576118086001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000163385612391565b50505050565b600260055414156118315760405162461bcd60e51b815260040161080e90614086565b600260055560115460ff16156118595760405162461bcd60e51b815260040161080e9061403f565b6008546001600160a01b031633146118835760405162461bcd60e51b815260040161080e90614064565b6008546118a590600160a01b8104600290810b91600160b81b9004900b611fe5565b6118af8282612343565b50506001600555565b6006546001600160a01b031633146118e25760405162461bcd60e51b815260040161080e9061401b565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316836001600160a01b03161415801561195657507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316836001600160a01b031614155b61198a5760405162461bcd60e51b81526020600482015260056024820152643a37b5b2b760d91b604482015260640161080e565b610e426001600160a01b0384168284612391565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b600260055414156119ec5760405162461bcd60e51b815260040161080e90614086565b600260055560115460ff1615611a145760405162461bcd60e51b815260040161080e9061403f565b6008546001600160a01b03163314611a3e5760405162461bcd60e51b815260040161080e90614064565b611a6982827f0000000000000000000000000000000000000000000000000000000000000000612ae3565b600854600090611a8e90600160a01b8104600290810b91600160b81b9004900b6123c1565b5050600854929350611aba92600160a01b8104600290810b9350600160b81b909104900b9050836124d5565b50505050611aca85858585612c87565b506008805465ffffffffffff60a01b1916600160b81b600293840b62ffffff9081169190910262ffffff60a01b191691909117600160a01b9490930b169290920217905550506001600555565b6006546001600160a01b03163314611b415760405162461bcd60e51b815260040161080e9061401b565b620f4240600c5482611b5391906140e8565b10611b8f5760405162461bcd60e51b815260206004820152600c60248201526b70726f746f636f6c4665654160a01b604482015260640161080e565b600b5460408051918252602082018390527f660d29b867303890422e7f1a49a5ddef9431c9fc1f3b452b349991ae2a792a5e910160405180910390a1600b55565b336001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614611c0557600080fd5b6000841315611c4257611c426001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000163386612391565b6000831315611808576118086001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000163385612391565b6001600160a01b038316611ce15760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b606482015260840161080e565b6001600160a01b038216611d425760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b606482015260840161080e565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6000611daf848461199e565b905060001981146118085781811015611e0a5760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e6365000000604482015260640161080e565b6118088484848403611c7f565b6001600160a01b038316611e7b5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b606482015260840161080e565b6001600160a01b038216611edd5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b606482015260840161080e565b6001600160a01b03831660009081526020819052604090205481811015611f555760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b606482015260840161080e565b6001600160a01b03808516600090815260208190526040808220858503905591851681529081208054849290611f8c9084906140e8565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051611fd891815260200190565b60405180910390a3611808565b6000611ff183836123c1565b5050505090506000816001600160801b03161115610e425760405163a34123a760e01b8152600284810b600483015283900b6024820152600060448201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063a34123a7906064016040805180830381600087803b15801561207c57600080fd5b505af1158015612090573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120b49190613cbb565b5050505050565b6008546000908190819081906120e890600160a01b8104600290810b91600160b81b9004900b8888612f83565b905060006120f560025490565b90506000612101613046565b604080516001600160801b038084168252861660208201529192507fd87f89f6941228ae6a9bd3ad6dcdda3e3da364ffca62995842553a85508bd889910160405180910390a181158061215d57506000816001600160801b0316115b61216957612169614213565b60085461218c90600160a01b8104600290810b91600160b81b9004900b85613142565b909550935061219c8560016140e8565b6121a78560016140e8565b9095509350816121c257826001600160801b031695506121ee565b806001600160801b031682846001600160801b03166121e19190614114565b6121eb9190614100565b95505b5050509250925092565b6040516001600160a01b03808516602483015283166044820152606481018290526118089085906323b872dd60e01b906084015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152613209565b6001600160a01b0382166122b95760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640161080e565b80600260008282546122cb91906140e8565b90915550506001600160a01b038216600090815260208190526040812080548392906122f89084906140e8565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35b5050565b60085461236790600160a01b8104600290810b91600160b81b9004900b60006124d5565b505060085461233f92508491508390600160a01b8104600290810b91600160b81b9004900b612c87565b6040516001600160a01b038316602482015260448101829052610e4290849063a9059cbb60e01b9060640161222c565b6000806000806000806124263089896040805160609490941b6bffffffffffffffffffffffff1916602080860191909152600293840b60e890811b60348701529290930b90911b60378401528051601a818503018152603a9093019052815191012090565b60405163514ea4bf60e01b8152600481018290529091507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063514ea4bf9060240160a06040518083038186803b15801561248957600080fd5b505afa15801561249d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124c19190613ddd565b939c929b5090995097509095509350505050565b60008080806001600160801b038516156125a25760405163a34123a760e01b8152600288810b600483015287900b60248201526001600160801b03861660448201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063a34123a7906064016040805180830381600087803b15801561256457600080fd5b505af1158015612578573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061259c9190613cbb565b90945092505b6040516309e3d67b60e31b8152306004820152600288810b602483015287900b60448201526001600160801b0360648201819052608482015260009081906001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690634f1eb3d89060a4016040805180830381600087803b15801561262d57600080fd5b505af1158015612641573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906126659190613daa565b6001600160801b03918216935016905061267f8683614133565b935061268b8582614133565b92506000806000806000600c54600b546126a591906140e8565b111561279657620f4240600b54896126bd9190614114565b6126c79190614100565b9350620f4240600b54886126db9190614114565b6126e59190614100565b9250620f4240600c54896126f99190614114565b6127039190614100565b9150620f4240600c54886127179190614114565b6127219190614100565b905083600d5461273191906140e8565b600d55600e546127429084906140e8565b600e55600f546127539083906140e8565b600f556010546127649082906140e8565b60105581612772858a614133565b61277c9190614133565b9750806127898489614133565b6127939190614133565b96505b6040805189815260208101899052908101859052606081018490526080810183905260a081018290527f3d6c49c42d0f03a60a09b6137b84abbd7a0bf738324602cb48343f830e3db4709060c00160405180910390a150505050505093509350935093565b600854600090819081908190819061282890600160a01b8104600290810b91600160b81b9004900b6123c1565b600854949750909550935061285792600160a01b8104600290810b9350600160b81b909104900b905085613142565b600c54600b5492975090955060009161287091906140e8565b61287d90620f4240614133565b9050620f4240612896826001600160801b038616614114565b6128a09190614100565b6128aa90876140e8565b9550620f42406128c3826001600160801b038516614114565b6128cd9190614100565b6128d790866140e8565b9450505050509091565b6001600160a01b0382166129415760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b606482015260840161080e565b6001600160a01b038216600090815260208190526040902054818110156129b55760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b606482015260840161080e565b6001600160a01b03831660009081526020819052604081208383039055600280548492906129e4908490614133565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a3505050565b6000806000612a3e87876123c1565b50505050905060008486836001600160801b0316612a5c9190614114565b612a669190614100565b90508015612ad857600080600080612a878c8c612a82886132db565b6124d5565b9350935093509350888a83612a9c9190614114565b612aa69190614100565b612ab090856140e8565b975088612abd8b83614114565b612ac79190614100565b612ad190846140e8565b9650505050505b505094509492505050565b8160020b8360020b12612b305760405162461bcd60e51b81526020600482015260156024820152743a34b1b5a637bbb2b9101e103a34b1b5aab83832b960591b604482015260640161080e565b620d89e719600284900b1215612b7c5760405162461bcd60e51b81526020600482015260116024820152707469636b4c6f77657220746f6f206c6f7760781b604482015260640161080e565b612b89620d89e7196141d3565b60020b8260020b1315612bd35760405162461bcd60e51b81526020600482015260126024820152710e8d2c6d6aae0e0cae440e8dede40d0d2ced60731b604482015260640161080e565b612bdd81846141b1565b60020b15612c2d5760405162461bcd60e51b815260206004820152601760248201527f7469636b4c6f7765722025207469636b53706163696e67000000000000000000604482015260640161080e565b612c3781836141b1565b60020b15610e425760405162461bcd60e51b815260206004820152601760248201527f7469636b55707065722025207469636b53706163696e67000000000000000000604482015260640161080e565b6000612c91610d10565b90506000612c9d610c54565b905060007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316633850c7bd6040518163ffffffff1660e01b815260040160e06040518083038186803b158015612cfa57600080fd5b505afa158015612d0e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612d329190613e34565b50505050509150507f210f60adf1db7a02e9db9a49ec7c2eb2060c516cbcfd01a0c05288144738ee5d818484612d6760025490565b6040805160029590950b8552602085019390935291830152606082015260800160405180910390a18615612e90576001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001663128acb083060008a1380612ddc57612dd78b6141f6565b612dde565b8a5b6040516001600160e01b031960e086901b1681526001600160a01b03938416600482015291151560248301526044820152908916606482015260a06084820152600060a482015260c4016040805180830381600087803b158015612e4157600080fd5b505af1158015612e55573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612e799190613cbb565b5050612e83610d10565b9250612e8d610c54565b91505b6000612e9e86868686612f83565b90506001600160801b03811615612f7957604051633c8a7d8d60e01b8152306004820152600287810b602483015286900b60448201526001600160801b038216606482015260a06084820152600060a48201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031690633c8a7d8d9060c4016040805180830381600087803b158015612f3e57600080fd5b505af1158015612f52573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612f769190613cbb565b50505b5050505050505050565b6000807f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316633850c7bd6040518163ffffffff1660e01b815260040160e06040518083038186803b158015612fdf57600080fd5b505afa158015612ff3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906130179190613e34565b505050505050905061303c8161302c886132f8565b613035886132f8565b8787613618565b9695505050505050565b60085460009081908190819061307190600160a01b8104600290810b91600160b81b9004900b6123c1565b94509450505092506000600c54600b5461308b91906140e8565b61309890620f4240614133565b90506000620f42406130b3836001600160801b038716614114565b6130bd9190614100565b6130c5610d10565b6130cf91906140e8565b90506000620f42406130ea846001600160801b038716614114565b6130f49190614100565b6130fc610c54565b61310691906140e8565b60085490915061312d90600160a01b8104600290810b91600160b81b9004900b8484612f83565b61313790876140bd565b965050505050505090565b60008060007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316633850c7bd6040518163ffffffff1660e01b815260040160e06040518083038186803b1580156131a057600080fd5b505afa1580156131b4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906131d89190613e34565b50505050505090506131fc816131ed886132f8565b6131f6886132f8565b876136dc565b9250925050935093915050565b600061325e826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166137789092919063ffffffff16565b805190915015610e42578080602001905181019061327c9190613c5e565b610e425760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b606482015260840161080e565b60006001600160801b038211156132f4576132f4614213565b5090565b60008060008360020b1261330f578260020b613317565b8260020b6000035b9050620d89e881111561333d576040516315e4079d60e11b815260040160405180910390fd5b60006001821661335157600160801b613363565b6ffffcb933bd6fad37aa2d162d1a5940015b70ffffffffffffffffffffffffffffffffff1690506002821615613397576ffff97272373d413259a46990580e213a0260801c5b60048216156133b6576ffff2e50f5f656932ef12357cf3c7fdcc0260801c5b60088216156133d5576fffe5caca7e10e4e61c3624eaa0941cd00260801c5b60108216156133f4576fffcb9843d60f6159c9db58835c9266440260801c5b6020821615613413576fff973b41fa98c081472e6896dfb254c00260801c5b6040821615613432576fff2ea16466c96a3843ec78b326b528610260801c5b6080821615613451576ffe5dee046a99a2a811c461f1969c30530260801c5b610100821615613471576ffcbe86c7900a88aedcffc83b479aa3a40260801c5b610200821615613491576ff987a7253ac413176f2b074cf7815e540260801c5b6104008216156134b1576ff3392b0822b70005940c7a398e4b70f30260801c5b6108008216156134d1576fe7159475a2c29b7443b29c7fa6e889d90260801c5b6110008216156134f1576fd097f3bdfd2022b8845ad8f792aa58250260801c5b612000821615613511576fa9f746462d870fdf8a65dc1f90e061e50260801c5b614000821615613531576f70d869a156d2a1b890bb3df62baf32f70260801c5b618000821615613551576f31be135f97d08fd981231505542fcfa60260801c5b62010000821615613572576f09aa508b5b7a84e1c677de54f3e99bc90260801c5b62020000821615613592576e5d6af8dedb81196699c329225ee6040260801c5b620400008216156135b1576d2216e584f5fa1ea926041bedfe980260801c5b620800008216156135ce576b048a170391f7dc42444e8fa20260801c5b60008460020b13156135ef5780600019816135eb576135eb61423f565b0490505b640100000000810615613603576001613606565b60005b60ff16602082901c0192505050919050565b6000836001600160a01b0316856001600160a01b03161115613638579293925b846001600160a01b0316866001600160a01b0316116136635761365c85858561378f565b90506136d3565b836001600160a01b0316866001600160a01b031610156136c557600061368a87868661378f565b905060006136998789866137f2565b9050806001600160801b0316826001600160801b0316106136ba57806136bc565b815b925050506136d3565b6136d08585846137f2565b90505b95945050505050565b600080836001600160a01b0316856001600160a01b031611156136fd579293925b846001600160a01b0316866001600160a01b0316116137285761372185858561382f565b915061376f565b836001600160a01b0316866001600160a01b031610156137615761374d86858561382f565b915061375a85878561389e565b905061376f565b61376c85858561389e565b90505b94509492505050565b606061378784846000856138e1565b949350505050565b6000826001600160a01b0316846001600160a01b031611156137af579192915b60006137d2856001600160a01b0316856001600160a01b0316600160601b613a12565b90506136d36137ed84838888036001600160a01b0316613a12565b613ac5565b6000826001600160a01b0316846001600160a01b03161115613812579192915b6137876137ed83600160601b8787036001600160a01b0316613a12565b6000826001600160a01b0316846001600160a01b0316111561384f579192915b836001600160a01b0316613888606060ff16846001600160801b0316901b8686036001600160a01b0316866001600160a01b0316613a12565b816138955761389561423f565b04949350505050565b6000826001600160a01b0316846001600160a01b031611156138be579192915b613787826001600160801b03168585036001600160a01b0316600160601b613a12565b6060824710156139425760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b606482015260840161080e565b6001600160a01b0385163b6139995760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161080e565b600080866001600160a01b031685876040516139b59190613fcc565b60006040518083038185875af1925050503d80600081146139f2576040519150601f19603f3d011682016040523d82523d6000602084013e6139f7565b606091505b5091509150613a07828286613ae0565b979650505050505050565b600080806000198587098587029250828110838203039150508060001415613a4c5760008411613a4157600080fd5b50829004905061088f565b808411613a5857600080fd5b6000848688096000868103871696879004966002600389028118808a02820302808a02820302808a02820302808a02820302808a02820302808a02909103029181900381900460010186841190950394909402919094039290920491909117919091029150509392505050565b806001600160801b0381168114613adb57600080fd5b919050565b60608315613aef57508161088f565b825115613aff5782518084602001fd5b8160405162461bcd60e51b815260040161080e9190613fe8565b80518015158114613adb57600080fd5b60008083601f840112613b3b57600080fd5b50813567ffffffffffffffff811115613b5357600080fd5b602083019150836020828501011115613b6b57600080fd5b9250929050565b80516001600160801b0381168114613adb57600080fd5b805161ffff81168114613adb57600080fd5b600060208284031215613bad57600080fd5b813561088f81614255565b60008060408385031215613bcb57600080fd5b8235613bd681614255565b91506020830135613be681614255565b809150509250929050565b600080600060608486031215613c0657600080fd5b8335613c1181614255565b92506020840135613c2181614255565b929592945050506040919091013590565b60008060408385031215613c4557600080fd5b8235613c5081614255565b946020939093013593505050565b600060208284031215613c7057600080fd5b61088f82613b19565b600080600060608486031215613c8e57600080fd5b8335613c9981614255565b9250602084013591506040840135613cb081614255565b809150509250925092565b60008060408385031215613cce57600080fd5b505080516020909101519092909150565b60008060008060608587031215613cf557600080fd5b8435935060208501359250604085013567ffffffffffffffff811115613d1a57600080fd5b613d2687828801613b29565b95989497509550505050565b60008060408385031215613d4557600080fd5b823591506020830135613be681614255565b60008060008060808587031215613d6d57600080fd5b843593506020850135613d7f81614255565b92506040850135613d8f8161426d565b91506060850135613d9f8161426d565b939692955090935050565b60008060408385031215613dbd57600080fd5b613dc683613b72565b9150613dd460208401613b72565b90509250929050565b600080600080600060a08688031215613df557600080fd5b613dfe86613b72565b94506020860151935060408601519250613e1a60608701613b72565b9150613e2860808701613b72565b90509295509295909350565b600080600080600080600060e0888a031215613e4f57600080fd5b8751613e5a81614255565b6020890151909750613e6b8161426d565b9550613e7960408901613b89565b9450613e8760608901613b89565b9350613e9560808901613b89565b925060a088015160ff81168114613eab57600080fd5b9150613eb960c08901613b19565b905092959891949750929550565b600060208284031215613ed957600080fd5b5035919050565b600060208284031215613ef257600080fd5b5051919050565b60008060408385031215613f0c57600080fd5b50508035926020909101359150565b600080600060608486031215613f3057600080fd5b83359250602084013591506040840135613cb081614255565b60008060008060808587031215613f5f57600080fd5b8435935060208501359250604085013591506060850135613d9f81614255565b600080600080600060a08688031215613f9757600080fd5b853594506020860135935060408601359250606086013591506080860135613fbe81614255565b809150509295509295909350565b60008251613fde81846020870161414a565b9190910192915050565b602081526000825180602084015261400781604085016020870161414a565b601f01601f19169190910160400192915050565b6020808252600a9082015269676f7665726e616e636560b01b604082015260600190565b6020808252600b908201526a19195858dd1a5d985d195960aa1b604082015260600190565b602080825260089082015267737472617465677960c01b604082015260600190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b60006001600160801b038083168185168083038211156140df576140df614229565b01949350505050565b600082198211156140fb576140fb614229565b500190565b60008261410f5761410f61423f565b500490565b600081600019048311821515161561412e5761412e614229565b500290565b60008282101561414557614145614229565b500390565b60005b8381101561416557818101518382015260200161414d565b838111156118085750506000910152565b600181811c9082168061418a57607f821691505b602082108114156141ab57634e487b7160e01b600052602260045260246000fd5b50919050565b60008260020b806141c4576141c461423f565b808360020b0791505092915050565b60008160020b627fffff198114156141ed576141ed614229565b60000392915050565b6000600160ff1b82141561420c5761420c614229565b5060000390565b634e487b7160e01b600052600160045260246000fd5b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b6001600160a01b038116811461426a57600080fd5b50565b8060020b811461426a57600080fdfea26469706673582212201e80d26d63e72465916e4274490ba70bb4b0328bddccd6bc5c72d611e1fef19b64736f6c6343000807003300000000000000000000000088e6a0c2ddd26feeb64f039a2c41296fcb3f56400000000000000000000000002684ed5b4b22206d50f8a323068cc1d43229f2aa0000000000000000000000002684ed5b4b22206d50f8a323068cc1d43229f2aa0000000000000000000000000000000000000000000000000000000000030d40000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000000000000000000000000180000000000000000000000000f5da28239015dab940375808088532ed25a063a3000000000000000000000000000000000000000000000000000000000003177200000000000000000000000000000000000000000000000000000000000317d6000000000000000000000000000000000000000000000000000000000000001a426f6f73746572706f6f6c20746f6b656e205553442f5745544800000000000000000000000000000000000000000000000000000000000000000000000000044250543100000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106102f15760003560e01c806395d89b411161019d578063d21220a7116100e9578063e716e062116100a2578063f48ac5d01161007c578063f48ac5d0146106d7578063fa082743146106e0578063fa461e33146106f4578063fd4e4d751461070757600080fd5b8063e716e0621461069e578063f347f106146106b1578063f39c38a0146106c457600080fd5b8063d21220a714610618578063d331bef71461063f578063d348799714610652578063d96d659414610665578063dc2c256f14610678578063dd62ed3e1461068b57600080fd5b8063ab033ea911610156578063b9480d4a11610130578063b9480d4a146105cd578063b9f835ef146105d6578063ca8460bc146105de578063d0c93a7c146105f157600080fd5b8063ab033ea91461057f578063ac6a24df14610592578063ae445278146105ba57600080fd5b806395d89b4114610518578063a457c2d714610520578063a4ef9cf414610533578063a58c4ae614610546578063a8c62e7614610559578063a9059cbb1461056c57600080fd5b8063395093511161025c5780636dcf811d116102155780638405f1d4116101ef5780638405f1d4146104cd578063888a9134146104e05780638929399f146105075780639026b8bc1461050f57600080fd5b80636dcf811d1461048e5780636e3447da1461049b57806370a08231146104a457600080fd5b8063395093511461043257806341aec538146104455780634526196e1461044d5780635aa6e67514610460578063629d940514610473578063686da1351461047b57600080fd5b8063238efcbc116102ae578063238efcbc146103bc57806323b872dd146103c657806330e4d533146103d9578063313ce567146103e257806333a100ca146103f1578063365d0ed71461040457600080fd5b806306fdde03146102f6578063095ea7b3146103145780630dfe1681146103375780631060e0cb1461037657806316f0115b1461038d57806318160ddd146103b4575b600080fd5b6102fe61071a565b60405161030b9190613fe8565b60405180910390f35b610327610322366004613c32565b6107ac565b604051901515815260200161030b565b61035e7f000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb4881565b6040516001600160a01b03909116815260200161030b565b61037f600f5481565b60405190815260200161030b565b61035e7f00000000000000000000000088e6a0c2ddd26feeb64f039a2c41296fcb3f564081565b60025461037f565b6103c46107c4565b005b6103276103d4366004613bf1565b610870565b61037f600d5481565b6040516012815260200161030b565b6103c46103ff366004613b9b565b610896565b610417610412366004613f7f565b610966565b6040805193845260208401929092529082015260600161030b565b610327610440366004613c32565b610c32565b61037f610c54565b600a5461035e906001600160a01b031681565b60065461035e906001600160a01b031681565b61037f610d10565b6103c4610489366004613f1b565b610d67565b6011546103279060ff1681565b61037f60105481565b61037f6104b2366004613b9b565b6001600160a01b031660009081526020819052604090205490565b6104176104db366004613ef9565b610e47565b6008546104f490600160b81b900460020b81565b60405160029190910b815260200161030b565b6103c4610e88565b61037f600c5481565b6102fe610f63565b61032761052e366004613c32565b610f72565b6103c4610541366004613b9b565b610ff8565b6103c4610554366004613ec7565b6110e3565b60085461035e906001600160a01b031681565b61032761057a366004613c32565b61119c565b6103c461058d366004613b9b565b6111aa565b6105a56105a0366004613ec7565b611265565b6040805192835260208301919091520161030b565b6103c46105c8366004613b9b565b6112ec565b61037f600b5481565b6105a56113d7565b6103c46105ec366004613f1b565b61142d565b6104f47f000000000000000000000000000000000000000000000000000000000000000a81565b61035e7f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc281565b6105a561064d366004613f49565b6114ce565b6103c4610660366004613cdf565b61175f565b6103c4610673366004613d32565b61180e565b6103c4610686366004613c79565b6118b8565b61037f610699366004613bb8565b61199e565b6103c46106ac366004613d57565b6119c9565b6103c46106bf366004613ec7565b611b17565b60075461035e906001600160a01b031681565b61037f600e5481565b6008546104f490600160a01b900460020b81565b6103c4610702366004613cdf565b611bd0565b60095461035e906001600160a01b031681565b60606003805461072990614176565b80601f016020809104026020016040519081016040528092919081815260200182805461075590614176565b80156107a25780601f10610777576101008083540402835291602001916107a2565b820191906000526020600020905b81548152906001019060200180831161078557829003601f168201915b5050505050905090565b6000336107ba818585611c7f565b5060019392505050565b6007546001600160a01b031633146108175760405162461bcd60e51b815260206004820152601160248201527070656e64696e67476f7665726e616e636560781b60448201526064015b60405180910390fd5b600654604080516001600160a01b0390921682523360208301527f4534e9339c464936b89c0f6508be9266c0426dbca2193a736976908c72dbe160910160405180910390a1600680546001600160a01b03191633179055565b60003361087e858285611da3565b610889858585611e17565b60019150505b9392505050565b6006546001600160a01b031633146108c05760405162461bcd60e51b815260040161080e9061401b565b6001600160a01b038116158015906108e157506001600160a01b0381163014155b6108fd5760405162461bcd60e51b815260040161080e90614064565b600854604080516001600160a01b03928316815291831660208301527f1157d3718a643eef40ad506b7553d0fb68122469510f4275be321d88e0d456b9910160405180910390a1600880546001600160a01b0319166001600160a01b0392909216919091179055565b60008060006002600554141561098e5760405162461bcd60e51b815260040161080e90614086565b600260055560115460ff16156109b65760405162461bcd60e51b815260040161080e9061403f565b60008811806109c55750600087115b610a115760405162461bcd60e51b815260206004820181905260248201527f616d6f756e743044657369726564206f7220616d6f756e743144657369726564604482015260640161080e565b6001600160a01b03841615801590610a3257506001600160a01b0384163014155b610a635760405162461bcd60e51b8152602060048201526002602482015261746f60f01b604482015260640161080e565b600854610a8590600160a01b8104600290810b91600160b81b9004900b611fe5565b610a8f88886120bb565b9194509250905082610acc5760405162461bcd60e51b815260206004820152600660248201526573686172657360d01b604482015260640161080e565b85821015610b095760405162461bcd60e51b815260206004820152600a60248201526930b6b7bab73a1826b4b760b11b604482015260640161080e565b84811015610b465760405162461bcd60e51b815260206004820152600a60248201526930b6b7bab73a18a6b4b760b11b604482015260640161080e565b8115610b8157610b816001600160a01b037f000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48163330856121f8565b8015610bbc57610bbc6001600160a01b037f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2163330846121f8565b610bc68484612263565b60408051848152602081018490529081018290526001600160a01b0385169033907f4e2ca0515ed1aef1395f66b5303bb5d6f1bf9d61a353fa53f73f8ac9973fa9f69060600160405180910390a3610c1f600080612343565b6001600581905550955095509592505050565b6000336107ba818585610c45838361199e565b610c4f91906140e8565b611c7f565b601054600e546040516370a0823160e01b815230600482015260009291906001600160a01b037f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc216906370a08231906024015b60206040518083038186803b158015610cbf57600080fd5b505afa158015610cd3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cf79190613ee0565b610d019190614133565b610d0b9190614133565b905090565b600f54600d546040516370a0823160e01b815230600482015260009291906001600160a01b037f000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb4816906370a0823190602401610ca7565b600a546001600160a01b03163314610dac5760405162461bcd60e51b815260206004820152600860248201526730b2323932b9b9a160c11b604482015260640161080e565b82600f54610dba9190614133565b600f55601054610dcb908390614133565b6010558215610e0857610e086001600160a01b037f000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48168285612391565b8115610e4257610e426001600160a01b037f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2168284612391565b505050565b60085460009081908190610e7090600160a01b8104600290810b91600160b81b9004900b611fe5565b610e7a85856120bb565b919790965090945092505050565b6006546001600160a01b03163314610eb25760405162461bcd60e51b815260040161080e9061401b565b60115460ff1615610ed55760405162461bcd60e51b815260040161080e9061403f565b6011805460ff19166001179055600854600090610f0790600160a01b8104600290810b91600160b81b9004900b6123c1565b5050600854929350610f3392600160a01b8104600290810b9350600160b81b909104900b9050836124d5565b50506040517fc2a8834045efeaf0b37df1cf2e5979bff82a0c7f93c99b649a004940ef3cda45925060009150a150565b60606004805461072990614176565b60003381610f80828661199e565b905083811015610fe05760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b606482015260840161080e565b610fed8286868403611c7f565b506001949350505050565b6006546001600160a01b031633146110225760405162461bcd60e51b815260040161080e9061401b565b6001600160a01b0381161580159061104357506001600160a01b0381163014155b61107a5760405162461bcd60e51b815260206004820152600860248201526730b2323932b9b9a160c11b604482015260640161080e565b600a54604080516001600160a01b03928316815291831660208301527f693689e2ee122a2e7c2db2ad09560925a2bfbab01f4054cd9fab6289ab338b16910160405180910390a1600a80546001600160a01b0319166001600160a01b0392909216919091179055565b6006546001600160a01b0316331461110d5760405162461bcd60e51b815260040161080e9061401b565b620f4240600b548261111f91906140e8565b1061115b5760405162461bcd60e51b815260206004820152600c60248201526b383937ba37b1b7b62332b2a160a11b604482015260640161080e565b600c5460408051918252602082018390527f1435456c4cdddc14bafc4827cf1093128afb1012ef9ec54145d9c798572ecb2f910160405180910390a1600c55565b6000336107ba818585611e17565b6006546001600160a01b031633146111d45760405162461bcd60e51b815260040161080e9061401b565b6001600160a01b038116158015906111f557506001600160a01b0381163014155b6112115760405162461bcd60e51b815260040161080e9061401b565b600780546001600160a01b0319166001600160a01b0383169081179091556040519081527f3b993242201943fb861f1a018a7d246a1ad1d9bfdcde2be84c918dda5791af6d9060200160405180910390a150565b600080600061127360025490565b905080156112de5760085461129d90600160a01b8104600290810b91600160b81b9004900b611fe5565b6112a56127fb565b9093509150806112b58585614114565b6112bf9190614100565b816112ca8685614114565b6112d49190614100565b90935091506112e6565b600092508291505b50915091565b6006546001600160a01b031633146113165760405162461bcd60e51b815260040161080e9061401b565b6001600160a01b0381161580159061133757506001600160a01b0381163014155b61136e5760405162461bcd60e51b8152602060048201526008602482015267616464726573734160c01b604482015260640161080e565b600954604080516001600160a01b03928316815291831660208301527f588b083c323c665bbd4bab09381c646fdc0bf760cd5e303ae3329eec856b7e9a910160405180910390a1600980546001600160a01b0319166001600160a01b0392909216919091179055565b60085460009081906113fe90600160a01b8104600290810b91600160b81b9004900b611fe5565b60085461142290600160a01b8104600290810b91600160b81b9004900b60006124d5565b909590945092505050565b6009546001600160a01b031633146114725760405162461bcd60e51b8152602060048201526008602482015267616464726573734160c01b604482015260640161080e565b82600d546114809190614133565b600d55600e54611491908390614133565b600e558215610e0857610e086001600160a01b037f000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48168285612391565b600080600260055414156114f45760405162461bcd60e51b815260040161080e90614086565b60026005558561152f5760405162461bcd60e51b815260206004820152600660248201526573686172657360d01b604482015260640161080e565b6001600160a01b0383161580159061155057506001600160a01b0383163014155b6115815760405162461bcd60e51b8152602060048201526002602482015261746f60f01b604482015260640161080e565b600061158c60025490565b905061159833886128e1565b60115460ff16156115e85780876115ad610d10565b6115b79190614114565b6115c19190614100565b925080876115cd610c54565b6115d79190614114565b6115e19190614100565b9150611612565b60085461160c90600160a01b8104600290810b91600160b81b9004900b8984612a2f565b90935091505b8583101561164f5760405162461bcd60e51b815260206004820152600a60248201526930b6b7bab73a1826b4b760b11b604482015260640161080e565b8482101561168c5760405162461bcd60e51b815260206004820152600a60248201526930b6b7bab73a18a6b4b760b11b604482015260640161080e565b82156116c6576116c66001600160a01b037f000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48168585612391565b8115611700576117006001600160a01b037f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2168584612391565b60408051888152602081018590529081018390526001600160a01b0385169033907febff2602b3f468259e1e99f613fed6691f3a6526effe6ef3e768ba7ae7a36c4f9060600160405180910390a3506001600555909590945092505050565b336001600160a01b037f00000000000000000000000088e6a0c2ddd26feeb64f039a2c41296fcb3f5640161461179457600080fd5b83156117ce576117ce6001600160a01b037f000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48163386612391565b8215611808576118086001600160a01b037f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2163385612391565b50505050565b600260055414156118315760405162461bcd60e51b815260040161080e90614086565b600260055560115460ff16156118595760405162461bcd60e51b815260040161080e9061403f565b6008546001600160a01b031633146118835760405162461bcd60e51b815260040161080e90614064565b6008546118a590600160a01b8104600290810b91600160b81b9004900b611fe5565b6118af8282612343565b50506001600555565b6006546001600160a01b031633146118e25760405162461bcd60e51b815260040161080e9061401b565b7f000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb486001600160a01b0316836001600160a01b03161415801561195657507f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b0316836001600160a01b031614155b61198a5760405162461bcd60e51b81526020600482015260056024820152643a37b5b2b760d91b604482015260640161080e565b610e426001600160a01b0384168284612391565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b600260055414156119ec5760405162461bcd60e51b815260040161080e90614086565b600260055560115460ff1615611a145760405162461bcd60e51b815260040161080e9061403f565b6008546001600160a01b03163314611a3e5760405162461bcd60e51b815260040161080e90614064565b611a6982827f000000000000000000000000000000000000000000000000000000000000000a612ae3565b600854600090611a8e90600160a01b8104600290810b91600160b81b9004900b6123c1565b5050600854929350611aba92600160a01b8104600290810b9350600160b81b909104900b9050836124d5565b50505050611aca85858585612c87565b506008805465ffffffffffff60a01b1916600160b81b600293840b62ffffff9081169190910262ffffff60a01b191691909117600160a01b9490930b169290920217905550506001600555565b6006546001600160a01b03163314611b415760405162461bcd60e51b815260040161080e9061401b565b620f4240600c5482611b5391906140e8565b10611b8f5760405162461bcd60e51b815260206004820152600c60248201526b70726f746f636f6c4665654160a01b604482015260640161080e565b600b5460408051918252602082018390527f660d29b867303890422e7f1a49a5ddef9431c9fc1f3b452b349991ae2a792a5e910160405180910390a1600b55565b336001600160a01b037f00000000000000000000000088e6a0c2ddd26feeb64f039a2c41296fcb3f56401614611c0557600080fd5b6000841315611c4257611c426001600160a01b037f000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48163386612391565b6000831315611808576118086001600160a01b037f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2163385612391565b6001600160a01b038316611ce15760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b606482015260840161080e565b6001600160a01b038216611d425760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b606482015260840161080e565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6000611daf848461199e565b905060001981146118085781811015611e0a5760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e6365000000604482015260640161080e565b6118088484848403611c7f565b6001600160a01b038316611e7b5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b606482015260840161080e565b6001600160a01b038216611edd5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b606482015260840161080e565b6001600160a01b03831660009081526020819052604090205481811015611f555760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b606482015260840161080e565b6001600160a01b03808516600090815260208190526040808220858503905591851681529081208054849290611f8c9084906140e8565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051611fd891815260200190565b60405180910390a3611808565b6000611ff183836123c1565b5050505090506000816001600160801b03161115610e425760405163a34123a760e01b8152600284810b600483015283900b6024820152600060448201527f00000000000000000000000088e6a0c2ddd26feeb64f039a2c41296fcb3f56406001600160a01b03169063a34123a7906064016040805180830381600087803b15801561207c57600080fd5b505af1158015612090573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120b49190613cbb565b5050505050565b6008546000908190819081906120e890600160a01b8104600290810b91600160b81b9004900b8888612f83565b905060006120f560025490565b90506000612101613046565b604080516001600160801b038084168252861660208201529192507fd87f89f6941228ae6a9bd3ad6dcdda3e3da364ffca62995842553a85508bd889910160405180910390a181158061215d57506000816001600160801b0316115b61216957612169614213565b60085461218c90600160a01b8104600290810b91600160b81b9004900b85613142565b909550935061219c8560016140e8565b6121a78560016140e8565b9095509350816121c257826001600160801b031695506121ee565b806001600160801b031682846001600160801b03166121e19190614114565b6121eb9190614100565b95505b5050509250925092565b6040516001600160a01b03808516602483015283166044820152606481018290526118089085906323b872dd60e01b906084015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152613209565b6001600160a01b0382166122b95760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640161080e565b80600260008282546122cb91906140e8565b90915550506001600160a01b038216600090815260208190526040812080548392906122f89084906140e8565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35b5050565b60085461236790600160a01b8104600290810b91600160b81b9004900b60006124d5565b505060085461233f92508491508390600160a01b8104600290810b91600160b81b9004900b612c87565b6040516001600160a01b038316602482015260448101829052610e4290849063a9059cbb60e01b9060640161222c565b6000806000806000806124263089896040805160609490941b6bffffffffffffffffffffffff1916602080860191909152600293840b60e890811b60348701529290930b90911b60378401528051601a818503018152603a9093019052815191012090565b60405163514ea4bf60e01b8152600481018290529091507f00000000000000000000000088e6a0c2ddd26feeb64f039a2c41296fcb3f56406001600160a01b03169063514ea4bf9060240160a06040518083038186803b15801561248957600080fd5b505afa15801561249d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124c19190613ddd565b939c929b5090995097509095509350505050565b60008080806001600160801b038516156125a25760405163a34123a760e01b8152600288810b600483015287900b60248201526001600160801b03861660448201527f00000000000000000000000088e6a0c2ddd26feeb64f039a2c41296fcb3f56406001600160a01b03169063a34123a7906064016040805180830381600087803b15801561256457600080fd5b505af1158015612578573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061259c9190613cbb565b90945092505b6040516309e3d67b60e31b8152306004820152600288810b602483015287900b60448201526001600160801b0360648201819052608482015260009081906001600160a01b037f00000000000000000000000088e6a0c2ddd26feeb64f039a2c41296fcb3f56401690634f1eb3d89060a4016040805180830381600087803b15801561262d57600080fd5b505af1158015612641573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906126659190613daa565b6001600160801b03918216935016905061267f8683614133565b935061268b8582614133565b92506000806000806000600c54600b546126a591906140e8565b111561279657620f4240600b54896126bd9190614114565b6126c79190614100565b9350620f4240600b54886126db9190614114565b6126e59190614100565b9250620f4240600c54896126f99190614114565b6127039190614100565b9150620f4240600c54886127179190614114565b6127219190614100565b905083600d5461273191906140e8565b600d55600e546127429084906140e8565b600e55600f546127539083906140e8565b600f556010546127649082906140e8565b60105581612772858a614133565b61277c9190614133565b9750806127898489614133565b6127939190614133565b96505b6040805189815260208101899052908101859052606081018490526080810183905260a081018290527f3d6c49c42d0f03a60a09b6137b84abbd7a0bf738324602cb48343f830e3db4709060c00160405180910390a150505050505093509350935093565b600854600090819081908190819061282890600160a01b8104600290810b91600160b81b9004900b6123c1565b600854949750909550935061285792600160a01b8104600290810b9350600160b81b909104900b905085613142565b600c54600b5492975090955060009161287091906140e8565b61287d90620f4240614133565b9050620f4240612896826001600160801b038616614114565b6128a09190614100565b6128aa90876140e8565b9550620f42406128c3826001600160801b038516614114565b6128cd9190614100565b6128d790866140e8565b9450505050509091565b6001600160a01b0382166129415760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b606482015260840161080e565b6001600160a01b038216600090815260208190526040902054818110156129b55760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b606482015260840161080e565b6001600160a01b03831660009081526020819052604081208383039055600280548492906129e4908490614133565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a3505050565b6000806000612a3e87876123c1565b50505050905060008486836001600160801b0316612a5c9190614114565b612a669190614100565b90508015612ad857600080600080612a878c8c612a82886132db565b6124d5565b9350935093509350888a83612a9c9190614114565b612aa69190614100565b612ab090856140e8565b975088612abd8b83614114565b612ac79190614100565b612ad190846140e8565b9650505050505b505094509492505050565b8160020b8360020b12612b305760405162461bcd60e51b81526020600482015260156024820152743a34b1b5a637bbb2b9101e103a34b1b5aab83832b960591b604482015260640161080e565b620d89e719600284900b1215612b7c5760405162461bcd60e51b81526020600482015260116024820152707469636b4c6f77657220746f6f206c6f7760781b604482015260640161080e565b612b89620d89e7196141d3565b60020b8260020b1315612bd35760405162461bcd60e51b81526020600482015260126024820152710e8d2c6d6aae0e0cae440e8dede40d0d2ced60731b604482015260640161080e565b612bdd81846141b1565b60020b15612c2d5760405162461bcd60e51b815260206004820152601760248201527f7469636b4c6f7765722025207469636b53706163696e67000000000000000000604482015260640161080e565b612c3781836141b1565b60020b15610e425760405162461bcd60e51b815260206004820152601760248201527f7469636b55707065722025207469636b53706163696e67000000000000000000604482015260640161080e565b6000612c91610d10565b90506000612c9d610c54565b905060007f00000000000000000000000088e6a0c2ddd26feeb64f039a2c41296fcb3f56406001600160a01b0316633850c7bd6040518163ffffffff1660e01b815260040160e06040518083038186803b158015612cfa57600080fd5b505afa158015612d0e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612d329190613e34565b50505050509150507f210f60adf1db7a02e9db9a49ec7c2eb2060c516cbcfd01a0c05288144738ee5d818484612d6760025490565b6040805160029590950b8552602085019390935291830152606082015260800160405180910390a18615612e90576001600160a01b037f00000000000000000000000088e6a0c2ddd26feeb64f039a2c41296fcb3f56401663128acb083060008a1380612ddc57612dd78b6141f6565b612dde565b8a5b6040516001600160e01b031960e086901b1681526001600160a01b03938416600482015291151560248301526044820152908916606482015260a06084820152600060a482015260c4016040805180830381600087803b158015612e4157600080fd5b505af1158015612e55573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612e799190613cbb565b5050612e83610d10565b9250612e8d610c54565b91505b6000612e9e86868686612f83565b90506001600160801b03811615612f7957604051633c8a7d8d60e01b8152306004820152600287810b602483015286900b60448201526001600160801b038216606482015260a06084820152600060a48201527f00000000000000000000000088e6a0c2ddd26feeb64f039a2c41296fcb3f56406001600160a01b031690633c8a7d8d9060c4016040805180830381600087803b158015612f3e57600080fd5b505af1158015612f52573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612f769190613cbb565b50505b5050505050505050565b6000807f00000000000000000000000088e6a0c2ddd26feeb64f039a2c41296fcb3f56406001600160a01b0316633850c7bd6040518163ffffffff1660e01b815260040160e06040518083038186803b158015612fdf57600080fd5b505afa158015612ff3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906130179190613e34565b505050505050905061303c8161302c886132f8565b613035886132f8565b8787613618565b9695505050505050565b60085460009081908190819061307190600160a01b8104600290810b91600160b81b9004900b6123c1565b94509450505092506000600c54600b5461308b91906140e8565b61309890620f4240614133565b90506000620f42406130b3836001600160801b038716614114565b6130bd9190614100565b6130c5610d10565b6130cf91906140e8565b90506000620f42406130ea846001600160801b038716614114565b6130f49190614100565b6130fc610c54565b61310691906140e8565b60085490915061312d90600160a01b8104600290810b91600160b81b9004900b8484612f83565b61313790876140bd565b965050505050505090565b60008060007f00000000000000000000000088e6a0c2ddd26feeb64f039a2c41296fcb3f56406001600160a01b0316633850c7bd6040518163ffffffff1660e01b815260040160e06040518083038186803b1580156131a057600080fd5b505afa1580156131b4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906131d89190613e34565b50505050505090506131fc816131ed886132f8565b6131f6886132f8565b876136dc565b9250925050935093915050565b600061325e826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166137789092919063ffffffff16565b805190915015610e42578080602001905181019061327c9190613c5e565b610e425760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b606482015260840161080e565b60006001600160801b038211156132f4576132f4614213565b5090565b60008060008360020b1261330f578260020b613317565b8260020b6000035b9050620d89e881111561333d576040516315e4079d60e11b815260040160405180910390fd5b60006001821661335157600160801b613363565b6ffffcb933bd6fad37aa2d162d1a5940015b70ffffffffffffffffffffffffffffffffff1690506002821615613397576ffff97272373d413259a46990580e213a0260801c5b60048216156133b6576ffff2e50f5f656932ef12357cf3c7fdcc0260801c5b60088216156133d5576fffe5caca7e10e4e61c3624eaa0941cd00260801c5b60108216156133f4576fffcb9843d60f6159c9db58835c9266440260801c5b6020821615613413576fff973b41fa98c081472e6896dfb254c00260801c5b6040821615613432576fff2ea16466c96a3843ec78b326b528610260801c5b6080821615613451576ffe5dee046a99a2a811c461f1969c30530260801c5b610100821615613471576ffcbe86c7900a88aedcffc83b479aa3a40260801c5b610200821615613491576ff987a7253ac413176f2b074cf7815e540260801c5b6104008216156134b1576ff3392b0822b70005940c7a398e4b70f30260801c5b6108008216156134d1576fe7159475a2c29b7443b29c7fa6e889d90260801c5b6110008216156134f1576fd097f3bdfd2022b8845ad8f792aa58250260801c5b612000821615613511576fa9f746462d870fdf8a65dc1f90e061e50260801c5b614000821615613531576f70d869a156d2a1b890bb3df62baf32f70260801c5b618000821615613551576f31be135f97d08fd981231505542fcfa60260801c5b62010000821615613572576f09aa508b5b7a84e1c677de54f3e99bc90260801c5b62020000821615613592576e5d6af8dedb81196699c329225ee6040260801c5b620400008216156135b1576d2216e584f5fa1ea926041bedfe980260801c5b620800008216156135ce576b048a170391f7dc42444e8fa20260801c5b60008460020b13156135ef5780600019816135eb576135eb61423f565b0490505b640100000000810615613603576001613606565b60005b60ff16602082901c0192505050919050565b6000836001600160a01b0316856001600160a01b03161115613638579293925b846001600160a01b0316866001600160a01b0316116136635761365c85858561378f565b90506136d3565b836001600160a01b0316866001600160a01b031610156136c557600061368a87868661378f565b905060006136998789866137f2565b9050806001600160801b0316826001600160801b0316106136ba57806136bc565b815b925050506136d3565b6136d08585846137f2565b90505b95945050505050565b600080836001600160a01b0316856001600160a01b031611156136fd579293925b846001600160a01b0316866001600160a01b0316116137285761372185858561382f565b915061376f565b836001600160a01b0316866001600160a01b031610156137615761374d86858561382f565b915061375a85878561389e565b905061376f565b61376c85858561389e565b90505b94509492505050565b606061378784846000856138e1565b949350505050565b6000826001600160a01b0316846001600160a01b031611156137af579192915b60006137d2856001600160a01b0316856001600160a01b0316600160601b613a12565b90506136d36137ed84838888036001600160a01b0316613a12565b613ac5565b6000826001600160a01b0316846001600160a01b03161115613812579192915b6137876137ed83600160601b8787036001600160a01b0316613a12565b6000826001600160a01b0316846001600160a01b0316111561384f579192915b836001600160a01b0316613888606060ff16846001600160801b0316901b8686036001600160a01b0316866001600160a01b0316613a12565b816138955761389561423f565b04949350505050565b6000826001600160a01b0316846001600160a01b031611156138be579192915b613787826001600160801b03168585036001600160a01b0316600160601b613a12565b6060824710156139425760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b606482015260840161080e565b6001600160a01b0385163b6139995760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161080e565b600080866001600160a01b031685876040516139b59190613fcc565b60006040518083038185875af1925050503d80600081146139f2576040519150601f19603f3d011682016040523d82523d6000602084013e6139f7565b606091505b5091509150613a07828286613ae0565b979650505050505050565b600080806000198587098587029250828110838203039150508060001415613a4c5760008411613a4157600080fd5b50829004905061088f565b808411613a5857600080fd5b6000848688096000868103871696879004966002600389028118808a02820302808a02820302808a02820302808a02820302808a02820302808a02909103029181900381900460010186841190950394909402919094039290920491909117919091029150509392505050565b806001600160801b0381168114613adb57600080fd5b919050565b60608315613aef57508161088f565b825115613aff5782518084602001fd5b8160405162461bcd60e51b815260040161080e9190613fe8565b80518015158114613adb57600080fd5b60008083601f840112613b3b57600080fd5b50813567ffffffffffffffff811115613b5357600080fd5b602083019150836020828501011115613b6b57600080fd5b9250929050565b80516001600160801b0381168114613adb57600080fd5b805161ffff81168114613adb57600080fd5b600060208284031215613bad57600080fd5b813561088f81614255565b60008060408385031215613bcb57600080fd5b8235613bd681614255565b91506020830135613be681614255565b809150509250929050565b600080600060608486031215613c0657600080fd5b8335613c1181614255565b92506020840135613c2181614255565b929592945050506040919091013590565b60008060408385031215613c4557600080fd5b8235613c5081614255565b946020939093013593505050565b600060208284031215613c7057600080fd5b61088f82613b19565b600080600060608486031215613c8e57600080fd5b8335613c9981614255565b9250602084013591506040840135613cb081614255565b809150509250925092565b60008060408385031215613cce57600080fd5b505080516020909101519092909150565b60008060008060608587031215613cf557600080fd5b8435935060208501359250604085013567ffffffffffffffff811115613d1a57600080fd5b613d2687828801613b29565b95989497509550505050565b60008060408385031215613d4557600080fd5b823591506020830135613be681614255565b60008060008060808587031215613d6d57600080fd5b843593506020850135613d7f81614255565b92506040850135613d8f8161426d565b91506060850135613d9f8161426d565b939692955090935050565b60008060408385031215613dbd57600080fd5b613dc683613b72565b9150613dd460208401613b72565b90509250929050565b600080600080600060a08688031215613df557600080fd5b613dfe86613b72565b94506020860151935060408601519250613e1a60608701613b72565b9150613e2860808701613b72565b90509295509295909350565b600080600080600080600060e0888a031215613e4f57600080fd5b8751613e5a81614255565b6020890151909750613e6b8161426d565b9550613e7960408901613b89565b9450613e8760608901613b89565b9350613e9560808901613b89565b925060a088015160ff81168114613eab57600080fd5b9150613eb960c08901613b19565b905092959891949750929550565b600060208284031215613ed957600080fd5b5035919050565b600060208284031215613ef257600080fd5b5051919050565b60008060408385031215613f0c57600080fd5b50508035926020909101359150565b600080600060608486031215613f3057600080fd5b83359250602084013591506040840135613cb081614255565b60008060008060808587031215613f5f57600080fd5b8435935060208501359250604085013591506060850135613d9f81614255565b600080600080600060a08688031215613f9757600080fd5b853594506020860135935060408601359250606086013591506080860135613fbe81614255565b809150509295509295909350565b60008251613fde81846020870161414a565b9190910192915050565b602081526000825180602084015261400781604085016020870161414a565b601f01601f19169190910160400192915050565b6020808252600a9082015269676f7665726e616e636560b01b604082015260600190565b6020808252600b908201526a19195858dd1a5d985d195960aa1b604082015260600190565b602080825260089082015267737472617465677960c01b604082015260600190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b60006001600160801b038083168185168083038211156140df576140df614229565b01949350505050565b600082198211156140fb576140fb614229565b500190565b60008261410f5761410f61423f565b500490565b600081600019048311821515161561412e5761412e614229565b500290565b60008282101561414557614145614229565b500390565b60005b8381101561416557818101518382015260200161414d565b838111156118085750506000910152565b600181811c9082168061418a57607f821691505b602082108114156141ab57634e487b7160e01b600052602260045260246000fd5b50919050565b60008260020b806141c4576141c461423f565b808360020b0791505092915050565b60008160020b627fffff198114156141ed576141ed614229565b60000392915050565b6000600160ff1b82141561420c5761420c614229565b5060000390565b634e487b7160e01b600052600160045260246000fd5b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b6001600160a01b038116811461426a57600080fd5b50565b8060020b811461426a57600080fdfea26469706673582212201e80d26d63e72465916e4274490ba70bb4b0328bddccd6bc5c72d611e1fef19b64736f6c63430008070033

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

00000000000000000000000088e6a0c2ddd26feeb64f039a2c41296fcb3f56400000000000000000000000002684ed5b4b22206d50f8a323068cc1d43229f2aa0000000000000000000000002684ed5b4b22206d50f8a323068cc1d43229f2aa0000000000000000000000000000000000000000000000000000000000030d40000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000000000000000000000000180000000000000000000000000f5da28239015dab940375808088532ed25a063a3000000000000000000000000000000000000000000000000000000000003177200000000000000000000000000000000000000000000000000000000000317d6000000000000000000000000000000000000000000000000000000000000001a426f6f73746572706f6f6c20746f6b656e205553442f5745544800000000000000000000000000000000000000000000000000000000000000000000000000044250543100000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _pool (address): 0x88e6A0c2dDD26FEEb64F039a2c41296FcB3f5640
Arg [1] : _addressA (address): 0x2684ed5b4b22206d50f8a323068cC1D43229F2aa
Arg [2] : _addressB (address): 0x2684ed5b4b22206d50f8a323068cC1D43229F2aa
Arg [3] : _protocolFeeA (uint256): 200000
Arg [4] : _protocolFeeB (uint256): 0
Arg [5] : tokenName (string): Boosterpool token USD/WETH
Arg [6] : tokenSymbol (string): BPT1
Arg [7] : _strategy (address): 0xf5DA28239015daB940375808088532Ed25A063A3
Arg [8] : _tickLower (int24): 202610
Arg [9] : _tickUpper (int24): 202710

-----Encoded View---------------
14 Constructor Arguments found :
Arg [0] : 00000000000000000000000088e6a0c2ddd26feeb64f039a2c41296fcb3f5640
Arg [1] : 0000000000000000000000002684ed5b4b22206d50f8a323068cc1d43229f2aa
Arg [2] : 0000000000000000000000002684ed5b4b22206d50f8a323068cc1d43229f2aa
Arg [3] : 0000000000000000000000000000000000000000000000000000000000030d40
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000140
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000180
Arg [7] : 000000000000000000000000f5da28239015dab940375808088532ed25a063a3
Arg [8] : 0000000000000000000000000000000000000000000000000000000000031772
Arg [9] : 00000000000000000000000000000000000000000000000000000000000317d6
Arg [10] : 000000000000000000000000000000000000000000000000000000000000001a
Arg [11] : 426f6f73746572706f6f6c20746f6b656e205553442f57455448000000000000
Arg [12] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [13] : 4250543100000000000000000000000000000000000000000000000000000000


Deployed Bytecode Sourcemap

97356:27297:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;82458:100;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;84809:201;;;;;;:::i;:::-;;:::i;:::-;;;13115:14:1;;13108:22;13090:41;;13078:2;13063:18;84809:201:0;12950:187:1;98794:30:0;;;;;;;;-1:-1:-1;;;;;10046:32:1;;;10028:51;;10016:2;10001:18;98794:30:0;9882:203:1;99274:25:0;;;;;;;;;13288::1;;;13276:2;13261:18;99274:25:0;13142:177:1;98751:36:0;;;;;83578:108;83666:12;;83578:108;;124127:205;;;:::i;:::-;;85590:295;;;;;;:::i;:::-;;:::i;99208:25::-;;;;;;83420:93;;;83503:2;29301:36:1;;29289:2;29274:18;83420:93:0;29159:184:1;121787:243:0;;;;;;:::i;:::-;;:::i;102211:1342::-;;;;;;:::i;:::-;;:::i;:::-;;;;28497:25:1;;;28553:2;28538:18;;28531:34;;;;28581:18;;;28574:34;28485:2;28470:18;102211:1342:0;28295:319:1;86294:238:0;;;;;;:::i;:::-;;:::i;117615:136::-;;;:::i;99108:23::-;;;;;-1:-1:-1;;;;;99108:23:0;;;98911:25;;;;;-1:-1:-1;;;;;98911:25:0;;;117382:138;;;:::i;120930:344::-;;;;;;:::i;:::-;;:::i;99340:25::-;;;;;;;;;99306;;;;;;83749:127;;;;;;:::i;:::-;-1:-1:-1;;;;;83850:18:0;83823:7;83850:18;;;;;;;;;;;;83749:127;105393:359;;;;;;:::i;:::-;;:::i;99047:22::-;;;;;-1:-1:-1;;;99047:22:0;;;;;;;;;13949:1:1;13938:21;;;;13920:40;;13908:2;13893:18;99047:22:0;13778:188:1;123220:306:0;;;:::i;99172:27::-;;;;;;82677:104;;;:::i;87035:436::-;;;;;;:::i;:::-;;:::i;122296:243::-;;;;;;:::i;:::-;;:::i;122956:256::-;;;;;;:::i;:::-;;:::i;98982:23::-;;;;;-1:-1:-1;;;;;98982:23:0;;;84082:193;;;;;;:::i;:::-;;:::i;123706:269::-;;;;;;:::i;:::-;;:::i;116347:489::-;;;;;;:::i;:::-;;:::i;:::-;;;;28216:25:1;;;28272:2;28257:18;;28250:34;;;;28189:18;116347:489:0;28042:248:1;122038:250:0;;;;;;:::i;:::-;;:::i;99138:27::-;;;;;;117058:229;;;:::i;120481:344::-;;;;;;:::i;:::-;;:::i;98868:34::-;;;;;98831:30;;;;;106206:1312;;;;;;:::i;:::-;;:::i;119620:329::-;;;;;;:::i;:::-;;:::i;108953:312::-;;;;;;:::i;:::-;;:::i;121364:227::-;;;;;;:::i;:::-;;:::i;84338:151::-;;;;;;:::i;:::-;;:::i;110196:730::-;;;;;;:::i;:::-;;:::i;122692:256::-;;;;;;:::i;:::-;;:::i;98943:32::-;;;;;-1:-1:-1;;;;;98943:32:0;;;99240:25;;;;;;99018:22;;;;;-1:-1:-1;;;99018:22:0;;;;;;120001:375;;;;;;:::i;:::-;;:::i;99078:23::-;;;;;-1:-1:-1;;;;;99078:23:0;;;82458:100;82512:13;82545:5;82538:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;82458:100;:::o;84809:201::-;84892:4;72060:10;84948:32;72060:10;84964:7;84973:6;84948:8;:32::i;:::-;-1:-1:-1;84998:4:0;;84809:201;-1:-1:-1;;;84809:201:0:o;124127:205::-;124197:17;;-1:-1:-1;;;;;124197:17:0;124183:10;:31;124175:61;;;;-1:-1:-1;;;124175:61:0;;21570:2:1;124175:61:0;;;21552:21:1;21609:2;21589:18;;;21582:30;-1:-1:-1;;;21628:18:1;;;21621:47;21685:18;;124175:61:0;;;;;;;;;124263:10;;124252:34;;;-1:-1:-1;;;;;124263:10:0;;;10302:34:1;;124275:10:0;10367:2:1;10352:18;;10345:43;124252:34:0;;10237:18:1;124252:34:0;;;;;;;124297:10;:23;;-1:-1:-1;;;;;;124297:23:0;124310:10;124297:23;;;124127:205::o;85590:295::-;85721:4;72060:10;85779:38;85795:4;72060:10;85810:6;85779:15;:38::i;:::-;85828:27;85838:4;85844:2;85848:6;85828:9;:27::i;:::-;85873:4;85866:11;;;85590:295;;;;;;:::o;121787:243::-;124397:10;;-1:-1:-1;;;;;124397:10:0;124383;:24;124375:47;;;;-1:-1:-1;;;124375:47:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;121872:25:0;::::1;::::0;;::::1;::::0;:57:::1;;-1:-1:-1::0;;;;;;121901:28:0;::::1;121924:4;121901:28;;121872:57;121864:78;;;;-1:-1:-1::0;;;121864:78:0::1;;;;;;;:::i;:::-;121967:8;::::0;121958:31:::1;::::0;;-1:-1:-1;;;;;121967:8:0;;::::1;10302:34:1::0;;10372:15;;;10367:2;10352:18;;10345:43;121958:31:0::1;::::0;10237:18:1;121958:31:0::1;;;;;;;122000:8;:22:::0;;-1:-1:-1;;;;;;122000:22:0::1;-1:-1:-1::0;;;;;122000:22:0;;;::::1;::::0;;;::::1;::::0;;121787:243::o;102211:1342::-;102452:14;102481:15;102511;95056:1;95654:7;;:19;;95646:63;;;;-1:-1:-1;;;95646:63:0;;;;;;;:::i;:::-;95056:1;95787:7;:18;102563:13:::1;::::0;::::1;;102562:14;102554:38;;;;-1:-1:-1::0;;;102554:38:0::1;;;;;;;:::i;:::-;102629:1;102612:14;:18;:40;;;;102651:1;102634:14;:18;102612:40;102604:85;;;::::0;-1:-1:-1;;;102604:85:0;;20868:2:1;102604:85:0::1;::::0;::::1;20850:21:1::0;;;20887:18;;;20880:30;20946:34;20926:18;;;20919:62;20998:18;;102604:85:0::1;20666:356:1::0;102604:85:0::1;-1:-1:-1::0;;;;;102708:16:0;::::1;::::0;;::::1;::::0;:39:::1;;-1:-1:-1::0;;;;;;102728:19:0;::::1;102742:4;102728:19;;102708:39;102700:54;;;::::0;-1:-1:-1;;;102700:54:0;;16896:2:1;102700:54:0::1;::::0;::::1;16878:21:1::0;16935:1;16915:18;;;16908:29;-1:-1:-1;;;16953:18:1;;;16946:32;16995:18;;102700:54:0::1;16694:325:1::0;102700:54:0::1;102843:9;::::0;102837:27:::1;::::0;-1:-1:-1;;;102843:9:0;::::1;;::::0;;::::1;::::0;-1:-1:-1;;;102854:9:0;::::1;::::0;::::1;102837:5;:27::i;:::-;102969:53;102991:14;103007;102969:21;:53::i;:::-;102940:82:::0;;-1:-1:-1;102940:82:0;-1:-1:-1;102940:82:0;-1:-1:-1;103041:10:0;103033:29:::1;;;::::0;-1:-1:-1;;;103033:29:0;;22588:2:1;103033:29:0::1;::::0;::::1;22570:21:1::0;22627:1;22607:18;;;22600:29;-1:-1:-1;;;22645:18:1;;;22638:36;22691:18;;103033:29:0::1;22386:329:1::0;103033:29:0::1;103092:10;103081:7;:21;;103073:44;;;::::0;-1:-1:-1;;;103073:44:0;;16154:2:1;103073:44:0::1;::::0;::::1;16136:21:1::0;16193:2;16173:18;;;16166:30;-1:-1:-1;;;16212:18:1;;;16205:40;16262:18;;103073:44:0::1;15952:334:1::0;103073:44:0::1;103147:10;103136:7;:21;;103128:44;;;::::0;-1:-1:-1;;;103128:44:0;;23730:2:1;103128:44:0::1;::::0;::::1;23712:21:1::0;23769:2;23749:18;;;23742:30;-1:-1:-1;;;23788:18:1;;;23781:40;23838:18;;103128:44:0::1;23528:334:1::0;103128:44:0::1;103228:11:::0;;103224:76:::1;;103241:59;-1:-1:-1::0;;;;;103241:6:0::1;:23;103265:10;103285:4;103292:7:::0;103241:23:::1;:59::i;:::-;103315:11:::0;;103311:76:::1;;103328:59;-1:-1:-1::0;;;;;103328:6:0::1;:23;103352:10;103372:4;103379:7:::0;103328:23:::1;:59::i;:::-;103437:17;103443:2;103447:6;103437:5;:17::i;:::-;103470:49;::::0;;28497:25:1;;;28553:2;28538:18;;28531:34;;;28581:18;;;28574:34;;;-1:-1:-1;;;;;103470:49:0;::::1;::::0;103478:10:::1;::::0;103470:49:::1;::::0;28485:2:1;28470:18;103470:49:0::1;;;;;;;103530:15;103540:1;103543::::0;103530:9:::1;:15::i;:::-;95012:1:::0;95966:7;:22;;;;102211:1342;;;;;;;;;:::o;86294:238::-;86382:4;72060:10;86438:64;72060:10;86454:7;86491:10;86463:25;72060:10;86454:7;86463:9;:25::i;:::-;:38;;;;:::i;:::-;86438:8;:64::i;117615:136::-;117733:10;;117720;;117686:31;;-1:-1:-1;;;117686:31:0;;117711:4;117686:31;;;10028:51:1;117659:7:0;;117733:10;117720;-1:-1:-1;;;;;117686:6:0;:16;;;;10001:18:1;;117686:31:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:44;;;;:::i;:::-;:57;;;;:::i;:::-;117679:64;;117615:136;:::o;117382:138::-;117500:10;;117487;;117453:31;;-1:-1:-1;;;117453:31:0;;117478:4;117453:31;;;10028:51:1;117426:7:0;;117500:10;117487;-1:-1:-1;;;;;117453:6:0;:16;;;;10001:18:1;;117453:31:0;9882:203:1;120930:344:0;124609:8;;-1:-1:-1;;;;;124609:8:0;124595:10;:22;124587:43;;;;-1:-1:-1;;;124587:43:0;;17979:2:1;124587:43:0;;;17961:21:1;18018:1;17998:18;;;17991:29;-1:-1:-1;;;18036:18:1;;;18029:38;18084:18;;124587:43:0;17777:331:1;124587:43:0;121095:7:::1;121082:10;;:20;;;;:::i;:::-;121069:10;:33:::0;121126:10:::1;::::0;:20:::1;::::0;121139:7;;121126:20:::1;:::i;:::-;121113:10;:33:::0;121161:11;;121157:49:::1;;121174:32;-1:-1:-1::0;;;;;121174:6:0::1;:19;121194:2:::0;121198:7;121174:19:::1;:32::i;:::-;121221:11:::0;;121217:49:::1;;121234:32;-1:-1:-1::0;;;;;121234:6:0::1;:19;121254:2:::0;121258:7;121234:19:::1;:32::i;:::-;120930:344:::0;;;:::o;105393:359::-;105630:9;;105522:14;;;;;;105624:27;;-1:-1:-1;;;105630:9:0;;;;;;;-1:-1:-1;;;105641:9:0;;;;105624:5;:27::i;:::-;105691:53;105713:14;105729;105691:21;:53::i;:::-;105662:82;;;;-1:-1:-1;105662:82:0;;-1:-1:-1;105393:359:0;-1:-1:-1;;;105393:359:0:o;123220:306::-;124397:10;;-1:-1:-1;;;;;124397:10:0;124383;:24;124375:47;;;;-1:-1:-1;;;124375:47:0;;;;;;;:::i;:::-;123290:13:::1;::::0;::::1;;123289:14;123281:38;;;;-1:-1:-1::0;;;123281:38:0::1;;;;;;;:::i;:::-;123331:13;:20:::0;;-1:-1:-1;;123331:20:0::1;123347:4;123331:20;::::0;;123406:9:::1;::::0;123331:13:::1;::::0;123396:31:::1;::::0;-1:-1:-1;;;123406:9:0;::::1;;::::0;;::::1;::::0;-1:-1:-1;;;123417:9:0;::::1;::::0;::::1;123396;:31::i;:::-;-1:-1:-1::0;;123454:9:0::1;::::0;123362:65;;-1:-1:-1;123438:52:0::1;::::0;-1:-1:-1;;;123454:9:0;::::1;;::::0;;::::1;::::0;-1:-1:-1;;;;123465:9:0;;::::1;::::0;::::1;::::0;-1:-1:-1;123362:65:0;123438:15:::1;:52::i;:::-;-1:-1:-1::0;;123506:12:0::1;::::0;::::1;::::0;-1:-1:-1;123506:12:0;;-1:-1:-1;123506:12:0::1;123270:256;123220:306::o:0;82677:104::-;82733:13;82766:7;82759:14;;;;;:::i;87035:436::-;87128:4;72060:10;87128:4;87211:25;72060:10;87228:7;87211:9;:25::i;:::-;87184:52;;87275:15;87255:16;:35;;87247:85;;;;-1:-1:-1;;;87247:85:0;;26972:2:1;87247:85:0;;;26954:21:1;27011:2;26991:18;;;26984:30;27050:34;27030:18;;;27023:62;-1:-1:-1;;;27101:18:1;;;27094:35;27146:19;;87247:85:0;26770:401:1;87247:85:0;87368:60;87377:5;87384:7;87412:15;87393:16;:34;87368:8;:60::i;:::-;-1:-1:-1;87459:4:0;;87035:436;-1:-1:-1;;;;87035:436:0:o;122296:243::-;124397:10;;-1:-1:-1;;;;;124397:10:0;124383;:24;124375:47;;;;-1:-1:-1;;;124375:47:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;122381:25:0;::::1;::::0;;::::1;::::0;:57:::1;;-1:-1:-1::0;;;;;;122410:28:0;::::1;122433:4;122410:28;;122381:57;122373:78;;;::::0;-1:-1:-1;;;122373:78:0;;17979:2:1;122373:78:0::1;::::0;::::1;17961:21:1::0;18018:1;17998:18;;;17991:29;-1:-1:-1;;;18036:18:1;;;18029:38;18084:18;;122373:78:0::1;17777:331:1::0;122373:78:0::1;122476:8;::::0;122467:31:::1;::::0;;-1:-1:-1;;;;;122476:8:0;;::::1;10302:34:1::0;;10372:15;;;10367:2;10352:18;;10345:43;122467:31:0::1;::::0;10237:18:1;122467:31:0::1;;;;;;;122509:8;:22:::0;;-1:-1:-1;;;;;;122509:22:0::1;-1:-1:-1::0;;;;;122509:22:0;;;::::1;::::0;;;::::1;::::0;;122296:243::o;122956:256::-;124397:10;;-1:-1:-1;;;;;124397:10:0;124383;:24;124375:47;;;;-1:-1:-1;;;124375:47:0;;;;;;;:::i;:::-;123084:3:::1;123068:12;;123050:15;:30;;;;:::i;:::-;123049:38;123041:63;;;::::0;-1:-1:-1;;;123041:63:0;;20527:2:1;123041:63:0::1;::::0;::::1;20509:21:1::0;20566:2;20546:18;;;20539:30;-1:-1:-1;;;20585:18:1;;;20578:42;20637:18;;123041:63:0::1;20325:336:1::0;123041:63:0::1;123133:12;::::0;123120:43:::1;::::0;;28216:25:1;;;28272:2;28257:18;;28250:34;;;123120:43:0::1;::::0;28189:18:1;123120:43:0::1;;;;;;;123174:12;:30:::0;122956:256::o;84082:193::-;84161:4;72060:10;84217:28;72060:10;84234:2;84238:6;84217:9;:28::i;123706:269::-;124397:10;;-1:-1:-1;;;;;124397:10:0;124383;:24;124375:47;;;;-1:-1:-1;;;124375:47:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;123795:27:0;::::1;::::0;;::::1;::::0;:61:::1;;-1:-1:-1::0;;;;;;123826:30:0;::::1;123851:4;123826:30;;123795:61;123787:84;;;;-1:-1:-1::0;;;123787:84:0::1;;;;;;;:::i;:::-;123882:17;:33:::0;;-1:-1:-1;;;;;;123882:33:0::1;-1:-1:-1::0;;;;;123882:33:0;::::1;::::0;;::::1;::::0;;;123931:36:::1;::::0;10028:51:1;;;123931:36:0::1;::::0;10016:2:1;10001:18;123931:36:0::1;;;;;;;123706:269:::0;:::o;116347:489::-;116425:15;116442;116475:21;116499:13;83666:12;;;83578:108;116499:13;116475:37;-1:-1:-1;116526:17:0;;116523:306;;116565:9;;116559:27;;-1:-1:-1;;;116565:9:0;;;;;;;-1:-1:-1;;;116576:9:0;;;;116559:5;:27::i;:::-;116623:21;:19;:21::i;:::-;116601:43;;-1:-1:-1;116601:43:0;-1:-1:-1;116704:13:0;116683:18;116693:8;116601:43;116683:18;:::i;:::-;:34;;;;:::i;:::-;116742:13;116721:18;116731:8;116721:7;:18;:::i;:::-;:34;;;;:::i;:::-;116659:98;;-1:-1:-1;116659:98:0;-1:-1:-1;116523:306:0;;;116813:1;;-1:-1:-1;116813:1:0;;-1:-1:-1;116523:306:0;116464:372;116347:489;;;:::o;122038:250::-;124397:10;;-1:-1:-1;;;;;124397:10:0;124383;:24;124375:47;;;;-1:-1:-1;;;124375:47:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;122123:25:0;::::1;::::0;;::::1;::::0;:57:::1;;-1:-1:-1::0;;;;;;122152:28:0;::::1;122175:4;122152:28;;122123:57;122115:78;;;::::0;-1:-1:-1;;;122115:78:0;;20191:2:1;122115:78:0::1;::::0;::::1;20173:21:1::0;20230:1;20210:18;;;20203:29;-1:-1:-1;;;20248:18:1;;;20241:38;20296:18;;122115:78:0::1;19989:331:1::0;122115:78:0::1;122218:8;::::0;122209:31:::1;::::0;;-1:-1:-1;;;;;122218:8:0;;::::1;10302:34:1::0;;10372:15;;;10367:2;10352:18;;10345:43;122209:31:0::1;::::0;10237:18:1;122209:31:0::1;;;;;;;122251:8;:22:::0;;-1:-1:-1;;;;;;122251:22:0::1;-1:-1:-1::0;;;;;122251:22:0;;;::::1;::::0;;;::::1;::::0;;122038:250::o;117058:229::-;117182:9;;117124:16;;;;117176:27;;-1:-1:-1;;;117182:9:0;;;;;;;-1:-1:-1;;;117193:9:0;;;;117176:5;:27::i;:::-;117255:9;;117239:40;;-1:-1:-1;;;117255:9:0;;;;;;;-1:-1:-1;;;117266:9:0;;;;117277:1;117239:15;:40::i;:::-;117214:65;;;;-1:-1:-1;117058:229:0;-1:-1:-1;;;117058:229:0:o;120481:344::-;124505:8;;-1:-1:-1;;;;;124505:8:0;124491:10;:22;124483:43;;;;-1:-1:-1;;;124483:43:0;;20191:2:1;124483:43:0;;;20173:21:1;20230:1;20210:18;;;20203:29;-1:-1:-1;;;20248:18:1;;;20241:38;20296:18;;124483:43:0;19989:331:1;124483:43:0;120646:7:::1;120633:10;;:20;;;;:::i;:::-;120620:10;:33:::0;120677:10:::1;::::0;:20:::1;::::0;120690:7;;120677:20:::1;:::i;:::-;120664:10;:33:::0;120712:11;;120708:49:::1;;120725:32;-1:-1:-1::0;;;;;120725:6:0::1;:19;120745:2:::0;120749:7;120725:19:::1;:32::i;106206:1312::-:0;106366:15;106383;95056:1;95654:7;;:19;;95646:63;;;;-1:-1:-1;;;95646:63:0;;;;;;;:::i;:::-;95056:1;95787:7;:18;106419:10;106411:29:::1;;;::::0;-1:-1:-1;;;106411:29:0;;22588:2:1;106411:29:0::1;::::0;::::1;22570:21:1::0;22627:1;22607:18;;;22600:29;-1:-1:-1;;;22645:18:1;;;22638:36;22691:18;;106411:29:0::1;22386:329:1::0;106411:29:0::1;-1:-1:-1::0;;;;;106459:16:0;::::1;::::0;;::::1;::::0;:39:::1;;-1:-1:-1::0;;;;;;106479:19:0;::::1;106493:4;106479:19;;106459:39;106451:54;;;::::0;-1:-1:-1;;;106451:54:0;;16896:2:1;106451:54:0::1;::::0;::::1;16878:21:1::0;16935:1;16915:18;;;16908:29;-1:-1:-1;;;16953:18:1;;;16946:32;16995:18;;106451:54:0::1;16694:325:1::0;106451:54:0::1;106516:21;106540:13;83666:12:::0;;;83578:108;106540:13:::1;106516:37;;106590:25;106596:10;106608:6;106590:5;:25::i;:::-;106763:13;::::0;::::1;;106760:412;;;106899:13;106890:6;106874:13;:11;:13::i;:::-;:22;;;;:::i;:::-;:38;;;;:::i;:::-;106864:48;;106962:13;106953:6;106937:13;:11;:13::i;:::-;:22;;;;:::i;:::-;:38;;;;:::i;:::-;106927:48;;106760:412;;;107116:9;::::0;107096:64:::1;::::0;-1:-1:-1;;;107116:9:0;::::1;;::::0;;::::1;::::0;-1:-1:-1;;;107127:9:0;::::1;::::0;::::1;107138:6:::0;107146:13;107096:19:::1;:64::i;:::-;107075:85:::0;;-1:-1:-1;107075:85:0;-1:-1:-1;106760:412:0::1;107203:10;107192:7;:21;;107184:44;;;::::0;-1:-1:-1;;;107184:44:0;;16154:2:1;107184:44:0::1;::::0;::::1;16136:21:1::0;16193:2;16173:18;;;16166:30;-1:-1:-1;;;16212:18:1;;;16205:40;16262:18;;107184:44:0::1;15952:334:1::0;107184:44:0::1;107258:10;107247:7;:21;;107239:44;;;::::0;-1:-1:-1;;;107239:44:0;;23730:2:1;107239:44:0::1;::::0;::::1;23712:21:1::0;23769:2;23749:18;;;23742:30;-1:-1:-1;;;23788:18:1;;;23781:40;23838:18;;107239:44:0::1;23528:334:1::0;107239:44:0::1;107337:11:::0;;107333:49:::1;;107350:32;-1:-1:-1::0;;;;;107350:6:0::1;:19;107370:2:::0;107374:7;107350:19:::1;:32::i;:::-;107397:11:::0;;107393:49:::1;;107410:32;-1:-1:-1::0;;;;;107410:6:0::1;:19;107430:2:::0;107434:7;107410:19:::1;:32::i;:::-;107460:50;::::0;;28497:25:1;;;28553:2;28538:18;;28531:34;;;28581:18;;;28574:34;;;-1:-1:-1;;;;;107460:50:0;::::1;::::0;107469:10:::1;::::0;107460:50:::1;::::0;28485:2:1;28470:18;107460:50:0::1;;;;;;;-1:-1:-1::0;95012:1:0;95966:7;:22;106206:1312;;;;-1:-1:-1;106206:1312:0;-1:-1:-1;;;106206:1312:0:o;119620:329::-;119777:10;-1:-1:-1;;;;;119799:4:0;119777:27;;119769:36;;;;;;119820:11;;119816:57;;119833:40;-1:-1:-1;;;;;119833:6:0;:19;119853:10;119865:7;119833:19;:40::i;:::-;119888:11;;119884:57;;119901:40;-1:-1:-1;;;;;119901:6:0;:19;119921:10;119933:7;119901:19;:40::i;:::-;119620:329;;;;:::o;108953:312::-;95056:1;95654:7;;:19;;95646:63;;;;-1:-1:-1;;;95646:63:0;;;;;;;:::i;:::-;95056:1;95787:7;:18;109084:13:::1;::::0;::::1;;109083:14;109075:38;;;;-1:-1:-1::0;;;109075:38:0::1;;;;;;;:::i;:::-;109147:8;::::0;-1:-1:-1;;;;;109147:8:0::1;109133:10;:22;109125:43;;;;-1:-1:-1::0;;;109125:43:0::1;;;;;;;:::i;:::-;109185:9;::::0;109179:27:::1;::::0;-1:-1:-1;;;109185:9:0;::::1;;::::0;;::::1;::::0;-1:-1:-1;;;109196:9:0;::::1;::::0;::::1;109179:5;:27::i;:::-;109217:40;109227:10;109239:17;109217:9;:40::i;:::-;-1:-1:-1::0;;95012:1:0;95966:7;:22;108953:312::o;121364:227::-;124397:10;;-1:-1:-1;;;;;124397:10:0;124383;:24;124375:47;;;;-1:-1:-1;;;124375:47:0;;;;;;;:::i;:::-;121507:6:::1;-1:-1:-1::0;;;;;121498:15:0::1;:5;-1:-1:-1::0;;;;;121498:15:0::1;;;:34;;;;;121526:6;-1:-1:-1::0;;;;;121517:15:0::1;:5;-1:-1:-1::0;;;;;121517:15:0::1;;;121498:34;121490:52;;;::::0;-1:-1:-1;;;121490:52:0;;21916:2:1;121490:52:0::1;::::0;::::1;21898:21:1::0;21955:1;21935:18;;;21928:29;-1:-1:-1;;;21973:18:1;;;21966:35;22018:18;;121490:52:0::1;21714:328:1::0;121490:52:0::1;121553:30;-1:-1:-1::0;;;;;121553:18:0;::::1;121572:2:::0;121576:6;121553:18:::1;:30::i;84338:151::-:0;-1:-1:-1;;;;;84454:18:0;;;84427:7;84454:18;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;84338:151::o;110196:730::-;95056:1;95654:7;;:19;;95646:63;;;;-1:-1:-1;;;95646:63:0;;;;;;;:::i;:::-;95056:1;95787:7;:18;110380:13:::1;::::0;::::1;;110379:14;110371:38;;;;-1:-1:-1::0;;;110371:38:0::1;;;;;;;:::i;:::-;110443:8;::::0;-1:-1:-1;;;;;110443:8:0::1;110429:10;:22;110421:43;;;;-1:-1:-1::0;;;110421:43:0::1;;;;;;;:::i;:::-;110478:46;110490:9;110501;110512:11;110478;:46::i;:::-;110642:9;::::0;110599:21:::1;::::0;110632:31:::1;::::0;-1:-1:-1;;;110642:9:0;::::1;;::::0;;::::1;::::0;-1:-1:-1;;;110653:9:0;::::1;::::0;::::1;110632;:31::i;:::-;-1:-1:-1::0;;110690:9:0::1;::::0;110598:65;;-1:-1:-1;110674:52:0::1;::::0;-1:-1:-1;;;110690:9:0;::::1;;::::0;;::::1;::::0;-1:-1:-1;;;;110701:9:0;;::::1;::::0;::::1;::::0;-1:-1:-1;110598:65:0;110674:15:::1;:52::i;:::-;;;;;110795:65;110808:10;110820:17;110839:9;110850;110795:12;:65::i;:::-;-1:-1:-1::0;110872:9:0::1;110871:47:::0;;-1:-1:-1;;;;110871:47:0;-1:-1:-1;;;110871:47:0::1;::::0;;::::1;;::::0;;::::1;::::0;;;::::1;-1:-1:-1::0;;;;110871:47:0;;;;;-1:-1:-1;;;110871:47:0;;;::::1;;::::0;;;::::1;;::::0;;-1:-1:-1;;;95966:7:0;:22;110196:730::o;122692:256::-;124397:10;;-1:-1:-1;;;;;124397:10:0;124383;:24;124375:47;;;;-1:-1:-1;;;124375:47:0;;;;;;;:::i;:::-;122820:3:::1;122804:12;;122786:15;:30;;;;:::i;:::-;122785:38;122777:63;;;::::0;-1:-1:-1;;;122777:63:0;;21229:2:1;122777:63:0::1;::::0;::::1;21211:21:1::0;21268:2;21248:18;;;21241:30;-1:-1:-1;;;21287:18:1;;;21280:42;21339:18;;122777:63:0::1;21027:336:1::0;122777:63:0::1;122869:12;::::0;122856:43:::1;::::0;;28216:25:1;;;28272:2;28257:18;;28250:34;;;122856:43:0::1;::::0;28189:18:1;122856:43:0::1;;;;;;;122910:12;:30:::0;122692:256::o;120001:375::-;120166:10;-1:-1:-1;;;;;120188:4:0;120166:27;;120158:36;;;;;;120224:1;120209:12;:16;120205:76;;;120227:54;-1:-1:-1;;;;;120227:6:0;:19;120247:10;120267:12;120227:19;:54::i;:::-;120311:1;120296:12;:16;120292:76;;;120314:54;-1:-1:-1;;;;;120314:6:0;:19;120334:10;120354:12;120314:19;:54::i;90660:380::-;-1:-1:-1;;;;;90796:19:0;;90788:68;;;;-1:-1:-1;;;90788:68:0;;24415:2:1;90788:68:0;;;24397:21:1;24454:2;24434:18;;;24427:30;24493:34;24473:18;;;24466:62;-1:-1:-1;;;24544:18:1;;;24537:34;24588:19;;90788:68:0;24213:400:1;90788:68:0;-1:-1:-1;;;;;90875:21:0;;90867:68;;;;-1:-1:-1;;;90867:68:0;;17576:2:1;90867:68:0;;;17558:21:1;17615:2;17595:18;;;17588:30;17654:34;17634:18;;;17627:62;-1:-1:-1;;;17705:18:1;;;17698:32;17747:19;;90867:68:0;17374:398:1;90867:68:0;-1:-1:-1;;;;;90948:18:0;;;;;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;:36;;;91000:32;;13288:25:1;;;91000:32:0;;13261:18:1;91000:32:0;;;;;;;90660:380;;;:::o;91331:453::-;91466:24;91493:25;91503:5;91510:7;91493:9;:25::i;:::-;91466:52;;-1:-1:-1;;91533:16:0;:37;91529:248;;91615:6;91595:16;:26;;91587:68;;;;-1:-1:-1;;;91587:68:0;;18667:2:1;91587:68:0;;;18649:21:1;18706:2;18686:18;;;18679:30;18745:31;18725:18;;;18718:59;18794:18;;91587:68:0;18465:353:1;91587:68:0;91699:51;91708:5;91715:7;91743:6;91724:16;:25;91699:8;:51::i;87941:671::-;-1:-1:-1;;;;;88072:18:0;;88064:68;;;;-1:-1:-1;;;88064:68:0;;23324:2:1;88064:68:0;;;23306:21:1;23363:2;23343:18;;;23336:30;23402:34;23382:18;;;23375:62;-1:-1:-1;;;23453:18:1;;;23446:35;23498:19;;88064:68:0;23122:401:1;88064:68:0;-1:-1:-1;;;;;88151:16:0;;88143:64;;;;-1:-1:-1;;;88143:64:0;;15750:2:1;88143:64:0;;;15732:21:1;15789:2;15769:18;;;15762:30;15828:34;15808:18;;;15801:62;-1:-1:-1;;;15879:18:1;;;15872:33;15922:19;;88143:64:0;15548:399:1;88143:64:0;-1:-1:-1;;;;;88293:15:0;;88271:19;88293:15;;;;;;;;;;;88327:21;;;;88319:72;;;;-1:-1:-1;;;88319:72:0;;19377:2:1;88319:72:0;;;19359:21:1;19416:2;19396:18;;;19389:30;19455:34;19435:18;;;19428:62;-1:-1:-1;;;19506:18:1;;;19499:36;19552:19;;88319:72:0;19175:402:1;88319:72:0;-1:-1:-1;;;;;88427:15:0;;;:9;:15;;;;;;;;;;;88445:20;;;88427:38;;88487:13;;;;;;;;:23;;88459:6;;88427:9;88487:23;;88459:6;;88487:23;:::i;:::-;;;;;;;;88543:2;-1:-1:-1;;;;;88528:26:0;88537:4;-1:-1:-1;;;;;88528:26:0;;88547:6;88528:26;;;;13288:25:1;;13276:2;13261:18;;13142:177;88528:26:0;;;;;;;;88567:37;120930:344;103733:228;103803:17;103832:31;103842:9;103853;103832;:31::i;:::-;103802:61;;;;;;103890:1;103878:9;-1:-1:-1;;;;;103878:13:0;;103874:80;;;103908:34;;-1:-1:-1;;;103908:34:0;;14202:1:1;14191:21;;;103908:34:0;;;14173:40:1;14249:21;;;14229:18;;;14222:49;103940:1:0;14287:18:1;;;14280:75;103908:4:0;-1:-1:-1;;;;;103908:9:0;;;;14146:18:1;;103908:34:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;103791:170;103733:228;;:::o;104189:1196::-;104468:9;;104318:14;;;;;;;;104447:74;;-1:-1:-1;;;104468:9:0;;;;;;;-1:-1:-1;;;104479:9:0;;;;104490:14;104506;104447:20;:74::i;:::-;104420:101;;104532:21;104556:13;83666:12;;;83578:108;104556:13;104532:37;;104582:22;104607:20;:18;:20::i;:::-;104741:39;;;-1:-1:-1;;;;;27781:15:1;;;27763:34;;27833:15;;27828:2;27813:18;;27806:43;104582:45:0;;-1:-1:-1;104741:39:0;;27683:18:1;104741:39:0;;;;;;;104854:18;;;:40;;;104893:1;104876:14;-1:-1:-1;;;;;104876:18:0;;104854:40;104847:49;;;;:::i;:::-;104951:9;;104930:60;;-1:-1:-1;;;104951:9:0;;;;;;;-1:-1:-1;;;104962:9:0;;;;104973:16;104930:20;:60::i;:::-;104909:81;;-1:-1:-1;104909:81:0;-1:-1:-1;105083:11:0;104909:81;105093:1;105083:11;:::i;:::-;105098;:7;105108:1;105098:11;:::i;:::-;105060:51;;-1:-1:-1;105060:51:0;-1:-1:-1;105126:18:0;105122:256;;105242:16;-1:-1:-1;;;;;105233:25:0;;;105122:256;;;105344:14;-1:-1:-1;;;;;105300:58:0;105328:13;105308:16;-1:-1:-1;;;;;105300:25:0;:41;;;;:::i;:::-;:58;;;;:::i;:::-;105291:67;;105122:256;104409:976;;;104189:1196;;;;;:::o;76006:248::-;76177:68;;-1:-1:-1;;;;;10657:15:1;;;76177:68:0;;;10639:34:1;10709:15;;10689:18;;;10682:43;10741:18;;;10734:34;;;76150:96:0;;76170:5;;-1:-1:-1;;;76200:27:0;10574:18:1;;76177:68:0;;;;-1:-1:-1;;76177:68:0;;;;;;;;;;;;;;-1:-1:-1;;;;;76177:68:0;-1:-1:-1;;;;;;76177:68:0;;;;;;;;;;76150:19;:96::i;88899:399::-;-1:-1:-1;;;;;88983:21:0;;88975:65;;;;-1:-1:-1;;;88975:65:0;;27378:2:1;88975:65:0;;;27360:21:1;27417:2;27397:18;;;27390:30;27456:33;27436:18;;;27429:61;27507:18;;88975:65:0;27176:355:1;88975:65:0;89131:6;89115:12;;:22;;;;;;;:::i;:::-;;;;-1:-1:-1;;;;;;;89148:18:0;;:9;:18;;;;;;;;;;:28;;89170:6;;89148:9;:28;;89170:6;;89148:28;:::i;:::-;;;;-1:-1:-1;;89192:37:0;;13288:25:1;;;-1:-1:-1;;;;;89192:37:0;;;89209:1;;89192:37;;13276:2:1;13261:18;89192:37:0;;;;;;;89242:48;88899:399;;:::o;109273:289::-;109399:9;;109383:40;;-1:-1:-1;;;109399:9:0;;;;;;;-1:-1:-1;;;109410:9:0;;;;109421:1;109383:15;:40::i;:::-;-1:-1:-1;;109533:9:0;;109489:65;;-1:-1:-1;109502:10:0;;-1:-1:-1;109514:17:0;;-1:-1:-1;;;109533:9:0;;;;;;;-1:-1:-1;;;109544:9:0;;;;109489:12;:65::i;75787:211::-;75931:58;;-1:-1:-1;;;;;12863:32:1;;75931:58:0;;;12845:51:1;12912:18;;;12905:34;;;75904:86:0;;75924:5;;-1:-1:-1;;;75954:23:0;12818:18:1;;75931:58:0;12671:274:1;117818:371:0;117935:7;117957;117979;118001;118023;118058:19;118080:56;118108:4;118115:9;118126;23185:45;;;9394:2:1;9390:15;;;;-1:-1:-1;;9386:53:1;23185:45:0;;;;9374:66:1;;;;9490:1;9479:21;;;9474:3;9470:31;;;9456:12;;;9449:53;9541:21;;;;9532:31;;;9518:12;;;9511:53;23185:45:0;;;;;;;;;9580:12:1;;;;23185:45:0;;23175:56;;;;;;23025:214;118080:56;118154:27;;-1:-1:-1;;;118154:27:0;;;;;13288:25:1;;;118058:78:0;;-1:-1:-1;118154:4:0;-1:-1:-1;;;;;118154:14:0;;;;13261:18:1;;118154:27:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;118147:34;;;;-1:-1:-1;118147:34:0;;-1:-1:-1;118147:34:0;-1:-1:-1;118147:34:0;;-1:-1:-1;117818:371:0;-1:-1:-1;;;;117818:371:0:o;112524:1823::-;112686:15;;;;-1:-1:-1;;;;;112831:13:0;;;112827:109;;112882:42;;-1:-1:-1;;;112882:42:0;;14202:1:1;14191:21;;;112882:42:0;;;14173:40:1;14249:21;;;14229:18;;;14222:49;-1:-1:-1;;;;;14307:47:1;;14287:18;;;14280:75;112882:4:0;-1:-1:-1;;;;;112882:9:0;;;;14146:18:1;;112882:42:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;112861:63;;-1:-1:-1;112861:63:0;-1:-1:-1;112827:109:0;113058:187;;-1:-1:-1;;;113058:187:0;;113097:4;113058:187;;;12335:51:1;12433:1;12422:21;;;12402:18;;;12395:49;12480:21;;;12460:18;;;12453:49;-1:-1:-1;;;;;12571:18:1;;;12564:43;;;12623:19;;;12616:44;113007:16:0;;;;-1:-1:-1;;;;;113058:4:0;:12;;;;12307:19:1;;113058:187:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;;;;;113006:239:0;;;;-1:-1:-1;113006:239:0;;-1:-1:-1;113272:18:0;113283:7;113006:239;113272:18;:::i;:::-;113258:32;-1:-1:-1;113315:18:0;113326:7;113315:8;:18;:::i;:::-;113301:32;;113346:24;113385;113424;113463;113540:1;113524:12;;113509;;:27;;;;:::i;:::-;113508:33;113504:711;;;113614:3;113599:12;;113585:11;:26;;;;:::i;:::-;:32;;;;:::i;:::-;113566:51;;113680:3;113665:12;;113651:11;:26;;;;:::i;:::-;:32;;;;:::i;:::-;113632:51;;113746:3;113731:12;;113717:11;:26;;;;:::i;:::-;:32;;;;:::i;:::-;113698:51;;113812:3;113797:12;;113783:11;:26;;;;:::i;:::-;:32;;;;:::i;:::-;113764:51;;113858:16;113845:10;;:29;;;;:::i;:::-;113832:10;:42;113902:10;;:29;;113915:16;;113902:29;:::i;:::-;113889:10;:42;113959:10;;:29;;113972:16;;113959:29;:::i;:::-;113946:10;:42;114016:10;;:29;;114029:16;;114016:29;:::i;:::-;114003:10;:42;114109:16;114076:30;114090:16;114076:11;:30;:::i;:::-;:49;;;;:::i;:::-;114062:63;-1:-1:-1;114187:16:0;114154:30;114168:16;114154:11;:30;:::i;:::-;:49;;;;:::i;:::-;114140:63;;113504:711;114230:109;;;28906:25:1;;;28962:2;28947:18;;28940:34;;;28990:18;;;28983:34;;;29048:2;29033:18;;29026:34;;;29091:3;29076:19;;29069:35;;;29135:3;29120:19;;29113:35;;;114230:109:0;;28893:3:1;28878:19;114230:109:0;;;;;;;112816:1531;;;;;;112524:1823;;;;;;;:::o;115472:596::-;115694:9;;115553:15;;;;;;;;;;115684:31;;-1:-1:-1;;;115694:9:0;;;;;;;-1:-1:-1;;;115705:9:0;;;;115684;:31::i;:::-;115768:9;;115603:112;;-1:-1:-1;115603:112:0;;-1:-1:-1;115603:112:0;-1:-1:-1;115747:53:0;;-1:-1:-1;;;115768:9:0;;;;;;;-1:-1:-1;;;;115779:9:0;;;;;;-1:-1:-1;115603:112:0;115747:20;:53::i;:::-;115901:12;;115886;;115726:74;;-1:-1:-1;115726:74:0;;-1:-1:-1;115848:19:0;;115886:27;;115901:12;115886:27;:::i;:::-;115870:44;;115878:3;115870:44;:::i;:::-;115848:66;-1:-1:-1;115983:3:0;115946:34;115848:66;-1:-1:-1;;;;;115946:20:0;;:34;:::i;:::-;:40;;;;:::i;:::-;115935:52;;:7;:52;:::i;:::-;115925:62;-1:-1:-1;116056:3:0;116019:34;116042:11;-1:-1:-1;;;;;116019:20:0;;:34;:::i;:::-;:40;;;;:::i;:::-;116008:52;;:7;:52;:::i;:::-;115998:62;;115592:476;;;;115472:596;;:::o;89631:591::-;-1:-1:-1;;;;;89715:21:0;;89707:67;;;;-1:-1:-1;;;89707:67:0;;22922:2:1;89707:67:0;;;22904:21:1;22961:2;22941:18;;;22934:30;23000:34;22980:18;;;22973:62;-1:-1:-1;;;23051:18:1;;;23044:31;23092:19;;89707:67:0;22720:397:1;89707:67:0;-1:-1:-1;;;;;89874:18:0;;89849:22;89874:18;;;;;;;;;;;89911:24;;;;89903:71;;;;-1:-1:-1;;;89903:71:0;;16493:2:1;89903:71:0;;;16475:21:1;16532:2;16512:18;;;16505:30;16571:34;16551:18;;;16544:62;-1:-1:-1;;;16622:18:1;;;16615:32;16664:19;;89903:71:0;16291:398:1;89903:71:0;-1:-1:-1;;;;;90010:18:0;;:9;:18;;;;;;;;;;90031:23;;;90010:44;;90076:12;:22;;90048:6;;90010:9;90076:22;;90048:6;;90076:22;:::i;:::-;;;;-1:-1:-1;;90116:37:0;;13288:25:1;;;90142:1:0;;-1:-1:-1;;;;;90116:37:0;;;;;13276:2:1;13261:18;90116:37:0;;;;;;;120930:344;;;:::o;107599:733::-;107762:15;107779;107808:22;107842:31;107852:9;107863;107842;:31::i;:::-;107807:66;;;;;;107884:17;107939:13;107930:6;107912:14;-1:-1:-1;;;;;107904:23:0;:32;;;;:::i;:::-;:48;;;;:::i;:::-;107884:68;-1:-1:-1;107969:13:0;;107965:360;;108000:15;108017;108034:13;108049;108083:60;108099:9;108110;108121:21;108132:9;108121:10;:21::i;:::-;108083:15;:60::i;:::-;107999:144;;;;;;;;108232:13;108223:6;108215:5;:14;;;;:::i;:::-;:30;;;;:::i;:::-;108204:42;;:7;:42;:::i;:::-;108194:52;-1:-1:-1;108299:13:0;108282:14;108290:6;108282:5;:14;:::i;:::-;:30;;;;:::i;:::-;108271:42;;:7;:42;:::i;:::-;108261:52;;107984:341;;;;107965:360;107796:536;;107599:733;;;;;;;:::o;111963:459::-;112084:9;112072:21;;:9;:21;;;112064:55;;;;-1:-1:-1;;;112064:55:0;;17226:2:1;112064:55:0;;;17208:21:1;17265:2;17245:18;;;17238:30;-1:-1:-1;;;17284:18:1;;;17277:51;17345:18;;112064:55:0;17024:345:1;112064:55:0;-1:-1:-1;;112138:30:0;;;;;;112130:60;;;;-1:-1:-1;;;112130:60:0;;24069:2:1;112130:60:0;;;24051:21:1;24108:2;24088:18;;;24081:30;-1:-1:-1;;;24127:18:1;;;24120:47;24184:18;;112130:60:0;23867:341:1;112130:60:0;13878:9;-1:-1:-1;;13878:9:0;:::i;:::-;112209:30;;:9;:30;;;;112201:61;;;;-1:-1:-1;;;112201:61:0;;24820:2:1;112201:61:0;;;24802:21:1;24859:2;24839:18;;;24832:30;-1:-1:-1;;;24878:18:1;;;24871:48;24936:18;;112201:61:0;24618:342:1;112201:61:0;112281:24;112293:12;112281:9;:24;:::i;:::-;:29;;;112273:65;;;;-1:-1:-1;;;112273:65:0;;18315:2:1;112273:65:0;;;18297:21:1;18354:2;18334:18;;;18327:30;18393:25;18373:18;;;18366:53;18436:18;;112273:65:0;18113:347:1;112273:65:0;112357:24;112369:12;112357:9;:24;:::i;:::-;:29;;;112349:65;;;;-1:-1:-1;;;112349:65:0;;19025:2:1;112349:65:0;;;19007:21:1;19064:2;19044:18;;;19037:30;19103:25;19083:18;;;19076:53;19146:18;;112349:65:0;18823:347:1;110934:1021:0;111157:16;111176:13;:11;:13::i;:::-;111157:32;;111200:16;111219:13;:11;:13::i;:::-;111200:32;;111246:10;111270:4;-1:-1:-1;;;;;111270:10:0;;:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;111243:39;;;;;;;;111298:49;111307:4;111313:8;111323;111333:13;83666:12;;;83578:108;111333:13;111298:49;;;15009:1:1;14998:21;;;;14980:40;;15051:2;15036:18;;15029:34;;;;15079:18;;;15072:34;15137:2;15122:18;;15115:34;14967:3;14952:19;111298:49:0;;;;;;;111364:15;;111360:332;;-1:-1:-1;;;;;111396:4:0;:9;;111432:4;111469:1;111456:14;;;111489:41;;111519:11;111520:10;111519:11;:::i;:::-;111489:41;;;111506:10;111489:41;111396:206;;-1:-1:-1;;;;;;111396:206:0;;;;;;;-1:-1:-1;;;;;11122:15:1;;;111396:206:0;;;11104:34:1;11181:14;;11174:22;11154:18;;;11147:50;11213:18;;;11206:34;11276:15;;;11256:18;;;11249:43;11084:3;11308:19;;;11301:32;-1:-1:-1;11349:19:1;;;11342:30;11389:19;;111396:206:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;111628:13;:11;:13::i;:::-;111617:24;;111667:13;:11;:13::i;:::-;111656:24;;111360:332;111744:17;111764:64;111785:10;111797;111809:8;111819;111764:20;:64::i;:::-;111744:84;-1:-1:-1;;;;;;111843:13:0;;;111839:109;;111873:63;;-1:-1:-1;;;111873:63:0;;111891:4;111873:63;;;11706:51:1;11804:1;11793:21;;;11773:18;;;11766:49;11851:21;;;11831:18;;;11824:49;-1:-1:-1;;;;;11909:47:1;;11889:18;;;11882:75;11744:3;11973:19;;;11966:32;-1:-1:-1;12014:19:1;;;12007:30;111873:4:0;-1:-1:-1;;;;;111873:9:0;;;;12054:19:1;;111873:63:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;111839:109;111090:865;;;;110934:1021;;;;:::o;118837:523::-;119001:7;119022:20;119058:4;-1:-1:-1;;;;;119058:10:0;;:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;119021:49;;;;;;;;119101:251;119159:12;119190:38;119218:9;119190:27;:38::i;:::-;119247;119275:9;119247:27;:38::i;:::-;119304:7;119330;119101:39;:251::i;:::-;119081:271;118837:523;-1:-1:-1;;;;;;118837:523:0:o;114570:653::-;114756:9;;114623:17;;;;;;;;114746:31;;-1:-1:-1;;;114756:9:0;;;;;;;-1:-1:-1;;;114767:9:0;;;;114746;:31::i;:::-;114655:122;;;;;;;;114790:19;114843:12;;114828;;:27;;;;:::i;:::-;114812:44;;114820:3;114812:44;:::i;:::-;114790:66;-1:-1:-1;114867:15:0;114939:3;114902:34;114790:66;-1:-1:-1;;;;;114902:20:0;;:34;:::i;:::-;:40;;;;:::i;:::-;114885:13;:11;:13::i;:::-;:58;;;;:::i;:::-;114867:76;-1:-1:-1;114954:15:0;115026:3;114989:34;115012:11;-1:-1:-1;;;;;114989:20:0;;:34;:::i;:::-;:40;;;;:::i;:::-;114972:13;:11;:13::i;:::-;:58;;;;:::i;:::-;115176:9;;114954:76;;-1:-1:-1;115155:60:0;;-1:-1:-1;;;115176:9:0;;;;;;;-1:-1:-1;;;115187:9:0;;;;115198:7;114954:76;115155:20;:60::i;:::-;115133:82;;:19;:82;:::i;:::-;115121:94;;114642:581;;;;;;114570:653;:::o;118271:484::-;118411:7;118420;118441:20;118477:4;-1:-1:-1;;;;;118477:10:0;;:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;118440:49;;;;;;;;118520:227;118578:12;118609:38;118637:9;118609:27;:38::i;:::-;118666;118694:9;118666:27;:38::i;:::-;118723:9;118520:39;:227::i;:::-;118500:247;;;;;118271:484;;;;;;:::o;78854:716::-;79278:23;79304:69;79332:4;79304:69;;;;;;;;;;;;;;;;;79312:5;-1:-1:-1;;;;;79304:27:0;;;:69;;;;;:::i;:::-;79388:17;;79278:95;;-1:-1:-1;79388:21:0;79384:179;;79485:10;79474:30;;;;;;;;;;;;:::i;:::-;79466:85;;;;-1:-1:-1;;;79466:85:0;;25865:2:1;79466:85:0;;;25847:21:1;25904:2;25884:18;;;25877:30;25943:34;25923:18;;;25916:62;-1:-1:-1;;;25994:18:1;;;25987:40;26044:19;;79466:85:0;25663:406:1;119428:140:0;119482:7;-1:-1:-1;;;;;119509:22:0;;;119502:30;;;;:::i;:::-;-1:-1:-1;119558:1:0;119428:140::o;14608:2794::-;14671:20;14729:15;14754:1;14747:4;:8;;;:57;;14798:4;14791:12;;14747:57;;;14774:4;14767:12;;14766:13;;14747:57;14729:75;-1:-1:-1;13878:9:0;14823:35;;14819:51;;;14867:3;;-1:-1:-1;;;14867:3:0;;;;;;;;;;;14819:51;14887:13;14913:3;14903:13;;:127;;-1:-1:-1;;;14903:127:0;;;14941:34;14903:127;14887:143;;;-1:-1:-1;15059:3:0;15049:13;;:18;15045:83;;15086:34;15078:42;15125:3;15077:51;15045:83;15157:3;15147:13;;:18;15143:83;;15184:34;15176:42;15223:3;15175:51;15143:83;15255:3;15245:13;;:18;15241:83;;15282:34;15274:42;15321:3;15273:51;15241:83;15353:4;15343:14;;:19;15339:84;;15381:34;15373:42;15420:3;15372:51;15339:84;15452:4;15442:14;;:19;15438:84;;15480:34;15472:42;15519:3;15471:51;15438:84;15551:4;15541:14;;:19;15537:84;;15579:34;15571:42;15618:3;15570:51;15537:84;15650:4;15640:14;;:19;15636:84;;15678:34;15670:42;15717:3;15669:51;15636:84;15749:5;15739:15;;:20;15735:85;;15778:34;15770:42;15817:3;15769:51;15735:85;15849:5;15839:15;;:20;15835:85;;15878:34;15870:42;15917:3;15869:51;15835:85;15949:5;15939:15;;:20;15935:85;;15978:34;15970:42;16017:3;15969:51;15935:85;16049:5;16039:15;;:20;16035:85;;16078:34;16070:42;16117:3;16069:51;16035:85;16149:6;16139:16;;:21;16135:86;;16179:34;16171:42;16218:3;16170:51;16135:86;16250:6;16240:16;;:21;16236:86;;16280:34;16272:42;16319:3;16271:51;16236:86;16351:6;16341:16;;:21;16337:86;;16381:34;16373:42;16420:3;16372:51;16337:86;16452:6;16442:16;;:21;16438:86;;16482:34;16474:42;16521:3;16473:51;16438:86;16553:7;16543:17;;:22;16539:86;;16584:33;16576:41;16622:3;16575:50;16539:86;16654:7;16644:17;;:22;16640:85;;16685:32;16677:40;16722:3;16676:49;16640:85;16754:7;16744:17;;:22;16740:83;;16785:30;16777:38;16820:3;16776:47;16740:83;16852:7;16842:17;;:22;16838:78;;16883:25;16875:33;16913:3;16874:42;16838:78;16944:1;16937:4;:8;;;16933:47;;;16975:5;-1:-1:-1;;16955:25:0;;;;;:::i;:::-;;16947:33;;16933:47;17360:7;17351:5;:17;:22;:30;;17380:1;17351:30;;;17376:1;17351:30;17334:48;;17344:2;17335:5;:11;;17334:48;17311:72;;14704:2691;;14608:2794;;;:::o;9150:920::-;9359:17;9409:13;-1:-1:-1;;;;;9393:29:0;:13;-1:-1:-1;;;;;9393:29:0;;9389:98;;;9458:13;;9473;9389:98;9520:13;-1:-1:-1;;;;;9504:29:0;:12;-1:-1:-1;;;;;9504:29:0;;9500:563;;9562:61;9585:13;9600;9615:7;9562:22;:61::i;:::-;9550:73;;9500:563;;;9660:13;-1:-1:-1;;;;;9645:28:0;:12;-1:-1:-1;;;;;9645:28:0;;9641:422;;;9690:18;9711:60;9734:12;9748:13;9763:7;9711:22;:60::i;:::-;9690:81;;9786:18;9807:60;9830:13;9845:12;9859:7;9807:22;:60::i;:::-;9786:81;;9909:10;-1:-1:-1;;;;;9896:23:0;:10;-1:-1:-1;;;;;9896:23:0;;:49;;9935:10;9896:49;;;9922:10;9896:49;9884:61;;9675:282;;9641:422;;;9990:61;10013:13;10028;10043:7;9990:22;:61::i;:::-;9978:73;;9641:422;9150:920;;;;;;;:::o;12341:815::-;12526:15;12543;12591:13;-1:-1:-1;;;;;12575:29:0;:13;-1:-1:-1;;;;;12575:29:0;;12571:98;;;12640:13;;12655;12571:98;12702:13;-1:-1:-1;;;;;12686:29:0;:12;-1:-1:-1;;;;;12686:29:0;;12682:467;;12742:63;12765:13;12780;12795:9;12742:22;:63::i;:::-;12732:73;;12682:467;;;12842:13;-1:-1:-1;;;;;12827:28:0;:12;-1:-1:-1;;;;;12827:28:0;;12823:326;;;12882:62;12905:12;12919:13;12934:9;12882:22;:62::i;:::-;12872:72;;12969:62;12992:13;13007:12;13021:9;12969:22;:62::i;:::-;12959:72;;12823:326;;;13074:63;13097:13;13112;13127:9;13074:22;:63::i;:::-;13064:73;;12823:326;12341:815;;;;;;;:::o;64361:229::-;64498:12;64530:52;64552:6;64560:4;64566:1;64569:12;64530:21;:52::i;:::-;64523:59;64361:229;-1:-1:-1;;;;64361:229:0:o;7148:519::-;7300:17;7350:13;-1:-1:-1;;;;;7334:29:0;:13;-1:-1:-1;;;;;7334:29:0;;7330:98;;;7399:13;;7414;7330:98;7439:20;7462:63;7478:13;-1:-1:-1;;;;;7462:63:0;7493:13;-1:-1:-1;;;;;7462:63:0;-1:-1:-1;;;7462:15:0;:63::i;:::-;7439:86;;7568:80;7578:69;7594:7;7603:12;7633:13;7617;:29;-1:-1:-1;;;;;7578:69:0;:15;:69::i;:::-;7568:9;:80::i;8114:426::-;8266:17;8316:13;-1:-1:-1;;;;;8300:29:0;:13;-1:-1:-1;;;;;8300:29:0;;8296:98;;;8365:13;;8380;8296:98;8437:84;8447:73;8463:7;-1:-1:-1;;;8506:13:0;8490;:29;-1:-1:-1;;;;;8447:73:0;:15;:73::i;10435:571::-;10589:15;10662:13;-1:-1:-1;;;;;10646:29:0;:13;-1:-1:-1;;;;;10646:29:0;;10642:98;;;10711:13;;10726;10642:98;10974:13;-1:-1:-1;;;;;10781:206:0;:190;338:2;10819:45;;10827:9;-1:-1:-1;;;;;10819:18:0;:45;;10903:13;10887;:29;-1:-1:-1;;;;;10781:190:0;10939:13;-1:-1:-1;;;;;10781:190:0;:15;:190::i;:::-;:206;;;;;:::i;:::-;;;10435:571;-1:-1:-1;;;;10435:571:0:o;11371:419::-;11525:15;11573:13;-1:-1:-1;;;;;11557:29:0;:13;-1:-1:-1;;;;;11557:29:0;;11553:98;;;11622:13;;11637;11553:98;11696:75;11712:9;-1:-1:-1;;;;;11696:75:0;11739:13;11723;:29;-1:-1:-1;;;;;11696:75:0;-1:-1:-1;;;11696:15:0;:75::i;65481:510::-;65651:12;65709:5;65684:21;:30;;65676:81;;;;-1:-1:-1;;;65676:81:0;;19784:2:1;65676:81:0;;;19766:21:1;19823:2;19803:18;;;19796:30;19862:34;19842:18;;;19835:62;-1:-1:-1;;;19913:18:1;;;19906:36;19959:19;;65676:81:0;19582:402:1;65676:81:0;-1:-1:-1;;;;;61911:19:0;;;65768:60;;;;-1:-1:-1;;;65768:60:0;;25167:2:1;65768:60:0;;;25149:21:1;25206:2;25186:18;;;25179:30;25245:31;25225:18;;;25218:59;25294:18;;65768:60:0;24965:353:1;65768:60:0;65842:12;65856:23;65883:6;-1:-1:-1;;;;;65883:11:0;65902:5;65909:4;65883:31;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;65841:73;;;;65932:51;65949:7;65958:10;65970:12;65932:16;:51::i;:::-;65925:58;65481:510;-1:-1:-1;;;;;;;65481:510:0:o;1218:4221::-;1334:14;;;-1:-1:-1;;1907:1:0;1904;1897:20;1951:1;1948;1944:9;1935:18;;2007:5;2003:2;2000:13;1992:5;1988:2;1984:14;1980:34;1971:43;;;2112:5;2121:1;2112:10;2108:209;;;2165:1;2151:11;:15;2143:24;;;;;;-1:-1:-1;2228:23:0;;;;-1:-1:-1;2288:13:0;;2108:209;2460:5;2446:11;:19;2438:28;;;;;;2775:17;2861:11;2858:1;2855;2848:25;3264:12;3280:15;;;3279:31;;3419:22;;;;;4314:1;4295;:15;;4294:21;;4561:17;;;4557:21;;4550:28;4624:17;;;4620:21;;4613:28;4688:17;;;4684:21;;4677:28;4752:17;;;4748:21;;4741:28;4816:17;;;4812:21;;4805:28;4881:17;;;4877:21;;;4870:28;3842:12;;;;3838:23;;;3863:1;3834:31;3010:20;;;2999:32;;;3903:12;;;;3058:21;;;;3568:16;;;;3894:21;;;;5381:11;;;;;-1:-1:-1;;1218:4221:0;;;;;:::o;6560:112::-;6662:1;-1:-1:-1;;;;;6642:21:0;;;;6634:30;;;;;;6560:112;;;:::o;68167:762::-;68317:12;68346:7;68342:580;;;-1:-1:-1;68377:10:0;68370:17;;68342:580;68491:17;;:21;68487:424;;68739:10;68733:17;68800:15;68787:10;68783:2;68779:19;68772:44;68487:424;68882:12;68875:20;;-1:-1:-1;;;68875:20:0;;;;;;;;:::i;14:164:1:-;90:13;;139;;132:21;122:32;;112:60;;168:1;165;158:12;183:347;234:8;244:6;298:3;291:4;283:6;279:17;275:27;265:55;;316:1;313;306:12;265:55;-1:-1:-1;339:20:1;;382:18;371:30;;368:50;;;414:1;411;404:12;368:50;451:4;443:6;439:17;427:29;;503:3;496:4;487:6;479;475:19;471:30;468:39;465:59;;;520:1;517;510:12;465:59;183:347;;;;;:::o;535:192::-;614:13;;-1:-1:-1;;;;;656:46:1;;646:57;;636:85;;717:1;714;707:12;732:163;810:13;;863:6;852:18;;842:29;;832:57;;885:1;882;875:12;900:247;959:6;1012:2;1000:9;991:7;987:23;983:32;980:52;;;1028:1;1025;1018:12;980:52;1067:9;1054:23;1086:31;1111:5;1086:31;:::i;1152:388::-;1220:6;1228;1281:2;1269:9;1260:7;1256:23;1252:32;1249:52;;;1297:1;1294;1287:12;1249:52;1336:9;1323:23;1355:31;1380:5;1355:31;:::i;:::-;1405:5;-1:-1:-1;1462:2:1;1447:18;;1434:32;1475:33;1434:32;1475:33;:::i;:::-;1527:7;1517:17;;;1152:388;;;;;:::o;1545:456::-;1622:6;1630;1638;1691:2;1679:9;1670:7;1666:23;1662:32;1659:52;;;1707:1;1704;1697:12;1659:52;1746:9;1733:23;1765:31;1790:5;1765:31;:::i;:::-;1815:5;-1:-1:-1;1872:2:1;1857:18;;1844:32;1885:33;1844:32;1885:33;:::i;:::-;1545:456;;1937:7;;-1:-1:-1;;;1991:2:1;1976:18;;;;1963:32;;1545:456::o;2006:315::-;2074:6;2082;2135:2;2123:9;2114:7;2110:23;2106:32;2103:52;;;2151:1;2148;2141:12;2103:52;2190:9;2177:23;2209:31;2234:5;2209:31;:::i;:::-;2259:5;2311:2;2296:18;;;;2283:32;;-1:-1:-1;;;2006:315:1:o;2326:202::-;2393:6;2446:2;2434:9;2425:7;2421:23;2417:32;2414:52;;;2462:1;2459;2452:12;2414:52;2485:37;2512:9;2485:37;:::i;2533:471::-;2625:6;2633;2641;2694:2;2682:9;2673:7;2669:23;2665:32;2662:52;;;2710:1;2707;2700:12;2662:52;2749:9;2736:23;2768:31;2793:5;2768:31;:::i;:::-;2818:5;-1:-1:-1;2870:2:1;2855:18;;2842:32;;-1:-1:-1;2926:2:1;2911:18;;2898:32;2939:33;2898:32;2939:33;:::i;:::-;2991:7;2981:17;;;2533:471;;;;;:::o;3009:243::-;3086:6;3094;3147:2;3135:9;3126:7;3122:23;3118:32;3115:52;;;3163:1;3160;3153:12;3115:52;-1:-1:-1;;3186:16:1;;3242:2;3227:18;;;3221:25;3186:16;;3221:25;;-1:-1:-1;3009:243:1:o;3257:543::-;3343:6;3351;3359;3367;3420:2;3408:9;3399:7;3395:23;3391:32;3388:52;;;3436:1;3433;3426:12;3388:52;3472:9;3459:23;3449:33;;3529:2;3518:9;3514:18;3501:32;3491:42;;3584:2;3573:9;3569:18;3556:32;3611:18;3603:6;3600:30;3597:50;;;3643:1;3640;3633:12;3597:50;3682:58;3732:7;3723:6;3712:9;3708:22;3682:58;:::i;:::-;3257:543;;;;-1:-1:-1;3759:8:1;-1:-1:-1;;;;3257:543:1:o;3805:314::-;3872:6;3880;3933:2;3921:9;3912:7;3908:23;3904:32;3901:52;;;3949:1;3946;3939:12;3901:52;3985:9;3972:23;3962:33;;4045:2;4034:9;4030:18;4017:32;4058:31;4083:5;4058:31;:::i;4124:589::-;4205:6;4213;4221;4229;4282:3;4270:9;4261:7;4257:23;4253:33;4250:53;;;4299:1;4296;4289:12;4250:53;4335:9;4322:23;4312:33;;4395:2;4384:9;4380:18;4367:32;4408:31;4433:5;4408:31;:::i;:::-;4458:5;-1:-1:-1;4515:2:1;4500:18;;4487:32;4528:31;4487:32;4528:31;:::i;:::-;4578:7;-1:-1:-1;4637:2:1;4622:18;;4609:32;4650:31;4609:32;4650:31;:::i;:::-;4124:589;;;;-1:-1:-1;4124:589:1;;-1:-1:-1;;4124:589:1:o;4718:293::-;4797:6;4805;4858:2;4846:9;4837:7;4833:23;4829:32;4826:52;;;4874:1;4871;4864:12;4826:52;4897:40;4927:9;4897:40;:::i;:::-;4887:50;;4956:49;5001:2;4990:9;4986:18;4956:49;:::i;:::-;4946:59;;4718:293;;;;;:::o;5016:502::-;5122:6;5130;5138;5146;5154;5207:3;5195:9;5186:7;5182:23;5178:33;5175:53;;;5224:1;5221;5214:12;5175:53;5247:40;5277:9;5247:40;:::i;:::-;5237:50;;5327:2;5316:9;5312:18;5306:25;5296:35;;5371:2;5360:9;5356:18;5350:25;5340:35;;5394:49;5439:2;5428:9;5424:18;5394:49;:::i;:::-;5384:59;;5462:50;5507:3;5496:9;5492:19;5462:50;:::i;:::-;5452:60;;5016:502;;;;;;;;:::o;5523:871::-;5637:6;5645;5653;5661;5669;5677;5685;5738:3;5726:9;5717:7;5713:23;5709:33;5706:53;;;5755:1;5752;5745:12;5706:53;5787:9;5781:16;5806:31;5831:5;5806:31;:::i;:::-;5906:2;5891:18;;5885:25;5856:5;;-1:-1:-1;5919:31:1;5885:25;5919:31;:::i;:::-;5969:7;-1:-1:-1;5995:48:1;6039:2;6024:18;;5995:48;:::i;:::-;5985:58;;6062:48;6106:2;6095:9;6091:18;6062:48;:::i;:::-;6052:58;;6129:49;6173:3;6162:9;6158:19;6129:49;:::i;:::-;6119:59;;6223:3;6212:9;6208:19;6202:26;6272:4;6263:7;6259:18;6250:7;6247:31;6237:59;;6292:1;6289;6282:12;6237:59;6315:7;-1:-1:-1;6341:47:1;6383:3;6368:19;;6341:47;:::i;:::-;6331:57;;5523:871;;;;;;;;;;:::o;6399:180::-;6458:6;6511:2;6499:9;6490:7;6486:23;6482:32;6479:52;;;6527:1;6524;6517:12;6479:52;-1:-1:-1;6550:23:1;;6399:180;-1:-1:-1;6399:180:1:o;6584:184::-;6654:6;6707:2;6695:9;6686:7;6682:23;6678:32;6675:52;;;6723:1;6720;6713:12;6675:52;-1:-1:-1;6746:16:1;;6584:184;-1:-1:-1;6584:184:1:o;6773:248::-;6841:6;6849;6902:2;6890:9;6881:7;6877:23;6873:32;6870:52;;;6918:1;6915;6908:12;6870:52;-1:-1:-1;;6941:23:1;;;7011:2;6996:18;;;6983:32;;-1:-1:-1;6773:248:1:o;7276:383::-;7353:6;7361;7369;7422:2;7410:9;7401:7;7397:23;7393:32;7390:52;;;7438:1;7435;7428:12;7390:52;7474:9;7461:23;7451:33;;7531:2;7520:9;7516:18;7503:32;7493:42;;7585:2;7574:9;7570:18;7557:32;7598:31;7623:5;7598:31;:::i;8214:452::-;8300:6;8308;8316;8324;8377:3;8365:9;8356:7;8352:23;8348:33;8345:53;;;8394:1;8391;8384:12;8345:53;8430:9;8417:23;8407:33;;8487:2;8476:9;8472:18;8459:32;8449:42;;8538:2;8527:9;8523:18;8510:32;8500:42;;8592:2;8581:9;8577:18;8564:32;8605:31;8630:5;8605:31;:::i;8671:521::-;8766:6;8774;8782;8790;8798;8851:3;8839:9;8830:7;8826:23;8822:33;8819:53;;;8868:1;8865;8858:12;8819:53;8904:9;8891:23;8881:33;;8961:2;8950:9;8946:18;8933:32;8923:42;;9012:2;9001:9;8997:18;8984:32;8974:42;;9063:2;9052:9;9048:18;9035:32;9025:42;;9117:3;9106:9;9102:19;9089:33;9131:31;9156:5;9131:31;:::i;:::-;9181:5;9171:15;;;8671:521;;;;;;;;:::o;9603:274::-;9732:3;9770:6;9764:13;9786:53;9832:6;9827:3;9820:4;9812:6;9808:17;9786:53;:::i;:::-;9855:16;;;;;9603:274;-1:-1:-1;;9603:274:1:o;15160:383::-;15309:2;15298:9;15291:21;15272:4;15341:6;15335:13;15384:6;15379:2;15368:9;15364:18;15357:34;15400:66;15459:6;15454:2;15443:9;15439:18;15434:2;15426:6;15422:15;15400:66;:::i;:::-;15527:2;15506:15;-1:-1:-1;;15502:29:1;15487:45;;;;15534:2;15483:54;;15160:383;-1:-1:-1;;15160:383:1:o;22047:334::-;22249:2;22231:21;;;22288:2;22268:18;;;22261:30;-1:-1:-1;;;22322:2:1;22307:18;;22300:40;22372:2;22357:18;;22047:334::o;25323:335::-;25525:2;25507:21;;;25564:2;25544:18;;;25537:30;-1:-1:-1;;;25598:2:1;25583:18;;25576:41;25649:2;25634:18;;25323:335::o;26074:331::-;26276:2;26258:21;;;26315:1;26295:18;;;26288:29;-1:-1:-1;;;26348:2:1;26333:18;;26326:38;26396:2;26381:18;;26074:331::o;26410:355::-;26612:2;26594:21;;;26651:2;26631:18;;;26624:30;26690:33;26685:2;26670:18;;26663:61;26756:2;26741:18;;26410:355::o;29348:253::-;29388:3;-1:-1:-1;;;;;29477:2:1;29474:1;29470:10;29507:2;29504:1;29500:10;29538:3;29534:2;29530:12;29525:3;29522:21;29519:47;;;29546:18;;:::i;:::-;29582:13;;29348:253;-1:-1:-1;;;;29348:253:1:o;29606:128::-;29646:3;29677:1;29673:6;29670:1;29667:13;29664:39;;;29683:18;;:::i;:::-;-1:-1:-1;29719:9:1;;29606:128::o;29739:120::-;29779:1;29805;29795:35;;29810:18;;:::i;:::-;-1:-1:-1;29844:9:1;;29739:120::o;29864:168::-;29904:7;29970:1;29966;29962:6;29958:14;29955:1;29952:21;29947:1;29940:9;29933:17;29929:45;29926:71;;;29977:18;;:::i;:::-;-1:-1:-1;30017:9:1;;29864:168::o;30037:125::-;30077:4;30105:1;30102;30099:8;30096:34;;;30110:18;;:::i;:::-;-1:-1:-1;30147:9:1;;30037:125::o;30167:258::-;30239:1;30249:113;30263:6;30260:1;30257:13;30249:113;;;30339:11;;;30333:18;30320:11;;;30313:39;30285:2;30278:10;30249:113;;;30380:6;30377:1;30374:13;30371:48;;;-1:-1:-1;;30415:1:1;30397:16;;30390:27;30167:258::o;30430:380::-;30509:1;30505:12;;;;30552;;;30573:61;;30627:4;30619:6;30615:17;30605:27;;30573:61;30680:2;30672:6;30669:14;30649:18;30646:38;30643:161;;;30726:10;30721:3;30717:20;30714:1;30707:31;30761:4;30758:1;30751:15;30789:4;30786:1;30779:15;30643:161;;30430:380;;;:::o;30815:166::-;30845:1;30886;30883;30872:16;30907:3;30897:37;;30914:18;;:::i;:::-;30971:3;30967:1;30964;30953:16;30948:27;30943:32;;;30815:166;;;;:::o;30986:184::-;31020:3;31067:5;31064:1;31053:20;31101:7;31097:12;31088:7;31085:25;31082:51;;;31113:18;;:::i;:::-;31153:1;31149:15;;30986:184;-1:-1:-1;;30986:184:1:o;31175:136::-;31210:3;-1:-1:-1;;;31231:22:1;;31228:48;;;31256:18;;:::i;:::-;-1:-1:-1;31296:1:1;31292:13;;31175:136::o;31316:127::-;31377:10;31372:3;31368:20;31365:1;31358:31;31408:4;31405:1;31398:15;31432:4;31429:1;31422:15;31448:127;31509:10;31504:3;31500:20;31497:1;31490:31;31540:4;31537:1;31530:15;31564:4;31561:1;31554:15;31580:127;31641:10;31636:3;31632:20;31629:1;31622:31;31672:4;31669:1;31662:15;31696:4;31693:1;31686:15;31712:131;-1:-1:-1;;;;;31787:31:1;;31777:42;;31767:70;;31833:1;31830;31823:12;31767:70;31712:131;:::o;31848:118::-;31935:5;31932:1;31921:20;31914:5;31911:31;31901:59;;31956:1;31953;31946:12

Swarm Source

ipfs://1e80d26d63e72465916e4274490ba70bb4b0328bddccd6bc5c72d611e1fef19b
Loading...
Loading
Loading...
Loading
[ 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.