ETH Price: $3,307.19 (+0.00%)
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Exact Input Sing...217086242025-01-26 12:15:111 hr ago1737893711IN
0x32818186...Dcc626bcB
0 ETH0.000591983.33360739
Exact Input Sing...217074942025-01-26 8:27:115 hrs ago1737880031IN
0x32818186...Dcc626bcB
0.0002 ETH0.000475523.29257194
Exact Input Sing...217074572025-01-26 8:19:475 hrs ago1737879587IN
0x32818186...Dcc626bcB
0.0002 ETH0.000466563.2153281
Exact Input Sing...217055242025-01-26 1:52:1111 hrs ago1737856331IN
0x32818186...Dcc626bcB
0.005 ETH0.000575633.63392799
Exact Input Sing...217009092025-01-25 10:25:2327 hrs ago1737800723IN
0x32818186...Dcc626bcB
0.015 ETH0.000735614.97403071
Exact Input Sing...217000552025-01-25 7:33:3530 hrs ago1737790415IN
0x32818186...Dcc626bcB
0.0759 ETH0.000757164.98902013
Exact Input Sing...216959562025-01-24 17:48:2344 hrs ago1737740903IN
0x32818186...Dcc626bcB
0.007 ETH0.0018082312.50787505
Exact Input Sing...216948952025-01-24 14:15:3547 hrs ago1737728135IN
0x32818186...Dcc626bcB
0.003 ETH0.0024248418.88113308
Exact Input Sing...216948872025-01-24 14:13:5947 hrs ago1737728039IN
0x32818186...Dcc626bcB
0.003 ETH0.0023699218.45177793
Exact Input Sing...216948852025-01-24 14:13:3547 hrs ago1737728015IN
0x32818186...Dcc626bcB
0.003 ETH0.0028449118.68988743
Exact Input Sing...216923872025-01-24 5:51:592 days ago1737697919IN
0x32818186...Dcc626bcB
0.001 ETH0.000659484.35336065
Exact Input Sing...216902522025-01-23 22:42:112 days ago1737672131IN
0x32818186...Dcc626bcB
0.065 ETH0.0018643610.54452342
Exact Input Sing...216892012025-01-23 19:11:352 days ago1737659495IN
0x32818186...Dcc626bcB
0.045 ETH0.0016311710.86858193
Exact Input Sing...216795992025-01-22 11:01:594 days ago1737543719IN
0x32818186...Dcc626bcB
0.001 ETH0.001145987.93370013
Exact Input Sing...216782052025-01-22 6:21:474 days ago1737526907IN
0x32818186...Dcc626bcB
0.019 ETH0.001186568.20651806
Exact Input Sing...216730752025-01-21 13:10:595 days ago1737465059IN
0x32818186...Dcc626bcB
0.0021 ETH0.0017426112.07224043
Exact Input Sing...216687242025-01-20 22:35:115 days ago1737412511IN
0x32818186...Dcc626bcB
0.002 ETH0.0027166418.6733014
Exact Input Sing...216627832025-01-20 2:41:596 days ago1737340919IN
0x32818186...Dcc626bcB
0.032 ETH0.0056712241.94845524
Exact Input Sing...216558182025-01-19 3:22:117 days ago1737256931IN
0x32818186...Dcc626bcB
0.08 ETH0.000991497.41507205
Exact Input Sing...216521922025-01-18 15:12:477 days ago1737213167IN
0x32818186...Dcc626bcB
0.012 ETH0.0035675526.39254058
Exact Input Sing...216466472025-01-17 20:37:238 days ago1737146243IN
0x32818186...Dcc626bcB
0 ETH0.0023036412.97497087
Exact Input216460752025-01-17 18:42:478 days ago1737139367IN
0x32818186...Dcc626bcB
0.007 ETH0.0024727711.1916569
Exact Input Sing...216422532025-01-17 5:53:599 days ago1737093239IN
0x32818186...Dcc626bcB
0 ETH0.000877964.49355502
Exact Input Sing...216365452025-01-16 10:47:4710 days ago1737024467IN
0x32818186...Dcc626bcB
0.0005 ETH0.000511693.80093847
Exact Input Sing...216360842025-01-16 9:14:5910 days ago1737018899IN
0x32818186...Dcc626bcB
0.001 ETH0.000740564.92553301
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block
From
To
217086242025-01-26 12:15:111 hr ago1737893711
0x32818186...Dcc626bcB
0.01138074 ETH
217086242025-01-26 12:15:111 hr ago1737893711
0x32818186...Dcc626bcB
0.00011495 ETH
217086242025-01-26 12:15:111 hr ago1737893711
0x32818186...Dcc626bcB
0.0114957 ETH
217074942025-01-26 8:27:115 hrs ago1737880031
0x32818186...Dcc626bcB
0.000198 ETH
217074942025-01-26 8:27:115 hrs ago1737880031
0x32818186...Dcc626bcB
0.000002 ETH
217074572025-01-26 8:19:475 hrs ago1737879587
0x32818186...Dcc626bcB
0.000198 ETH
217074572025-01-26 8:19:475 hrs ago1737879587
0x32818186...Dcc626bcB
0.000002 ETH
217055242025-01-26 1:52:1111 hrs ago1737856331
0x32818186...Dcc626bcB
0.00007414 ETH
217055242025-01-26 1:52:1111 hrs ago1737856331
0x32818186...Dcc626bcB
0.00007414 ETH
217055242025-01-26 1:52:1111 hrs ago1737856331
0x32818186...Dcc626bcB
0.00495 ETH
217055242025-01-26 1:52:1111 hrs ago1737856331
0x32818186...Dcc626bcB
0.00005 ETH
217009092025-01-25 10:25:2327 hrs ago1737800723
0x32818186...Dcc626bcB
0.01485 ETH
217009092025-01-25 10:25:2327 hrs ago1737800723
0x32818186...Dcc626bcB
0.00015 ETH
217000552025-01-25 7:33:3530 hrs ago1737790415
0x32818186...Dcc626bcB
0.075141 ETH
217000552025-01-25 7:33:3530 hrs ago1737790415
0x32818186...Dcc626bcB
0.000759 ETH
216959562025-01-24 17:48:2344 hrs ago1737740903
0x32818186...Dcc626bcB
0.00693 ETH
216959562025-01-24 17:48:2344 hrs ago1737740903
0x32818186...Dcc626bcB
0.00007 ETH
216948952025-01-24 14:15:3547 hrs ago1737728135
0x32818186...Dcc626bcB
0.00297 ETH
216948952025-01-24 14:15:3547 hrs ago1737728135
0x32818186...Dcc626bcB
0.00003 ETH
216948872025-01-24 14:13:5947 hrs ago1737728039
0x32818186...Dcc626bcB
0.00297 ETH
216948872025-01-24 14:13:5947 hrs ago1737728039
0x32818186...Dcc626bcB
0.00003 ETH
216948852025-01-24 14:13:3547 hrs ago1737728015
0x32818186...Dcc626bcB
0.00297 ETH
216948852025-01-24 14:13:3547 hrs ago1737728015
0x32818186...Dcc626bcB
0.00003 ETH
216923872025-01-24 5:51:592 days ago1737697919
0x32818186...Dcc626bcB
0.00099 ETH
216923872025-01-24 5:51:592 days ago1737697919
0x32818186...Dcc626bcB
0.00001 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
UniswapV3ProxyDegen

Compiler Version
v0.8.18+commit.87f61d96

Optimization Enabled:
Yes with 200 runs

Other Settings:
paris EvmVersion
File 1 of 16 : UniswapV3ProxyDegen.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.18;
pragma abicoder v2;

import {IERC20, SafeERC20} from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol";
import {ISwapRouter02} from 'swap-router-contracts/interfaces/ISwapRouter02.sol';

import {IWETH} from "../interfaces/IWETH.sol";
interface ISwapRouter2 is ISwapRouter02 {
    function refundETH() external payable;
}

/**
 * @title UniswapV3Proxy
 * @notice this contract is a proxy contract to uniswapV3 router contract
 * @notice token to token swap is not supported
 * @dev the proxy contract method names matches exactly with uniswapV3 contract to make integration simpler
 * @dev the swap methods take extra parameters along with original params such as feePercentage
 * @dev feePercentage is represented as 1% = 100
 */

contract UniswapV3ProxyDegen is Ownable {
    using SafeERC20 for IERC20;
    address public immutable router;
    address public immutable weth;
    address public feeReceiver;

    event SetFeeReceiver(address indexed oldFeeReceiver, address indexed newFeeReceiver);

    constructor(address _router, address _weth, address _feeReceiver) {
        require(_router != address(0), "Invalid Address");
        require(_weth != address(0), "Invalid Address");
        router = _router;
        weth = _weth;
        feeReceiver = _feeReceiver;
    }

    /**
     * @notice set new feeReceiver address
     */
    function setFeeReceiver(address _feeReceiver) external onlyOwner {
        emit SetFeeReceiver(feeReceiver, _feeReceiver);
        feeReceiver = _feeReceiver;
    }

    function exactInputSingle(
        ISwapRouter2.ExactInputSingleParams memory params,
        uint256 feePercentage
    )external payable {
        // either tokenIn or tokenOut must be ETH
        if (msg.value > 0) {
            require(params.tokenIn == weth, "UniswapV3Proxy: INVALID_TOKEN_IN");
            // deduct fee from amountIn
            _beforeETHSwap(feePercentage);
            // set amountIn after deducting fee
            uint256 ethToSend = address(this).balance;
            params.amountIn = ethToSend;
            // swap on uniswap router
            ISwapRouter2(router).exactInputSingle{ value: ethToSend }(params);
            // refund unspent ETH
            _refundUnspentETH();
        } else {
            require(params.tokenOut == weth, "UniswapV3Proxy: INVALID_TOKEN_OUT");
            // transfer erc20 from user to proxy contract
            _beforeTokenSwap(params.tokenIn, params.amountIn);
            // set recipient to proxy contract. the received ETH will be sent to this address
            address to = params.recipient;
            params.recipient = address(this);
            // swap on uniswap router
            ISwapRouter2(router).exactInputSingle(params);
            // send the received ETH to the receiver and send the fee amount to feeReceiver
            _handlePostETHReceive(to, feePercentage);
        }
    }

    function exactInput(
        address tokenIn,
        address tokenOut,
        ISwapRouter2.ExactInputParams memory params,
        uint256 feePercentage
    )external payable {
        if (msg.value > 0) {
            require(tokenIn == weth, "UniswapV3Proxy: INVALID_TOKEN_IN");
            _beforeETHSwap(feePercentage);
            uint256 ethToSend = address(this).balance;
            params.amountIn = ethToSend;
            // swap on uniswap router
            ISwapRouter2(router).exactInput{ value: ethToSend }(params);
            _refundUnspentETH();
        } else {
            require(tokenOut == weth, "UniswapV3Proxy: INVALID_TOKEN_OUT");
            _beforeTokenSwap(tokenIn, params.amountIn);
            address to = params.recipient;
            params.recipient = address(this);
            // swap on uniswap router
            ISwapRouter2(router).exactInput(params);
            _handlePostETHReceive(to, feePercentage);
        }
    }

    function exactOutputSingle(
        ISwapRouter2.ExactOutputSingleParams memory params,
        uint256 feePercentage
    )external payable {
        if (msg.value > 0) {
            require(params.tokenIn == weth, "UniswapV3Proxy: INVALID_TOKEN_IN");
            _beforeETHSwap(feePercentage);
            uint256 ethToSend = address(this).balance;
            params.amountInMaximum = ethToSend;
            // swap on uniswap router
            ISwapRouter2(router).exactOutputSingle{ value: ethToSend }(params);
            _refundUnspentETH();
        } else {
            require(params.tokenOut == weth, "UniswapV3Proxy: INVALID_TOKEN_OUT");
            _beforeTokenSwap(params.tokenIn, params.amountInMaximum);
            address to = params.recipient;
            params.recipient = address(this);
            // swap on uniswap router
            ISwapRouter2(router).exactOutputSingle(params);
            _handlePostETHReceive(to, feePercentage);
            _refundRemainingTokens(params.tokenIn);
        }
    }

    function exactOutput(
        address tokenIn,
        address tokenOut,
        ISwapRouter2.ExactOutputParams memory params,
        uint256 feePercentage
    )external payable {
        if (msg.value > 0) {
            require(tokenIn == weth, "UniswapV3Proxy: INVALID_TOKEN_IN");
            _beforeETHSwap(feePercentage);
            uint256 ethToSend = address(this).balance;
            params.amountInMaximum = ethToSend;
            // swap on uniswap router
            ISwapRouter2(router).exactOutput{ value: ethToSend }(params);
            _refundUnspentETH();
        } else {
            require(tokenOut == weth, "UniswapV3Proxy: INVALID_TOKEN_OUT");
            _beforeTokenSwap(tokenIn, params.amountInMaximum);
            address to = params.recipient;
            params.recipient = address(this);
            // swap on uniswap router
            ISwapRouter2(router).exactOutput(params);
            _handlePostETHReceive(to, feePercentage);
            _refundRemainingTokens(tokenIn);
        }
    }

    /**
     * @notice preprocessing before token swap on uniswap
     * @dev fetch the fromToken amount from user and approves to spend on uniswap
     * @param token fromToken address
     * @param amountIn amount to swap
     */
    function _beforeTokenSwap(address token, uint amountIn) internal {
        // transfer erc20 from user to proxy contract
        IERC20(token).safeTransferFrom(msg.sender, address(this), amountIn);
        // approve token to spend on behalf of proxy contract
        IERC20(token).approve(router, amountIn);
    }
    function _beforeETHSwap(uint256 feePercentage) internal {
        uint256 feeAmount;
        // send platform fee to receiver address
        if (feeReceiver != address(0) && feePercentage > 0) {
            feeAmount = (msg.value * feePercentage) / 100_00;
            payable(feeReceiver).transfer(feeAmount);
        }
    }
    /**
     * @notice post processing after token swap on uniswap
     * @dev sends feeAmount to receiver and sends back sender the remaining balance of amountIn after swap
     * @param token fromToken address
     */
    function _refundRemainingTokens(address token) internal {
        // Refund remaining amount to msg.sender
        uint256 balance = IERC20(token).balanceOf(address(this));
        if (balance > 0) {
            IERC20(token).safeTransfer(msg.sender, balance);
        }
    }

    // refund remaining ETH to msg.sender
    function _refundUnspentETH() internal {
        // retrieve remaining ETH from router
        ISwapRouter2(router).refundETH();
        // transfer remaining ETH from amountIn to msg.sender
        uint256 balance = address(this).balance;
        payable(msg.sender).transfer(balance);
    }

    /**
     * @notice post processing after token swap to eth
     * @dev deduct the feeAmount and send remaining eth to receiver
     */
    function _handlePostETHReceive(address to,  uint256 feePercentage) internal {
        // convert weth to eth
        IWETH(weth).withdraw(IERC20(weth).balanceOf(address(this)));
        // send the received ETH to the receiver and send the fee amount to feeReceiver
        uint256 ethReceived = address(this).balance;
        uint256 feeAmount;
        if (feeReceiver != address(0) && feePercentage > 0) {
            feeAmount = (ethReceived * feePercentage) / 100_00;
            payable(feeReceiver).transfer(feeAmount);
        }
        payable(to).transfer(ethReceived - feeAmount);
    }
    receive() external payable {}
}

File 2 of 16 : SafeERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";
import "../extensions/draft-IERC20Permit.sol";
import "../../../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;

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

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

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

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

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

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

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

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

File 3 of 16 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)

pragma solidity ^0.8.0;

import "../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.
 *
 * By default, the owner account will be the one that deploys the contract. 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;

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _transferOwnership(_msgSender());
    }

    /**
     * @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 {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing 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 {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _transferOwnership(newOwner);
    }

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

File 4 of 16 : ISwapRouter02.sol
// SPDX-License-Identifier: GPL-2.0-or-later
pragma solidity >=0.7.5;
pragma abicoder v2;

import '@uniswap/v3-periphery/contracts/interfaces/ISelfPermit.sol';

import './IV2SwapRouter.sol';
import './IV3SwapRouter.sol';
import './IApproveAndCall.sol';
import './IMulticallExtended.sol';

/// @title Router token swapping functionality
interface ISwapRouter02 is IV2SwapRouter, IV3SwapRouter, IApproveAndCall, IMulticallExtended, ISelfPermit {

}

File 5 of 16 : IWETH.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.5.0;

interface IWETH {
    function deposit() external payable;

    function transfer(address dst, uint256 wad) external returns (bool);

    function withdraw(uint256 wad) external;
}

File 6 of 16 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

File 7 of 16 : draft-IERC20Permit.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/draft-IERC20Permit.sol)

pragma solidity ^0.8.0;

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

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

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

File 8 of 16 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Address.sol)

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 9 of 16 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

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

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

File 10 of 16 : ISelfPermit.sol
// SPDX-License-Identifier: GPL-2.0-or-later
pragma solidity >=0.7.5;

/// @title Self Permit
/// @notice Functionality to call permit on any EIP-2612-compliant token for use in the route
interface ISelfPermit {
    /// @notice Permits this contract to spend a given token from `msg.sender`
    /// @dev The `owner` is always msg.sender and the `spender` is always address(this).
    /// @param token The address of the token spent
    /// @param value The amount that can be spent of token
    /// @param deadline A timestamp, the current blocktime must be less than or equal to this timestamp
    /// @param v Must produce valid secp256k1 signature from the holder along with `r` and `s`
    /// @param r Must produce valid secp256k1 signature from the holder along with `v` and `s`
    /// @param s Must produce valid secp256k1 signature from the holder along with `r` and `v`
    function selfPermit(
        address token,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external payable;

    /// @notice Permits this contract to spend a given token from `msg.sender`
    /// @dev The `owner` is always msg.sender and the `spender` is always address(this).
    /// Can be used instead of #selfPermit to prevent calls from failing due to a frontrun of a call to #selfPermit
    /// @param token The address of the token spent
    /// @param value The amount that can be spent of token
    /// @param deadline A timestamp, the current blocktime must be less than or equal to this timestamp
    /// @param v Must produce valid secp256k1 signature from the holder along with `r` and `s`
    /// @param r Must produce valid secp256k1 signature from the holder along with `v` and `s`
    /// @param s Must produce valid secp256k1 signature from the holder along with `r` and `v`
    function selfPermitIfNecessary(
        address token,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external payable;

    /// @notice Permits this contract to spend the sender's tokens for permit signatures that have the `allowed` parameter
    /// @dev The `owner` is always msg.sender and the `spender` is always address(this)
    /// @param token The address of the token spent
    /// @param nonce The current nonce of the owner
    /// @param expiry The timestamp at which the permit is no longer valid
    /// @param v Must produce valid secp256k1 signature from the holder along with `r` and `s`
    /// @param r Must produce valid secp256k1 signature from the holder along with `v` and `s`
    /// @param s Must produce valid secp256k1 signature from the holder along with `r` and `v`
    function selfPermitAllowed(
        address token,
        uint256 nonce,
        uint256 expiry,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external payable;

    /// @notice Permits this contract to spend the sender's tokens for permit signatures that have the `allowed` parameter
    /// @dev The `owner` is always msg.sender and the `spender` is always address(this)
    /// Can be used instead of #selfPermitAllowed to prevent calls from failing due to a frontrun of a call to #selfPermitAllowed.
    /// @param token The address of the token spent
    /// @param nonce The current nonce of the owner
    /// @param expiry The timestamp at which the permit is no longer valid
    /// @param v Must produce valid secp256k1 signature from the holder along with `r` and `s`
    /// @param r Must produce valid secp256k1 signature from the holder along with `v` and `s`
    /// @param s Must produce valid secp256k1 signature from the holder along with `r` and `v`
    function selfPermitAllowedIfNecessary(
        address token,
        uint256 nonce,
        uint256 expiry,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external payable;
}

File 11 of 16 : IV2SwapRouter.sol
// SPDX-License-Identifier: GPL-2.0-or-later
pragma solidity >=0.7.5;
pragma abicoder v2;

/// @title Router token swapping functionality
/// @notice Functions for swapping tokens via Uniswap V2
interface IV2SwapRouter {
    /// @notice Swaps `amountIn` of one token for as much as possible of another token
    /// @dev Setting `amountIn` to 0 will cause the contract to look up its own balance,
    /// and swap the entire amount, enabling contracts to send tokens before calling this function.
    /// @param amountIn The amount of token to swap
    /// @param amountOutMin The minimum amount of output that must be received
    /// @param path The ordered list of tokens to swap through
    /// @param to The recipient address
    /// @return amountOut The amount of the received token
    function swapExactTokensForTokens(
        uint256 amountIn,
        uint256 amountOutMin,
        address[] calldata path,
        address to
    ) external payable returns (uint256 amountOut);

    /// @notice Swaps as little as possible of one token for an exact amount of another token
    /// @param amountOut The amount of token to swap for
    /// @param amountInMax The maximum amount of input that the caller will pay
    /// @param path The ordered list of tokens to swap through
    /// @param to The recipient address
    /// @return amountIn The amount of token to pay
    function swapTokensForExactTokens(
        uint256 amountOut,
        uint256 amountInMax,
        address[] calldata path,
        address to
    ) external payable returns (uint256 amountIn);
}

File 12 of 16 : IV3SwapRouter.sol
// SPDX-License-Identifier: GPL-2.0-or-later
pragma solidity >=0.7.5;
pragma abicoder v2;

import '@uniswap/v3-core/contracts/interfaces/callback/IUniswapV3SwapCallback.sol';

/// @title Router token swapping functionality
/// @notice Functions for swapping tokens via Uniswap V3
interface IV3SwapRouter is IUniswapV3SwapCallback {
    struct ExactInputSingleParams {
        address tokenIn;
        address tokenOut;
        uint24 fee;
        address recipient;
        uint256 amountIn;
        uint256 amountOutMinimum;
        uint160 sqrtPriceLimitX96;
    }

    /// @notice Swaps `amountIn` of one token for as much as possible of another token
    /// @dev Setting `amountIn` to 0 will cause the contract to look up its own balance,
    /// and swap the entire amount, enabling contracts to send tokens before calling this function.
    /// @param params The parameters necessary for the swap, encoded as `ExactInputSingleParams` in calldata
    /// @return amountOut The amount of the received token
    function exactInputSingle(ExactInputSingleParams calldata params) external payable returns (uint256 amountOut);

    struct ExactInputParams {
        bytes path;
        address recipient;
        uint256 amountIn;
        uint256 amountOutMinimum;
    }

    /// @notice Swaps `amountIn` of one token for as much as possible of another along the specified path
    /// @dev Setting `amountIn` to 0 will cause the contract to look up its own balance,
    /// and swap the entire amount, enabling contracts to send tokens before calling this function.
    /// @param params The parameters necessary for the multi-hop swap, encoded as `ExactInputParams` in calldata
    /// @return amountOut The amount of the received token
    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;
    }

    /// @notice Swaps as little as possible of one token for `amountOut` of another token
    /// that may remain in the router after the swap.
    /// @param params The parameters necessary for the swap, encoded as `ExactOutputSingleParams` in calldata
    /// @return amountIn The amount of the input token
    function exactOutputSingle(ExactOutputSingleParams calldata params) external payable returns (uint256 amountIn);

    struct ExactOutputParams {
        bytes path;
        address recipient;
        uint256 amountOut;
        uint256 amountInMaximum;
    }

    /// @notice Swaps as little as possible of one token for `amountOut` of another along the specified path (reversed)
    /// that may remain in the router after the swap.
    /// @param params The parameters necessary for the multi-hop swap, encoded as `ExactOutputParams` in calldata
    /// @return amountIn The amount of the input token
    function exactOutput(ExactOutputParams calldata params) external payable returns (uint256 amountIn);
}

File 13 of 16 : IApproveAndCall.sol
// SPDX-License-Identifier: GPL-2.0-or-later
pragma solidity >=0.7.6;
pragma abicoder v2;

interface IApproveAndCall {
    enum ApprovalType {NOT_REQUIRED, MAX, MAX_MINUS_ONE, ZERO_THEN_MAX, ZERO_THEN_MAX_MINUS_ONE}

    /// @dev Lens to be called off-chain to determine which (if any) of the relevant approval functions should be called
    /// @param token The token to approve
    /// @param amount The amount to approve
    /// @return The required approval type
    function getApprovalType(address token, uint256 amount) external returns (ApprovalType);

    /// @notice Approves a token for the maximum possible amount
    /// @param token The token to approve
    function approveMax(address token) external payable;

    /// @notice Approves a token for the maximum possible amount minus one
    /// @param token The token to approve
    function approveMaxMinusOne(address token) external payable;

    /// @notice Approves a token for zero, then the maximum possible amount
    /// @param token The token to approve
    function approveZeroThenMax(address token) external payable;

    /// @notice Approves a token for zero, then the maximum possible amount minus one
    /// @param token The token to approve
    function approveZeroThenMaxMinusOne(address token) external payable;

    /// @notice Calls the position manager with arbitrary calldata
    /// @param data Calldata to pass along to the position manager
    /// @return result The result from the call
    function callPositionManager(bytes memory data) external payable returns (bytes memory result);

    struct MintParams {
        address token0;
        address token1;
        uint24 fee;
        int24 tickLower;
        int24 tickUpper;
        uint256 amount0Min;
        uint256 amount1Min;
        address recipient;
    }

    /// @notice Calls the position manager's mint function
    /// @param params Calldata to pass along to the position manager
    /// @return result The result from the call
    function mint(MintParams calldata params) external payable returns (bytes memory result);

    struct IncreaseLiquidityParams {
        address token0;
        address token1;
        uint256 tokenId;
        uint256 amount0Min;
        uint256 amount1Min;
    }

    /// @notice Calls the position manager's increaseLiquidity function
    /// @param params Calldata to pass along to the position manager
    /// @return result The result from the call
    function increaseLiquidity(IncreaseLiquidityParams calldata params) external payable returns (bytes memory result);
}

File 14 of 16 : IMulticallExtended.sol
// SPDX-License-Identifier: GPL-2.0-or-later
pragma solidity >=0.7.5;
pragma abicoder v2;

import '@uniswap/v3-periphery/contracts/interfaces/IMulticall.sol';

/// @title MulticallExtended interface
/// @notice Enables calling multiple methods in a single call to the contract with optional validation
interface IMulticallExtended is IMulticall {
    /// @notice Call multiple functions in the current contract and return the data from all of them if they all succeed
    /// @dev The `msg.value` should not be trusted for any method callable from multicall.
    /// @param deadline The time by which this function must be called before failing
    /// @param data The encoded function data for each of the calls to make to this contract
    /// @return results The results from each of the calls passed in via data
    function multicall(uint256 deadline, bytes[] calldata data) external payable returns (bytes[] memory results);

    /// @notice Call multiple functions in the current contract and return the data from all of them if they all succeed
    /// @dev The `msg.value` should not be trusted for any method callable from multicall.
    /// @param previousBlockhash The expected parent blockHash
    /// @param data The encoded function data for each of the calls to make to this contract
    /// @return results The results from each of the calls passed in via data
    function multicall(bytes32 previousBlockhash, bytes[] calldata data)
        external
        payable
        returns (bytes[] memory results);
}

File 15 of 16 : IUniswapV3SwapCallback.sol
// SPDX-License-Identifier: GPL-2.0-or-later
pragma solidity >=0.5.0;

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

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

/// @title Multicall interface
/// @notice Enables calling multiple methods in a single call to the contract
interface IMulticall {
    /// @notice Call multiple functions in the current contract and return the data from all of them if they all succeed
    /// @dev The `msg.value` should not be trusted for any method callable from multicall.
    /// @param data The encoded function data for each of the calls to make to this contract
    /// @return results The results from each of the calls passed in via data
    function multicall(bytes[] calldata data) external payable returns (bytes[] memory results);
}

Settings
{
  "remappings": [
    "solmate/src/=lib/solmate/src/",
    "ds-test/=lib/forge-std/lib/ds-test/src/",
    "forge-std/=lib/forge-std/src/",
    "@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts/",
    "@openzeppelin/contracts-upgradeable/=lib/openzeppelin-contracts-upgradeable/contracts/",
    "solidity-datetime/contracts/=lib/solidity-datetime/contracts/",
    "v2-periphery/=lib/v2-periphery/contracts/",
    "@uniswap/v3-core/=lib/v3-core/",
    "v3-periphery/=lib/v3-periphery/",
    "@uniswap/v3-periphery/=lib/v3-periphery/",
    "swap-router-contracts/=lib/swap-router-contracts/contracts/",
    "openzeppelin-contracts-upgradeable/=lib/openzeppelin-contracts-upgradeable/",
    "openzeppelin-contracts/=lib/openzeppelin-contracts/",
    "swap-router-contracts/=lib/swap-router-contracts/contracts/",
    "v2-periphery/=lib/v2-periphery/contracts/",
    "v3-core/=lib/v3-core/",
    "v3-periphery/=lib/v3-periphery/contracts/"
  ],
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "metadata": {
    "useLiteralContent": false,
    "bytecodeHash": "ipfs",
    "appendCBOR": true
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "evmVersion": "paris",
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_router","type":"address"},{"internalType":"address","name":"_weth","type":"address"},{"internalType":"address","name":"_feeReceiver","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"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":"oldFeeReceiver","type":"address"},{"indexed":true,"internalType":"address","name":"newFeeReceiver","type":"address"}],"name":"SetFeeReceiver","type":"event"},{"inputs":[{"internalType":"address","name":"tokenIn","type":"address"},{"internalType":"address","name":"tokenOut","type":"address"},{"components":[{"internalType":"bytes","name":"path","type":"bytes"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amountIn","type":"uint256"},{"internalType":"uint256","name":"amountOutMinimum","type":"uint256"}],"internalType":"struct IV3SwapRouter.ExactInputParams","name":"params","type":"tuple"},{"internalType":"uint256","name":"feePercentage","type":"uint256"}],"name":"exactInput","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"tokenIn","type":"address"},{"internalType":"address","name":"tokenOut","type":"address"},{"internalType":"uint24","name":"fee","type":"uint24"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amountIn","type":"uint256"},{"internalType":"uint256","name":"amountOutMinimum","type":"uint256"},{"internalType":"uint160","name":"sqrtPriceLimitX96","type":"uint160"}],"internalType":"struct IV3SwapRouter.ExactInputSingleParams","name":"params","type":"tuple"},{"internalType":"uint256","name":"feePercentage","type":"uint256"}],"name":"exactInputSingle","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"tokenIn","type":"address"},{"internalType":"address","name":"tokenOut","type":"address"},{"components":[{"internalType":"bytes","name":"path","type":"bytes"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amountOut","type":"uint256"},{"internalType":"uint256","name":"amountInMaximum","type":"uint256"}],"internalType":"struct IV3SwapRouter.ExactOutputParams","name":"params","type":"tuple"},{"internalType":"uint256","name":"feePercentage","type":"uint256"}],"name":"exactOutput","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"tokenIn","type":"address"},{"internalType":"address","name":"tokenOut","type":"address"},{"internalType":"uint24","name":"fee","type":"uint24"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amountOut","type":"uint256"},{"internalType":"uint256","name":"amountInMaximum","type":"uint256"},{"internalType":"uint160","name":"sqrtPriceLimitX96","type":"uint160"}],"internalType":"struct IV3SwapRouter.ExactOutputSingleParams","name":"params","type":"tuple"},{"internalType":"uint256","name":"feePercentage","type":"uint256"}],"name":"exactOutputSingle","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"feeReceiver","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"router","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_feeReceiver","type":"address"}],"name":"setFeeReceiver","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"weth","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]

60c06040523480156200001157600080fd5b50604051620019ef380380620019ef833981016040819052620000349162000173565b6200003f3362000106565b6001600160a01b0383166200008d5760405162461bcd60e51b815260206004820152600f60248201526e496e76616c6964204164647265737360881b60448201526064015b60405180910390fd5b6001600160a01b038216620000d75760405162461bcd60e51b815260206004820152600f60248201526e496e76616c6964204164647265737360881b604482015260640162000084565b6001600160a01b0392831660805290821660a052600180546001600160a01b03191691909216179055620001bd565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80516001600160a01b03811681146200016e57600080fd5b919050565b6000806000606084860312156200018957600080fd5b620001948462000156565b9250620001a46020850162000156565b9150620001b46040850162000156565b90509250925092565b60805160a051611788620002676000396000818160e6015281816102190152818161032301528181610434015281816105390152818161064e0152818161070201528181610832015281816108e20152610c9c0152600081816101ef0152818161029801528181610399015281816104af015281816105b7015281816106c901528181610780015281816108a90152818161095801528181610b3f0152610c0b01526117886000f3fe6080604052600436106100a05760003560e01c80638da5cb5b116100645780638da5cb5b1461014c5780639d2b98ec1461016a578063b3f006741461017d578063efdcd9741461019d578063f2fde38b146101bd578063f887ea40146101dd57600080fd5b8063043d3f79146100ac5780630457d914146100c15780633fc8cef3146100d45780636219a87e14610124578063715018a61461013757600080fd5b366100a757005b600080fd5b6100bf6100ba3660046113bb565b610211565b005b6100bf6100cf3660046114b8565b61042c565b3480156100e057600080fd5b506101087f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b03909116815260200160405180910390f35b6100bf6101323660046114b8565b610646565b34801561014357600080fd5b506100bf610816565b34801561015857600080fd5b506000546001600160a01b0316610108565b6100bf6101783660046113bb565b61082a565b34801561018957600080fd5b50600154610108906001600160a01b031681565b3480156101a957600080fd5b506100bf6101b83660046114e4565b6109ec565b3480156101c957600080fd5b506100bf6101d83660046114e4565b610a50565b3480156101e957600080fd5b506101087f000000000000000000000000000000000000000000000000000000000000000081565b3415610321577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316846001600160a01b0316146102715760405162461bcd60e51b815260040161026890611501565b60405180910390fd5b61027a81610ac9565b4760408084018290525163b858183f60e01b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063b858183f9083906102cf9087906004016115cd565b60206040518083038185885af11580156102ed573d6000803e3d6000fd5b50505050506040513d601f19601f8201168201806040525081019061031291906115e0565b5061031b610b3d565b50610426565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316836001600160a01b0316146103725760405162461bcd60e51b8152600401610268906115f9565b610380848360400151610bdf565b6020820180513090915260405163b858183f60e01b81527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063b858183f906103d69086906004016115cd565b6020604051808303816000875af11580156103f5573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061041991906115e0565b506104248183610c87565b505b50505050565b3415610537577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031682600001516001600160a01b0316146104875760405162461bcd60e51b815260040161026890611501565b61049081610ac9565b47608083018190526040516304e45aaf60e01b81526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906304e45aaf9083906104e690879060040161163a565b60206040518083038185885af1158015610504573d6000803e3d6000fd5b50505050506040513d601f19601f8201168201806040525081019061052991906115e0565b50610532610b3d565b505050565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031682602001516001600160a01b03161461058c5760405162461bcd60e51b8152600401610268906115f9565b61059e82600001518360800151610bdf565b606082018051309091526040516304e45aaf60e01b81527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906304e45aaf906105f490869060040161163a565b6020604051808303816000875af1158015610613573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061063791906115e0565b506105328183610c87565b5050565b3415610700577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031682600001516001600160a01b0316146106a15760405162461bcd60e51b815260040161026890611501565b6106aa81610ac9565b4760a08301819052604051635023b4df60e01b81526001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690635023b4df9083906104e690879060040161163a565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031682602001516001600160a01b0316146107555760405162461bcd60e51b8152600401610268906115f9565b61076782600001518360a00151610bdf565b60608201805130909152604051635023b4df60e01b81527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031690635023b4df906107bd90869060040161163a565b6020604051808303816000875af11580156107dc573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061080091906115e0565b5061080b8183610c87565b825161053290610e1e565b61081e610ea5565b6108286000610eff565b565b34156108e0577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316846001600160a01b0316146108815760405162461bcd60e51b815260040161026890611501565b61088a81610ac9565b47606083018190526040516304dc09a360e11b81526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906309b813469083906102cf9087906004016115cd565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316836001600160a01b0316146109315760405162461bcd60e51b8152600401610268906115f9565b61093f848360600151610bdf565b602082018051309091526040516304dc09a360e11b81527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906309b81346906109959086906004016115cd565b6020604051808303816000875af11580156109b4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109d891906115e0565b506109e38183610c87565b61042485610e1e565b6109f4610ea5565b6001546040516001600160a01b038084169216907f1b092cca381ac00a07e1226c164f47c475d212f5e55699475a7f411811f77dd490600090a3600180546001600160a01b0319166001600160a01b0392909216919091179055565b610a58610ea5565b6001600160a01b038116610abd5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610268565b610ac681610eff565b50565b6001546000906001600160a01b031615801590610ae65750600082115b1561064257612710610af883346116b5565b610b0291906116cc565b6001546040519192506001600160a01b03169082156108fc029083906000818181858888f19350505050158015610532573d6000803e3d6000fd5b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166312210e8a6040518163ffffffff1660e01b8152600401600060405180830381600087803b158015610b9857600080fd5b505af1158015610bac573d6000803e3d6000fd5b505060405147925033915082156108fc029083906000818181858888f19350505050158015610642573d6000803e3d6000fd5b610bf46001600160a01b038316333084610f4f565b60405163095ea7b360e01b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000811660048301526024820183905283169063095ea7b3906044016020604051808303816000875af1158015610c63573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061053291906116ee565b6040516370a0823160e01b81523060048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031690632e1a7d4d9082906370a0823190602401602060405180830381865afa158015610cf3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d1791906115e0565b6040518263ffffffff1660e01b8152600401610d3591815260200190565b600060405180830381600087803b158015610d4f57600080fd5b505af1158015610d63573d6000803e3d6000fd5b5050600154479250600091506001600160a01b031615801590610d865750600083115b15610ddf57612710610d9884846116b5565b610da291906116cc565b6001546040519192506001600160a01b03169082156108fc029083906000818181858888f19350505050158015610ddd573d6000803e3d6000fd5b505b6001600160a01b0384166108fc610df68385611710565b6040518115909202916000818181858888f19350505050158015610424573d6000803e3d6000fd5b6040516370a0823160e01b81523060048201526000906001600160a01b038316906370a0823190602401602060405180830381865afa158015610e65573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e8991906115e0565b90508015610642576106426001600160a01b0383163383610fba565b6000546001600160a01b031633146108285760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610268565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6040516001600160a01b03808516602483015283166044820152606481018290526104269085906323b872dd60e01b906084015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152610fea565b6040516001600160a01b03831660248201526044810182905261053290849063a9059cbb60e01b90606401610f83565b600061103f826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166110bc9092919063ffffffff16565b805190915015610532578080602001905181019061105d91906116ee565b6105325760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610268565b60606110cb84846000856110d5565b90505b9392505050565b6060824710156111365760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610268565b6001600160a01b0385163b61118d5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610268565b600080866001600160a01b031685876040516111a99190611723565b60006040518083038185875af1925050503d80600081146111e6576040519150601f19603f3d011682016040523d82523d6000602084013e6111eb565b606091505b50915091506111fb828286611206565b979650505050505050565b606083156112155750816110ce565b8251156112255782518084602001fd5b8160405162461bcd60e51b8152600401610268919061173f565b6001600160a01b0381168114610ac657600080fd5b803561125f8161123f565b919050565b634e487b7160e01b600052604160045260246000fd5b6040516080810167ffffffffffffffff8111828210171561129d5761129d611264565b60405290565b60405160e0810167ffffffffffffffff8111828210171561129d5761129d611264565b604051601f8201601f1916810167ffffffffffffffff811182821017156112ef576112ef611264565b604052919050565b60006080828403121561130957600080fd5b61131161127a565b9050813567ffffffffffffffff8082111561132b57600080fd5b818401915084601f83011261133f57600080fd5b813560208282111561135357611353611264565b611365601f8301601f191682016112c6565b9250818352868183860101111561137b57600080fd5b81818501828501376000818385010152828552611399818701611254565b8186015250505050604082013560408201526060820135606082015292915050565b600080600080608085870312156113d157600080fd5b84356113dc8161123f565b935060208501356113ec8161123f565b9250604085013567ffffffffffffffff81111561140857600080fd5b611414878288016112f7565b949793965093946060013593505050565b600060e0828403121561143757600080fd5b61143f6112a3565b9050813561144c8161123f565b8152602082013561145c8161123f565b6020820152604082013562ffffff8116811461147757600080fd5b604082015261148860608301611254565b60608201526080820135608082015260a082013560a08201526114ad60c08301611254565b60c082015292915050565b60008061010083850312156114cc57600080fd5b6114d68484611425565b9460e0939093013593505050565b6000602082840312156114f657600080fd5b81356110ce8161123f565b6020808252818101527f556e6973776170563350726f78793a20494e56414c49445f544f4b454e5f494e604082015260600190565b60005b83811015611551578181015183820152602001611539565b50506000910152565b60008151808452611572816020860160208601611536565b601f01601f19169290920160200192915050565b600081516080845261159b608085018261155a565b6020848101516001600160a01b0316908601526040808501519086015260609384015193909401929092525090919050565b6020815260006110ce6020830184611586565b6000602082840312156115f257600080fd5b5051919050565b60208082526021908201527f556e6973776170563350726f78793a20494e56414c49445f544f4b454e5f4f556040820152601560fa1b606082015260800190565b60e08101611699828480516001600160a01b03908116835260208083015182169084015260408083015162ffffff16908401526060808301518216908401526080808301519084015260a0828101519084015260c09182015116910152565b92915050565b634e487b7160e01b600052601160045260246000fd5b80820281158282048414176116995761169961169f565b6000826116e957634e487b7160e01b600052601260045260246000fd5b500490565b60006020828403121561170057600080fd5b815180151581146110ce57600080fd5b818103818111156116995761169961169f565b60008251611735818460208701611536565b9190910192915050565b6020815260006110ce602083018461155a56fea26469706673582212202b2946b337cee3e86368547e962f10cf7373d1dc4c0c1bc1ccd5d344a33b696264736f6c6343000812003300000000000000000000000068b3465833fb72a70ecdf485e0e4c7bd8665fc45000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc20000000000000000000000001f81b85bd58bba5878c45d28fab5877e22979134

Deployed Bytecode

0x6080604052600436106100a05760003560e01c80638da5cb5b116100645780638da5cb5b1461014c5780639d2b98ec1461016a578063b3f006741461017d578063efdcd9741461019d578063f2fde38b146101bd578063f887ea40146101dd57600080fd5b8063043d3f79146100ac5780630457d914146100c15780633fc8cef3146100d45780636219a87e14610124578063715018a61461013757600080fd5b366100a757005b600080fd5b6100bf6100ba3660046113bb565b610211565b005b6100bf6100cf3660046114b8565b61042c565b3480156100e057600080fd5b506101087f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc281565b6040516001600160a01b03909116815260200160405180910390f35b6100bf6101323660046114b8565b610646565b34801561014357600080fd5b506100bf610816565b34801561015857600080fd5b506000546001600160a01b0316610108565b6100bf6101783660046113bb565b61082a565b34801561018957600080fd5b50600154610108906001600160a01b031681565b3480156101a957600080fd5b506100bf6101b83660046114e4565b6109ec565b3480156101c957600080fd5b506100bf6101d83660046114e4565b610a50565b3480156101e957600080fd5b506101087f00000000000000000000000068b3465833fb72a70ecdf485e0e4c7bd8665fc4581565b3415610321577f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b0316846001600160a01b0316146102715760405162461bcd60e51b815260040161026890611501565b60405180910390fd5b61027a81610ac9565b4760408084018290525163b858183f60e01b81526001600160a01b037f00000000000000000000000068b3465833fb72a70ecdf485e0e4c7bd8665fc45169063b858183f9083906102cf9087906004016115cd565b60206040518083038185885af11580156102ed573d6000803e3d6000fd5b50505050506040513d601f19601f8201168201806040525081019061031291906115e0565b5061031b610b3d565b50610426565b7f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b0316836001600160a01b0316146103725760405162461bcd60e51b8152600401610268906115f9565b610380848360400151610bdf565b6020820180513090915260405163b858183f60e01b81527f00000000000000000000000068b3465833fb72a70ecdf485e0e4c7bd8665fc456001600160a01b03169063b858183f906103d69086906004016115cd565b6020604051808303816000875af11580156103f5573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061041991906115e0565b506104248183610c87565b505b50505050565b3415610537577f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b031682600001516001600160a01b0316146104875760405162461bcd60e51b815260040161026890611501565b61049081610ac9565b47608083018190526040516304e45aaf60e01b81526001600160a01b037f00000000000000000000000068b3465833fb72a70ecdf485e0e4c7bd8665fc4516906304e45aaf9083906104e690879060040161163a565b60206040518083038185885af1158015610504573d6000803e3d6000fd5b50505050506040513d601f19601f8201168201806040525081019061052991906115e0565b50610532610b3d565b505050565b7f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b031682602001516001600160a01b03161461058c5760405162461bcd60e51b8152600401610268906115f9565b61059e82600001518360800151610bdf565b606082018051309091526040516304e45aaf60e01b81527f00000000000000000000000068b3465833fb72a70ecdf485e0e4c7bd8665fc456001600160a01b0316906304e45aaf906105f490869060040161163a565b6020604051808303816000875af1158015610613573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061063791906115e0565b506105328183610c87565b5050565b3415610700577f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b031682600001516001600160a01b0316146106a15760405162461bcd60e51b815260040161026890611501565b6106aa81610ac9565b4760a08301819052604051635023b4df60e01b81526001600160a01b037f00000000000000000000000068b3465833fb72a70ecdf485e0e4c7bd8665fc451690635023b4df9083906104e690879060040161163a565b7f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b031682602001516001600160a01b0316146107555760405162461bcd60e51b8152600401610268906115f9565b61076782600001518360a00151610bdf565b60608201805130909152604051635023b4df60e01b81527f00000000000000000000000068b3465833fb72a70ecdf485e0e4c7bd8665fc456001600160a01b031690635023b4df906107bd90869060040161163a565b6020604051808303816000875af11580156107dc573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061080091906115e0565b5061080b8183610c87565b825161053290610e1e565b61081e610ea5565b6108286000610eff565b565b34156108e0577f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b0316846001600160a01b0316146108815760405162461bcd60e51b815260040161026890611501565b61088a81610ac9565b47606083018190526040516304dc09a360e11b81526001600160a01b037f00000000000000000000000068b3465833fb72a70ecdf485e0e4c7bd8665fc4516906309b813469083906102cf9087906004016115cd565b7f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b0316836001600160a01b0316146109315760405162461bcd60e51b8152600401610268906115f9565b61093f848360600151610bdf565b602082018051309091526040516304dc09a360e11b81527f00000000000000000000000068b3465833fb72a70ecdf485e0e4c7bd8665fc456001600160a01b0316906309b81346906109959086906004016115cd565b6020604051808303816000875af11580156109b4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109d891906115e0565b506109e38183610c87565b61042485610e1e565b6109f4610ea5565b6001546040516001600160a01b038084169216907f1b092cca381ac00a07e1226c164f47c475d212f5e55699475a7f411811f77dd490600090a3600180546001600160a01b0319166001600160a01b0392909216919091179055565b610a58610ea5565b6001600160a01b038116610abd5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610268565b610ac681610eff565b50565b6001546000906001600160a01b031615801590610ae65750600082115b1561064257612710610af883346116b5565b610b0291906116cc565b6001546040519192506001600160a01b03169082156108fc029083906000818181858888f19350505050158015610532573d6000803e3d6000fd5b7f00000000000000000000000068b3465833fb72a70ecdf485e0e4c7bd8665fc456001600160a01b03166312210e8a6040518163ffffffff1660e01b8152600401600060405180830381600087803b158015610b9857600080fd5b505af1158015610bac573d6000803e3d6000fd5b505060405147925033915082156108fc029083906000818181858888f19350505050158015610642573d6000803e3d6000fd5b610bf46001600160a01b038316333084610f4f565b60405163095ea7b360e01b81526001600160a01b037f00000000000000000000000068b3465833fb72a70ecdf485e0e4c7bd8665fc45811660048301526024820183905283169063095ea7b3906044016020604051808303816000875af1158015610c63573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061053291906116ee565b6040516370a0823160e01b81523060048201527f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b031690632e1a7d4d9082906370a0823190602401602060405180830381865afa158015610cf3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d1791906115e0565b6040518263ffffffff1660e01b8152600401610d3591815260200190565b600060405180830381600087803b158015610d4f57600080fd5b505af1158015610d63573d6000803e3d6000fd5b5050600154479250600091506001600160a01b031615801590610d865750600083115b15610ddf57612710610d9884846116b5565b610da291906116cc565b6001546040519192506001600160a01b03169082156108fc029083906000818181858888f19350505050158015610ddd573d6000803e3d6000fd5b505b6001600160a01b0384166108fc610df68385611710565b6040518115909202916000818181858888f19350505050158015610424573d6000803e3d6000fd5b6040516370a0823160e01b81523060048201526000906001600160a01b038316906370a0823190602401602060405180830381865afa158015610e65573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e8991906115e0565b90508015610642576106426001600160a01b0383163383610fba565b6000546001600160a01b031633146108285760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610268565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6040516001600160a01b03808516602483015283166044820152606481018290526104269085906323b872dd60e01b906084015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152610fea565b6040516001600160a01b03831660248201526044810182905261053290849063a9059cbb60e01b90606401610f83565b600061103f826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166110bc9092919063ffffffff16565b805190915015610532578080602001905181019061105d91906116ee565b6105325760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610268565b60606110cb84846000856110d5565b90505b9392505050565b6060824710156111365760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610268565b6001600160a01b0385163b61118d5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610268565b600080866001600160a01b031685876040516111a99190611723565b60006040518083038185875af1925050503d80600081146111e6576040519150601f19603f3d011682016040523d82523d6000602084013e6111eb565b606091505b50915091506111fb828286611206565b979650505050505050565b606083156112155750816110ce565b8251156112255782518084602001fd5b8160405162461bcd60e51b8152600401610268919061173f565b6001600160a01b0381168114610ac657600080fd5b803561125f8161123f565b919050565b634e487b7160e01b600052604160045260246000fd5b6040516080810167ffffffffffffffff8111828210171561129d5761129d611264565b60405290565b60405160e0810167ffffffffffffffff8111828210171561129d5761129d611264565b604051601f8201601f1916810167ffffffffffffffff811182821017156112ef576112ef611264565b604052919050565b60006080828403121561130957600080fd5b61131161127a565b9050813567ffffffffffffffff8082111561132b57600080fd5b818401915084601f83011261133f57600080fd5b813560208282111561135357611353611264565b611365601f8301601f191682016112c6565b9250818352868183860101111561137b57600080fd5b81818501828501376000818385010152828552611399818701611254565b8186015250505050604082013560408201526060820135606082015292915050565b600080600080608085870312156113d157600080fd5b84356113dc8161123f565b935060208501356113ec8161123f565b9250604085013567ffffffffffffffff81111561140857600080fd5b611414878288016112f7565b949793965093946060013593505050565b600060e0828403121561143757600080fd5b61143f6112a3565b9050813561144c8161123f565b8152602082013561145c8161123f565b6020820152604082013562ffffff8116811461147757600080fd5b604082015261148860608301611254565b60608201526080820135608082015260a082013560a08201526114ad60c08301611254565b60c082015292915050565b60008061010083850312156114cc57600080fd5b6114d68484611425565b9460e0939093013593505050565b6000602082840312156114f657600080fd5b81356110ce8161123f565b6020808252818101527f556e6973776170563350726f78793a20494e56414c49445f544f4b454e5f494e604082015260600190565b60005b83811015611551578181015183820152602001611539565b50506000910152565b60008151808452611572816020860160208601611536565b601f01601f19169290920160200192915050565b600081516080845261159b608085018261155a565b6020848101516001600160a01b0316908601526040808501519086015260609384015193909401929092525090919050565b6020815260006110ce6020830184611586565b6000602082840312156115f257600080fd5b5051919050565b60208082526021908201527f556e6973776170563350726f78793a20494e56414c49445f544f4b454e5f4f556040820152601560fa1b606082015260800190565b60e08101611699828480516001600160a01b03908116835260208083015182169084015260408083015162ffffff16908401526060808301518216908401526080808301519084015260a0828101519084015260c09182015116910152565b92915050565b634e487b7160e01b600052601160045260246000fd5b80820281158282048414176116995761169961169f565b6000826116e957634e487b7160e01b600052601260045260246000fd5b500490565b60006020828403121561170057600080fd5b815180151581146110ce57600080fd5b818103818111156116995761169961169f565b60008251611735818460208701611536565b9190910192915050565b6020815260006110ce602083018461155a56fea26469706673582212202b2946b337cee3e86368547e962f10cf7373d1dc4c0c1bc1ccd5d344a33b696264736f6c63430008120033

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

00000000000000000000000068b3465833fb72a70ecdf485e0e4c7bd8665fc45000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc20000000000000000000000001f81b85bd58bba5878c45d28fab5877e22979134

-----Decoded View---------------
Arg [0] : _router (address): 0x68b3465833fb72A70ecDF485E0e4C7bD8665Fc45
Arg [1] : _weth (address): 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2
Arg [2] : _feeReceiver (address): 0x1f81B85bd58Bba5878C45d28fAB5877E22979134

-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 00000000000000000000000068b3465833fb72a70ecdf485e0e4c7bd8665fc45
Arg [1] : 000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
Arg [2] : 0000000000000000000000001f81b85bd58bba5878c45d28fab5877e22979134


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

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

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