ETH Price: $3,161.06 (+2.92%)
Gas: 1 Gwei

Contract

0xbC5CD6D8485b0671C5641D5698667A36947FB789
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Start197628232024-04-29 18:42:2374 days ago1714416143IN
0xbC5CD6D8...6947FB789
0 ETH0.0831998311.45045414
Set Fee197626462024-04-29 18:06:5974 days ago1714414019IN
0xbC5CD6D8...6947FB789
0 ETH0.0004403613.98636248
Transfer197624902024-04-29 17:35:3574 days ago1714412135IN
0xbC5CD6D8...6947FB789
0.19018122 ETH0.0011590314.46841956
Transfer197624872024-04-29 17:34:5974 days ago1714412099IN
0xbC5CD6D8...6947FB789
0.47671462 ETH0.0011745814.66250654
Transfer197624852024-04-29 17:34:3574 days ago1714412075IN
0xbC5CD6D8...6947FB789
0.47855336 ETH0.0012095715.09933386
Transfer197624832024-04-29 17:34:1174 days ago1714412051IN
0xbC5CD6D8...6947FB789
1.45032563 ETH0.0012094815.09816711
Transfer197624782024-04-29 17:33:1174 days ago1714411991IN
0xbC5CD6D8...6947FB789
0.47636722 ETH0.0014426618.00897413
Transfer197624762024-04-29 17:32:4774 days ago1714411967IN
0xbC5CD6D8...6947FB789
0.47731247 ETH0.0015255419.04358165
Transfer197624732024-04-29 17:32:1174 days ago1714411931IN
0xbC5CD6D8...6947FB789
0.4747918 ETH0.0015632619.5144898
Transfer197624702024-04-29 17:31:3574 days ago1714411895IN
0xbC5CD6D8...6947FB789
0.97896192 ETH0.0015949819.91047127
Transfer197624672024-04-29 17:30:5974 days ago1714411859IN
0xbC5CD6D8...6947FB789
0.98106933 ETH0.0015186718.9578715
Transfer197624632024-04-29 17:30:1174 days ago1714411811IN
0xbC5CD6D8...6947FB789
0.87475784 ETH0.0011553114.42190887
Transfer197624612024-04-29 17:29:4774 days ago1714411787IN
0xbC5CD6D8...6947FB789
0.57580786 ETH0.0009720512.13425475
Transfer197624592024-04-29 17:29:2374 days ago1714411763IN
0xbC5CD6D8...6947FB789
0.48106933 ETH0.0009213111.50091085
Transfer197624572024-04-29 17:28:4774 days ago1714411727IN
0xbC5CD6D8...6947FB789
0.68276614 ETH0.0009578511.95699106
Transfer197624542024-04-29 17:28:1174 days ago1714411691IN
0xbC5CD6D8...6947FB789
0.68655228 ETH0.0009630612.02210901
Transfer197624522024-04-29 17:27:4774 days ago1714411667IN
0xbC5CD6D8...6947FB789
1.37789761 ETH0.0009474611.8274022
Transfer197624502024-04-29 17:27:2374 days ago1714411643IN
0xbC5CD6D8...6947FB789
0.57778647 ETH0.000958911.97016705
Transfer197624462024-04-29 17:26:3574 days ago1714411595IN
0xbC5CD6D8...6947FB789
0.88246623 ETH0.000975412.17609777
Transfer197624442024-04-29 17:26:1174 days ago1714411571IN
0xbC5CD6D8...6947FB789
0.56831456 ETH0.0004644612.27530657
Transfer197624412024-04-29 17:25:3574 days ago1714411535IN
0xbC5CD6D8...6947FB789
1.47603922 ETH0.0009369711.69645899
Transfer197624392024-04-29 17:25:1174 days ago1714411511IN
0xbC5CD6D8...6947FB789
0.37908703 ETH0.0009931812.39804922
Transfer197624362024-04-29 17:24:3574 days ago1714411475IN
0xbC5CD6D8...6947FB789
0.53072184 ETH0.0009359411.68356353
Transfer197624332024-04-29 17:23:5974 days ago1714411439IN
0xbC5CD6D8...6947FB789
0.77712841 ETH0.0008967111.19378518
Transfer197624312024-04-29 17:23:3574 days ago1714411415IN
0xbC5CD6D8...6947FB789
0.97930816 ETH0.0009430711.77257466
View all transactions

Latest 2 internal transactions

Advanced mode:
Parent Transaction Hash Block From To
197628232024-04-29 18:42:2374 days ago1714416143
0xbC5CD6D8...6947FB789
0.028 ETH
197628232024-04-29 18:42:2374 days ago1714416143
0xbC5CD6D8...6947FB789
18.952358 ETH
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
UniV3Batch

Compiler Version
v0.7.6+commit.7338295f

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, None license
File 1 of 10 : UniV3Batch.sol
// SPDX-License-Identifier: No License (None)
pragma solidity 0.7.6;
pragma abicoder v2;

//import '@uniswap/v3-core/contracts/interfaces/IUniswapV3Factory.sol';
import '@uniswap/v3-core/contracts/interfaces/IUniswapV3Pool.sol';
//import '@uniswap/v3-periphery/contracts/interfaces/ISwapRouter.sol';
//import '@uniswap/v3-periphery/contracts/interfaces/INonfungiblePositionManager.sol';
import '@uniswap/v3-core/contracts/libraries/FullMath.sol';
import '@uniswap/v3-core/contracts/libraries/TickMath.sol';

// helper methods for interacting with ERC20 tokens and sending ETH that do not consistently return true/false
library TransferHelper {
    function safeApprove(address token, address to, uint value) internal {
        // bytes4(keccak256(bytes('approve(address,uint256)')));
        (bool success, bytes memory data) = token.call(abi.encodeWithSelector(0x095ea7b3, to, value));
        require(success && (data.length == 0 || abi.decode(data, (bool))), 'TransferHelper: APPROVE_FAILED');
    }

    function safeTransfer(address token, address to, uint value) internal {
        // bytes4(keccak256(bytes('transfer(address,uint256)')));
        (bool success, bytes memory data) = token.call(abi.encodeWithSelector(0xa9059cbb, to, value));
        require(success && (data.length == 0 || abi.decode(data, (bool))), 'TransferHelper: TRANSFER_FAILED');
    }

    function safeTransferFrom(address token, address from, address to, uint value) internal {
        // bytes4(keccak256(bytes('transferFrom(address,address,uint256)')));
        (bool success, bytes memory data) = token.call(abi.encodeWithSelector(0x23b872dd, from, to, value));
        require(success && (data.length == 0 || abi.decode(data, (bool))), 'TransferHelper: TRANSFER_FROM_FAILED');
    }

    function safeTransferETH(address to, uint value) internal {
        (bool success,) = to.call{value:value}(new bytes(0));
        require(success, 'TransferHelper: ETH_TRANSFER_FAILED');
    }
}

abstract contract Ownable {
    address internal _owner;

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
     /*
    constructor () {
        _owner = msg.sender;
        emit OwnershipTransferred(address(0), msg.sender);
    }
    */
    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(owner() == msg.sender, "Ownable: caller is not the owner");
        _;
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }
}

interface INonfungiblePositionManager {
    struct MintParams {
        address token0;
        address token1;
        uint24 fee;
        int24 tickLower;
        int24 tickUpper;
        uint256 amount0Desired;
        uint256 amount1Desired;
        uint256 amount0Min;
        uint256 amount1Min;
        address recipient;
        uint256 deadline;
    }

    /// @notice Creates a new position wrapped in a NFT
    /// @dev Call this when the pool does exist and is initialized. Note that if the pool is created but not initialized
    /// a method does not exist, i.e. the pool is assumed to be initialized.
    /// @param params The params necessary to mint a position, encoded as `MintParams` in calldata
    /// @return tokenId The ID of the token that represents the minted position
    /// @return liquidity The amount of liquidity for this position
    /// @return amount0 The amount of token0
    /// @return amount1 The amount of token1
    function mint(MintParams calldata params)
        external
        payable
        returns (
            uint256 tokenId,
            uint128 liquidity,
            uint256 amount0,
            uint256 amount1
        );
    
    /// @notice Creates a new pool if it does not exist, then initializes if not initialized
    /// @dev This method can be bundled with others via IMulticall for the first action (e.g. mint) performed against a pool
    /// @param token0 The contract address of token0 of the pool
    /// @param token1 The contract address of token1 of the pool
    /// @param fee The fee amount of the v3 pool for the specified token pair
    /// @param sqrtPriceX96 The initial square root price of the pool as a Q64.96 value
    /// @return pool Returns the pool address based on the pair of tokens and fee, will return the newly created pool address if necessary
    function createAndInitializePoolIfNecessary(
        address token0,
        address token1,
        uint24 fee,
        uint160 sqrtPriceX96
    ) external payable returns (address pool);
}

interface IERC20 {
    function balanceOf(address owner) external view returns (uint);
}


contract UniV3Batch is Ownable {
    using TransferHelper for address;

    address public weth;
    address public projectToken;
    INonfungiblePositionManager public positionManager;

    address[] public investors;
    mapping(address => uint256) public investments;
    bool public finished;
    address public pool;
    uint256 public gasFee;
    uint256 public totalCollected;
    uint256 public swapFee; // fee with 2 decimals (i.e. 500 = 5%)
    address public feeReceiver;


    receive() external payable {
        require(!finished, "already finished");
        require(investors.length < 100, "Too many");
        require(msg.value > gasFee, "too small investment");
        uint256 investment = investments[msg.sender];
        if (investment == 0) investors.push(msg.sender);
        uint256 amount = msg.value - gasFee;
        totalCollected += amount;
        investments[msg.sender] += amount;
    }

    function initialize(address _newOwner) external {
        require(_owner == address(0) && _newOwner != address(0));
    //constructor() {
        _owner = _newOwner;
        emit OwnershipTransferred(address(0), _newOwner);
        swapFee = 500; // 5%
        feeReceiver = 0x1832451ef9a873f36b7f65d1e98f4EEA6758Ca9b;
        //weth = 0xae13d989daC2f0dEbFf460aC112a837C89BAa7cd;  // wbnb on bsc testnet
        //projectToken = 0xBD865Aa88641B9a2684A67a584896E8dD28BDe3F; // test2 on bsc testnet
        //weth = 0x2a2787d369b54Fc91467B854E77E593eB3aeA9f0;  // test on bsc testnet
        //projectToken = 0xBD865Aa88641B9a2684A67a584896E8dD28BDe3F; // test2 on bsc testnet
        //positionManager = INonfungiblePositionManager(0x427bF5b37357632377eCbEC9de3626C71A5396c1); // BSC testnet Pancake swap
        weth = 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2;  // weth on ETH
        projectToken = 0x7B8e9bF44190559255142273ED581291C719B6d8; // SmartExchange token on ETH
        positionManager = INonfungiblePositionManager(0xC36442b4a4522E871399CD717aBDD847Ab11FE88);  // ETH Uniswap 
        gasFee = 0.001 ether; // 33K Gas * 30 Gwei (gas price)
    }

    // fee with 2 decimals (i.e. 500 = 5%)
    function setFee(uint256 _swapFee, address _feeReceiver) external onlyOwner {
        swapFee = _swapFee;
        feeReceiver = _feeReceiver;
    }

    // create pool with liquidity in a range from currentPrice to upperPrice
    function start(uint128 currentPrice, uint128 upperPrice) external onlyOwner {
        require(!finished, "already finished");
        address token = projectToken;
        uint256 liquidityAmount = IERC20(token).balanceOf(address(this));
        {
        address _weth = weth;
        (int24 lowerTick, uint256 sqrtPriceX96) = getTickByQuote(currentPrice, 1 ether, _weth, token);
        (int24 upperTick,) = getTickByQuote(upperPrice, 1 ether, _weth, token);
        createAndInitializePool(_weth, token, 100, uint160(sqrtPriceX96), lowerTick, upperTick, 0, liquidityAmount);
        }
        uint256 total = totalCollected;
        uint256 amountOut = swap(total);
        // take fee from swap
        uint256 fee = amountOut * swapFee / 10000;
        token.safeTransfer(feeReceiver, fee);
        amountOut -= fee;
        // spred tokens amoung investors pro-rata
        uint256 len = investors.length;
        for(uint i;i<len;++i) {
            address investor = investors[i];
            uint256 investment = investments[investor];
            uint256 amount = amountOut * investment / total;
            token.safeTransfer(investor, amount);
        }
        finished = true;
        uint256 balance = address(this).balance;
        if (balance != 0) address(msg.sender).safeTransferETH(balance); 
    }

    //event ev(INonfungiblePositionManager.MintParams param);
    function createAndInitializePool(
        address tokenA,
        address tokenB,
        uint24 fee,
        uint160 sqrtPriceX96,
        int24 lowerTick,
        int24 upperTick,
        uint256 amountADesired,
        uint256 amountBDesired
    ) internal {
        if (tokenA > tokenB) {
            (tokenA, tokenB) = (tokenB, tokenA);
            (amountADesired, amountBDesired) = (amountBDesired, amountADesired);
        }
        if(lowerTick > upperTick) (lowerTick, upperTick) = (upperTick, lowerTick);
        if(lowerTick < 0) lowerTick = lowerTick + 1;

        if(amountADesired != 0) tokenA.safeApprove(address(positionManager), amountADesired);
        if(amountBDesired != 0) tokenB.safeApprove(address(positionManager), amountBDesired);
        
        pool = positionManager.createAndInitializePoolIfNecessary(tokenA, tokenB, fee, sqrtPriceX96);
        INonfungiblePositionManager.MintParams memory p;
        p.token0 = tokenA;
        p.token1 = tokenB;
        p.fee = fee;
        p.tickLower = lowerTick;
        p.tickUpper = upperTick;
        p.amount0Desired = amountADesired;
        p.amount1Desired = amountBDesired;
        p.amount0Min = 0;
        p.amount1Min = 0;
        p.recipient = msg.sender;
        p.deadline = block.timestamp;
        //emit ev(p);
        positionManager.mint(p);
    }

    function swap(uint256 amount) internal returns(uint256 amountOut) {
        bool zeroForOne = weth < projectToken;
        uint160 sqrtPriceLimitX96 = zeroForOne ? TickMath.MIN_SQRT_RATIO + 1 : TickMath.MAX_SQRT_RATIO - 1;

        (int256 amount0, int256 amount1) = IUniswapV3Pool(pool).swap(address(this), zeroForOne, int256(amount), sqrtPriceLimitX96, "");
        amountOut = zeroForOne ? uint256(amount1 * -1) : uint256(amount0 * -1);
    }

    struct Investor {
        address investor;
        uint256 investment;
    }

    function getInfestors() external view returns(Investor[] memory) {
        uint256 len = investors.length;
        Investor[] memory inv = new Investor[](len);
        for(uint i;i<len;++i) {
            address investor = investors[i];
            uint256 investment = investments[investor];
            inv[i].investor = investor;
            inv[i].investment = investment;
        }
        return inv;
    }
    /// @notice Given a tick and a token amount, calculates the amount of token received in exchange
    /// @param tick Tick value used to calculate the quote
    /// @param baseAmount Amount of token to be converted
    /// @param baseToken Address of an ERC20 token contract used as the baseAmount denomination
    /// @param quoteToken Address of an ERC20 token contract used as the quoteAmount denomination
    /// @return quoteAmount Amount of quoteToken received for baseAmount of baseToken
    function getQuoteAtTick(
        int24 tick,
        uint128 baseAmount,
        address baseToken,
        address quoteToken
    ) public pure returns (uint256 quoteAmount) {
        uint160 sqrtRatioX96 = TickMath.getSqrtRatioAtTick(tick);

        // Calculate quoteAmount with better precision if it doesn't overflow when multiplied by itself
        if (sqrtRatioX96 <= type(uint128).max) {
            uint256 ratioX192 = uint256(sqrtRatioX96) * sqrtRatioX96;
            quoteAmount = baseToken < quoteToken
                ? FullMath.mulDiv(ratioX192, baseAmount, 1 << 192)
                : FullMath.mulDiv(1 << 192, baseAmount, ratioX192);
        } else {
            uint256 ratioX128 = FullMath.mulDiv(sqrtRatioX96, sqrtRatioX96, 1 << 64);
            quoteAmount = baseToken < quoteToken
                ? FullMath.mulDiv(ratioX128, baseAmount, 1 << 128)
                : FullMath.mulDiv(1 << 128, baseAmount, ratioX128);
        }
    }

    function getTickByQuote(
        uint128 baseAmount, // amount of base token (i.e. BNB)
        uint128 quoteAmount, // amount of user's token
        address baseToken,  // address of base token (i.e. WBNB)
        address quoteToken  // address of user's token
    ) public pure returns (int24 quoteTick, uint256 sqrtPriceX96) {
        uint256 price;
        if (baseToken < quoteToken)
            price = FullMath.mulDiv(1 << 192, quoteAmount, baseAmount);
        else
            price = FullMath.mulDiv(1 << 192, baseAmount, quoteAmount);
        sqrtPriceX96 = sqrt(price);
        quoteTick = TickMath.getTickAtSqrtRatio(uint160(sqrtPriceX96));
    }

    /// @dev Callback for Uniswap V3 pool.
    function uniswapV3SwapCallback(
    //function pancakeV3SwapCallback(
        int256 amount0Delta,
        int256 amount1Delta,
        bytes calldata
    ) external {
        require(msg.sender == pool, "Wrong Pool");
        uint256 amount = weth < projectToken ? uint256(amount0Delta) : uint256(amount1Delta);
        
        if (amount > 0) weth.safeTransferETH(amount); // if ETH
        if (amount > 0) weth.safeTransfer(msg.sender, amount);
    }

    function sqrt(uint256 y) internal pure returns (uint256 z) {
        if (y > 3) {
            z = y;
            uint256 x = y / 2 + 1;
            while (x < z) {
                z = x;
                x = (y / x + x) / 2;
            }
        } else if (y != 0) {
            z = 1;
        }
    }

    event Rescue(address _token, uint256 _amount);
    // allow owner to rescue tokens from contract
    function rescueTokens(address _token, uint256 amount) onlyOwner external {
        if (_token == address(0)) {
            address(msg.sender).safeTransferETH(amount);
        } else {
            _token.safeTransfer(msg.sender, amount);
        }
        emit Rescue(_token, amount);
    } 
}

File 2 of 10 : TickMath.sol
// SPDX-License-Identifier: GPL-2.0-or-later
pragma solidity >=0.5.0 <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 {
    /// @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) {
        uint256 absTick = tick < 0 ? uint256(-int256(tick)) : uint256(int256(tick));
        require(absTick <= uint256(MAX_TICK), '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) {
        // second inequality must be < because the price can never reach the price at the max tick
        require(sqrtPriceX96 >= MIN_SQRT_RATIO && sqrtPriceX96 < MAX_SQRT_RATIO, '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 3 of 10 : FullMath.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.4.0 <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) {
        // 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 = -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) {
        result = mulDiv(a, b, denominator);
        if (mulmod(a, b, denominator) > 0) {
            require(result < type(uint256).max);
            result++;
        }
    }
}

File 4 of 10 : IUniswapV3Pool.sol
// SPDX-License-Identifier: GPL-2.0-or-later
pragma solidity >=0.5.0;

import './pool/IUniswapV3PoolImmutables.sol';
import './pool/IUniswapV3PoolState.sol';
import './pool/IUniswapV3PoolDerivedState.sol';
import './pool/IUniswapV3PoolActions.sol';
import './pool/IUniswapV3PoolOwnerActions.sol';
import './pool/IUniswapV3PoolEvents.sol';

/// @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 5 of 10 : IUniswapV3PoolEvents.sol
// SPDX-License-Identifier: GPL-2.0-or-later
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 6 of 10 : IUniswapV3PoolOwnerActions.sol
// SPDX-License-Identifier: GPL-2.0-or-later
pragma solidity >=0.5.0;

/// @title Permissioned pool actions
/// @notice Contains pool methods that may only be called by 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 7 of 10 : IUniswapV3PoolActions.sol
// SPDX-License-Identifier: GPL-2.0-or-later
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 8 of 10 : IUniswapV3PoolDerivedState.sol
// SPDX-License-Identifier: GPL-2.0-or-later
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 9 of 10 : IUniswapV3PoolState.sol
// SPDX-License-Identifier: GPL-2.0-or-later
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 10 of 10 : IUniswapV3PoolImmutables.sol
// SPDX-License-Identifier: GPL-2.0-or-later
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);
}

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

Contract Security Audit

Contract ABI

[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_token","type":"address"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"Rescue","type":"event"},{"inputs":[],"name":"feeReceiver","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"finished","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"gasFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getInfestors","outputs":[{"components":[{"internalType":"address","name":"investor","type":"address"},{"internalType":"uint256","name":"investment","type":"uint256"}],"internalType":"struct UniV3Batch.Investor[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"int24","name":"tick","type":"int24"},{"internalType":"uint128","name":"baseAmount","type":"uint128"},{"internalType":"address","name":"baseToken","type":"address"},{"internalType":"address","name":"quoteToken","type":"address"}],"name":"getQuoteAtTick","outputs":[{"internalType":"uint256","name":"quoteAmount","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint128","name":"baseAmount","type":"uint128"},{"internalType":"uint128","name":"quoteAmount","type":"uint128"},{"internalType":"address","name":"baseToken","type":"address"},{"internalType":"address","name":"quoteToken","type":"address"}],"name":"getTickByQuote","outputs":[{"internalType":"int24","name":"quoteTick","type":"int24"},{"internalType":"uint256","name":"sqrtPriceX96","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"_newOwner","type":"address"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"investments","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"investors","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pool","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"positionManager","outputs":[{"internalType":"contract INonfungiblePositionManager","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"projectToken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"rescueTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_swapFee","type":"uint256"},{"internalType":"address","name":"_feeReceiver","type":"address"}],"name":"setFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint128","name":"currentPrice","type":"uint128"},{"internalType":"uint128","name":"upperPrice","type":"uint128"}],"name":"start","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"swapFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalCollected","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"int256","name":"amount0Delta","type":"int256"},{"internalType":"int256","name":"amount1Delta","type":"int256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"uniswapV3SwapCallback","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"weth","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]

608060405234801561001057600080fd5b50612119806100206000396000f3fe60806040526004361061012e5760003560e01c80638da5cb5b116100ab578063bcc164ca1161006f578063bcc164ca146103e6578063bef4876b14610406578063c4d66de814610428578063e29eb83614610448578063f2fde38b1461045d578063fa461e331461047d57610224565b80638da5cb5b1461034e57806396b9886214610363578063a180525e14610383578063b3f00674146103b1578063b4f2e8b8146103c657610224565b80634b60ce77116100f25780634b60ce77146102d857806354cf2aeb146102ed5780635737619814610302578063658612e914610324578063791b98bc1461033957610224565b8063104e24e71461022957806316f0115b146102545780633fc8cef3146102765780633feb5f2b1461028b57806343c57a27146102ab57610224565b366102245760065460ff161561015f5760405162461bcd60e51b815260040161015690611e35565b60405180910390fd5b6004546064116101815760405162461bcd60e51b815260040161015690611f37565b60075434116101a25760405162461bcd60e51b815260040161015690611fd1565b33600090815260056020526040902054806101fa57600480546001810182556000919091527f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b0180546001600160a01b031916331790555b50600754600880543492909203918201905533600090815260056020526040902080549091019055005b600080fd5b34801561023557600080fd5b5061023e61049d565b60405161024b9190611dbf565b60405180910390f35b34801561026057600080fd5b5061026961059c565b60405161024b9190611d28565b34801561028257600080fd5b506102696105b0565b34801561029757600080fd5b506102696102a6366004611c41565b6105bf565b3480156102b757600080fd5b506102cb6102c6366004611aeb565b6105e9565b60405161024b91906120ad565b3480156102e457600080fd5b506102696106e0565b3480156102f957600080fd5b506102cb6106ef565b34801561030e57600080fd5b5061032261031d366004611aa0565b6106f5565b005b34801561033057600080fd5b506102cb610792565b34801561034557600080fd5b50610269610798565b34801561035a57600080fd5b506102696107a7565b34801561036f57600080fd5b506102cb61037e366004611a68565b6107b6565b34801561038f57600080fd5b506103a361039e366004611c21565b6107c8565b60405161024b929190611e22565b3480156103bd57600080fd5b50610269610853565b3480156103d257600080fd5b506103226103e1366004611c71565b610862565b3480156103f257600080fd5b50610322610401366004611be9565b6108b8565b34801561041257600080fd5b5061041b610ace565b60405161024b9190611e17565b34801561043457600080fd5b50610322610443366004611a68565b610ad7565b34801561045457600080fd5b506102cb610be1565b34801561046957600080fd5b50610322610478366004611a68565b610be7565b34801561048957600080fd5b50610322610498366004611b6e565b610c97565b60045460609060008167ffffffffffffffff811180156104bc57600080fd5b506040519080825280602002602001820160405280156104f657816020015b6104e36119f5565b8152602001906001900390816104db5790505b50905060005b828110156105955760006004828154811061051357fe5b60009182526020808320909101546001600160a01b03168083526005909152604090912054845191925090829085908590811061054c57fe5b6020026020010151600001906001600160a01b031690816001600160a01b0316815250508084848151811061057d57fe5b602090810291909101810151015250506001016104fc565b5091505090565b60065461010090046001600160a01b031681565b6001546001600160a01b031681565b600481815481106105cf57600080fd5b6000918252602090912001546001600160a01b0316905081565b6000806105f586610d2b565b90506001600160801b036001600160a01b03821611610664576001600160a01b03808216800290848116908616106106445761063f600160c01b876001600160801b03168361105d565b61065c565b61065c81876001600160801b0316600160c01b61105d565b9250506106d7565b60006106836001600160a01b038316806801000000000000000061105d565b9050836001600160a01b0316856001600160a01b0316106106bb576106b6600160801b876001600160801b03168361105d565b6106d3565b6106d381876001600160801b0316600160801b61105d565b9250505b50949350505050565b6002546001600160a01b031681565b60095481565b336106fe6107a7565b6001600160a01b0316146107245760405162461bcd60e51b815260040161015690611f59565b6001600160a01b0382166107415761073c338261110d565b610755565b6107556001600160a01b038316338361119f565b7f542fa6bfee3b4746210fbdd1d83f9e49b65adde3639f8d8f165dd18347938af28282604051610786929190611da6565b60405180910390a15050565b60075481565b6003546001600160a01b031681565b6000546001600160a01b031690565b60056020526000908152604090205481565b6000806000836001600160a01b0316856001600160a01b0316101561080f57610808600160c01b876001600160801b0316896001600160801b031661105d565b9050610833565b610830600160c01b886001600160801b0316886001600160801b031661105d565b90505b61083c81611285565b9150610847826112d7565b92505094509492505050565b600a546001600160a01b031681565b3361086b6107a7565b6001600160a01b0316146108915760405162461bcd60e51b815260040161015690611f59565b600991909155600a80546001600160a01b0319166001600160a01b03909216919091179055565b336108c16107a7565b6001600160a01b0316146108e75760405162461bcd60e51b815260040161015690611f59565b60065460ff161561090a5760405162461bcd60e51b815260040161015690611e35565b6002546040516370a0823160e01b81526001600160a01b039091169060009082906370a082319061093f903090600401611d28565b60206040518083038186803b15801561095757600080fd5b505afa15801561096b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061098f9190611c59565b6001549091506001600160a01b03166000806109b587670de0b6b3a764000085886107c8565b9150915060006109cf87670de0b6b3a764000086896107c8565b5090506109e48487606485878660008c6115f6565b50506008549150600090506109f88261181c565b90506000612710600954830281610a0b57fe5b600a549190049150610a2a906001600160a01b0387811691168361119f565b600454918190039160005b81811015610aa457600060048281548110610a4c57fe5b60009182526020808320909101546001600160a01b031680835260059091526040822054909250908787830281610a7f57fe5b049050610a966001600160a01b038b16848361119f565b505050806001019050610a35565b506006805460ff19166001179055478015610ac357610ac3338261110d565b505050505050505050565b60065460ff1681565b6000546001600160a01b0316158015610af857506001600160a01b03811615155b610b0157600080fd5b600080546001600160a01b0319166001600160a01b03831690811782556040519091907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3506101f4600955600a80546001600160a01b0319908116731832451ef9a873f36b7f65d1e98f4eea6758ca9b1790915560018054821673c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2179055600280548216737b8e9bf44190559255142273ed581291c719b6d81790556003805490911673c36442b4a4522e871399cd717abdd847ab11fe8817905566038d7ea4c68000600755565b60085481565b33610bf06107a7565b6001600160a01b031614610c165760405162461bcd60e51b815260040161015690611f59565b6001600160a01b038116610c3c5760405162461bcd60e51b815260040161015690611e96565b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b60065461010090046001600160a01b03163314610cc65760405162461bcd60e51b815260040161015690611f13565b6002546001546000916001600160a01b03908116911610610ce75783610ce9565b845b90508015610d0757600154610d07906001600160a01b03168261110d565b8015610d2457600154610d24906001600160a01b0316338361119f565b5050505050565b60008060008360020b12610d42578260020b610d4a565b8260020b6000035b9050620d89e8811115610d88576040805162461bcd60e51b81526020600482015260016024820152601560fa1b604482015290519081900360640190fd5b600060018216610d9c57600160801b610dae565b6ffffcb933bd6fad37aa2d162d1a5940015b70ffffffffffffffffffffffffffffffffff1690506002821615610de2576ffff97272373d413259a46990580e213a0260801c5b6004821615610e01576ffff2e50f5f656932ef12357cf3c7fdcc0260801c5b6008821615610e20576fffe5caca7e10e4e61c3624eaa0941cd00260801c5b6010821615610e3f576fffcb9843d60f6159c9db58835c9266440260801c5b6020821615610e5e576fff973b41fa98c081472e6896dfb254c00260801c5b6040821615610e7d576fff2ea16466c96a3843ec78b326b528610260801c5b6080821615610e9c576ffe5dee046a99a2a811c461f1969c30530260801c5b610100821615610ebc576ffcbe86c7900a88aedcffc83b479aa3a40260801c5b610200821615610edc576ff987a7253ac413176f2b074cf7815e540260801c5b610400821615610efc576ff3392b0822b70005940c7a398e4b70f30260801c5b610800821615610f1c576fe7159475a2c29b7443b29c7fa6e889d90260801c5b611000821615610f3c576fd097f3bdfd2022b8845ad8f792aa58250260801c5b612000821615610f5c576fa9f746462d870fdf8a65dc1f90e061e50260801c5b614000821615610f7c576f70d869a156d2a1b890bb3df62baf32f70260801c5b618000821615610f9c576f31be135f97d08fd981231505542fcfa60260801c5b62010000821615610fbd576f09aa508b5b7a84e1c677de54f3e99bc90260801c5b62020000821615610fdd576e5d6af8dedb81196699c329225ee6040260801c5b62040000821615610ffc576d2216e584f5fa1ea926041bedfe980260801c5b62080000821615611019576b048a170391f7dc42444e8fa20260801c5b60008460020b131561103457806000198161103057fe5b0490505b64010000000081061561104857600161104b565b60005b60ff16602082901c0192505050919050565b6000808060001985870986860292508281109083900303905080611093576000841161108857600080fd5b508290049050611106565b80841161109f57600080fd5b6000848688096000868103871696879004966002600389028118808a02820302808a02820302808a02820302808a02820302808a02820302808a02909103029181900381900460010186841190950394909402919094039290920491909117919091029150505b9392505050565b604080516000808252602082019092526001600160a01b0384169083906040516111379190611cef565b60006040518083038185875af1925050503d8060008114611174576040519150601f19603f3d011682016040523d82523d6000602084013e611179565b606091505b505090508061119a5760405162461bcd60e51b815260040161015690611f8e565b505050565b600080846001600160a01b031663a9059cbb85856040516024016111c4929190611da6565b6040516020818303038152906040529060e01b6020820180516001600160e01b0383818316178352505050506040516111fd9190611cef565b6000604051808303816000865af19150503d806000811461123a576040519150601f19603f3d011682016040523d82523d6000602084013e61123f565b606091505b50915091508180156112695750805115806112695750808060200190518101906112699190611acb565b610d245760405162461bcd60e51b815260040161015690611e5f565b600060038211156112c8575080600160028204015b818110156112c2578091506002818285816112b157fe5b0401816112ba57fe5b04905061129a565b506112d2565b81156112d2575060015b919050565b60006401000276a36001600160a01b03831610801590611313575073fffd8963efd1fc6a506488495d951d5263988d266001600160a01b038316105b611348576040805162461bcd60e51b81526020600482015260016024820152602960f91b604482015290519081900360640190fd5b640100000000600160c01b03602083901b166001600160801b03811160071b81811c67ffffffffffffffff811160061b90811c63ffffffff811160051b90811c61ffff811160041b90811c60ff8111600390811b91821c600f811160021b90811c918211600190811b92831c979088119617909417909217179091171717608081106113dc57607f810383901c91506113e6565b80607f0383901b91505b908002607f81811c60ff83811c9190911c800280831c81831c1c800280841c81841c1c800280851c81851c1c800280861c81861c1c800280871c81871c1c800280881c81881c1c800280891c81891c1c8002808a1c818a1c1c8002808b1c818b1c1c8002808c1c818c1c1c8002808d1c818d1c1c8002808e1c9c81901c9c909c1c80029c8d901c9e9d607f198f0160401b60c09190911c678000000000000000161760c19b909b1c674000000000000000169a909a1760c29990991c672000000000000000169890981760c39790971c671000000000000000169690961760c49590951c670800000000000000169490941760c59390931c670400000000000000169290921760c69190911c670200000000000000161760c79190911c670100000000000000161760c89190911c6680000000000000161760c99190911c6640000000000000161760ca9190911c6620000000000000161760cb9190911c6610000000000000161760cc9190911c6608000000000000161760cd9190911c66040000000000001617693627a301d71055774c8581026f028f6481ab7f045a5af012a19d003aa9198101608090811d906fdb2df09e81959a81455e260799a0632f8301901d600281810b9083900b146115e757886001600160a01b03166115cb82610d2b565b6001600160a01b031611156115e057816115e2565b805b6115e9565b815b9998505050505050505050565b866001600160a01b0316886001600160a01b0316111561161557959695905b8260020b8460020b1315611627579192915b60008460020b121561163a578360010193505b811561165a5760035461165a906001600160a01b038a811691168461190f565b801561167a5760035461167a906001600160a01b0389811691168361190f565b6003546040516309f56ab160e11b81526001600160a01b03909116906313ead562906116b0908b908b908b908b90600401611d76565b602060405180830381600087803b1580156116ca57600080fd5b505af11580156116de573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117029190611a84565b600660016101000a8154816001600160a01b0302191690836001600160a01b03160217905550611730611a0c565b6001600160a01b03808a168252888116602083015262ffffff8816604080840191909152600287810b810b606085015286810b900b608084015260a0830185905260c08301849052600060e0840181905261010084015233610120840152426101408401526003549051634418b22b60e11b81529116906388316456906117bb908490600401611fff565b608060405180830381600087803b1580156117d557600080fd5b505af11580156117e9573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061180d9190611c95565b50505050505050505050505050565b6002546001546000916001600160a01b0390811691161081816118535773fffd8963efd1fc6a506488495d951d5263988d2561185a565b6401000276a45b600654604051630251596160e31b8152919250600091829161010090046001600160a01b03169063128acb089061189b90309088908b908990600401611d3c565b6040805180830381600087803b1580156118b457600080fd5b505af11580156118c8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118ec9190611b4b565b91509150836118ff578160001902611905565b80600019025b9695505050505050565b600080846001600160a01b031663095ea7b38585604051602401611934929190611da6565b6040516020818303038152906040529060e01b6020820180516001600160e01b03838183161783525050505060405161196d9190611cef565b6000604051808303816000865af19150503d80600081146119aa576040519150601f19603f3d011682016040523d82523d6000602084013e6119af565b606091505b50915091508180156119d95750805115806119d95750808060200190518101906119d99190611acb565b610d245760405162461bcd60e51b815260040161015690611edc565b604080518082019091526000808252602082015290565b6040805161016081018252600080825260208201819052918101829052606081018290526080810182905260a0810182905260c0810182905260e081018290526101008101829052610120810182905261014081019190915290565b600060208284031215611a79578081fd5b8135611106816120b6565b600060208284031215611a95578081fd5b8151611106816120b6565b60008060408385031215611ab2578081fd5b8235611abd816120b6565b946020939093013593505050565b600060208284031215611adc578081fd5b81518015158114611106578182fd5b60008060008060808587031215611b00578182fd5b84358060020b8114611b10578283fd5b93506020850135611b20816120ce565b92506040850135611b30816120b6565b91506060850135611b40816120b6565b939692955090935050565b60008060408385031215611b5d578182fd5b505080516020909101519092909150565b60008060008060608587031215611b83578384fd5b8435935060208501359250604085013567ffffffffffffffff80821115611ba8578384fd5b818701915087601f830112611bbb578384fd5b813581811115611bc9578485fd5b886020828501011115611bda578485fd5b95989497505060200194505050565b60008060408385031215611bfb578182fd5b8235611c06816120ce565b91506020830135611c16816120ce565b809150509250929050565b60008060008060808587031215611c36578384fd5b8435611b10816120ce565b600060208284031215611c52578081fd5b5035919050565b600060208284031215611c6a578081fd5b5051919050565b60008060408385031215611c83578182fd5b823591506020830135611c16816120b6565b60008060008060808587031215611caa578182fd5b845193506020850151611cbc816120ce565b6040860151606090960151949790965092505050565b6001600160a01b03169052565b60020b9052565b62ffffff169052565b60008251815b81811015611d0f5760208186018101518583015201611cf5565b81811115611d1d5782828501525b509190910192915050565b6001600160a01b0391909116815260200190565b6001600160a01b03948516815292151560208401526040830191909152909116606082015260a06080820181905260009082015260c00190565b6001600160a01b039485168152928416602084015262ffffff919091166040830152909116606082015260800190565b6001600160a01b03929092168252602082015260400190565b602080825282518282018190526000919060409081850190868401855b82811015611e0a57815180516001600160a01b03168552860151868501529284019290850190600101611ddc565b5091979650505050505050565b901515815260200190565b60029290920b8252602082015260400190565b60208082526010908201526f185b1c9958591e48199a5b9a5cda195960821b604082015260600190565b6020808252601f908201527f5472616e7366657248656c7065723a205452414e534645525f4641494c454400604082015260600190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b6020808252601e908201527f5472616e7366657248656c7065723a20415050524f56455f4641494c45440000604082015260600190565b6020808252600a908201526915dc9bdb99c8141bdbdb60b21b604082015260600190565b602080825260089082015267546f6f206d616e7960c01b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526023908201527f5472616e7366657248656c7065723a204554485f5452414e534645525f46414960408201526213115160ea1b606082015260800190565b6020808252601490820152731d1bdbc81cdb585b1b081a5b9d995cdd1b595b9d60621b604082015260600190565b600061016082019050612013828451611cd2565b60208301516120256020840182611cd2565b5060408301516120386040840182611ce6565b50606083015161204b6060840182611cdf565b50608083015161205e6080840182611cdf565b5060a083015160a083015260c083015160c083015260e083015160e08301526101008084015181840152506101208084015161209c82850182611cd2565b505061014092830151919092015290565b90815260200190565b6001600160a01b03811681146120cb57600080fd5b50565b6001600160801b03811681146120cb57600080fdfea2646970667358221220f5174b0e9bc499230b8b5fa1c019b327682360b403f1460607063eee282e834264736f6c63430007060033

Deployed Bytecode

0x60806040526004361061012e5760003560e01c80638da5cb5b116100ab578063bcc164ca1161006f578063bcc164ca146103e6578063bef4876b14610406578063c4d66de814610428578063e29eb83614610448578063f2fde38b1461045d578063fa461e331461047d57610224565b80638da5cb5b1461034e57806396b9886214610363578063a180525e14610383578063b3f00674146103b1578063b4f2e8b8146103c657610224565b80634b60ce77116100f25780634b60ce77146102d857806354cf2aeb146102ed5780635737619814610302578063658612e914610324578063791b98bc1461033957610224565b8063104e24e71461022957806316f0115b146102545780633fc8cef3146102765780633feb5f2b1461028b57806343c57a27146102ab57610224565b366102245760065460ff161561015f5760405162461bcd60e51b815260040161015690611e35565b60405180910390fd5b6004546064116101815760405162461bcd60e51b815260040161015690611f37565b60075434116101a25760405162461bcd60e51b815260040161015690611fd1565b33600090815260056020526040902054806101fa57600480546001810182556000919091527f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b0180546001600160a01b031916331790555b50600754600880543492909203918201905533600090815260056020526040902080549091019055005b600080fd5b34801561023557600080fd5b5061023e61049d565b60405161024b9190611dbf565b60405180910390f35b34801561026057600080fd5b5061026961059c565b60405161024b9190611d28565b34801561028257600080fd5b506102696105b0565b34801561029757600080fd5b506102696102a6366004611c41565b6105bf565b3480156102b757600080fd5b506102cb6102c6366004611aeb565b6105e9565b60405161024b91906120ad565b3480156102e457600080fd5b506102696106e0565b3480156102f957600080fd5b506102cb6106ef565b34801561030e57600080fd5b5061032261031d366004611aa0565b6106f5565b005b34801561033057600080fd5b506102cb610792565b34801561034557600080fd5b50610269610798565b34801561035a57600080fd5b506102696107a7565b34801561036f57600080fd5b506102cb61037e366004611a68565b6107b6565b34801561038f57600080fd5b506103a361039e366004611c21565b6107c8565b60405161024b929190611e22565b3480156103bd57600080fd5b50610269610853565b3480156103d257600080fd5b506103226103e1366004611c71565b610862565b3480156103f257600080fd5b50610322610401366004611be9565b6108b8565b34801561041257600080fd5b5061041b610ace565b60405161024b9190611e17565b34801561043457600080fd5b50610322610443366004611a68565b610ad7565b34801561045457600080fd5b506102cb610be1565b34801561046957600080fd5b50610322610478366004611a68565b610be7565b34801561048957600080fd5b50610322610498366004611b6e565b610c97565b60045460609060008167ffffffffffffffff811180156104bc57600080fd5b506040519080825280602002602001820160405280156104f657816020015b6104e36119f5565b8152602001906001900390816104db5790505b50905060005b828110156105955760006004828154811061051357fe5b60009182526020808320909101546001600160a01b03168083526005909152604090912054845191925090829085908590811061054c57fe5b6020026020010151600001906001600160a01b031690816001600160a01b0316815250508084848151811061057d57fe5b602090810291909101810151015250506001016104fc565b5091505090565b60065461010090046001600160a01b031681565b6001546001600160a01b031681565b600481815481106105cf57600080fd5b6000918252602090912001546001600160a01b0316905081565b6000806105f586610d2b565b90506001600160801b036001600160a01b03821611610664576001600160a01b03808216800290848116908616106106445761063f600160c01b876001600160801b03168361105d565b61065c565b61065c81876001600160801b0316600160c01b61105d565b9250506106d7565b60006106836001600160a01b038316806801000000000000000061105d565b9050836001600160a01b0316856001600160a01b0316106106bb576106b6600160801b876001600160801b03168361105d565b6106d3565b6106d381876001600160801b0316600160801b61105d565b9250505b50949350505050565b6002546001600160a01b031681565b60095481565b336106fe6107a7565b6001600160a01b0316146107245760405162461bcd60e51b815260040161015690611f59565b6001600160a01b0382166107415761073c338261110d565b610755565b6107556001600160a01b038316338361119f565b7f542fa6bfee3b4746210fbdd1d83f9e49b65adde3639f8d8f165dd18347938af28282604051610786929190611da6565b60405180910390a15050565b60075481565b6003546001600160a01b031681565b6000546001600160a01b031690565b60056020526000908152604090205481565b6000806000836001600160a01b0316856001600160a01b0316101561080f57610808600160c01b876001600160801b0316896001600160801b031661105d565b9050610833565b610830600160c01b886001600160801b0316886001600160801b031661105d565b90505b61083c81611285565b9150610847826112d7565b92505094509492505050565b600a546001600160a01b031681565b3361086b6107a7565b6001600160a01b0316146108915760405162461bcd60e51b815260040161015690611f59565b600991909155600a80546001600160a01b0319166001600160a01b03909216919091179055565b336108c16107a7565b6001600160a01b0316146108e75760405162461bcd60e51b815260040161015690611f59565b60065460ff161561090a5760405162461bcd60e51b815260040161015690611e35565b6002546040516370a0823160e01b81526001600160a01b039091169060009082906370a082319061093f903090600401611d28565b60206040518083038186803b15801561095757600080fd5b505afa15801561096b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061098f9190611c59565b6001549091506001600160a01b03166000806109b587670de0b6b3a764000085886107c8565b9150915060006109cf87670de0b6b3a764000086896107c8565b5090506109e48487606485878660008c6115f6565b50506008549150600090506109f88261181c565b90506000612710600954830281610a0b57fe5b600a549190049150610a2a906001600160a01b0387811691168361119f565b600454918190039160005b81811015610aa457600060048281548110610a4c57fe5b60009182526020808320909101546001600160a01b031680835260059091526040822054909250908787830281610a7f57fe5b049050610a966001600160a01b038b16848361119f565b505050806001019050610a35565b506006805460ff19166001179055478015610ac357610ac3338261110d565b505050505050505050565b60065460ff1681565b6000546001600160a01b0316158015610af857506001600160a01b03811615155b610b0157600080fd5b600080546001600160a01b0319166001600160a01b03831690811782556040519091907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3506101f4600955600a80546001600160a01b0319908116731832451ef9a873f36b7f65d1e98f4eea6758ca9b1790915560018054821673c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2179055600280548216737b8e9bf44190559255142273ed581291c719b6d81790556003805490911673c36442b4a4522e871399cd717abdd847ab11fe8817905566038d7ea4c68000600755565b60085481565b33610bf06107a7565b6001600160a01b031614610c165760405162461bcd60e51b815260040161015690611f59565b6001600160a01b038116610c3c5760405162461bcd60e51b815260040161015690611e96565b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b60065461010090046001600160a01b03163314610cc65760405162461bcd60e51b815260040161015690611f13565b6002546001546000916001600160a01b03908116911610610ce75783610ce9565b845b90508015610d0757600154610d07906001600160a01b03168261110d565b8015610d2457600154610d24906001600160a01b0316338361119f565b5050505050565b60008060008360020b12610d42578260020b610d4a565b8260020b6000035b9050620d89e8811115610d88576040805162461bcd60e51b81526020600482015260016024820152601560fa1b604482015290519081900360640190fd5b600060018216610d9c57600160801b610dae565b6ffffcb933bd6fad37aa2d162d1a5940015b70ffffffffffffffffffffffffffffffffff1690506002821615610de2576ffff97272373d413259a46990580e213a0260801c5b6004821615610e01576ffff2e50f5f656932ef12357cf3c7fdcc0260801c5b6008821615610e20576fffe5caca7e10e4e61c3624eaa0941cd00260801c5b6010821615610e3f576fffcb9843d60f6159c9db58835c9266440260801c5b6020821615610e5e576fff973b41fa98c081472e6896dfb254c00260801c5b6040821615610e7d576fff2ea16466c96a3843ec78b326b528610260801c5b6080821615610e9c576ffe5dee046a99a2a811c461f1969c30530260801c5b610100821615610ebc576ffcbe86c7900a88aedcffc83b479aa3a40260801c5b610200821615610edc576ff987a7253ac413176f2b074cf7815e540260801c5b610400821615610efc576ff3392b0822b70005940c7a398e4b70f30260801c5b610800821615610f1c576fe7159475a2c29b7443b29c7fa6e889d90260801c5b611000821615610f3c576fd097f3bdfd2022b8845ad8f792aa58250260801c5b612000821615610f5c576fa9f746462d870fdf8a65dc1f90e061e50260801c5b614000821615610f7c576f70d869a156d2a1b890bb3df62baf32f70260801c5b618000821615610f9c576f31be135f97d08fd981231505542fcfa60260801c5b62010000821615610fbd576f09aa508b5b7a84e1c677de54f3e99bc90260801c5b62020000821615610fdd576e5d6af8dedb81196699c329225ee6040260801c5b62040000821615610ffc576d2216e584f5fa1ea926041bedfe980260801c5b62080000821615611019576b048a170391f7dc42444e8fa20260801c5b60008460020b131561103457806000198161103057fe5b0490505b64010000000081061561104857600161104b565b60005b60ff16602082901c0192505050919050565b6000808060001985870986860292508281109083900303905080611093576000841161108857600080fd5b508290049050611106565b80841161109f57600080fd5b6000848688096000868103871696879004966002600389028118808a02820302808a02820302808a02820302808a02820302808a02820302808a02909103029181900381900460010186841190950394909402919094039290920491909117919091029150505b9392505050565b604080516000808252602082019092526001600160a01b0384169083906040516111379190611cef565b60006040518083038185875af1925050503d8060008114611174576040519150601f19603f3d011682016040523d82523d6000602084013e611179565b606091505b505090508061119a5760405162461bcd60e51b815260040161015690611f8e565b505050565b600080846001600160a01b031663a9059cbb85856040516024016111c4929190611da6565b6040516020818303038152906040529060e01b6020820180516001600160e01b0383818316178352505050506040516111fd9190611cef565b6000604051808303816000865af19150503d806000811461123a576040519150601f19603f3d011682016040523d82523d6000602084013e61123f565b606091505b50915091508180156112695750805115806112695750808060200190518101906112699190611acb565b610d245760405162461bcd60e51b815260040161015690611e5f565b600060038211156112c8575080600160028204015b818110156112c2578091506002818285816112b157fe5b0401816112ba57fe5b04905061129a565b506112d2565b81156112d2575060015b919050565b60006401000276a36001600160a01b03831610801590611313575073fffd8963efd1fc6a506488495d951d5263988d266001600160a01b038316105b611348576040805162461bcd60e51b81526020600482015260016024820152602960f91b604482015290519081900360640190fd5b640100000000600160c01b03602083901b166001600160801b03811160071b81811c67ffffffffffffffff811160061b90811c63ffffffff811160051b90811c61ffff811160041b90811c60ff8111600390811b91821c600f811160021b90811c918211600190811b92831c979088119617909417909217179091171717608081106113dc57607f810383901c91506113e6565b80607f0383901b91505b908002607f81811c60ff83811c9190911c800280831c81831c1c800280841c81841c1c800280851c81851c1c800280861c81861c1c800280871c81871c1c800280881c81881c1c800280891c81891c1c8002808a1c818a1c1c8002808b1c818b1c1c8002808c1c818c1c1c8002808d1c818d1c1c8002808e1c9c81901c9c909c1c80029c8d901c9e9d607f198f0160401b60c09190911c678000000000000000161760c19b909b1c674000000000000000169a909a1760c29990991c672000000000000000169890981760c39790971c671000000000000000169690961760c49590951c670800000000000000169490941760c59390931c670400000000000000169290921760c69190911c670200000000000000161760c79190911c670100000000000000161760c89190911c6680000000000000161760c99190911c6640000000000000161760ca9190911c6620000000000000161760cb9190911c6610000000000000161760cc9190911c6608000000000000161760cd9190911c66040000000000001617693627a301d71055774c8581026f028f6481ab7f045a5af012a19d003aa9198101608090811d906fdb2df09e81959a81455e260799a0632f8301901d600281810b9083900b146115e757886001600160a01b03166115cb82610d2b565b6001600160a01b031611156115e057816115e2565b805b6115e9565b815b9998505050505050505050565b866001600160a01b0316886001600160a01b0316111561161557959695905b8260020b8460020b1315611627579192915b60008460020b121561163a578360010193505b811561165a5760035461165a906001600160a01b038a811691168461190f565b801561167a5760035461167a906001600160a01b0389811691168361190f565b6003546040516309f56ab160e11b81526001600160a01b03909116906313ead562906116b0908b908b908b908b90600401611d76565b602060405180830381600087803b1580156116ca57600080fd5b505af11580156116de573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117029190611a84565b600660016101000a8154816001600160a01b0302191690836001600160a01b03160217905550611730611a0c565b6001600160a01b03808a168252888116602083015262ffffff8816604080840191909152600287810b810b606085015286810b900b608084015260a0830185905260c08301849052600060e0840181905261010084015233610120840152426101408401526003549051634418b22b60e11b81529116906388316456906117bb908490600401611fff565b608060405180830381600087803b1580156117d557600080fd5b505af11580156117e9573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061180d9190611c95565b50505050505050505050505050565b6002546001546000916001600160a01b0390811691161081816118535773fffd8963efd1fc6a506488495d951d5263988d2561185a565b6401000276a45b600654604051630251596160e31b8152919250600091829161010090046001600160a01b03169063128acb089061189b90309088908b908990600401611d3c565b6040805180830381600087803b1580156118b457600080fd5b505af11580156118c8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118ec9190611b4b565b91509150836118ff578160001902611905565b80600019025b9695505050505050565b600080846001600160a01b031663095ea7b38585604051602401611934929190611da6565b6040516020818303038152906040529060e01b6020820180516001600160e01b03838183161783525050505060405161196d9190611cef565b6000604051808303816000865af19150503d80600081146119aa576040519150601f19603f3d011682016040523d82523d6000602084013e6119af565b606091505b50915091508180156119d95750805115806119d95750808060200190518101906119d99190611acb565b610d245760405162461bcd60e51b815260040161015690611edc565b604080518082019091526000808252602082015290565b6040805161016081018252600080825260208201819052918101829052606081018290526080810182905260a0810182905260c0810182905260e081018290526101008101829052610120810182905261014081019190915290565b600060208284031215611a79578081fd5b8135611106816120b6565b600060208284031215611a95578081fd5b8151611106816120b6565b60008060408385031215611ab2578081fd5b8235611abd816120b6565b946020939093013593505050565b600060208284031215611adc578081fd5b81518015158114611106578182fd5b60008060008060808587031215611b00578182fd5b84358060020b8114611b10578283fd5b93506020850135611b20816120ce565b92506040850135611b30816120b6565b91506060850135611b40816120b6565b939692955090935050565b60008060408385031215611b5d578182fd5b505080516020909101519092909150565b60008060008060608587031215611b83578384fd5b8435935060208501359250604085013567ffffffffffffffff80821115611ba8578384fd5b818701915087601f830112611bbb578384fd5b813581811115611bc9578485fd5b886020828501011115611bda578485fd5b95989497505060200194505050565b60008060408385031215611bfb578182fd5b8235611c06816120ce565b91506020830135611c16816120ce565b809150509250929050565b60008060008060808587031215611c36578384fd5b8435611b10816120ce565b600060208284031215611c52578081fd5b5035919050565b600060208284031215611c6a578081fd5b5051919050565b60008060408385031215611c83578182fd5b823591506020830135611c16816120b6565b60008060008060808587031215611caa578182fd5b845193506020850151611cbc816120ce565b6040860151606090960151949790965092505050565b6001600160a01b03169052565b60020b9052565b62ffffff169052565b60008251815b81811015611d0f5760208186018101518583015201611cf5565b81811115611d1d5782828501525b509190910192915050565b6001600160a01b0391909116815260200190565b6001600160a01b03948516815292151560208401526040830191909152909116606082015260a06080820181905260009082015260c00190565b6001600160a01b039485168152928416602084015262ffffff919091166040830152909116606082015260800190565b6001600160a01b03929092168252602082015260400190565b602080825282518282018190526000919060409081850190868401855b82811015611e0a57815180516001600160a01b03168552860151868501529284019290850190600101611ddc565b5091979650505050505050565b901515815260200190565b60029290920b8252602082015260400190565b60208082526010908201526f185b1c9958591e48199a5b9a5cda195960821b604082015260600190565b6020808252601f908201527f5472616e7366657248656c7065723a205452414e534645525f4641494c454400604082015260600190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b6020808252601e908201527f5472616e7366657248656c7065723a20415050524f56455f4641494c45440000604082015260600190565b6020808252600a908201526915dc9bdb99c8141bdbdb60b21b604082015260600190565b602080825260089082015267546f6f206d616e7960c01b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526023908201527f5472616e7366657248656c7065723a204554485f5452414e534645525f46414960408201526213115160ea1b606082015260800190565b6020808252601490820152731d1bdbc81cdb585b1b081a5b9d995cdd1b595b9d60621b604082015260600190565b600061016082019050612013828451611cd2565b60208301516120256020840182611cd2565b5060408301516120386040840182611ce6565b50606083015161204b6060840182611cdf565b50608083015161205e6080840182611cdf565b5060a083015160a083015260c083015160c083015260e083015160e08301526101008084015181840152506101208084015161209c82850182611cd2565b505061014092830151919092015290565b90815260200190565b6001600160a01b03811681146120cb57600080fd5b50565b6001600160801b03811681146120cb57600080fdfea2646970667358221220f5174b0e9bc499230b8b5fa1c019b327682360b403f1460607063eee282e834264736f6c63430007060033

Deployed Bytecode Sourcemap

5353:9593:9:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5906:8;;;;5905:9;5897:38;;;;-1:-1:-1;;;5897:38:9;;;;;;;:::i;:::-;;;;;;;;;5954:9;:16;5973:3;-1:-1:-1;5946:43:9;;;;-1:-1:-1;;;5946:43:9;;;;;;;:::i;:::-;6020:6;;6008:9;:18;6000:51;;;;-1:-1:-1;;;6000:51:9;;;;;;;:::i;:::-;6095:10;6062:18;6083:23;;;:11;:23;;;;;;6121:15;6117:47;;6138:9;:26;;;;;;;-1:-1:-1;6138:26:9;;;;;;;;-1:-1:-1;;;;;;6138:26:9;6153:10;6138:26;;;6117:47;-1:-1:-1;6204:6:9;;6221:14;:24;;6192:9;:18;;;;6221:24;;;;;6268:10;6175:14;6256:23;;;:11;:23;;;;;:33;;;;;;;5353:9593;;;;;11111:422;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;5664:19;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;5432:::-;;;;;;;;;;;;;:::i;5551:26::-;;;;;;;;;;-1:-1:-1;5551:26:9;;;;;:::i;:::-;;:::i;12043:973::-;;;;;;;;;;-1:-1:-1;12043:973:9;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;5458:27::-;;;;;;;;;;;;;:::i;5754:22::-;;;;;;;;;;;;;:::i;14645:297::-;;;;;;;;;;-1:-1:-1;14645:297:9;;;;;:::i;:::-;;:::i;:::-;;5690:21;;;;;;;;;;;;;:::i;5492:50::-;;;;;;;;;;;;;:::i;2473:87::-;;;;;;;;;;;;;:::i;5584:46::-;;;;;;;;;;-1:-1:-1;5584:46:9;;;;;:::i;:::-;;:::i;13024:673::-;;;;;;;;;;-1:-1:-1;13024:673:9;;;;;:::i;:::-;;:::i;:::-;;;;;;;;:::i;5822:26::-;;;;;;;;;;;;;:::i;7533:149::-;;;;;;;;;;-1:-1:-1;7533:149:9;;;;;:::i;:::-;;:::i;7768:1345::-;;;;;;;;;;-1:-1:-1;7768:1345:9;;;;;:::i;:::-;;:::i;5637:20::-;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;6305:1176::-;;;;;;;;;;-1:-1:-1;6305:1176:9;;;;;:::i;:::-;;:::i;5718:29::-;;;;;;;;;;;;;:::i;2926:244::-;;;;;;;;;;-1:-1:-1;2926:244:9;;;;;:::i;:::-;;:::i;13749:465::-;;;;;;;;;;-1:-1:-1;13749:465:9;;;;;:::i;:::-;;:::i;11111:422::-;11201:9;:16;11157:17;;11187:11;11201:16;11252:19;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;11228:43;;11286:6;11282:223;11295:3;11293:1;:5;11282:223;;;11319:16;11338:9;11348:1;11338:12;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;11338:12:9;11386:21;;;:11;:21;;;;;;;;11422:6;;11338:12;;-1:-1:-1;11386:21:9;11338:12;;11422:3;;11426:1;;11422:6;;;;;;;;;;;;:15;;:26;-1:-1:-1;;;;;11422:26:9;;;-1:-1:-1;;;;;11422:26:9;;;;;11483:10;11463:3;11467:1;11463:6;;;;;;;;;;;;;;;;;;;:17;:30;-1:-1:-1;;11299:3:9;;11282:223;;;-1:-1:-1;11522:3:9;-1:-1:-1;;11111:422:9;:::o;5664:19::-;;;;;;-1:-1:-1;;;;;5664:19:9;;:::o;5432:::-;;;-1:-1:-1;;;;;5432:19:9;;:::o;5551:26::-;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;5551:26:9;;-1:-1:-1;5551:26:9;:::o;12043:973::-;12202:19;12234:20;12257:33;12285:4;12257:27;:33::i;:::-;12234:56;-1:-1:-1;;;;;;;;;;;12412:33:9;;;12408:601;;-1:-1:-1;;;;;12482:36:9;;;;;;12547:22;;;;;;;:158;;12657:48;-1:-1:-1;;;12683:10:9;-1:-1:-1;;;;;12657:48:9;12695:9;12657:15;:48::i;:::-;12547:158;;;12589:48;12605:9;12616:10;-1:-1:-1;;;;;12589:48:9;-1:-1:-1;;;12589:15:9;:48::i;:::-;12533:172;;12408:601;;;;12738:17;12758:52;-1:-1:-1;;;;;12758:52:9;;;12802:7;12758:15;:52::i;:::-;12738:72;;12851:10;-1:-1:-1;;;;;12839:22:9;:9;-1:-1:-1;;;;;12839:22:9;;:158;;12949:48;-1:-1:-1;;;12975:10:9;-1:-1:-1;;;;;12949:48:9;12987:9;12949:15;:48::i;:::-;12839:158;;;12881:48;12897:9;12908:10;-1:-1:-1;;;;;12881:48:9;-1:-1:-1;;;12881:15:9;:48::i;:::-;12825:172;;12408:601;;12043:973;;;;;;;:::o;5458:27::-;;;-1:-1:-1;;;;;5458:27:9;;:::o;5754:22::-;;;;:::o;14645:297::-;2704:10;2693:7;:5;:7::i;:::-;-1:-1:-1;;;;;2693:21:9;;2685:66;;;;-1:-1:-1;;;2685:66:9;;;;;;;:::i;:::-;-1:-1:-1;;;;;14733:20:9;::::1;14729:168;;14770:43;14778:10;14806:6:::0;14770:35:::1;:43::i;:::-;14729:168;;;14846:39;-1:-1:-1::0;;;;;14846:19:9;::::1;14866:10;14878:6:::0;14846:19:::1;:39::i;:::-;14912:22;14919:6;14927;14912:22;;;;;;;:::i;:::-;;;;;;;;14645:297:::0;;:::o;5690:21::-;;;;:::o;5492:50::-;;;-1:-1:-1;;;;;5492:50:9;;:::o;2473:87::-;2519:7;2546:6;-1:-1:-1;;;;;2546:6:9;2473:87;:::o;5584:46::-;;;;;;;;;;;;;:::o;13024:673::-;13319:15;13336:20;13369:13;13409:10;-1:-1:-1;;;;;13397:22:9;:9;-1:-1:-1;;;;;13397:22:9;;13393:186;;;13442:50;-1:-1:-1;;;13468:11:9;-1:-1:-1;;;;;13442:50:9;13481:10;-1:-1:-1;;;;;13442:50:9;:15;:50::i;:::-;13434:58;;13393:186;;;13529:50;-1:-1:-1;;;13555:10:9;-1:-1:-1;;;;;13529:50:9;13567:11;-1:-1:-1;;;;;13529:50:9;:15;:50::i;:::-;13521:58;;13393:186;13605:11;13610:5;13605:4;:11::i;:::-;13590:26;;13639:50;13675:12;13639:27;:50::i;:::-;13627:62;;13024:673;;;;;;;;:::o;5822:26::-;;;-1:-1:-1;;;;;5822:26:9;;:::o;7533:149::-;2704:10;2693:7;:5;:7::i;:::-;-1:-1:-1;;;;;2693:21:9;;2685:66;;;;-1:-1:-1;;;2685:66:9;;;;;;;:::i;:::-;7619:7:::1;:18:::0;;;;7648:11:::1;:26:::0;;-1:-1:-1;;;;;;7648:26:9::1;-1:-1:-1::0;;;;;7648:26:9;;::::1;::::0;;;::::1;::::0;;7533:149::o;7768:1345::-;2704:10;2693:7;:5;:7::i;:::-;-1:-1:-1;;;;;2693:21:9;;2685:66;;;;-1:-1:-1;;;2685:66:9;;;;;;;:::i;:::-;7864:8:::1;::::0;::::1;;7863:9;7855:38;;;;-1:-1:-1::0;;;7855:38:9::1;;;;;;;:::i;:::-;7920:12;::::0;7969:38:::1;::::0;-1:-1:-1;;;7969:38:9;;-1:-1:-1;;;;;7920:12:9;;::::1;::::0;7904:13:::1;::::0;7920:12;;7969:23:::1;::::0;:38:::1;::::0;8001:4:::1;::::0;7969:38:::1;;;:::i;:::-;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;8045:4;::::0;7943:64;;-1:-1:-1;;;;;;8045:4:9::1;8029:13;::::0;8102:51:::1;8117:12:::0;8131:7:::1;8045:4:::0;8147:5;8102:14:::1;:51::i;:::-;8060:93;;;;8165:15;8185:49;8200:10;8212:7;8221:5;8228;8185:14;:49::i;:::-;8164:70;;;8245:107;8269:5;8276;8283:3;8296:12;8311:9;8322;8333:1;8336:15;8245:23;:107::i;:::-;-1:-1:-1::0;;8390:14:9::1;::::0;;-1:-1:-1;8374:13:9::1;::::0;-1:-1:-1;8435:11:9::1;8390:14:::0;8435:4:::1;:11::i;:::-;8415:31;;8488:11;8524:5;8514:7;;8502:9;:19;:27;;;;;8559:11;::::0;8502:27;;::::1;::::0;-1:-1:-1;8540:36:9::1;::::0;-1:-1:-1;;;;;8540:18:9;;::::1;::::0;8559:11:::1;8502:27:::0;8540:18:::1;:36::i;:::-;8679:9;:16:::0;8587;;;::::1;::::0;8665:11:::1;8706:250;8719:3;8717:1;:5;8706:250;;;8743:16;8762:9;8772:1;8762:12;;;;;;;;;::::0;;;::::1;::::0;;;;;::::1;::::0;-1:-1:-1;;;;;8762:12:9::1;8810:21:::0;;;:11:::1;:21:::0;;;;;;;8762:12;;-1:-1:-1;8810:21:9;8888:5;8863:22;;::::1;8888:5:::0;8863:30:::1;;;;;::::0;-1:-1:-1;8908:36:9::1;-1:-1:-1::0;;;;;8908:18:9;::::1;8927:8:::0;8863:30;8908:18:::1;:36::i;:::-;8706:250;;;8723:3;;;;;8706:250;;;-1:-1:-1::0;8966:8:9::1;:15:::0;;-1:-1:-1;;8966:15:9::1;8977:4;8966:15;::::0;;9010:21:::1;9046:12:::0;;9042:62:::1;;9060:44;9068:10;9096:7:::0;9060:35:::1;:44::i;:::-;2762:1;;;;;;;7768:1345:::0;;:::o;5637:20::-;;;;;;:::o;6305:1176::-;6390:1;6372:6;-1:-1:-1;;;;;6372:6:9;:20;:47;;;;-1:-1:-1;;;;;;6396:23:9;;;;6372:47;6364:56;;;;;;6454:6;:18;;-1:-1:-1;;;;;;6454:18:9;-1:-1:-1;;;;;6454:18:9;;;;;;;6488:43;;6454:18;;:6;6488:43;;6454:6;;6488:43;-1:-1:-1;6552:3:9;6542:7;:13;6572:11;:56;;-1:-1:-1;;;;;;6572:56:9;;;6586:42;6572:56;;;;;7129:49;;;;7136:42;7129:49;;;7205:12;:57;;;;7220:42;7205:57;;;7303:15;:89;;;;;7349:42;7303:89;;;7429:11;-1:-1:-1;7420:20:9;6305:1176::o;5718:29::-;;;;:::o;2926:244::-;2704:10;2693:7;:5;:7::i;:::-;-1:-1:-1;;;;;2693:21:9;;2685:66;;;;-1:-1:-1;;;2685:66:9;;;;;;;:::i;:::-;-1:-1:-1;;;;;3015:22:9;::::1;3007:73;;;;-1:-1:-1::0;;;3007:73:9::1;;;;;;;:::i;:::-;3117:6;::::0;;3096:38:::1;::::0;-1:-1:-1;;;;;3096:38:9;;::::1;::::0;3117:6;::::1;::::0;3096:38:::1;::::0;::::1;3145:6;:17:::0;;-1:-1:-1;;;;;;3145:17:9::1;-1:-1:-1::0;;;;;3145:17:9;;;::::1;::::0;;;::::1;::::0;;2926:244::o;13749:465::-;13953:4;;;;;-1:-1:-1;;;;;13953:4:9;13939:10;:18;13931:41;;;;-1:-1:-1;;;13931:41:9;;;;;;;:::i;:::-;14007:12;;;14000:4;13983:14;;-1:-1:-1;;;;;14007:12:9;;;14000:4;;:19;:67;;14054:12;14000:67;;;14030:12;14000:67;13983:84;-1:-1:-1;14092:10:9;;14088:44;;14104:4;;:28;;-1:-1:-1;;;;;14104:4:9;14125:6;14104:20;:28::i;:::-;14157:10;;14153:53;;14169:4;;:37;;-1:-1:-1;;;;;14169:4:9;14187:10;14199:6;14169:17;:37::i;:::-;13749:465;;;;;:::o;1362:2580:8:-;1425:20;1457:15;1482:1;1475:4;:8;;;:57;;1526:4;1519:12;;1475:57;;;1502:4;1495:12;;1494:13;;1475:57;1457:75;-1:-1:-1;644:9:8;1550:28;;;1542:42;;;;;-1:-1:-1;;;1542:42:8;;;;;;;;;;;;-1:-1:-1;;;1542:42:8;;;;;;;;;;;;;;;1595:13;1621:3;1611:13;;:93;;-1:-1:-1;;;1611:93:8;;;1632:34;1611:93;1595:109;;;-1:-1:-1;1728:3:8;1718:13;;:18;1714:83;;1755:34;1747:42;1794:3;1746:51;1714:83;1821:3;1811:13;;:18;1807:83;;1848:34;1840:42;1887:3;1839:51;1807:83;1914:3;1904:13;;:18;1900:83;;1941:34;1933:42;1980:3;1932:51;1900:83;2007:4;1997:14;;:19;1993:84;;2035:34;2027:42;2074:3;2026:51;1993:84;2101:4;2091:14;;:19;2087:84;;2129:34;2121:42;2168:3;2120:51;2087:84;2195:4;2185:14;;:19;2181:84;;2223:34;2215:42;2262:3;2214:51;2181:84;2289:4;2279:14;;:19;2275:84;;2317:34;2309:42;2356:3;2308:51;2275:84;2383:5;2373:15;;:20;2369:85;;2412:34;2404:42;2451:3;2403:51;2369:85;2478:5;2468:15;;:20;2464:85;;2507:34;2499:42;2546:3;2498:51;2464:85;2573:5;2563:15;;:20;2559:85;;2602:34;2594:42;2641:3;2593:51;2559:85;2668:5;2658:15;;:20;2654:85;;2697:34;2689:42;2736:3;2688:51;2654:85;2763:6;2753:16;;:21;2749:86;;2793:34;2785:42;2832:3;2784:51;2749:86;2859:6;2849:16;;:21;2845:86;;2889:34;2881:42;2928:3;2880:51;2845:86;2955:6;2945:16;;:21;2941:86;;2985:34;2977:42;3024:3;2976:51;2941:86;3051:6;3041:16;;:21;3037:86;;3081:34;3073:42;3120:3;3072:51;3037:86;3147:7;3137:17;;:22;3133:86;;3178:33;3170:41;3216:3;3169:50;3133:86;3243:7;3233:17;;:22;3229:85;;3274:32;3266:40;3311:3;3265:49;3229:85;3338:7;3328:17;;:22;3324:83;;3369:30;3361:38;3404:3;3360:47;3324:83;3431:7;3421:17;;:22;3417:78;;3462:25;3454:33;3492:3;3453:42;3417:78;3517:1;3510:4;:8;;;3506:47;;;3548:5;-1:-1:-1;;3528:25:8;;;;;;3520:33;;3506:47;3912:7;3903:5;:17;:22;:30;;3932:1;3903:30;;;3928:1;3903:30;3886:48;;3896:2;3887:5;:11;;3886:48;3863:72;;1362:2580;;;;;:::o;747:3776:7:-;859:14;;;-1:-1:-1;;1366:1:7;1363;1356:20;1398:9;;;;-1:-1:-1;1449:13:7;;;1433:14;;;;1429:34;;-1:-1:-1;1545:10:7;1541:179;;1593:1;1579:11;:15;1571:24;;;;;;-1:-1:-1;1646:23:7;;;;-1:-1:-1;1696:13:7;;1541:179;1847:5;1833:11;:19;1825:28;;;;;;2130:17;2206:11;2203:1;2200;2193:25;2558:12;2573;;;:26;;2693:22;;;;;3496:1;3477;:15;;3476:21;;3723:17;;;3719:21;;3712:28;3781:17;;;3777:21;;3770:28;3840:17;;;3836:21;;3829:28;3899:17;;;3895:21;;3888:28;3958:17;;;3954:21;;3947:28;4018:17;;;4014:21;;;4007:28;3065:12;;;;3061:23;;;3086:1;3057:31;2335:20;;;2324:32;;;3116:12;;;;2378:21;;;;2821:16;;;;3107:21;;;;4482:11;;;;;-1:-1:-1;;747:3776:7;;;;;;:::o;1806:195:9:-;1914:12;;;1876;1914;;;;;;;;;-1:-1:-1;;;;;1893:7:9;;;1907:5;;1893:34;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1875:52;;;1946:7;1938:55;;;;-1:-1:-1;;;1938:55:9;;;;;;;:::i;:::-;1806:195;;;:::o;1027:361::-;1176:12;1190:17;1211:5;-1:-1:-1;;;;;1211:10:9;1245;1257:2;1261:5;1222:45;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;1222:45:9;;;;;;;;;;;1211:57;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1175:93;;;;1287:7;:57;;;;-1:-1:-1;1299:11:9;;:16;;:44;;;1330:4;1319:24;;;;;;;;;;;;:::i;:::-;1279:101;;;;-1:-1:-1;;;1279:101:9;;;;;;;:::i;14222:312::-;14270:9;14300:1;14296;:5;14292:235;;;-1:-1:-1;14322:1:9;14358;14354;14350:5;;:9;14374:92;14385:1;14381;:5;14374:92;;;14411:1;14407:5;;14449:1;14444;14440;14436;:5;;;;;;:9;14435:15;;;;;;14431:19;;14374:92;;;14292:235;;;;14487:6;;14483:44;;-1:-1:-1;14514:1:9;14483:44;14222:312;;;:::o;4361:4281:8:-;4434:10;824;-1:-1:-1;;;;;4563:30:8;;;;;;:63;;-1:-1:-1;1004:49:8;-1:-1:-1;;;;;4597:29:8;;;4563:63;4555:77;;;;;-1:-1:-1;;;4555:77:8;;;;;;;;;;;;-1:-1:-1;;;4555:77:8;;;;;;;;;;;;;;;-1:-1:-1;;;;;4683:2:8;4658:27;;;;-1:-1:-1;;;;;4788:41:8;;4785:1;4781:49;4878:9;;;4951:18;4945:25;;4942:1;4938:33;5019:9;;;5092:10;5086:17;;5083:1;5079:25;5152:9;;;5225:6;5219:13;;5216:1;5212:21;5281:9;;;5354:4;5348:11;;5345:1;5341:19;;;5408:9;;;5481:3;5475:10;;5472:1;5468:18;5534:9;;;5601:10;;;5598:1;5594:18;;;5660:9;;;;5720:10;;;4991;;5124;;;5253;;;5380;5506;;;5632;5750;5791:3;5784:10;;5780:79;;5816:3;5810;:9;5800:5;:20;;5796:24;;5780:79;;;5855:3;5849;:9;5839:5;:20;;5835:24;;5780:79;5958:9;;;5953:3;5949:19;;;5990:11;;;;6062:9;;;;6127;;6118:19;;;6159:11;;;6231:9;6296;;6287:19;;;6328:11;;;6400:9;6465;;6456:19;;;6497:11;;;6569:9;6634;;6625:19;;;6666:11;;;6738:9;6803;;6794:19;;;6835:11;;;6907:9;6972;;6963:19;;;7004:11;;;7076:9;7141;;7132:19;;;7173:11;;;7245:9;7310;;7301:19;;;7342:11;;;7414:9;7479;;7470:19;;;7511:11;;;7583:9;7648;;7639:19;;;7680:11;;;7752:9;7817;;7808:19;;;7849:11;;;7921:9;7986;;7977:19;;;8018:11;;;;8090:9;;;;8155;;8146:19;;;;;5958:9;-1:-1:-1;;5886:17:8;;5908:2;5885:25;6033:10;;;;;;;6023:21;6202:10;;;;;;;6192:21;;;;6371:10;;;;;;;6361:21;;;;6540:10;;;;;;;6530:21;;;;6709:10;;;;;;;6699:21;;;;6878:10;;;;;;;6868:21;;;;7047:10;;;;;;;7037:21;7216:10;;;;;;;7206:21;7385:10;;;;;;;7375:21;7554:10;;;;;;;7544:21;7723:10;;;;;;;7713:21;7892:10;;;;;;;7882:21;8061:10;;;;;;;8051:21;8230:10;;;;;;;8220:21;8292:24;8284:32;;-1:-1:-1;;8368:53:8;;5900:3;8367:62;;;;8478:39;8462:55;;8461:64;;8544:17;;;;;;;;;:91;;8604:12;-1:-1:-1;;;;;8574:42:8;:26;8593:6;8574:18;:26::i;:::-;-1:-1:-1;;;;;8574:42:8;;;:61;;8628:7;8574:61;;;8619:6;8574:61;8544:91;;;8564:7;8544:91;8537:98;4361:4281;-1:-1:-1;;;;;;;;;4361:4281:8:o;9184:1372:9:-;9477:6;-1:-1:-1;;;;;9468:15:9;:6;-1:-1:-1;;;;;9468:15:9;;9464:165;;;9520:6;;9528;9586:14;9464:165;9654:9;9642:21;;:9;:21;;;9639:73;;;9691:9;;9702;9639:73;9738:1;9726:9;:13;;;9723:43;;;9753:9;9765:1;9753:13;9741:25;;9723:43;9782:19;;9779:84;;9830:15;;9803:60;;-1:-1:-1;;;;;9803:18:9;;;;9830:15;9848:14;9803:18;:60::i;:::-;9877:19;;9874:84;;9925:15;;9898:60;;-1:-1:-1;;;;;9898:18:9;;;;9925:15;9943:14;9898:18;:60::i;:::-;9986:15;;:85;;-1:-1:-1;;;9986:85:9;;-1:-1:-1;;;;;9986:15:9;;;;:50;;:85;;10037:6;;10045;;10053:3;;10058:12;;9986:85;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;9979:4;;:92;;;;;-1:-1:-1;;;;;9979:92:9;;;;;-1:-1:-1;;;;;9979:92:9;;;;;;10082:47;;:::i;:::-;-1:-1:-1;;;;;10140:17:9;;;;;10168;;;:8;;;:17;10196:11;;;:5;;;;:11;;;;10218:23;;;;;;:11;;;:23;10252;;;;;:11;;;:23;10286:16;;;:33;;;10330:16;;;:33;;;10140:8;10374:12;;;:16;;;10401:12;;;:16;10442:10;10428:11;;;:24;10476:15;10463:10;;;:28;10525:15;;:23;;-1:-1:-1;;;10525:23:9;;:15;;;:20;;:23;;10140:1;;10525:23;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;9184:1372;;;;;;;;;:::o;10564:451::-;10666:12;;;10659:4;10611:17;;-1:-1:-1;;;;;10666:12:9;;;10659:4;;:19;10611:17;10659:19;10717:70;;10760:27;10717:70;;;10730:27;10717:70;10850:4;;10835:91;;-1:-1:-1;;;10835:91:9;;10689:98;;-1:-1:-1;10801:14:9;;;;10850:4;;;-1:-1:-1;;;;;10850:4:9;;10835:25;;:91;;10869:4;;10876:10;;10895:6;;10689:98;;10835:91;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;10800:126;;;;10949:10;:58;;10994:7;-1:-1:-1;;10994:12:9;10949:58;;;10970:7;-1:-1:-1;;10970:12:9;10949:58;10937:70;10564:451;-1:-1:-1;;;;;;10564:451:9:o;661:358::-;808:12;822:17;843:5;-1:-1:-1;;;;;843:10:9;877;889:2;893:5;854:45;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;854:45:9;;;;;;;;;;;843:57;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;807:93;;;;919:7;:57;;;;-1:-1:-1;931:11:9;;:16;;:44;;;962:4;951:24;;;;;;;;;;;;:::i;:::-;911:100;;;;-1:-1:-1;;;911:100:9;;;;;;;:::i;-1:-1:-1:-;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;14:259:10:-;;126:2;114:9;105:7;101:23;97:32;94:2;;;147:6;139;132:22;94:2;191:9;178:23;210:33;237:5;210:33;:::i;278:263::-;;401:2;389:9;380:7;376:23;372:32;369:2;;;422:6;414;407:22;369:2;459:9;453:16;478:33;505:5;478:33;:::i;546:327::-;;;675:2;663:9;654:7;650:23;646:32;643:2;;;696:6;688;681:22;643:2;740:9;727:23;759:33;786:5;759:33;:::i;:::-;811:5;863:2;848:18;;;;835:32;;-1:-1:-1;;;633:240:10:o;878:297::-;;998:2;986:9;977:7;973:23;969:32;966:2;;;1019:6;1011;1004:22;966:2;1056:9;1050:16;1109:5;1102:13;1095:21;1088:5;1085:32;1075:2;;1136:6;1128;1121:22;1180:723;;;;;1341:3;1329:9;1320:7;1316:23;1312:33;1309:2;;;1363:6;1355;1348:22;1309:2;1407:9;1394:23;1460:5;1457:1;1446:20;1439:5;1436:31;1426:2;;1486:6;1478;1471:22;1426:2;1514:5;-1:-1:-1;1571:2:10;1556:18;;1543:32;1584:35;1543:32;1584:35;:::i;:::-;1638:7;-1:-1:-1;1697:2:10;1682:18;;1669:32;1710:35;1669:32;1710:35;:::i;:::-;1764:7;-1:-1:-1;1823:2:10;1808:18;;1795:32;1836:35;1795:32;1836:35;:::i;:::-;1299:604;;;;-1:-1:-1;1299:604:10;;-1:-1:-1;;1299:604:10:o;1908:253::-;;;2046:2;2034:9;2025:7;2021:23;2017:32;2014:2;;;2067:6;2059;2052:22;2014:2;-1:-1:-1;;2095:16:10;;2151:2;2136:18;;;2130:25;2095:16;;2130:25;;-1:-1:-1;2004:157:10:o;2166:775::-;;;;;2329:2;2317:9;2308:7;2304:23;2300:32;2297:2;;;2350:6;2342;2335:22;2297:2;2391:9;2378:23;2368:33;;2448:2;2437:9;2433:18;2420:32;2410:42;;2503:2;2492:9;2488:18;2475:32;2526:18;2567:2;2559:6;2556:14;2553:2;;;2588:6;2580;2573:22;2553:2;2631:6;2620:9;2616:22;2606:32;;2676:7;2669:4;2665:2;2661:13;2657:27;2647:2;;2703:6;2695;2688:22;2647:2;2748;2735:16;2774:2;2766:6;2763:14;2760:2;;;2795:6;2787;2780:22;2760:2;2845:7;2840:2;2831:6;2827:2;2823:15;2819:24;2816:37;2813:2;;;2871:6;2863;2856:22;2813:2;2287:654;;;;-1:-1:-1;;2907:2:10;2899:11;;-1:-1:-1;;;2287:654:10:o;2946:402::-;;;3075:2;3063:9;3054:7;3050:23;3046:32;3043:2;;;3096:6;3088;3081:22;3043:2;3140:9;3127:23;3159:33;3186:5;3159:33;:::i;:::-;3211:5;-1:-1:-1;3268:2:10;3253:18;;3240:32;3281:35;3240:32;3281:35;:::i;:::-;3335:7;3325:17;;;3033:315;;;;;:::o;3353:689::-;;;;;3516:3;3504:9;3495:7;3491:23;3487:33;3484:2;;;3538:6;3530;3523:22;3484:2;3582:9;3569:23;3601:33;3628:5;3601:33;:::i;4047:190::-;;4159:2;4147:9;4138:7;4134:23;4130:32;4127:2;;;4180:6;4172;4165:22;4127:2;-1:-1:-1;4208:23:10;;4117:120;-1:-1:-1;4117:120:10:o;4242:194::-;;4365:2;4353:9;4344:7;4340:23;4336:32;4333:2;;;4386:6;4378;4371:22;4333:2;-1:-1:-1;4414:16:10;;4323:113;-1:-1:-1;4323:113:10:o;4441:327::-;;;4570:2;4558:9;4549:7;4545:23;4541:32;4538:2;;;4591:6;4583;4576:22;4538:2;4632:9;4619:23;4609:33;;4692:2;4681:9;4677:18;4664:32;4705:33;4732:5;4705:33;:::i;4773:447::-;;;;;4947:3;4935:9;4926:7;4922:23;4918:33;4915:2;;;4969:6;4961;4954:22;4915:2;5003:9;4997:16;4987:26;;5056:2;5045:9;5041:18;5035:25;5069:33;5096:5;5069:33;:::i;:::-;5166:2;5151:18;;5145:25;5210:2;5195:18;;;5189:25;4905:315;;5121:5;;-1:-1:-1;4905:315:10;-1:-1:-1;;;4905:315:10:o;5225:106::-;-1:-1:-1;;;;;5293:31:10;5281:44;;5271:60::o;5336:93::-;5413:1;5402:20;5390:33;;5380:49::o;5434:94::-;5512:8;5501:20;5489:33;;5479:49::o;5533:430::-;;5700:6;5694:13;5725:3;5737:129;5751:6;5748:1;5745:13;5737:129;;;5849:4;5833:14;;;5829:25;;5823:32;5810:11;;;5803:53;5766:12;5737:129;;;5884:6;5881:1;5878:13;5875:2;;;5919:3;5910:6;5905:3;5901:16;5894:29;5875:2;-1:-1:-1;5941:16:10;;;;;5670:293;-1:-1:-1;;5670:293:10:o;5968:203::-;-1:-1:-1;;;;;6132:32:10;;;;6114:51;;6102:2;6087:18;;6069:102::o;6392:646::-;-1:-1:-1;;;;;6743:15:10;;;6725:34;;6802:14;;6795:22;6790:2;6775:18;;6768:50;6849:2;6834:18;;6827:34;;;;6897:15;;;6892:2;6877:18;;6870:43;6705:3;6944;6929:19;;6922:32;;;6392:646;6970:19;;;6963:33;7028:3;7013:19;;6677:361::o;7043:469::-;-1:-1:-1;;;;;7328:15:10;;;7310:34;;7380:15;;;7375:2;7360:18;;7353:43;7444:8;7432:21;;;;7427:2;7412:18;;7405:49;7490:15;;;7485:2;7470:18;;7463:43;7259:3;7244:19;;7226:286::o;7517:274::-;-1:-1:-1;;;;;7709:32:10;;;;7691:51;;7773:2;7758:18;;7751:34;7679:2;7664:18;;7646:145::o;7796:819::-;8019:2;8071:21;;;8141:13;;8044:18;;;8163:22;;;7796:819;;8019:2;8204;;8222:18;;;;8263:15;;;7796:819;8309:280;8323:6;8320:1;8317:13;8309:280;;;8382:13;;8424:9;;-1:-1:-1;;;;;8420:35:10;8408:48;;8496:11;;8490:18;8476:12;;;8469:40;8529:12;;;;8564:15;;;;8452:1;8338:9;8309:280;;;-1:-1:-1;8606:3:10;;7999:616;-1:-1:-1;;;;;;;7999:616:10:o;8620:187::-;8785:14;;8778:22;8760:41;;8748:2;8733:18;;8715:92::o;9056:259::-;9255:1;9244:21;;;;9226:40;;9297:2;9282:18;;9275:34;9214:2;9199:18;;9181:134::o;9320:340::-;9522:2;9504:21;;;9561:2;9541:18;;;9534:30;-1:-1:-1;;;9595:2:10;9580:18;;9573:46;9651:2;9636:18;;9494:166::o;9665:355::-;9867:2;9849:21;;;9906:2;9886:18;;;9879:30;9945:33;9940:2;9925:18;;9918:61;10011:2;9996:18;;9839:181::o;10025:402::-;10227:2;10209:21;;;10266:2;10246:18;;;10239:30;10305:34;10300:2;10285:18;;10278:62;-1:-1:-1;;;10371:2:10;10356:18;;10349:36;10417:3;10402:19;;10199:228::o;10432:354::-;10634:2;10616:21;;;10673:2;10653:18;;;10646:30;10712:32;10707:2;10692:18;;10685:60;10777:2;10762:18;;10606:180::o;10791:334::-;10993:2;10975:21;;;11032:2;11012:18;;;11005:30;-1:-1:-1;;;11066:2:10;11051:18;;11044:40;11116:2;11101:18;;10965:160::o;11130:331::-;11332:2;11314:21;;;11371:1;11351:18;;;11344:29;-1:-1:-1;;;11404:2:10;11389:18;;11382:38;11452:2;11437:18;;11304:157::o;11466:356::-;11668:2;11650:21;;;11687:18;;;11680:30;11746:34;11741:2;11726:18;;11719:62;11813:2;11798:18;;11640:182::o;11827:399::-;12029:2;12011:21;;;12068:2;12048:18;;;12041:30;12107:34;12102:2;12087:18;;12080:62;-1:-1:-1;;;12173:2:10;12158:18;;12151:33;12216:3;12201:19;;12001:225::o;12231:344::-;12433:2;12415:21;;;12472:2;12452:18;;;12445:30;-1:-1:-1;;;12506:2:10;12491:18;;12484:50;12566:2;12551:18;;12405:170::o;12580:1234::-;;12770:3;12759:9;12755:19;12747:27;;12783:46;12819:9;12810:6;12804:13;12783:46;:::i;:::-;12876:4;12868:6;12864:17;12858:24;12891:56;12941:4;12930:9;12926:20;12912:12;12891:56;:::i;:::-;;12996:4;12988:6;12984:17;12978:24;13011:57;13062:4;13051:9;13047:20;13031:14;13011:57;:::i;:::-;;13117:4;13109:6;13105:17;13099:24;13132:56;13182:4;13171:9;13167:20;13151:14;13132:56;:::i;:::-;;13237:4;13229:6;13225:17;13219:24;13252:56;13302:4;13291:9;13287:20;13271:14;13252:56;:::i;:::-;;13364:4;13356:6;13352:17;13346:24;13339:4;13328:9;13324:20;13317:54;13427:4;13419:6;13415:17;13409:24;13402:4;13391:9;13387:20;13380:54;13490:4;13482:6;13478:17;13472:24;13465:4;13454:9;13450:20;13443:54;13516:6;13576:2;13568:6;13564:15;13558:22;13553:2;13542:9;13538:18;13531:50;;13600:6;13655:2;13647:6;13643:15;13637:22;13668:56;13720:2;13709:9;13705:18;13689:14;13668:56;:::i;:::-;-1:-1:-1;;13743:6:10;13791:15;;;13785:22;13765:18;;;;13758:50;12737:1077;:::o;13819:177::-;13965:25;;;13953:2;13938:18;;13920:76::o;14001:133::-;-1:-1:-1;;;;;14078:31:10;;14068:42;;14058:2;;14124:1;14121;14114:12;14058:2;14048:86;:::o;14139:148::-;-1:-1:-1;;;;;14220:5:10;14216:46;14209:5;14206:57;14196:2;;14277:1;14274;14267:12

Swarm Source

ipfs://f5174b0e9bc499230b8b5fa1c019b327682360b403f1460607063eee282e8342

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

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

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