ETH Price: $3,380.91 (+0.71%)

Contract

0x7711863244783348Ae78c2BDebb9802b297DCE56
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Swap214680692024-12-23 22:09:474 days ago1734991787IN
0x77118632...b297DCE56
0 ETH0.0010177914.13973082
Swap214516402024-12-21 15:00:237 days ago1734793223IN
0x77118632...b297DCE56
0 ETH0.0007438110.33355355
Swap214110012024-12-15 22:48:4712 days ago1734302927IN
0x77118632...b297DCE56
0 ETH0.000510867.09719575
Swap213403412024-12-06 2:01:5922 days ago1733450519IN
0x77118632...b297DCE56
0 ETH0.0013779819.14370957
Swap213298772024-12-04 14:58:1124 days ago1733324291IN
0x77118632...b297DCE56
0 ETH0.0032578645.26000923
Swap213218782024-12-03 12:08:3525 days ago1733227715IN
0x77118632...b297DCE56
0 ETH0.001566121.75723116
Swap213186932024-12-03 1:27:3525 days ago1733189255IN
0x77118632...b297DCE56
0 ETH0.0013672517.80719295
Swap213183072024-12-03 0:09:4725 days ago1733184587IN
0x77118632...b297DCE56
0 ETH0.0015737626.36955704
Swap212876932024-11-28 17:28:4730 days ago1732814927IN
0x77118632...b297DCE56
0 ETH0.0007811110.85174379
Swap212866502024-11-28 13:59:3530 days ago1732802375IN
0x77118632...b297DCE56
0 ETH0.0010296613.41038193
Swap212861242024-11-28 12:12:4730 days ago1732795967IN
0x77118632...b297DCE56
0 ETH0.000682768.89237252
Swap212860752024-11-28 12:02:5930 days ago1732795379IN
0x77118632...b297DCE56
0 ETH0.000582247.58322699
Swap212159662024-11-18 17:02:1140 days ago1731949331IN
0x77118632...b297DCE56
0 ETH0.0020541128.5368529
Swap212102932024-11-17 22:03:4740 days ago1731881027IN
0x77118632...b297DCE56
0 ETH0.0008899312.3634447
Swap211916772024-11-15 7:43:2343 days ago1731656603IN
0x77118632...b297DCE56
0 ETH0.0010066513.98495552
Swap211915742024-11-15 7:22:4743 days ago1731655367IN
0x77118632...b297DCE56
0 ETH0.0011158915.50269404
Swap210467092024-10-26 2:07:3563 days ago1729908455IN
0x77118632...b297DCE56
0 ETH0.000480436.67450967
Swap209284872024-10-09 13:59:2380 days ago1728482363IN
0x77118632...b297DCE56
0 ETH0.0017291724.02272644
Swap208836872024-10-03 8:06:4786 days ago1727942807IN
0x77118632...b297DCE56
0 ETH0.000546097.58672278
Swap207379332024-09-12 23:53:35106 days ago1726185215IN
0x77118632...b297DCE56
0 ETH0.000163762.27507516
Swap205941552024-08-23 22:02:11126 days ago1724450531IN
0x77118632...b297DCE56
0 ETH0.00022423.11481724
Swap203023512024-07-14 4:27:35167 days ago1720931255IN
0x77118632...b297DCE56
0 ETH0.000226443.14594238
Swap202843412024-07-11 16:04:11170 days ago1720713851IN
0x77118632...b297DCE56
0 ETH0.0008624911.98228236
Swap202752192024-07-10 9:31:47171 days ago1720603907IN
0x77118632...b297DCE56
0 ETH0.00042755.93915416
Swap202448242024-07-06 3:35:59175 days ago1720236959IN
0x77118632...b297DCE56
0 ETH0.000449886.25
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:
TokenSwap

Compiler Version
v0.7.6+commit.7338295f

Optimization Enabled:
Yes with 1000 runs

Other Settings:
default evmVersion
File 1 of 6 : TokenSwap.sol
// SPDX-License-Identifier: BSD-3-Clause
pragma solidity ^0.7.0;

import "@openzeppelin/contracts/math/SafeMath.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Address.sol";

/**
 * @notice This contracts handles swapping the old LOOM ERC20 token for the new LOOM ERC20 token.
 *         The old tokens will accumulate in this contract, there's no way to transfer them back out.
 */
contract TokenSwap is Ownable {
    using SafeMath for uint256;
    using Address for address;

    IERC20 public oldToken;
    IERC20 public newToken;
    bool public paused = true; // paused by default because newToken must be set first

    /**
     * @param _oldToken Address of old LOOM ERC20 contract.
     */
    constructor(address _oldToken) {
        require(
            _oldToken != address(0) && _oldToken.isContract(),
            "LoomToken: invalid old LOOM address"
        );

        oldToken = IERC20(_oldToken);
    }

    /**
     * @param _newToken Address of new LOOM ERC20 contract.
     */
    function setNewLoomToken(address _newToken) external onlyOwner {
        require(address(newToken) == address(0), "TokenSwap: new token already set");
        require(
            _newToken != address(0) && _newToken.isContract(),
            "TokenSwap: invalid contract address"
        );

        newToken = IERC20(_newToken);
        paused = false;
    }

    /**
     * @notice Pauses swapping, preventing any further calls to swap() from succeeding until
     *         unpause() is called.
     */
    function pause() external onlyOwner {
        require(!paused, "TokenSwap: already paused");
        paused = true;
    }

    /**
     * @notice Unpauses swapping if it was paused previously.
     */
    function unpause() external onlyOwner {
        require(paused, "TokenSwap: not paused");
        paused = false;
    }

    /**
     * @notice Swaps all the old LOOM held by the caller to new LOOM.
     *         Emits Swap event if the swap is successful.
     */
    function swap() external {
        _swapFor(msg.sender, oldToken.balanceOf(msg.sender));
    }

    /**
     * @notice Deducts some old LOOM from the caller and transfers the corresponding amount of new
     *         LOOM to the another account.
     * @param _recipient Account that will receive the new LOOM tokens.
     * @param _amount Amount of old LOOM tokens to swap.
     */
    function swapFor(address _recipient, uint256 _amount) external {
        _swapFor(_recipient, _amount);
    }

    /**
     * @notice Transfers some new LOOM from the contract to another account.
     * @param _recipient Account that will receive the new LOOM tokens.
     * @param _amount Amount of new LOOM tokens to transfer.
     */
    function withdrawTo(address _recipient, uint256 _amount) external onlyOwner {
        require(newToken.transfer(_recipient, _amount), "TokenSwap: failed to transfer new LOOM");
    }

    function _swapFor(address _recipient, uint256 _amount) private {
        require(!paused, "TokenSwap: paused");
        require(_amount > 0, "TokenSwap: invalid old LOOM amount");

        require(
            oldToken.transferFrom(msg.sender, address(this), _amount),
            "TokenSwap: failed to transfer old LOOM"
        );

        require(newToken.transfer(_recipient, _amount), "TokenSwap: failed to transfer new LOOM");
    }
}

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

pragma solidity >=0.6.0 <0.8.0;

/**
 * @dev Wrappers over Solidity's arithmetic operations with added overflow
 * checks.
 *
 * Arithmetic operations in Solidity wrap on overflow. This can easily result
 * in bugs, because programmers usually assume that an overflow raises an
 * error, which is the standard behavior in high level programming languages.
 * `SafeMath` restores this intuition by reverting the transaction when an
 * operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a + b;
        require(c >= a, "SafeMath: addition overflow");

        return c;
    }

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

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b <= a, errorMessage);
        uint256 c = a - b;

        return c;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
        // benefit is lost if 'b' is also tested.
        // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
        if (a == 0) {
            return 0;
        }

        uint256 c = a * b;
        require(c / a == b, "SafeMath: multiplication overflow");

        return c;
    }

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

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

        return c;
    }

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

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

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

pragma solidity >=0.6.0 <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 4 of 6 : Ownable.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

import "../GSN/Context.sol";
/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor () internal {
        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;
    }
}

File 5 of 6 : Address.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.2 <0.8.0;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        // solhint-disable-next-line no-inline-assembly
        assembly { size := extcodesize(account) }
        return size > 0;
    }

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

        // solhint-disable-next-line avoid-low-level-calls, avoid-call-value
        (bool success, ) = recipient.call{ value: amount }("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

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

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

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

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

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.call{ value: value }(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

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

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

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.staticcall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private pure returns(bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

                // solhint-disable-next-line no-inline-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

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

pragma solidity >=0.6.0 <0.8.0;

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_oldToken","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"},{"inputs":[],"name":"newToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"oldToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newToken","type":"address"}],"name":"setNewLoomToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"swap","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_recipient","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"swapFor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_recipient","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdrawTo","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040526002805460ff60a01b1916600160a01b17905534801561002357600080fd5b50604051610cd5380380610cd58339818101604052602081101561004657600080fd5b5051600061005261012b565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3506001600160a01b038116158015906100cb57506100cb816001600160a01b031661012f60201b6108ff1760201c565b6101065760405162461bcd60e51b8152600401808060200182810382526023815260200180610cb26023913960400191505060405180910390fd5b600180546001600160a01b0319166001600160a01b0392909216919091179055610135565b3390565b3b151590565b610b6e806101446000396000f3fe608060405234801561001057600080fd5b50600436106100d45760003560e01c80638119c06511610081578063b31c710a1161005b578063b31c710a146101b9578063c42bd05a146101c1578063f2fde38b146101c9576100d4565b80638119c065146101855780638456cb591461018d5780638da5cb5b14610195576100d4565b80635c975abb116100b25780635c975abb146101355780635fe8c38714610151578063715018a61461017d576100d4565b8063205c2878146100d957806338b53670146101075780633f4ba83a1461012d575b600080fd5b610105600480360360408110156100ef57600080fd5b506001600160a01b0381351690602001356101ef565b005b6101056004803603602081101561011d57600080fd5b50356001600160a01b0316610333565b610105610491565b61013d610568565b604080519115158252519081900360200190f35b6101056004803603604081101561016757600080fd5b506001600160a01b038135169060200135610578565b610105610582565b610105610643565b6101056106dd565b61019d6107bb565b604080516001600160a01b039092168252519081900360200190f35b61019d6107ca565b61019d6107d9565b610105600480360360208110156101df57600080fd5b50356001600160a01b03166107e8565b6101f7610905565b6000546001600160a01b03908116911614610259576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600254604080517fa9059cbb0000000000000000000000000000000000000000000000000000000081526001600160a01b038581166004830152602482018590529151919092169163a9059cbb9160448083019260209291908290030181600087803b1580156102c857600080fd5b505af11580156102dc573d6000803e3d6000fd5b505050506040513d60208110156102f257600080fd5b505161032f5760405162461bcd60e51b8152600401808060200182810382526026815260200180610b136026913960400191505060405180910390fd5b5050565b61033b610905565b6000546001600160a01b0390811691161461039d576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6002546001600160a01b0316156103fb576040805162461bcd60e51b815260206004820181905260248201527f546f6b656e537761703a206e657720746f6b656e20616c726561647920736574604482015290519081900360640190fd5b6001600160a01b038116158015906104205750610420816001600160a01b03166108ff565b61045b5760405162461bcd60e51b8152600401808060200182810382526023815260200180610aa86023913960400191505060405180910390fd5b6002805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b03929092169190911760ff60a01b19169055565b610499610905565b6000546001600160a01b039081169116146104fb576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600254600160a01b900460ff16610559576040805162461bcd60e51b815260206004820152601560248201527f546f6b656e537761703a206e6f74207061757365640000000000000000000000604482015290519081900360640190fd5b6002805460ff60a01b19169055565b600254600160a01b900460ff1681565b61032f8282610909565b61058a610905565b6000546001600160a01b039081169116146105ec576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a36000805473ffffffffffffffffffffffffffffffffffffffff19169055565b600154604080517f70a08231000000000000000000000000000000000000000000000000000000008152336004820181905291516106db936001600160a01b0316916370a08231916024808301926020929190829003018186803b1580156106aa57600080fd5b505afa1580156106be573d6000803e3d6000fd5b505050506040513d60208110156106d457600080fd5b5051610909565b565b6106e5610905565b6000546001600160a01b03908116911614610747576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600254600160a01b900460ff16156107a6576040805162461bcd60e51b815260206004820152601960248201527f546f6b656e537761703a20616c72656164792070617573656400000000000000604482015290519081900360640190fd5b6002805460ff60a01b1916600160a01b179055565b6000546001600160a01b031690565b6001546001600160a01b031681565b6002546001600160a01b031681565b6107f0610905565b6000546001600160a01b03908116911614610852576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6001600160a01b0381166108975760405162461bcd60e51b8152600401808060200182810382526026815260200180610a826026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a36000805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b3b151590565b3390565b600254600160a01b900460ff1615610968576040805162461bcd60e51b815260206004820152601160248201527f546f6b656e537761703a20706175736564000000000000000000000000000000604482015290519081900360640190fd5b600081116109a75760405162461bcd60e51b8152600401808060200182810382526022815260200180610acb6022913960400191505060405180910390fd5b600154604080517f23b872dd0000000000000000000000000000000000000000000000000000000081523360048201523060248201526044810184905290516001600160a01b03909216916323b872dd916064808201926020929091908290030181600087803b158015610a1a57600080fd5b505af1158015610a2e573d6000803e3d6000fd5b505050506040513d6020811015610a4457600080fd5b50516102595760405162461bcd60e51b8152600401808060200182810382526026815260200180610aed6026913960400191505060405180910390fdfe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373546f6b656e537761703a20696e76616c696420636f6e74726163742061646472657373546f6b656e537761703a20696e76616c6964206f6c64204c4f4f4d20616d6f756e74546f6b656e537761703a206661696c656420746f207472616e73666572206f6c64204c4f4f4d546f6b656e537761703a206661696c656420746f207472616e73666572206e6577204c4f4f4da26469706673582212203a20635f71be5454eeb5bbc39a45022882d7ed8fdbed784b905bbb639a24d0b664736f6c634300070600334c6f6f6d546f6b656e3a20696e76616c6964206f6c64204c4f4f4d2061646472657373000000000000000000000000a4e8c3ec456107ea67d3075bf9e3df3a75823db0

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100d45760003560e01c80638119c06511610081578063b31c710a1161005b578063b31c710a146101b9578063c42bd05a146101c1578063f2fde38b146101c9576100d4565b80638119c065146101855780638456cb591461018d5780638da5cb5b14610195576100d4565b80635c975abb116100b25780635c975abb146101355780635fe8c38714610151578063715018a61461017d576100d4565b8063205c2878146100d957806338b53670146101075780633f4ba83a1461012d575b600080fd5b610105600480360360408110156100ef57600080fd5b506001600160a01b0381351690602001356101ef565b005b6101056004803603602081101561011d57600080fd5b50356001600160a01b0316610333565b610105610491565b61013d610568565b604080519115158252519081900360200190f35b6101056004803603604081101561016757600080fd5b506001600160a01b038135169060200135610578565b610105610582565b610105610643565b6101056106dd565b61019d6107bb565b604080516001600160a01b039092168252519081900360200190f35b61019d6107ca565b61019d6107d9565b610105600480360360208110156101df57600080fd5b50356001600160a01b03166107e8565b6101f7610905565b6000546001600160a01b03908116911614610259576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600254604080517fa9059cbb0000000000000000000000000000000000000000000000000000000081526001600160a01b038581166004830152602482018590529151919092169163a9059cbb9160448083019260209291908290030181600087803b1580156102c857600080fd5b505af11580156102dc573d6000803e3d6000fd5b505050506040513d60208110156102f257600080fd5b505161032f5760405162461bcd60e51b8152600401808060200182810382526026815260200180610b136026913960400191505060405180910390fd5b5050565b61033b610905565b6000546001600160a01b0390811691161461039d576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6002546001600160a01b0316156103fb576040805162461bcd60e51b815260206004820181905260248201527f546f6b656e537761703a206e657720746f6b656e20616c726561647920736574604482015290519081900360640190fd5b6001600160a01b038116158015906104205750610420816001600160a01b03166108ff565b61045b5760405162461bcd60e51b8152600401808060200182810382526023815260200180610aa86023913960400191505060405180910390fd5b6002805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b03929092169190911760ff60a01b19169055565b610499610905565b6000546001600160a01b039081169116146104fb576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600254600160a01b900460ff16610559576040805162461bcd60e51b815260206004820152601560248201527f546f6b656e537761703a206e6f74207061757365640000000000000000000000604482015290519081900360640190fd5b6002805460ff60a01b19169055565b600254600160a01b900460ff1681565b61032f8282610909565b61058a610905565b6000546001600160a01b039081169116146105ec576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a36000805473ffffffffffffffffffffffffffffffffffffffff19169055565b600154604080517f70a08231000000000000000000000000000000000000000000000000000000008152336004820181905291516106db936001600160a01b0316916370a08231916024808301926020929190829003018186803b1580156106aa57600080fd5b505afa1580156106be573d6000803e3d6000fd5b505050506040513d60208110156106d457600080fd5b5051610909565b565b6106e5610905565b6000546001600160a01b03908116911614610747576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600254600160a01b900460ff16156107a6576040805162461bcd60e51b815260206004820152601960248201527f546f6b656e537761703a20616c72656164792070617573656400000000000000604482015290519081900360640190fd5b6002805460ff60a01b1916600160a01b179055565b6000546001600160a01b031690565b6001546001600160a01b031681565b6002546001600160a01b031681565b6107f0610905565b6000546001600160a01b03908116911614610852576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6001600160a01b0381166108975760405162461bcd60e51b8152600401808060200182810382526026815260200180610a826026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a36000805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b3b151590565b3390565b600254600160a01b900460ff1615610968576040805162461bcd60e51b815260206004820152601160248201527f546f6b656e537761703a20706175736564000000000000000000000000000000604482015290519081900360640190fd5b600081116109a75760405162461bcd60e51b8152600401808060200182810382526022815260200180610acb6022913960400191505060405180910390fd5b600154604080517f23b872dd0000000000000000000000000000000000000000000000000000000081523360048201523060248201526044810184905290516001600160a01b03909216916323b872dd916064808201926020929091908290030181600087803b158015610a1a57600080fd5b505af1158015610a2e573d6000803e3d6000fd5b505050506040513d6020811015610a4457600080fd5b50516102595760405162461bcd60e51b8152600401808060200182810382526026815260200180610aed6026913960400191505060405180910390fdfe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373546f6b656e537761703a20696e76616c696420636f6e74726163742061646472657373546f6b656e537761703a20696e76616c6964206f6c64204c4f4f4d20616d6f756e74546f6b656e537761703a206661696c656420746f207472616e73666572206f6c64204c4f4f4d546f6b656e537761703a206661696c656420746f207472616e73666572206e6577204c4f4f4da26469706673582212203a20635f71be5454eeb5bbc39a45022882d7ed8fdbed784b905bbb639a24d0b664736f6c63430007060033

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

000000000000000000000000a4e8c3ec456107ea67d3075bf9e3df3a75823db0

-----Decoded View---------------
Arg [0] : _oldToken (address): 0xA4e8C3Ec456107eA67d3075bF9e3DF3A75823DB0

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000a4e8c3ec456107ea67d3075bf9e3df3a75823db0


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.