ETH Price: $3,928.44 (-1.38%)

Contract

0xc408429fE9FFeb94D69eEf6CDd7bC518f0B1d4c4

Overview

ETH Balance

0 ETH

ETH Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Swap Once1229856812024-07-21 13:55:39145 days ago1721570139IN
0xc408429f...8f0B1d4c4
0 ETH0.0000120209690.06187133
Swap Once1228198842024-07-17 17:49:05148 days ago1721238545IN
0xc408429f...8f0B1d4c4
0.000100502512562 ETH0.0000122283730.06082571
Swap Once1228163712024-07-17 15:51:59148 days ago1721231519IN
0xc408429f...8f0B1d4c4
0 ETH0.0000108287790.06348488
Swap Once1221694422024-07-02 16:27:41163 days ago1719937661IN
0xc408429f...8f0B1d4c4
0 ETH0.0000104365270.061449
Swap Once1221693832024-07-02 16:25:43163 days ago1719937543IN
0xc408429f...8f0B1d4c4
0 ETH0.000011681420.06030768
Swap Once1221035312024-07-01 3:50:39165 days ago1719805839IN
0xc408429f...8f0B1d4c4
0 ETH0.0000001445660.00049678
Swap Once1220592242024-06-30 3:13:45166 days ago1719717225IN
0xc408429f...8f0B1d4c4
0 ETH0.0000002377590.00099405
Swap Once1220577672024-06-30 2:25:11166 days ago1719714311IN
0xc408429f...8f0B1d4c4
0 ETH0.0000002578580.00078846

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block From To
1229856812024-07-21 13:55:39145 days ago1721570139
0xc408429f...8f0B1d4c4
0.00000275466494 ETH
1229856812024-07-21 13:55:39145 days ago1721570139
0xc408429f...8f0B1d4c4
0.00000275466494 ETH
1229856812024-07-21 13:55:39145 days ago1721570139
0xc408429f...8f0B1d4c4
0.000548178323134 ETH
1229856812024-07-21 13:55:39145 days ago1721570139
0xc408429f...8f0B1d4c4
0.000548178323134 ETH
1228198842024-07-17 17:49:05148 days ago1721238545
0xc408429f...8f0B1d4c4
0.000000502512562 ETH
1228198842024-07-17 17:49:05148 days ago1721238545
0xc408429f...8f0B1d4c4
0.000000502512562 ETH
1228198842024-07-17 17:49:05148 days ago1721238545
0xc408429f...8f0B1d4c4
0.000100502512562 ETH
1228163712024-07-17 15:51:59148 days ago1721231519
0xc408429f...8f0B1d4c4
0.000005473370593 ETH
1228163712024-07-17 15:51:59148 days ago1721231519
0xc408429f...8f0B1d4c4
0.000005473370593 ETH
1228163712024-07-17 15:51:59148 days ago1721231519
0xc408429f...8f0B1d4c4
0.001089200748116 ETH
1228163712024-07-17 15:51:59148 days ago1721231519
0xc408429f...8f0B1d4c4
0.001089200748116 ETH
1221694422024-07-02 16:27:41163 days ago1719937661
0xc408429f...8f0B1d4c4
0.000006159935586 ETH
1221694422024-07-02 16:27:41163 days ago1719937661
0xc408429f...8f0B1d4c4
0.000006159935586 ETH
1221694422024-07-02 16:27:41163 days ago1719937661
0xc408429f...8f0B1d4c4
0.001225827181728 ETH
1221694422024-07-02 16:27:41163 days ago1719937661
0xc408429f...8f0B1d4c4
0.001225827181728 ETH
1221693832024-07-02 16:25:43163 days ago1719937543
0xc408429f...8f0B1d4c4
0.000024439690358 ETH
1221693832024-07-02 16:25:43163 days ago1719937543
0xc408429f...8f0B1d4c4
0.000024439690358 ETH
1221693832024-07-02 16:25:43163 days ago1719937543
0xc408429f...8f0B1d4c4
0.004863498381434 ETH
1221693832024-07-02 16:25:43163 days ago1719937543
0xc408429f...8f0B1d4c4
0.004863498381434 ETH
1220592242024-06-30 3:13:45166 days ago1719717225
0xc408429f...8f0B1d4c4
0.000637342237347 ETH
1220592242024-06-30 3:13:45166 days ago1719717225
0xc408429f...8f0B1d4c4
0.000637342237347 ETH
1220592242024-06-30 3:13:45166 days ago1719717225
0xc408429f...8f0B1d4c4
0.126831105232217 ETH
1220592242024-06-30 3:13:45166 days ago1719717225
0xc408429f...8f0B1d4c4
0.126831105232217 ETH
1220577672024-06-30 2:25:11166 days ago1719714311
0xc408429f...8f0B1d4c4
0.000798468878781 ETH
1220577672024-06-30 2:25:11166 days ago1719714311
0xc408429f...8f0B1d4c4
0.000798468878781 ETH
View All Internal Transactions

Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
OfficialSameChainSwap

Compiler Version
v0.8.20+commit.a1b79de6

Optimization Enabled:
No with 200 runs

Other Settings:
paris EvmVersion
File 1 of 18 : OfficialSameChainSwap.sol
// SPDX-License-Identifier: MIT
pragma solidity =0.8.20;

import "@openzeppelin/contracts/access/Ownable2Step.sol";
import "@uniswap/v3-core/contracts/interfaces/IUniswapV3Factory.sol";
import "@uniswap/v3-core/contracts/interfaces/IUniswapV3Pool.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "@openzeppelin/contracts/utils/ReentrancyGuard.sol";
import "./libs/BytesLib.sol";

interface IV3SwapRouter {
  struct ExactInputSingleParams {
    address tokenIn;
    address tokenOut;
    uint24 fee;
    address recipient;
    uint256 amountIn;
    uint256 amountOutMinimum;
    uint160 sqrtPriceLimitX96;
  }
  function exactInputSingle(
    ExactInputSingleParams calldata params
  ) external payable returns (uint256 amountOut);

  struct ExactInputParams {
    bytes path;
    address recipient;
    uint256 amountIn;
    uint256 amountOutMinimum;
  }
  function exactInput(
    ExactInputParams calldata params
  ) external payable returns (uint256 amountOut);

  struct ExactOutputSingleParams {
    address tokenIn;
    address tokenOut;
    uint24 fee;
    address recipient;
    uint256 amountOut;
    uint256 amountInMaximum;
    uint160 sqrtPriceLimitX96;
  }
  function exactOutputSingle(
    ExactOutputSingleParams calldata params
  ) external payable returns (uint256 amountIn);

  struct ExactOutputParams {
    bytes path;
    address recipient;
    uint256 amountOut;
    uint256 amountInMaximum;
  }
  function exactOutput(
    ExactOutputParams calldata params
  ) external payable returns (uint256 amountIn);

  function uniswapV3SwapCallback(
    int256 amount0Delta,
    int256 amount1Delta,
    bytes calldata data
  ) external;

  function swapExactTokensForTokens(
    uint256 amountIn,
    uint256 amountOutMin,
    address[] calldata path,
    address to
  ) external payable returns (uint256 amountOut);
  function swapTokensForExactTokens(
    uint256 amountOut,
    uint256 amountInMax,
    address[] calldata path,
    address to
  ) external payable returns (uint256 amountIn);

  function WETH9() external view returns (address);
}

interface IUniswapV2Router02 {
    function WETH() external pure returns (address);

    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;

    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 getAmountsOut(uint amountIn, address[] calldata path) external view returns (uint[] memory amounts);
}

interface IWETH is IERC20 {
    function deposit() external payable;

    function withdraw(uint amount) external;
}

contract OfficialSameChainSwap is Ownable2Step, ReentrancyGuard {
  using SafeERC20 for IERC20;
  using BytesLib for bytes;

  mapping(address => bool) public feeTokens;
  uint256 public platformFee; // Fee must be by 1000, so if you want 5% this will be 5000
  address public feeReceiver;
  uint256 public constant feeBps = 1000; // 1000 is 1% so we can have many decimals

  IUniswapV2Router02 public immutable v2Router;
  IV3SwapRouter public immutable v3Router;
  address public immutable wethToken;

  error FailedCall(); // Used when transfer function is failed.
  //////////================= Events ====================================================
  event SwapExecuted(
    address indexed tokenIn,
    address indexed tokenOut,
    uint amountIn,
    uint amountOut
  );
  event FeeReceiverSet(
    address indexed _oldReceiver,
    address indexed _newReceiver
  );
  event Fee(
    address indexed user, 
    uint256 amount, 
    address indexed token
  );
  event FeeSent(address feeReceiver, uint256 amount);

  constructor(
    uint256 _fee,
    address _feeReceiver,
    address _v3Router,
    address _v2Router,
    address _weth
  ) Ownable(msg.sender) {
    platformFee = _fee;
    feeReceiver = _feeReceiver;
    v3Router = IV3SwapRouter(_v3Router);
    v2Router = IUniswapV2Router02(_v2Router);
    wethToken = _weth;
  }

  uint256 public constant MAX_PLATFORM_FEE = 2000; // 20% in basis points
  function changeFeeData(uint256 _fee, address _feeReceiver) external onlyOwner {
    require(_fee <= MAX_PLATFORM_FEE, "Platform fee exceeds the maximum limit");
    address oldReceiver = feeReceiver;
    platformFee = _fee;
    feeReceiver = _feeReceiver;
    emit FeeReceiverSet(oldReceiver, _feeReceiver);
  }

  function swapOnce(
    address _tokenA,
    address _tokenB,
    bool _unwrappETH,
    uint256 _amountIn,
    uint256 _minAmountOutV2,
    uint256 _minAmountOutV3,
    uint8 _buyOneTwoOrThree, // 1 means buy only v2, 2 means buy v3 only, 3 means buy first v2 then v3, 4 means buy first v3 then v2
    address[] memory _pathV2,
    bytes memory _pathV3,
    bool isWethIn
  ) public payable nonReentrant {
    // ETH -> Token
    if (!isWethIn && _tokenA == wethToken) {
      require(msg.value > 0, "invalid msg.value");
      IWETH(wethToken).deposit{value: msg.value}();
    } else {
      require(msg.value == 0, "invalid msg.value");
      uint256 beforeTransfer = IERC20(_tokenA).balanceOf(address(this));
      IERC20(_tokenA).safeTransferFrom(msg.sender, address(this), _amountIn);
      uint256 afterTransfer = IERC20(_tokenA).balanceOf(address(this));
      _amountIn = afterTransfer - beforeTransfer;
    }
    
    uint256 amountIn = (msg.value > 0 ? msg.value : _amountIn);    
    uint256 output;
    if (_buyOneTwoOrThree == 1) {
      uint256 feeAmount = amountIn * platformFee / (feeBps * 100);
      if(_pathV2[0] != wethToken) { // WETH => Token
        address[] memory path = new address[](2);
        path[0] = _pathV2[0];
        path[1] = wethToken;
        v2Swap(path, feeAmount, 0);
      }
      output = v2Swap(_pathV2, amountIn-feeAmount, _minAmountOutV2);
    } else if (_buyOneTwoOrThree == 2) {
      uint256 feeAmount = amountIn * platformFee / (feeBps * 100);
      if(_pathV3.toAddress(0) == wethToken) { // WETH => output Token
        output = v3Swap(_tokenA, _pathV3, amountIn-feeAmount, _minAmountOutV3);
      } else if (_pathV3.toAddress(23) == wethToken && _tokenB == wethToken) { // Token => WETH 
        output = v3Swap(_tokenA, _pathV3, amountIn, _minAmountOutV3);
        feeAmount = output * platformFee / (feeBps * 100);
        output = output - feeAmount;
      } else  { // Token => WETH (stable coins) => Token
        v3Swap(_tokenA, _pathV3.slice(0, 43), feeAmount, 0);
        output = v3Swap(_tokenA, _pathV3, amountIn - feeAmount, _minAmountOutV3);
      }
    } else if (_buyOneTwoOrThree == 3) {
      output = v2Swap(_pathV2, amountIn, _minAmountOutV2);
      uint256 feeAmount = output * platformFee / (feeBps * 100);
      output = v3Swap(_pathV2[_pathV2.length - 1], _pathV3, output-feeAmount, _minAmountOutV3);
    } else if (_buyOneTwoOrThree == 4) {
      output = v3Swap(_tokenA, _pathV3, amountIn, _minAmountOutV3);
      uint256 feeAmount = output * platformFee / (feeBps * 100);
      output = v2Swap(_pathV2, output-feeAmount, _minAmountOutV2);
    }

    if (_unwrappETH) {
      IWETH(wethToken).withdraw(output);
      // payable(msg.sender).transfer(output);
      (bool success, ) = msg.sender.call{value: output}("");
      if(!success) {
        revert FailedCall();
      }
    } else {
      IERC20(_tokenB).safeTransfer(msg.sender, output);
    }

    if (IWETH(wethToken).balanceOf(address(this)) > 0) {
      IWETH(wethToken).withdraw(IWETH(wethToken).balanceOf(address(this)));
      payable(feeReceiver).transfer(address(this).balance);
      emit FeeSent(feeReceiver, address(this).balance);
    }

    emit SwapExecuted(_tokenA, _tokenB, _amountIn, output);
  }
  
  function checkAndApproveAll(address _token, address _target, uint256 _amountToCheck) internal {
    if (IERC20(_token).allowance(address(this), _target) < _amountToCheck) {
        IERC20(_token).forceApprove(_target, 0);
        IERC20(_token).forceApprove(_target, ~uint256(0));
    }
  }

  function v2Swap(
    address[] memory _path,
    uint256 _amountIn,
    uint256 _minAmountOut // Slippage in base of 1000 meaning 10 is 1% and 1 is 0.1% where 1000 is 1
  ) internal returns (uint256) {
    address tokenOut = _path[_path.length - 1];
    checkAndApproveAll(_path[0], address(v2Router), _amountIn);
    uint256 initial = IERC20(tokenOut).balanceOf(address(this));
    v2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(
        _amountIn,
        _minAmountOut,
        _path,
        address(this),
        block.timestamp + 1 hours
    );
    uint256 finalAmount = IERC20(tokenOut).balanceOf(address(this));
    return finalAmount - initial;
  }

  function v3Swap(
    address _tokenIn,
    bytes memory _path,
    uint256 _amountIn,
    uint256 _minAmountOut
  ) internal returns (uint256 amountOutput) {
    checkAndApproveAll(_tokenIn, address(v3Router), _amountIn);
    IV3SwapRouter.ExactInputParams memory params = IV3SwapRouter.ExactInputParams(
      _path, address(this), _amountIn, _minAmountOut
    );
    amountOutput = v3Router.exactInput( params );
  }

  function recoverStuckETH(address payable _beneficiary) public onlyOwner {
    // _beneficiary.transfer(address(this).balance);
    (bool success, ) = _beneficiary.call{value: address(this).balance}("");
    if(!success) {
      revert FailedCall();
    }
  }

  function recoverStuckTokens(address _token) external onlyOwner {
    uint256 amount = IERC20(_token).balanceOf(address(this));
    IERC20(_token).safeTransfer(owner(), amount);
  }

  receive() external payable {}

  fallback() external payable {}
}

File 2 of 18 : 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 3 of 18 : Ownable2Step.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable2Step.sol)

pragma solidity ^0.8.20;

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

/**
 * @dev Contract module which provides access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * The initial owner is specified at deployment time in the constructor for `Ownable`. This
 * can later be changed with {transferOwnership} and {acceptOwnership}.
 *
 * This module is used through inheritance. It will make available all functions
 * from parent (Ownable).
 */
abstract contract Ownable2Step is Ownable {
    address private _pendingOwner;

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

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

    /**
     * @dev Starts the ownership transfer of the contract to a new account. Replaces the pending transfer if there is one.
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual override onlyOwner {
        _pendingOwner = newOwner;
        emit OwnershipTransferStarted(owner(), newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`) and deletes any pending owner.
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual override {
        delete _pendingOwner;
        super._transferOwnership(newOwner);
    }

    /**
     * @dev The new owner accepts the ownership transfer.
     */
    function acceptOwnership() public virtual {
        address sender = _msgSender();
        if (pendingOwner() != sender) {
            revert OwnableUnauthorizedAccount(sender);
        }
        _transferOwnership(sender);
    }
}

File 4 of 18 : IERC20Permit.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/extensions/IERC20Permit.sol)

pragma solidity ^0.8.20;

/**
 * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in
 * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].
 *
 * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by
 * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't
 * need to send a transaction, and thus is not required to hold Ether at all.
 *
 * ==== Security Considerations
 *
 * There are two important considerations concerning the use of `permit`. The first is that a valid permit signature
 * expresses an allowance, and it should not be assumed to convey additional meaning. In particular, it should not be
 * considered as an intention to spend the allowance in any specific way. The second is that because permits have
 * built-in replay protection and can be submitted by anyone, they can be frontrun. A protocol that uses permits should
 * take this into consideration and allow a `permit` call to fail. Combining these two aspects, a pattern that may be
 * generally recommended is:
 *
 * ```solidity
 * function doThingWithPermit(..., uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) public {
 *     try token.permit(msg.sender, address(this), value, deadline, v, r, s) {} catch {}
 *     doThing(..., value);
 * }
 *
 * function doThing(..., uint256 value) public {
 *     token.safeTransferFrom(msg.sender, address(this), value);
 *     ...
 * }
 * ```
 *
 * Observe that: 1) `msg.sender` is used as the owner, leaving no ambiguity as to the signer intent, and 2) the use of
 * `try/catch` allows the permit to fail and makes the code tolerant to frontrunning. (See also
 * {SafeERC20-safeTransferFrom}).
 *
 * Additionally, note that smart contract wallets (such as Argent or Safe) are not able to produce permit signatures, so
 * contracts should have entry points that don't rely on permit.
 */
interface IERC20Permit {
    /**
     * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,
     * given ``owner``'s signed approval.
     *
     * IMPORTANT: The same issues {IERC20-approve} has related to transaction
     * ordering also apply here.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `deadline` must be a timestamp in the future.
     * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`
     * over the EIP712-formatted function arguments.
     * - the signature must use ``owner``'s current nonce (see {nonces}).
     *
     * For more information on the signature format, see the
     * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP
     * section].
     *
     * CAUTION: See Security Considerations above.
     */
    function permit(
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external;

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

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

File 5 of 18 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.20;

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

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

    /**
     * @dev Returns the 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 6 of 18 : SafeERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.20;

import {IERC20} from "../IERC20.sol";
import {IERC20Permit} from "../extensions/IERC20Permit.sol";
import {Address} from "../../../utils/Address.sol";

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

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

        bytes memory returndata = address(token).functionCall(data);
        if (returndata.length != 0 && !abi.decode(returndata, (bool))) {
            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 silents catches all reverts and returns a bool instead.
     */
    function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We cannot use {Address-functionCall} here since this should return false
        // and not revert is the subcall reverts.

        (bool success, bytes memory returndata) = address(token).call(data);
        return success && (returndata.length == 0 || abi.decode(returndata, (bool))) && address(token).code.length > 0;
    }
}

File 7 of 18 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/Address.sol)

pragma solidity ^0.8.20;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev The ETH balance of the account is not enough to perform the operation.
     */
    error AddressInsufficientBalance(address account);

    /**
     * @dev There's no code at `target` (it is not a contract).
     */
    error AddressEmptyCode(address target);

    /**
     * @dev A call to an address target failed. The target may have reverted.
     */
    error FailedInnerCall();

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

        (bool success, ) = recipient.call{value: amount}("");
        if (!success) {
            revert FailedInnerCall();
        }
    }

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

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     */
    function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
        if (address(this).balance < value) {
            revert AddressInsufficientBalance(address(this));
        }
        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResultFromTarget(target, success, returndata);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResultFromTarget(target, success, returndata);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResultFromTarget(target, success, returndata);
    }

    /**
     * @dev Tool to verify that a low level call to smart-contract was successful, and reverts if the target
     * was not a contract or bubbling up the revert reason (falling back to {FailedInnerCall}) in case of an
     * unsuccessful call.
     */
    function verifyCallResultFromTarget(
        address target,
        bool success,
        bytes memory returndata
    ) internal view returns (bytes memory) {
        if (!success) {
            _revert(returndata);
        } else {
            // only check if target is a contract if the call was successful and the return data is empty
            // otherwise we already know that it was a contract
            if (returndata.length == 0 && target.code.length == 0) {
                revert AddressEmptyCode(target);
            }
            return returndata;
        }
    }

    /**
     * @dev Tool to verify that a low level call was successful, and reverts if it wasn't, either by bubbling the
     * revert reason or with a default {FailedInnerCall} error.
     */
    function verifyCallResult(bool success, bytes memory returndata) internal pure returns (bytes memory) {
        if (!success) {
            _revert(returndata);
        } else {
            return returndata;
        }
    }

    /**
     * @dev Reverts with returndata if present. Otherwise reverts with {FailedInnerCall}.
     */
    function _revert(bytes memory returndata) private pure {
        // Look for revert reason and bubble it up if present
        if (returndata.length > 0) {
            // The easiest way to bubble the revert reason is using memory via assembly
            /// @solidity memory-safe-assembly
            assembly {
                let returndata_size := mload(returndata)
                revert(add(32, returndata), returndata_size)
            }
        } else {
            revert FailedInnerCall();
        }
    }
}

File 8 of 18 : 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 9 of 18 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/ReentrancyGuard.sol)

pragma solidity ^0.8.20;

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

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

    uint256 private _status;

    /**
     * @dev Unauthorized reentrant call.
     */
    error ReentrancyGuardReentrantCall();

    constructor() {
        _status = NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        _nonReentrantBefore();
        _;
        _nonReentrantAfter();
    }

    function _nonReentrantBefore() private {
        // On the first call to nonReentrant, _status will be NOT_ENTERED
        if (_status == ENTERED) {
            revert ReentrancyGuardReentrantCall();
        }

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

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

    /**
     * @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a
     * `nonReentrant` function in the call stack.
     */
    function _reentrancyGuardEntered() internal view returns (bool) {
        return _status == ENTERED;
    }
}

File 10 of 18 : 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 11 of 18 : 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 12 of 18 : 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 13 of 18 : 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 14 of 18 : 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 15 of 18 : 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 16 of 18 : 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 17 of 18 : 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 18 of 18 : BytesLib.sol
// SPDX-License-Identifier: GPL-2.0-or-later
/*
 * @title Solidity Bytes Arrays Utils
 * @author Gonçalo Sá <[email protected]>
 *
 * @dev Bytes tightly packed arrays utility library for ethereum contracts written in Solidity.
 *      The library lets you concatenate, slice and type cast bytes arrays both in memory and storage.
 */
pragma solidity =0.8.20;

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

        bytes memory tempBytes;

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

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

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

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

                    mstore(tempBytes, _length)

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

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

        return tempBytes;
    }

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

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

        return tempAddress;
    }

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

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

        return tempUint;
    }
}

Settings
{
  "evmVersion": "paris",
  "optimizer": {
    "enabled": false,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"uint256","name":"_fee","type":"uint256"},{"internalType":"address","name":"_feeReceiver","type":"address"},{"internalType":"address","name":"_v3Router","type":"address"},{"internalType":"address","name":"_v2Router","type":"address"},{"internalType":"address","name":"_weth","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"target","type":"address"}],"name":"AddressEmptyCode","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"AddressInsufficientBalance","type":"error"},{"inputs":[],"name":"FailedCall","type":"error"},{"inputs":[],"name":"FailedInnerCall","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":[],"name":"ReentrancyGuardReentrantCall","type":"error"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"SafeERC20FailedOperation","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":true,"internalType":"address","name":"token","type":"address"}],"name":"Fee","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_oldReceiver","type":"address"},{"indexed":true,"internalType":"address","name":"_newReceiver","type":"address"}],"name":"FeeReceiverSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"feeReceiver","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"FeeSent","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferStarted","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":"tokenIn","type":"address"},{"indexed":true,"internalType":"address","name":"tokenOut","type":"address"},{"indexed":false,"internalType":"uint256","name":"amountIn","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amountOut","type":"uint256"}],"name":"SwapExecuted","type":"event"},{"stateMutability":"payable","type":"fallback"},{"inputs":[],"name":"MAX_PLATFORM_FEE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"acceptOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_fee","type":"uint256"},{"internalType":"address","name":"_feeReceiver","type":"address"}],"name":"changeFeeData","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"feeBps","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feeReceiver","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"feeTokens","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pendingOwner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"platformFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address payable","name":"_beneficiary","type":"address"}],"name":"recoverStuckETH","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"}],"name":"recoverStuckTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_tokenA","type":"address"},{"internalType":"address","name":"_tokenB","type":"address"},{"internalType":"bool","name":"_unwrappETH","type":"bool"},{"internalType":"uint256","name":"_amountIn","type":"uint256"},{"internalType":"uint256","name":"_minAmountOutV2","type":"uint256"},{"internalType":"uint256","name":"_minAmountOutV3","type":"uint256"},{"internalType":"uint8","name":"_buyOneTwoOrThree","type":"uint8"},{"internalType":"address[]","name":"_pathV2","type":"address[]"},{"internalType":"bytes","name":"_pathV3","type":"bytes"},{"internalType":"bool","name":"isWethIn","type":"bool"}],"name":"swapOnce","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"v2Router","outputs":[{"internalType":"contract IUniswapV2Router02","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"v3Router","outputs":[{"internalType":"contract IV3SwapRouter","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"wethToken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]

60e06040523480156200001157600080fd5b506040516200359f3803806200359f833981810160405281019062000037919062000358565b33600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603620000ad5760006040517f1e4fbdf7000000000000000000000000000000000000000000000000000000008152600401620000a49190620003f1565b60405180910390fd5b620000be81620001b660201b60201c565b5060016002819055508460048190555083600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508273ffffffffffffffffffffffffffffffffffffffff1660a08173ffffffffffffffffffffffffffffffffffffffff16815250508173ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff16815250508073ffffffffffffffffffffffffffffffffffffffff1660c08173ffffffffffffffffffffffffffffffffffffffff168152505050505050506200040e565b600160006101000a81549073ffffffffffffffffffffffffffffffffffffffff0219169055620001ec81620001ef60201b60201c565b50565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600080fd5b6000819050919050565b620002cd81620002b8565b8114620002d957600080fd5b50565b600081519050620002ed81620002c2565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006200032082620002f3565b9050919050565b620003328162000313565b81146200033e57600080fd5b50565b600081519050620003528162000327565b92915050565b600080600080600060a08688031215620003775762000376620002b3565b5b60006200038788828901620002dc565b95505060206200039a8882890162000341565b9450506040620003ad8882890162000341565b9350506060620003c08882890162000341565b9250506080620003d38882890162000341565b9150509295509295909350565b620003eb8162000313565b82525050565b6000602082019050620004086000830184620003e0565b92915050565b60805160a05160c0516130f8620004a760003960008181610411015281816107be0152818161085601528181610aa401528181610bca01528181610c9c01528181610d2001528181610d8901528181610f5d015281816110bf0152818161115f015261119b0152600081816103bb015281816119b70152611a190152600081816113c50152818161171101526117b601526130f86000f3fe6080604052600436106101025760003560e01c8063715018a611610095578063c142486911610064578063c1424869146102f5578063d8b499cd1461031e578063deadbc141461033a578063e30c397814610365578063f2fde38b1461039057610109565b8063715018a61461027157806379ba5097146102885780638da5cb5b1461029f578063b3f00674146102ca57610109565b80633998a681116100d15780633998a681146101c95780634b57b0be146101f45780634be55d1f1461021f5780636899cb701461024857610109565b80630dc913061461010b57806316605a0d1461013657806324a9d8531461017357806326232a2e1461019e57610109565b3661010957005b005b34801561011757600080fd5b506101206103b9565b60405161012d919061227d565b60405180910390f35b34801561014257600080fd5b5061015d600480360381019061015891906122ea565b6103dd565b60405161016a9190612332565b60405180910390f35b34801561017f57600080fd5b506101886103fd565b6040516101959190612366565b60405180910390f35b3480156101aa57600080fd5b506101b3610403565b6040516101c09190612366565b60405180910390f35b3480156101d557600080fd5b506101de610409565b6040516101eb9190612366565b60405180910390f35b34801561020057600080fd5b5061020961040f565b6040516102169190612390565b60405180910390f35b34801561022b57600080fd5b50610246600480360381019061024191906122ea565b610433565b005b34801561025457600080fd5b5061026f600480360381019061026a91906123e9565b6104ef565b005b34801561027d57600080fd5b5061028661059e565b005b34801561029457600080fd5b5061029d6105b2565b005b3480156102ab57600080fd5b506102b4610641565b6040516102c19190612390565b60405180910390f35b3480156102d657600080fd5b506102df61066a565b6040516102ec9190612390565b60405180910390f35b34801561030157600080fd5b5061031c60048036038101906103179190612442565b610690565b005b610338600480360381019061033391906126f5565b6107ab565b005b34801561034657600080fd5b5061034f6113c3565b60405161035c919061282d565b60405180910390f35b34801561037157600080fd5b5061037a6113e7565b6040516103879190612390565b60405180910390f35b34801561039c57600080fd5b506103b760048036038101906103b291906122ea565b611411565b005b7f000000000000000000000000000000000000000000000000000000000000000081565b60036020528060005260406000206000915054906101000a900460ff1681565b6103e881565b60045481565b6107d081565b7f000000000000000000000000000000000000000000000000000000000000000081565b61043b6114be565b60008173ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016104769190612390565b602060405180830381865afa158015610493573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104b7919061285d565b90506104eb6104c4610641565b828473ffffffffffffffffffffffffffffffffffffffff166115459092919063ffffffff16565b5050565b6104f76114be565b60008173ffffffffffffffffffffffffffffffffffffffff164760405161051d906128bb565b60006040518083038185875af1925050503d806000811461055a576040519150601f19603f3d011682016040523d82523d6000602084013e61055f565b606091505b505090508061059a576040517fd6bda27500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5050565b6105a66114be565b6105b060006115c4565b565b60006105bc6115f5565b90508073ffffffffffffffffffffffffffffffffffffffff166105dd6113e7565b73ffffffffffffffffffffffffffffffffffffffff161461063557806040517f118cdaa700000000000000000000000000000000000000000000000000000000815260040161062c9190612390565b60405180910390fd5b61063e816115c4565b50565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6106986114be565b6107d08211156106dd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106d490612953565b60405180910390fd5b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508260048190555081600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f49bc8f1c292131e71bfca22660d0716072ff2442b58d72840474dd83a390411c60405160405180910390a3505050565b6107b36115fd565b8015801561080c57507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff168a73ffffffffffffffffffffffffffffffffffffffff16145b156108da5760003411610854576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161084b906129bf565b60405180910390fd5b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663d0e30db0346040518263ffffffff1660e01b81526004016000604051808303818588803b1580156108bc57600080fd5b505af11580156108d0573d6000803e3d6000fd5b5050505050610a57565b6000341461091d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610914906129bf565b60405180910390fd5b60008a73ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016109589190612390565b602060405180830381865afa158015610975573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610999919061285d565b90506109c833308a8e73ffffffffffffffffffffffffffffffffffffffff16611641909392919063ffffffff16565b60008b73ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401610a039190612390565b602060405180830381865afa158015610a20573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a44919061285d565b90508181610a529190612a0e565b985050505b6000803411610a665787610a68565b345b9050600060018660ff1603610c6457600060646103e8610a889190612a42565b60045484610a969190612a42565b610aa09190612ab3565b90507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1686600081518110610aed57610aec612ae4565b5b602002602001015173ffffffffffffffffffffffffffffffffffffffff1614610c46576000600267ffffffffffffffff811115610b2d57610b2c6124fd565b5b604051908082528060200260200182016040528015610b5b5781602001602082028036833780820191505090505b50905086600081518110610b7257610b71612ae4565b5b602002602001015181600081518110610b8e57610b8d612ae4565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250507f000000000000000000000000000000000000000000000000000000000000000081600181518110610bfd57610bfc612ae4565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050610c43818360006116c3565b50505b610c5c868285610c569190612a0e565b8b6116c3565b915050610f55565b60028660ff1603610e6b57600060646103e8610c809190612a42565b60045484610c8e9190612a42565b610c989190612ab3565b90507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16610ce56000876118ea90919063ffffffff16565b73ffffffffffffffffffffffffffffffffffffffff1603610d1e57610d178d868386610d119190612a0e565b8b6119af565b9150610e65565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16610d696017876118ea90919063ffffffff16565b73ffffffffffffffffffffffffffffffffffffffff16148015610dd757507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff168c73ffffffffffffffffffffffffffffffffffffffff16145b15610e2657610de88d86858b6119af565b915060646103e8610df99190612a42565b60045483610e079190612a42565b610e119190612ab3565b90508082610e1f9190612a0e565b9150610e64565b610e498d610e416000602b89611abe9092919063ffffffff16565b8360006119af565b50610e618d868386610e5b9190612a0e565b8b6119af565b91505b5b50610f54565b60038660ff1603610ef457610e8185838a6116c3565b9050600060646103e8610e949190612a42565b60045483610ea29190612a42565b610eac9190612ab3565b9050610eec8660018851610ec09190612a0e565b81518110610ed157610ed0612ae4565b5b6020026020010151868385610ee69190612a0e565b8b6119af565b915050610f53565b60048660ff1603610f5257610f0b8c85848a6119af565b9050600060646103e8610f1e9190612a42565b60045483610f2c9190612a42565b610f369190612ab3565b9050610f4e868284610f489190612a0e565b8b6116c3565b9150505b5b5b5b891561108f577f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16632e1a7d4d826040518263ffffffff1660e01b8152600401610fb49190612366565b600060405180830381600087803b158015610fce57600080fd5b505af1158015610fe2573d6000803e3d6000fd5b5050505060003373ffffffffffffffffffffffffffffffffffffffff168260405161100c906128bb565b60006040518083038185875af1925050503d8060008114611049576040519150601f19603f3d011682016040523d82523d6000602084013e61104e565b606091505b5050905080611089576040517fd6bda27500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506110bb565b6110ba33828d73ffffffffffffffffffffffffffffffffffffffff166115459092919063ffffffff16565b5b60007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016111169190612390565b602060405180830381865afa158015611133573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611157919061285d565b1115611346577f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16632e1a7d4d7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016111f29190612390565b602060405180830381865afa15801561120f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611233919061285d565b6040518263ffffffff1660e01b815260040161124f9190612366565b600060405180830381600087803b15801561126957600080fd5b505af115801561127d573d6000803e3d6000fd5b50505050600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f193505050501580156112e9573d6000803e3d6000fd5b507f58793df5f4d270351f09efd433db93c69432142b69dc7ee38195fc630478c79f600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff164760405161133d929190612b13565b60405180910390a15b8a73ffffffffffffffffffffffffffffffffffffffff168c73ffffffffffffffffffffffffffffffffffffffff167fdd36740e2a012d93061a0d99eaa9107860955de4e90027d3cf465a055026c4078b846040516113a5929190612b3c565b60405180910390a350506113b7611c2a565b50505050505050505050565b7f000000000000000000000000000000000000000000000000000000000000000081565b6000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6114196114be565b80600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff16611479610641565b73ffffffffffffffffffffffffffffffffffffffff167f38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e2270060405160405180910390a350565b6114c66115f5565b73ffffffffffffffffffffffffffffffffffffffff166114e4610641565b73ffffffffffffffffffffffffffffffffffffffff1614611543576115076115f5565b6040517f118cdaa700000000000000000000000000000000000000000000000000000000815260040161153a9190612390565b60405180910390fd5b565b6115bf838473ffffffffffffffffffffffffffffffffffffffff1663a9059cbb8585604051602401611578929190612b13565b604051602081830303815290604052915060e01b6020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050611c34565b505050565b600160006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556115f281611ccb565b50565b600033905090565b6002805403611638576040517f3ee5aeb500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60028081905550565b6116bd848573ffffffffffffffffffffffffffffffffffffffff166323b872dd86868660405160240161167693929190612b65565b604051602081830303815290604052915060e01b6020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050611c34565b50505050565b60008084600186516116d59190612a0e565b815181106116e6576116e5612ae4565b5b602002602001015190506117368560008151811061170757611706612ae4565b5b60200260200101517f000000000000000000000000000000000000000000000000000000000000000086611d8f565b60008173ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016117719190612390565b602060405180830381865afa15801561178e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117b2919061285d565b90507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16635c11d79586868930610e10426118029190612b9c565b6040518663ffffffff1660e01b8152600401611822959493929190612c8e565b600060405180830381600087803b15801561183c57600080fd5b505af1158015611850573d6000803e3d6000fd5b5050505060008273ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b815260040161188f9190612390565b602060405180830381865afa1580156118ac573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118d0919061285d565b905081816118de9190612a0e565b93505050509392505050565b6000816014836118fa9190612b9c565b101561193b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161193290612d34565b60405180910390fd5b6014826119489190612b9c565b8351101561198b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161198290612da0565b60405180910390fd5b60006c01000000000000000000000000836020860101510490508091505092915050565b60006119dc857f000000000000000000000000000000000000000000000000000000000000000085611d8f565b600060405180608001604052808681526020013073ffffffffffffffffffffffffffffffffffffffff1681526020018581526020018481525090507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663b858183f826040518263ffffffff1660e01b8152600401611a709190612eb1565b6020604051808303816000875af1158015611a8f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ab3919061285d565b915050949350505050565b606081601f83611ace9190612b9c565b1015611b0f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b0690612f1f565b60405180910390fd5b828284611b1c9190612b9c565b1015611b5d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b5490612f1f565b60405180910390fd5b8183611b699190612b9c565b84511015611bac576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ba390612f8b565b60405180910390fd5b6060821560008114611bcd5760405191506000825260208201604052611c1e565b6040519150601f8416801560200281840101858101878315602002848b0101015b81831015611c0b5780518352602083019250602081019050611bee565b50868552601f19601f8301166040525050505b50809150509392505050565b6001600281905550565b6000611c5f828473ffffffffffffffffffffffffffffffffffffffff16611e7190919063ffffffff16565b90506000815114158015611c84575080806020019051810190611c829190612fc0565b155b15611cc657826040517f5274afe7000000000000000000000000000000000000000000000000000000008152600401611cbd9190612390565b60405180910390fd5b505050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b808373ffffffffffffffffffffffffffffffffffffffff1663dd62ed3e30856040518363ffffffff1660e01b8152600401611dcb929190612fed565b602060405180830381865afa158015611de8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e0c919061285d565b1015611e6c57611e3e8260008573ffffffffffffffffffffffffffffffffffffffff16611e879092919063ffffffff16565b611e6b826000198573ffffffffffffffffffffffffffffffffffffffff16611e879092919063ffffffff16565b5b505050565b6060611e7f83836000611f96565b905092915050565b60008373ffffffffffffffffffffffffffffffffffffffff1663095ea7b38484604051602401611eb8929190612b13565b604051602081830303815290604052915060e01b6020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050509050611f068482612063565b611f9057611f85848573ffffffffffffffffffffffffffffffffffffffff1663095ea7b3866000604051602401611f3e929190613051565b604051602081830303815290604052915060e01b6020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050611c34565b611f8f8482611c34565b5b50505050565b606081471015611fdd57306040517fcd786059000000000000000000000000000000000000000000000000000000008152600401611fd49190612390565b60405180910390fd5b6000808573ffffffffffffffffffffffffffffffffffffffff16848660405161200691906130ab565b60006040518083038185875af1925050503d8060008114612043576040519150601f19603f3d011682016040523d82523d6000602084013e612048565b606091505b509150915061205886838361212a565b925050509392505050565b60008060008473ffffffffffffffffffffffffffffffffffffffff168460405161208d91906130ab565b6000604051808303816000865af19150503d80600081146120ca576040519150601f19603f3d011682016040523d82523d6000602084013e6120cf565b606091505b50915091508180156120fd57506000815114806120fc5750808060200190518101906120fb9190612fc0565b5b5b8015612120575060008573ffffffffffffffffffffffffffffffffffffffff163b115b9250505092915050565b60608261213f5761213a826121b9565b6121b1565b60008251148015612167575060008473ffffffffffffffffffffffffffffffffffffffff163b145b156121a957836040517f9996b3150000000000000000000000000000000000000000000000000000000081526004016121a09190612390565b60405180910390fd5b8190506121b2565b5b9392505050565b6000815111156121cc5780518082602001fd5b6040517f1425ea4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600061224361223e612239846121fe565b61221e565b6121fe565b9050919050565b600061225582612228565b9050919050565b60006122678261224a565b9050919050565b6122778161225c565b82525050565b6000602082019050612292600083018461226e565b92915050565b6000604051905090565b600080fd5b600080fd5b60006122b7826121fe565b9050919050565b6122c7816122ac565b81146122d257600080fd5b50565b6000813590506122e4816122be565b92915050565b600060208284031215612300576122ff6122a2565b5b600061230e848285016122d5565b91505092915050565b60008115159050919050565b61232c81612317565b82525050565b60006020820190506123476000830184612323565b92915050565b6000819050919050565b6123608161234d565b82525050565b600060208201905061237b6000830184612357565b92915050565b61238a816122ac565b82525050565b60006020820190506123a56000830184612381565b92915050565b60006123b6826121fe565b9050919050565b6123c6816123ab565b81146123d157600080fd5b50565b6000813590506123e3816123bd565b92915050565b6000602082840312156123ff576123fe6122a2565b5b600061240d848285016123d4565b91505092915050565b61241f8161234d565b811461242a57600080fd5b50565b60008135905061243c81612416565b92915050565b60008060408385031215612459576124586122a2565b5b60006124678582860161242d565b9250506020612478858286016122d5565b9150509250929050565b61248b81612317565b811461249657600080fd5b50565b6000813590506124a881612482565b92915050565b600060ff82169050919050565b6124c4816124ae565b81146124cf57600080fd5b50565b6000813590506124e1816124bb565b92915050565b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b612535826124ec565b810181811067ffffffffffffffff82111715612554576125536124fd565b5b80604052505050565b6000612567612298565b9050612573828261252c565b919050565b600067ffffffffffffffff821115612593576125926124fd565b5b602082029050602081019050919050565b600080fd5b60006125bc6125b784612578565b61255d565b905080838252602082019050602084028301858111156125df576125de6125a4565b5b835b8181101561260857806125f488826122d5565b8452602084019350506020810190506125e1565b5050509392505050565b600082601f830112612627576126266124e7565b5b81356126378482602086016125a9565b91505092915050565b600080fd5b600067ffffffffffffffff8211156126605761265f6124fd565b5b612669826124ec565b9050602081019050919050565b82818337600083830152505050565b600061269861269384612645565b61255d565b9050828152602081018484840111156126b4576126b3612640565b5b6126bf848285612676565b509392505050565b600082601f8301126126dc576126db6124e7565b5b81356126ec848260208601612685565b91505092915050565b6000806000806000806000806000806101408b8d031215612719576127186122a2565b5b60006127278d828e016122d5565b9a505060206127388d828e016122d5565b99505060406127498d828e01612499565b985050606061275a8d828e0161242d565b975050608061276b8d828e0161242d565b96505060a061277c8d828e0161242d565b95505060c061278d8d828e016124d2565b94505060e08b013567ffffffffffffffff8111156127ae576127ad6122a7565b5b6127ba8d828e01612612565b9350506101008b013567ffffffffffffffff8111156127dc576127db6122a7565b5b6127e88d828e016126c7565b9250506101206127fa8d828e01612499565b9150509295989b9194979a5092959850565b60006128178261224a565b9050919050565b6128278161280c565b82525050565b6000602082019050612842600083018461281e565b92915050565b60008151905061285781612416565b92915050565b600060208284031215612873576128726122a2565b5b600061288184828501612848565b91505092915050565b600081905092915050565b50565b60006128a560008361288a565b91506128b082612895565b600082019050919050565b60006128c682612898565b9150819050919050565b600082825260208201905092915050565b7f506c6174666f726d20666565206578636565647320746865206d6178696d756d60008201527f206c696d69740000000000000000000000000000000000000000000000000000602082015250565b600061293d6026836128d0565b9150612948826128e1565b604082019050919050565b6000602082019050818103600083015261296c81612930565b9050919050565b7f696e76616c6964206d73672e76616c7565000000000000000000000000000000600082015250565b60006129a96011836128d0565b91506129b482612973565b602082019050919050565b600060208201905081810360008301526129d88161299c565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000612a198261234d565b9150612a248361234d565b9250828203905081811115612a3c57612a3b6129df565b5b92915050565b6000612a4d8261234d565b9150612a588361234d565b9250828202612a668161234d565b91508282048414831517612a7d57612a7c6129df565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000612abe8261234d565b9150612ac98361234d565b925082612ad957612ad8612a84565b5b828204905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000604082019050612b286000830185612381565b612b356020830184612357565b9392505050565b6000604082019050612b516000830185612357565b612b5e6020830184612357565b9392505050565b6000606082019050612b7a6000830186612381565b612b876020830185612381565b612b946040830184612357565b949350505050565b6000612ba78261234d565b9150612bb28361234d565b9250828201905080821115612bca57612bc96129df565b5b92915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b612c05816122ac565b82525050565b6000612c178383612bfc565b60208301905092915050565b6000602082019050919050565b6000612c3b82612bd0565b612c458185612bdb565b9350612c5083612bec565b8060005b83811015612c81578151612c688882612c0b565b9750612c7383612c23565b925050600181019050612c54565b5085935050505092915050565b600060a082019050612ca36000830188612357565b612cb06020830187612357565b8181036040830152612cc28186612c30565b9050612cd16060830185612381565b612cde6080830184612357565b9695505050505050565b7f746f416464726573735f6f766572666c6f770000000000000000000000000000600082015250565b6000612d1e6012836128d0565b9150612d2982612ce8565b602082019050919050565b60006020820190508181036000830152612d4d81612d11565b9050919050565b7f746f416464726573735f6f75744f66426f756e64730000000000000000000000600082015250565b6000612d8a6015836128d0565b9150612d9582612d54565b602082019050919050565b60006020820190508181036000830152612db981612d7d565b9050919050565b600081519050919050565b600082825260208201905092915050565b60005b83811015612dfa578082015181840152602081019050612ddf565b60008484015250505050565b6000612e1182612dc0565b612e1b8185612dcb565b9350612e2b818560208601612ddc565b612e34816124ec565b840191505092915050565b612e488161234d565b82525050565b60006080830160008301518482036000860152612e6b8282612e06565b9150506020830151612e806020860182612bfc565b506040830151612e936040860182612e3f565b506060830151612ea66060860182612e3f565b508091505092915050565b60006020820190508181036000830152612ecb8184612e4e565b905092915050565b7f736c6963655f6f766572666c6f77000000000000000000000000000000000000600082015250565b6000612f09600e836128d0565b9150612f1482612ed3565b602082019050919050565b60006020820190508181036000830152612f3881612efc565b9050919050565b7f736c6963655f6f75744f66426f756e6473000000000000000000000000000000600082015250565b6000612f756011836128d0565b9150612f8082612f3f565b602082019050919050565b60006020820190508181036000830152612fa481612f68565b9050919050565b600081519050612fba81612482565b92915050565b600060208284031215612fd657612fd56122a2565b5b6000612fe484828501612fab565b91505092915050565b60006040820190506130026000830185612381565b61300f6020830184612381565b9392505050565b6000819050919050565b600061303b61303661303184613016565b61221e565b61234d565b9050919050565b61304b81613020565b82525050565b60006040820190506130666000830185612381565b6130736020830184613042565b9392505050565b600061308582612dc0565b61308f818561288a565b935061309f818560208601612ddc565b80840191505092915050565b60006130b7828461307a565b91508190509291505056fea2646970667358221220d36836df6623a41d74a7f71140ac8855a7b4f5deb8c76bc833eeb89ee23a52c964736f6c6343000814003300000000000000000000000000000000000000000000000000000000000001f4000000000000000000000000e1ff5a4c489b11e094bfbb5d23c6d4597a3a79ad00000000000000000000000068b3465833fb72a70ecdf485e0e4c7bd8665fc450000000000000000000000004a7b5da61326a6379179b40d00f57e5bbdc962c20000000000000000000000004200000000000000000000000000000000000006

Deployed Bytecode

0x6080604052600436106101025760003560e01c8063715018a611610095578063c142486911610064578063c1424869146102f5578063d8b499cd1461031e578063deadbc141461033a578063e30c397814610365578063f2fde38b1461039057610109565b8063715018a61461027157806379ba5097146102885780638da5cb5b1461029f578063b3f00674146102ca57610109565b80633998a681116100d15780633998a681146101c95780634b57b0be146101f45780634be55d1f1461021f5780636899cb701461024857610109565b80630dc913061461010b57806316605a0d1461013657806324a9d8531461017357806326232a2e1461019e57610109565b3661010957005b005b34801561011757600080fd5b506101206103b9565b60405161012d919061227d565b60405180910390f35b34801561014257600080fd5b5061015d600480360381019061015891906122ea565b6103dd565b60405161016a9190612332565b60405180910390f35b34801561017f57600080fd5b506101886103fd565b6040516101959190612366565b60405180910390f35b3480156101aa57600080fd5b506101b3610403565b6040516101c09190612366565b60405180910390f35b3480156101d557600080fd5b506101de610409565b6040516101eb9190612366565b60405180910390f35b34801561020057600080fd5b5061020961040f565b6040516102169190612390565b60405180910390f35b34801561022b57600080fd5b50610246600480360381019061024191906122ea565b610433565b005b34801561025457600080fd5b5061026f600480360381019061026a91906123e9565b6104ef565b005b34801561027d57600080fd5b5061028661059e565b005b34801561029457600080fd5b5061029d6105b2565b005b3480156102ab57600080fd5b506102b4610641565b6040516102c19190612390565b60405180910390f35b3480156102d657600080fd5b506102df61066a565b6040516102ec9190612390565b60405180910390f35b34801561030157600080fd5b5061031c60048036038101906103179190612442565b610690565b005b610338600480360381019061033391906126f5565b6107ab565b005b34801561034657600080fd5b5061034f6113c3565b60405161035c919061282d565b60405180910390f35b34801561037157600080fd5b5061037a6113e7565b6040516103879190612390565b60405180910390f35b34801561039c57600080fd5b506103b760048036038101906103b291906122ea565b611411565b005b7f00000000000000000000000068b3465833fb72a70ecdf485e0e4c7bd8665fc4581565b60036020528060005260406000206000915054906101000a900460ff1681565b6103e881565b60045481565b6107d081565b7f000000000000000000000000420000000000000000000000000000000000000681565b61043b6114be565b60008173ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016104769190612390565b602060405180830381865afa158015610493573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104b7919061285d565b90506104eb6104c4610641565b828473ffffffffffffffffffffffffffffffffffffffff166115459092919063ffffffff16565b5050565b6104f76114be565b60008173ffffffffffffffffffffffffffffffffffffffff164760405161051d906128bb565b60006040518083038185875af1925050503d806000811461055a576040519150601f19603f3d011682016040523d82523d6000602084013e61055f565b606091505b505090508061059a576040517fd6bda27500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5050565b6105a66114be565b6105b060006115c4565b565b60006105bc6115f5565b90508073ffffffffffffffffffffffffffffffffffffffff166105dd6113e7565b73ffffffffffffffffffffffffffffffffffffffff161461063557806040517f118cdaa700000000000000000000000000000000000000000000000000000000815260040161062c9190612390565b60405180910390fd5b61063e816115c4565b50565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6106986114be565b6107d08211156106dd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106d490612953565b60405180910390fd5b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508260048190555081600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f49bc8f1c292131e71bfca22660d0716072ff2442b58d72840474dd83a390411c60405160405180910390a3505050565b6107b36115fd565b8015801561080c57507f000000000000000000000000420000000000000000000000000000000000000673ffffffffffffffffffffffffffffffffffffffff168a73ffffffffffffffffffffffffffffffffffffffff16145b156108da5760003411610854576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161084b906129bf565b60405180910390fd5b7f000000000000000000000000420000000000000000000000000000000000000673ffffffffffffffffffffffffffffffffffffffff1663d0e30db0346040518263ffffffff1660e01b81526004016000604051808303818588803b1580156108bc57600080fd5b505af11580156108d0573d6000803e3d6000fd5b5050505050610a57565b6000341461091d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610914906129bf565b60405180910390fd5b60008a73ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016109589190612390565b602060405180830381865afa158015610975573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610999919061285d565b90506109c833308a8e73ffffffffffffffffffffffffffffffffffffffff16611641909392919063ffffffff16565b60008b73ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401610a039190612390565b602060405180830381865afa158015610a20573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a44919061285d565b90508181610a529190612a0e565b985050505b6000803411610a665787610a68565b345b9050600060018660ff1603610c6457600060646103e8610a889190612a42565b60045484610a969190612a42565b610aa09190612ab3565b90507f000000000000000000000000420000000000000000000000000000000000000673ffffffffffffffffffffffffffffffffffffffff1686600081518110610aed57610aec612ae4565b5b602002602001015173ffffffffffffffffffffffffffffffffffffffff1614610c46576000600267ffffffffffffffff811115610b2d57610b2c6124fd565b5b604051908082528060200260200182016040528015610b5b5781602001602082028036833780820191505090505b50905086600081518110610b7257610b71612ae4565b5b602002602001015181600081518110610b8e57610b8d612ae4565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250507f000000000000000000000000420000000000000000000000000000000000000681600181518110610bfd57610bfc612ae4565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050610c43818360006116c3565b50505b610c5c868285610c569190612a0e565b8b6116c3565b915050610f55565b60028660ff1603610e6b57600060646103e8610c809190612a42565b60045484610c8e9190612a42565b610c989190612ab3565b90507f000000000000000000000000420000000000000000000000000000000000000673ffffffffffffffffffffffffffffffffffffffff16610ce56000876118ea90919063ffffffff16565b73ffffffffffffffffffffffffffffffffffffffff1603610d1e57610d178d868386610d119190612a0e565b8b6119af565b9150610e65565b7f000000000000000000000000420000000000000000000000000000000000000673ffffffffffffffffffffffffffffffffffffffff16610d696017876118ea90919063ffffffff16565b73ffffffffffffffffffffffffffffffffffffffff16148015610dd757507f000000000000000000000000420000000000000000000000000000000000000673ffffffffffffffffffffffffffffffffffffffff168c73ffffffffffffffffffffffffffffffffffffffff16145b15610e2657610de88d86858b6119af565b915060646103e8610df99190612a42565b60045483610e079190612a42565b610e119190612ab3565b90508082610e1f9190612a0e565b9150610e64565b610e498d610e416000602b89611abe9092919063ffffffff16565b8360006119af565b50610e618d868386610e5b9190612a0e565b8b6119af565b91505b5b50610f54565b60038660ff1603610ef457610e8185838a6116c3565b9050600060646103e8610e949190612a42565b60045483610ea29190612a42565b610eac9190612ab3565b9050610eec8660018851610ec09190612a0e565b81518110610ed157610ed0612ae4565b5b6020026020010151868385610ee69190612a0e565b8b6119af565b915050610f53565b60048660ff1603610f5257610f0b8c85848a6119af565b9050600060646103e8610f1e9190612a42565b60045483610f2c9190612a42565b610f369190612ab3565b9050610f4e868284610f489190612a0e565b8b6116c3565b9150505b5b5b5b891561108f577f000000000000000000000000420000000000000000000000000000000000000673ffffffffffffffffffffffffffffffffffffffff16632e1a7d4d826040518263ffffffff1660e01b8152600401610fb49190612366565b600060405180830381600087803b158015610fce57600080fd5b505af1158015610fe2573d6000803e3d6000fd5b5050505060003373ffffffffffffffffffffffffffffffffffffffff168260405161100c906128bb565b60006040518083038185875af1925050503d8060008114611049576040519150601f19603f3d011682016040523d82523d6000602084013e61104e565b606091505b5050905080611089576040517fd6bda27500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506110bb565b6110ba33828d73ffffffffffffffffffffffffffffffffffffffff166115459092919063ffffffff16565b5b60007f000000000000000000000000420000000000000000000000000000000000000673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016111169190612390565b602060405180830381865afa158015611133573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611157919061285d565b1115611346577f000000000000000000000000420000000000000000000000000000000000000673ffffffffffffffffffffffffffffffffffffffff16632e1a7d4d7f000000000000000000000000420000000000000000000000000000000000000673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016111f29190612390565b602060405180830381865afa15801561120f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611233919061285d565b6040518263ffffffff1660e01b815260040161124f9190612366565b600060405180830381600087803b15801561126957600080fd5b505af115801561127d573d6000803e3d6000fd5b50505050600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f193505050501580156112e9573d6000803e3d6000fd5b507f58793df5f4d270351f09efd433db93c69432142b69dc7ee38195fc630478c79f600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff164760405161133d929190612b13565b60405180910390a15b8a73ffffffffffffffffffffffffffffffffffffffff168c73ffffffffffffffffffffffffffffffffffffffff167fdd36740e2a012d93061a0d99eaa9107860955de4e90027d3cf465a055026c4078b846040516113a5929190612b3c565b60405180910390a350506113b7611c2a565b50505050505050505050565b7f0000000000000000000000004a7b5da61326a6379179b40d00f57e5bbdc962c281565b6000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6114196114be565b80600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff16611479610641565b73ffffffffffffffffffffffffffffffffffffffff167f38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e2270060405160405180910390a350565b6114c66115f5565b73ffffffffffffffffffffffffffffffffffffffff166114e4610641565b73ffffffffffffffffffffffffffffffffffffffff1614611543576115076115f5565b6040517f118cdaa700000000000000000000000000000000000000000000000000000000815260040161153a9190612390565b60405180910390fd5b565b6115bf838473ffffffffffffffffffffffffffffffffffffffff1663a9059cbb8585604051602401611578929190612b13565b604051602081830303815290604052915060e01b6020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050611c34565b505050565b600160006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556115f281611ccb565b50565b600033905090565b6002805403611638576040517f3ee5aeb500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60028081905550565b6116bd848573ffffffffffffffffffffffffffffffffffffffff166323b872dd86868660405160240161167693929190612b65565b604051602081830303815290604052915060e01b6020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050611c34565b50505050565b60008084600186516116d59190612a0e565b815181106116e6576116e5612ae4565b5b602002602001015190506117368560008151811061170757611706612ae4565b5b60200260200101517f0000000000000000000000004a7b5da61326a6379179b40d00f57e5bbdc962c286611d8f565b60008173ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016117719190612390565b602060405180830381865afa15801561178e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117b2919061285d565b90507f0000000000000000000000004a7b5da61326a6379179b40d00f57e5bbdc962c273ffffffffffffffffffffffffffffffffffffffff16635c11d79586868930610e10426118029190612b9c565b6040518663ffffffff1660e01b8152600401611822959493929190612c8e565b600060405180830381600087803b15801561183c57600080fd5b505af1158015611850573d6000803e3d6000fd5b5050505060008273ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b815260040161188f9190612390565b602060405180830381865afa1580156118ac573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118d0919061285d565b905081816118de9190612a0e565b93505050509392505050565b6000816014836118fa9190612b9c565b101561193b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161193290612d34565b60405180910390fd5b6014826119489190612b9c565b8351101561198b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161198290612da0565b60405180910390fd5b60006c01000000000000000000000000836020860101510490508091505092915050565b60006119dc857f00000000000000000000000068b3465833fb72a70ecdf485e0e4c7bd8665fc4585611d8f565b600060405180608001604052808681526020013073ffffffffffffffffffffffffffffffffffffffff1681526020018581526020018481525090507f00000000000000000000000068b3465833fb72a70ecdf485e0e4c7bd8665fc4573ffffffffffffffffffffffffffffffffffffffff1663b858183f826040518263ffffffff1660e01b8152600401611a709190612eb1565b6020604051808303816000875af1158015611a8f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ab3919061285d565b915050949350505050565b606081601f83611ace9190612b9c565b1015611b0f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b0690612f1f565b60405180910390fd5b828284611b1c9190612b9c565b1015611b5d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b5490612f1f565b60405180910390fd5b8183611b699190612b9c565b84511015611bac576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ba390612f8b565b60405180910390fd5b6060821560008114611bcd5760405191506000825260208201604052611c1e565b6040519150601f8416801560200281840101858101878315602002848b0101015b81831015611c0b5780518352602083019250602081019050611bee565b50868552601f19601f8301166040525050505b50809150509392505050565b6001600281905550565b6000611c5f828473ffffffffffffffffffffffffffffffffffffffff16611e7190919063ffffffff16565b90506000815114158015611c84575080806020019051810190611c829190612fc0565b155b15611cc657826040517f5274afe7000000000000000000000000000000000000000000000000000000008152600401611cbd9190612390565b60405180910390fd5b505050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b808373ffffffffffffffffffffffffffffffffffffffff1663dd62ed3e30856040518363ffffffff1660e01b8152600401611dcb929190612fed565b602060405180830381865afa158015611de8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e0c919061285d565b1015611e6c57611e3e8260008573ffffffffffffffffffffffffffffffffffffffff16611e879092919063ffffffff16565b611e6b826000198573ffffffffffffffffffffffffffffffffffffffff16611e879092919063ffffffff16565b5b505050565b6060611e7f83836000611f96565b905092915050565b60008373ffffffffffffffffffffffffffffffffffffffff1663095ea7b38484604051602401611eb8929190612b13565b604051602081830303815290604052915060e01b6020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050509050611f068482612063565b611f9057611f85848573ffffffffffffffffffffffffffffffffffffffff1663095ea7b3866000604051602401611f3e929190613051565b604051602081830303815290604052915060e01b6020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050611c34565b611f8f8482611c34565b5b50505050565b606081471015611fdd57306040517fcd786059000000000000000000000000000000000000000000000000000000008152600401611fd49190612390565b60405180910390fd5b6000808573ffffffffffffffffffffffffffffffffffffffff16848660405161200691906130ab565b60006040518083038185875af1925050503d8060008114612043576040519150601f19603f3d011682016040523d82523d6000602084013e612048565b606091505b509150915061205886838361212a565b925050509392505050565b60008060008473ffffffffffffffffffffffffffffffffffffffff168460405161208d91906130ab565b6000604051808303816000865af19150503d80600081146120ca576040519150601f19603f3d011682016040523d82523d6000602084013e6120cf565b606091505b50915091508180156120fd57506000815114806120fc5750808060200190518101906120fb9190612fc0565b5b5b8015612120575060008573ffffffffffffffffffffffffffffffffffffffff163b115b9250505092915050565b60608261213f5761213a826121b9565b6121b1565b60008251148015612167575060008473ffffffffffffffffffffffffffffffffffffffff163b145b156121a957836040517f9996b3150000000000000000000000000000000000000000000000000000000081526004016121a09190612390565b60405180910390fd5b8190506121b2565b5b9392505050565b6000815111156121cc5780518082602001fd5b6040517f1425ea4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600061224361223e612239846121fe565b61221e565b6121fe565b9050919050565b600061225582612228565b9050919050565b60006122678261224a565b9050919050565b6122778161225c565b82525050565b6000602082019050612292600083018461226e565b92915050565b6000604051905090565b600080fd5b600080fd5b60006122b7826121fe565b9050919050565b6122c7816122ac565b81146122d257600080fd5b50565b6000813590506122e4816122be565b92915050565b600060208284031215612300576122ff6122a2565b5b600061230e848285016122d5565b91505092915050565b60008115159050919050565b61232c81612317565b82525050565b60006020820190506123476000830184612323565b92915050565b6000819050919050565b6123608161234d565b82525050565b600060208201905061237b6000830184612357565b92915050565b61238a816122ac565b82525050565b60006020820190506123a56000830184612381565b92915050565b60006123b6826121fe565b9050919050565b6123c6816123ab565b81146123d157600080fd5b50565b6000813590506123e3816123bd565b92915050565b6000602082840312156123ff576123fe6122a2565b5b600061240d848285016123d4565b91505092915050565b61241f8161234d565b811461242a57600080fd5b50565b60008135905061243c81612416565b92915050565b60008060408385031215612459576124586122a2565b5b60006124678582860161242d565b9250506020612478858286016122d5565b9150509250929050565b61248b81612317565b811461249657600080fd5b50565b6000813590506124a881612482565b92915050565b600060ff82169050919050565b6124c4816124ae565b81146124cf57600080fd5b50565b6000813590506124e1816124bb565b92915050565b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b612535826124ec565b810181811067ffffffffffffffff82111715612554576125536124fd565b5b80604052505050565b6000612567612298565b9050612573828261252c565b919050565b600067ffffffffffffffff821115612593576125926124fd565b5b602082029050602081019050919050565b600080fd5b60006125bc6125b784612578565b61255d565b905080838252602082019050602084028301858111156125df576125de6125a4565b5b835b8181101561260857806125f488826122d5565b8452602084019350506020810190506125e1565b5050509392505050565b600082601f830112612627576126266124e7565b5b81356126378482602086016125a9565b91505092915050565b600080fd5b600067ffffffffffffffff8211156126605761265f6124fd565b5b612669826124ec565b9050602081019050919050565b82818337600083830152505050565b600061269861269384612645565b61255d565b9050828152602081018484840111156126b4576126b3612640565b5b6126bf848285612676565b509392505050565b600082601f8301126126dc576126db6124e7565b5b81356126ec848260208601612685565b91505092915050565b6000806000806000806000806000806101408b8d031215612719576127186122a2565b5b60006127278d828e016122d5565b9a505060206127388d828e016122d5565b99505060406127498d828e01612499565b985050606061275a8d828e0161242d565b975050608061276b8d828e0161242d565b96505060a061277c8d828e0161242d565b95505060c061278d8d828e016124d2565b94505060e08b013567ffffffffffffffff8111156127ae576127ad6122a7565b5b6127ba8d828e01612612565b9350506101008b013567ffffffffffffffff8111156127dc576127db6122a7565b5b6127e88d828e016126c7565b9250506101206127fa8d828e01612499565b9150509295989b9194979a5092959850565b60006128178261224a565b9050919050565b6128278161280c565b82525050565b6000602082019050612842600083018461281e565b92915050565b60008151905061285781612416565b92915050565b600060208284031215612873576128726122a2565b5b600061288184828501612848565b91505092915050565b600081905092915050565b50565b60006128a560008361288a565b91506128b082612895565b600082019050919050565b60006128c682612898565b9150819050919050565b600082825260208201905092915050565b7f506c6174666f726d20666565206578636565647320746865206d6178696d756d60008201527f206c696d69740000000000000000000000000000000000000000000000000000602082015250565b600061293d6026836128d0565b9150612948826128e1565b604082019050919050565b6000602082019050818103600083015261296c81612930565b9050919050565b7f696e76616c6964206d73672e76616c7565000000000000000000000000000000600082015250565b60006129a96011836128d0565b91506129b482612973565b602082019050919050565b600060208201905081810360008301526129d88161299c565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000612a198261234d565b9150612a248361234d565b9250828203905081811115612a3c57612a3b6129df565b5b92915050565b6000612a4d8261234d565b9150612a588361234d565b9250828202612a668161234d565b91508282048414831517612a7d57612a7c6129df565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000612abe8261234d565b9150612ac98361234d565b925082612ad957612ad8612a84565b5b828204905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000604082019050612b286000830185612381565b612b356020830184612357565b9392505050565b6000604082019050612b516000830185612357565b612b5e6020830184612357565b9392505050565b6000606082019050612b7a6000830186612381565b612b876020830185612381565b612b946040830184612357565b949350505050565b6000612ba78261234d565b9150612bb28361234d565b9250828201905080821115612bca57612bc96129df565b5b92915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b612c05816122ac565b82525050565b6000612c178383612bfc565b60208301905092915050565b6000602082019050919050565b6000612c3b82612bd0565b612c458185612bdb565b9350612c5083612bec565b8060005b83811015612c81578151612c688882612c0b565b9750612c7383612c23565b925050600181019050612c54565b5085935050505092915050565b600060a082019050612ca36000830188612357565b612cb06020830187612357565b8181036040830152612cc28186612c30565b9050612cd16060830185612381565b612cde6080830184612357565b9695505050505050565b7f746f416464726573735f6f766572666c6f770000000000000000000000000000600082015250565b6000612d1e6012836128d0565b9150612d2982612ce8565b602082019050919050565b60006020820190508181036000830152612d4d81612d11565b9050919050565b7f746f416464726573735f6f75744f66426f756e64730000000000000000000000600082015250565b6000612d8a6015836128d0565b9150612d9582612d54565b602082019050919050565b60006020820190508181036000830152612db981612d7d565b9050919050565b600081519050919050565b600082825260208201905092915050565b60005b83811015612dfa578082015181840152602081019050612ddf565b60008484015250505050565b6000612e1182612dc0565b612e1b8185612dcb565b9350612e2b818560208601612ddc565b612e34816124ec565b840191505092915050565b612e488161234d565b82525050565b60006080830160008301518482036000860152612e6b8282612e06565b9150506020830151612e806020860182612bfc565b506040830151612e936040860182612e3f565b506060830151612ea66060860182612e3f565b508091505092915050565b60006020820190508181036000830152612ecb8184612e4e565b905092915050565b7f736c6963655f6f766572666c6f77000000000000000000000000000000000000600082015250565b6000612f09600e836128d0565b9150612f1482612ed3565b602082019050919050565b60006020820190508181036000830152612f3881612efc565b9050919050565b7f736c6963655f6f75744f66426f756e6473000000000000000000000000000000600082015250565b6000612f756011836128d0565b9150612f8082612f3f565b602082019050919050565b60006020820190508181036000830152612fa481612f68565b9050919050565b600081519050612fba81612482565b92915050565b600060208284031215612fd657612fd56122a2565b5b6000612fe484828501612fab565b91505092915050565b60006040820190506130026000830185612381565b61300f6020830184612381565b9392505050565b6000819050919050565b600061303b61303661303184613016565b61221e565b61234d565b9050919050565b61304b81613020565b82525050565b60006040820190506130666000830185612381565b6130736020830184613042565b9392505050565b600061308582612dc0565b61308f818561288a565b935061309f818560208601612ddc565b80840191505092915050565b60006130b7828461307a565b91508190509291505056fea2646970667358221220d36836df6623a41d74a7f71140ac8855a7b4f5deb8c76bc833eeb89ee23a52c964736f6c63430008140033

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

00000000000000000000000000000000000000000000000000000000000001f4000000000000000000000000e1ff5a4c489b11e094bfbb5d23c6d4597a3a79ad00000000000000000000000068b3465833fb72a70ecdf485e0e4c7bd8665fc450000000000000000000000004a7b5da61326a6379179b40d00f57e5bbdc962c20000000000000000000000004200000000000000000000000000000000000006

-----Decoded View---------------
Arg [0] : _fee (uint256): 500
Arg [1] : _feeReceiver (address): 0xe1Ff5a4C489B11E094BFBB5d23c6d4597a3a79AD
Arg [2] : _v3Router (address): 0x68b3465833fb72A70ecDF485E0e4C7bD8665Fc45
Arg [3] : _v2Router (address): 0x4A7b5Da61326A6379179b40d00F57E5bbDC962c2
Arg [4] : _weth (address): 0x4200000000000000000000000000000000000006

-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000001f4
Arg [1] : 000000000000000000000000e1ff5a4c489b11e094bfbb5d23c6d4597a3a79ad
Arg [2] : 00000000000000000000000068b3465833fb72a70ecdf485e0e4c7bd8665fc45
Arg [3] : 0000000000000000000000004a7b5da61326a6379179b40d00f57e5bbdc962c2
Arg [4] : 0000000000000000000000004200000000000000000000000000000000000006


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

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

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