ETH Price: $3,111.24 (+1.42%)
Gas: 21 Gwei

Contract

0xDFCcB0225CE7618F9ecE7297635C4bB703d566CF
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Value
Migrate194300932024-03-14 1:48:35118 days ago1710380915IN
0xDFCcB022...703d566CF
0 ETH0.0033606245.69047612
Migrate189191352024-01-02 10:34:23190 days ago1704191663IN
0xDFCcB022...703d566CF
0 ETH0.0012524417.09290153
Migrate187647232023-12-11 18:23:35211 days ago1702319015IN
0xDFCcB022...703d566CF
0 ETH0.0036230149.27393907
Migrate187370142023-12-07 21:14:11215 days ago1701983651IN
0xDFCcB022...703d566CF
0 ETH0.0055242875.41793188
Migrate186388362023-11-24 3:17:23229 days ago1700795843IN
0xDFCcB022...703d566CF
0 ETH0.0018911525.71605466
Migrate181006962023-09-09 18:43:59304 days ago1694285039IN
0xDFCcB022...703d566CF
0 ETH0.0007730210.54992572
Migrate179577962023-08-20 18:38:59324 days ago1692556739IN
0xDFCcB022...703d566CF
0 ETH0.0020514627.89132693
Migrate174249152023-06-07 0:20:35399 days ago1686097235IN
0xDFCcB022...703d566CF
0 ETH0.0012287421.78000939
Migrate171939612023-05-05 10:53:47432 days ago1683284027IN
0xDFCcB022...703d566CF
0 ETH0.0055098475.18376486
Migrate170596902023-04-16 13:18:23451 days ago1681651103IN
0xDFCcB022...703d566CF
0 ETH0.0017786824.27475181
Migrate169737822023-04-04 6:30:23463 days ago1680589823IN
0xDFCcB022...703d566CF
0 ETH0.0014493919.70887122
Migrate169534562023-04-01 9:37:35466 days ago1680341855IN
0xDFCcB022...703d566CF
0 ETH0.0013320818.18571255
Migrate167984082023-03-10 14:46:11488 days ago1678459571IN
0xDFCcB022...703d566CF
0 ETH0.0034370346.89957414
Migrate167157782023-02-26 23:49:47499 days ago1677455387IN
0xDFCcB022...703d566CF
0 ETH0.0023075931.49309463
Migrate165151892023-01-29 21:33:47527 days ago1675028027IN
0xDFCcB022...703d566CF
0 ETH0.0017261823.55827189
Migrate164231212023-01-17 1:06:11540 days ago1673917571IN
0xDFCcB022...703d566CF
0 ETH0.0017344623.67121799
Migrate163780572023-01-10 17:59:35546 days ago1673373575IN
0xDFCcB022...703d566CF
0 ETH0.0021522829.37352237
Migrate161306332022-12-07 4:56:35581 days ago1670388995IN
0xDFCcB022...703d566CF
0 ETH0.0009002812.286675
Migrate160409772022-11-24 16:17:11593 days ago1669306631IN
0xDFCcB022...703d566CF
0 ETH0.0009794213.36679292
Migrate160408902022-11-24 15:59:47593 days ago1669305587IN
0xDFCcB022...703d566CF
0 ETH0.0008076511.02253511
Migrate158327212022-10-26 14:03:23623 days ago1666793003IN
0xDFCcB022...703d566CF
0 ETH0.0020590833.77713304
Migrate157413332022-10-13 19:39:35635 days ago1665689975IN
0xDFCcB022...703d566CF
0 ETH0.0018297324.96742439
Migrate155297522022-09-13 23:33:45665 days ago1663112025IN
0xDFCcB022...703d566CF
0 ETH0.000228667.96823023
Migrate155103282022-09-10 18:37:20668 days ago1662835040IN
0xDFCcB022...703d566CF
0 ETH0.00052057.10369561
Migrate153101912022-08-09 20:44:59700 days ago1660077899IN
0xDFCcB022...703d566CF
0 ETH0.001321223.51520221
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:
Migrator

Compiler Version
v0.8.6+commit.11564f7e

Optimization Enabled:
Yes with 999999 runs

Other Settings:
default evmVersion, MIT license
File 1 of 11 : Migrator.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "./interfaces/IERC20Extended.sol";
import "./lib/SafeERC20.sol";

/**
 * @title Migrator
 * @dev Migrate from old token to new token
 */
contract Migrator {
    using SafeERC20 for IERC20Extended;

    /// @notice From token
    IERC20Extended public immutable fromToken;

    /// @notice To token
    IERC20Extended public immutable toToken;

    /// @notice Event emitted on each migration
    event Migrate(uint256 amount, address fromToken, address toToken, address migrator);

    /**
     * @notice Construct new Migrator
     * @param _fromToken From token
     * @param _toToken To token
     */
    constructor(address _fromToken, address _toToken) {
        fromToken = IERC20Extended(_fromToken);
        toToken = IERC20Extended(_toToken);
    }

    /**
     * @notice Migrate to new token
     * @param amount Amount to migrate
     */
    function migrate(uint256 amount) external {
        _migrate(msg.sender, amount);
    }

    /**
     * @notice Migrate to new token, sending new tokens to specified receiver address
     * @param receiver Address that will receive new tokens
     * @param amount Amount to migrate
     */
    function migrateTo(address receiver, uint256 amount) external {
        _migrate(receiver, amount);
    }

    /**
     * @notice Migrate to new token using permit for approvals
     * @param amount Amount to migrate
     * @param deadline The time at which to expire the signature
     * @param v The recovery byte of the signature
     * @param r Half of the ECDSA signature pair
     * @param s Half of the ECDSA signature pair
     */
    function migrateWithPermit(
        uint256 amount,
        uint256 deadline, 
        uint8 v, 
        bytes32 r, 
        bytes32 s
    ) external {
        fromToken.permit(msg.sender, address(this), amount, deadline, v, r, s);
        _migrate(msg.sender, amount);
    }

    /**
     * @notice Migrate to new token, sending new tokens to specified receiver using permit for approvals
     * @param receiver Address that will receive new tokens
     * @param amount Amount to migrate
     * @param deadline The time at which to expire the signature
     * @param v The recovery byte of the signature
     * @param r Half of the ECDSA signature pair
     * @param s Half of the ECDSA signature pair
     */
    function migrateToWithPermit(
        address receiver,
        uint256 amount,
        uint256 deadline, 
        uint8 v, 
        bytes32 r, 
        bytes32 s
    ) external {
        fromToken.permit(msg.sender, address(this), amount, deadline, v, r, s);
        _migrate(receiver, amount);
    }
    
    /**
     * @notice Internal implementation of migrate
     * @param receiver Address that will receive new tokens
     * @param amount Amount to migrate
     */
    function _migrate(address receiver, uint256 amount) internal {
        fromToken.safeTransferFrom(msg.sender, address(this), amount);
        toToken.mint(receiver, amount);
        emit Migrate(amount, address(fromToken), address(toToken), receiver);
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

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

File 3 of 11 : IERC20Burnable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IERC20.sol";

interface IERC20Burnable is IERC20 {
    function burn(uint256 amount) external returns (bool);
}

File 4 of 11 : IERC20Extended.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "./IERC20Metadata.sol";
import "./IERC20Mintable.sol";
import "./IERC20Burnable.sol";
import "./IERC20Permit.sol";
import "./IERC20TransferWithAuth.sol";
import "./IERC20SafeAllowance.sol";

interface IERC20Extended is 
    IERC20Metadata, 
    IERC20Mintable, 
    IERC20Burnable, 
    IERC20Permit,
    IERC20TransferWithAuth,
    IERC20SafeAllowance 
{}

File 5 of 11 : IERC20Metadata.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "./IERC20.sol";

interface IERC20Metadata is IERC20 {
    /**
     * @dev Returns the name of the token.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the symbol of the token.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the decimals places of the token.
     */
    function decimals() external view returns (uint8);
}

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

pragma solidity ^0.8.0;

import "./IERC20.sol";

interface IERC20Mintable is IERC20 {
    function mint(address dst, uint256 amount) external returns (bool);
}

File 7 of 11 : IERC20Permit.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "./IERC20.sol";

interface IERC20Permit is IERC20 {
    function getDomainSeparator() external view returns (bytes32);
    function DOMAIN_TYPEHASH() external view returns (bytes32);
    function VERSION_HASH() external view returns (bytes32);
    function PERMIT_TYPEHASH() external view returns (bytes32);
    function nonces(address) external view returns (uint);
    function permit(address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) external;
}

File 8 of 11 : IERC20SafeAllowance.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "./IERC20.sol";

interface IERC20SafeAllowance is IERC20 {
    function increaseAllowance(address spender, uint256 addedValue) external returns (bool);
    function decreaseAllowance(address spender, uint256 subtractedValue) external returns (bool);
}

File 9 of 11 : IERC20TransferWithAuth.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "./IERC20.sol";

interface IERC20TransferWithAuth is IERC20 {
    function transferWithAuthorization(address from, address to, uint256 value, uint256 validAfter, uint256 validBefore, bytes32 nonce, uint8 v, bytes32 r, bytes32 s) external;
    function receiveWithAuthorization(address from, address to, uint256 value, uint256 validAfter, uint256 validBefore, bytes32 nonce, uint8 v, bytes32 r, bytes32 s) external;
    function TRANSFER_WITH_AUTHORIZATION_TYPEHASH() external view returns (bytes32);
    function RECEIVE_WITH_AUTHORIZATION_TYPEHASH() external view returns (bytes32);
    event AuthorizationUsed(address indexed authorizer, bytes32 indexed nonce);
}

File 10 of 11 : Address.sol
// SPDX-License-Identifier: MIT
pragma solidity ^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;
        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");

        (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");

        (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");

        (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");

        (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

                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

File 11 of 11 : SafeERC20.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "../interfaces/IERC20.sol";
import "./Address.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 Address 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'
        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) + value;
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    function safeDecreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        unchecked {
            uint256 oldAllowance = token.allowance(address(this), spender);
            require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
            uint256 newAllowance = oldAllowance - value;
            _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
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

Settings
{
  "evmVersion": "berlin",
  "libraries": {},
  "metadata": {
    "bytecodeHash": "ipfs",
    "useLiteralContent": true
  },
  "optimizer": {
    "enabled": true,
    "runs": 999999
  },
  "remappings": [],
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_fromToken","type":"address"},{"internalType":"address","name":"_toToken","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"address","name":"fromToken","type":"address"},{"indexed":false,"internalType":"address","name":"toToken","type":"address"},{"indexed":false,"internalType":"address","name":"migrator","type":"address"}],"name":"Migrate","type":"event"},{"inputs":[],"name":"fromToken","outputs":[{"internalType":"contract IERC20Extended","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"migrate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"migrateTo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"migrateToWithPermit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"migrateWithPermit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"toToken","outputs":[{"internalType":"contract IERC20Extended","name":"","type":"address"}],"stateMutability":"view","type":"function"}]

60c060405234801561001057600080fd5b50604051610b55380380610b5583398101604081905261002f91610069565b6001600160601b0319606092831b8116608052911b1660a05261009c565b80516001600160a01b038116811461006457600080fd5b919050565b6000806040838503121561007c57600080fd5b6100858361004d565b91506100936020840161004d565b90509250929050565b60805160601c60a05160601c610a666100ef6000396000818160f40152818161039c015261046001526000818160a4015281816101a30152818161028b0152818161032801526104220152610a666000f3fe608060405234801561001057600080fd5b50600436106100725760003560e01c80633c930575116100505780633c930575146100ef578063454b060814610116578063ae44214a1461012957600080fd5b80630d213d3114610077578063298e9c941461008c57806332a468571461009f575b600080fd5b61008a610085366004610893565b61013c565b005b61008a61009a366004610950565b61014a565b6100c67f000000000000000000000000000000000000000000000000000000000000000081565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390f35b6100c67f000000000000000000000000000000000000000000000000000000000000000081565b61008a610124366004610937565b610225565b61008a6101373660046108bd565b610232565b610146828261030e565b5050565b6040517fd505accf000000000000000000000000000000000000000000000000000000008152336004820152306024820152604481018690526064810185905260ff8416608482015260a4810183905260c481018290527f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff169063d505accf9060e401600060405180830381600087803b1580156101fc57600080fd5b505af1158015610210573d6000803e3d6000fd5b5050505061021e338661030e565b5050505050565b61022f338261030e565b50565b6040517fd505accf000000000000000000000000000000000000000000000000000000008152336004820152306024820152604481018690526064810185905260ff8416608482015260a4810183905260c481018290527f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff169063d505accf9060e401600060405180830381600087803b1580156102e457600080fd5b505af11580156102f8573d6000803e3d6000fd5b50505050610306868661030e565b505050505050565b61035073ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000163330846104bc565b6040517f40c10f1900000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8381166004830152602482018390527f000000000000000000000000000000000000000000000000000000000000000016906340c10f1990604401602060405180830381600087803b1580156103e057600080fd5b505af11580156103f4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104189190610915565b50604080518281527f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff90811660208301527f00000000000000000000000000000000000000000000000000000000000000008116828401528416606082015290517f2c3cfd1450ae8233a55d7b56e333778edde78457abd6ff9c1b8e7c1d97ceb4a89181900360800190a15050565b6040805173ffffffffffffffffffffffffffffffffffffffff85811660248301528416604482015260648082018490528251808303909101815260849091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f23b872dd00000000000000000000000000000000000000000000000000000000179052610551908590610557565b50505050565b60006105b9826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff1661066d9092919063ffffffff16565b80519091501561066857808060200190518101906105d79190610915565b610668576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f7420737563636565640000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b505050565b606061067c8484600085610686565b90505b9392505050565b606082471015610718576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c0000000000000000000000000000000000000000000000000000606482015260840161065f565b843b610780576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161065f565b6000808673ffffffffffffffffffffffffffffffffffffffff1685876040516107a99190610997565b60006040518083038185875af1925050503d80600081146107e6576040519150601f19603f3d011682016040523d82523d6000602084013e6107eb565b606091505b50915091506107fb828286610806565b979650505050505050565b6060831561081557508161067f565b8251156108255782518084602001fd5b816040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161065f91906109b3565b803573ffffffffffffffffffffffffffffffffffffffff8116811461087d57600080fd5b919050565b803560ff8116811461087d57600080fd5b600080604083850312156108a657600080fd5b6108af83610859565b946020939093013593505050565b60008060008060008060c087890312156108d657600080fd5b6108df87610859565b955060208701359450604087013593506108fb60608801610882565b92506080870135915060a087013590509295509295509295565b60006020828403121561092757600080fd5b8151801515811461067f57600080fd5b60006020828403121561094957600080fd5b5035919050565b600080600080600060a0868803121561096857600080fd5b853594506020860135935061097f60408701610882565b94979396509394606081013594506080013592915050565b600082516109a9818460208701610a04565b9190910192915050565b60208152600082518060208401526109d2816040850160208701610a04565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169190910160400192915050565b60005b83811015610a1f578181015183820152602001610a07565b83811115610551575050600091015256fea2646970667358221220055042a16c128314925b6b6c156e4e0ef5971fe07a4e2661a2f0de79a52407cd64736f6c634300080600330000000000000000000000001f3f9d3068568f8040775be2e8c03c103c61f3af0000000000000000000000001559fa1b8f28238fd5d76d9f434ad86fd20d1559

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100725760003560e01c80633c930575116100505780633c930575146100ef578063454b060814610116578063ae44214a1461012957600080fd5b80630d213d3114610077578063298e9c941461008c57806332a468571461009f575b600080fd5b61008a610085366004610893565b61013c565b005b61008a61009a366004610950565b61014a565b6100c67f0000000000000000000000001f3f9d3068568f8040775be2e8c03c103c61f3af81565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390f35b6100c67f0000000000000000000000001559fa1b8f28238fd5d76d9f434ad86fd20d155981565b61008a610124366004610937565b610225565b61008a6101373660046108bd565b610232565b610146828261030e565b5050565b6040517fd505accf000000000000000000000000000000000000000000000000000000008152336004820152306024820152604481018690526064810185905260ff8416608482015260a4810183905260c481018290527f0000000000000000000000001f3f9d3068568f8040775be2e8c03c103c61f3af73ffffffffffffffffffffffffffffffffffffffff169063d505accf9060e401600060405180830381600087803b1580156101fc57600080fd5b505af1158015610210573d6000803e3d6000fd5b5050505061021e338661030e565b5050505050565b61022f338261030e565b50565b6040517fd505accf000000000000000000000000000000000000000000000000000000008152336004820152306024820152604481018690526064810185905260ff8416608482015260a4810183905260c481018290527f0000000000000000000000001f3f9d3068568f8040775be2e8c03c103c61f3af73ffffffffffffffffffffffffffffffffffffffff169063d505accf9060e401600060405180830381600087803b1580156102e457600080fd5b505af11580156102f8573d6000803e3d6000fd5b50505050610306868661030e565b505050505050565b61035073ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000001f3f9d3068568f8040775be2e8c03c103c61f3af163330846104bc565b6040517f40c10f1900000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8381166004830152602482018390527f0000000000000000000000001559fa1b8f28238fd5d76d9f434ad86fd20d155916906340c10f1990604401602060405180830381600087803b1580156103e057600080fd5b505af11580156103f4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104189190610915565b50604080518281527f0000000000000000000000001f3f9d3068568f8040775be2e8c03c103c61f3af73ffffffffffffffffffffffffffffffffffffffff90811660208301527f0000000000000000000000001559fa1b8f28238fd5d76d9f434ad86fd20d15598116828401528416606082015290517f2c3cfd1450ae8233a55d7b56e333778edde78457abd6ff9c1b8e7c1d97ceb4a89181900360800190a15050565b6040805173ffffffffffffffffffffffffffffffffffffffff85811660248301528416604482015260648082018490528251808303909101815260849091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f23b872dd00000000000000000000000000000000000000000000000000000000179052610551908590610557565b50505050565b60006105b9826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff1661066d9092919063ffffffff16565b80519091501561066857808060200190518101906105d79190610915565b610668576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f7420737563636565640000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b505050565b606061067c8484600085610686565b90505b9392505050565b606082471015610718576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c0000000000000000000000000000000000000000000000000000606482015260840161065f565b843b610780576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161065f565b6000808673ffffffffffffffffffffffffffffffffffffffff1685876040516107a99190610997565b60006040518083038185875af1925050503d80600081146107e6576040519150601f19603f3d011682016040523d82523d6000602084013e6107eb565b606091505b50915091506107fb828286610806565b979650505050505050565b6060831561081557508161067f565b8251156108255782518084602001fd5b816040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161065f91906109b3565b803573ffffffffffffffffffffffffffffffffffffffff8116811461087d57600080fd5b919050565b803560ff8116811461087d57600080fd5b600080604083850312156108a657600080fd5b6108af83610859565b946020939093013593505050565b60008060008060008060c087890312156108d657600080fd5b6108df87610859565b955060208701359450604087013593506108fb60608801610882565b92506080870135915060a087013590509295509295509295565b60006020828403121561092757600080fd5b8151801515811461067f57600080fd5b60006020828403121561094957600080fd5b5035919050565b600080600080600060a0868803121561096857600080fd5b853594506020860135935061097f60408701610882565b94979396509394606081013594506080013592915050565b600082516109a9818460208701610a04565b9190910192915050565b60208152600082518060208401526109d2816040850160208701610a04565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169190910160400192915050565b60005b83811015610a1f578181015183820152602001610a07565b83811115610551575050600091015256fea2646970667358221220055042a16c128314925b6b6c156e4e0ef5971fe07a4e2661a2f0de79a52407cd64736f6c63430008060033

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

0000000000000000000000001f3f9d3068568f8040775be2e8c03c103c61f3af0000000000000000000000001559fa1b8f28238fd5d76d9f434ad86fd20d1559

-----Decoded View---------------
Arg [0] : _fromToken (address): 0x1F3f9D3068568F8040775be2e8C03C103C61f3aF
Arg [1] : _toToken (address): 0x1559FA1b8F28238FD5D76D9f434ad86FD20D1559

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 0000000000000000000000001f3f9d3068568f8040775be2e8c03c103c61f3af
Arg [1] : 0000000000000000000000001559fa1b8f28238fd5d76d9f434ad86fd20d1559


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.