ETH Price: $3,085.62 (+4.20%)
Gas: 7.72 Gwei

Contract

0x746db2746cbE430778CE34Bd9A6770F506419E00
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Withdraw ERC20170262332023-04-11 17:10:47578 days ago1681233047IN
0x746db274...506419E00
0 ETH0.0020063129.63760453
Swap Tokens170254072023-04-11 14:21:23578 days ago1681222883IN
0x746db274...506419E00
0 ETH0.004019137.82648237
Swap Tokens170253032023-04-11 13:59:59578 days ago1681221599IN
0x746db274...506419E00
0 ETH0.0029036727.32842008
Swap Tokens170249892023-04-11 12:56:11578 days ago1681217771IN
0x746db274...506419E00
0 ETH0.0021853620.56791914
Swap Tokens170248632023-04-11 12:30:11578 days ago1681216211IN
0x746db274...506419E00
0 ETH0.0021235519.99071142
Swap Tokens170245842023-04-11 11:33:23578 days ago1681212803IN
0x746db274...506419E00
0 ETH0.0023812622.41167464
Swap Tokens170243152023-04-11 10:38:47578 days ago1681209527IN
0x746db274...506419E00
0 ETH0.0022312721
Swap Tokens170239642023-04-11 9:27:23578 days ago1681205243IN
0x746db274...506419E00
0 ETH0.0021725720.44988523
Swap Tokens170234452023-04-11 7:41:59578 days ago1681198919IN
0x746db274...506419E00
0 ETH0.0026375321.38232397
Withdraw ERC20170233102023-04-11 7:14:11578 days ago1681197251IN
0x746db274...506419E00
0 ETH0.0012684525.07069099
Swap Tokens170221812023-04-11 3:22:47578 days ago1681183367IN
0x746db274...506419E00
0 ETH0.0020878119.64987601
Swap Tokens170221332023-04-11 3:13:11578 days ago1681182791IN
0x746db274...506419E00
0 ETH0.0023964922.5549935
Swap Tokens170209142023-04-10 23:05:11578 days ago1681167911IN
0x746db274...506419E00
0 ETH0.0025693220.82936557
Withdraw ERC20170203322023-04-10 21:07:11579 days ago1681160831IN
0x746db274...506419E00
0 ETH0.0017751826.21865011
Swap Tokens170199892023-04-10 19:57:23579 days ago1681156643IN
0x746db274...506419E00
0 ETH0.0034168632.15845025
Swap Tokens170194392023-04-10 18:04:47579 days ago1681149887IN
0x746db274...506419E00
0 ETH0.0024903223.43815107
Swap Tokens170189962023-04-10 16:33:47579 days ago1681144427IN
0x746db274...506419E00
0 ETH0.0044978142.33195113
Swap Tokens170187942023-04-10 15:52:59579 days ago1681141979IN
0x746db274...506419E00
0 ETH0.0027637226.01128626
Swap Tokens170185222023-04-10 14:56:47579 days ago1681138607IN
0x746db274...506419E00
0 ETH0.0042115839.64255293
Swap Tokens170183592023-04-10 14:23:11579 days ago1681136591IN
0x746db274...506419E00
0 ETH0.0027078925.48586394
Swap Tokens170177232023-04-10 12:12:47579 days ago1681128767IN
0x746db274...506419E00
0 ETH0.0020070618.88983313
Swap Tokens170176292023-04-10 11:53:23579 days ago1681127603IN
0x746db274...506419E00
0 ETH0.0020181818.9945001
Swap Tokens170176062023-04-10 11:48:35579 days ago1681127315IN
0x746db274...506419E00
0 ETH0.0022772821.43303616
Swap Tokens170172762023-04-10 10:41:35579 days ago1681123295IN
0x746db274...506419E00
0 ETH0.0019674618.51714121
Swap Tokens170168372023-04-10 9:12:23579 days ago1681117943IN
0x746db274...506419E00
0 ETH0.0019928118.75575797
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:
swaper

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, Unlicense license
/**
 *Submitted for verification at Etherscan.io on 2023-04-07
*/

// SPDX-License-Identifier: Unlicensed
pragma solidity ^0.8.0;

abstract contract Context {
  function _msgSender() internal view virtual returns (address ) {
    return msg.sender;
  }

  function _msgData() internal view virtual returns (bytes memory) {
    this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
    return msg.data;
  }
}
abstract contract Ownable is Context {
  address private _owner;
  address private _previousOwner;
  uint256 private _lockTime;

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

  /**
   * @dev Initializes the contract setting the deployer as the initial owner.
   */
  constructor()  {
    address msgSender = _msgSender();
    _owner = msgSender;
    emit OwnershipTransferred(address(0), msgSender);
  }

  /**
   * @dev Returns the address of the current owner.
   */
  function owner() public view returns (address) {
    return _owner;
  }

  /**
   * @dev Throws if called by any account other than the owner.
   */
  modifier onlyOwner() {
    require(_owner == _msgSender(), 'Ownable: caller is not the owner');
    _;
  }

  /**
   * @dev Leaves the contract without owner. It will not be possible to call
   * `onlyOwner` functions anymore. Can only be called by the current owner.
   *
   * NOTE: Renouncing ownership will leave the contract without an owner,
   * thereby removing any functionality that is only available to the owner.
   */
  function renounceOwnership() public virtual onlyOwner {
    emit OwnershipTransferred(_owner, address(0));
    _owner = address(0);
  }

  /**
   * @dev Transfers ownership of the contract to a new account (`newOwner`).
   * Can only be called by the current owner.
   */
  function transferOwnership(address newOwner) public virtual onlyOwner {
    require(newOwner != address(0), 'Ownable: new owner is the zero address');
    emit OwnershipTransferred(_owner, newOwner);
    _owner = newOwner;
  }

  function geUnlockTime() public view returns (uint256) {
    return _lockTime;
  }

  //Locks the contract for owner for the amount of time provided
  function lock(uint256 time) public virtual onlyOwner {
    _previousOwner = _owner;
    _owner = address(0);
    _lockTime = block.timestamp + time;
    emit OwnershipTransferred(_owner, address(0));
  }

  //Unlocks the contract for owner when _lockTime is exceeds
  function unlock() public virtual {
    require(
      _previousOwner == msg.sender,
      "You don't have permission to unlock"
    );
    require(block.timestamp > _lockTime, 'Contract is locked until 7 days');
    emit OwnershipTransferred(_owner, _previousOwner);
    _owner = _previousOwner;
  }
}

interface IERC20 {
  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);
}
contract swaper is Ownable{


    IERC20 private oldTokenInstance;
    IERC20 private  newTokenInstance;
    address public holderWallet;
    // Events
    event TokensSwapped(address indexed user, uint256 amount);
    event TokensWithdrawn(address indexed owner, address token, uint256 amount);

    constructor(address _tokenA,address _tokenB)  {

        oldTokenInstance = IERC20(_tokenA);
        newTokenInstance = IERC20(_tokenB);
    
    }

    function swapTokens(uint256 amount) external{
        uint256 balanceBeforeTransfer = oldTokenInstance.balanceOf(address(this));
        bool transferStatus = oldTokenInstance.transferFrom(msg.sender,address(this),amount);         //make sure to approve the required amount
        uint256 balanceAfterTransfer = oldTokenInstance.balanceOf(address(this));
        require(balanceAfterTransfer - balanceBeforeTransfer  == amount,"Balance transfer failed");
        newTokenInstance.transferFrom(holderWallet,msg.sender,amount);

	emit TokensSwapped(msg.sender, amount);
    }

    function withdrawERC20(IERC20 token, uint256 amount) external onlyOwner{ 
        
        uint256 erc20balance = token.balanceOf(address(this));
        require(amount <= erc20balance, "balance is low");
        token.transfer(owner(), amount);
	emit TokensWithdrawn(owner(), address(token), amount);
    }

    function withdrawETH() external onlyOwner {
        uint256 amountETH = address(this).balance;
        payable(owner()).call{value: amountETH}('');
    }
        
    function changeHolderWallet(address _address) external onlyOwner{
        holderWallet = _address;
    }   
    function changeTokens(address _tokenA, address _tokenB) external onlyOwner{
        oldTokenInstance = IERC20(_tokenA);
        newTokenInstance = IERC20(_tokenB);
    }

}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_tokenA","type":"address"},{"internalType":"address","name":"_tokenB","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"TokensSwapped","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":false,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"TokensWithdrawn","type":"event"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"changeHolderWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_tokenA","type":"address"},{"internalType":"address","name":"_tokenB","type":"address"}],"name":"changeTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"geUnlockTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"holderWallet","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"time","type":"uint256"}],"name":"lock","outputs":[],"stateMutability":"nonpayable","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":"uint256","name":"amount","type":"uint256"}],"name":"swapTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unlock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdrawERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawETH","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405234801561001057600080fd5b50604051610c8a380380610c8a83398101604081905261002f916100bd565b600080546001600160a01b031916339081178255604051909182917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350600380546001600160a01b039384166001600160a01b031991821617909155600480549290931691161790556100f0565b80516001600160a01b03811681146100b857600080fd5b919050565b600080604083850312156100d057600080fd5b6100d9836100a1565b91506100e7602084016100a1565b90509250929050565b610b8b806100ff6000396000f3fe608060405234801561001057600080fd5b50600436106100b45760003560e01c8063b377cc3c11610071578063b377cc3c1461012e578063b6c5232414610141578063dd46706414610152578063e086e5ec14610165578063f2fde38b1461016d578063fe784eaa1461018057600080fd5b8063715018a6146100b95780638da5cb5b146100c35780639570c6cd146100ed578063a1db978214610100578063a46d3f9d14610113578063a69df4b514610126575b600080fd5b6100c1610193565b005b6000546001600160a01b03165b6040516001600160a01b0390911681526020015b60405180910390f35b6100c16100fb3660046109e1565b6101fe565b6100c161010e366004610a1a565b610256565b6005546100d0906001600160a01b031681565b6100c1610411565b6100c161013c366004610a46565b610517565b6002546040519081526020016100e4565b6100c1610160366004610a6a565b610563565b6100c16105e8565b6100c161017b366004610a46565b61067a565b6100c161018e366004610a6a565b610752565b6000546001600160a01b031633146101c65760405162461bcd60e51b81526004016101bd90610a83565b60405180910390fd5b600080546040516001600160a01b0390911690600080516020610b36833981519152908390a3600080546001600160a01b0319169055565b6000546001600160a01b031633146102285760405162461bcd60e51b81526004016101bd90610a83565b600380546001600160a01b039384166001600160a01b03199182161790915560048054929093169116179055565b6000546001600160a01b031633146102805760405162461bcd60e51b81526004016101bd90610a83565b6040516370a0823160e01b81523060048201526000906001600160a01b038416906370a0823190602401602060405180830381865afa1580156102c7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102eb9190610ab8565b90508082111561032e5760405162461bcd60e51b815260206004820152600e60248201526d62616c616e6365206973206c6f7760901b60448201526064016101bd565b826001600160a01b031663a9059cbb61034f6000546001600160a01b031690565b6040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602481018590526044016020604051808303816000875af115801561039c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103c09190610ad1565b50600054604080516001600160a01b0386811682526020820186905282519316927f6337ed398c0e8467698c581374fdce4db14922df487b5a39483079f5f59b60a4929181900390910190a2505050565b6001546001600160a01b031633146104775760405162461bcd60e51b815260206004820152602360248201527f596f7520646f6e27742068617665207065726d697373696f6e20746f20756e6c6044820152626f636b60e81b60648201526084016101bd565b60025442116104c85760405162461bcd60e51b815260206004820152601f60248201527f436f6e7472616374206973206c6f636b656420756e74696c203720646179730060448201526064016101bd565b600154600080546040516001600160a01b039384169390911691600080516020610b3683398151915291a3600154600080546001600160a01b0319166001600160a01b03909216919091179055565b6000546001600160a01b031633146105415760405162461bcd60e51b81526004016101bd90610a83565b600580546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b0316331461058d5760405162461bcd60e51b81526004016101bd90610a83565b60008054600180546001600160a01b03199081166001600160a01b038416179091551690556105bc8142610b09565b600255600080546040516001600160a01b0390911690600080516020610b36833981519152908390a350565b6000546001600160a01b031633146106125760405162461bcd60e51b81526004016101bd90610a83565b476106256000546001600160a01b031690565b6001600160a01b03168160405160006040518083038185875af1925050503d806000811461066f576040519150601f19603f3d011682016040523d82523d6000602084013e610674565b606091505b50505050565b6000546001600160a01b031633146106a45760405162461bcd60e51b81526004016101bd90610a83565b6001600160a01b0381166107095760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016101bd565b600080546040516001600160a01b0380851693921691600080516020610b3683398151915291a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b6003546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa15801561079b573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107bf9190610ab8565b6003546040516323b872dd60e01b8152336004820152306024820152604481018590529192506000916001600160a01b03909116906323b872dd906064016020604051808303816000875af115801561081c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108409190610ad1565b6003546040516370a0823160e01b81523060048201529192506000916001600160a01b03909116906370a0823190602401602060405180830381865afa15801561088e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108b29190610ab8565b9050836108bf8483610b22565b1461090c5760405162461bcd60e51b815260206004820152601760248201527f42616c616e6365207472616e73666572206661696c656400000000000000000060448201526064016101bd565b600480546005546040516323b872dd60e01b81526001600160a01b03918216938101939093523360248401526044830187905216906323b872dd906064016020604051808303816000875af1158015610969573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061098d9190610ad1565b5060405184815233907f560c2d01b390b6779e2d10c443fb354f5ce2ec169ef6617c3bb2208938f82dc99060200160405180910390a250505050565b6001600160a01b03811681146109de57600080fd5b50565b600080604083850312156109f457600080fd5b82356109ff816109c9565b91506020830135610a0f816109c9565b809150509250929050565b60008060408385031215610a2d57600080fd5b8235610a38816109c9565b946020939093013593505050565b600060208284031215610a5857600080fd5b8135610a63816109c9565b9392505050565b600060208284031215610a7c57600080fd5b5035919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600060208284031215610aca57600080fd5b5051919050565b600060208284031215610ae357600080fd5b81518015158114610a6357600080fd5b634e487b7160e01b600052601160045260246000fd5b80820180821115610b1c57610b1c610af3565b92915050565b81810381811115610b1c57610b1c610af356fe8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0a2646970667358221220e868c25a62c672311e89e2364eb2aa1c97d2619a472225a4d113486820f85c0764736f6c634300081100330000000000000000000000001e8e29ca51363d923725ab9dac73bd7e9c440f7100000000000000000000000018a3563c21062897950bb09339c82b9686a35667

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100b45760003560e01c8063b377cc3c11610071578063b377cc3c1461012e578063b6c5232414610141578063dd46706414610152578063e086e5ec14610165578063f2fde38b1461016d578063fe784eaa1461018057600080fd5b8063715018a6146100b95780638da5cb5b146100c35780639570c6cd146100ed578063a1db978214610100578063a46d3f9d14610113578063a69df4b514610126575b600080fd5b6100c1610193565b005b6000546001600160a01b03165b6040516001600160a01b0390911681526020015b60405180910390f35b6100c16100fb3660046109e1565b6101fe565b6100c161010e366004610a1a565b610256565b6005546100d0906001600160a01b031681565b6100c1610411565b6100c161013c366004610a46565b610517565b6002546040519081526020016100e4565b6100c1610160366004610a6a565b610563565b6100c16105e8565b6100c161017b366004610a46565b61067a565b6100c161018e366004610a6a565b610752565b6000546001600160a01b031633146101c65760405162461bcd60e51b81526004016101bd90610a83565b60405180910390fd5b600080546040516001600160a01b0390911690600080516020610b36833981519152908390a3600080546001600160a01b0319169055565b6000546001600160a01b031633146102285760405162461bcd60e51b81526004016101bd90610a83565b600380546001600160a01b039384166001600160a01b03199182161790915560048054929093169116179055565b6000546001600160a01b031633146102805760405162461bcd60e51b81526004016101bd90610a83565b6040516370a0823160e01b81523060048201526000906001600160a01b038416906370a0823190602401602060405180830381865afa1580156102c7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102eb9190610ab8565b90508082111561032e5760405162461bcd60e51b815260206004820152600e60248201526d62616c616e6365206973206c6f7760901b60448201526064016101bd565b826001600160a01b031663a9059cbb61034f6000546001600160a01b031690565b6040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602481018590526044016020604051808303816000875af115801561039c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103c09190610ad1565b50600054604080516001600160a01b0386811682526020820186905282519316927f6337ed398c0e8467698c581374fdce4db14922df487b5a39483079f5f59b60a4929181900390910190a2505050565b6001546001600160a01b031633146104775760405162461bcd60e51b815260206004820152602360248201527f596f7520646f6e27742068617665207065726d697373696f6e20746f20756e6c6044820152626f636b60e81b60648201526084016101bd565b60025442116104c85760405162461bcd60e51b815260206004820152601f60248201527f436f6e7472616374206973206c6f636b656420756e74696c203720646179730060448201526064016101bd565b600154600080546040516001600160a01b039384169390911691600080516020610b3683398151915291a3600154600080546001600160a01b0319166001600160a01b03909216919091179055565b6000546001600160a01b031633146105415760405162461bcd60e51b81526004016101bd90610a83565b600580546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b0316331461058d5760405162461bcd60e51b81526004016101bd90610a83565b60008054600180546001600160a01b03199081166001600160a01b038416179091551690556105bc8142610b09565b600255600080546040516001600160a01b0390911690600080516020610b36833981519152908390a350565b6000546001600160a01b031633146106125760405162461bcd60e51b81526004016101bd90610a83565b476106256000546001600160a01b031690565b6001600160a01b03168160405160006040518083038185875af1925050503d806000811461066f576040519150601f19603f3d011682016040523d82523d6000602084013e610674565b606091505b50505050565b6000546001600160a01b031633146106a45760405162461bcd60e51b81526004016101bd90610a83565b6001600160a01b0381166107095760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016101bd565b600080546040516001600160a01b0380851693921691600080516020610b3683398151915291a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b6003546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa15801561079b573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107bf9190610ab8565b6003546040516323b872dd60e01b8152336004820152306024820152604481018590529192506000916001600160a01b03909116906323b872dd906064016020604051808303816000875af115801561081c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108409190610ad1565b6003546040516370a0823160e01b81523060048201529192506000916001600160a01b03909116906370a0823190602401602060405180830381865afa15801561088e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108b29190610ab8565b9050836108bf8483610b22565b1461090c5760405162461bcd60e51b815260206004820152601760248201527f42616c616e6365207472616e73666572206661696c656400000000000000000060448201526064016101bd565b600480546005546040516323b872dd60e01b81526001600160a01b03918216938101939093523360248401526044830187905216906323b872dd906064016020604051808303816000875af1158015610969573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061098d9190610ad1565b5060405184815233907f560c2d01b390b6779e2d10c443fb354f5ce2ec169ef6617c3bb2208938f82dc99060200160405180910390a250505050565b6001600160a01b03811681146109de57600080fd5b50565b600080604083850312156109f457600080fd5b82356109ff816109c9565b91506020830135610a0f816109c9565b809150509250929050565b60008060408385031215610a2d57600080fd5b8235610a38816109c9565b946020939093013593505050565b600060208284031215610a5857600080fd5b8135610a63816109c9565b9392505050565b600060208284031215610a7c57600080fd5b5035919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600060208284031215610aca57600080fd5b5051919050565b600060208284031215610ae357600080fd5b81518015158114610a6357600080fd5b634e487b7160e01b600052601160045260246000fd5b80820180821115610b1c57610b1c610af3565b92915050565b81810381811115610b1c57610b1c610af356fe8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0a2646970667358221220e868c25a62c672311e89e2364eb2aa1c97d2619a472225a4d113486820f85c0764736f6c63430008110033

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

0000000000000000000000001e8e29ca51363d923725ab9dac73bd7e9c440f7100000000000000000000000018a3563c21062897950bb09339c82b9686a35667

-----Decoded View---------------
Arg [0] : _tokenA (address): 0x1E8E29CA51363D923725aB9DaC73Bd7e9C440f71
Arg [1] : _tokenB (address): 0x18a3563c21062897950BB09339C82b9686a35667

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 0000000000000000000000001e8e29ca51363d923725ab9dac73bd7e9c440f71
Arg [1] : 00000000000000000000000018a3563c21062897950bb09339c82b9686a35667


Deployed Bytecode Sourcemap

5320:1846:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1574:138;;;:::i;:::-;;972:73;1010:7;1033:6;-1:-1:-1;;;;;1033:6:0;972:73;;;-1:-1:-1;;;;;178:32:1;;;160:51;;148:2;133:18;972:73:0;;;;;;;;6989:172;;;;;;:::i;:::-;;:::i;6381:313::-;;;;;;:::i;:::-;;:::i;5434:27::-;;;;;-1:-1:-1;;;;;5434:27:0;;;2524:307;;;:::i;6874:106::-;;;;;;:::i;:::-;;:::i;2093:83::-;2161:9;;2093:83;;1483:25:1;;;1471:2;1456:18;2093:83:0;1337:177:1;2248:208:0;;;;;;:::i;:::-;;:::i;6702:156::-;;;:::i;1857:230::-;;;;;;:::i;:::-;;:::i;5791:582::-;;;;;;:::i;:::-;;:::i;1574:138::-;1166:6;;-1:-1:-1;;;;;1166:6:0;175:10;1166:22;1158:67;;;;-1:-1:-1;;;1158:67:0;;;;;;;:::i;:::-;;;;;;;;;1677:1:::1;1661:6:::0;;1640:40:::1;::::0;-1:-1:-1;;;;;1661:6:0;;::::1;::::0;-1:-1:-1;;;;;;;;;;;1640:40:0;1677:1;;1640:40:::1;1704:1;1687:19:::0;;-1:-1:-1;;;;;;1687:19:0::1;::::0;;1574:138::o;6989:172::-;1166:6;;-1:-1:-1;;;;;1166:6:0;175:10;1166:22;1158:67;;;;-1:-1:-1;;;1158:67:0;;;;;;;:::i;:::-;7074:16:::1;:34:::0;;-1:-1:-1;;;;;7074:34:0;;::::1;-1:-1:-1::0;;;;;;7074:34:0;;::::1;;::::0;;;7119:16:::1;:34:::0;;;;;::::1;::::0;::::1;;::::0;;6989:172::o;6381:313::-;1166:6;;-1:-1:-1;;;;;1166:6:0;175:10;1166:22;1158:67;;;;-1:-1:-1;;;1158:67:0;;;;;;;:::i;:::-;6497:30:::1;::::0;-1:-1:-1;;;6497:30:0;;6521:4:::1;6497:30;::::0;::::1;160:51:1::0;6474:20:0::1;::::0;-1:-1:-1;;;;;6497:15:0;::::1;::::0;::::1;::::0;133:18:1;;6497:30:0::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;6474:53;;6556:12;6546:6;:22;;6538:49;;;::::0;-1:-1:-1;;;6538:49:0;;2456:2:1;6538:49:0::1;::::0;::::1;2438:21:1::0;2495:2;2475:18;;;2468:30;-1:-1:-1;;;2514:18:1;;;2507:44;2568:18;;6538:49:0::1;2254:338:1::0;6538:49:0::1;6598:5;-1:-1:-1::0;;;;;6598:14:0::1;;6613:7;1010::::0;1033:6;-1:-1:-1;;;;;1033:6:0;;972:73;6613:7:::1;6598:31;::::0;-1:-1:-1;;;;;;6598:31:0::1;::::0;;;;;;-1:-1:-1;;;;;2789:32:1;;;6598:31:0::1;::::0;::::1;2771:51:1::0;2838:18;;;2831:34;;;2744:18;;6598:31:0::1;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1::0;1010:7:0;1033:6;6638:48:::1;::::0;;-1:-1:-1;;;;;2789:32:1;;;2771:51;;2853:2;2838:18;;2831:34;;;6638:48:0;;1033:6;;;6638:48:::1;::::0;;;;;;;;;::::1;6452:242;6381:313:::0;;:::o;2524:307::-;2580:14;;-1:-1:-1;;;;;2580:14:0;2598:10;2580:28;2564:97;;;;-1:-1:-1;;;2564:97:0;;3360:2:1;2564:97:0;;;3342:21:1;3399:2;3379:18;;;3372:30;3438:34;3418:18;;;3411:62;-1:-1:-1;;;3489:18:1;;;3482:33;3532:19;;2564:97:0;3158:399:1;2564:97:0;2694:9;;2676:15;:27;2668:71;;;;-1:-1:-1;;;2668:71:0;;3764:2:1;2668:71:0;;;3746:21:1;3803:2;3783:18;;;3776:30;3842:33;3822:18;;;3815:61;3893:18;;2668:71:0;3562:355:1;2668:71:0;2780:14;;;2772:6;;2751:44;;-1:-1:-1;;;;;2780:14:0;;;;2772:6;;;;-1:-1:-1;;;;;;;;;;;2751:44:0;;2811:14;;;2802:23;;-1:-1:-1;;;;;;2802:23:0;-1:-1:-1;;;;;2811:14:0;;;2802:23;;;;;;2524:307::o;6874:106::-;1166:6;;-1:-1:-1;;;;;1166:6:0;175:10;1166:22;1158:67;;;;-1:-1:-1;;;1158:67:0;;;;;;;:::i;:::-;6949:12:::1;:23:::0;;-1:-1:-1;;;;;;6949:23:0::1;-1:-1:-1::0;;;;;6949:23:0;;;::::1;::::0;;;::::1;::::0;;6874:106::o;2248:208::-;1166:6;;-1:-1:-1;;;;;1166:6:0;175:10;1166:22;1158:67;;;;-1:-1:-1;;;1158:67:0;;;;;;;:::i;:::-;2325:6:::1;::::0;;;2308:23;;-1:-1:-1;;;;;;2308:23:0;;::::1;-1:-1:-1::0;;;;;2325:6:0;::::1;2308:23;::::0;;;2338:19:::1;::::0;;2376:22:::1;2394:4:::0;2376:15:::1;:22;:::i;:::-;2364:9;:34:::0;2447:1:::1;2431:6:::0;;2410:40:::1;::::0;-1:-1:-1;;;;;2431:6:0;;::::1;::::0;-1:-1:-1;;;;;;;;;;;2410:40:0;2447:1;;2410:40:::1;2248:208:::0;:::o;6702:156::-;1166:6;;-1:-1:-1;;;;;1166:6:0;175:10;1166:22;1158:67;;;;-1:-1:-1;;;1158:67:0;;;;;;;:::i;:::-;6775:21:::1;6815:7;1010::::0;1033:6;-1:-1:-1;;;;;1033:6:0;;972:73;6815:7:::1;-1:-1:-1::0;;;;;6807:21:0::1;6836:9;6807:43;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6744:114;6702:156::o:0;1857:230::-;1166:6;;-1:-1:-1;;;;;1166:6:0;175:10;1166:22;1158:67;;;;-1:-1:-1;;;1158:67:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;1942:22:0;::::1;1934:73;;;::::0;-1:-1:-1;;;1934:73:0;;4596:2:1;1934:73:0::1;::::0;::::1;4578:21:1::0;4635:2;4615:18;;;4608:30;4674:34;4654:18;;;4647:62;-1:-1:-1;;;4725:18:1;;;4718:36;4771:19;;1934:73:0::1;4394:402:1::0;1934:73:0::1;2040:6;::::0;;2019:38:::1;::::0;-1:-1:-1;;;;;2019:38:0;;::::1;::::0;2040:6;::::1;::::0;-1:-1:-1;;;;;;;;;;;2019:38:0;::::1;2064:6;:17:::0;;-1:-1:-1;;;;;;2064:17:0::1;-1:-1:-1::0;;;;;2064:17:0;;;::::1;::::0;;;::::1;::::0;;1857:230::o;5791:582::-;5878:16;;:41;;-1:-1:-1;;;5878:41:0;;5913:4;5878:41;;;160:51:1;5846:29:0;;-1:-1:-1;;;;;5878:16:0;;:26;;133:18:1;;5878:41:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;5952:16;;:62;;-1:-1:-1;;;5952:62:0;;5982:10;5952:62;;;5041:34:1;6001:4:0;5091:18:1;;;5084:43;5143:18;;;5136:34;;;5846:73:0;;-1:-1:-1;5930:19:0;;-1:-1:-1;;;;;5952:16:0;;;;:29;;4976:18:1;;5952:62:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;6107:16;;:41;;-1:-1:-1;;;6107:41:0;;6142:4;6107:41;;;160:51:1;5930:84:0;;-1:-1:-1;6076:28:0;;-1:-1:-1;;;;;6107:16:0;;;;:26;;133:18:1;;6107:41:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;6076:72;-1:-1:-1;6216:6:0;6167:44;6190:21;6076:72;6167:44;:::i;:::-;:55;6159:90;;;;-1:-1:-1;;;6159:90:0;;5516:2:1;6159:90:0;;;5498:21:1;5555:2;5535:18;;;5528:30;5594:25;5574:18;;;5567:53;5637:18;;6159:90:0;5314:347:1;6159:90:0;6260:16;;;6290:12;;6260:61;;-1:-1:-1;;;6260:61:0;;-1:-1:-1;;;;;6290:12:0;;;6260:61;;;5041:34:1;;;;6303:10:0;5091:18:1;;;5084:43;5143:18;;;5136:34;;;6260:16:0;;:29;;4976:18:1;;6260:61:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;6332:33:0;;1483:25:1;;;6346:10:0;;6332:33;;1471:2:1;1456:18;6332:33:0;;;;;;;5835:538;;;5791:582;:::o;222:131:1:-;-1:-1:-1;;;;;297:31:1;;287:42;;277:70;;343:1;340;333:12;277:70;222:131;:::o;358:388::-;426:6;434;487:2;475:9;466:7;462:23;458:32;455:52;;;503:1;500;493:12;455:52;542:9;529:23;561:31;586:5;561:31;:::i;:::-;611:5;-1:-1:-1;668:2:1;653:18;;640:32;681:33;640:32;681:33;:::i;:::-;733:7;723:17;;;358:388;;;;;:::o;751:329::-;833:6;841;894:2;882:9;873:7;869:23;865:32;862:52;;;910:1;907;900:12;862:52;949:9;936:23;968:31;993:5;968:31;:::i;:::-;1018:5;1070:2;1055:18;;;;1042:32;;-1:-1:-1;;;751:329:1:o;1085:247::-;1144:6;1197:2;1185:9;1176:7;1172:23;1168:32;1165:52;;;1213:1;1210;1203:12;1165:52;1252:9;1239:23;1271:31;1296:5;1271:31;:::i;:::-;1321:5;1085:247;-1:-1:-1;;;1085:247:1:o;1519:180::-;1578:6;1631:2;1619:9;1610:7;1606:23;1602:32;1599:52;;;1647:1;1644;1637:12;1599:52;-1:-1:-1;1670:23:1;;1519:180;-1:-1:-1;1519:180:1:o;1704:356::-;1906:2;1888:21;;;1925:18;;;1918:30;1984:34;1979:2;1964:18;;1957:62;2051:2;2036:18;;1704:356::o;2065:184::-;2135:6;2188:2;2176:9;2167:7;2163:23;2159:32;2156:52;;;2204:1;2201;2194:12;2156:52;-1:-1:-1;2227:16:1;;2065:184;-1:-1:-1;2065:184:1:o;2876:277::-;2943:6;2996:2;2984:9;2975:7;2971:23;2967:32;2964:52;;;3012:1;3009;3002:12;2964:52;3044:9;3038:16;3097:5;3090:13;3083:21;3076:5;3073:32;3063:60;;3119:1;3116;3109:12;3922:127;3983:10;3978:3;3974:20;3971:1;3964:31;4014:4;4011:1;4004:15;4038:4;4035:1;4028:15;4054:125;4119:9;;;4140:10;;;4137:36;;;4153:18;;:::i;:::-;4054:125;;;;:::o;5181:128::-;5248:9;;;5269:11;;;5266:37;;;5283:18;;:::i

Swarm Source

ipfs://e868c25a62c672311e89e2364eb2aa1c97d2619a472225a4d113486820f85c07

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.