ETH Price: $1,628.35 (-2.68%)
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Swap148035232022-05-19 6:44:081062 days ago1652942648IN
0xDE200f09...07a25dF69
0 ETH0.0020280115.6313548
Swap146865582022-04-30 16:05:081080 days ago1651334708IN
0xDE200f09...07a25dF69
0 ETH0.011314268.88026788
Swap146581262022-04-26 4:39:331085 days ago1650947973IN
0xDE200f09...07a25dF69
0 ETH0.0056072343.10509213
Swap146143642022-04-19 8:02:061092 days ago1650355326IN
0xDE200f09...07a25dF69
0 ETH0.0039801223.77301014
Swap144962732022-03-31 21:07:091110 days ago1648760829IN
0xDE200f09...07a25dF69
0 ETH0.0079442959.27738708
Swap144565312022-03-25 16:33:191116 days ago1648225999IN
0xDE200f09...07a25dF69
0 ETH0.0118032791.00720994
Swap144342592022-03-22 5:36:061120 days ago1647927366IN
0xDE200f09...07a25dF69
0 ETH0.0033941525.32633508
Swap144193262022-03-19 21:33:031122 days ago1647725583IN
0xDE200f09...07a25dF69
0 ETH0.0042771326.7565076
Swap143994302022-03-16 19:15:141125 days ago1647458114IN
0xDE200f09...07a25dF69
0 ETH0.0087137454.50380548
Swap143603452022-03-10 17:09:321131 days ago1646932172IN
0xDE200f09...07a25dF69
0 ETH0.0054174433.88233838
Swap143267892022-03-05 12:11:101137 days ago1646482270IN
0xDE200f09...07a25dF69
0 ETH0.0039282730.43216766
Swap143064072022-03-02 8:06:201140 days ago1646208380IN
0xDE200f09...07a25dF69
0 ETH0.0041702532.05548509
Swap142866482022-02-27 6:38:181143 days ago1645943898IN
0xDE200f09...07a25dF69
0 ETH0.0039491924.86555257
Swap142127962022-02-15 20:08:101154 days ago1644955690IN
0xDE200f09...07a25dF69
0 ETH0.0079227249.68067287
Swap141985682022-02-13 15:24:071156 days ago1644765847IN
0xDE200f09...07a25dF69
0 ETH0.0115447548.83793897
Swap141260082022-02-02 10:08:441168 days ago1643796524IN
0xDE200f09...07a25dF69
0 ETH0.0119912289.48073577
Swap141185672022-02-01 6:31:291169 days ago1643697089IN
0xDE200f09...07a25dF69
0 ETH0.02128231163.69371573
Swap141000912022-01-29 10:16:401172 days ago1643451400IN
0xDE200f09...07a25dF69
0 ETH0.0108621683.52104218
Swap140823382022-01-26 16:27:101174 days ago1643214430IN
0xDE200f09...07a25dF69
0 ETH0.01398911107.51677129
Swap140719362022-01-25 1:51:441176 days ago1643075504IN
0xDE200f09...07a25dF69
0 ETH0.01444485111.06896302
Swap140601202022-01-23 5:50:251178 days ago1642917025IN
0xDE200f09...07a25dF69
0 ETH0.01968148123.92164283
Swap140394462022-01-20 1:14:481181 days ago1642641288IN
0xDE200f09...07a25dF69
0 ETH0.0113989785.04986348
Swap140286742022-01-18 9:25:051183 days ago1642497905IN
0xDE200f09...07a25dF69
0 ETH0.0118490186.70688826
Swap140203742022-01-17 2:34:351184 days ago1642386875IN
0xDE200f09...07a25dF69
0 ETH0.0191805147.41870289
Swap140047572022-01-14 16:41:081186 days ago1642178468IN
0xDE200f09...07a25dF69
0 ETH0.03536361178.06365204
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
PowerTONSwapper

Compiler Version
v0.8.8+commit.dddeac2f

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 6 : PowerTONSwapper.sol
// SPDX-License-Identifier: MIT
pragma solidity >0.8.0;
pragma experimental ABIEncoderV2;

import { IERC20 } from "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import { ITOS } from "./ITOS.sol";
import { iPowerTON } from "./iPowerTON.sol";
import "@uniswap/v3-periphery/contracts/interfaces/ISwapRouter.sol";

contract PowerTONSwapper is iPowerTON {
    address public override wton;
    ITOS public tos;
    ISwapRouter public uniswapRouter;

    event Swapped(
        uint256 amount
    );

    constructor(
        address _wton,
        address _tos,
        address _uniswapRouter
    )
    {
        wton = _wton;
        tos = ITOS(_tos);
        uniswapRouter = ISwapRouter(_uniswapRouter);
    }

    function approveToUniswap() external {
        IERC20(wton).approve(
            address(uniswapRouter),
            type(uint256).max
        );
    }

    function swap(
        uint24 _fee,
        uint256 _deadline,
        uint256 _amountOutMinimum,
        uint160 _sqrtPriceLimitX96
    )
        external
    {
        uint256 wtonBalance = getWTONBalance();

        ISwapRouter.ExactInputSingleParams memory params =
            ISwapRouter.ExactInputSingleParams({
                tokenIn: wton,
                tokenOut: address(tos),
                fee: _fee,
                recipient: address(this),
                deadline: block.timestamp + _deadline,
                amountIn: wtonBalance,
                amountOutMinimum: _amountOutMinimum,
                sqrtPriceLimitX96: _sqrtPriceLimitX96
            });
        ISwapRouter(uniswapRouter).exactInputSingle(params);

        uint256 burnAmount = tos.balanceOf(address(this));
        tos.burn(address(this), burnAmount);

        emit Swapped(burnAmount);
    }

    function getWTONBalance() public view returns(uint256) {
        return IERC20(wton).balanceOf(address(this));
    }

    // PowerTON functions

    function seigManager() external view returns (address) {
        return address(0);
    }

    function currentRound() external view returns (uint256) {
        return 0;
    }

    function roundDuration() external view returns (uint256) {
        return 0;
    }

    function totalDeposits() external view returns (uint256) {
        return 0;
    }

    function winnerOf(uint256 round) external view returns (address) {
        return address(0);
    }

    function powerOf(address account) external view returns (uint256) {
        return 0;
    }

    function init() external {
    }

    function start() external {
    }

    function endRound() external {
    }

    function onDeposit(address layer2, address account, uint256 amount) external {
    }

    function onWithdraw(address layer2, address account, uint256 amount) external {
    }
}

File 2 of 6 : IERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

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

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

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

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

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

    /**
     * @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);
}

File 3 of 6 : ITOS.sol
//SPDX-License-Identifier: Unlicense
pragma solidity >0.7.0;

interface ITOS {
    function balanceOf(address account) external view returns (uint256);

    /// @dev Issue a token.
    /// @param to  who takes the issue
    /// @param amount the amount to issue
    function mint(address to, uint256 amount) external returns (bool);

    // @dev burn a token.
    /// @param from Whose tokens are burned
    /// @param amount the amount to burn
    function burn(address from, uint256 amount) external returns (bool);

    function DOMAIN_SEPARATOR() external view returns (bytes32);

    function nonces(address owner) external view returns (uint256);

    /// @dev Authorizes the owner's token to be used by the spender as much as the value.
    /// @dev The signature must have the owner's signature.
    /// @param owner the token's owner
    /// @param spender the account that spend owner's token
    /// @param value the amount to be approve to spend
    /// @param deadline the deadline that valid the owner's signature
    /// @param v the owner's signature - v
    /// @param r the owner's signature - r
    /// @param s the owner's signature - s
    function permit(
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external;

    /// @dev verify the signature
    /// @param owner the token's owner
    /// @param spender the account that spend owner's token
    /// @param value the amount to be approve to spend
    /// @param deadline the deadline that valid the owner's signature
    /// @param _nounce the _nounce
    /// @param sigR the owner's signature - r
    /// @param sigS the owner's signature - s
    /// @param sigV the owner's signature - v
    function verify(
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint256 _nounce,
        bytes32 sigR,
        bytes32 sigS,
        uint8 sigV
    ) external view returns (bool);

    /// @dev the hash of Permit
    /// @param owner the token's owner
    /// @param spender the account that spend owner's token
    /// @param value the amount to be approve to spend
    /// @param deadline the deadline that valid the owner's signature
    /// @param _nounce the _nounce
    function hashPermit(
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint256 _nounce
    ) external view returns (bytes32);
}

File 4 of 6 : iPowerTON.sol
// SPDX-License-Identifier: MIT
pragma solidity >0.8.0;

interface iPowerTON {
  function seigManager() external view returns (address);
  function wton() external view returns (address);

  function currentRound() external view returns (uint256);
  function roundDuration() external view returns (uint256);
  function totalDeposits() external view returns (uint256);

  function winnerOf(uint256 round) external view returns (address);
  function powerOf(address account) external view returns (uint256);

  function init() external;
  function start() external;
  function endRound() external;

  function onDeposit(address layer2, address account, uint256 amount) external;
  function onWithdraw(address layer2, address account, uint256 amount) external;
}

File 5 of 6 : 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 6 of 6 : 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;
}

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

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"address","name":"_wton","type":"address"},{"internalType":"address","name":"_tos","type":"address"},{"internalType":"address","name":"_uniswapRouter","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Swapped","type":"event"},{"inputs":[],"name":"approveToUniswap","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"currentRound","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"endRound","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getWTONBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"init","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"layer2","type":"address"},{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"onDeposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"layer2","type":"address"},{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"onWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"powerOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"roundDuration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"seigManager","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"start","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint24","name":"_fee","type":"uint24"},{"internalType":"uint256","name":"_deadline","type":"uint256"},{"internalType":"uint256","name":"_amountOutMinimum","type":"uint256"},{"internalType":"uint160","name":"_sqrtPriceLimitX96","type":"uint160"}],"name":"swap","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"tos","outputs":[{"internalType":"contract ITOS","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalDeposits","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"uniswapRouter","outputs":[{"internalType":"contract ISwapRouter","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"round","type":"uint256"}],"name":"winnerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"wton","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]

60806040523480156200001157600080fd5b5060405162000fdd38038062000fdd83398181016040528101906200003791906200016c565b826000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555081600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550505050620001c8565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000620001348262000107565b9050919050565b620001468162000127565b81146200015257600080fd5b50565b60008151905062000166816200013b565b92915050565b60008060006060848603121562000188576200018762000102565b5b6000620001988682870162000155565b9350506020620001ab8682870162000155565b9250506040620001be8682870162000155565b9150509250925092565b610e0580620001d86000396000f3fe608060405234801561001057600080fd5b506004361061010b5760003560e01c806389f395de116100a2578063be9a655511610071578063be9a655514610272578063d6797be21461027c578063e1c7392a14610298578063f7cb789a146102a2578063f850ffaa146102c05761010b565b806389f395de146101e85780638a19c8bc146102065780638cb5d700146102245780638d62d949146102545761010b565b80636fb7f558116100de5780636fb7f55814610184578063735de9f7146101a2578063749aa2d9146101c05780637d882097146101ca5761010b565b80631ac84690146101105780633452f3c514610140578063412c6d501461014a578063442ff62d14610166575b600080fd5b61012a600480360381019061012591906108c5565b6102dc565b604051610137919061090b565b60405180910390f35b6101486102e3565b005b610164600480360381019061015f9190610952565b6103d5565b005b61016e6103da565b60405161017b919061090b565b60405180910390f35b61018c61048b565b60405161019991906109b4565b60405180910390f35b6101aa610490565b6040516101b79190610a2e565b60405180910390f35b6101c86104b6565b005b6101d26104b8565b6040516101df919061090b565b60405180910390f35b6101f06104bd565b6040516101fd9190610a6a565b60405180910390f35b61020e6104e3565b60405161021b919061090b565b60405180910390f35b61023e60048036038101906102399190610a85565b6104e8565b60405161024b91906109b4565b60405180910390f35b61025c6104ef565b60405161026991906109b4565b60405180910390f35b61027a610513565b005b61029660048036038101906102919190610b19565b610515565b005b6102a0610856565b005b6102aa610858565b6040516102b7919061090b565b60405180910390f35b6102da60048036038101906102d59190610952565b61085d565b005b6000919050565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663095ea7b3600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff167fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6040518363ffffffff1660e01b8152600401610380929190610b80565b602060405180830381600087803b15801561039a57600080fd5b505af11580156103ae573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103d29190610be1565b50565b505050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b815260040161043691906109b4565b60206040518083038186803b15801561044e57600080fd5b505afa158015610462573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104869190610c23565b905090565b600090565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b565b600090565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600090565b6000919050565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b565b600061051f6103da565b9050600060405180610100016040528060008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018762ffffff1681526020013073ffffffffffffffffffffffffffffffffffffffff16815260200186426105dc9190610c7f565b81526020018381526020018581526020018473ffffffffffffffffffffffffffffffffffffffff168152509050600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663414bf389826040518263ffffffff1660e01b81526004016106649190610db3565b602060405180830381600087803b15801561067e57600080fd5b505af1158015610692573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106b69190610c23565b506000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b815260040161071491906109b4565b60206040518083038186803b15801561072c57600080fd5b505afa158015610740573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107649190610c23565b9050600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16639dc29fac30836040518363ffffffff1660e01b81526004016107c3929190610b80565b602060405180830381600087803b1580156107dd57600080fd5b505af11580156107f1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108159190610be1565b507f0ce6b316c91b55b8b3890333c26dd18cc635e11e8188ddba7f72ffffca64ce6f81604051610845919061090b565b60405180910390a150505050505050565b565b600090565b505050565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061089282610867565b9050919050565b6108a281610887565b81146108ad57600080fd5b50565b6000813590506108bf81610899565b92915050565b6000602082840312156108db576108da610862565b5b60006108e9848285016108b0565b91505092915050565b6000819050919050565b610905816108f2565b82525050565b600060208201905061092060008301846108fc565b92915050565b61092f816108f2565b811461093a57600080fd5b50565b60008135905061094c81610926565b92915050565b60008060006060848603121561096b5761096a610862565b5b6000610979868287016108b0565b935050602061098a868287016108b0565b925050604061099b8682870161093d565b9150509250925092565b6109ae81610887565b82525050565b60006020820190506109c960008301846109a5565b92915050565b6000819050919050565b60006109f46109ef6109ea84610867565b6109cf565b610867565b9050919050565b6000610a06826109d9565b9050919050565b6000610a18826109fb565b9050919050565b610a2881610a0d565b82525050565b6000602082019050610a436000830184610a1f565b92915050565b6000610a54826109fb565b9050919050565b610a6481610a49565b82525050565b6000602082019050610a7f6000830184610a5b565b92915050565b600060208284031215610a9b57610a9a610862565b5b6000610aa98482850161093d565b91505092915050565b600062ffffff82169050919050565b610aca81610ab2565b8114610ad557600080fd5b50565b600081359050610ae781610ac1565b92915050565b610af681610867565b8114610b0157600080fd5b50565b600081359050610b1381610aed565b92915050565b60008060008060808587031215610b3357610b32610862565b5b6000610b4187828801610ad8565b9450506020610b528782880161093d565b9350506040610b638782880161093d565b9250506060610b7487828801610b04565b91505092959194509250565b6000604082019050610b9560008301856109a5565b610ba260208301846108fc565b9392505050565b60008115159050919050565b610bbe81610ba9565b8114610bc957600080fd5b50565b600081519050610bdb81610bb5565b92915050565b600060208284031215610bf757610bf6610862565b5b6000610c0584828501610bcc565b91505092915050565b600081519050610c1d81610926565b92915050565b600060208284031215610c3957610c38610862565b5b6000610c4784828501610c0e565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000610c8a826108f2565b9150610c95836108f2565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115610cca57610cc9610c50565b5b828201905092915050565b610cde81610887565b82525050565b610ced81610ab2565b82525050565b610cfc816108f2565b82525050565b610d0b81610867565b82525050565b61010082016000820151610d286000850182610cd5565b506020820151610d3b6020850182610cd5565b506040820151610d4e6040850182610ce4565b506060820151610d616060850182610cd5565b506080820151610d746080850182610cf3565b5060a0820151610d8760a0850182610cf3565b5060c0820151610d9a60c0850182610cf3565b5060e0820151610dad60e0850182610d02565b50505050565b600061010082019050610dc96000830184610d11565b9291505056fea2646970667358221220f262789fb9628b1fdb3b6211c696d5fbb0e93d12a1622a31c24e8fe8e716600464736f6c63430008080033000000000000000000000000c4a11aaf6ea915ed7ac194161d2fc9384f15bff2000000000000000000000000409c4d8cd5d2924b9bc5509230d16a61289c8153000000000000000000000000e592427a0aece92de3edee1f18e0157c05861564

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061010b5760003560e01c806389f395de116100a2578063be9a655511610071578063be9a655514610272578063d6797be21461027c578063e1c7392a14610298578063f7cb789a146102a2578063f850ffaa146102c05761010b565b806389f395de146101e85780638a19c8bc146102065780638cb5d700146102245780638d62d949146102545761010b565b80636fb7f558116100de5780636fb7f55814610184578063735de9f7146101a2578063749aa2d9146101c05780637d882097146101ca5761010b565b80631ac84690146101105780633452f3c514610140578063412c6d501461014a578063442ff62d14610166575b600080fd5b61012a600480360381019061012591906108c5565b6102dc565b604051610137919061090b565b60405180910390f35b6101486102e3565b005b610164600480360381019061015f9190610952565b6103d5565b005b61016e6103da565b60405161017b919061090b565b60405180910390f35b61018c61048b565b60405161019991906109b4565b60405180910390f35b6101aa610490565b6040516101b79190610a2e565b60405180910390f35b6101c86104b6565b005b6101d26104b8565b6040516101df919061090b565b60405180910390f35b6101f06104bd565b6040516101fd9190610a6a565b60405180910390f35b61020e6104e3565b60405161021b919061090b565b60405180910390f35b61023e60048036038101906102399190610a85565b6104e8565b60405161024b91906109b4565b60405180910390f35b61025c6104ef565b60405161026991906109b4565b60405180910390f35b61027a610513565b005b61029660048036038101906102919190610b19565b610515565b005b6102a0610856565b005b6102aa610858565b6040516102b7919061090b565b60405180910390f35b6102da60048036038101906102d59190610952565b61085d565b005b6000919050565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663095ea7b3600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff167fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6040518363ffffffff1660e01b8152600401610380929190610b80565b602060405180830381600087803b15801561039a57600080fd5b505af11580156103ae573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103d29190610be1565b50565b505050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b815260040161043691906109b4565b60206040518083038186803b15801561044e57600080fd5b505afa158015610462573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104869190610c23565b905090565b600090565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b565b600090565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600090565b6000919050565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b565b600061051f6103da565b9050600060405180610100016040528060008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018762ffffff1681526020013073ffffffffffffffffffffffffffffffffffffffff16815260200186426105dc9190610c7f565b81526020018381526020018581526020018473ffffffffffffffffffffffffffffffffffffffff168152509050600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663414bf389826040518263ffffffff1660e01b81526004016106649190610db3565b602060405180830381600087803b15801561067e57600080fd5b505af1158015610692573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106b69190610c23565b506000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b815260040161071491906109b4565b60206040518083038186803b15801561072c57600080fd5b505afa158015610740573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107649190610c23565b9050600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16639dc29fac30836040518363ffffffff1660e01b81526004016107c3929190610b80565b602060405180830381600087803b1580156107dd57600080fd5b505af11580156107f1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108159190610be1565b507f0ce6b316c91b55b8b3890333c26dd18cc635e11e8188ddba7f72ffffca64ce6f81604051610845919061090b565b60405180910390a150505050505050565b565b600090565b505050565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061089282610867565b9050919050565b6108a281610887565b81146108ad57600080fd5b50565b6000813590506108bf81610899565b92915050565b6000602082840312156108db576108da610862565b5b60006108e9848285016108b0565b91505092915050565b6000819050919050565b610905816108f2565b82525050565b600060208201905061092060008301846108fc565b92915050565b61092f816108f2565b811461093a57600080fd5b50565b60008135905061094c81610926565b92915050565b60008060006060848603121561096b5761096a610862565b5b6000610979868287016108b0565b935050602061098a868287016108b0565b925050604061099b8682870161093d565b9150509250925092565b6109ae81610887565b82525050565b60006020820190506109c960008301846109a5565b92915050565b6000819050919050565b60006109f46109ef6109ea84610867565b6109cf565b610867565b9050919050565b6000610a06826109d9565b9050919050565b6000610a18826109fb565b9050919050565b610a2881610a0d565b82525050565b6000602082019050610a436000830184610a1f565b92915050565b6000610a54826109fb565b9050919050565b610a6481610a49565b82525050565b6000602082019050610a7f6000830184610a5b565b92915050565b600060208284031215610a9b57610a9a610862565b5b6000610aa98482850161093d565b91505092915050565b600062ffffff82169050919050565b610aca81610ab2565b8114610ad557600080fd5b50565b600081359050610ae781610ac1565b92915050565b610af681610867565b8114610b0157600080fd5b50565b600081359050610b1381610aed565b92915050565b60008060008060808587031215610b3357610b32610862565b5b6000610b4187828801610ad8565b9450506020610b528782880161093d565b9350506040610b638782880161093d565b9250506060610b7487828801610b04565b91505092959194509250565b6000604082019050610b9560008301856109a5565b610ba260208301846108fc565b9392505050565b60008115159050919050565b610bbe81610ba9565b8114610bc957600080fd5b50565b600081519050610bdb81610bb5565b92915050565b600060208284031215610bf757610bf6610862565b5b6000610c0584828501610bcc565b91505092915050565b600081519050610c1d81610926565b92915050565b600060208284031215610c3957610c38610862565b5b6000610c4784828501610c0e565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000610c8a826108f2565b9150610c95836108f2565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115610cca57610cc9610c50565b5b828201905092915050565b610cde81610887565b82525050565b610ced81610ab2565b82525050565b610cfc816108f2565b82525050565b610d0b81610867565b82525050565b61010082016000820151610d286000850182610cd5565b506020820151610d3b6020850182610cd5565b506040820151610d4e6040850182610ce4565b506060820151610d616060850182610cd5565b506080820151610d746080850182610cf3565b5060a0820151610d8760a0850182610cf3565b5060c0820151610d9a60c0850182610cf3565b5060e0820151610dad60e0850182610d02565b50505050565b600061010082019050610dc96000830184610d11565b9291505056fea2646970667358221220f262789fb9628b1fdb3b6211c696d5fbb0e93d12a1622a31c24e8fe8e716600464736f6c63430008080033

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

000000000000000000000000c4a11aaf6ea915ed7ac194161d2fc9384f15bff2000000000000000000000000409c4d8cd5d2924b9bc5509230d16a61289c8153000000000000000000000000e592427a0aece92de3edee1f18e0157c05861564

-----Decoded View---------------
Arg [0] : _wton (address): 0xc4A11aaf6ea915Ed7Ac194161d2fC9384F15bff2
Arg [1] : _tos (address): 0x409c4D8cd5d2924b9bc5509230d16a61289c8153
Arg [2] : _uniswapRouter (address): 0xE592427A0AEce92De3Edee1F18E0157C05861564

-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 000000000000000000000000c4a11aaf6ea915ed7ac194161d2fc9384f15bff2
Arg [1] : 000000000000000000000000409c4d8cd5d2924b9bc5509230d16a61289c8153
Arg [2] : 000000000000000000000000e592427a0aece92de3edee1f18e0157c05861564


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.