ETH Price: $2,604.47 (+2.37%)

Contract

0xdFB3d03E060a374A83c71c6bEF51F7d93329F422
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Migrate160758232022-11-29 13:03:47662 days ago1669727027IN
0xdFB3d03E...93329F422
0 ETH0.0007809710.27217316
Migrate155952352022-09-23 9:44:59729 days ago1663926299IN
0xdFB3d03E...93329F422
0 ETH0.000374034.91971483
Migrate151902202022-07-22 4:16:28792 days ago1658463388IN
0xdFB3d03E...93329F422
0 ETH0.000354711.55794881
Migrate151902192022-07-22 4:16:25792 days ago1658463385IN
0xdFB3d03E...93329F422
0 ETH0.000452725.95373871
Migrate149889082022-06-19 4:40:14825 days ago1655613614IN
0xdFB3d03E...93329F422
0 ETH0.0010264713.50122198
Migrate146302772022-04-21 19:52:53884 days ago1650570773IN
0xdFB3d03E...93329F422
0 ETH0.0050431466.33270183
Migrate145672182022-04-11 23:08:10894 days ago1649718490IN
0xdFB3d03E...93329F422
0 ETH0.0036585448.12102258
Migrate144963712022-03-31 21:30:00905 days ago1648762200IN
0xdFB3d03E...93329F422
0 ETH0.0046627961.32032383
Migrate144713612022-03-28 0:10:46909 days ago1648426246IN
0xdFB3d03E...93329F422
0 ETH0.0027375436.00136877
Migrate144449912022-03-23 21:27:04913 days ago1648070824IN
0xdFB3d03E...93329F422
0 ETH0.0033994544.71318865
Migrate144316532022-03-21 19:49:36915 days ago1647892176IN
0xdFB3d03E...93329F422
0 ETH0.0033596244.18933231
Migrate143995052022-03-16 19:32:20920 days ago1647459140IN
0xdFB3d03E...93329F422
0 ETH0.0034730545.681253
Migrate143877032022-03-14 23:23:36922 days ago1647300216IN
0xdFB3d03E...93329F422
0 ETH0.001186420.13306978
Migrate143845122022-03-14 11:40:59922 days ago1647258059IN
0xdFB3d03E...93329F422
0 ETH0.0013406117.63034224
Migrate143553072022-03-09 22:32:19927 days ago1646865139IN
0xdFB3d03E...93329F422
0 ETH0.0020581427.07092248
Migrate143516452022-03-09 8:55:37927 days ago1646816137IN
0xdFB3d03E...93329F422
0 ETH0.0024965532.83725122
Migrate143477722022-03-08 18:24:36928 days ago1646763876IN
0xdFB3d03E...93329F422
0 ETH0.0016169521.26449376
Migrate143332512022-03-06 12:13:18930 days ago1646568798IN
0xdFB3d03E...93329F422
0 ETH0.001574620.71091405
Migrate143257832022-03-05 8:30:43931 days ago1646469043IN
0xdFB3d03E...93329F422
0 ETH0.0025999534.19730993
Migrate143178142022-03-04 2:35:34932 days ago1646361334IN
0xdFB3d03E...93329F422
0 ETH0.0016241532.73184704
Migrate143127582022-03-03 7:49:21933 days ago1646293761IN
0xdFB3d03E...93329F422
0 ETH0.0028596637.61334986
Migrate143059422022-03-02 6:20:23934 days ago1646202023IN
0xdFB3d03E...93329F422
0 ETH0.0021883828.79297887
Migrate142946362022-02-28 12:24:55936 days ago1646051095IN
0xdFB3d03E...93329F422
0 ETH0.0018046223.73259053
Migrate142810472022-02-26 10:01:36938 days ago1645869696IN
0xdFB3d03E...93329F422
0 ETH0.0017695723.27533228
Migrate142748052022-02-25 10:53:10939 days ago1645786390IN
0xdFB3d03E...93329F422
0 ETH0.0030338639.90452167
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:
TokenMigrator

Compiler Version
v0.8.6+commit.11564f7e

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, Unlicense license
File 1 of 7 : TokenMigrator.sol
// SPDX-License-Identifier: UNLICENSED

pragma solidity 0.8.6;

import "IERC20.sol";
import "SafeOwnable.sol";
import "SafeERC20.sol";

contract TokenMigrator is SafeOwnable {

  using SafeERC20 for IERC20;

  IERC20 public immutable oldToken;
  IERC20 public immutable newToken;

  address public treasury;

  constructor(
    IERC20  _oldToken,
    IERC20  _newToken,
    address _treasury
  ) {
    oldToken = _oldToken;
    newToken = _newToken;
    treasury = _treasury;
  }

  function migrate(uint _amount) external {
    IERC20(oldToken).safeTransferFrom(msg.sender, address(this), _amount);
    IERC20(newToken).safeTransfer(msg.sender, _amount);
  }

  function recall(address _token, uint _amount) external onlyOwner {
    IERC20(_token).safeTransfer(treasury, _amount);
  }
}

File 2 of 7 : IERC20.sol
// SPDX-License-Identifier: UNLICENSED

pragma solidity >=0.7.0;

interface IERC20 {
  function totalSupply() external view returns (uint);
  function balanceOf(address account) external view returns(uint);
  function transfer(address recipient, uint256 amount) external returns(bool);
  function allowance(address owner, address spender) external view returns(uint);
  function decimals() external view returns(uint8);
  function approve(address spender, uint amount) external returns(bool);
  function transferFrom(address sender, address recipient, uint amount) external returns(bool);
}

File 3 of 7 : SafeOwnable.sol
// SPDX-License-Identifier: UNLICENSED

pragma solidity 0.8.6;

import "IOwnable.sol";

contract SafeOwnable is IOwnable {

  uint public constant RENOUNCE_TIMEOUT = 1 hours;

  address public override owner;
  address public pendingOwner;
  uint public renouncedAt;

  event OwnershipTransferInitiated(address indexed previousOwner, address indexed newOwner);
  event OwnershipTransferConfirmed(address indexed previousOwner, address indexed newOwner);

  constructor() {
    owner = msg.sender;
    emit OwnershipTransferConfirmed(address(0), msg.sender);
  }

  modifier onlyOwner() {
    require(isOwner(), "Ownable: caller is not the owner");
    _;
  }

  function isOwner() public view returns (bool) {
    return msg.sender == owner;
  }

  function transferOwnership(address _newOwner) external override onlyOwner {
    require(_newOwner != address(0), "Ownable: new owner is the zero address");
    emit OwnershipTransferInitiated(owner, _newOwner);
    pendingOwner = _newOwner;
  }

  function acceptOwnership() external override {
    require(msg.sender == pendingOwner, "Ownable: caller is not pending owner");
    emit OwnershipTransferConfirmed(msg.sender, pendingOwner);
    owner = pendingOwner;
    pendingOwner = address(0);
  }

  function initiateRenounceOwnership() external onlyOwner {
    require(renouncedAt == 0, "Ownable: already initiated");
    renouncedAt = block.timestamp;
  }

  function acceptRenounceOwnership() external onlyOwner {
    require(renouncedAt > 0, "Ownable: not initiated");
    require(block.timestamp - renouncedAt > RENOUNCE_TIMEOUT, "Ownable: too early");
    owner = address(0);
    pendingOwner = address(0);
    renouncedAt = 0;
  }

  function cancelRenounceOwnership() external onlyOwner {
    require(renouncedAt > 0, "Ownable: not initiated");
    renouncedAt = 0;
  }
}

File 4 of 7 : IOwnable.sol
// SPDX-License-Identifier: UNLICENSED

pragma solidity 0.8.6;

interface IOwnable {
  function owner() external view returns(address);
  function transferOwnership(address _newOwner) external;
  function acceptOwnership() external;
}

File 5 of 7 : SafeERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0;

import "IERC20.sol";
import "SafeMath.sol";
import "AddressLibrary.sol";

/**
 * @title SafeERC20
 * @dev Wrappers around ERC20 operations that throw on failure (when the token
 * contract returns false). Tokens that return no value (and instead revert or
 * throw on failure) are also supported, non-reverting calls are assumed to be
 * successful.
 * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeERC20 {
    using SafeMath for uint256;
    using AddressLibrary for address;

    function safeTransfer(IERC20 token, address to, uint256 value) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
    }

    /**
     * @dev Deprecated. This function has issues similar to the ones found in
     * {IERC20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    function safeApprove(IERC20 token, address spender, uint256 value) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        // solhint-disable-next-line max-line-length
        require((value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

    function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 newAllowance = token.allowance(address(this), spender).add(value);
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 newAllowance = token.allowance(address(this), spender).sub(value, "SafeERC20: decreased allowance below zero");
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function _callOptionalReturn(IERC20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that
        // the target address contains contract code and also asserts for success in the low-level call.

        bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
        if (returndata.length > 0) { // Return data is optional
            // solhint-disable-next-line max-line-length
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

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

pragma solidity >=0.6.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, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        uint256 c = a + b;
        if (c < a) return (false, 0);
        return (true, c);
    }

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

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

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

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

    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        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) {
        require(b <= a, "SafeMath: subtraction overflow");
        return a - b;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        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, reverting 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) {
        require(b > 0, "SafeMath: division by zero");
        return a / b;
    }

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

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

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryDiv}.
     *
     * 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);
        return a / b;
    }

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

File 7 of 7 : AddressLibrary.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.2;

/**
 * @dev Collection of functions related to the address type
 */
library AddressLibrary {
    /**
     * @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);
    }

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

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

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.delegatecall(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);
            }
        }
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"contract IERC20","name":"_oldToken","type":"address"},{"internalType":"contract IERC20","name":"_newToken","type":"address"},{"internalType":"address","name":"_treasury","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":"OwnershipTransferConfirmed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferInitiated","type":"event"},{"inputs":[],"name":"RENOUNCE_TIMEOUT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"acceptOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"acceptRenounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"cancelRenounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"initiateRenounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"isOwner","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"migrate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"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":"pendingOwner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"recall","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renouncedAt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"treasury","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]

60c060405234801561001057600080fd5b50604051610c6e380380610c6e83398101604081905261002f916100ae565b600080546001600160a01b0319163390811782556040519091907f646fe5eeb20d96ea45a9caafcb508854a2fb5660885ced7772e12a633c974571908290a3606092831b6001600160601b03199081166080529190921b1660a052600380546001600160a01b0319166001600160a01b03909216919091179055610113565b6000806000606084860312156100c357600080fd5b83516100ce816100fb565b60208501519093506100df816100fb565b60408501519092506100f0816100fb565b809150509250925092565b6001600160a01b038116811461011057600080fd5b50565b60805160601c60a05160601c610b2261014c600039600081816101cf01526102ca0152600081816101a001526102950152610b226000f3fe608060405234801561001057600080fd5b50600436106100f55760003560e01c80638f32d59b11610097578063dc6d621411610066578063dc6d6214146101f1578063e30c397814610208578063efe1d1301461021b578063f2fde38b1461022457600080fd5b80638f32d59b1461017d578063b31c710a1461019b578063b451b812146101c2578063c42bd05a146101ca57600080fd5b806370ed68d1116100d357806370ed68d11461015257806379ba50971461015a5780637b3c3487146101625780638da5cb5b1461016a57600080fd5b80631f035c7a146100fa578063454b06081461010f57806361d027b314610122575b600080fd5b61010d6101083660046109b2565b610237565b005b61010d61011d3660046109fe565b610288565b600354610135906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b61010d6102f4565b61010d610374565b61010d61043b565b600054610135906001600160a01b031681565b6000546001600160a01b031633146040519015158152602001610149565b6101357f000000000000000000000000000000000000000000000000000000000000000081565b61010d610523565b6101357f000000000000000000000000000000000000000000000000000000000000000081565b6101fa610e1081565b604051908152602001610149565b600154610135906001600160a01b031681565b6101fa60025481565b61010d610232366004610997565b61059f565b6000546001600160a01b0316331461026a5760405162461bcd60e51b815260040161026190610a66565b60405180910390fd5b600354610284906001600160a01b03848116911683610689565b5050565b6102bd6001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000163330846106f1565b6102f16001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000163383610689565b50565b6000546001600160a01b0316331461031e5760405162461bcd60e51b815260040161026190610a66565b6002541561036e5760405162461bcd60e51b815260206004820152601a60248201527f4f776e61626c653a20616c726561647920696e697469617465640000000000006044820152606401610261565b42600255565b6001546001600160a01b031633146103da5760405162461bcd60e51b8152602060048201526024808201527f4f776e61626c653a2063616c6c6572206973206e6f742070656e64696e67206f6044820152633bb732b960e11b6064820152608401610261565b6001546040516001600160a01b039091169033907f646fe5eeb20d96ea45a9caafcb508854a2fb5660885ced7772e12a633c97457190600090a360018054600080546001600160a01b03199081166001600160a01b03841617909155169055565b6000546001600160a01b031633146104655760405162461bcd60e51b815260040161026190610a66565b6000600254116104b05760405162461bcd60e51b815260206004820152601660248201527513dddb98589b194e881b9bdd081a5b9a5d1a585d195960521b6044820152606401610261565b610e10600254426104c19190610a9b565b116105035760405162461bcd60e51b81526020600482015260126024820152714f776e61626c653a20746f6f206561726c7960701b6044820152606401610261565b600080546001600160a01b03199081168255600180549091169055600255565b6000546001600160a01b0316331461054d5760405162461bcd60e51b815260040161026190610a66565b6000600254116105985760405162461bcd60e51b815260206004820152601660248201527513dddb98589b194e881b9bdd081a5b9a5d1a585d195960521b6044820152606401610261565b6000600255565b6000546001600160a01b031633146105c95760405162461bcd60e51b815260040161026190610a66565b6001600160a01b03811661062e5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610261565b600080546040516001600160a01b03808516939216917fb150023a879fd806e3599b6ca8ee3b60f0e360ab3846d128d67ebce1a391639a91a3600180546001600160a01b0319166001600160a01b0392909216919091179055565b6040516001600160a01b0383166024820152604481018290526106ec90849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b03199093169290921790915261072f565b505050565b6040516001600160a01b03808516602483015283166044820152606481018290526107299085906323b872dd60e01b906084016106b5565b50505050565b6000610784826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166108019092919063ffffffff16565b8051909150156106ec57808060200190518101906107a291906109dc565b6106ec5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610261565b6060610810848460008561081a565b90505b9392505050565b60608247101561087b5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610261565b843b6108c95760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610261565b600080866001600160a01b031685876040516108e59190610a17565b60006040518083038185875af1925050503d8060008114610922576040519150601f19603f3d011682016040523d82523d6000602084013e610927565b606091505b5091509150610937828286610942565b979650505050505050565b60608315610951575081610813565b8251156109615782518084602001fd5b8160405162461bcd60e51b81526004016102619190610a33565b80356001600160a01b038116811461099257600080fd5b919050565b6000602082840312156109a957600080fd5b6108138261097b565b600080604083850312156109c557600080fd5b6109ce8361097b565b946020939093013593505050565b6000602082840312156109ee57600080fd5b8151801515811461081357600080fd5b600060208284031215610a1057600080fd5b5035919050565b60008251610a29818460208701610ac0565b9190910192915050565b6020815260008251806020840152610a52816040850160208701610ac0565b601f01601f19169190910160400192915050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600082821015610abb57634e487b7160e01b600052601160045260246000fd5b500390565b60005b83811015610adb578181015183820152602001610ac3565b83811115610729575050600091015256fea264697066735822122083433ca799ad5e5a714dd43e3a27da16903064cafad36c9dd9e667967063eaa964736f6c6343000806003300000000000000000000000008a75dbc7167714ceac1a8e43a8d643a4edd625a000000000000000000000000403d512ab96103562dcafe4635545e8ee2753f6e000000000000000000000000fd66fb512dbc2dfa49377cfe1168eafc4ea6aa5d

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100f55760003560e01c80638f32d59b11610097578063dc6d621411610066578063dc6d6214146101f1578063e30c397814610208578063efe1d1301461021b578063f2fde38b1461022457600080fd5b80638f32d59b1461017d578063b31c710a1461019b578063b451b812146101c2578063c42bd05a146101ca57600080fd5b806370ed68d1116100d357806370ed68d11461015257806379ba50971461015a5780637b3c3487146101625780638da5cb5b1461016a57600080fd5b80631f035c7a146100fa578063454b06081461010f57806361d027b314610122575b600080fd5b61010d6101083660046109b2565b610237565b005b61010d61011d3660046109fe565b610288565b600354610135906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b61010d6102f4565b61010d610374565b61010d61043b565b600054610135906001600160a01b031681565b6000546001600160a01b031633146040519015158152602001610149565b6101357f00000000000000000000000008a75dbc7167714ceac1a8e43a8d643a4edd625a81565b61010d610523565b6101357f000000000000000000000000403d512ab96103562dcafe4635545e8ee2753f6e81565b6101fa610e1081565b604051908152602001610149565b600154610135906001600160a01b031681565b6101fa60025481565b61010d610232366004610997565b61059f565b6000546001600160a01b0316331461026a5760405162461bcd60e51b815260040161026190610a66565b60405180910390fd5b600354610284906001600160a01b03848116911683610689565b5050565b6102bd6001600160a01b037f00000000000000000000000008a75dbc7167714ceac1a8e43a8d643a4edd625a163330846106f1565b6102f16001600160a01b037f000000000000000000000000403d512ab96103562dcafe4635545e8ee2753f6e163383610689565b50565b6000546001600160a01b0316331461031e5760405162461bcd60e51b815260040161026190610a66565b6002541561036e5760405162461bcd60e51b815260206004820152601a60248201527f4f776e61626c653a20616c726561647920696e697469617465640000000000006044820152606401610261565b42600255565b6001546001600160a01b031633146103da5760405162461bcd60e51b8152602060048201526024808201527f4f776e61626c653a2063616c6c6572206973206e6f742070656e64696e67206f6044820152633bb732b960e11b6064820152608401610261565b6001546040516001600160a01b039091169033907f646fe5eeb20d96ea45a9caafcb508854a2fb5660885ced7772e12a633c97457190600090a360018054600080546001600160a01b03199081166001600160a01b03841617909155169055565b6000546001600160a01b031633146104655760405162461bcd60e51b815260040161026190610a66565b6000600254116104b05760405162461bcd60e51b815260206004820152601660248201527513dddb98589b194e881b9bdd081a5b9a5d1a585d195960521b6044820152606401610261565b610e10600254426104c19190610a9b565b116105035760405162461bcd60e51b81526020600482015260126024820152714f776e61626c653a20746f6f206561726c7960701b6044820152606401610261565b600080546001600160a01b03199081168255600180549091169055600255565b6000546001600160a01b0316331461054d5760405162461bcd60e51b815260040161026190610a66565b6000600254116105985760405162461bcd60e51b815260206004820152601660248201527513dddb98589b194e881b9bdd081a5b9a5d1a585d195960521b6044820152606401610261565b6000600255565b6000546001600160a01b031633146105c95760405162461bcd60e51b815260040161026190610a66565b6001600160a01b03811661062e5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610261565b600080546040516001600160a01b03808516939216917fb150023a879fd806e3599b6ca8ee3b60f0e360ab3846d128d67ebce1a391639a91a3600180546001600160a01b0319166001600160a01b0392909216919091179055565b6040516001600160a01b0383166024820152604481018290526106ec90849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b03199093169290921790915261072f565b505050565b6040516001600160a01b03808516602483015283166044820152606481018290526107299085906323b872dd60e01b906084016106b5565b50505050565b6000610784826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166108019092919063ffffffff16565b8051909150156106ec57808060200190518101906107a291906109dc565b6106ec5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610261565b6060610810848460008561081a565b90505b9392505050565b60608247101561087b5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610261565b843b6108c95760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610261565b600080866001600160a01b031685876040516108e59190610a17565b60006040518083038185875af1925050503d8060008114610922576040519150601f19603f3d011682016040523d82523d6000602084013e610927565b606091505b5091509150610937828286610942565b979650505050505050565b60608315610951575081610813565b8251156109615782518084602001fd5b8160405162461bcd60e51b81526004016102619190610a33565b80356001600160a01b038116811461099257600080fd5b919050565b6000602082840312156109a957600080fd5b6108138261097b565b600080604083850312156109c557600080fd5b6109ce8361097b565b946020939093013593505050565b6000602082840312156109ee57600080fd5b8151801515811461081357600080fd5b600060208284031215610a1057600080fd5b5035919050565b60008251610a29818460208701610ac0565b9190910192915050565b6020815260008251806020840152610a52816040850160208701610ac0565b601f01601f19169190910160400192915050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600082821015610abb57634e487b7160e01b600052601160045260246000fd5b500390565b60005b83811015610adb578181015183820152602001610ac3565b83811115610729575050600091015256fea264697066735822122083433ca799ad5e5a714dd43e3a27da16903064cafad36c9dd9e667967063eaa964736f6c63430008060033

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

00000000000000000000000008a75dbc7167714ceac1a8e43a8d643a4edd625a000000000000000000000000403d512ab96103562dcafe4635545e8ee2753f6e000000000000000000000000fd66fb512dbc2dfa49377cfe1168eafc4ea6aa5d

-----Decoded View---------------
Arg [0] : _oldToken (address): 0x08A75dbC7167714CeaC1a8e43a8d643A4EDd625a
Arg [1] : _newToken (address): 0x403d512AB96103562DCaFe4635545E8Ee2753f6e
Arg [2] : _treasury (address): 0xfd66Fb512dBC2dFA49377CfE1168eaFc4ea6Aa5D

-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 00000000000000000000000008a75dbc7167714ceac1a8e43a8d643a4edd625a
Arg [1] : 000000000000000000000000403d512ab96103562dcafe4635545e8ee2753f6e
Arg [2] : 000000000000000000000000fd66fb512dbc2dfa49377cfe1168eafc4ea6aa5d


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.