ETH Price: $2,498.03 (-0.62%)
Gas: 0.75 Gwei

Token

DFDX (DFDX)
 

Overview

Max Total Supply

888,888,888 DFDX

Holders

103

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 18 Decimals)

Filtered by Token Holder
Uniswap V3: Positions NFT
Balance
0 DFDX

Value
$0.00
0xc36442b4a4522e871399cd717abdd847ab11fe88
Loading...
Loading
Loading...
Loading
Loading...
Loading

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

Contract Source Code Verified (Exact Match)

Contract Name:
DFDX

Compiler Version
v0.8.27+commit.40a35a09

Optimization Enabled:
No with 200 runs

Other Settings:
cancun EvmVersion
File 1 of 36 : DFDX.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.27;

import {IERC20, ERC20} from "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol";
import {SafeERC20} from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";

import {IUniswapV2Pair} from "@uniswap/v2-core/contracts/interfaces/IUniswapV2Pair.sol";
import {IUniswapV2Factory} from "@uniswap/v2-core/contracts/interfaces/IUniswapV2Factory.sol";
import {IUniswapV2Router02} from "@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router02.sol";

import {IUniswapV3Factory} from "@uniswap/v3-core/contracts/interfaces/IUniswapV3Factory.sol";
import {IUniswapV3Pool} from "@uniswap/v3-core/contracts/interfaces/IUniswapV3Pool.sol";

import {INonfungiblePositionManager} from "./interfaces/INonfungiblePositionManager.sol";
import {IUniswapV2Locker} from "./interfaces/IUniswapV2Locker.sol";

import {Math} from "./libraries/Math.sol";

contract DFDX is ERC20, Ownable {
    using SafeERC20 for IERC20;

    bool public initialized;

    error DFDX__InvalidEthValue();
    error DFDX__AlreadyInitialized();
    error DFDX__ZeroAddress();
    error DFDX__WETHTransfer();

    uint256 public constant TOTAL_SUPPLY = 888_888_888e18;
    uint256 public constant INITIAL_LP_DFDX = 10_000_000e18;
    uint256 public constant INITIAL_LP_WETH = 0.37e18;
    uint256 public constant INITIAL_LP_DX = 420_000_000e18;
    uint256 public constant LOCK_DURATION = 365 days;

    uint256 public constant PRECISION = 1e48;
    uint256 public constant PRECISION_SQRT = 1e24;
    uint256 public constant SLIPPAGE = 100;
    uint256 public constant BPS = 1e4;

    uint24 public constant V3_POOL_FEE = 10_000;

    int24 public constant MIN_TICK = -887272;
    int24 public constant MAX_TICK = -MIN_TICK;

    IUniswapV2Locker public immutable uniswapV2Locker;
    IUniswapV2Router02 public immutable uniswapV2Router;
    INonfungiblePositionManager public immutable uniswapV3PositionManager;

    address public immutable DX;
    address public immutable WETH;

    address public immutable DFDX_WETH_V2_PAIR;
    address public immutable DFDX_WETH_V3_PAIR;
    address public immutable DFDX_DX_V2_PAIR;
    address public immutable DFDX_DX_V3_PAIR;

    constructor(
        string memory name,
        string memory symbol,
        address _DX,
        address _v2Locker,
        address _v2Router,
        address _v3PositionManager,
        address _owner
    ) ERC20(name, symbol) Ownable(_owner) {
        if (
            _DX == address(0) ||
            _v2Locker == address(0) ||
            _v2Router == address(0) ||
            _v3PositionManager == address(0)
        ) revert DFDX__ZeroAddress();

        _mint(address(this), TOTAL_SUPPLY);

        DX = _DX;
        uniswapV2Locker = IUniswapV2Locker(_v2Locker);
        uniswapV2Router = IUniswapV2Router02(_v2Router);
        uniswapV3PositionManager = INonfungiblePositionManager(
            _v3PositionManager
        );

        WETH = IUniswapV2Router02(_v2Router).WETH();

        IUniswapV2Factory v2Factory = IUniswapV2Factory(
            uniswapV2Router.factory()
        );

        IUniswapV3Factory v3Factory = IUniswapV3Factory(
            uniswapV3PositionManager.factory()
        );

        DFDX_DX_V2_PAIR = v2Factory.createPair(address(this), _DX);
        DFDX_WETH_V2_PAIR = v2Factory.createPair(address(this), WETH);

        DFDX_DX_V3_PAIR = v3Factory.createPool(address(this), _DX, V3_POOL_FEE);
        DFDX_WETH_V3_PAIR = v3Factory.createPool(
            address(this),
            WETH,
            V3_POOL_FEE
        );

        address _token0;
        address _token1;

        _token0 = IUniswapV3Pool(DFDX_DX_V3_PAIR).token0();
        _token1 = IUniswapV3Pool(DFDX_DX_V3_PAIR).token1();

        uint160 sqrtPriceX96DX = _token0 == address(this)
            ? _encodeSqrtRatioX96(INITIAL_LP_DFDX, INITIAL_LP_DX)
            : _encodeSqrtRatioX96(INITIAL_LP_DX, INITIAL_LP_DFDX);

        IUniswapV3Pool(DFDX_DX_V3_PAIR).initialize(sqrtPriceX96DX);

        _token0 = IUniswapV3Pool(DFDX_WETH_V3_PAIR).token0();
        _token1 = IUniswapV3Pool(DFDX_WETH_V3_PAIR).token1();

        uint160 sqrtPriceX96WETH = _token0 == address(this)
            ? _encodeSqrtRatioX96(INITIAL_LP_DFDX, INITIAL_LP_WETH)
            : _encodeSqrtRatioX96(INITIAL_LP_WETH, INITIAL_LP_DFDX);

        IUniswapV3Pool(DFDX_WETH_V3_PAIR).initialize(sqrtPriceX96WETH);
    }

    function initialize(uint256 deadline) external payable onlyOwner {
        if (initialized) revert DFDX__AlreadyInitialized();

        initialized = true;

        uint256 lockerFee = uniswapV2Locker.gFees().ethFee;

        if (msg.value != 2 * (lockerFee + INITIAL_LP_WETH))
            revert DFDX__InvalidEthValue();

        (bool success, ) = address(WETH).call{value: 2 * INITIAL_LP_WETH}("");
        if (!success) revert DFDX__WETHTransfer();

        IERC20(DX).safeTransferFrom(
            msg.sender,
            address(this),
            2 * INITIAL_LP_DX
        );

        IERC20(DX).approve(address(uniswapV2Router), INITIAL_LP_DX);
        IERC20(WETH).approve(address(uniswapV2Router), INITIAL_LP_WETH);
        _approve(address(this), address(uniswapV2Router), 2 * INITIAL_LP_DFDX);

        uint256 dfdxSent;
        uint256 tokenBalance;

        tokenBalance = IERC20(DX).balanceOf(DFDX_DX_V2_PAIR);
        if (tokenBalance > 0)
            dfdxSent = _fixV2Pair(DFDX_DX_V2_PAIR, INITIAL_LP_DX);

        uniswapV2Router.addLiquidity(
            address(this),
            DX,
            INITIAL_LP_DFDX - dfdxSent,
            INITIAL_LP_DX - tokenBalance,
            ((INITIAL_LP_DFDX - dfdxSent) * (BPS - SLIPPAGE)) / BPS,
            ((INITIAL_LP_DX - tokenBalance) * (BPS - SLIPPAGE)) / BPS,
            address(this),
            deadline
        );

        dfdxSent = 0;

        tokenBalance = IERC20(WETH).balanceOf(DFDX_WETH_V2_PAIR);
        if (tokenBalance > 0)
            dfdxSent = _fixV2Pair(DFDX_WETH_V2_PAIR, INITIAL_LP_WETH);

        uniswapV2Router.addLiquidity(
            address(this),
            WETH,
            INITIAL_LP_DFDX - dfdxSent,
            INITIAL_LP_WETH - tokenBalance,
            ((INITIAL_LP_DFDX - dfdxSent) * (BPS - SLIPPAGE)) / BPS,
            ((INITIAL_LP_WETH - tokenBalance) * (BPS - SLIPPAGE)) / BPS,
            address(this),
            deadline
        );

        IERC20(DFDX_DX_V2_PAIR).approve(
            address(uniswapV2Locker),
            IERC20(DFDX_DX_V2_PAIR).balanceOf(address(this))
        );

        uniswapV2Locker.lockLPToken{value: lockerFee}(
            DFDX_DX_V2_PAIR,
            IERC20(DFDX_DX_V2_PAIR).balanceOf(address(this)),
            block.timestamp + LOCK_DURATION,
            payable(address(0)),
            true,
            payable(msg.sender)
        );

        IERC20(DFDX_WETH_V2_PAIR).approve(
            address(uniswapV2Locker),
            IERC20(DFDX_WETH_V2_PAIR).balanceOf(address(this))
        );

        uniswapV2Locker.lockLPToken{value: lockerFee}(
            DFDX_WETH_V2_PAIR,
            IERC20(DFDX_WETH_V2_PAIR).balanceOf(address(this)),
            block.timestamp + LOCK_DURATION,
            payable(address(0)),
            true,
            payable(msg.sender)
        );

        IERC20(DX).approve(address(uniswapV3PositionManager), INITIAL_LP_DX);
        IERC20(WETH).approve(
            address(uniswapV3PositionManager),
            INITIAL_LP_WETH
        );
        _approve(
            address(this),
            address(uniswapV3PositionManager),
            2 * INITIAL_LP_DFDX
        );

        address _token0;
        address _token1;

        uint256 _amount0Desired;
        uint256 _amount1Desired;

        int24 tickSpacing;

        _token0 = IUniswapV3Pool(DFDX_DX_V3_PAIR).token0();
        _token1 = IUniswapV3Pool(DFDX_DX_V3_PAIR).token1();

        _amount0Desired = _token0 == address(this)
            ? INITIAL_LP_DFDX
            : INITIAL_LP_DX;
        _amount1Desired = _token0 == address(this)
            ? INITIAL_LP_DX
            : INITIAL_LP_DFDX;

        tickSpacing = IUniswapV3Pool(DFDX_DX_V3_PAIR).tickSpacing();

        uniswapV3PositionManager.mint(
            INonfungiblePositionManager.MintParams({
                token0: _token0,
                token1: _token1,
                fee: V3_POOL_FEE,
                tickLower: (MIN_TICK / tickSpacing) * tickSpacing,
                tickUpper: (MAX_TICK / tickSpacing) * tickSpacing,
                amount0Desired: _amount0Desired,
                amount1Desired: _amount1Desired,
                amount0Min: (_amount0Desired * (BPS - SLIPPAGE)) / BPS,
                amount1Min: (_amount1Desired * (BPS - SLIPPAGE)) / BPS,
                recipient: msg.sender,
                deadline: deadline
            })
        );

        _token0 = IUniswapV3Pool(DFDX_WETH_V3_PAIR).token0();
        _token1 = IUniswapV3Pool(DFDX_WETH_V3_PAIR).token1();

        _amount0Desired = _token0 == address(this)
            ? INITIAL_LP_DFDX
            : INITIAL_LP_WETH;

        _amount1Desired = _token0 == address(this)
            ? INITIAL_LP_WETH
            : INITIAL_LP_DFDX;

        tickSpacing = IUniswapV3Pool(DFDX_WETH_V3_PAIR).tickSpacing();

        uniswapV3PositionManager.mint(
            INonfungiblePositionManager.MintParams({
                token0: _token0,
                token1: _token1,
                fee: V3_POOL_FEE,
                tickLower: (MIN_TICK / tickSpacing) * tickSpacing,
                tickUpper: (MAX_TICK / tickSpacing) * tickSpacing,
                amount0Desired: _amount0Desired,
                amount1Desired: _amount1Desired,
                amount0Min: (_amount0Desired * (BPS - SLIPPAGE)) / BPS,
                amount1Min: (_amount1Desired * (BPS - SLIPPAGE)) / BPS,
                recipient: msg.sender,
                deadline: deadline
            })
        );

        _transfer(address(this), msg.sender, balanceOf(address(this)));
    }

    function _encodeSqrtRatioX96(
        uint256 amount0,
        uint256 amount1
    ) internal pure returns (uint160) {
        // 1e48 is used for high precision
        uint160 sqrtPX96 = uint160(
            (Math.sqrt((amount1 * PRECISION) / amount0) << 96) / PRECISION_SQRT
        );
        return sqrtPX96;
    }

    function _fixV2Pair(
        address _pair,
        uint256 _initialLP
    ) internal returns (uint256) {
        IUniswapV2Pair pair = IUniswapV2Pair(_pair);
        address token = pair.token0() == address(this)
            ? pair.token1()
            : pair.token0();

        uint256 tokenAmount = IERC20(token).balanceOf(_pair);

        uint256 dfdxToSend = (tokenAmount * INITIAL_LP_DFDX) / _initialLP;
        _transfer(address(this), _pair, dfdxToSend);

        pair.sync();

        return dfdxToSend;
    }
}

File 2 of 36 : ERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.2.0) (token/ERC20/ERC20.sol)

pragma solidity ^0.8.20;

import {IERC20} from "./IERC20.sol";
import {IERC20Metadata} from "./extensions/IERC20Metadata.sol";
import {Context} from "../../utils/Context.sol";
import {IERC20Errors} from "../../interfaces/draft-IERC6093.sol";

/**
 * @dev Implementation of the {IERC20} interface.
 *
 * This implementation is agnostic to the way tokens are created. This means
 * that a supply mechanism has to be added in a derived contract using {_mint}.
 *
 * TIP: For a detailed writeup see our guide
 * https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * The default value of {decimals} is 18. To change this, you should override
 * this function so it returns a different value.
 *
 * We have followed general OpenZeppelin Contracts guidelines: functions revert
 * instead returning `false` on failure. This behavior is nonetheless
 * conventional and does not conflict with the expectations of ERC-20
 * applications.
 */
abstract contract ERC20 is Context, IERC20, IERC20Metadata, IERC20Errors {
    mapping(address account => uint256) private _balances;

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

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

    /**
     * @dev Sets the values for {name} and {symbol}.
     *
     * All two of these values are immutable: they can only be set once during
     * construction.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

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

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

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

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

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

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

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

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

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

    /**
     * @dev Moves a `value` amount of tokens from `from` to `to`.
     *
     * This internal function is equivalent to {transfer}, and can be used to
     * e.g. implement automatic token fees, slashing mechanisms, etc.
     *
     * Emits a {Transfer} event.
     *
     * NOTE: This function is not virtual, {_update} should be overridden instead.
     */
    function _transfer(address from, address to, uint256 value) internal {
        if (from == address(0)) {
            revert ERC20InvalidSender(address(0));
        }
        if (to == address(0)) {
            revert ERC20InvalidReceiver(address(0));
        }
        _update(from, to, value);
    }

    /**
     * @dev Transfers a `value` amount of tokens from `from` to `to`, or alternatively mints (or burns) if `from`
     * (or `to`) is the zero address. All customizations to transfers, mints, and burns should be done by overriding
     * this function.
     *
     * Emits a {Transfer} event.
     */
    function _update(address from, address to, uint256 value) internal virtual {
        if (from == address(0)) {
            // Overflow check required: The rest of the code assumes that totalSupply never overflows
            _totalSupply += value;
        } else {
            uint256 fromBalance = _balances[from];
            if (fromBalance < value) {
                revert ERC20InsufficientBalance(from, fromBalance, value);
            }
            unchecked {
                // Overflow not possible: value <= fromBalance <= totalSupply.
                _balances[from] = fromBalance - value;
            }
        }

        if (to == address(0)) {
            unchecked {
                // Overflow not possible: value <= totalSupply or value <= fromBalance <= totalSupply.
                _totalSupply -= value;
            }
        } else {
            unchecked {
                // Overflow not possible: balance + value is at most totalSupply, which we know fits into a uint256.
                _balances[to] += value;
            }
        }

        emit Transfer(from, to, value);
    }

    /**
     * @dev Creates a `value` amount of tokens and assigns them to `account`, by transferring it from address(0).
     * Relies on the `_update` mechanism
     *
     * Emits a {Transfer} event with `from` set to the zero address.
     *
     * NOTE: This function is not virtual, {_update} should be overridden instead.
     */
    function _mint(address account, uint256 value) internal {
        if (account == address(0)) {
            revert ERC20InvalidReceiver(address(0));
        }
        _update(address(0), account, value);
    }

    /**
     * @dev Destroys a `value` amount of tokens from `account`, lowering the total supply.
     * Relies on the `_update` mechanism.
     *
     * Emits a {Transfer} event with `to` set to the zero address.
     *
     * NOTE: This function is not virtual, {_update} should be overridden instead
     */
    function _burn(address account, uint256 value) internal {
        if (account == address(0)) {
            revert ERC20InvalidSender(address(0));
        }
        _update(account, address(0), value);
    }

    /**
     * @dev Sets `value` as the allowance of `spender` over the `owner` s tokens.
     *
     * This internal function is equivalent to `approve`, and can be used to
     * e.g. set automatic allowances for certain subsystems, etc.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `owner` cannot be the zero address.
     * - `spender` cannot be the zero address.
     *
     * Overrides to this logic should be done to the variant with an additional `bool emitEvent` argument.
     */
    function _approve(address owner, address spender, uint256 value) internal {
        _approve(owner, spender, value, true);
    }

    /**
     * @dev Variant of {_approve} with an optional flag to enable or disable the {Approval} event.
     *
     * By default (when calling {_approve}) the flag is set to true. On the other hand, approval changes made by
     * `_spendAllowance` during the `transferFrom` operation set the flag to false. This saves gas by not emitting any
     * `Approval` event during `transferFrom` operations.
     *
     * Anyone who wishes to continue emitting `Approval` events on the`transferFrom` operation can force the flag to
     * true using the following override:
     *
     * ```solidity
     * function _approve(address owner, address spender, uint256 value, bool) internal virtual override {
     *     super._approve(owner, spender, value, true);
     * }
     * ```
     *
     * Requirements are the same as {_approve}.
     */
    function _approve(address owner, address spender, uint256 value, bool emitEvent) internal virtual {
        if (owner == address(0)) {
            revert ERC20InvalidApprover(address(0));
        }
        if (spender == address(0)) {
            revert ERC20InvalidSpender(address(0));
        }
        _allowances[owner][spender] = value;
        if (emitEvent) {
            emit Approval(owner, spender, value);
        }
    }

    /**
     * @dev Updates `owner` s allowance for `spender` based on spent `value`.
     *
     * Does not update the allowance value in case of infinite allowance.
     * Revert if not enough allowance is available.
     *
     * Does not emit an {Approval} event.
     */
    function _spendAllowance(address owner, address spender, uint256 value) internal virtual {
        uint256 currentAllowance = allowance(owner, spender);
        if (currentAllowance < type(uint256).max) {
            if (currentAllowance < value) {
                revert ERC20InsufficientAllowance(spender, currentAllowance, value);
            }
            unchecked {
                _approve(owner, spender, currentAllowance - value, false);
            }
        }
    }
}

File 3 of 36 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)

pragma solidity ^0.8.20;

import {Context} from "../utils/Context.sol";

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * The initial owner is set to the address provided by the deployer. This can
 * later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

    /**
     * @dev The caller account is not authorized to perform an operation.
     */
    error OwnableUnauthorizedAccount(address account);

    /**
     * @dev The owner is not a valid owner account. (eg. `address(0)`)
     */
    error OwnableInvalidOwner(address owner);

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

    /**
     * @dev Initializes the contract setting the address provided by the deployer as the initial owner.
     */
    constructor(address initialOwner) {
        if (initialOwner == address(0)) {
            revert OwnableInvalidOwner(address(0));
        }
        _transferOwnership(initialOwner);
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        if (owner() != _msgSender()) {
            revert OwnableUnauthorizedAccount(_msgSender());
        }
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby disabling any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _transferOwnership(address(0));
    }

    /**
     * @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 {
        if (newOwner == address(0)) {
            revert OwnableInvalidOwner(address(0));
        }
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 4 of 36 : SafeERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.2.0) (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.20;

import {IERC20} from "../IERC20.sol";
import {IERC1363} from "../../../interfaces/IERC1363.sol";

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

    /**
     * @dev Indicates a failed `decreaseAllowance` request.
     */
    error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);

    /**
     * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     */
    function safeTransfer(IERC20 token, address to, uint256 value) internal {
        _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));
    }

    /**
     * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the
     * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.
     */
    function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {
        _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));
    }

    /**
     * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     *
     * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the "client"
     * smart contract uses ERC-7674 to set temporary allowances, then the "client" smart contract should avoid using
     * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract
     * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.
     */
    function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 oldAllowance = token.allowance(address(this), spender);
        forceApprove(token, spender, oldAllowance + value);
    }

    /**
     * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no
     * value, non-reverting calls are assumed to be successful.
     *
     * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the "client"
     * smart contract uses ERC-7674 to set temporary allowances, then the "client" smart contract should avoid using
     * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract
     * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.
     */
    function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {
        unchecked {
            uint256 currentAllowance = token.allowance(address(this), spender);
            if (currentAllowance < requestedDecrease) {
                revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);
            }
            forceApprove(token, spender, currentAllowance - requestedDecrease);
        }
    }

    /**
     * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval
     * to be set to zero before setting it to a non-zero value, such as USDT.
     *
     * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function
     * only sets the "standard" allowance. Any temporary allowance will remain active, in addition to the value being
     * set here.
     */
    function forceApprove(IERC20 token, address spender, uint256 value) internal {
        bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));

        if (!_callOptionalReturnBool(token, approvalCall)) {
            _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));
            _callOptionalReturn(token, approvalCall);
        }
    }

    /**
     * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no
     * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when
     * targeting contracts.
     *
     * Reverts if the returned value is other than `true`.
     */
    function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {
        if (to.code.length == 0) {
            safeTransfer(token, to, value);
        } else if (!token.transferAndCall(to, value, data)) {
            revert SafeERC20FailedOperation(address(token));
        }
    }

    /**
     * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target
     * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when
     * targeting contracts.
     *
     * Reverts if the returned value is other than `true`.
     */
    function transferFromAndCallRelaxed(
        IERC1363 token,
        address from,
        address to,
        uint256 value,
        bytes memory data
    ) internal {
        if (to.code.length == 0) {
            safeTransferFrom(token, from, to, value);
        } else if (!token.transferFromAndCall(from, to, value, data)) {
            revert SafeERC20FailedOperation(address(token));
        }
    }

    /**
     * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no
     * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when
     * targeting contracts.
     *
     * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.
     * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}
     * once without retrying, and relies on the returned value to be true.
     *
     * Reverts if the returned value is other than `true`.
     */
    function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {
        if (to.code.length == 0) {
            forceApprove(token, to, value);
        } else if (!token.approveAndCall(to, value, data)) {
            revert SafeERC20FailedOperation(address(token));
        }
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     *
     * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.
     */
    function _callOptionalReturn(IERC20 token, bytes memory data) private {
        uint256 returnSize;
        uint256 returnValue;
        assembly ("memory-safe") {
            let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)
            // bubble errors
            if iszero(success) {
                let ptr := mload(0x40)
                returndatacopy(ptr, 0, returndatasize())
                revert(ptr, returndatasize())
            }
            returnSize := returndatasize()
            returnValue := mload(0)
        }

        if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {
            revert SafeERC20FailedOperation(address(token));
        }
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     *
     * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.
     */
    function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {
        bool success;
        uint256 returnSize;
        uint256 returnValue;
        assembly ("memory-safe") {
            success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)
            returnSize := returndatasize()
            returnValue := mload(0)
        }
        return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);
    }
}

File 5 of 36 : IUniswapV2Pair.sol
pragma solidity >=0.5.0;

interface IUniswapV2Pair {
    event Approval(address indexed owner, address indexed spender, uint value);
    event Transfer(address indexed from, address indexed to, uint value);

    function name() external pure returns (string memory);
    function symbol() external pure returns (string memory);
    function decimals() external pure returns (uint8);
    function totalSupply() external view returns (uint);
    function balanceOf(address owner) external view returns (uint);
    function allowance(address owner, address spender) external view returns (uint);

    function approve(address spender, uint value) external returns (bool);
    function transfer(address to, uint value) external returns (bool);
    function transferFrom(address from, address to, uint value) external returns (bool);

    function DOMAIN_SEPARATOR() external view returns (bytes32);
    function PERMIT_TYPEHASH() external pure returns (bytes32);
    function nonces(address owner) external view returns (uint);

    function permit(address owner, address spender, uint value, uint deadline, uint8 v, bytes32 r, bytes32 s) external;

    event Mint(address indexed sender, uint amount0, uint amount1);
    event Burn(address indexed sender, uint amount0, uint amount1, address indexed to);
    event Swap(
        address indexed sender,
        uint amount0In,
        uint amount1In,
        uint amount0Out,
        uint amount1Out,
        address indexed to
    );
    event Sync(uint112 reserve0, uint112 reserve1);

    function MINIMUM_LIQUIDITY() external pure returns (uint);
    function factory() external view returns (address);
    function token0() external view returns (address);
    function token1() external view returns (address);
    function getReserves() external view returns (uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast);
    function price0CumulativeLast() external view returns (uint);
    function price1CumulativeLast() external view returns (uint);
    function kLast() external view returns (uint);

    function mint(address to) external returns (uint liquidity);
    function burn(address to) external returns (uint amount0, uint amount1);
    function swap(uint amount0Out, uint amount1Out, address to, bytes calldata data) external;
    function skim(address to) external;
    function sync() external;

    function initialize(address, address) external;
}

File 6 of 36 : IUniswapV2Factory.sol
pragma solidity >=0.5.0;

interface IUniswapV2Factory {
    event PairCreated(address indexed token0, address indexed token1, address pair, uint);

    function feeTo() external view returns (address);
    function feeToSetter() external view returns (address);

    function getPair(address tokenA, address tokenB) external view returns (address pair);
    function allPairs(uint) external view returns (address pair);
    function allPairsLength() external view returns (uint);

    function createPair(address tokenA, address tokenB) external returns (address pair);

    function setFeeTo(address) external;
    function setFeeToSetter(address) external;
}

File 7 of 36 : IUniswapV2Router02.sol
pragma solidity >=0.6.2;

import './IUniswapV2Router01.sol';

interface IUniswapV2Router02 is IUniswapV2Router01 {
    function removeLiquidityETHSupportingFeeOnTransferTokens(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    ) external returns (uint amountETH);
    function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline,
        bool approveMax, uint8 v, bytes32 r, bytes32 s
    ) external returns (uint amountETH);

    function swapExactTokensForTokensSupportingFeeOnTransferTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external;
    function swapExactETHForTokensSupportingFeeOnTransferTokens(
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external payable;
    function swapExactTokensForETHSupportingFeeOnTransferTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external;
}

File 8 of 36 : IUniswapV3Factory.sol
// SPDX-License-Identifier: GPL-2.0-or-later
pragma solidity >=0.5.0;

/// @title The interface for the Uniswap V3 Factory
/// @notice The Uniswap V3 Factory facilitates creation of Uniswap V3 pools and control over the protocol fees
interface IUniswapV3Factory {
    /// @notice Emitted when the owner of the factory is changed
    /// @param oldOwner The owner before the owner was changed
    /// @param newOwner The owner after the owner was changed
    event OwnerChanged(address indexed oldOwner, address indexed newOwner);

    /// @notice Emitted when a pool is created
    /// @param token0 The first token of the pool by address sort order
    /// @param token1 The second token of the pool by address sort order
    /// @param fee The fee collected upon every swap in the pool, denominated in hundredths of a bip
    /// @param tickSpacing The minimum number of ticks between initialized ticks
    /// @param pool The address of the created pool
    event PoolCreated(
        address indexed token0,
        address indexed token1,
        uint24 indexed fee,
        int24 tickSpacing,
        address pool
    );

    /// @notice Emitted when a new fee amount is enabled for pool creation via the factory
    /// @param fee The enabled fee, denominated in hundredths of a bip
    /// @param tickSpacing The minimum number of ticks between initialized ticks for pools created with the given fee
    event FeeAmountEnabled(uint24 indexed fee, int24 indexed tickSpacing);

    /// @notice Returns the current owner of the factory
    /// @dev Can be changed by the current owner via setOwner
    /// @return The address of the factory owner
    function owner() external view returns (address);

    /// @notice Returns the tick spacing for a given fee amount, if enabled, or 0 if not enabled
    /// @dev A fee amount can never be removed, so this value should be hard coded or cached in the calling context
    /// @param fee The enabled fee, denominated in hundredths of a bip. Returns 0 in case of unenabled fee
    /// @return The tick spacing
    function feeAmountTickSpacing(uint24 fee) external view returns (int24);

    /// @notice Returns the pool address for a given pair of tokens and a fee, or address 0 if it does not exist
    /// @dev tokenA and tokenB may be passed in either token0/token1 or token1/token0 order
    /// @param tokenA The contract address of either token0 or token1
    /// @param tokenB The contract address of the other token
    /// @param fee The fee collected upon every swap in the pool, denominated in hundredths of a bip
    /// @return pool The pool address
    function getPool(
        address tokenA,
        address tokenB,
        uint24 fee
    ) external view returns (address pool);

    /// @notice Creates a pool for the given two tokens and fee
    /// @param tokenA One of the two tokens in the desired pool
    /// @param tokenB The other of the two tokens in the desired pool
    /// @param fee The desired fee for the pool
    /// @dev tokenA and tokenB may be passed in either order: token0/token1 or token1/token0. tickSpacing is retrieved
    /// from the fee. The call will revert if the pool already exists, the fee is invalid, or the token arguments
    /// are invalid.
    /// @return pool The address of the newly created pool
    function createPool(
        address tokenA,
        address tokenB,
        uint24 fee
    ) external returns (address pool);

    /// @notice Updates the owner of the factory
    /// @dev Must be called by the current owner
    /// @param _owner The new owner of the factory
    function setOwner(address _owner) external;

    /// @notice Enables a fee amount with the given tickSpacing
    /// @dev Fee amounts may never be removed once enabled
    /// @param fee The fee amount to enable, denominated in hundredths of a bip (i.e. 1e-6)
    /// @param tickSpacing The spacing between ticks to be enforced for all pools created with the given fee amount
    function enableFeeAmount(uint24 fee, int24 tickSpacing) external;
}

File 9 of 36 : 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 10 of 36 : INonfungiblePositionManager.sol
// SPDX-License-Identifier: GPL-2.0-or-later
pragma solidity >=0.7.5;
pragma abicoder v2;

import '@openzeppelin/contracts/interfaces/IERC721Metadata.sol';
import '@openzeppelin/contracts/interfaces/IERC721Enumerable.sol';

import {IPoolInitializer} from '@uniswap/v3-periphery/contracts/interfaces/IPoolInitializer.sol';
import {IERC721Permit} from '@uniswap/v3-periphery/contracts/interfaces/IERC721Permit.sol';
import {IPeripheryPayments} from '@uniswap/v3-periphery/contracts/interfaces/IPeripheryPayments.sol';
import {IPeripheryImmutableState} from '@uniswap/v3-periphery/contracts/interfaces/IPeripheryImmutableState.sol';

/// @title Non-fungible token for positions
/// @notice Wraps Uniswap V3 positions in a non-fungible token interface which allows for them to be transferred
/// and authorized.
interface INonfungiblePositionManager is
    IPoolInitializer,
    IPeripheryPayments,
    IPeripheryImmutableState,
    IERC721Metadata,
    IERC721Enumerable,
    IERC721Permit
{
    /// @notice Emitted when liquidity is increased for a position NFT
    /// @dev Also emitted when a token is minted
    /// @param tokenId The ID of the token for which liquidity was increased
    /// @param liquidity The amount by which liquidity for the NFT position was increased
    /// @param amount0 The amount of token0 that was paid for the increase in liquidity
    /// @param amount1 The amount of token1 that was paid for the increase in liquidity
    event IncreaseLiquidity(uint256 indexed tokenId, uint128 liquidity, uint256 amount0, uint256 amount1);
    /// @notice Emitted when liquidity is decreased for a position NFT
    /// @param tokenId The ID of the token for which liquidity was decreased
    /// @param liquidity The amount by which liquidity for the NFT position was decreased
    /// @param amount0 The amount of token0 that was accounted for the decrease in liquidity
    /// @param amount1 The amount of token1 that was accounted for the decrease in liquidity
    event DecreaseLiquidity(uint256 indexed tokenId, uint128 liquidity, uint256 amount0, uint256 amount1);
    /// @notice Emitted when tokens are collected for a position NFT
    /// @dev The amounts reported may not be exactly equivalent to the amounts transferred, due to rounding behavior
    /// @param tokenId The ID of the token for which underlying tokens were collected
    /// @param recipient The address of the account that received the collected tokens
    /// @param amount0 The amount of token0 owed to the position that was collected
    /// @param amount1 The amount of token1 owed to the position that was collected
    event Collect(uint256 indexed tokenId, address recipient, uint256 amount0, uint256 amount1);

    /// @notice Returns the position information associated with a given token ID.
    /// @dev Throws if the token ID is not valid.
    /// @param tokenId The ID of the token that represents the position
    /// @return nonce The nonce for permits
    /// @return operator The address that is approved for spending
    /// @return token0 The address of the token0 for a specific pool
    /// @return token1 The address of the token1 for a specific pool
    /// @return fee The fee associated with the pool
    /// @return tickLower The lower end of the tick range for the position
    /// @return tickUpper The higher end of the tick range for the position
    /// @return liquidity The liquidity of the position
    /// @return feeGrowthInside0LastX128 The fee growth of token0 as of the last action on the individual position
    /// @return feeGrowthInside1LastX128 The fee growth of token1 as of the last action on the individual position
    /// @return tokensOwed0 The uncollected amount of token0 owed to the position as of the last computation
    /// @return tokensOwed1 The uncollected amount of token1 owed to the position as of the last computation
    function positions(uint256 tokenId)
        external
        view
        returns (
            uint96 nonce,
            address operator,
            address token0,
            address token1,
            uint24 fee,
            int24 tickLower,
            int24 tickUpper,
            uint128 liquidity,
            uint256 feeGrowthInside0LastX128,
            uint256 feeGrowthInside1LastX128,
            uint128 tokensOwed0,
            uint128 tokensOwed1
        );

    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
        );

    struct IncreaseLiquidityParams {
        uint256 tokenId;
        uint256 amount0Desired;
        uint256 amount1Desired;
        uint256 amount0Min;
        uint256 amount1Min;
        uint256 deadline;
    }

    /// @notice Increases the amount of liquidity in a position, with tokens paid by the `msg.sender`
    /// @param params tokenId The ID of the token for which liquidity is being increased,
    /// amount0Desired The desired amount of token0 to be spent,
    /// amount1Desired The desired amount of token1 to be spent,
    /// amount0Min The minimum amount of token0 to spend, which serves as a slippage check,
    /// amount1Min The minimum amount of token1 to spend, which serves as a slippage check,
    /// deadline The time by which the transaction must be included to effect the change
    /// @return liquidity The new liquidity amount as a result of the increase
    /// @return amount0 The amount of token0 to acheive resulting liquidity
    /// @return amount1 The amount of token1 to acheive resulting liquidity
    function increaseLiquidity(IncreaseLiquidityParams calldata params)
        external
        payable
        returns (
            uint128 liquidity,
            uint256 amount0,
            uint256 amount1
        );

    struct DecreaseLiquidityParams {
        uint256 tokenId;
        uint128 liquidity;
        uint256 amount0Min;
        uint256 amount1Min;
        uint256 deadline;
    }

    /// @notice Decreases the amount of liquidity in a position and accounts it to the position
    /// @param params tokenId The ID of the token for which liquidity is being decreased,
    /// amount The amount by which liquidity will be decreased,
    /// amount0Min The minimum amount of token0 that should be accounted for the burned liquidity,
    /// amount1Min The minimum amount of token1 that should be accounted for the burned liquidity,
    /// deadline The time by which the transaction must be included to effect the change
    /// @return amount0 The amount of token0 accounted to the position's tokens owed
    /// @return amount1 The amount of token1 accounted to the position's tokens owed
    function decreaseLiquidity(DecreaseLiquidityParams calldata params)
        external
        payable
        returns (uint256 amount0, uint256 amount1);

    struct CollectParams {
        uint256 tokenId;
        address recipient;
        uint128 amount0Max;
        uint128 amount1Max;
    }

    /// @notice Collects up to a maximum amount of fees owed to a specific position to the recipient
    /// @param params tokenId The ID of the NFT for which tokens are being collected,
    /// recipient The account that should receive the tokens,
    /// amount0Max The maximum amount of token0 to collect,
    /// amount1Max The maximum amount of token1 to collect
    /// @return amount0 The amount of fees collected in token0
    /// @return amount1 The amount of fees collected in token1
    function collect(CollectParams calldata params) external payable returns (uint256 amount0, uint256 amount1);

    /// @notice Burns a token ID, which deletes it from the NFT contract. The token must have 0 liquidity and all tokens
    /// must be collected first.
    /// @param tokenId The ID of the token that is being burned
    function burn(uint256 tokenId) external payable;
}

File 11 of 36 : IUniswapV2Locker.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.27;

interface IUniswapV2Locker {
    struct FeeStruct {
        uint256 ethFee; // Small eth fee to prevent spam on the platform
        address secondaryFeeToken; // UNCX or UNCL
        uint256 secondaryTokenFee; // optional, UNCX or UNCL
        uint256 secondaryTokenDiscount; // discount on liquidity fee for burning secondaryToken
        uint256 liquidityFee; // fee on univ2 liquidity tokens
        uint256 referralPercent; // fee for referrals
        address referralToken; // token the refferer must hold to qualify as a referrer
        uint256 referralHold; // balance the referrer must hold to qualify as a referrer
        uint256 referralDiscount; // discount on flatrate fees for using a valid referral address
    }

    function gFees() external view returns (FeeStruct memory);

    /**
     * @notice Creates a new lock
     * @param _lpToken the univ2 token address
     * @param _amount amount of LP tokens to lock
     * @param _unlock_date the unix timestamp (in seconds) until unlock
     * @param _referral the referrer address if any or address(0) for none
     * @param _fee_in_eth fees can be paid in eth or in a secondary token such as UNCX with a discount on univ2 tokens
     * @param _withdrawer the user who can withdraw liquidity once the lock expires.
     */
    function lockLPToken(
        address _lpToken,
        uint256 _amount,
        uint256 _unlock_date,
        address payable _referral,
        bool _fee_in_eth,
        address payable _withdrawer
    ) external payable;

    /**
     * @notice withdraw a specified amount from a lock
     */
    function withdraw(
        address _lpToken,
        uint256 _index,
        uint256 _lockID,
        uint256 _amount
    ) external;
    
    function getUserLockForTokenAtIndex(
        address _user,
        address _lpToken,
        uint256 _index
    )
        external
        view
        returns (uint256, uint256, uint256, uint256, uint256, address);
}

File 12 of 36 : Math.sol
pragma solidity 0.8.27;

// a library for performing various math operations

library Math {
    // babylonian method (https://en.wikipedia.org/wiki/Methods_of_computing_square_roots#Babylonian_method)
    function sqrt(uint y) internal pure returns (uint z) {
        if (y > 3) {
            z = y;
            uint x = y / 2 + 1;
            while (x < z) {
                z = x;
                x = (y / x + x) / 2;
            }
        } else if (y != 0) {
            z = 1;
        }
    }
}

File 13 of 36 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.20;

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

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

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

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

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

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

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

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

File 14 of 36 : IERC20Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (token/ERC20/extensions/IERC20Metadata.sol)

pragma solidity ^0.8.20;

import {IERC20} from "../IERC20.sol";

/**
 * @dev Interface for the optional metadata functions from the ERC-20 standard.
 */
interface IERC20Metadata is IERC20 {
    /**
     * @dev Returns the name of the token.
     */
    function name() external view returns (string memory);

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

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

File 15 of 36 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)

pragma solidity ^0.8.20;

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

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

    function _contextSuffixLength() internal view virtual returns (uint256) {
        return 0;
    }
}

File 16 of 36 : draft-IERC6093.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (interfaces/draft-IERC6093.sol)
pragma solidity ^0.8.20;

/**
 * @dev Standard ERC-20 Errors
 * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC-20 tokens.
 */
interface IERC20Errors {
    /**
     * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     * @param balance Current balance for the interacting account.
     * @param needed Minimum amount required to perform a transfer.
     */
    error ERC20InsufficientBalance(address sender, uint256 balance, uint256 needed);

    /**
     * @dev Indicates a failure with the token `sender`. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     */
    error ERC20InvalidSender(address sender);

    /**
     * @dev Indicates a failure with the token `receiver`. Used in transfers.
     * @param receiver Address to which tokens are being transferred.
     */
    error ERC20InvalidReceiver(address receiver);

    /**
     * @dev Indicates a failure with the `spender`’s `allowance`. Used in transfers.
     * @param spender Address that may be allowed to operate on tokens without being their owner.
     * @param allowance Amount of tokens a `spender` is allowed to operate with.
     * @param needed Minimum amount required to perform a transfer.
     */
    error ERC20InsufficientAllowance(address spender, uint256 allowance, uint256 needed);

    /**
     * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
     * @param approver Address initiating an approval operation.
     */
    error ERC20InvalidApprover(address approver);

    /**
     * @dev Indicates a failure with the `spender` to be approved. Used in approvals.
     * @param spender Address that may be allowed to operate on tokens without being their owner.
     */
    error ERC20InvalidSpender(address spender);
}

/**
 * @dev Standard ERC-721 Errors
 * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC-721 tokens.
 */
interface IERC721Errors {
    /**
     * @dev Indicates that an address can't be an owner. For example, `address(0)` is a forbidden owner in ERC-20.
     * Used in balance queries.
     * @param owner Address of the current owner of a token.
     */
    error ERC721InvalidOwner(address owner);

    /**
     * @dev Indicates a `tokenId` whose `owner` is the zero address.
     * @param tokenId Identifier number of a token.
     */
    error ERC721NonexistentToken(uint256 tokenId);

    /**
     * @dev Indicates an error related to the ownership over a particular token. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     * @param tokenId Identifier number of a token.
     * @param owner Address of the current owner of a token.
     */
    error ERC721IncorrectOwner(address sender, uint256 tokenId, address owner);

    /**
     * @dev Indicates a failure with the token `sender`. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     */
    error ERC721InvalidSender(address sender);

    /**
     * @dev Indicates a failure with the token `receiver`. Used in transfers.
     * @param receiver Address to which tokens are being transferred.
     */
    error ERC721InvalidReceiver(address receiver);

    /**
     * @dev Indicates a failure with the `operator`’s approval. Used in transfers.
     * @param operator Address that may be allowed to operate on tokens without being their owner.
     * @param tokenId Identifier number of a token.
     */
    error ERC721InsufficientApproval(address operator, uint256 tokenId);

    /**
     * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
     * @param approver Address initiating an approval operation.
     */
    error ERC721InvalidApprover(address approver);

    /**
     * @dev Indicates a failure with the `operator` to be approved. Used in approvals.
     * @param operator Address that may be allowed to operate on tokens without being their owner.
     */
    error ERC721InvalidOperator(address operator);
}

/**
 * @dev Standard ERC-1155 Errors
 * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC-1155 tokens.
 */
interface IERC1155Errors {
    /**
     * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     * @param balance Current balance for the interacting account.
     * @param needed Minimum amount required to perform a transfer.
     * @param tokenId Identifier number of a token.
     */
    error ERC1155InsufficientBalance(address sender, uint256 balance, uint256 needed, uint256 tokenId);

    /**
     * @dev Indicates a failure with the token `sender`. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     */
    error ERC1155InvalidSender(address sender);

    /**
     * @dev Indicates a failure with the token `receiver`. Used in transfers.
     * @param receiver Address to which tokens are being transferred.
     */
    error ERC1155InvalidReceiver(address receiver);

    /**
     * @dev Indicates a failure with the `operator`’s approval. Used in transfers.
     * @param operator Address that may be allowed to operate on tokens without being their owner.
     * @param owner Address of the current owner of a token.
     */
    error ERC1155MissingApprovalForAll(address operator, address owner);

    /**
     * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
     * @param approver Address initiating an approval operation.
     */
    error ERC1155InvalidApprover(address approver);

    /**
     * @dev Indicates a failure with the `operator` to be approved. Used in approvals.
     * @param operator Address that may be allowed to operate on tokens without being their owner.
     */
    error ERC1155InvalidOperator(address operator);

    /**
     * @dev Indicates an array length mismatch between ids and values in a safeBatchTransferFrom operation.
     * Used in batch transfers.
     * @param idsLength Length of the array of token identifiers
     * @param valuesLength Length of the array of token amounts
     */
    error ERC1155InvalidArrayLength(uint256 idsLength, uint256 valuesLength);
}

File 17 of 36 : IERC1363.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (interfaces/IERC1363.sol)

pragma solidity ^0.8.20;

import {IERC20} from "./IERC20.sol";
import {IERC165} from "./IERC165.sol";

/**
 * @title IERC1363
 * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].
 *
 * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract
 * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.
 */
interface IERC1363 is IERC20, IERC165 {
    /*
     * Note: the ERC-165 identifier for this interface is 0xb0202a11.
     * 0xb0202a11 ===
     *   bytes4(keccak256('transferAndCall(address,uint256)')) ^
     *   bytes4(keccak256('transferAndCall(address,uint256,bytes)')) ^
     *   bytes4(keccak256('transferFromAndCall(address,address,uint256)')) ^
     *   bytes4(keccak256('transferFromAndCall(address,address,uint256,bytes)')) ^
     *   bytes4(keccak256('approveAndCall(address,uint256)')) ^
     *   bytes4(keccak256('approveAndCall(address,uint256,bytes)'))
     */

    /**
     * @dev Moves a `value` amount of tokens from the caller's account to `to`
     * and then calls {IERC1363Receiver-onTransferReceived} on `to`.
     * @param to The address which you want to transfer to.
     * @param value The amount of tokens to be transferred.
     * @return A boolean value indicating whether the operation succeeded unless throwing.
     */
    function transferAndCall(address to, uint256 value) external returns (bool);

    /**
     * @dev Moves a `value` amount of tokens from the caller's account to `to`
     * and then calls {IERC1363Receiver-onTransferReceived} on `to`.
     * @param to The address which you want to transfer to.
     * @param value The amount of tokens to be transferred.
     * @param data Additional data with no specified format, sent in call to `to`.
     * @return A boolean value indicating whether the operation succeeded unless throwing.
     */
    function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);

    /**
     * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism
     * and then calls {IERC1363Receiver-onTransferReceived} on `to`.
     * @param from The address which you want to send tokens from.
     * @param to The address which you want to transfer to.
     * @param value The amount of tokens to be transferred.
     * @return A boolean value indicating whether the operation succeeded unless throwing.
     */
    function transferFromAndCall(address from, address to, uint256 value) external returns (bool);

    /**
     * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism
     * and then calls {IERC1363Receiver-onTransferReceived} on `to`.
     * @param from The address which you want to send tokens from.
     * @param to The address which you want to transfer to.
     * @param value The amount of tokens to be transferred.
     * @param data Additional data with no specified format, sent in call to `to`.
     * @return A boolean value indicating whether the operation succeeded unless throwing.
     */
    function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);

    /**
     * @dev Sets a `value` amount of tokens as the allowance of `spender` over the
     * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.
     * @param spender The address which will spend the funds.
     * @param value The amount of tokens to be spent.
     * @return A boolean value indicating whether the operation succeeded unless throwing.
     */
    function approveAndCall(address spender, uint256 value) external returns (bool);

    /**
     * @dev Sets a `value` amount of tokens as the allowance of `spender` over the
     * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.
     * @param spender The address which will spend the funds.
     * @param value The amount of tokens to be spent.
     * @param data Additional data with no specified format, sent in call to `spender`.
     * @return A boolean value indicating whether the operation succeeded unless throwing.
     */
    function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);
}

File 18 of 36 : IUniswapV2Router01.sol
pragma solidity >=0.6.2;

interface IUniswapV2Router01 {
    function factory() external pure returns (address);
    function WETH() external pure returns (address);

    function addLiquidity(
        address tokenA,
        address tokenB,
        uint amountADesired,
        uint amountBDesired,
        uint amountAMin,
        uint amountBMin,
        address to,
        uint deadline
    ) external returns (uint amountA, uint amountB, uint liquidity);
    function addLiquidityETH(
        address token,
        uint amountTokenDesired,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    ) external payable returns (uint amountToken, uint amountETH, uint liquidity);
    function removeLiquidity(
        address tokenA,
        address tokenB,
        uint liquidity,
        uint amountAMin,
        uint amountBMin,
        address to,
        uint deadline
    ) external returns (uint amountA, uint amountB);
    function removeLiquidityETH(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    ) external returns (uint amountToken, uint amountETH);
    function removeLiquidityWithPermit(
        address tokenA,
        address tokenB,
        uint liquidity,
        uint amountAMin,
        uint amountBMin,
        address to,
        uint deadline,
        bool approveMax, uint8 v, bytes32 r, bytes32 s
    ) external returns (uint amountA, uint amountB);
    function removeLiquidityETHWithPermit(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline,
        bool approveMax, uint8 v, bytes32 r, bytes32 s
    ) external returns (uint amountToken, uint amountETH);
    function swapExactTokensForTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external returns (uint[] memory amounts);
    function swapTokensForExactTokens(
        uint amountOut,
        uint amountInMax,
        address[] calldata path,
        address to,
        uint deadline
    ) external returns (uint[] memory amounts);
    function swapExactETHForTokens(uint amountOutMin, address[] calldata path, address to, uint deadline)
        external
        payable
        returns (uint[] memory amounts);
    function swapTokensForExactETH(uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline)
        external
        returns (uint[] memory amounts);
    function swapExactTokensForETH(uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline)
        external
        returns (uint[] memory amounts);
    function swapETHForExactTokens(uint amountOut, address[] calldata path, address to, uint deadline)
        external
        payable
        returns (uint[] memory amounts);

    function quote(uint amountA, uint reserveA, uint reserveB) external pure returns (uint amountB);
    function getAmountOut(uint amountIn, uint reserveIn, uint reserveOut) external pure returns (uint amountOut);
    function getAmountIn(uint amountOut, uint reserveIn, uint reserveOut) external pure returns (uint amountIn);
    function getAmountsOut(uint amountIn, address[] calldata path) external view returns (uint[] memory amounts);
    function getAmountsIn(uint amountOut, address[] calldata path) external view returns (uint[] memory amounts);
}

File 19 of 36 : 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);
}

File 20 of 36 : 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 21 of 36 : 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 22 of 36 : 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 23 of 36 : 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 24 of 36 : 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 25 of 36 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/IERC721Metadata.sol)

pragma solidity ^0.8.20;

import {IERC721Metadata} from "../token/ERC721/extensions/IERC721Metadata.sol";

File 26 of 36 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/IERC721Enumerable.sol)

pragma solidity ^0.8.20;

import {IERC721Enumerable} from "../token/ERC721/extensions/IERC721Enumerable.sol";

File 27 of 36 : IPoolInitializer.sol
// SPDX-License-Identifier: GPL-2.0-or-later
pragma solidity >=0.7.5;
pragma abicoder v2;

/// @title Creates and initializes V3 Pools
/// @notice Provides a method for creating and initializing a pool, if necessary, for bundling with other methods that
/// require the pool to exist.
interface IPoolInitializer {
    /// @notice Creates a new pool if it does not exist, then initializes if not initialized
    /// @dev This method can be bundled with others via IMulticall for the first action (e.g. mint) performed against a pool
    /// @param token0 The contract address of token0 of the pool
    /// @param token1 The contract address of token1 of the pool
    /// @param 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);
}

File 28 of 36 : IERC721Permit.sol
// SPDX-License-Identifier: GPL-2.0-or-later
pragma solidity >=0.7.5;

import '@openzeppelin/contracts/token/ERC721/IERC721.sol';

/// @title ERC721 with permit
/// @notice Extension to ERC721 that includes a permit function for signature based approvals
interface IERC721Permit is IERC721 {
    /// @notice The permit typehash used in the permit signature
    /// @return The typehash for the permit
    function PERMIT_TYPEHASH() external pure returns (bytes32);

    /// @notice The domain separator used in the permit signature
    /// @return The domain seperator used in encoding of permit signature
    function DOMAIN_SEPARATOR() external view returns (bytes32);

    /// @notice Approve of a specific token ID for spending by spender via signature
    /// @param spender The account that is being approved
    /// @param tokenId The ID of the token that is being approved for spending
    /// @param deadline The deadline timestamp by which the call must be mined for the approve to work
    /// @param v Must produce valid secp256k1 signature from the holder along with `r` and `s`
    /// @param r Must produce valid secp256k1 signature from the holder along with `v` and `s`
    /// @param s Must produce valid secp256k1 signature from the holder along with `r` and `v`
    function permit(
        address spender,
        uint256 tokenId,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external payable;
}

File 29 of 36 : IPeripheryPayments.sol
// SPDX-License-Identifier: GPL-2.0-or-later
pragma solidity >=0.7.5;

/// @title Periphery Payments
/// @notice Functions to ease deposits and withdrawals of ETH
interface IPeripheryPayments {
    /// @notice Unwraps the contract's WETH9 balance and sends it to recipient as ETH.
    /// @dev The amountMinimum parameter prevents malicious contracts from stealing WETH9 from users.
    /// @param amountMinimum The minimum amount of WETH9 to unwrap
    /// @param recipient The address receiving ETH
    function unwrapWETH9(uint256 amountMinimum, address recipient) external payable;

    /// @notice Refunds any ETH balance held by this contract to the `msg.sender`
    /// @dev Useful for bundling with mint or increase liquidity that uses ether, or exact output swaps
    /// that use ether for the input amount
    function refundETH() external payable;

    /// @notice Transfers the full amount of a token held by this contract to recipient
    /// @dev The amountMinimum parameter prevents malicious contracts from stealing the token from users
    /// @param token The contract address of the token which will be transferred to `recipient`
    /// @param amountMinimum The minimum amount of token required for a transfer
    /// @param recipient The destination address of the token
    function sweepToken(
        address token,
        uint256 amountMinimum,
        address recipient
    ) external payable;
}

File 30 of 36 : IPeripheryImmutableState.sol
// SPDX-License-Identifier: GPL-2.0-or-later
pragma solidity >=0.5.0;

/// @title Immutable state
/// @notice Functions that return immutable state of the router
interface IPeripheryImmutableState {
    /// @return Returns the address of the Uniswap V3 factory
    function factory() external view returns (address);

    /// @return Returns the address of WETH9
    function WETH9() external view returns (address);
}

File 31 of 36 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/IERC20.sol)

pragma solidity ^0.8.20;

import {IERC20} from "../token/ERC20/IERC20.sol";

File 32 of 36 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/IERC165.sol)

pragma solidity ^0.8.20;

import {IERC165} from "../utils/introspection/IERC165.sol";

File 33 of 36 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC721/extensions/IERC721Metadata.sol)

pragma solidity ^0.8.20;

import {IERC721} from "../IERC721.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional metadata extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Metadata is IERC721 {
    /**
     * @dev Returns the token collection name.
     */
    function name() external view returns (string memory);

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

    /**
     * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
     */
    function tokenURI(uint256 tokenId) external view returns (string memory);
}

File 34 of 36 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC721/extensions/IERC721Enumerable.sol)

pragma solidity ^0.8.20;

import {IERC721} from "../IERC721.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Enumerable is IERC721 {
    /**
     * @dev Returns the total amount of tokens stored by the contract.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns a token ID owned by `owner` at a given `index` of its token list.
     * Use along with {balanceOf} to enumerate all of ``owner``'s tokens.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256);

    /**
     * @dev Returns a token ID at a given `index` of all the tokens stored by the contract.
     * Use along with {totalSupply} to enumerate all tokens.
     */
    function tokenByIndex(uint256 index) external view returns (uint256);
}

File 35 of 36 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (token/ERC721/IERC721.sol)

pragma solidity ^0.8.20;

import {IERC165} from "../../utils/introspection/IERC165.sol";

/**
 * @dev Required interface of an ERC-721 compliant contract.
 */
interface IERC721 is IERC165 {
    /**
     * @dev Emitted when `tokenId` token is transferred from `from` to `to`.
     */
    event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
     */
    event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.
     */
    event ApprovalForAll(address indexed owner, address indexed operator, bool approved);

    /**
     * @dev Returns the number of tokens in ``owner``'s account.
     */
    function balanceOf(address owner) external view returns (uint256 balance);

    /**
     * @dev Returns the owner of the `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function ownerOf(uint256 tokenId) external view returns (address owner);

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon
     *   a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(address from, address to, uint256 tokenId, bytes calldata data) external;

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC-721 protocol to prevent tokens from being forever locked.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must have been allowed to move this token by either {approve} or
     *   {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon
     *   a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(address from, address to, uint256 tokenId) external;

    /**
     * @dev Transfers `tokenId` token from `from` to `to`.
     *
     * WARNING: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC-721
     * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must
     * understand this adds an external call which potentially creates a reentrancy vulnerability.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(address from, address to, uint256 tokenId) external;

    /**
     * @dev Gives permission to `to` to transfer `tokenId` token to another account.
     * The approval is cleared when the token is transferred.
     *
     * Only a single account can be approved at a time, so approving the zero address clears previous approvals.
     *
     * Requirements:
     *
     * - The caller must own the token or be an approved operator.
     * - `tokenId` must exist.
     *
     * Emits an {Approval} event.
     */
    function approve(address to, uint256 tokenId) external;

    /**
     * @dev Approve or remove `operator` as an operator for the caller.
     * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
     *
     * Requirements:
     *
     * - The `operator` cannot be the address zero.
     *
     * Emits an {ApprovalForAll} event.
     */
    function setApprovalForAll(address operator, bool approved) external;

    /**
     * @dev Returns the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) external view returns (address operator);

    /**
     * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.
     *
     * See {setApprovalForAll}
     */
    function isApprovedForAll(address owner, address operator) external view returns (bool);
}

File 36 of 36 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (utils/introspection/IERC165.sol)

pragma solidity ^0.8.20;

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

Settings
{
  "remappings": [
    "@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts/",
    "@uniswap/v2-periphery/=lib/v2-periphery/",
    "@uniswap/v2-core/=lib/v2-core/",
    "@uniswap/v3-core/=lib/v3-core/",
    "@uniswap/v3-periphery/=lib/v3-periphery/",
    "erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/",
    "forge-std/=lib/forge-std/src/",
    "halmos-cheatcodes/=lib/openzeppelin-contracts/lib/halmos-cheatcodes/src/",
    "openzeppelin-contracts/=lib/openzeppelin-contracts/",
    "v2-core/=lib/v2-core/contracts/",
    "v2-periphery/=lib/v2-periphery/contracts/",
    "v3-core/=lib/v3-core/",
    "v3-periphery/=lib/v3-periphery/contracts/"
  ],
  "optimizer": {
    "enabled": false,
    "runs": 200
  },
  "metadata": {
    "useLiteralContent": false,
    "bytecodeHash": "ipfs",
    "appendCBOR": true
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "evmVersion": "cancun",
  "viaIR": false,
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"address","name":"_DX","type":"address"},{"internalType":"address","name":"_v2Locker","type":"address"},{"internalType":"address","name":"_v2Router","type":"address"},{"internalType":"address","name":"_v3PositionManager","type":"address"},{"internalType":"address","name":"_owner","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"DFDX__AlreadyInitialized","type":"error"},{"inputs":[],"name":"DFDX__InvalidEthValue","type":"error"},{"inputs":[],"name":"DFDX__WETHTransfer","type":"error"},{"inputs":[],"name":"DFDX__ZeroAddress","type":"error"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"allowance","type":"uint256"},{"internalType":"uint256","name":"needed","type":"uint256"}],"name":"ERC20InsufficientAllowance","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"uint256","name":"balance","type":"uint256"},{"internalType":"uint256","name":"needed","type":"uint256"}],"name":"ERC20InsufficientBalance","type":"error"},{"inputs":[{"internalType":"address","name":"approver","type":"address"}],"name":"ERC20InvalidApprover","type":"error"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"}],"name":"ERC20InvalidReceiver","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"}],"name":"ERC20InvalidSender","type":"error"},{"inputs":[{"internalType":"address","name":"spender","type":"address"}],"name":"ERC20InvalidSpender","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"SafeERC20FailedOperation","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"BPS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DFDX_DX_V2_PAIR","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DFDX_DX_V3_PAIR","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DFDX_WETH_V2_PAIR","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DFDX_WETH_V3_PAIR","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DX","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"INITIAL_LP_DFDX","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"INITIAL_LP_DX","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"INITIAL_LP_WETH","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"LOCK_DURATION","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_TICK","outputs":[{"internalType":"int24","name":"","type":"int24"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MIN_TICK","outputs":[{"internalType":"int24","name":"","type":"int24"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRECISION","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRECISION_SQRT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SLIPPAGE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TOTAL_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"V3_POOL_FEE","outputs":[{"internalType":"uint24","name":"","type":"uint24"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WETH","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"deadline","type":"uint256"}],"name":"initialize","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"initialized","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"uniswapV2Locker","outputs":[{"internalType":"contract IUniswapV2Locker","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"uniswapV2Router","outputs":[{"internalType":"contract IUniswapV2Router02","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"uniswapV3PositionManager","outputs":[{"internalType":"contract INonfungiblePositionManager","name":"","type":"address"}],"stateMutability":"view","type":"function"}]

6101a0604052348015610010575f5ffd5b506040516156c33803806156c3833981810160405281019061003291906110b3565b80878781600390816100449190611398565b5080600490816100549190611398565b5050505f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036100c7575f6040517f1e4fbdf70000000000000000000000000000000000000000000000000000000081526004016100be9190611476565b60405180910390fd5b6100d681610ad460201b60201c565b505f73ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16148061013c57505f73ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16145b8061017257505f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16145b806101a857505f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16145b156101df576040517f7575d09000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6101fb306b02df458b2c635dcf55e00000610b9760201b60201c565b8473ffffffffffffffffffffffffffffffffffffffff1660e08173ffffffffffffffffffffffffffffffffffffffff16815250508373ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff16815250508273ffffffffffffffffffffffffffffffffffffffff1660a08173ffffffffffffffffffffffffffffffffffffffff16815250508173ffffffffffffffffffffffffffffffffffffffff1660c08173ffffffffffffffffffffffffffffffffffffffff16815250508273ffffffffffffffffffffffffffffffffffffffff1663ad5c46486040518163ffffffff1660e01b8152600401602060405180830381865afa158015610314573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610338919061148f565b73ffffffffffffffffffffffffffffffffffffffff166101008173ffffffffffffffffffffffffffffffffffffffff16815250505f60a05173ffffffffffffffffffffffffffffffffffffffff1663c45a01556040518163ffffffff1660e01b8152600401602060405180830381865afa1580156103b8573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103dc919061148f565b90505f60c05173ffffffffffffffffffffffffffffffffffffffff1663c45a01556040518163ffffffff1660e01b8152600401602060405180830381865afa15801561042a573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061044e919061148f565b90508173ffffffffffffffffffffffffffffffffffffffff1663c9c6539630896040518363ffffffff1660e01b815260040161048b9291906114ba565b6020604051808303815f875af11580156104a7573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906104cb919061148f565b73ffffffffffffffffffffffffffffffffffffffff166101608173ffffffffffffffffffffffffffffffffffffffff16815250508173ffffffffffffffffffffffffffffffffffffffff1663c9c6539630610100516040518363ffffffff1660e01b815260040161053d9291906114ba565b6020604051808303815f875af1158015610559573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061057d919061148f565b73ffffffffffffffffffffffffffffffffffffffff166101208173ffffffffffffffffffffffffffffffffffffffff16815250508073ffffffffffffffffffffffffffffffffffffffff1663a167129530896127106040518463ffffffff1660e01b81526004016105f0939291906114fe565b6020604051808303815f875af115801561060c573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610630919061148f565b73ffffffffffffffffffffffffffffffffffffffff166101808173ffffffffffffffffffffffffffffffffffffffff16815250508073ffffffffffffffffffffffffffffffffffffffff1663a167129530610100516127106040518463ffffffff1660e01b81526004016106a6939291906114fe565b6020604051808303815f875af11580156106c2573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906106e6919061148f565b73ffffffffffffffffffffffffffffffffffffffff166101408173ffffffffffffffffffffffffffffffffffffffff16815250505f5f6101805173ffffffffffffffffffffffffffffffffffffffff16630dfe16816040518163ffffffff1660e01b8152600401602060405180830381865afa158015610768573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061078c919061148f565b91506101805173ffffffffffffffffffffffffffffffffffffffff1663d21220a76040518163ffffffff1660e01b8152600401602060405180830381865afa1580156107da573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906107fe919061148f565b90505f3073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16146108605761085b6b015b6a759f4835dc240000006a084595161401484a000000610c1c60201b60201c565b610888565b6108876a084595161401484a0000006b015b6a759f4835dc24000000610c1c60201b60201c565b5b90506101805173ffffffffffffffffffffffffffffffffffffffff1663f637731d826040518263ffffffff1660e01b81526004016108c69190611542565b5f604051808303815f87803b1580156108dd575f5ffd5b505af11580156108ef573d5f5f3e3d5ffd5b505050506101405173ffffffffffffffffffffffffffffffffffffffff16630dfe16816040518163ffffffff1660e01b8152600401602060405180830381865afa15801561093f573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610963919061148f565b92506101405173ffffffffffffffffffffffffffffffffffffffff1663d21220a76040518163ffffffff1660e01b8152600401602060405180830381865afa1580156109b1573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906109d5919061148f565b91505f3073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614610a3357610a2e670522810a26e500006a084595161401484a000000610c1c60201b60201c565b610a57565b610a566a084595161401484a000000670522810a26e50000610c1c60201b60201c565b5b90506101405173ffffffffffffffffffffffffffffffffffffffff1663f637731d826040518263ffffffff1660e01b8152600401610a959190611542565b5f604051808303815f87803b158015610aac575f5ffd5b505af1158015610abe573d5f5f3e3d5ffd5b50505050505050505050505050505050506116b6565b5f60055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508160055f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610c07575f6040517fec442f05000000000000000000000000000000000000000000000000000000008152600401610bfe9190611476565b60405180910390fd5b610c185f8383610c7c60201b60201c565b5050565b5f5f69d3c21bcecceda10000006060610c648673af298d050e4395d69670b12b7f4100000000000087610c4f9190611588565b610c5991906115f6565b610e9560201b60201c565b901b610c7091906115f6565b90508091505092915050565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610ccc578060025f828254610cc09190611626565b92505081905550610d9a565b5f5f5f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905081811015610d55578381836040517fe450d38c000000000000000000000000000000000000000000000000000000008152600401610d4c93929190611668565b60405180910390fd5b8181035f5f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2081905550505b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610de1578060025f8282540392505081905550610e2b565b805f5f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f82825401925050819055505b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef83604051610e88919061169d565b60405180910390a3505050565b5f6003821115610efa578190505f6001600284610eb291906115f6565b610ebc9190611626565b90505b81811015610ef4578091506002818285610ed991906115f6565b610ee39190611626565b610eed91906115f6565b9050610ebf565b50610f07565b5f8214610f0657600190505b5b919050565b5f604051905090565b5f5ffd5b5f5ffd5b5f5ffd5b5f5ffd5b5f601f19601f8301169050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b610f6b82610f25565b810181811067ffffffffffffffff82111715610f8a57610f89610f35565b5b80604052505050565b5f610f9c610f0c565b9050610fa88282610f62565b919050565b5f67ffffffffffffffff821115610fc757610fc6610f35565b5b610fd082610f25565b9050602081019050919050565b8281835e5f83830152505050565b5f610ffd610ff884610fad565b610f93565b90508281526020810184848401111561101957611018610f21565b5b611024848285610fdd565b509392505050565b5f82601f8301126110405761103f610f1d565b5b8151611050848260208601610feb565b91505092915050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f61108282611059565b9050919050565b61109281611078565b811461109c575f5ffd5b50565b5f815190506110ad81611089565b92915050565b5f5f5f5f5f5f5f60e0888a0312156110ce576110cd610f15565b5b5f88015167ffffffffffffffff8111156110eb576110ea610f19565b5b6110f78a828b0161102c565b975050602088015167ffffffffffffffff81111561111857611117610f19565b5b6111248a828b0161102c565b96505060406111358a828b0161109f565b95505060606111468a828b0161109f565b94505060806111578a828b0161109f565b93505060a06111688a828b0161109f565b92505060c06111798a828b0161109f565b91505092959891949750929550565b5f81519050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f60028204905060018216806111d657607f821691505b6020821081036111e9576111e8611192565b5b50919050565b5f819050815f5260205f209050919050565b5f6020601f8301049050919050565b5f82821b905092915050565b5f6008830261124b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82611210565b6112558683611210565b95508019841693508086168417925050509392505050565b5f819050919050565b5f819050919050565b5f61129961129461128f8461126d565b611276565b61126d565b9050919050565b5f819050919050565b6112b28361127f565b6112c66112be826112a0565b84845461121c565b825550505050565b5f5f905090565b6112dd6112ce565b6112e88184846112a9565b505050565b5b8181101561130b576113005f826112d5565b6001810190506112ee565b5050565b601f82111561135057611321816111ef565b61132a84611201565b81016020851015611339578190505b61134d61134585611201565b8301826112ed565b50505b505050565b5f82821c905092915050565b5f6113705f1984600802611355565b1980831691505092915050565b5f6113888383611361565b9150826002028217905092915050565b6113a182611188565b67ffffffffffffffff8111156113ba576113b9610f35565b5b6113c482546111bf565b6113cf82828561130f565b5f60209050601f831160018114611400575f84156113ee578287015190505b6113f8858261137d565b86555061145f565b601f19841661140e866111ef565b5f5b8281101561143557848901518255600182019150602085019450602081019050611410565b86831015611452578489015161144e601f891682611361565b8355505b6001600288020188555050505b505050505050565b61147081611078565b82525050565b5f6020820190506114895f830184611467565b92915050565b5f602082840312156114a4576114a3610f15565b5b5f6114b18482850161109f565b91505092915050565b5f6040820190506114cd5f830185611467565b6114da6020830184611467565b9392505050565b5f62ffffff82169050919050565b6114f8816114e1565b82525050565b5f6060820190506115115f830186611467565b61151e6020830185611467565b61152b60408301846114ef565b949350505050565b61153c81611059565b82525050565b5f6020820190506115555f830184611533565b92915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f6115928261126d565b915061159d8361126d565b92508282026115ab8161126d565b915082820484148315176115c2576115c161155b565b5b5092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b5f6116008261126d565b915061160b8361126d565b92508261161b5761161a6115c9565b5b828204905092915050565b5f6116308261126d565b915061163b8361126d565b92508282019050808211156116535761165261155b565b5b92915050565b6116628161126d565b82525050565b5f60608201905061167b5f830186611467565b6116886020830185611659565b6116956040830184611659565b949350505050565b5f6020820190506116b05f830184611659565b92915050565b60805160a05160c05160e0516101005161012051610140516101605161018051613e7b6118485f395f818161096801528181611d9e01528181611e2d0152611f6401525f8181610bc6015281816111e20152818161126b01528181611673015281816116d001528181611803015261182401525f8181610a34015281816121eb0152818161227a01526123a901525f8181610ca001528181611450015281816114d90152818161191f0152818161197c01528181611aaf0152611ad001525f8181610b7e01528181610e9f0152818161109e01528181611414015281816115480152611c9301525f8181610bfa01528181610f8f01528181610fd6015281816111a6015281816112de0152611bcb01525f818161093901528181611c0701528181611ccf01528181611d5b01528181611ff3015261243801525f81816108d001528181611012015281816110da01528181611166015281816112a1015261150b01525f8181610ba201528181610db3015281816116af015281816117c60152818161195b0152611a720152613e7b5ff3fe608060405260043610610203575f3560e01c8063715018a611610117578063ad5c46481161009f578063cfb079d31161006e578063cfb079d314610727578063dd62ed3e14610751578063f2fccd7e1461078d578063f2fde38b146107b7578063fe4b84df146107df57610203565b8063ad5c46481461067f578063bb37cba1146106a9578063be3b42a7146106d3578063c31e818c146106fd57610203565b8063902d55a5116100e6578063902d55a51461059b57806395d89b41146105c5578063a1634b14146105ef578063a9059cbb14610619578063aaf5eb681461065557610203565b8063715018a6146105075780637ad7489a1461051d578063834b37fe146105475780638da5cb5b1461057157610203565b8063313ce5671161019a57806343526fd01161016957806343526fd014610423578063485d38341461044d5780634dcb5166146104775780636882a888146104a157806370a08231146104cb57610203565b8063313ce5671461037b578063342a30c3146103a557806336b4134a146103cf5780634060733f146103f957610203565b80631694505e116101d65780631694505e146102c157806318160ddd146102eb57806323b872dd14610315578063249d39e91461035157610203565b806306fdde0314610207578063095ea7b3146102315780630dbb90f01461026d578063158ef93e14610297575b5f5ffd5b348015610212575f5ffd5b5061021b6107fb565b6040516102289190613142565b60405180910390f35b34801561023c575f5ffd5b50610257600480360381019061025291906131fc565b61088b565b6040516102649190613254565b60405180910390f35b348015610278575f5ffd5b506102816108ad565b60405161028e919061327c565b60405180910390f35b3480156102a2575f5ffd5b506102ab6108bb565b6040516102b89190613254565b60405180910390f35b3480156102cc575f5ffd5b506102d56108ce565b6040516102e291906132f0565b60405180910390f35b3480156102f6575f5ffd5b506102ff6108f2565b60405161030c919061327c565b60405180910390f35b348015610320575f5ffd5b5061033b60048036038101906103369190613309565b6108fb565b6040516103489190613254565b60405180910390f35b34801561035c575f5ffd5b50610365610929565b604051610372919061327c565b60405180910390f35b348015610386575f5ffd5b5061038f61092f565b60405161039c9190613374565b60405180910390f35b3480156103b0575f5ffd5b506103b9610937565b6040516103c691906133ad565b60405180910390f35b3480156103da575f5ffd5b506103e361095b565b6040516103f0919061327c565b60405180910390f35b348015610404575f5ffd5b5061040d610960565b60405161041a91906133e3565b60405180910390f35b34801561042e575f5ffd5b50610437610966565b604051610444919061340b565b60405180910390f35b348015610458575f5ffd5b5061046161098a565b60405161046e919061327c565b60405180910390f35b348015610482575f5ffd5b5061048b610992565b604051610498919061327c565b60405180910390f35b3480156104ac575f5ffd5b506104b561099e565b6040516104c2919061343f565b60405180910390f35b3480156104d6575f5ffd5b506104f160048036038101906104ec9190613458565b6109cb565b6040516104fe919061327c565b60405180910390f35b348015610512575f5ffd5b5061051b610a10565b005b348015610528575f5ffd5b50610531610a23565b60405161053e919061327c565b60405180910390f35b348015610552575f5ffd5b5061055b610a32565b604051610568919061340b565b60405180910390f35b34801561057c575f5ffd5b50610585610a56565b604051610592919061340b565b60405180910390f35b3480156105a6575f5ffd5b506105af610a7e565b6040516105bc919061327c565b60405180910390f35b3480156105d0575f5ffd5b506105d9610a8e565b6040516105e69190613142565b60405180910390f35b3480156105fa575f5ffd5b50610603610b1e565b604051610610919061343f565b60405180910390f35b348015610624575f5ffd5b5061063f600480360381019061063a91906131fc565b610b42565b60405161064c9190613254565b60405180910390f35b348015610660575f5ffd5b50610669610b64565b604051610676919061327c565b60405180910390f35b34801561068a575f5ffd5b50610693610b7c565b6040516106a0919061340b565b60405180910390f35b3480156106b4575f5ffd5b506106bd610ba0565b6040516106ca91906134a3565b60405180910390f35b3480156106de575f5ffd5b506106e7610bc4565b6040516106f4919061340b565b60405180910390f35b348015610708575f5ffd5b50610711610be8565b60405161071e919061327c565b60405180910390f35b348015610732575f5ffd5b5061073b610bf8565b604051610748919061340b565b60405180910390f35b34801561075c575f5ffd5b50610777600480360381019061077291906134bc565b610c1c565b604051610784919061327c565b60405180910390f35b348015610798575f5ffd5b506107a1610c9e565b6040516107ae919061340b565b60405180910390f35b3480156107c2575f5ffd5b506107dd60048036038101906107d89190613458565b610cc2565b005b6107f960048036038101906107f491906134fa565b610d46565b005b60606003805461080a90613552565b80601f016020809104026020016040519081016040528092919081815260200182805461083690613552565b80156108815780601f1061085857610100808354040283529160200191610881565b820191905f5260205f20905b81548152906001019060200180831161086457829003601f168201915b5050505050905090565b5f5f61089561264d565b90506108a2818585612654565b600191505092915050565b69d3c21bcecceda100000081565b600560149054906101000a900460ff1681565b7f000000000000000000000000000000000000000000000000000000000000000081565b5f600254905090565b5f5f61090561264d565b9050610912858285612666565b61091d8585856126f9565b60019150509392505050565b61271081565b5f6012905090565b7f000000000000000000000000000000000000000000000000000000000000000081565b606481565b61271081565b7f000000000000000000000000000000000000000000000000000000000000000081565b6301e1338081565b670522810a26e5000081565b7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff276186109c8906135af565b81565b5f5f5f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20549050919050565b610a186127e9565b610a215f612870565b565b6a084595161401484a00000081565b7f000000000000000000000000000000000000000000000000000000000000000081565b5f60055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6b02df458b2c635dcf55e0000081565b606060048054610a9d90613552565b80601f0160208091040260200160405190810160405280929190818152602001828054610ac990613552565b8015610b145780601f10610aeb57610100808354040283529160200191610b14565b820191905f5260205f20905b815481529060010190602001808311610af757829003601f168201915b5050505050905090565b7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff2761881565b5f5f610b4c61264d565b9050610b598185856126f9565b600191505092915050565b73af298d050e4395d69670b12b7f4100000000000081565b7f000000000000000000000000000000000000000000000000000000000000000081565b7f000000000000000000000000000000000000000000000000000000000000000081565b7f000000000000000000000000000000000000000000000000000000000000000081565b6b015b6a759f4835dc2400000081565b7f000000000000000000000000000000000000000000000000000000000000000081565b5f60015f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905092915050565b7f000000000000000000000000000000000000000000000000000000000000000081565b610cca6127e9565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610d3a575f6040517f1e4fbdf7000000000000000000000000000000000000000000000000000000008152600401610d31919061340b565b60405180910390fd5b610d4381612870565b50565b610d4e6127e9565b600560149054906101000a900460ff1615610d95576040517f620016bb00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600560146101000a81548160ff0219169083151502179055505f7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166390e1a0036040518163ffffffff1660e01b815260040161012060405180830381865afa158015610e1b573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610e3f9190613776565b5f01519050670522810a26e5000081610e5891906137a2565b6002610e6491906137d5565b3414610e9c576040517f27151d3300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16670522810a26e500006002610ee991906137d5565b604051610ef590613843565b5f6040518083038185875af1925050503d805f8114610f2f576040519150601f19603f3d011682016040523d82523d5f602084013e610f34565b606091505b5050905080610f6f576040517fb1ff844d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610fd433306b015b6a759f4835dc240000006002610f8d91906137d5565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16612933909392919063ffffffff16565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663095ea7b37f00000000000000000000000000000000000000000000000000000000000000006b015b6a759f4835dc240000006040518363ffffffff1660e01b815260040161105b929190613857565b6020604051808303815f875af1158015611077573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061109b91906138a8565b507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663095ea7b37f0000000000000000000000000000000000000000000000000000000000000000670522810a26e500006040518363ffffffff1660e01b815260040161111f929190613857565b6020604051808303815f875af115801561113b573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061115f91906138a8565b506111a2307f00000000000000000000000000000000000000000000000000000000000000006a084595161401484a000000600261119d91906137d5565b612654565b5f5f7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166370a082317f00000000000000000000000000000000000000000000000000000000000000006040518263ffffffff1660e01b815260040161121d919061340b565b602060405180830381865afa158015611238573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061125c91906138d3565b90505f81111561129f5761129c7f00000000000000000000000000000000000000000000000000000000000000006b015b6a759f4835dc240000006129b5565b91505b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663e8e33700307f0000000000000000000000000000000000000000000000000000000000000000856a084595161401484a00000061131491906138fe565b856b015b6a759f4835dc2400000061132c91906138fe565b612710606461271061133e91906138fe565b896a084595161401484a00000061135591906138fe565b61135f91906137d5565b611369919061395e565b612710606461271061137b91906138fe565b896b015b6a759f4835dc2400000061139391906138fe565b61139d91906137d5565b6113a7919061395e565b308d6040518963ffffffff1660e01b81526004016113cc98979695949392919061398e565b6060604051808303815f875af11580156113e8573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061140c9190613a0a565b5050505f91507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166370a082317f00000000000000000000000000000000000000000000000000000000000000006040518263ffffffff1660e01b815260040161148b919061340b565b602060405180830381865afa1580156114a6573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906114ca91906138d3565b90505f811115611509576115067f0000000000000000000000000000000000000000000000000000000000000000670522810a26e500006129b5565b91505b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663e8e33700307f0000000000000000000000000000000000000000000000000000000000000000856a084595161401484a00000061157e91906138fe565b85670522810a26e5000061159291906138fe565b61271060646127106115a491906138fe565b896a084595161401484a0000006115bb91906138fe565b6115c591906137d5565b6115cf919061395e565b61271060646127106115e191906138fe565b89670522810a26e500006115f591906138fe565b6115ff91906137d5565b611609919061395e565b308d6040518963ffffffff1660e01b815260040161162e98979695949392919061398e565b6060604051808303815f875af115801561164a573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061166e9190613a0a565b5050507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663095ea7b37f00000000000000000000000000000000000000000000000000000000000000007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401611727919061340b565b602060405180830381865afa158015611742573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061176691906138d3565b6040518363ffffffff1660e01b8152600401611783929190613857565b6020604051808303815f875af115801561179f573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906117c391906138a8565b507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16638af416f6857f00000000000000000000000000000000000000000000000000000000000000007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b815260040161187b919061340b565b602060405180830381865afa158015611896573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906118ba91906138d3565b6301e13380426118ca91906137a2565b5f6001336040518863ffffffff1660e01b81526004016118ef96959493929190613a7a565b5f604051808303818588803b158015611906575f5ffd5b505af1158015611918573d5f5f3e3d5ffd5b50505050507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663095ea7b37f00000000000000000000000000000000000000000000000000000000000000007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016119d3919061340b565b602060405180830381865afa1580156119ee573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611a1291906138d3565b6040518363ffffffff1660e01b8152600401611a2f929190613857565b6020604051808303815f875af1158015611a4b573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611a6f91906138a8565b507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16638af416f6857f00000000000000000000000000000000000000000000000000000000000000007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401611b27919061340b565b602060405180830381865afa158015611b42573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611b6691906138d3565b6301e1338042611b7691906137a2565b5f6001336040518863ffffffff1660e01b8152600401611b9b96959493929190613a7a565b5f604051808303818588803b158015611bb2575f5ffd5b505af1158015611bc4573d5f5f3e3d5ffd5b50505050507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663095ea7b37f00000000000000000000000000000000000000000000000000000000000000006b015b6a759f4835dc240000006040518363ffffffff1660e01b8152600401611c50929190613857565b6020604051808303815f875af1158015611c6c573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611c9091906138a8565b507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663095ea7b37f0000000000000000000000000000000000000000000000000000000000000000670522810a26e500006040518363ffffffff1660e01b8152600401611d14929190613857565b6020604051808303815f875af1158015611d30573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611d5491906138a8565b50611d97307f00000000000000000000000000000000000000000000000000000000000000006a084595161401484a0000006002611d9291906137d5565b612654565b5f5f5f5f5f7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16630dfe16816040518163ffffffff1660e01b8152600401602060405180830381865afa158015611e05573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611e299190613ad9565b94507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663d21220a76040518163ffffffff1660e01b8152600401602060405180830381865afa158015611e94573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611eb89190613ad9565b93503073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614611eff576b015b6a759f4835dc24000000611f0c565b6a084595161401484a0000005b92503073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614611f52576a084595161401484a000000611f60565b6b015b6a759f4835dc240000005b91507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663d0c93a7c6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611fcb573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611fef9190613b2e565b90507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663883164566040518061016001604052808873ffffffffffffffffffffffffffffffffffffffff1681526020018773ffffffffffffffffffffffffffffffffffffffff16815260200161271062ffffff16815260200184857ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff276186120ab9190613b59565b6120b59190613bc1565b60020b815260200184857ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff276186120e9906135af565b6120f39190613b59565b6120fd9190613bc1565b60020b8152602001868152602001858152602001612710606461271061212391906138fe565b8861212e91906137d5565b612138919061395e565b8152602001612710606461271061214f91906138fe565b8761215a91906137d5565b612164919061395e565b81526020013373ffffffffffffffffffffffffffffffffffffffff1681526020018d8152506040518263ffffffff1660e01b81526004016121a59190613d18565b6080604051808303815f875af11580156121c1573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906121e59190613d77565b505050507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16630dfe16816040518163ffffffff1660e01b8152600401602060405180830381865afa158015612252573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906122769190613ad9565b94507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663d21220a76040518163ffffffff1660e01b8152600401602060405180830381865afa1580156122e1573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906123059190613ad9565b93503073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161461234857670522810a26e50000612355565b6a084595161401484a0000005b92503073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161461239b576a084595161401484a0000006123a5565b670522810a26e500005b91507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663d0c93a7c6040518163ffffffff1660e01b8152600401602060405180830381865afa158015612410573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906124349190613b2e565b90507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663883164566040518061016001604052808873ffffffffffffffffffffffffffffffffffffffff1681526020018773ffffffffffffffffffffffffffffffffffffffff16815260200161271062ffffff16815260200184857ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff276186124f09190613b59565b6124fa9190613bc1565b60020b815260200184857ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff2761861252e906135af565b6125389190613b59565b6125429190613bc1565b60020b8152602001868152602001858152602001612710606461271061256891906138fe565b8861257391906137d5565b61257d919061395e565b8152602001612710606461271061259491906138fe565b8761259f91906137d5565b6125a9919061395e565b81526020013373ffffffffffffffffffffffffffffffffffffffff1681526020018d8152506040518263ffffffff1660e01b81526004016125ea9190613d18565b6080604051808303815f875af1158015612606573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061262a9190613d77565b50505050612641303361263c306109cb565b6126f9565b50505050505050505050565b5f33905090565b6126618383836001612c4f565b505050565b5f6126718484610c1c565b90507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8110156126f357818110156126e4578281836040517ffb8f41b20000000000000000000000000000000000000000000000000000000081526004016126db93929190613ddb565b60405180910390fd5b6126f284848484035f612c4f565b5b50505050565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603612769575f6040517f96c6fd1e000000000000000000000000000000000000000000000000000000008152600401612760919061340b565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036127d9575f6040517fec442f050000000000000000000000000000000000000000000000000000000081526004016127d0919061340b565b60405180910390fd5b6127e4838383612e1e565b505050565b6127f161264d565b73ffffffffffffffffffffffffffffffffffffffff1661280f610a56565b73ffffffffffffffffffffffffffffffffffffffff161461286e5761283261264d565b6040517f118cdaa7000000000000000000000000000000000000000000000000000000008152600401612865919061340b565b60405180910390fd5b565b5f60055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508160055f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6129af848573ffffffffffffffffffffffffffffffffffffffff166323b872dd86868660405160240161296893929190613e10565b604051602081830303815290604052915060e01b6020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050613037565b50505050565b5f5f8390505f3073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16630dfe16816040518163ffffffff1660e01b8152600401602060405180830381865afa158015612a1b573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612a3f9190613ad9565b73ffffffffffffffffffffffffffffffffffffffff1614612acc578173ffffffffffffffffffffffffffffffffffffffff16630dfe16816040518163ffffffff1660e01b8152600401602060405180830381865afa158015612aa3573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612ac79190613ad9565b612b3a565b8173ffffffffffffffffffffffffffffffffffffffff1663d21220a76040518163ffffffff1660e01b8152600401602060405180830381865afa158015612b15573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612b399190613ad9565b5b90505f8173ffffffffffffffffffffffffffffffffffffffff166370a08231876040518263ffffffff1660e01b8152600401612b76919061340b565b602060405180830381865afa158015612b91573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612bb591906138d3565b90505f856a084595161401484a00000083612bd091906137d5565b612bda919061395e565b9050612be73088836126f9565b8373ffffffffffffffffffffffffffffffffffffffff1663fff6cae96040518163ffffffff1660e01b81526004015f604051808303815f87803b158015612c2c575f5ffd5b505af1158015612c3e573d5f5f3e3d5ffd5b505050508094505050505092915050565b5f73ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603612cbf575f6040517fe602df05000000000000000000000000000000000000000000000000000000008152600401612cb6919061340b565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603612d2f575f6040517f94280d62000000000000000000000000000000000000000000000000000000008152600401612d26919061340b565b60405180910390fd5b8160015f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055508015612e18578273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92584604051612e0f919061327c565b60405180910390a35b50505050565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603612e6e578060025f828254612e6291906137a2565b92505081905550612f3c565b5f5f5f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905081811015612ef7578381836040517fe450d38c000000000000000000000000000000000000000000000000000000008152600401612eee93929190613ddb565b60405180910390fd5b8181035f5f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2081905550505b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612f83578060025f8282540392505081905550612fcd565b805f5f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f82825401925050819055505b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360405161302a919061327c565b60405180910390a3505050565b5f5f60205f8451602086015f885af180613056576040513d5f823e3d81fd5b3d92505f519150505f821461306f57600181141561308a565b5f8473ffffffffffffffffffffffffffffffffffffffff163b145b156130cc57836040517f5274afe70000000000000000000000000000000000000000000000000000000081526004016130c3919061340b565b60405180910390fd5b50505050565b5f81519050919050565b5f82825260208201905092915050565b8281835e5f83830152505050565b5f601f19601f8301169050919050565b5f613114826130d2565b61311e81856130dc565b935061312e8185602086016130ec565b613137816130fa565b840191505092915050565b5f6020820190508181035f83015261315a818461310a565b905092915050565b5f604051905090565b5f5ffd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6131988261316f565b9050919050565b6131a88161318e565b81146131b2575f5ffd5b50565b5f813590506131c38161319f565b92915050565b5f819050919050565b6131db816131c9565b81146131e5575f5ffd5b50565b5f813590506131f6816131d2565b92915050565b5f5f604083850312156132125761321161316b565b5b5f61321f858286016131b5565b9250506020613230858286016131e8565b9150509250929050565b5f8115159050919050565b61324e8161323a565b82525050565b5f6020820190506132675f830184613245565b92915050565b613276816131c9565b82525050565b5f60208201905061328f5f83018461326d565b92915050565b5f819050919050565b5f6132b86132b36132ae8461316f565b613295565b61316f565b9050919050565b5f6132c98261329e565b9050919050565b5f6132da826132bf565b9050919050565b6132ea816132d0565b82525050565b5f6020820190506133035f8301846132e1565b92915050565b5f5f5f606084860312156133205761331f61316b565b5b5f61332d868287016131b5565b935050602061333e868287016131b5565b925050604061334f868287016131e8565b9150509250925092565b5f60ff82169050919050565b61336e81613359565b82525050565b5f6020820190506133875f830184613365565b92915050565b5f613397826132bf565b9050919050565b6133a78161338d565b82525050565b5f6020820190506133c05f83018461339e565b92915050565b5f62ffffff82169050919050565b6133dd816133c6565b82525050565b5f6020820190506133f65f8301846133d4565b92915050565b6134058161318e565b82525050565b5f60208201905061341e5f8301846133fc565b92915050565b5f8160020b9050919050565b61343981613424565b82525050565b5f6020820190506134525f830184613430565b92915050565b5f6020828403121561346d5761346c61316b565b5b5f61347a848285016131b5565b91505092915050565b5f61348d826132bf565b9050919050565b61349d81613483565b82525050565b5f6020820190506134b65f830184613494565b92915050565b5f5f604083850312156134d2576134d161316b565b5b5f6134df858286016131b5565b92505060206134f0858286016131b5565b9150509250929050565b5f6020828403121561350f5761350e61316b565b5b5f61351c848285016131e8565b91505092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f600282049050600182168061356957607f821691505b60208210810361357c5761357b613525565b5b50919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f6135b982613424565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffff80000082036135eb576135ea613582565b5b815f039050919050565b5f5ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b61362f826130fa565b810181811067ffffffffffffffff8211171561364e5761364d6135f9565b5b80604052505050565b5f613660613162565b905061366c8282613626565b919050565b5f8151905061367f816131d2565b92915050565b5f815190506136938161319f565b92915050565b5f61012082840312156136af576136ae6135f5565b5b6136ba610120613657565b90505f6136c984828501613671565b5f8301525060206136dc84828501613685565b60208301525060406136f084828501613671565b604083015250606061370484828501613671565b606083015250608061371884828501613671565b60808301525060a061372c84828501613671565b60a08301525060c061374084828501613685565b60c08301525060e061375484828501613671565b60e08301525061010061376984828501613671565b6101008301525092915050565b5f610120828403121561378c5761378b61316b565b5b5f61379984828501613699565b91505092915050565b5f6137ac826131c9565b91506137b7836131c9565b92508282019050808211156137cf576137ce613582565b5b92915050565b5f6137df826131c9565b91506137ea836131c9565b92508282026137f8816131c9565b9150828204841483151761380f5761380e613582565b5b5092915050565b5f81905092915050565b50565b5f61382e5f83613816565b915061383982613820565b5f82019050919050565b5f61384d82613823565b9150819050919050565b5f60408201905061386a5f8301856133fc565b613877602083018461326d565b9392505050565b6138878161323a565b8114613891575f5ffd5b50565b5f815190506138a28161387e565b92915050565b5f602082840312156138bd576138bc61316b565b5b5f6138ca84828501613894565b91505092915050565b5f602082840312156138e8576138e761316b565b5b5f6138f584828501613671565b91505092915050565b5f613908826131c9565b9150613913836131c9565b925082820390508181111561392b5761392a613582565b5b92915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b5f613968826131c9565b9150613973836131c9565b92508261398357613982613931565b5b828204905092915050565b5f610100820190506139a25f83018b6133fc565b6139af602083018a6133fc565b6139bc604083018961326d565b6139c9606083018861326d565b6139d6608083018761326d565b6139e360a083018661326d565b6139f060c08301856133fc565b6139fd60e083018461326d565b9998505050505050505050565b5f5f5f60608486031215613a2157613a2061316b565b5b5f613a2e86828701613671565b9350506020613a3f86828701613671565b9250506040613a5086828701613671565b9150509250925092565b5f613a648261316f565b9050919050565b613a7481613a5a565b82525050565b5f60c082019050613a8d5f8301896133fc565b613a9a602083018861326d565b613aa7604083018761326d565b613ab46060830186613a6b565b613ac16080830185613245565b613ace60a0830184613a6b565b979650505050505050565b5f60208284031215613aee57613aed61316b565b5b5f613afb84828501613685565b91505092915050565b613b0d81613424565b8114613b17575f5ffd5b50565b5f81519050613b2881613b04565b92915050565b5f60208284031215613b4357613b4261316b565b5b5f613b5084828501613b1a565b91505092915050565b5f613b6382613424565b9150613b6e83613424565b925082613b7e57613b7d613931565b5b60015f0383147fffffffffffffffffffffffffffffffffffffffffffffffffffffffffff80000083141615613bb657613bb5613582565b5b828205905092915050565b5f613bcb82613424565b9150613bd683613424565b9250828202613be481613424565b9150808214613bf657613bf5613582565b5b5092915050565b613c068161318e565b82525050565b613c15816133c6565b82525050565b613c2481613424565b82525050565b613c33816131c9565b82525050565b61016082015f820151613c4e5f850182613bfd565b506020820151613c616020850182613bfd565b506040820151613c746040850182613c0c565b506060820151613c876060850182613c1b565b506080820151613c9a6080850182613c1b565b5060a0820151613cad60a0850182613c2a565b5060c0820151613cc060c0850182613c2a565b5060e0820151613cd360e0850182613c2a565b50610100820151613ce8610100850182613c2a565b50610120820151613cfd610120850182613bfd565b50610140820151613d12610140850182613c2a565b50505050565b5f61016082019050613d2c5f830184613c39565b92915050565b5f6fffffffffffffffffffffffffffffffff82169050919050565b613d5681613d32565b8114613d60575f5ffd5b50565b5f81519050613d7181613d4d565b92915050565b5f5f5f5f60808587031215613d8f57613d8e61316b565b5b5f613d9c87828801613671565b9450506020613dad87828801613d63565b9350506040613dbe87828801613671565b9250506060613dcf87828801613671565b91505092959194509250565b5f606082019050613dee5f8301866133fc565b613dfb602083018561326d565b613e08604083018461326d565b949350505050565b5f606082019050613e235f8301866133fc565b613e3060208301856133fc565b613e3d604083018461326d565b94935050505056fea26469706673582212207f334a6bba6b0b81c78b8c66c1f95cdfdb1daa07649d756ee0a69e8920b105f364736f6c634300081b003300000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000012000000000000000000000000096a5399d07896f757bd4c6ef56461f58db951862000000000000000000000000663a5c229c09b049e36dcc11a9b0d4a8eb9db2140000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d000000000000000000000000c36442b4a4522e871399cd717abdd847ab11fe880000000000000000000000008a0302eb0a0431852213ac8f768996b1f0ed64020000000000000000000000000000000000000000000000000000000000000004444644580000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000044446445800000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x608060405260043610610203575f3560e01c8063715018a611610117578063ad5c46481161009f578063cfb079d31161006e578063cfb079d314610727578063dd62ed3e14610751578063f2fccd7e1461078d578063f2fde38b146107b7578063fe4b84df146107df57610203565b8063ad5c46481461067f578063bb37cba1146106a9578063be3b42a7146106d3578063c31e818c146106fd57610203565b8063902d55a5116100e6578063902d55a51461059b57806395d89b41146105c5578063a1634b14146105ef578063a9059cbb14610619578063aaf5eb681461065557610203565b8063715018a6146105075780637ad7489a1461051d578063834b37fe146105475780638da5cb5b1461057157610203565b8063313ce5671161019a57806343526fd01161016957806343526fd014610423578063485d38341461044d5780634dcb5166146104775780636882a888146104a157806370a08231146104cb57610203565b8063313ce5671461037b578063342a30c3146103a557806336b4134a146103cf5780634060733f146103f957610203565b80631694505e116101d65780631694505e146102c157806318160ddd146102eb57806323b872dd14610315578063249d39e91461035157610203565b806306fdde0314610207578063095ea7b3146102315780630dbb90f01461026d578063158ef93e14610297575b5f5ffd5b348015610212575f5ffd5b5061021b6107fb565b6040516102289190613142565b60405180910390f35b34801561023c575f5ffd5b50610257600480360381019061025291906131fc565b61088b565b6040516102649190613254565b60405180910390f35b348015610278575f5ffd5b506102816108ad565b60405161028e919061327c565b60405180910390f35b3480156102a2575f5ffd5b506102ab6108bb565b6040516102b89190613254565b60405180910390f35b3480156102cc575f5ffd5b506102d56108ce565b6040516102e291906132f0565b60405180910390f35b3480156102f6575f5ffd5b506102ff6108f2565b60405161030c919061327c565b60405180910390f35b348015610320575f5ffd5b5061033b60048036038101906103369190613309565b6108fb565b6040516103489190613254565b60405180910390f35b34801561035c575f5ffd5b50610365610929565b604051610372919061327c565b60405180910390f35b348015610386575f5ffd5b5061038f61092f565b60405161039c9190613374565b60405180910390f35b3480156103b0575f5ffd5b506103b9610937565b6040516103c691906133ad565b60405180910390f35b3480156103da575f5ffd5b506103e361095b565b6040516103f0919061327c565b60405180910390f35b348015610404575f5ffd5b5061040d610960565b60405161041a91906133e3565b60405180910390f35b34801561042e575f5ffd5b50610437610966565b604051610444919061340b565b60405180910390f35b348015610458575f5ffd5b5061046161098a565b60405161046e919061327c565b60405180910390f35b348015610482575f5ffd5b5061048b610992565b604051610498919061327c565b60405180910390f35b3480156104ac575f5ffd5b506104b561099e565b6040516104c2919061343f565b60405180910390f35b3480156104d6575f5ffd5b506104f160048036038101906104ec9190613458565b6109cb565b6040516104fe919061327c565b60405180910390f35b348015610512575f5ffd5b5061051b610a10565b005b348015610528575f5ffd5b50610531610a23565b60405161053e919061327c565b60405180910390f35b348015610552575f5ffd5b5061055b610a32565b604051610568919061340b565b60405180910390f35b34801561057c575f5ffd5b50610585610a56565b604051610592919061340b565b60405180910390f35b3480156105a6575f5ffd5b506105af610a7e565b6040516105bc919061327c565b60405180910390f35b3480156105d0575f5ffd5b506105d9610a8e565b6040516105e69190613142565b60405180910390f35b3480156105fa575f5ffd5b50610603610b1e565b604051610610919061343f565b60405180910390f35b348015610624575f5ffd5b5061063f600480360381019061063a91906131fc565b610b42565b60405161064c9190613254565b60405180910390f35b348015610660575f5ffd5b50610669610b64565b604051610676919061327c565b60405180910390f35b34801561068a575f5ffd5b50610693610b7c565b6040516106a0919061340b565b60405180910390f35b3480156106b4575f5ffd5b506106bd610ba0565b6040516106ca91906134a3565b60405180910390f35b3480156106de575f5ffd5b506106e7610bc4565b6040516106f4919061340b565b60405180910390f35b348015610708575f5ffd5b50610711610be8565b60405161071e919061327c565b60405180910390f35b348015610732575f5ffd5b5061073b610bf8565b604051610748919061340b565b60405180910390f35b34801561075c575f5ffd5b50610777600480360381019061077291906134bc565b610c1c565b604051610784919061327c565b60405180910390f35b348015610798575f5ffd5b506107a1610c9e565b6040516107ae919061340b565b60405180910390f35b3480156107c2575f5ffd5b506107dd60048036038101906107d89190613458565b610cc2565b005b6107f960048036038101906107f491906134fa565b610d46565b005b60606003805461080a90613552565b80601f016020809104026020016040519081016040528092919081815260200182805461083690613552565b80156108815780601f1061085857610100808354040283529160200191610881565b820191905f5260205f20905b81548152906001019060200180831161086457829003601f168201915b5050505050905090565b5f5f61089561264d565b90506108a2818585612654565b600191505092915050565b69d3c21bcecceda100000081565b600560149054906101000a900460ff1681565b7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d81565b5f600254905090565b5f5f61090561264d565b9050610912858285612666565b61091d8585856126f9565b60019150509392505050565b61271081565b5f6012905090565b7f000000000000000000000000c36442b4a4522e871399cd717abdd847ab11fe8881565b606481565b61271081565b7f00000000000000000000000065b26fa0950dc2db53344898012b2a05a5b9f72f81565b6301e1338081565b670522810a26e5000081565b7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff276186109c8906135af565b81565b5f5f5f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20549050919050565b610a186127e9565b610a215f612870565b565b6a084595161401484a00000081565b7f000000000000000000000000105d9c54a7ef600b9bcc31024f0ba58295d1d82981565b5f60055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6b02df458b2c635dcf55e0000081565b606060048054610a9d90613552565b80601f0160208091040260200160405190810160405280929190818152602001828054610ac990613552565b8015610b145780601f10610aeb57610100808354040283529160200191610b14565b820191905f5260205f20905b815481529060010190602001808311610af757829003601f168201915b5050505050905090565b7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff2761881565b5f5f610b4c61264d565b9050610b598185856126f9565b600191505092915050565b73af298d050e4395d69670b12b7f4100000000000081565b7f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc281565b7f000000000000000000000000663a5c229c09b049e36dcc11a9b0d4a8eb9db21481565b7f000000000000000000000000e30edb4ec6f2d028f7f8ead96d9efee5a9dda77081565b6b015b6a759f4835dc2400000081565b7f00000000000000000000000096a5399d07896f757bd4c6ef56461f58db95186281565b5f60015f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905092915050565b7f000000000000000000000000a5f205506e6872e9d96deb2e7c09c1cff6346d1981565b610cca6127e9565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610d3a575f6040517f1e4fbdf7000000000000000000000000000000000000000000000000000000008152600401610d31919061340b565b60405180910390fd5b610d4381612870565b50565b610d4e6127e9565b600560149054906101000a900460ff1615610d95576040517f620016bb00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600560146101000a81548160ff0219169083151502179055505f7f000000000000000000000000663a5c229c09b049e36dcc11a9b0d4a8eb9db21473ffffffffffffffffffffffffffffffffffffffff166390e1a0036040518163ffffffff1660e01b815260040161012060405180830381865afa158015610e1b573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610e3f9190613776565b5f01519050670522810a26e5000081610e5891906137a2565b6002610e6491906137d5565b3414610e9c576040517f27151d3300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f7f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc273ffffffffffffffffffffffffffffffffffffffff16670522810a26e500006002610ee991906137d5565b604051610ef590613843565b5f6040518083038185875af1925050503d805f8114610f2f576040519150601f19603f3d011682016040523d82523d5f602084013e610f34565b606091505b5050905080610f6f576040517fb1ff844d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610fd433306b015b6a759f4835dc240000006002610f8d91906137d5565b7f00000000000000000000000096a5399d07896f757bd4c6ef56461f58db95186273ffffffffffffffffffffffffffffffffffffffff16612933909392919063ffffffff16565b7f00000000000000000000000096a5399d07896f757bd4c6ef56461f58db95186273ffffffffffffffffffffffffffffffffffffffff1663095ea7b37f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d6b015b6a759f4835dc240000006040518363ffffffff1660e01b815260040161105b929190613857565b6020604051808303815f875af1158015611077573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061109b91906138a8565b507f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc273ffffffffffffffffffffffffffffffffffffffff1663095ea7b37f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d670522810a26e500006040518363ffffffff1660e01b815260040161111f929190613857565b6020604051808303815f875af115801561113b573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061115f91906138a8565b506111a2307f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d6a084595161401484a000000600261119d91906137d5565b612654565b5f5f7f00000000000000000000000096a5399d07896f757bd4c6ef56461f58db95186273ffffffffffffffffffffffffffffffffffffffff166370a082317f000000000000000000000000e30edb4ec6f2d028f7f8ead96d9efee5a9dda7706040518263ffffffff1660e01b815260040161121d919061340b565b602060405180830381865afa158015611238573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061125c91906138d3565b90505f81111561129f5761129c7f000000000000000000000000e30edb4ec6f2d028f7f8ead96d9efee5a9dda7706b015b6a759f4835dc240000006129b5565b91505b7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663e8e33700307f00000000000000000000000096a5399d07896f757bd4c6ef56461f58db951862856a084595161401484a00000061131491906138fe565b856b015b6a759f4835dc2400000061132c91906138fe565b612710606461271061133e91906138fe565b896a084595161401484a00000061135591906138fe565b61135f91906137d5565b611369919061395e565b612710606461271061137b91906138fe565b896b015b6a759f4835dc2400000061139391906138fe565b61139d91906137d5565b6113a7919061395e565b308d6040518963ffffffff1660e01b81526004016113cc98979695949392919061398e565b6060604051808303815f875af11580156113e8573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061140c9190613a0a565b5050505f91507f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc273ffffffffffffffffffffffffffffffffffffffff166370a082317f000000000000000000000000a5f205506e6872e9d96deb2e7c09c1cff6346d196040518263ffffffff1660e01b815260040161148b919061340b565b602060405180830381865afa1580156114a6573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906114ca91906138d3565b90505f811115611509576115067f000000000000000000000000a5f205506e6872e9d96deb2e7c09c1cff6346d19670522810a26e500006129b5565b91505b7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663e8e33700307f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2856a084595161401484a00000061157e91906138fe565b85670522810a26e5000061159291906138fe565b61271060646127106115a491906138fe565b896a084595161401484a0000006115bb91906138fe565b6115c591906137d5565b6115cf919061395e565b61271060646127106115e191906138fe565b89670522810a26e500006115f591906138fe565b6115ff91906137d5565b611609919061395e565b308d6040518963ffffffff1660e01b815260040161162e98979695949392919061398e565b6060604051808303815f875af115801561164a573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061166e9190613a0a565b5050507f000000000000000000000000e30edb4ec6f2d028f7f8ead96d9efee5a9dda77073ffffffffffffffffffffffffffffffffffffffff1663095ea7b37f000000000000000000000000663a5c229c09b049e36dcc11a9b0d4a8eb9db2147f000000000000000000000000e30edb4ec6f2d028f7f8ead96d9efee5a9dda77073ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401611727919061340b565b602060405180830381865afa158015611742573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061176691906138d3565b6040518363ffffffff1660e01b8152600401611783929190613857565b6020604051808303815f875af115801561179f573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906117c391906138a8565b507f000000000000000000000000663a5c229c09b049e36dcc11a9b0d4a8eb9db21473ffffffffffffffffffffffffffffffffffffffff16638af416f6857f000000000000000000000000e30edb4ec6f2d028f7f8ead96d9efee5a9dda7707f000000000000000000000000e30edb4ec6f2d028f7f8ead96d9efee5a9dda77073ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b815260040161187b919061340b565b602060405180830381865afa158015611896573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906118ba91906138d3565b6301e13380426118ca91906137a2565b5f6001336040518863ffffffff1660e01b81526004016118ef96959493929190613a7a565b5f604051808303818588803b158015611906575f5ffd5b505af1158015611918573d5f5f3e3d5ffd5b50505050507f000000000000000000000000a5f205506e6872e9d96deb2e7c09c1cff6346d1973ffffffffffffffffffffffffffffffffffffffff1663095ea7b37f000000000000000000000000663a5c229c09b049e36dcc11a9b0d4a8eb9db2147f000000000000000000000000a5f205506e6872e9d96deb2e7c09c1cff6346d1973ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016119d3919061340b565b602060405180830381865afa1580156119ee573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611a1291906138d3565b6040518363ffffffff1660e01b8152600401611a2f929190613857565b6020604051808303815f875af1158015611a4b573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611a6f91906138a8565b507f000000000000000000000000663a5c229c09b049e36dcc11a9b0d4a8eb9db21473ffffffffffffffffffffffffffffffffffffffff16638af416f6857f000000000000000000000000a5f205506e6872e9d96deb2e7c09c1cff6346d197f000000000000000000000000a5f205506e6872e9d96deb2e7c09c1cff6346d1973ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401611b27919061340b565b602060405180830381865afa158015611b42573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611b6691906138d3565b6301e1338042611b7691906137a2565b5f6001336040518863ffffffff1660e01b8152600401611b9b96959493929190613a7a565b5f604051808303818588803b158015611bb2575f5ffd5b505af1158015611bc4573d5f5f3e3d5ffd5b50505050507f00000000000000000000000096a5399d07896f757bd4c6ef56461f58db95186273ffffffffffffffffffffffffffffffffffffffff1663095ea7b37f000000000000000000000000c36442b4a4522e871399cd717abdd847ab11fe886b015b6a759f4835dc240000006040518363ffffffff1660e01b8152600401611c50929190613857565b6020604051808303815f875af1158015611c6c573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611c9091906138a8565b507f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc273ffffffffffffffffffffffffffffffffffffffff1663095ea7b37f000000000000000000000000c36442b4a4522e871399cd717abdd847ab11fe88670522810a26e500006040518363ffffffff1660e01b8152600401611d14929190613857565b6020604051808303815f875af1158015611d30573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611d5491906138a8565b50611d97307f000000000000000000000000c36442b4a4522e871399cd717abdd847ab11fe886a084595161401484a0000006002611d9291906137d5565b612654565b5f5f5f5f5f7f00000000000000000000000065b26fa0950dc2db53344898012b2a05a5b9f72f73ffffffffffffffffffffffffffffffffffffffff16630dfe16816040518163ffffffff1660e01b8152600401602060405180830381865afa158015611e05573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611e299190613ad9565b94507f00000000000000000000000065b26fa0950dc2db53344898012b2a05a5b9f72f73ffffffffffffffffffffffffffffffffffffffff1663d21220a76040518163ffffffff1660e01b8152600401602060405180830381865afa158015611e94573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611eb89190613ad9565b93503073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614611eff576b015b6a759f4835dc24000000611f0c565b6a084595161401484a0000005b92503073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614611f52576a084595161401484a000000611f60565b6b015b6a759f4835dc240000005b91507f00000000000000000000000065b26fa0950dc2db53344898012b2a05a5b9f72f73ffffffffffffffffffffffffffffffffffffffff1663d0c93a7c6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611fcb573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611fef9190613b2e565b90507f000000000000000000000000c36442b4a4522e871399cd717abdd847ab11fe8873ffffffffffffffffffffffffffffffffffffffff1663883164566040518061016001604052808873ffffffffffffffffffffffffffffffffffffffff1681526020018773ffffffffffffffffffffffffffffffffffffffff16815260200161271062ffffff16815260200184857ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff276186120ab9190613b59565b6120b59190613bc1565b60020b815260200184857ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff276186120e9906135af565b6120f39190613b59565b6120fd9190613bc1565b60020b8152602001868152602001858152602001612710606461271061212391906138fe565b8861212e91906137d5565b612138919061395e565b8152602001612710606461271061214f91906138fe565b8761215a91906137d5565b612164919061395e565b81526020013373ffffffffffffffffffffffffffffffffffffffff1681526020018d8152506040518263ffffffff1660e01b81526004016121a59190613d18565b6080604051808303815f875af11580156121c1573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906121e59190613d77565b505050507f000000000000000000000000105d9c54a7ef600b9bcc31024f0ba58295d1d82973ffffffffffffffffffffffffffffffffffffffff16630dfe16816040518163ffffffff1660e01b8152600401602060405180830381865afa158015612252573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906122769190613ad9565b94507f000000000000000000000000105d9c54a7ef600b9bcc31024f0ba58295d1d82973ffffffffffffffffffffffffffffffffffffffff1663d21220a76040518163ffffffff1660e01b8152600401602060405180830381865afa1580156122e1573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906123059190613ad9565b93503073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161461234857670522810a26e50000612355565b6a084595161401484a0000005b92503073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161461239b576a084595161401484a0000006123a5565b670522810a26e500005b91507f000000000000000000000000105d9c54a7ef600b9bcc31024f0ba58295d1d82973ffffffffffffffffffffffffffffffffffffffff1663d0c93a7c6040518163ffffffff1660e01b8152600401602060405180830381865afa158015612410573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906124349190613b2e565b90507f000000000000000000000000c36442b4a4522e871399cd717abdd847ab11fe8873ffffffffffffffffffffffffffffffffffffffff1663883164566040518061016001604052808873ffffffffffffffffffffffffffffffffffffffff1681526020018773ffffffffffffffffffffffffffffffffffffffff16815260200161271062ffffff16815260200184857ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff276186124f09190613b59565b6124fa9190613bc1565b60020b815260200184857ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff2761861252e906135af565b6125389190613b59565b6125429190613bc1565b60020b8152602001868152602001858152602001612710606461271061256891906138fe565b8861257391906137d5565b61257d919061395e565b8152602001612710606461271061259491906138fe565b8761259f91906137d5565b6125a9919061395e565b81526020013373ffffffffffffffffffffffffffffffffffffffff1681526020018d8152506040518263ffffffff1660e01b81526004016125ea9190613d18565b6080604051808303815f875af1158015612606573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061262a9190613d77565b50505050612641303361263c306109cb565b6126f9565b50505050505050505050565b5f33905090565b6126618383836001612c4f565b505050565b5f6126718484610c1c565b90507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8110156126f357818110156126e4578281836040517ffb8f41b20000000000000000000000000000000000000000000000000000000081526004016126db93929190613ddb565b60405180910390fd5b6126f284848484035f612c4f565b5b50505050565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603612769575f6040517f96c6fd1e000000000000000000000000000000000000000000000000000000008152600401612760919061340b565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036127d9575f6040517fec442f050000000000000000000000000000000000000000000000000000000081526004016127d0919061340b565b60405180910390fd5b6127e4838383612e1e565b505050565b6127f161264d565b73ffffffffffffffffffffffffffffffffffffffff1661280f610a56565b73ffffffffffffffffffffffffffffffffffffffff161461286e5761283261264d565b6040517f118cdaa7000000000000000000000000000000000000000000000000000000008152600401612865919061340b565b60405180910390fd5b565b5f60055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508160055f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6129af848573ffffffffffffffffffffffffffffffffffffffff166323b872dd86868660405160240161296893929190613e10565b604051602081830303815290604052915060e01b6020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050613037565b50505050565b5f5f8390505f3073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16630dfe16816040518163ffffffff1660e01b8152600401602060405180830381865afa158015612a1b573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612a3f9190613ad9565b73ffffffffffffffffffffffffffffffffffffffff1614612acc578173ffffffffffffffffffffffffffffffffffffffff16630dfe16816040518163ffffffff1660e01b8152600401602060405180830381865afa158015612aa3573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612ac79190613ad9565b612b3a565b8173ffffffffffffffffffffffffffffffffffffffff1663d21220a76040518163ffffffff1660e01b8152600401602060405180830381865afa158015612b15573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612b399190613ad9565b5b90505f8173ffffffffffffffffffffffffffffffffffffffff166370a08231876040518263ffffffff1660e01b8152600401612b76919061340b565b602060405180830381865afa158015612b91573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612bb591906138d3565b90505f856a084595161401484a00000083612bd091906137d5565b612bda919061395e565b9050612be73088836126f9565b8373ffffffffffffffffffffffffffffffffffffffff1663fff6cae96040518163ffffffff1660e01b81526004015f604051808303815f87803b158015612c2c575f5ffd5b505af1158015612c3e573d5f5f3e3d5ffd5b505050508094505050505092915050565b5f73ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603612cbf575f6040517fe602df05000000000000000000000000000000000000000000000000000000008152600401612cb6919061340b565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603612d2f575f6040517f94280d62000000000000000000000000000000000000000000000000000000008152600401612d26919061340b565b60405180910390fd5b8160015f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055508015612e18578273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92584604051612e0f919061327c565b60405180910390a35b50505050565b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603612e6e578060025f828254612e6291906137a2565b92505081905550612f3c565b5f5f5f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054905081811015612ef7578381836040517fe450d38c000000000000000000000000000000000000000000000000000000008152600401612eee93929190613ddb565b60405180910390fd5b8181035f5f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2081905550505b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612f83578060025f8282540392505081905550612fcd565b805f5f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f82825401925050819055505b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360405161302a919061327c565b60405180910390a3505050565b5f5f60205f8451602086015f885af180613056576040513d5f823e3d81fd5b3d92505f519150505f821461306f57600181141561308a565b5f8473ffffffffffffffffffffffffffffffffffffffff163b145b156130cc57836040517f5274afe70000000000000000000000000000000000000000000000000000000081526004016130c3919061340b565b60405180910390fd5b50505050565b5f81519050919050565b5f82825260208201905092915050565b8281835e5f83830152505050565b5f601f19601f8301169050919050565b5f613114826130d2565b61311e81856130dc565b935061312e8185602086016130ec565b613137816130fa565b840191505092915050565b5f6020820190508181035f83015261315a818461310a565b905092915050565b5f604051905090565b5f5ffd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6131988261316f565b9050919050565b6131a88161318e565b81146131b2575f5ffd5b50565b5f813590506131c38161319f565b92915050565b5f819050919050565b6131db816131c9565b81146131e5575f5ffd5b50565b5f813590506131f6816131d2565b92915050565b5f5f604083850312156132125761321161316b565b5b5f61321f858286016131b5565b9250506020613230858286016131e8565b9150509250929050565b5f8115159050919050565b61324e8161323a565b82525050565b5f6020820190506132675f830184613245565b92915050565b613276816131c9565b82525050565b5f60208201905061328f5f83018461326d565b92915050565b5f819050919050565b5f6132b86132b36132ae8461316f565b613295565b61316f565b9050919050565b5f6132c98261329e565b9050919050565b5f6132da826132bf565b9050919050565b6132ea816132d0565b82525050565b5f6020820190506133035f8301846132e1565b92915050565b5f5f5f606084860312156133205761331f61316b565b5b5f61332d868287016131b5565b935050602061333e868287016131b5565b925050604061334f868287016131e8565b9150509250925092565b5f60ff82169050919050565b61336e81613359565b82525050565b5f6020820190506133875f830184613365565b92915050565b5f613397826132bf565b9050919050565b6133a78161338d565b82525050565b5f6020820190506133c05f83018461339e565b92915050565b5f62ffffff82169050919050565b6133dd816133c6565b82525050565b5f6020820190506133f65f8301846133d4565b92915050565b6134058161318e565b82525050565b5f60208201905061341e5f8301846133fc565b92915050565b5f8160020b9050919050565b61343981613424565b82525050565b5f6020820190506134525f830184613430565b92915050565b5f6020828403121561346d5761346c61316b565b5b5f61347a848285016131b5565b91505092915050565b5f61348d826132bf565b9050919050565b61349d81613483565b82525050565b5f6020820190506134b65f830184613494565b92915050565b5f5f604083850312156134d2576134d161316b565b5b5f6134df858286016131b5565b92505060206134f0858286016131b5565b9150509250929050565b5f6020828403121561350f5761350e61316b565b5b5f61351c848285016131e8565b91505092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f600282049050600182168061356957607f821691505b60208210810361357c5761357b613525565b5b50919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f6135b982613424565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffff80000082036135eb576135ea613582565b5b815f039050919050565b5f5ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b61362f826130fa565b810181811067ffffffffffffffff8211171561364e5761364d6135f9565b5b80604052505050565b5f613660613162565b905061366c8282613626565b919050565b5f8151905061367f816131d2565b92915050565b5f815190506136938161319f565b92915050565b5f61012082840312156136af576136ae6135f5565b5b6136ba610120613657565b90505f6136c984828501613671565b5f8301525060206136dc84828501613685565b60208301525060406136f084828501613671565b604083015250606061370484828501613671565b606083015250608061371884828501613671565b60808301525060a061372c84828501613671565b60a08301525060c061374084828501613685565b60c08301525060e061375484828501613671565b60e08301525061010061376984828501613671565b6101008301525092915050565b5f610120828403121561378c5761378b61316b565b5b5f61379984828501613699565b91505092915050565b5f6137ac826131c9565b91506137b7836131c9565b92508282019050808211156137cf576137ce613582565b5b92915050565b5f6137df826131c9565b91506137ea836131c9565b92508282026137f8816131c9565b9150828204841483151761380f5761380e613582565b5b5092915050565b5f81905092915050565b50565b5f61382e5f83613816565b915061383982613820565b5f82019050919050565b5f61384d82613823565b9150819050919050565b5f60408201905061386a5f8301856133fc565b613877602083018461326d565b9392505050565b6138878161323a565b8114613891575f5ffd5b50565b5f815190506138a28161387e565b92915050565b5f602082840312156138bd576138bc61316b565b5b5f6138ca84828501613894565b91505092915050565b5f602082840312156138e8576138e761316b565b5b5f6138f584828501613671565b91505092915050565b5f613908826131c9565b9150613913836131c9565b925082820390508181111561392b5761392a613582565b5b92915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b5f613968826131c9565b9150613973836131c9565b92508261398357613982613931565b5b828204905092915050565b5f610100820190506139a25f83018b6133fc565b6139af602083018a6133fc565b6139bc604083018961326d565b6139c9606083018861326d565b6139d6608083018761326d565b6139e360a083018661326d565b6139f060c08301856133fc565b6139fd60e083018461326d565b9998505050505050505050565b5f5f5f60608486031215613a2157613a2061316b565b5b5f613a2e86828701613671565b9350506020613a3f86828701613671565b9250506040613a5086828701613671565b9150509250925092565b5f613a648261316f565b9050919050565b613a7481613a5a565b82525050565b5f60c082019050613a8d5f8301896133fc565b613a9a602083018861326d565b613aa7604083018761326d565b613ab46060830186613a6b565b613ac16080830185613245565b613ace60a0830184613a6b565b979650505050505050565b5f60208284031215613aee57613aed61316b565b5b5f613afb84828501613685565b91505092915050565b613b0d81613424565b8114613b17575f5ffd5b50565b5f81519050613b2881613b04565b92915050565b5f60208284031215613b4357613b4261316b565b5b5f613b5084828501613b1a565b91505092915050565b5f613b6382613424565b9150613b6e83613424565b925082613b7e57613b7d613931565b5b60015f0383147fffffffffffffffffffffffffffffffffffffffffffffffffffffffffff80000083141615613bb657613bb5613582565b5b828205905092915050565b5f613bcb82613424565b9150613bd683613424565b9250828202613be481613424565b9150808214613bf657613bf5613582565b5b5092915050565b613c068161318e565b82525050565b613c15816133c6565b82525050565b613c2481613424565b82525050565b613c33816131c9565b82525050565b61016082015f820151613c4e5f850182613bfd565b506020820151613c616020850182613bfd565b506040820151613c746040850182613c0c565b506060820151613c876060850182613c1b565b506080820151613c9a6080850182613c1b565b5060a0820151613cad60a0850182613c2a565b5060c0820151613cc060c0850182613c2a565b5060e0820151613cd360e0850182613c2a565b50610100820151613ce8610100850182613c2a565b50610120820151613cfd610120850182613bfd565b50610140820151613d12610140850182613c2a565b50505050565b5f61016082019050613d2c5f830184613c39565b92915050565b5f6fffffffffffffffffffffffffffffffff82169050919050565b613d5681613d32565b8114613d60575f5ffd5b50565b5f81519050613d7181613d4d565b92915050565b5f5f5f5f60808587031215613d8f57613d8e61316b565b5b5f613d9c87828801613671565b9450506020613dad87828801613d63565b9350506040613dbe87828801613671565b9250506060613dcf87828801613671565b91505092959194509250565b5f606082019050613dee5f8301866133fc565b613dfb602083018561326d565b613e08604083018461326d565b949350505050565b5f606082019050613e235f8301866133fc565b613e3060208301856133fc565b613e3d604083018461326d565b94935050505056fea26469706673582212207f334a6bba6b0b81c78b8c66c1f95cdfdb1daa07649d756ee0a69e8920b105f364736f6c634300081b0033

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

00000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000012000000000000000000000000096a5399d07896f757bd4c6ef56461f58db951862000000000000000000000000663a5c229c09b049e36dcc11a9b0d4a8eb9db2140000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d000000000000000000000000c36442b4a4522e871399cd717abdd847ab11fe880000000000000000000000008a0302eb0a0431852213ac8f768996b1f0ed64020000000000000000000000000000000000000000000000000000000000000004444644580000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000044446445800000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : name (string): DFDX
Arg [1] : symbol (string): DFDX
Arg [2] : _DX (address): 0x96a5399D07896f757Bd4c6eF56461F58DB951862
Arg [3] : _v2Locker (address): 0x663A5C229c09b049E36dCc11a9B0d4a8Eb9db214
Arg [4] : _v2Router (address): 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D
Arg [5] : _v3PositionManager (address): 0xC36442b4a4522E871399CD717aBDD847Ab11FE88
Arg [6] : _owner (address): 0x8a0302Eb0A0431852213AC8f768996B1f0ed6402

-----Encoded View---------------
11 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000120
Arg [2] : 00000000000000000000000096a5399d07896f757bd4c6ef56461f58db951862
Arg [3] : 000000000000000000000000663a5c229c09b049e36dcc11a9b0d4a8eb9db214
Arg [4] : 0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d
Arg [5] : 000000000000000000000000c36442b4a4522e871399cd717abdd847ab11fe88
Arg [6] : 0000000000000000000000008a0302eb0a0431852213ac8f768996b1f0ed6402
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [8] : 4446445800000000000000000000000000000000000000000000000000000000
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [10] : 4446445800000000000000000000000000000000000000000000000000000000


Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

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