ETH Price: $2,468.36 (+5.86%)

Contract

0x1BFBf7c1C6F8Ab3FB652E8029b675aEF1Da44925
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Swap Exact Input...200998972024-06-15 21:32:5996 days ago1718487179IN
0x1BFBf7c1...F1Da44925
0 ETH0.000616313.47173943
Swap Exact Input...200779472024-06-12 19:50:3599 days ago1718221835IN
0x1BFBf7c1...F1Da44925
0 ETH0.0038416822.28655641
Swap Exact Input...200754662024-06-12 11:31:4799 days ago1718191907IN
0x1BFBf7c1...F1Da44925
0 ETH0.0035417922.75427503
Swap Exact Input...200595442024-06-10 6:08:59101 days ago1717999739IN
0x1BFBf7c1...F1Da44925
0 ETH0.000595143.91946735
Swap Tokens For ...200585122024-06-10 2:41:23101 days ago1717987283IN
0x1BFBf7c1...F1Da44925
0 ETH0.000973353.99384526
Swap Tokens For ...200585052024-06-10 2:39:59101 days ago1717987199IN
0x1BFBf7c1...F1Da44925
0 ETH0.000713843.51781474
Swap Exact Input...200574062024-06-09 22:59:35101 days ago1717973975IN
0x1BFBf7c1...F1Da44925
0 ETH0.000882434.79645355
Swap Exact Input...200574002024-06-09 22:58:23101 days ago1717973903IN
0x1BFBf7c1...F1Da44925
0 ETH0.000676734.45441115
Swap Exact Input...200571942024-06-09 22:16:59101 days ago1717971419IN
0x1BFBf7c1...F1Da44925
0 ETH0.0014796.7792554
Swap Exact Input...200571882024-06-09 22:15:47101 days ago1717971347IN
0x1BFBf7c1...F1Da44925
0 ETH0.001231957.24773503
Swap Tokens For ...200571572024-06-09 22:09:23101 days ago1717970963IN
0x1BFBf7c1...F1Da44925
0 ETH0.001312976.52395719
Swap Tokens For ...200571422024-06-09 22:06:23101 days ago1717970783IN
0x1BFBf7c1...F1Da44925
0 ETH0.001424636.52262644
Swap Tokens For ...200571362024-06-09 22:05:11101 days ago1717970711IN
0x1BFBf7c1...F1Da44925
0 ETH0.001251056.79716622
Swap Exact Input...200570612024-06-09 21:50:11101 days ago1717969811IN
0x1BFBf7c1...F1Da44925
0 ETH0.001438996.96373707
Swap Exact Input...200570242024-06-09 21:42:47101 days ago1717969367IN
0x1BFBf7c1...F1Da44925
0 ETH0.000990246.40267342
Swap Tokens For ...200570042024-06-09 21:38:47101 days ago1717969127IN
0x1BFBf7c1...F1Da44925
0 ETH0.00156066.40394202
Swap Exact Input...200569962024-06-09 21:37:11101 days ago1717969031IN
0x1BFBf7c1...F1Da44925
0 ETH0.001251756.5266129
Swap Exact Input...200569842024-06-09 21:34:47101 days ago1717968887IN
0x1BFBf7c1...F1Da44925
0 ETH0.00115816.94739835
Swap Tokens For ...200569612024-06-09 21:30:11102 days ago1717968611IN
0x1BFBf7c1...F1Da44925
0 ETH0.002012256.8248528
Swap Tokens For ...200569362024-06-09 21:25:11102 days ago1717968311IN
0x1BFBf7c1...F1Da44925
0 ETH0.001591786.85193798
0x60c06040200518562024-06-09 4:23:11102 days ago1717906991IN
 Create: PlebSwap
0 ETH0.008465453.59072114

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
PlebSwap

Compiler Version
v0.8.25+commit.b61c2a91

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 13 : PlebSwap.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.15;
pragma abicoder v2;

import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@uniswap/v3-periphery/contracts/libraries/TransferHelper.sol";
import "@uniswap/v3-periphery/contracts/interfaces/ISwapRouter.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "./IUniswapV2Router02.sol";
import "@uniswap/swap-router-contracts/contracts/interfaces/IV3SwapRouter.sol";

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

    function withdraw(uint256 wad) external;
}

contract PlebSwap is Ownable {
    using SafeMath for uint256;

    IUniswapV2Router02 public immutable swapRouter =
        IUniswapV2Router02(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D);
    IV3SwapRouter public immutable swapRouter02 =
        IV3SwapRouter(0x68b3465833fb72A70ecDF485E0e4C7bD8665Fc45);

    address public constant WETH = 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2;
    address public constant USDC = 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48;

    uint256 public unlockTime;
    address payable public feeWallet;
    uint256 public swapFeePercent = 1;

    // For this example, we will set the pool fee to 0.3%.
    // uint24 public constant poolFee = 3000;

    constructor(address payable initialOwner) payable Ownable(initialOwner) {
        feeWallet = initialOwner;
    }

    function updateFeeWallet(address payable _new) external onlyOwner {
        feeWallet = _new;
    }

    function updateSwapFeePercent(uint256 _swapFeePercent) external onlyOwner {
        require(_swapFeePercent <= 15, "Must keep fees at 15% or less");
        swapFeePercent = _swapFeePercent;
    }

    function safeTransferWithApprove(
        address token,
        uint256 amountIn,
        address routerAddress
    ) internal {
        TransferHelper.safeTransferFrom(
            token,
            msg.sender,
            address(this),
            amountIn
        );

        TransferHelper.safeApprove(token, routerAddress, amountIn);
    }

    event Withdrawal(address feeWallet, uint256 amount, uint256 when);
    event WithdrawalToken(
        address feeWallet,
        address tokenIn,
        uint256 amount,
        uint256 when
    );

    event SwapTokens(address tokenIn, uint256 amount, address tokenOut);

    function swapTokensForTokens(
        address tokenIn,
        address tokenOut,
        uint256 amountIn
    ) external payable {
        emit SwapTokens(tokenIn, amountIn, tokenOut);

        address[] memory path;
        path = new address[](2);
        path[0] = tokenIn;
        path[1] = tokenOut;

        // TransferHelper.safeApprove(tokenIn, address(swapRouter), amountIn);
        safeTransferWithApprove(tokenIn, amountIn, address(swapRouter));

        uint256 fees = 0;
        fees = amountIn.mul(swapFeePercent).div(100);
        amountIn -= fees;

        swapRouter.swapExactTokensForTokensSupportingFeeOnTransferTokens({
            amountIn: amountIn,
            amountOutMin: 0,
            path: path,
            to: address(msg.sender),
            deadline: block.timestamp.add(300)
        });

        if (fees > 0) {
            IERC20(tokenIn).transfer(feeWallet, fees);
        }
    }

    function swapTokensForEth(
        address tokenIn,
        uint256 amountIn
    ) external payable {
        emit SwapTokens(WETH, amountIn, WETH);
        address[] memory path;
        path = new address[](2);
        path[0] = tokenIn;
        path[1] = WETH;

        TransferHelper.safeApprove(tokenIn, address(swapRouter), amountIn);

        uint256 fees = 0;
        fees = amountIn.mul(swapFeePercent).div(100);
        amountIn -= fees;

        swapRouter.swapExactTokensForETHSupportingFeeOnTransferTokens({
            amountIn: amountIn,
            amountOutMin: 0,
            path: path,
            to: address(msg.sender),
            deadline: block.timestamp.add(300)
        });

        if (fees > 0) {
            IERC20(tokenIn).transfer(feeWallet, fees);
        }
    }

    function swapEthForExactTokens(
        address tokenOut,
        uint256 amountIn
    ) external payable {
        emit SwapTokens(WETH, amountIn, tokenOut);

        address[] memory path;
        path = new address[](2);
        path[0] = WETH;
        path[1] = tokenOut;

        TransferHelper.safeApprove(WETH, address(swapRouter), amountIn);

        uint256 fees = 0;
        fees = amountIn.mul(swapFeePercent).div(100);
        amountIn -= fees;

        swapRouter.swapExactETHForTokensSupportingFeeOnTransferTokens{
            value: amountIn
        }(0, path, address(msg.sender), block.timestamp.add(300));

        if (fees > 0) {
            IERC20(WETH).transfer(feeWallet, fees);
        }
    }

    function swapExactInputSingleV3(
        address tokenIn,
        address tokenOut,
        uint24 poolFee,
        uint256 amountIn
    ) external payable returns (uint256 amountOut) {
        safeTransferWithApprove(tokenIn, amountIn, address(swapRouter02));

        uint256 fees = 0;
        fees = amountIn.mul(swapFeePercent).div(100);
        amountIn -= fees;

        IV3SwapRouter.ExactInputSingleParams memory params = IV3SwapRouter
            .ExactInputSingleParams({
                tokenIn: tokenIn,
                tokenOut: tokenOut,
                fee: poolFee,
                recipient: msg.sender,
                amountIn: amountIn,
                sqrtPriceLimitX96: 0,
                amountOutMinimum: 0
            });

        amountOut = swapRouter02.exactInputSingle(params);

        if (fees > 0) {
            IERC20(tokenIn).transfer(feeWallet, fees);
        }
    }

    function swapExactInputMultihop(
        address tokenIn,
        address tokenOut,
        uint24 poolFee,
        uint256 amountIn
    ) external payable returns (uint256 amountOut) {
        emit SwapTokens(tokenIn, amountIn, tokenOut);
        safeTransferWithApprove(tokenIn, amountIn, address(swapRouter02));

        uint256 fees = 0;
        fees = amountIn.mul(swapFeePercent).div(100);
        amountIn -= fees;

        IV3SwapRouter.ExactInputParams memory params = IV3SwapRouter
            .ExactInputParams({
                path: abi.encodePacked(
                    tokenIn,
                    poolFee,
                    WETH,
                    poolFee,
                    tokenOut
                ),
                recipient: msg.sender,
                //deadline: block.timestamp.add(300),
                amountIn: amountIn,
                amountOutMinimum: 0
            });

        // Executes the swap.
        amountOut = swapRouter02.exactInput(params);
        if (fees > 0) {
            IERC20(tokenIn).transfer(feeWallet, fees);
        }
    }

    function withdraw() external payable onlyOwner {
        emit Withdrawal(feeWallet, address(this).balance, block.timestamp);
        (bool sent, ) = feeWallet.call{value: msg.value}("");
        require(sent, "Failed to send Ether");
    }

    function withdrawToken(address tokenIn) external payable onlyOwner {
        uint256 amount = IERC20(tokenIn).balanceOf(address(this));
        emit WithdrawalToken(feeWallet, tokenIn, amount, block.timestamp);
        if (amount > 0) {
            IERC20(tokenIn).transfer(feeWallet, amount);
        }
    }

    receive() external payable {}

    fallback() external payable {}
}

File 2 of 13 : 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 3 of 13 : IUniswapV2Router02.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.15;

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

    function WETH() external pure returns (address);

    function addLiquidity(
        address tokenA,
        address tokenB,
        uint amountADesired,
        uint amountBDesired,
        uint amountAMin,
        uint amountBMin,
        address to,
        uint deadline
    ) external returns (uint amountA, uint amountB, uint liquidity);

    function addLiquidityETH(
        address token,
        uint amountTokenDesired,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    )
        external
        payable
        returns (uint amountToken, uint amountETH, uint liquidity);

    function removeLiquidity(
        address tokenA,
        address tokenB,
        uint liquidity,
        uint amountAMin,
        uint amountBMin,
        address to,
        uint deadline
    ) external returns (uint amountA, uint amountB);

    function removeLiquidityETH(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    ) external returns (uint amountToken, uint amountETH);

    function removeLiquidityWithPermit(
        address tokenA,
        address tokenB,
        uint liquidity,
        uint amountAMin,
        uint amountBMin,
        address to,
        uint deadline,
        bool approveMax,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external returns (uint amountA, uint amountB);

    function removeLiquidityETHWithPermit(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline,
        bool approveMax,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external returns (uint amountToken, uint amountETH);

    function swapExactTokensForTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external returns (uint[] memory amounts);

    function swapTokensForExactTokens(
        uint amountOut,
        uint amountInMax,
        address[] calldata path,
        address to,
        uint deadline
    ) external returns (uint[] memory amounts);

    function swapExactETHForTokens(
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external payable returns (uint[] memory amounts);

    function swapTokensForExactETH(
        uint amountOut,
        uint amountInMax,
        address[] calldata path,
        address to,
        uint deadline
    ) external returns (uint[] memory amounts);

    function swapExactTokensForETH(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external returns (uint[] memory amounts);

    function swapETHForExactTokens(
        uint amountOut,
        address[] calldata path,
        address to,
        uint deadline
    ) external payable returns (uint[] memory amounts);

    function quote(
        uint amountA,
        uint reserveA,
        uint reserveB
    ) external pure returns (uint amountB);

    function getAmountOut(
        uint amountIn,
        uint reserveIn,
        uint reserveOut
    ) external pure returns (uint amountOut);

    function getAmountIn(
        uint amountOut,
        uint reserveIn,
        uint reserveOut
    ) external pure returns (uint amountIn);

    function getAmountsOut(
        uint amountIn,
        address[] calldata path
    ) external view returns (uint[] memory amounts);

    function getAmountsIn(
        uint amountOut,
        address[] calldata path
    ) external view returns (uint[] memory amounts);
}

interface IUniswapV2Router02 is IUniswapV2Router01 {
    function removeLiquidityETHSupportingFeeOnTransferTokens(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    ) external returns (uint amountETH);

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

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

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

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

File 4 of 13 : SafeMath.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/math/SafeMath.sol)

pragma solidity ^0.8.0;

// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.

/**
 * @dev Wrappers over Solidity's arithmetic operations.
 *
 * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler
 * now has built in overflow checking.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b > a) return (false, 0);
            return (true, a - b);
        }
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
            // benefit is lost if 'b' is also tested.
            // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
            if (a == 0) return (true, 0);
            uint256 c = a * b;
            if (c / a != b) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a / b);
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a % b);
        }
    }

    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        return a + b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return a - b;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        return a * b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator.
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return a % b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        unchecked {
            require(b <= a, errorMessage);
            return a - b;
        }
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a / b;
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a % b;
        }
    }
}

File 5 of 13 : 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 6 of 13 : ISwapRouter.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 ISwapRouter is IUniswapV3SwapCallback {
    struct ExactInputSingleParams {
        address tokenIn;
        address tokenOut;
        uint24 fee;
        address recipient;
        uint256 deadline;
        uint256 amountIn;
        uint256 amountOutMinimum;
        uint160 sqrtPriceLimitX96;
    }

    /// @notice Swaps `amountIn` of one token for as much as possible of another token
    /// @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 deadline;
        uint256 amountIn;
        uint256 amountOutMinimum;
    }

    /// @notice Swaps `amountIn` of one token for as much as possible of another along the specified path
    /// @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 deadline;
        uint256 amountOut;
        uint256 amountInMaximum;
        uint160 sqrtPriceLimitX96;
    }

    /// @notice Swaps as little as possible of one token for `amountOut` of another token
    /// @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 deadline;
        uint256 amountOut;
        uint256 amountInMaximum;
    }

    /// @notice Swaps as little as possible of one token for `amountOut` of another along the specified path (reversed)
    /// @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 7 of 13 : TransferHelper.sol
// SPDX-License-Identifier: GPL-2.0-or-later
pragma solidity >=0.6.0;

import '@openzeppelin/contracts/token/ERC20/IERC20.sol';

library TransferHelper {
    /// @notice Transfers tokens from the targeted address to the given destination
    /// @notice Errors with 'STF' if transfer fails
    /// @param token The contract address of the token to be transferred
    /// @param from The originating address from which the tokens will be transferred
    /// @param to The destination address of the transfer
    /// @param value The amount to be transferred
    function safeTransferFrom(
        address token,
        address from,
        address to,
        uint256 value
    ) internal {
        (bool success, bytes memory data) =
            token.call(abi.encodeWithSelector(IERC20.transferFrom.selector, from, to, value));
        require(success && (data.length == 0 || abi.decode(data, (bool))), 'STF');
    }

    /// @notice Transfers tokens from msg.sender to a recipient
    /// @dev Errors with ST if transfer fails
    /// @param token The contract address of the token which will be transferred
    /// @param to The recipient of the transfer
    /// @param value The value of the transfer
    function safeTransfer(
        address token,
        address to,
        uint256 value
    ) internal {
        (bool success, bytes memory data) = token.call(abi.encodeWithSelector(IERC20.transfer.selector, to, value));
        require(success && (data.length == 0 || abi.decode(data, (bool))), 'ST');
    }

    /// @notice Approves the stipulated contract to spend the given allowance in the given token
    /// @dev Errors with 'SA' if transfer fails
    /// @param token The contract address of the token to be approved
    /// @param to The target of the approval
    /// @param value The amount of the given token the target will be allowed to spend
    function safeApprove(
        address token,
        address to,
        uint256 value
    ) internal {
        (bool success, bytes memory data) = token.call(abi.encodeWithSelector(IERC20.approve.selector, to, value));
        require(success && (data.length == 0 || abi.decode(data, (bool))), 'SA');
    }

    /// @notice Transfers ETH to the recipient address
    /// @dev Fails with `STE`
    /// @param to The destination of the transfer
    /// @param value The value to be transferred
    function safeTransferETH(address to, uint256 value) internal {
        (bool success, ) = to.call{value: value}(new bytes(0));
        require(success, 'STE');
    }
}

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

pragma solidity ^0.8.20;

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

/**
 * @dev Implementation of the {IERC20} interface.
 *
 * This implementation is agnostic to the way tokens are created. This means
 * that a supply mechanism has to be added in a derived contract using {_mint}.
 *
 * TIP: For a detailed writeup see our guide
 * https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * The default value of {decimals} is 18. To change this, you should override
 * this function so it returns a different value.
 *
 * We have followed general OpenZeppelin Contracts guidelines: functions revert
 * instead returning `false` on failure. This behavior is nonetheless
 * conventional and does not conflict with the expectations of ERC20
 * applications.
 *
 * Additionally, an {Approval} event is emitted on calls to {transferFrom}.
 * This allows applications to reconstruct the allowance for all accounts just
 * by listening to said events. Other implementations of the EIP may not emit
 * these events, as it isn't required by the specification.
 */
abstract contract ERC20 is Context, IERC20, IERC20Metadata, IERC20Errors {
    mapping(address account => uint256) private _balances;

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

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

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

        emit Transfer(from, to, value);
    }

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

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

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

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

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

File 9 of 13 : 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 10 of 13 : 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 11 of 13 : draft-IERC6093.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/draft-IERC6093.sol)
pragma solidity ^0.8.20;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 12 of 13 : 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 13 of 13 : IERC20Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/extensions/IERC20Metadata.sol)

pragma solidity ^0.8.20;

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

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

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

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address payable","name":"initialOwner","type":"address"}],"stateMutability":"payable","type":"constructor"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"tokenIn","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"address","name":"tokenOut","type":"address"}],"name":"SwapTokens","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"feeWallet","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"when","type":"uint256"}],"name":"Withdrawal","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"feeWallet","type":"address"},{"indexed":false,"internalType":"address","name":"tokenIn","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"when","type":"uint256"}],"name":"WithdrawalToken","type":"event"},{"stateMutability":"payable","type":"fallback"},{"inputs":[],"name":"USDC","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WETH","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feeWallet","outputs":[{"internalType":"address payable","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":[{"internalType":"address","name":"tokenOut","type":"address"},{"internalType":"uint256","name":"amountIn","type":"uint256"}],"name":"swapEthForExactTokens","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"tokenIn","type":"address"},{"internalType":"address","name":"tokenOut","type":"address"},{"internalType":"uint24","name":"poolFee","type":"uint24"},{"internalType":"uint256","name":"amountIn","type":"uint256"}],"name":"swapExactInputMultihop","outputs":[{"internalType":"uint256","name":"amountOut","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"tokenIn","type":"address"},{"internalType":"address","name":"tokenOut","type":"address"},{"internalType":"uint24","name":"poolFee","type":"uint24"},{"internalType":"uint256","name":"amountIn","type":"uint256"}],"name":"swapExactInputSingleV3","outputs":[{"internalType":"uint256","name":"amountOut","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"swapFeePercent","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"swapRouter","outputs":[{"internalType":"contract IUniswapV2Router02","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"swapRouter02","outputs":[{"internalType":"contract IV3SwapRouter","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"tokenIn","type":"address"},{"internalType":"uint256","name":"amountIn","type":"uint256"}],"name":"swapTokensForEth","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"tokenIn","type":"address"},{"internalType":"address","name":"tokenOut","type":"address"},{"internalType":"uint256","name":"amountIn","type":"uint256"}],"name":"swapTokensForTokens","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unlockTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address payable","name":"_new","type":"address"}],"name":"updateFeeWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_swapFeePercent","type":"uint256"}],"name":"updateSwapFeePercent","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"tokenIn","type":"address"}],"name":"withdrawToken","outputs":[],"stateMutability":"payable","type":"function"},{"stateMutability":"payable","type":"receive"}]

60c0604052737a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1660809073ffffffffffffffffffffffffffffffffffffffff168152507368b3465833fb72a70ecdf485e0e4c7bd8665fc4573ffffffffffffffffffffffffffffffffffffffff1660a09073ffffffffffffffffffffffffffffffffffffffff168152506001600355604051612bb5380380612bb583398181016040528101906100b8919061029e565b805f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610129575f6040517f1e4fbdf700000000000000000000000000000000000000000000000000000000815260040161012091906102e9565b60405180910390fd5b6101388161017f60201b60201c565b508060025f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050610302565b5f805f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050815f806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f61026d82610244565b9050919050565b61027d81610263565b8114610287575f80fd5b50565b5f8151905061029881610274565b92915050565b5f602082840312156102b3576102b2610240565b5b5f6102c08482850161028a565b91505092915050565b5f6102d382610244565b9050919050565b6102e3816102c9565b82525050565b5f6020820190506102fc5f8301846102da565b92915050565b60805160a05161284c6103695f395f818161083e01528181610930015281816110c60152818161131301526113e701525f8181610546015281816105a601528181610be101528181610c4101528181610f1801528181610f770152611588015261284c5ff3fe608060405260043610610117575f3560e01c8063894760691161009f578063b9b9c42111610063578063b9b9c42114610304578063bb603c6414610334578063c31c9c071461035c578063f25f4b5614610386578063f2fde38b146103b05761011e565b8063894760691461024057806389a302711461025c5780638da5cb5b146102865780638fb9085b146102b0578063ad5c4648146102da5761011e565b806356feb11b116100e657806356feb11b146101a057806366718524146101bc578063715018a6146101e45780637b1c1776146101fa5780637eaf1116146102165761011e565b8063251c1aa314610120578063338e9e161461014a5780633ccfd60b146101665780634b06b982146101705761011e565b3661011e57005b005b34801561012b575f80fd5b506101346103d8565b6040516101419190611ab6565b60405180910390f35b610164600480360381019061015f9190611b57565b6103de565b005b61016e610706565b005b61018a60048036038101906101859190611bcd565b610836565b6040516101979190611ab6565b60405180910390f35b6101ba60048036038101906101b59190611b57565b610a79565b005b3480156101c7575f80fd5b506101e260048036038101906101dd9190611c6c565b610d8d565b005b3480156101ef575f80fd5b506101f8610dd8565b005b610214600480360381019061020f9190611c97565b610deb565b005b348015610221575f80fd5b5061022a6110c4565b6040516102379190611d42565b60405180910390f35b61025a60048036038101906102559190611d5b565b6110e8565b005b348015610267575f80fd5b50610270611273565b60405161027d9190611d95565b60405180910390f35b348015610291575f80fd5b5061029a61128b565b6040516102a79190611d95565b60405180910390f35b3480156102bb575f80fd5b506102c46112b2565b6040516102d19190611ab6565b60405180910390f35b3480156102e5575f80fd5b506102ee6112b8565b6040516102fb9190611d95565b60405180910390f35b61031e60048036038101906103199190611bcd565b6112d0565b60405161032b9190611ab6565b60405180910390f35b34801561033f575f80fd5b5061035a60048036038101906103559190611dae565b611530565b005b348015610367575f80fd5b50610370611586565b60405161037d9190611df9565b60405180910390f35b348015610391575f80fd5b5061039a6115aa565b6040516103a79190611e21565b60405180910390f35b3480156103bb575f80fd5b506103d660048036038101906103d19190611d5b565b6115cf565b005b60015481565b7f84058f255417582eb127dcca8e159d4813df8dad8fb0f44f2f37da325685dbfe73c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2828460405161042593929190611e3a565b60405180910390a16060600267ffffffffffffffff81111561044a57610449611e6f565b5b6040519080825280602002602001820160405280156104785781602001602082028036833780820191505090505b50905073c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2815f815181106104a3576104a2611e9c565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505082816001815181106104f2576104f1611e9c565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505061056b73c02aaa39b223fe8d0a0e5c4f27ead9083c756cc27f000000000000000000000000000000000000000000000000000000000000000084611653565b5f6105946064610586600354866117a290919063ffffffff16565b6117b790919063ffffffff16565b905080836105a29190611ef6565b92507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663b6f9de95845f85336105f961012c426117cc90919063ffffffff16565b6040518663ffffffff1660e01b81526004016106189493929190612019565b5f604051808303818588803b15801561062f575f80fd5b505af1158015610641573d5f803e3d5ffd5b50505050505f8111156107005773c02aaa39b223fe8d0a0e5c4f27ead9083c756cc273ffffffffffffffffffffffffffffffffffffffff1663a9059cbb60025f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16836040518363ffffffff1660e01b81526004016106be929190612083565b6020604051808303815f875af11580156106da573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906106fe91906120df565b505b50505050565b61070e6117e1565b7fdf273cb619d95419a9cd0ec88123a0538c85064229baa6363788f743fff90deb60025f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1647426040516107629392919061210a565b60405180910390a15f60025f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16346040516107b09061216c565b5f6040518083038185875af1925050503d805f81146107ea576040519150601f19603f3d011682016040523d82523d5f602084013e6107ef565b606091505b5050905080610833576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161082a906121da565b60405180910390fd5b50565b5f61086285837f0000000000000000000000000000000000000000000000000000000000000000611868565b5f61088b606461087d600354866117a290919063ffffffff16565b6117b790919063ffffffff16565b905080836108999190611ef6565b92505f6040518060e001604052808873ffffffffffffffffffffffffffffffffffffffff1681526020018773ffffffffffffffffffffffffffffffffffffffff1681526020018662ffffff1681526020013373ffffffffffffffffffffffffffffffffffffffff1681526020018581526020015f81526020015f73ffffffffffffffffffffffffffffffffffffffff1681525090507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166304e45aaf826040518263ffffffff1660e01b815260040161098791906122b1565b6020604051808303815f875af11580156109a3573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906109c791906122de565b92505f821115610a6f578673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb60025f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16846040518363ffffffff1660e01b8152600401610a2d929190612083565b6020604051808303815f875af1158015610a49573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a6d91906120df565b505b5050949350505050565b7f84058f255417582eb127dcca8e159d4813df8dad8fb0f44f2f37da325685dbfe73c02aaa39b223fe8d0a0e5c4f27ead9083c756cc28273c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2604051610ad493929190611e3a565b60405180910390a16060600267ffffffffffffffff811115610af957610af8611e6f565b5b604051908082528060200260200182016040528015610b275781602001602082028036833780820191505090505b50905082815f81518110610b3e57610b3d611e9c565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505073c02aaa39b223fe8d0a0e5c4f27ead9083c756cc281600181518110610ba157610ba0611e9c565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050610c06837f000000000000000000000000000000000000000000000000000000000000000084611653565b5f610c2f6064610c21600354866117a290919063ffffffff16565b6117b790919063ffffffff16565b90508083610c3d9190611ef6565b92507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663791ac947845f8533610c9461012c426117cc90919063ffffffff16565b6040518663ffffffff1660e01b8152600401610cb4959493929190612309565b5f604051808303815f87803b158015610ccb575f80fd5b505af1158015610cdd573d5f803e3d5ffd5b505050505f811115610d87578373ffffffffffffffffffffffffffffffffffffffff1663a9059cbb60025f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16836040518363ffffffff1660e01b8152600401610d45929190612083565b6020604051808303815f875af1158015610d61573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610d8591906120df565b505b50505050565b610d956117e1565b8060025f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b610de06117e1565b610de95f611884565b565b7f84058f255417582eb127dcca8e159d4813df8dad8fb0f44f2f37da325685dbfe838284604051610e1e93929190611e3a565b60405180910390a16060600267ffffffffffffffff811115610e4357610e42611e6f565b5b604051908082528060200260200182016040528015610e715781602001602082028036833780820191505090505b50905083815f81518110610e8857610e87611e9c565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250508281600181518110610ed757610ed6611e9c565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050610f3c84837f0000000000000000000000000000000000000000000000000000000000000000611868565b5f610f656064610f57600354866117a290919063ffffffff16565b6117b790919063ffffffff16565b90508083610f739190611ef6565b92507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16635c11d795845f8533610fca61012c426117cc90919063ffffffff16565b6040518663ffffffff1660e01b8152600401610fea959493929190612309565b5f604051808303815f87803b158015611001575f80fd5b505af1158015611013573d5f803e3d5ffd5b505050505f8111156110bd578473ffffffffffffffffffffffffffffffffffffffff1663a9059cbb60025f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16836040518363ffffffff1660e01b815260040161107b929190612083565b6020604051808303815f875af1158015611097573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906110bb91906120df565b505b5050505050565b7f000000000000000000000000000000000000000000000000000000000000000081565b6110f06117e1565b5f8173ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b815260040161112a9190611d95565b602060405180830381865afa158015611145573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061116991906122de565b90507f023b8e4ef05b31f91b1a0a7e7d09ac173ddc3f2c3ebf9b73853772b603ad057f60025f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff168383426040516111c19493929190612361565b60405180910390a15f81111561126f578173ffffffffffffffffffffffffffffffffffffffff1663a9059cbb60025f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16836040518363ffffffff1660e01b815260040161122d929190612083565b6020604051808303815f875af1158015611249573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061126d91906120df565b505b5050565b73a0b86991c6218b36c1d19d4a2e9eb0ce3606eb4881565b5f805f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60035481565b73c02aaa39b223fe8d0a0e5c4f27ead9083c756cc281565b5f7f84058f255417582eb127dcca8e159d4813df8dad8fb0f44f2f37da325685dbfe85838660405161130493929190611e3a565b60405180910390a161133785837f0000000000000000000000000000000000000000000000000000000000000000611868565b5f6113606064611352600354866117a290919063ffffffff16565b6117b790919063ffffffff16565b9050808361136e9190611ef6565b92505f6040518060800160405280888773c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2898b6040516020016113a995949392919061241d565b60405160208183030381529060405281526020013373ffffffffffffffffffffffffffffffffffffffff1681526020018581526020015f81525090507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663b858183f826040518263ffffffff1660e01b815260040161143e919061254b565b6020604051808303815f875af115801561145a573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061147e91906122de565b92505f821115611526578673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb60025f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16846040518363ffffffff1660e01b81526004016114e4929190612083565b6020604051808303815f875af1158015611500573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061152491906120df565b505b5050949350505050565b6115386117e1565b600f81111561157c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611573906125b5565b60405180910390fd5b8060038190555050565b7f000000000000000000000000000000000000000000000000000000000000000081565b60025f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6115d76117e1565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611647575f6040517f1e4fbdf700000000000000000000000000000000000000000000000000000000815260040161163e9190611d95565b60405180910390fd5b61165081611884565b50565b5f808473ffffffffffffffffffffffffffffffffffffffff1663095ea7b360e01b85856040516024016116879291906125d3565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506040516116f1919061262a565b5f604051808303815f865af19150503d805f811461172a576040519150601f19603f3d011682016040523d82523d5f602084013e61172f565b606091505b509150915081801561175c57505f8151148061175b57508080602001905181019061175a91906120df565b5b5b61179b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117929061268a565b60405180910390fd5b5050505050565b5f81836117af91906126a8565b905092915050565b5f81836117c49190612716565b905092915050565b5f81836117d99190612746565b905092915050565b6117e9611945565b73ffffffffffffffffffffffffffffffffffffffff1661180761128b565b73ffffffffffffffffffffffffffffffffffffffff16146118665761182a611945565b6040517f118cdaa700000000000000000000000000000000000000000000000000000000815260040161185d9190611d95565b60405180910390fd5b565b6118748333308561194c565b61187f838284611653565b505050565b5f805f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050815f806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b5f33905090565b5f808573ffffffffffffffffffffffffffffffffffffffff166323b872dd60e01b86868660405160240161198293929190612779565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506040516119ec919061262a565b5f604051808303815f865af19150503d805f8114611a25576040519150601f19603f3d011682016040523d82523d5f602084013e611a2a565b606091505b5091509150818015611a5757505f81511480611a56575080806020019051810190611a5591906120df565b5b5b611a96576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a8d906127f8565b60405180910390fd5b505050505050565b5f819050919050565b611ab081611a9e565b82525050565b5f602082019050611ac95f830184611aa7565b92915050565b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f611afc82611ad3565b9050919050565b611b0c81611af2565b8114611b16575f80fd5b50565b5f81359050611b2781611b03565b92915050565b611b3681611a9e565b8114611b40575f80fd5b50565b5f81359050611b5181611b2d565b92915050565b5f8060408385031215611b6d57611b6c611acf565b5b5f611b7a85828601611b19565b9250506020611b8b85828601611b43565b9150509250929050565b5f62ffffff82169050919050565b611bac81611b95565b8114611bb6575f80fd5b50565b5f81359050611bc781611ba3565b92915050565b5f805f8060808587031215611be557611be4611acf565b5b5f611bf287828801611b19565b9450506020611c0387828801611b19565b9350506040611c1487828801611bb9565b9250506060611c2587828801611b43565b91505092959194509250565b5f611c3b82611ad3565b9050919050565b611c4b81611c31565b8114611c55575f80fd5b50565b5f81359050611c6681611c42565b92915050565b5f60208284031215611c8157611c80611acf565b5b5f611c8e84828501611c58565b91505092915050565b5f805f60608486031215611cae57611cad611acf565b5b5f611cbb86828701611b19565b9350506020611ccc86828701611b19565b9250506040611cdd86828701611b43565b9150509250925092565b5f819050919050565b5f611d0a611d05611d0084611ad3565b611ce7565b611ad3565b9050919050565b5f611d1b82611cf0565b9050919050565b5f611d2c82611d11565b9050919050565b611d3c81611d22565b82525050565b5f602082019050611d555f830184611d33565b92915050565b5f60208284031215611d7057611d6f611acf565b5b5f611d7d84828501611b19565b91505092915050565b611d8f81611af2565b82525050565b5f602082019050611da85f830184611d86565b92915050565b5f60208284031215611dc357611dc2611acf565b5b5f611dd084828501611b43565b91505092915050565b5f611de382611d11565b9050919050565b611df381611dd9565b82525050565b5f602082019050611e0c5f830184611dea565b92915050565b611e1b81611c31565b82525050565b5f602082019050611e345f830184611e12565b92915050565b5f606082019050611e4d5f830186611d86565b611e5a6020830185611aa7565b611e676040830184611d86565b949350505050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f611f0082611a9e565b9150611f0b83611a9e565b9250828203905081811115611f2357611f22611ec9565b5b92915050565b5f819050919050565b5f611f4c611f47611f4284611f29565b611ce7565b611a9e565b9050919050565b611f5c81611f32565b82525050565b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b611f9481611af2565b82525050565b5f611fa58383611f8b565b60208301905092915050565b5f602082019050919050565b5f611fc782611f62565b611fd18185611f6c565b9350611fdc83611f7c565b805f5b8381101561200c578151611ff38882611f9a565b9750611ffe83611fb1565b925050600181019050611fdf565b5085935050505092915050565b5f60808201905061202c5f830187611f53565b818103602083015261203e8186611fbd565b905061204d6040830185611d86565b61205a6060830184611aa7565b95945050505050565b5f61206d82611d11565b9050919050565b61207d81612063565b82525050565b5f6040820190506120965f830185612074565b6120a36020830184611aa7565b9392505050565b5f8115159050919050565b6120be816120aa565b81146120c8575f80fd5b50565b5f815190506120d9816120b5565b92915050565b5f602082840312156120f4576120f3611acf565b5b5f612101848285016120cb565b91505092915050565b5f60608201905061211d5f830186612074565b61212a6020830185611aa7565b6121376040830184611aa7565b949350505050565b5f81905092915050565b50565b5f6121575f8361213f565b915061216282612149565b5f82019050919050565b5f6121768261214c565b9150819050919050565b5f82825260208201905092915050565b7f4661696c656420746f2073656e642045746865720000000000000000000000005f82015250565b5f6121c4601483612180565b91506121cf82612190565b602082019050919050565b5f6020820190508181035f8301526121f1816121b8565b9050919050565b61220181611b95565b82525050565b61221081611a9e565b82525050565b61221f81611ad3565b82525050565b60e082015f8201516122395f850182611f8b565b50602082015161224c6020850182611f8b565b50604082015161225f60408501826121f8565b5060608201516122726060850182611f8b565b5060808201516122856080850182612207565b5060a082015161229860a0850182612207565b5060c08201516122ab60c0850182612216565b50505050565b5f60e0820190506122c45f830184612225565b92915050565b5f815190506122d881611b2d565b92915050565b5f602082840312156122f3576122f2611acf565b5b5f612300848285016122ca565b91505092915050565b5f60a08201905061231c5f830188611aa7565b6123296020830187611f53565b818103604083015261233b8186611fbd565b905061234a6060830185611d86565b6123576080830184611aa7565b9695505050505050565b5f6080820190506123745f830187612074565b6123816020830186611d86565b61238e6040830185611aa7565b61239b6060830184611aa7565b95945050505050565b5f8160601b9050919050565b5f6123ba826123a4565b9050919050565b5f6123cb826123b0565b9050919050565b6123e36123de82611af2565b6123c1565b82525050565b5f8160e81b9050919050565b5f6123ff826123e9565b9050919050565b61241761241282611b95565b6123f5565b82525050565b5f61242882886123d2565b6014820191506124388287612406565b60038201915061244882866123d2565b6014820191506124588285612406565b60038201915061246882846123d2565b6014820191508190509695505050505050565b5f81519050919050565b5f82825260208201905092915050565b8281835e5f83830152505050565b5f601f19601f8301169050919050565b5f6124bd8261247b565b6124c78185612485565b93506124d7818560208601612495565b6124e0816124a3565b840191505092915050565b5f608083015f8301518482035f86015261250582826124b3565b915050602083015161251a6020860182611f8b565b50604083015161252d6040860182612207565b5060608301516125406060860182612207565b508091505092915050565b5f6020820190508181035f83015261256381846124eb565b905092915050565b7f4d757374206b656570206665657320617420313525206f72206c6573730000005f82015250565b5f61259f601d83612180565b91506125aa8261256b565b602082019050919050565b5f6020820190508181035f8301526125cc81612593565b9050919050565b5f6040820190506125e65f830185611d86565b6125f36020830184611aa7565b9392505050565b5f6126048261247b565b61260e818561213f565b935061261e818560208601612495565b80840191505092915050565b5f61263582846125fa565b915081905092915050565b7f53410000000000000000000000000000000000000000000000000000000000005f82015250565b5f612674600283612180565b915061267f82612640565b602082019050919050565b5f6020820190508181035f8301526126a181612668565b9050919050565b5f6126b282611a9e565b91506126bd83611a9e565b92508282026126cb81611a9e565b915082820484148315176126e2576126e1611ec9565b5b5092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b5f61272082611a9e565b915061272b83611a9e565b92508261273b5761273a6126e9565b5b828204905092915050565b5f61275082611a9e565b915061275b83611a9e565b925082820190508082111561277357612772611ec9565b5b92915050565b5f60608201905061278c5f830186611d86565b6127996020830185611d86565b6127a66040830184611aa7565b949350505050565b7f53544600000000000000000000000000000000000000000000000000000000005f82015250565b5f6127e2600383612180565b91506127ed826127ae565b602082019050919050565b5f6020820190508181035f83015261280f816127d6565b905091905056fea26469706673582212207e9a33264367bafdad6bac1f91aa8228005595b3184d8f9f3c9461b8c9ca88c264736f6c634300081900330000000000000000000000001502d5793c59cfe0ed7298380d8e1dcb87665a11

Deployed Bytecode

0x608060405260043610610117575f3560e01c8063894760691161009f578063b9b9c42111610063578063b9b9c42114610304578063bb603c6414610334578063c31c9c071461035c578063f25f4b5614610386578063f2fde38b146103b05761011e565b8063894760691461024057806389a302711461025c5780638da5cb5b146102865780638fb9085b146102b0578063ad5c4648146102da5761011e565b806356feb11b116100e657806356feb11b146101a057806366718524146101bc578063715018a6146101e45780637b1c1776146101fa5780637eaf1116146102165761011e565b8063251c1aa314610120578063338e9e161461014a5780633ccfd60b146101665780634b06b982146101705761011e565b3661011e57005b005b34801561012b575f80fd5b506101346103d8565b6040516101419190611ab6565b60405180910390f35b610164600480360381019061015f9190611b57565b6103de565b005b61016e610706565b005b61018a60048036038101906101859190611bcd565b610836565b6040516101979190611ab6565b60405180910390f35b6101ba60048036038101906101b59190611b57565b610a79565b005b3480156101c7575f80fd5b506101e260048036038101906101dd9190611c6c565b610d8d565b005b3480156101ef575f80fd5b506101f8610dd8565b005b610214600480360381019061020f9190611c97565b610deb565b005b348015610221575f80fd5b5061022a6110c4565b6040516102379190611d42565b60405180910390f35b61025a60048036038101906102559190611d5b565b6110e8565b005b348015610267575f80fd5b50610270611273565b60405161027d9190611d95565b60405180910390f35b348015610291575f80fd5b5061029a61128b565b6040516102a79190611d95565b60405180910390f35b3480156102bb575f80fd5b506102c46112b2565b6040516102d19190611ab6565b60405180910390f35b3480156102e5575f80fd5b506102ee6112b8565b6040516102fb9190611d95565b60405180910390f35b61031e60048036038101906103199190611bcd565b6112d0565b60405161032b9190611ab6565b60405180910390f35b34801561033f575f80fd5b5061035a60048036038101906103559190611dae565b611530565b005b348015610367575f80fd5b50610370611586565b60405161037d9190611df9565b60405180910390f35b348015610391575f80fd5b5061039a6115aa565b6040516103a79190611e21565b60405180910390f35b3480156103bb575f80fd5b506103d660048036038101906103d19190611d5b565b6115cf565b005b60015481565b7f84058f255417582eb127dcca8e159d4813df8dad8fb0f44f2f37da325685dbfe73c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2828460405161042593929190611e3a565b60405180910390a16060600267ffffffffffffffff81111561044a57610449611e6f565b5b6040519080825280602002602001820160405280156104785781602001602082028036833780820191505090505b50905073c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2815f815181106104a3576104a2611e9c565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505082816001815181106104f2576104f1611e9c565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505061056b73c02aaa39b223fe8d0a0e5c4f27ead9083c756cc27f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d84611653565b5f6105946064610586600354866117a290919063ffffffff16565b6117b790919063ffffffff16565b905080836105a29190611ef6565b92507f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663b6f9de95845f85336105f961012c426117cc90919063ffffffff16565b6040518663ffffffff1660e01b81526004016106189493929190612019565b5f604051808303818588803b15801561062f575f80fd5b505af1158015610641573d5f803e3d5ffd5b50505050505f8111156107005773c02aaa39b223fe8d0a0e5c4f27ead9083c756cc273ffffffffffffffffffffffffffffffffffffffff1663a9059cbb60025f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16836040518363ffffffff1660e01b81526004016106be929190612083565b6020604051808303815f875af11580156106da573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906106fe91906120df565b505b50505050565b61070e6117e1565b7fdf273cb619d95419a9cd0ec88123a0538c85064229baa6363788f743fff90deb60025f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1647426040516107629392919061210a565b60405180910390a15f60025f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16346040516107b09061216c565b5f6040518083038185875af1925050503d805f81146107ea576040519150601f19603f3d011682016040523d82523d5f602084013e6107ef565b606091505b5050905080610833576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161082a906121da565b60405180910390fd5b50565b5f61086285837f00000000000000000000000068b3465833fb72a70ecdf485e0e4c7bd8665fc45611868565b5f61088b606461087d600354866117a290919063ffffffff16565b6117b790919063ffffffff16565b905080836108999190611ef6565b92505f6040518060e001604052808873ffffffffffffffffffffffffffffffffffffffff1681526020018773ffffffffffffffffffffffffffffffffffffffff1681526020018662ffffff1681526020013373ffffffffffffffffffffffffffffffffffffffff1681526020018581526020015f81526020015f73ffffffffffffffffffffffffffffffffffffffff1681525090507f00000000000000000000000068b3465833fb72a70ecdf485e0e4c7bd8665fc4573ffffffffffffffffffffffffffffffffffffffff166304e45aaf826040518263ffffffff1660e01b815260040161098791906122b1565b6020604051808303815f875af11580156109a3573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906109c791906122de565b92505f821115610a6f578673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb60025f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16846040518363ffffffff1660e01b8152600401610a2d929190612083565b6020604051808303815f875af1158015610a49573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610a6d91906120df565b505b5050949350505050565b7f84058f255417582eb127dcca8e159d4813df8dad8fb0f44f2f37da325685dbfe73c02aaa39b223fe8d0a0e5c4f27ead9083c756cc28273c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2604051610ad493929190611e3a565b60405180910390a16060600267ffffffffffffffff811115610af957610af8611e6f565b5b604051908082528060200260200182016040528015610b275781602001602082028036833780820191505090505b50905082815f81518110610b3e57610b3d611e9c565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505073c02aaa39b223fe8d0a0e5c4f27ead9083c756cc281600181518110610ba157610ba0611e9c565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050610c06837f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d84611653565b5f610c2f6064610c21600354866117a290919063ffffffff16565b6117b790919063ffffffff16565b90508083610c3d9190611ef6565b92507f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff1663791ac947845f8533610c9461012c426117cc90919063ffffffff16565b6040518663ffffffff1660e01b8152600401610cb4959493929190612309565b5f604051808303815f87803b158015610ccb575f80fd5b505af1158015610cdd573d5f803e3d5ffd5b505050505f811115610d87578373ffffffffffffffffffffffffffffffffffffffff1663a9059cbb60025f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16836040518363ffffffff1660e01b8152600401610d45929190612083565b6020604051808303815f875af1158015610d61573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610d8591906120df565b505b50505050565b610d956117e1565b8060025f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b610de06117e1565b610de95f611884565b565b7f84058f255417582eb127dcca8e159d4813df8dad8fb0f44f2f37da325685dbfe838284604051610e1e93929190611e3a565b60405180910390a16060600267ffffffffffffffff811115610e4357610e42611e6f565b5b604051908082528060200260200182016040528015610e715781602001602082028036833780820191505090505b50905083815f81518110610e8857610e87611e9c565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250508281600181518110610ed757610ed6611e9c565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050610f3c84837f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d611868565b5f610f656064610f57600354866117a290919063ffffffff16565b6117b790919063ffffffff16565b90508083610f739190611ef6565b92507f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d73ffffffffffffffffffffffffffffffffffffffff16635c11d795845f8533610fca61012c426117cc90919063ffffffff16565b6040518663ffffffff1660e01b8152600401610fea959493929190612309565b5f604051808303815f87803b158015611001575f80fd5b505af1158015611013573d5f803e3d5ffd5b505050505f8111156110bd578473ffffffffffffffffffffffffffffffffffffffff1663a9059cbb60025f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16836040518363ffffffff1660e01b815260040161107b929190612083565b6020604051808303815f875af1158015611097573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906110bb91906120df565b505b5050505050565b7f00000000000000000000000068b3465833fb72a70ecdf485e0e4c7bd8665fc4581565b6110f06117e1565b5f8173ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b815260040161112a9190611d95565b602060405180830381865afa158015611145573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061116991906122de565b90507f023b8e4ef05b31f91b1a0a7e7d09ac173ddc3f2c3ebf9b73853772b603ad057f60025f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff168383426040516111c19493929190612361565b60405180910390a15f81111561126f578173ffffffffffffffffffffffffffffffffffffffff1663a9059cbb60025f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16836040518363ffffffff1660e01b815260040161122d929190612083565b6020604051808303815f875af1158015611249573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061126d91906120df565b505b5050565b73a0b86991c6218b36c1d19d4a2e9eb0ce3606eb4881565b5f805f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60035481565b73c02aaa39b223fe8d0a0e5c4f27ead9083c756cc281565b5f7f84058f255417582eb127dcca8e159d4813df8dad8fb0f44f2f37da325685dbfe85838660405161130493929190611e3a565b60405180910390a161133785837f00000000000000000000000068b3465833fb72a70ecdf485e0e4c7bd8665fc45611868565b5f6113606064611352600354866117a290919063ffffffff16565b6117b790919063ffffffff16565b9050808361136e9190611ef6565b92505f6040518060800160405280888773c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2898b6040516020016113a995949392919061241d565b60405160208183030381529060405281526020013373ffffffffffffffffffffffffffffffffffffffff1681526020018581526020015f81525090507f00000000000000000000000068b3465833fb72a70ecdf485e0e4c7bd8665fc4573ffffffffffffffffffffffffffffffffffffffff1663b858183f826040518263ffffffff1660e01b815260040161143e919061254b565b6020604051808303815f875af115801561145a573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061147e91906122de565b92505f821115611526578673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb60025f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16846040518363ffffffff1660e01b81526004016114e4929190612083565b6020604051808303815f875af1158015611500573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061152491906120df565b505b5050949350505050565b6115386117e1565b600f81111561157c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611573906125b5565b60405180910390fd5b8060038190555050565b7f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d81565b60025f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6115d76117e1565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611647575f6040517f1e4fbdf700000000000000000000000000000000000000000000000000000000815260040161163e9190611d95565b60405180910390fd5b61165081611884565b50565b5f808473ffffffffffffffffffffffffffffffffffffffff1663095ea7b360e01b85856040516024016116879291906125d3565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506040516116f1919061262a565b5f604051808303815f865af19150503d805f811461172a576040519150601f19603f3d011682016040523d82523d5f602084013e61172f565b606091505b509150915081801561175c57505f8151148061175b57508080602001905181019061175a91906120df565b5b5b61179b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117929061268a565b60405180910390fd5b5050505050565b5f81836117af91906126a8565b905092915050565b5f81836117c49190612716565b905092915050565b5f81836117d99190612746565b905092915050565b6117e9611945565b73ffffffffffffffffffffffffffffffffffffffff1661180761128b565b73ffffffffffffffffffffffffffffffffffffffff16146118665761182a611945565b6040517f118cdaa700000000000000000000000000000000000000000000000000000000815260040161185d9190611d95565b60405180910390fd5b565b6118748333308561194c565b61187f838284611653565b505050565b5f805f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050815f806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b5f33905090565b5f808573ffffffffffffffffffffffffffffffffffffffff166323b872dd60e01b86868660405160240161198293929190612779565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506040516119ec919061262a565b5f604051808303815f865af19150503d805f8114611a25576040519150601f19603f3d011682016040523d82523d5f602084013e611a2a565b606091505b5091509150818015611a5757505f81511480611a56575080806020019051810190611a5591906120df565b5b5b611a96576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a8d906127f8565b60405180910390fd5b505050505050565b5f819050919050565b611ab081611a9e565b82525050565b5f602082019050611ac95f830184611aa7565b92915050565b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f611afc82611ad3565b9050919050565b611b0c81611af2565b8114611b16575f80fd5b50565b5f81359050611b2781611b03565b92915050565b611b3681611a9e565b8114611b40575f80fd5b50565b5f81359050611b5181611b2d565b92915050565b5f8060408385031215611b6d57611b6c611acf565b5b5f611b7a85828601611b19565b9250506020611b8b85828601611b43565b9150509250929050565b5f62ffffff82169050919050565b611bac81611b95565b8114611bb6575f80fd5b50565b5f81359050611bc781611ba3565b92915050565b5f805f8060808587031215611be557611be4611acf565b5b5f611bf287828801611b19565b9450506020611c0387828801611b19565b9350506040611c1487828801611bb9565b9250506060611c2587828801611b43565b91505092959194509250565b5f611c3b82611ad3565b9050919050565b611c4b81611c31565b8114611c55575f80fd5b50565b5f81359050611c6681611c42565b92915050565b5f60208284031215611c8157611c80611acf565b5b5f611c8e84828501611c58565b91505092915050565b5f805f60608486031215611cae57611cad611acf565b5b5f611cbb86828701611b19565b9350506020611ccc86828701611b19565b9250506040611cdd86828701611b43565b9150509250925092565b5f819050919050565b5f611d0a611d05611d0084611ad3565b611ce7565b611ad3565b9050919050565b5f611d1b82611cf0565b9050919050565b5f611d2c82611d11565b9050919050565b611d3c81611d22565b82525050565b5f602082019050611d555f830184611d33565b92915050565b5f60208284031215611d7057611d6f611acf565b5b5f611d7d84828501611b19565b91505092915050565b611d8f81611af2565b82525050565b5f602082019050611da85f830184611d86565b92915050565b5f60208284031215611dc357611dc2611acf565b5b5f611dd084828501611b43565b91505092915050565b5f611de382611d11565b9050919050565b611df381611dd9565b82525050565b5f602082019050611e0c5f830184611dea565b92915050565b611e1b81611c31565b82525050565b5f602082019050611e345f830184611e12565b92915050565b5f606082019050611e4d5f830186611d86565b611e5a6020830185611aa7565b611e676040830184611d86565b949350505050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f611f0082611a9e565b9150611f0b83611a9e565b9250828203905081811115611f2357611f22611ec9565b5b92915050565b5f819050919050565b5f611f4c611f47611f4284611f29565b611ce7565b611a9e565b9050919050565b611f5c81611f32565b82525050565b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b611f9481611af2565b82525050565b5f611fa58383611f8b565b60208301905092915050565b5f602082019050919050565b5f611fc782611f62565b611fd18185611f6c565b9350611fdc83611f7c565b805f5b8381101561200c578151611ff38882611f9a565b9750611ffe83611fb1565b925050600181019050611fdf565b5085935050505092915050565b5f60808201905061202c5f830187611f53565b818103602083015261203e8186611fbd565b905061204d6040830185611d86565b61205a6060830184611aa7565b95945050505050565b5f61206d82611d11565b9050919050565b61207d81612063565b82525050565b5f6040820190506120965f830185612074565b6120a36020830184611aa7565b9392505050565b5f8115159050919050565b6120be816120aa565b81146120c8575f80fd5b50565b5f815190506120d9816120b5565b92915050565b5f602082840312156120f4576120f3611acf565b5b5f612101848285016120cb565b91505092915050565b5f60608201905061211d5f830186612074565b61212a6020830185611aa7565b6121376040830184611aa7565b949350505050565b5f81905092915050565b50565b5f6121575f8361213f565b915061216282612149565b5f82019050919050565b5f6121768261214c565b9150819050919050565b5f82825260208201905092915050565b7f4661696c656420746f2073656e642045746865720000000000000000000000005f82015250565b5f6121c4601483612180565b91506121cf82612190565b602082019050919050565b5f6020820190508181035f8301526121f1816121b8565b9050919050565b61220181611b95565b82525050565b61221081611a9e565b82525050565b61221f81611ad3565b82525050565b60e082015f8201516122395f850182611f8b565b50602082015161224c6020850182611f8b565b50604082015161225f60408501826121f8565b5060608201516122726060850182611f8b565b5060808201516122856080850182612207565b5060a082015161229860a0850182612207565b5060c08201516122ab60c0850182612216565b50505050565b5f60e0820190506122c45f830184612225565b92915050565b5f815190506122d881611b2d565b92915050565b5f602082840312156122f3576122f2611acf565b5b5f612300848285016122ca565b91505092915050565b5f60a08201905061231c5f830188611aa7565b6123296020830187611f53565b818103604083015261233b8186611fbd565b905061234a6060830185611d86565b6123576080830184611aa7565b9695505050505050565b5f6080820190506123745f830187612074565b6123816020830186611d86565b61238e6040830185611aa7565b61239b6060830184611aa7565b95945050505050565b5f8160601b9050919050565b5f6123ba826123a4565b9050919050565b5f6123cb826123b0565b9050919050565b6123e36123de82611af2565b6123c1565b82525050565b5f8160e81b9050919050565b5f6123ff826123e9565b9050919050565b61241761241282611b95565b6123f5565b82525050565b5f61242882886123d2565b6014820191506124388287612406565b60038201915061244882866123d2565b6014820191506124588285612406565b60038201915061246882846123d2565b6014820191508190509695505050505050565b5f81519050919050565b5f82825260208201905092915050565b8281835e5f83830152505050565b5f601f19601f8301169050919050565b5f6124bd8261247b565b6124c78185612485565b93506124d7818560208601612495565b6124e0816124a3565b840191505092915050565b5f608083015f8301518482035f86015261250582826124b3565b915050602083015161251a6020860182611f8b565b50604083015161252d6040860182612207565b5060608301516125406060860182612207565b508091505092915050565b5f6020820190508181035f83015261256381846124eb565b905092915050565b7f4d757374206b656570206665657320617420313525206f72206c6573730000005f82015250565b5f61259f601d83612180565b91506125aa8261256b565b602082019050919050565b5f6020820190508181035f8301526125cc81612593565b9050919050565b5f6040820190506125e65f830185611d86565b6125f36020830184611aa7565b9392505050565b5f6126048261247b565b61260e818561213f565b935061261e818560208601612495565b80840191505092915050565b5f61263582846125fa565b915081905092915050565b7f53410000000000000000000000000000000000000000000000000000000000005f82015250565b5f612674600283612180565b915061267f82612640565b602082019050919050565b5f6020820190508181035f8301526126a181612668565b9050919050565b5f6126b282611a9e565b91506126bd83611a9e565b92508282026126cb81611a9e565b915082820484148315176126e2576126e1611ec9565b5b5092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b5f61272082611a9e565b915061272b83611a9e565b92508261273b5761273a6126e9565b5b828204905092915050565b5f61275082611a9e565b915061275b83611a9e565b925082820190508082111561277357612772611ec9565b5b92915050565b5f60608201905061278c5f830186611d86565b6127996020830185611d86565b6127a66040830184611aa7565b949350505050565b7f53544600000000000000000000000000000000000000000000000000000000005f82015250565b5f6127e2600383612180565b91506127ed826127ae565b602082019050919050565b5f6020820190508181035f83015261280f816127d6565b905091905056fea26469706673582212207e9a33264367bafdad6bac1f91aa8228005595b3184d8f9f3c9461b8c9ca88c264736f6c63430008190033

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

0000000000000000000000001502d5793c59cfe0ed7298380d8e1dcb87665a11

-----Decoded View---------------
Arg [0] : initialOwner (address): 0x1502d5793c59cfE0ED7298380d8e1dCb87665A11

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000001502d5793c59cfe0ed7298380d8e1dcb87665a11


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  ]

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.