Holesky Testnet

Contract

0xE43C1875cedaC85BD392B37E27694F7D54D16982

Overview

ETH Balance

0 ETH

Multichain Info

N/A
Transaction Hash
Method
Block
From
To
Swap With Fee28424722024-11-30 6:13:248 days ago1732947204IN
0xE43C1875...D54D16982
0 ETH0.000115033.51273422
Swap With Fee28424582024-11-30 6:10:368 days ago1732947036IN
0xE43C1875...D54D16982
0 ETH0.000121283.70366161

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Swap

Compiler Version
v0.8.27+commit.40a35a09

Optimization Enabled:
No with 200 runs

Other Settings:
paris EvmVersion

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 4 : Swap.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.19;

import "@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router02.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";

contract Swap {
    address public owner;
    address public feeRecipient;
    uint256 public feePercentage; // Fee in basis points (e.g., 100 = 1%)

    IUniswapV2Router02 public uniswapRouter;

    event SwapCompleted(address indexed sender, address tokenIn, address tokenOut, uint256 amountIn, uint256 amountOut);
    event FeeTransferred(address indexed recipient, uint256 feeAmount);

    modifier onlyOwner() {
        require(msg.sender == owner, "Not the owner");
        _;
    }

    constructor(address _router, address _feeRecipient, uint256 _feePercentage) {
        require(_feePercentage <= 10000, "Invalid fee percentage"); // Max is 100% (10000 basis points)
        owner = msg.sender;
        feeRecipient = _feeRecipient;
        feePercentage = _feePercentage;
        uniswapRouter = IUniswapV2Router02(_router);
    }

    function updateFeeRecipient(address _feeRecipient) external onlyOwner {
        feeRecipient = _feeRecipient;
    }

    function updateFeePercentage(uint256 _feePercentage) external onlyOwner {
        require(_feePercentage <= 10000, "Invalid fee percentage");
        feePercentage = _feePercentage;
    }

    function swapWithFee(
        address tokenIn,
        address tokenOut,
        uint256 amountIn,
        uint256 amountOutMin,
        address[] calldata path,
        uint256 deadline
    ) external {
        require(path[0] == tokenIn && path[path.length - 1] == tokenOut, "Invalid swap path");

        // Transfer tokens from user to contract
        IERC20(tokenIn).transferFrom(msg.sender, address(this), amountIn);

        // Calculate fee and swap amount
        uint256 fee = (amountIn * feePercentage) / 10000;
        uint256 swapAmount = amountIn - fee;

        // Transfer fee to the recipient
        if (fee > 0) {
            IERC20(tokenIn).transfer(feeRecipient, fee);
            emit FeeTransferred(feeRecipient, fee);
        }

        // Approve Uniswap Router to spend the swap amount
        IERC20(tokenIn).approve(address(uniswapRouter), swapAmount);

        // Perform the swap
        uint256[] memory amounts = uniswapRouter.swapExactTokensForTokens(
            swapAmount,
            amountOutMin,
            path,
            msg.sender,
            deadline
        );

        emit SwapCompleted(msg.sender, tokenIn, tokenOut, amountIn, amounts[amounts.length - 1]);
    }
}

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

pragma solidity ^0.8.20;

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

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

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

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

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

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

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

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

File 3 of 4 : IUniswapV2Router01.sol
pragma solidity >=0.6.2;

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

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

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

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

import './IUniswapV2Router01.sol';

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

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

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

Contract ABI

[{"inputs":[{"internalType":"address","name":"_router","type":"address"},{"internalType":"address","name":"_feeRecipient","type":"address"},{"internalType":"uint256","name":"_feePercentage","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"recipient","type":"address"},{"indexed":false,"internalType":"uint256","name":"feeAmount","type":"uint256"}],"name":"FeeTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"address","name":"tokenIn","type":"address"},{"indexed":false,"internalType":"address","name":"tokenOut","type":"address"},{"indexed":false,"internalType":"uint256","name":"amountIn","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amountOut","type":"uint256"}],"name":"SwapCompleted","type":"event"},{"inputs":[],"name":"feePercentage","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feeRecipient","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"tokenIn","type":"address"},{"internalType":"address","name":"tokenOut","type":"address"},{"internalType":"uint256","name":"amountIn","type":"uint256"},{"internalType":"uint256","name":"amountOutMin","type":"uint256"},{"internalType":"address[]","name":"path","type":"address[]"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"name":"swapWithFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"uniswapRouter","outputs":[{"internalType":"contract IUniswapV2Router02","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_feePercentage","type":"uint256"}],"name":"updateFeePercentage","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_feeRecipient","type":"address"}],"name":"updateFeeRecipient","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405234801561001057600080fd5b50604051611453380380611453833981810160405281019061003291906101e1565b612710811115610077576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161006e90610291565b60405180910390fd5b336000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555081600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508060028190555082600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050506102b1565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006101788261014d565b9050919050565b6101888161016d565b811461019357600080fd5b50565b6000815190506101a58161017f565b92915050565b6000819050919050565b6101be816101ab565b81146101c957600080fd5b50565b6000815190506101db816101b5565b92915050565b6000806000606084860312156101fa576101f9610148565b5b600061020886828701610196565b935050602061021986828701610196565b925050604061022a868287016101cc565b9150509250925092565b600082825260208201905092915050565b7f496e76616c6964206665652070657263656e7461676500000000000000000000600082015250565b600061027b601683610234565b915061028682610245565b602082019050919050565b600060208201905081810360008301526102aa8161026e565b9050919050565b611193806102c06000396000f3fe608060405234801561001057600080fd5b506004361061007d5760003560e01c8063735de9f71161005b578063735de9f7146100d85780638da5cb5b146100f6578063a001ecdd14610114578063f160d369146101325761007d565b80630d24dfb514610082578063469048401461009e5780636cad3fb0146100bc575b600080fd5b61009c60048036038101906100979190610927565b61014e565b005b6100a66105f5565b6040516100b391906109e5565b60405180910390f35b6100d660048036038101906100d19190610a00565b61061b565b005b6100e06106f8565b6040516100ed9190610a8c565b60405180910390f35b6100fe61071e565b60405161010b91906109e5565b60405180910390f35b61011c610742565b6040516101299190610ab6565b60405180910390f35b61014c60048036038101906101479190610ad1565b610748565b005b8673ffffffffffffffffffffffffffffffffffffffff168383600081811061017957610178610afe565b5b905060200201602081019061018e9190610ad1565b73ffffffffffffffffffffffffffffffffffffffff1614801561021257508573ffffffffffffffffffffffffffffffffffffffff1683836001868690506101d59190610b5c565b8181106101e5576101e4610afe565b5b90506020020160208101906101fa9190610ad1565b73ffffffffffffffffffffffffffffffffffffffff16145b610251576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161024890610bed565b60405180910390fd5b8673ffffffffffffffffffffffffffffffffffffffff166323b872dd3330886040518463ffffffff1660e01b815260040161028e93929190610c0d565b6020604051808303816000875af11580156102ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102d19190610c7c565b506000612710600254876102e59190610ca9565b6102ef9190610d1a565b9050600081876102ff9190610b5c565b9050600082111561041c578873ffffffffffffffffffffffffffffffffffffffff1663a9059cbb600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16846040518363ffffffff1660e01b8152600401610367929190610d4b565b6020604051808303816000875af1158015610386573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103aa9190610c7c565b50600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f34e8a84e537ed93d93ddf39a78816dcbc74df8397c635838b8cc973d4fa943f8836040516104139190610ab6565b60405180910390a25b8873ffffffffffffffffffffffffffffffffffffffff1663095ea7b3600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16836040518363ffffffff1660e01b8152600401610479929190610d4b565b6020604051808303816000875af1158015610498573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104bc9190610c7c565b506000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166338ed173983898989338a6040518763ffffffff1660e01b815260040161052496959493929190610e37565b6000604051808303816000875af1158015610543573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f8201168201806040525081019061056c9190610ff7565b90503373ffffffffffffffffffffffffffffffffffffffff167f0646cbbe1e84f3e35dea11a701672fd81bb9f88ba64f1d95c4e3b185b3849e2e8b8b8b85600187516105b89190610b5c565b815181106105c9576105c8610afe565b5b60200260200101516040516105e19493929190611040565b60405180910390a250505050505050505050565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146106a9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106a0906110d1565b60405180910390fd5b6127108111156106ee576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106e59061113d565b60405180910390fd5b8060028190555050565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60025481565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146107d6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107cd906110d1565b60405180910390fd5b80600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006108598261082e565b9050919050565b6108698161084e565b811461087457600080fd5b50565b60008135905061088681610860565b92915050565b6000819050919050565b61089f8161088c565b81146108aa57600080fd5b50565b6000813590506108bc81610896565b92915050565b600080fd5b600080fd5b600080fd5b60008083601f8401126108e7576108e66108c2565b5b8235905067ffffffffffffffff811115610904576109036108c7565b5b6020830191508360208202830111156109205761091f6108cc565b5b9250929050565b600080600080600080600060c0888a03121561094657610945610824565b5b60006109548a828b01610877565b97505060206109658a828b01610877565b96505060406109768a828b016108ad565b95505060606109878a828b016108ad565b945050608088013567ffffffffffffffff8111156109a8576109a7610829565b5b6109b48a828b016108d1565b935093505060a06109c78a828b016108ad565b91505092959891949750929550565b6109df8161084e565b82525050565b60006020820190506109fa60008301846109d6565b92915050565b600060208284031215610a1657610a15610824565b5b6000610a24848285016108ad565b91505092915050565b6000819050919050565b6000610a52610a4d610a488461082e565b610a2d565b61082e565b9050919050565b6000610a6482610a37565b9050919050565b6000610a7682610a59565b9050919050565b610a8681610a6b565b82525050565b6000602082019050610aa16000830184610a7d565b92915050565b610ab08161088c565b82525050565b6000602082019050610acb6000830184610aa7565b92915050565b600060208284031215610ae757610ae6610824565b5b6000610af584828501610877565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000610b678261088c565b9150610b728361088c565b9250828203905081811115610b8a57610b89610b2d565b5b92915050565b600082825260208201905092915050565b7f496e76616c696420737761702070617468000000000000000000000000000000600082015250565b6000610bd7601183610b90565b9150610be282610ba1565b602082019050919050565b60006020820190508181036000830152610c0681610bca565b9050919050565b6000606082019050610c2260008301866109d6565b610c2f60208301856109d6565b610c3c6040830184610aa7565b949350505050565b60008115159050919050565b610c5981610c44565b8114610c6457600080fd5b50565b600081519050610c7681610c50565b92915050565b600060208284031215610c9257610c91610824565b5b6000610ca084828501610c67565b91505092915050565b6000610cb48261088c565b9150610cbf8361088c565b9250828202610ccd8161088c565b91508282048414831517610ce457610ce3610b2d565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000610d258261088c565b9150610d308361088c565b925082610d4057610d3f610ceb565b5b828204905092915050565b6000604082019050610d6060008301856109d6565b610d6d6020830184610aa7565b9392505050565b600082825260208201905092915050565b6000819050919050565b610d988161084e565b82525050565b6000610daa8383610d8f565b60208301905092915050565b6000610dc56020840184610877565b905092915050565b6000602082019050919050565b6000610de68385610d74565b9350610df182610d85565b8060005b85811015610e2a57610e078284610db6565b610e118882610d9e565b9750610e1c83610dcd565b925050600181019050610df5565b5085925050509392505050565b600060a082019050610e4c6000830189610aa7565b610e596020830188610aa7565b8181036040830152610e6c818688610dda565b9050610e7b60608301856109d6565b610e886080830184610aa7565b979650505050505050565b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b610edc82610e93565b810181811067ffffffffffffffff82111715610efb57610efa610ea4565b5b80604052505050565b6000610f0e61081a565b9050610f1a8282610ed3565b919050565b600067ffffffffffffffff821115610f3a57610f39610ea4565b5b602082029050602081019050919050565b600081519050610f5a81610896565b92915050565b6000610f73610f6e84610f1f565b610f04565b90508083825260208201905060208402830185811115610f9657610f956108cc565b5b835b81811015610fbf5780610fab8882610f4b565b845260208401935050602081019050610f98565b5050509392505050565b600082601f830112610fde57610fdd6108c2565b5b8151610fee848260208601610f60565b91505092915050565b60006020828403121561100d5761100c610824565b5b600082015167ffffffffffffffff81111561102b5761102a610829565b5b61103784828501610fc9565b91505092915050565b600060808201905061105560008301876109d6565b61106260208301866109d6565b61106f6040830185610aa7565b61107c6060830184610aa7565b95945050505050565b7f4e6f7420746865206f776e657200000000000000000000000000000000000000600082015250565b60006110bb600d83610b90565b91506110c682611085565b602082019050919050565b600060208201905081810360008301526110ea816110ae565b9050919050565b7f496e76616c6964206665652070657263656e7461676500000000000000000000600082015250565b6000611127601683610b90565b9150611132826110f1565b602082019050919050565b600060208201905081810360008301526111568161111a565b905091905056fea2646970667358221220cc54c4b6c6e6ad0d90b6190192e4743a4a8dca836471b6df83f05e450609a30364736f6c634300081b0033000000000000000000000000482b777937d19343c6d48234bd51e0ea6e850eb000000000000000000000000059520ef1411d5815f4678ca41a427d4a7119f396000000000000000000000000000000000000000000000000000000000000000a

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061007d5760003560e01c8063735de9f71161005b578063735de9f7146100d85780638da5cb5b146100f6578063a001ecdd14610114578063f160d369146101325761007d565b80630d24dfb514610082578063469048401461009e5780636cad3fb0146100bc575b600080fd5b61009c60048036038101906100979190610927565b61014e565b005b6100a66105f5565b6040516100b391906109e5565b60405180910390f35b6100d660048036038101906100d19190610a00565b61061b565b005b6100e06106f8565b6040516100ed9190610a8c565b60405180910390f35b6100fe61071e565b60405161010b91906109e5565b60405180910390f35b61011c610742565b6040516101299190610ab6565b60405180910390f35b61014c60048036038101906101479190610ad1565b610748565b005b8673ffffffffffffffffffffffffffffffffffffffff168383600081811061017957610178610afe565b5b905060200201602081019061018e9190610ad1565b73ffffffffffffffffffffffffffffffffffffffff1614801561021257508573ffffffffffffffffffffffffffffffffffffffff1683836001868690506101d59190610b5c565b8181106101e5576101e4610afe565b5b90506020020160208101906101fa9190610ad1565b73ffffffffffffffffffffffffffffffffffffffff16145b610251576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161024890610bed565b60405180910390fd5b8673ffffffffffffffffffffffffffffffffffffffff166323b872dd3330886040518463ffffffff1660e01b815260040161028e93929190610c0d565b6020604051808303816000875af11580156102ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102d19190610c7c565b506000612710600254876102e59190610ca9565b6102ef9190610d1a565b9050600081876102ff9190610b5c565b9050600082111561041c578873ffffffffffffffffffffffffffffffffffffffff1663a9059cbb600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16846040518363ffffffff1660e01b8152600401610367929190610d4b565b6020604051808303816000875af1158015610386573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103aa9190610c7c565b50600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f34e8a84e537ed93d93ddf39a78816dcbc74df8397c635838b8cc973d4fa943f8836040516104139190610ab6565b60405180910390a25b8873ffffffffffffffffffffffffffffffffffffffff1663095ea7b3600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16836040518363ffffffff1660e01b8152600401610479929190610d4b565b6020604051808303816000875af1158015610498573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104bc9190610c7c565b506000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166338ed173983898989338a6040518763ffffffff1660e01b815260040161052496959493929190610e37565b6000604051808303816000875af1158015610543573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f8201168201806040525081019061056c9190610ff7565b90503373ffffffffffffffffffffffffffffffffffffffff167f0646cbbe1e84f3e35dea11a701672fd81bb9f88ba64f1d95c4e3b185b3849e2e8b8b8b85600187516105b89190610b5c565b815181106105c9576105c8610afe565b5b60200260200101516040516105e19493929190611040565b60405180910390a250505050505050505050565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146106a9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106a0906110d1565b60405180910390fd5b6127108111156106ee576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106e59061113d565b60405180910390fd5b8060028190555050565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60025481565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146107d6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107cd906110d1565b60405180910390fd5b80600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006108598261082e565b9050919050565b6108698161084e565b811461087457600080fd5b50565b60008135905061088681610860565b92915050565b6000819050919050565b61089f8161088c565b81146108aa57600080fd5b50565b6000813590506108bc81610896565b92915050565b600080fd5b600080fd5b600080fd5b60008083601f8401126108e7576108e66108c2565b5b8235905067ffffffffffffffff811115610904576109036108c7565b5b6020830191508360208202830111156109205761091f6108cc565b5b9250929050565b600080600080600080600060c0888a03121561094657610945610824565b5b60006109548a828b01610877565b97505060206109658a828b01610877565b96505060406109768a828b016108ad565b95505060606109878a828b016108ad565b945050608088013567ffffffffffffffff8111156109a8576109a7610829565b5b6109b48a828b016108d1565b935093505060a06109c78a828b016108ad565b91505092959891949750929550565b6109df8161084e565b82525050565b60006020820190506109fa60008301846109d6565b92915050565b600060208284031215610a1657610a15610824565b5b6000610a24848285016108ad565b91505092915050565b6000819050919050565b6000610a52610a4d610a488461082e565b610a2d565b61082e565b9050919050565b6000610a6482610a37565b9050919050565b6000610a7682610a59565b9050919050565b610a8681610a6b565b82525050565b6000602082019050610aa16000830184610a7d565b92915050565b610ab08161088c565b82525050565b6000602082019050610acb6000830184610aa7565b92915050565b600060208284031215610ae757610ae6610824565b5b6000610af584828501610877565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000610b678261088c565b9150610b728361088c565b9250828203905081811115610b8a57610b89610b2d565b5b92915050565b600082825260208201905092915050565b7f496e76616c696420737761702070617468000000000000000000000000000000600082015250565b6000610bd7601183610b90565b9150610be282610ba1565b602082019050919050565b60006020820190508181036000830152610c0681610bca565b9050919050565b6000606082019050610c2260008301866109d6565b610c2f60208301856109d6565b610c3c6040830184610aa7565b949350505050565b60008115159050919050565b610c5981610c44565b8114610c6457600080fd5b50565b600081519050610c7681610c50565b92915050565b600060208284031215610c9257610c91610824565b5b6000610ca084828501610c67565b91505092915050565b6000610cb48261088c565b9150610cbf8361088c565b9250828202610ccd8161088c565b91508282048414831517610ce457610ce3610b2d565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000610d258261088c565b9150610d308361088c565b925082610d4057610d3f610ceb565b5b828204905092915050565b6000604082019050610d6060008301856109d6565b610d6d6020830184610aa7565b9392505050565b600082825260208201905092915050565b6000819050919050565b610d988161084e565b82525050565b6000610daa8383610d8f565b60208301905092915050565b6000610dc56020840184610877565b905092915050565b6000602082019050919050565b6000610de68385610d74565b9350610df182610d85565b8060005b85811015610e2a57610e078284610db6565b610e118882610d9e565b9750610e1c83610dcd565b925050600181019050610df5565b5085925050509392505050565b600060a082019050610e4c6000830189610aa7565b610e596020830188610aa7565b8181036040830152610e6c818688610dda565b9050610e7b60608301856109d6565b610e886080830184610aa7565b979650505050505050565b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b610edc82610e93565b810181811067ffffffffffffffff82111715610efb57610efa610ea4565b5b80604052505050565b6000610f0e61081a565b9050610f1a8282610ed3565b919050565b600067ffffffffffffffff821115610f3a57610f39610ea4565b5b602082029050602081019050919050565b600081519050610f5a81610896565b92915050565b6000610f73610f6e84610f1f565b610f04565b90508083825260208201905060208402830185811115610f9657610f956108cc565b5b835b81811015610fbf5780610fab8882610f4b565b845260208401935050602081019050610f98565b5050509392505050565b600082601f830112610fde57610fdd6108c2565b5b8151610fee848260208601610f60565b91505092915050565b60006020828403121561100d5761100c610824565b5b600082015167ffffffffffffffff81111561102b5761102a610829565b5b61103784828501610fc9565b91505092915050565b600060808201905061105560008301876109d6565b61106260208301866109d6565b61106f6040830185610aa7565b61107c6060830184610aa7565b95945050505050565b7f4e6f7420746865206f776e657200000000000000000000000000000000000000600082015250565b60006110bb600d83610b90565b91506110c682611085565b602082019050919050565b600060208201905081810360008301526110ea816110ae565b9050919050565b7f496e76616c6964206665652070657263656e7461676500000000000000000000600082015250565b6000611127601683610b90565b9150611132826110f1565b602082019050919050565b600060208201905081810360008301526111568161111a565b905091905056fea2646970667358221220cc54c4b6c6e6ad0d90b6190192e4743a4a8dca836471b6df83f05e450609a30364736f6c634300081b0033

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

000000000000000000000000482b777937d19343c6d48234bd51e0ea6e850eb000000000000000000000000059520ef1411d5815f4678ca41a427d4a7119f396000000000000000000000000000000000000000000000000000000000000000a

-----Decoded View---------------
Arg [0] : _router (address): 0x482B777937d19343C6D48234bD51e0EA6e850eb0
Arg [1] : _feeRecipient (address): 0x59520ef1411D5815f4678ca41a427D4A7119F396
Arg [2] : _feePercentage (uint256): 10

-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 000000000000000000000000482b777937d19343c6d48234bd51e0ea6e850eb0
Arg [1] : 00000000000000000000000059520ef1411d5815f4678ca41a427d4a7119f396
Arg [2] : 000000000000000000000000000000000000000000000000000000000000000a


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
[ 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.