ETH Price: $3,188.96 (-3.49%)

Contract

0xF1dC545E3375328F3336584f65F58e68412b2595
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Approve193688482024-03-05 12:04:59320 days ago1709640299IN
0xF1dC545E...8412b2595
0 ETH0.0014667260.33175572
Approve190978772024-01-27 12:20:47358 days ago1706358047IN
0xF1dC545E...8412b2595
0 ETH0.0003142112.92497021
Approve190978772024-01-27 12:20:47358 days ago1706358047IN
0xF1dC545E...8412b2595
0 ETH0.0003133712.89037021
Approve184217812023-10-24 18:03:47453 days ago1698170627IN
0xF1dC545E...8412b2595
0 ETH0.0014266230.82396043
Approve184212712023-10-24 16:20:59453 days ago1698164459IN
0xF1dC545E...8412b2595
0 ETH0.0017075336.8933858
Transfer184212662023-10-24 16:19:59453 days ago1698164399IN
0xF1dC545E...8412b2595
0 ETH0.0020858438.79638636
Approve183872162023-10-19 21:59:11458 days ago1697752751IN
0xF1dC545E...8412b2595
0 ETH0.000418739.058935
Transfer183872042023-10-19 21:56:47458 days ago1697752607IN
0xF1dC545E...8412b2595
0 ETH0.0004939110.0873173
Approve183752442023-10-18 5:45:59459 days ago1697607959IN
0xF1dC545E...8412b2595
0 ETH0.000287236.16455456
Approve183484062023-10-14 11:44:47463 days ago1697283887IN
0xF1dC545E...8412b2595
0 ETH0.000236635.12068446
Approve182349812023-09-28 14:59:35479 days ago1695913175IN
0xF1dC545E...8412b2595
0 ETH0.0013128828.17655625
Approve182211502023-09-26 16:29:59481 days ago1695745799IN
0xF1dC545E...8412b2595
0 ETH0.0013219228.3705899
Approve182122402023-09-25 10:35:11482 days ago1695638111IN
0xF1dC545E...8412b2595
0 ETH0.000351487.55316674
Approve182093552023-09-25 0:53:11482 days ago1695603191IN
0xF1dC545E...8412b2595
0 ETH0.000169386.98479322
Approve181963552023-09-23 5:12:23484 days ago1695445943IN
0xF1dC545E...8412b2595
0 ETH0.000364447.83163648
Approve181493982023-09-16 14:49:47491 days ago1694875787IN
0xF1dC545E...8412b2595
0 ETH0.000386478.3051436
Approve181349412023-09-14 13:55:59493 days ago1694699759IN
0xF1dC545E...8412b2595
0 ETH0.0013220428.56431185
Approve180903712023-09-08 8:00:35499 days ago1694160035IN
0xF1dC545E...8412b2595
0 ETH0.0003211713.2112392
Approve180903632023-09-08 7:58:59499 days ago1694159939IN
0xF1dC545E...8412b2595
0 ETH0.0002801711.52461603
Approve180903622023-09-08 7:58:47499 days ago1694159927IN
0xF1dC545E...8412b2595
0 ETH0.0002913611.98509029
Approve180414072023-09-01 11:28:59506 days ago1693567739IN
0xF1dC545E...8412b2595
0 ETH0.0005902612.66800185
Approve180052482023-08-27 9:56:11511 days ago1693130171IN
0xF1dC545E...8412b2595
0 ETH0.0003093710.62742188
Approve180020882023-08-26 23:20:47512 days ago1693092047IN
0xF1dC545E...8412b2595
0 ETH0.0005389811.58240596
Approve179858042023-08-24 16:38:47514 days ago1692895127IN
0xF1dC545E...8412b2595
0 ETH0.0011623624.97825058
Approve179226002023-08-15 20:23:35523 days ago1692131015IN
0xF1dC545E...8412b2595
0 ETH0.0019138441.07410471
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:
Restakes

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2023-06-06
*/

// SPDX-License-Identifier: MIT

// Welcome to Restakes.

// https://restakes.io
// https://docs.restakes.io

// File: @openzeppelin/contracts/security/ReentrancyGuard.sol

// OpenZeppelin Contracts (last updated v4.9.0) (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        _nonReentrantBefore();
        _;
        _nonReentrantAfter();
    }

    function _nonReentrantBefore() private {
        // On the first call to nonReentrant, _status will be _NOT_ENTERED
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;
    }

    function _nonReentrantAfter() private {
        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a
     * `nonReentrant` function in the call stack.
     */
    function _reentrancyGuardEntered() internal view returns (bool) {
        return _status == _ENTERED;
    }
}

// File: @openzeppelin/contracts/utils/Context.sol


// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^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 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) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}

// File: @openzeppelin/contracts/access/Ownable.sol


// OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol)

pragma solidity ^0.8.0;


/**
 * @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() {
        _transferOwnership(_msgSender());
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

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

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby disabling any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _transferOwnership(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");
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

// File: @openzeppelin/contracts/token/ERC20/IERC20.sol


// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @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);

    /**
     * @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 `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, 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 `from` to `to` 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 from, address to, uint256 amount) external returns (bool);
}

// File: @openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol


// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)

pragma solidity ^0.8.0;


/**
 * @dev Interface for the optional metadata functions from the ERC20 standard.
 *
 * _Available since v4.1._
 */
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: @openzeppelin/contracts/token/ERC20/ERC20.sol


// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/ERC20.sol)

pragma solidity ^0.8.0;




/**
 * @dev Implementation of the {IERC20} interface.
 *
 * This implementation is agnostic to the way tokens are created. This means
 * that a supply mechanism has to be added in a derived contract using {_mint}.
 * For a generic mechanism see {ERC20PresetMinterPauser}.
 *
 * TIP: For a detailed writeup see our guide
 * https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * The default value of {decimals} is 18. To change this, you should override
 * this function so it returns a different value.
 *
 * We have followed general OpenZeppelin Contracts guidelines: functions revert
 * instead returning `false` on failure. This behavior is nonetheless
 * conventional and does not conflict with the expectations of ERC20
 * applications.
 *
 * Additionally, an {Approval} event is emitted on calls to {transferFrom}.
 * This allows applications to reconstruct the allowance for all accounts just
 * by listening to said events. Other implementations of the EIP may not emit
 * these events, as it isn't required by the specification.
 *
 * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
 * functions have been added to mitigate the well-known issues around setting
 * allowances. See {IERC20-approve}.
 */
contract ERC20 is Context, IERC20, IERC20Metadata {
    mapping(address => uint256) private _balances;

    mapping(address => mapping(address => uint256)) private _allowances;

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

    /**
     * @dev Sets the values for {name} and {symbol}.
     *
     * All two of these values are immutable: they can only be set once during
     * construction.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

    /**
     * @dev Returns the name of the token.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev Returns the number of decimals used to get its user representation.
     * For example, if `decimals` equals `2`, a balance of `505` tokens should
     * be displayed to a user as `5.05` (`505 / 10 ** 2`).
     *
     * Tokens usually opt for a value of 18, imitating the relationship between
     * Ether and Wei. This is the default value returned by this function, unless
     * it's overridden.
     *
     * NOTE: This information is only used for _display_ purposes: it in
     * no way affects any of the arithmetic of the contract, including
     * {IERC20-balanceOf} and {IERC20-transfer}.
     */
    function decimals() public view virtual override returns (uint8) {
        return 18;
    }

    /**
     * @dev See {IERC20-totalSupply}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        return _totalSupply;
    }

    /**
     * @dev See {IERC20-balanceOf}.
     */
    function balanceOf(address account) public view virtual override returns (uint256) {
        return _balances[account];
    }

    /**
     * @dev See {IERC20-transfer}.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - the caller must have a balance of at least `amount`.
     */
    function transfer(address to, uint256 amount) public virtual override returns (bool) {
        address owner = _msgSender();
        _transfer(owner, to, amount);
        return true;
    }

    /**
     * @dev See {IERC20-allowance}.
     */
    function allowance(address owner, address spender) public view virtual override returns (uint256) {
        return _allowances[owner][spender];
    }

    /**
     * @dev See {IERC20-approve}.
     *
     * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on
     * `transferFrom`. This is semantically equivalent to an infinite approval.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        address owner = _msgSender();
        _approve(owner, spender, amount);
        return true;
    }

    /**
     * @dev See {IERC20-transferFrom}.
     *
     * Emits an {Approval} event indicating the updated allowance. This is not
     * required by the EIP. See the note at the beginning of {ERC20}.
     *
     * NOTE: Does not update the allowance if the current allowance
     * is the maximum `uint256`.
     *
     * Requirements:
     *
     * - `from` and `to` cannot be the zero address.
     * - `from` must have a balance of at least `amount`.
     * - the caller must have allowance for ``from``'s tokens of at least
     * `amount`.
     */
    function transferFrom(address from, address to, uint256 amount) public virtual override returns (bool) {
        address spender = _msgSender();
        _spendAllowance(from, spender, amount);
        _transfer(from, to, amount);
        return true;
    }

    /**
     * @dev Atomically increases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
        address owner = _msgSender();
        _approve(owner, spender, allowance(owner, spender) + addedValue);
        return true;
    }

    /**
     * @dev Atomically decreases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `spender` must have allowance for the caller of at least
     * `subtractedValue`.
     */
    function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
        address owner = _msgSender();
        uint256 currentAllowance = allowance(owner, spender);
        require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
        unchecked {
            _approve(owner, spender, currentAllowance - subtractedValue);
        }

        return true;
    }

    /**
     * @dev Moves `amount` of tokens from `from` to `to`.
     *
     * This internal function is equivalent to {transfer}, and can be used to
     * e.g. implement automatic token fees, slashing mechanisms, etc.
     *
     * Emits a {Transfer} event.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `from` must have a balance of at least `amount`.
     */
    function _transfer(address from, address to, uint256 amount) internal virtual {
        require(from != address(0), "ERC20: transfer from the zero address");
        require(to != address(0), "ERC20: transfer to the zero address");

        _beforeTokenTransfer(from, to, amount);

        uint256 fromBalance = _balances[from];
        require(fromBalance >= amount, "ERC20: transfer amount exceeds balance");
        unchecked {
            _balances[from] = fromBalance - amount;
            // Overflow not possible: the sum of all balances is capped by totalSupply, and the sum is preserved by
            // decrementing then incrementing.
            _balances[to] += amount;
        }

        emit Transfer(from, to, amount);

        _afterTokenTransfer(from, to, amount);
    }

    /** @dev Creates `amount` tokens and assigns them to `account`, increasing
     * the total supply.
     *
     * Emits a {Transfer} event with `from` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function _mint(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: mint to the zero address");

        _beforeTokenTransfer(address(0), account, amount);

        _totalSupply += amount;
        unchecked {
            // Overflow not possible: balance + amount is at most totalSupply + amount, which is checked above.
            _balances[account] += amount;
        }
        emit Transfer(address(0), account, amount);

        _afterTokenTransfer(address(0), account, amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`, reducing the
     * total supply.
     *
     * Emits a {Transfer} event with `to` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     * - `account` must have at least `amount` tokens.
     */
    function _burn(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: burn from the zero address");

        _beforeTokenTransfer(account, address(0), amount);

        uint256 accountBalance = _balances[account];
        require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
        unchecked {
            _balances[account] = accountBalance - amount;
            // Overflow not possible: amount <= accountBalance <= totalSupply.
            _totalSupply -= amount;
        }

        emit Transfer(account, address(0), amount);

        _afterTokenTransfer(account, address(0), amount);
    }

    /**
     * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.
     *
     * This internal function is equivalent to `approve`, and can be used to
     * e.g. set automatic allowances for certain subsystems, etc.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `owner` cannot be the zero address.
     * - `spender` cannot be the zero address.
     */
    function _approve(address owner, address spender, uint256 amount) internal virtual {
        require(owner != address(0), "ERC20: approve from the zero address");
        require(spender != address(0), "ERC20: approve to the zero address");

        _allowances[owner][spender] = amount;
        emit Approval(owner, spender, amount);
    }

    /**
     * @dev Updates `owner` s allowance for `spender` based on spent `amount`.
     *
     * Does not update the allowance amount in case of infinite allowance.
     * Revert if not enough allowance is available.
     *
     * Might emit an {Approval} event.
     */
    function _spendAllowance(address owner, address spender, uint256 amount) internal virtual {
        uint256 currentAllowance = allowance(owner, spender);
        if (currentAllowance != type(uint256).max) {
            require(currentAllowance >= amount, "ERC20: insufficient allowance");
            unchecked {
                _approve(owner, spender, currentAllowance - amount);
            }
        }
    }

    /**
     * @dev Hook that is called before any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * will be transferred to `to`.
     * - when `from` is zero, `amount` tokens will be minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens will be burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual {}

    /**
     * @dev Hook that is called after any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * has been transferred to `to`.
     * - when `from` is zero, `amount` tokens have been minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens have been burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(address from, address to, uint256 amount) internal virtual {}
}

// File: unstake-migrate.sol


pragma solidity ^0.8.17;

contract Restakes is ERC20, Ownable, ReentrancyGuard {
    IERC20 public migrationToken;
    bool public isSwapEnabled = true;
    mapping(address => bool) public transferWhitelist;
    bool public transferEnabled = false;

    constructor(address _migrationToken) ERC20("Restakes", "RSX") {
        migrationToken = IERC20(_migrationToken);
        _mint(address(this), 1000000 * 10 ** decimals());
    }

    event TokenMigration(address indexed user, uint256 amount);
    event MigrationPeriodEnded(bool status);

    function decimals() public view virtual override returns (uint8) {
        return 9;
    }

    function addToTransferWhitelist(address _address) external onlyOwner {
        transferWhitelist[_address] = true;
    }

    function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual override {
        super._beforeTokenTransfer(from, to, amount);

        if(from != address(0) && to != address(0)) {
            require(transferEnabled || transferWhitelist[from], "Transfers are disabled during migration period.");
        }
    }

    function migrateTokens(uint256 _amount) external { 
        require(isSwapEnabled, "Migration has ended.");
        require(migrationToken.balanceOf(msg.sender) >= _amount, "Insufficient migration tokens.");

        migrationToken.transferFrom(msg.sender, address(this), _amount);
        _transfer(address(this), msg.sender, _amount);

        emit TokenMigration(msg.sender, _amount);
    }

    function prepareEndMigrationPeriod() external onlyOwner {
        uint256 migrationTokenBalance = migrationToken.balanceOf(address(this));
        require(migrationTokenBalance > 0, "No migration tokens to transfer.");
        migrationToken.transfer(msg.sender, migrationTokenBalance);

        uint256 ownTokenBalance = balanceOf(address(this));
        if (ownTokenBalance > 0) {
            _transfer(address(this), msg.sender, ownTokenBalance);
        }
    }

    function endMigrationPeriod() external onlyOwner {
        isSwapEnabled = false;
        transferEnabled = true;
        emit MigrationPeriodEnded(true);
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_migrationToken","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"status","type":"bool"}],"name":"MigrationPeriodEnded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"TokenMigration","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"addToTransferWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"endMigrationPeriod","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"isSwapEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"migrateTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"migrationToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"prepareEndMigrationPeriod","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"transferEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"transferWhitelist","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"}]

60806040526007805460ff60a01b1916600160a01b1790556009805460ff191690553480156200002e57600080fd5b50604051620015e3380380620015e3833981016040819052620000519162000321565b6040518060400160405280600881526020016752657374616b657360c01b815250604051806040016040528060038152602001620a4a6b60eb1b81525081600390816200009f9190620003f7565b506004620000ae8282620003f7565b505050620000cb620000c56200012260201b60201c565b62000126565b6001600655600780546001600160a01b0319166001600160a01b0383161790556200011b30620000f9600990565b6200010690600a620005d8565b6200011590620f4240620005e9565b62000178565b5062000619565b3390565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b038216620001d45760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064015b60405180910390fd5b620001e2600083836200024d565b8060026000828254620001f6919062000603565b90915550506001600160a01b038216600081815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b620002658383836200031c60201b620009001760201c565b6001600160a01b038316158015906200028657506001600160a01b03821615155b156200031c5760095460ff1680620002b657506001600160a01b03831660009081526008602052604090205460ff165b6200031c5760405162461bcd60e51b815260206004820152602f60248201527f5472616e7366657273206172652064697361626c656420647572696e67206d6960448201526e33b930ba34b7b7103832b934b7b21760891b6064820152608401620001cb565b505050565b6000602082840312156200033457600080fd5b81516001600160a01b03811681146200034c57600080fd5b9392505050565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200037e57607f821691505b6020821081036200039f57634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200031c57600081815260208120601f850160051c81016020861015620003ce5750805b601f850160051c820191505b81811015620003ef57828155600101620003da565b505050505050565b81516001600160401b0381111562000413576200041362000353565b6200042b8162000424845462000369565b84620003a5565b602080601f8311600181146200046357600084156200044a5750858301515b600019600386901b1c1916600185901b178555620003ef565b600085815260208120601f198616915b82811015620004945788860151825594840194600190910190840162000473565b5085821015620004b35787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052601160045260246000fd5b600181815b808511156200051a578160001904821115620004fe57620004fe620004c3565b808516156200050c57918102915b93841c9390800290620004de565b509250929050565b6000826200053357506001620005d2565b816200054257506000620005d2565b81600181146200055b5760028114620005665762000586565b6001915050620005d2565b60ff8411156200057a576200057a620004c3565b50506001821b620005d2565b5060208310610133831016604e8410600b8410161715620005ab575081810a620005d2565b620005b78383620004d9565b8060001904821115620005ce57620005ce620004c3565b0290505b92915050565b60006200034c60ff84168362000522565b8082028115828204841417620005d257620005d2620004c3565b80820180821115620005d257620005d2620004c3565b610fba80620006296000396000f3fe608060405234801561001057600080fd5b50600436106101425760003560e01c80638da5cb5b116100b8578063bf0494e51161007c578063bf0494e5146102ac578063cc74f4c0146102b4578063d0456b4e146102c7578063dd62ed3e146102da578063dd838808146102ed578063f2fde38b146102f557600080fd5b80638da5cb5b146102465780638e13c72a1461026b57806395d89b411461027e578063a457c2d714610286578063a9059cbb1461029957600080fd5b8063351a964d1161010a578063351a964d146101bc57806339509351146101d05780634cd412d5146101e357806370a08231146101f0578063715018a6146102195780637ffbe2411461022357600080fd5b806306fdde0314610147578063095ea7b31461016557806318160ddd1461018857806323b872dd1461019a578063313ce567146101ad575b600080fd5b61014f610308565b60405161015c9190610db0565b60405180910390f35b610178610173366004610e1a565b61039a565b604051901515815260200161015c565b6002545b60405190815260200161015c565b6101786101a8366004610e44565b6103b4565b6040516009815260200161015c565b60075461017890600160a01b900460ff1681565b6101786101de366004610e1a565b6103d8565b6009546101789060ff1681565b61018c6101fe366004610e80565b6001600160a01b031660009081526020819052604090205490565b6102216103fa565b005b610178610231366004610e80565b60086020526000908152604090205460ff1681565b6005546001600160a01b03165b6040516001600160a01b03909116815260200161015c565b600754610253906001600160a01b031681565b61014f61040e565b610178610294366004610e1a565b61041d565b6101786102a7366004610e1a565b61049d565b6102216104ab565b6102216102c2366004610e80565b61060d565b6102216102d5366004610ea2565b610639565b61018c6102e8366004610ebb565b610802565b61022161082d565b610221610303366004610e80565b610887565b60606003805461031790610eee565b80601f016020809104026020016040519081016040528092919081815260200182805461034390610eee565b80156103905780601f1061036557610100808354040283529160200191610390565b820191906000526020600020905b81548152906001019060200180831161037357829003601f168201915b5050505050905090565b6000336103a8818585610905565b60019150505b92915050565b6000336103c2858285610a29565b6103cd858585610aa3565b506001949350505050565b6000336103a88185856103eb8383610802565b6103f59190610f28565b610905565b610402610c52565b61040c6000610cac565b565b60606004805461031790610eee565b6000338161042b8286610802565b9050838110156104905760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084015b60405180910390fd5b6103cd8286868403610905565b6000336103a8818585610aa3565b6104b3610c52565b6007546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa1580156104fc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105209190610f49565b9050600081116105725760405162461bcd60e51b815260206004820181905260248201527f4e6f206d6967726174696f6e20746f6b656e7320746f207472616e736665722e6044820152606401610487565b60075460405163a9059cbb60e01b8152336004820152602481018390526001600160a01b039091169063a9059cbb906044016020604051808303816000875af11580156105c3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105e79190610f62565b5030600090815260208190526040902054801561060957610609303383610aa3565b5050565b610615610c52565b6001600160a01b03166000908152600860205260409020805460ff19166001179055565b600754600160a01b900460ff166106895760405162461bcd60e51b815260206004820152601460248201527326b4b3b930ba34b7b7103430b99032b73232b21760611b6044820152606401610487565b6007546040516370a0823160e01b815233600482015282916001600160a01b0316906370a0823190602401602060405180830381865afa1580156106d1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106f59190610f49565b10156107435760405162461bcd60e51b815260206004820152601e60248201527f496e73756666696369656e74206d6967726174696f6e20746f6b656e732e00006044820152606401610487565b6007546040516323b872dd60e01b8152336004820152306024820152604481018390526001600160a01b03909116906323b872dd906064016020604051808303816000875af115801561079a573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107be9190610f62565b506107ca303383610aa3565b60405181815233907fb587194ea6c8d30ac3f9973c37a39f8f87dd0d2d1a2d13b724e4bf9bd08b77879060200160405180910390a250565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b610835610c52565b6007805460ff60a01b191690556009805460ff191660019081179091556040519081527fc5d2b4a15ca57eada8159d2965d4966e751b720088fee2a16505684139d947099060200160405180910390a1565b61088f610c52565b6001600160a01b0381166108f45760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610487565b6108fd81610cac565b50565b505050565b6001600160a01b0383166109675760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610487565b6001600160a01b0382166109c85760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610487565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6000610a358484610802565b90506000198114610a9d5781811015610a905760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610487565b610a9d8484848403610905565b50505050565b6001600160a01b038316610b075760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610487565b6001600160a01b038216610b695760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610487565b610b74838383610cfe565b6001600160a01b03831660009081526020819052604090205481811015610bec5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610487565b6001600160a01b03848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3610a9d565b6005546001600160a01b0316331461040c5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610487565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b03831615801590610d1e57506001600160a01b03821615155b156109005760095460ff1680610d4c57506001600160a01b03831660009081526008602052604090205460ff165b6109005760405162461bcd60e51b815260206004820152602f60248201527f5472616e7366657273206172652064697361626c656420647572696e67206d6960448201526e33b930ba34b7b7103832b934b7b21760891b6064820152608401610487565b600060208083528351808285015260005b81811015610ddd57858101830151858201604001528201610dc1565b506000604082860101526040601f19601f8301168501019250505092915050565b80356001600160a01b0381168114610e1557600080fd5b919050565b60008060408385031215610e2d57600080fd5b610e3683610dfe565b946020939093013593505050565b600080600060608486031215610e5957600080fd5b610e6284610dfe565b9250610e7060208501610dfe565b9150604084013590509250925092565b600060208284031215610e9257600080fd5b610e9b82610dfe565b9392505050565b600060208284031215610eb457600080fd5b5035919050565b60008060408385031215610ece57600080fd5b610ed783610dfe565b9150610ee560208401610dfe565b90509250929050565b600181811c90821680610f0257607f821691505b602082108103610f2257634e487b7160e01b600052602260045260246000fd5b50919050565b808201808211156103ae57634e487b7160e01b600052601160045260246000fd5b600060208284031215610f5b57600080fd5b5051919050565b600060208284031215610f7457600080fd5b81518015158114610e9b57600080fdfea26469706673582212206c92ef256d7f9dd1898685799ef0aa0e5974f669167218b18a5d004d7c04458264736f6c63430008110033000000000000000000000000c4c81bd79ebbacc68426ce94f7004dd0ad88426d

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101425760003560e01c80638da5cb5b116100b8578063bf0494e51161007c578063bf0494e5146102ac578063cc74f4c0146102b4578063d0456b4e146102c7578063dd62ed3e146102da578063dd838808146102ed578063f2fde38b146102f557600080fd5b80638da5cb5b146102465780638e13c72a1461026b57806395d89b411461027e578063a457c2d714610286578063a9059cbb1461029957600080fd5b8063351a964d1161010a578063351a964d146101bc57806339509351146101d05780634cd412d5146101e357806370a08231146101f0578063715018a6146102195780637ffbe2411461022357600080fd5b806306fdde0314610147578063095ea7b31461016557806318160ddd1461018857806323b872dd1461019a578063313ce567146101ad575b600080fd5b61014f610308565b60405161015c9190610db0565b60405180910390f35b610178610173366004610e1a565b61039a565b604051901515815260200161015c565b6002545b60405190815260200161015c565b6101786101a8366004610e44565b6103b4565b6040516009815260200161015c565b60075461017890600160a01b900460ff1681565b6101786101de366004610e1a565b6103d8565b6009546101789060ff1681565b61018c6101fe366004610e80565b6001600160a01b031660009081526020819052604090205490565b6102216103fa565b005b610178610231366004610e80565b60086020526000908152604090205460ff1681565b6005546001600160a01b03165b6040516001600160a01b03909116815260200161015c565b600754610253906001600160a01b031681565b61014f61040e565b610178610294366004610e1a565b61041d565b6101786102a7366004610e1a565b61049d565b6102216104ab565b6102216102c2366004610e80565b61060d565b6102216102d5366004610ea2565b610639565b61018c6102e8366004610ebb565b610802565b61022161082d565b610221610303366004610e80565b610887565b60606003805461031790610eee565b80601f016020809104026020016040519081016040528092919081815260200182805461034390610eee565b80156103905780601f1061036557610100808354040283529160200191610390565b820191906000526020600020905b81548152906001019060200180831161037357829003601f168201915b5050505050905090565b6000336103a8818585610905565b60019150505b92915050565b6000336103c2858285610a29565b6103cd858585610aa3565b506001949350505050565b6000336103a88185856103eb8383610802565b6103f59190610f28565b610905565b610402610c52565b61040c6000610cac565b565b60606004805461031790610eee565b6000338161042b8286610802565b9050838110156104905760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084015b60405180910390fd5b6103cd8286868403610905565b6000336103a8818585610aa3565b6104b3610c52565b6007546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa1580156104fc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105209190610f49565b9050600081116105725760405162461bcd60e51b815260206004820181905260248201527f4e6f206d6967726174696f6e20746f6b656e7320746f207472616e736665722e6044820152606401610487565b60075460405163a9059cbb60e01b8152336004820152602481018390526001600160a01b039091169063a9059cbb906044016020604051808303816000875af11580156105c3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105e79190610f62565b5030600090815260208190526040902054801561060957610609303383610aa3565b5050565b610615610c52565b6001600160a01b03166000908152600860205260409020805460ff19166001179055565b600754600160a01b900460ff166106895760405162461bcd60e51b815260206004820152601460248201527326b4b3b930ba34b7b7103430b99032b73232b21760611b6044820152606401610487565b6007546040516370a0823160e01b815233600482015282916001600160a01b0316906370a0823190602401602060405180830381865afa1580156106d1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106f59190610f49565b10156107435760405162461bcd60e51b815260206004820152601e60248201527f496e73756666696369656e74206d6967726174696f6e20746f6b656e732e00006044820152606401610487565b6007546040516323b872dd60e01b8152336004820152306024820152604481018390526001600160a01b03909116906323b872dd906064016020604051808303816000875af115801561079a573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107be9190610f62565b506107ca303383610aa3565b60405181815233907fb587194ea6c8d30ac3f9973c37a39f8f87dd0d2d1a2d13b724e4bf9bd08b77879060200160405180910390a250565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b610835610c52565b6007805460ff60a01b191690556009805460ff191660019081179091556040519081527fc5d2b4a15ca57eada8159d2965d4966e751b720088fee2a16505684139d947099060200160405180910390a1565b61088f610c52565b6001600160a01b0381166108f45760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610487565b6108fd81610cac565b50565b505050565b6001600160a01b0383166109675760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610487565b6001600160a01b0382166109c85760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610487565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6000610a358484610802565b90506000198114610a9d5781811015610a905760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610487565b610a9d8484848403610905565b50505050565b6001600160a01b038316610b075760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610487565b6001600160a01b038216610b695760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610487565b610b74838383610cfe565b6001600160a01b03831660009081526020819052604090205481811015610bec5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610487565b6001600160a01b03848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3610a9d565b6005546001600160a01b0316331461040c5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610487565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b03831615801590610d1e57506001600160a01b03821615155b156109005760095460ff1680610d4c57506001600160a01b03831660009081526008602052604090205460ff165b6109005760405162461bcd60e51b815260206004820152602f60248201527f5472616e7366657273206172652064697361626c656420647572696e67206d6960448201526e33b930ba34b7b7103832b934b7b21760891b6064820152608401610487565b600060208083528351808285015260005b81811015610ddd57858101830151858201604001528201610dc1565b506000604082860101526040601f19601f8301168501019250505092915050565b80356001600160a01b0381168114610e1557600080fd5b919050565b60008060408385031215610e2d57600080fd5b610e3683610dfe565b946020939093013593505050565b600080600060608486031215610e5957600080fd5b610e6284610dfe565b9250610e7060208501610dfe565b9150604084013590509250925092565b600060208284031215610e9257600080fd5b610e9b82610dfe565b9392505050565b600060208284031215610eb457600080fd5b5035919050565b60008060408385031215610ece57600080fd5b610ed783610dfe565b9150610ee560208401610dfe565b90509250929050565b600181811c90821680610f0257607f821691505b602082108103610f2257634e487b7160e01b600052602260045260246000fd5b50919050565b808201808211156103ae57634e487b7160e01b600052601160045260246000fd5b600060208284031215610f5b57600080fd5b5051919050565b600060208284031215610f7457600080fd5b81518015158114610e9b57600080fdfea26469706673582212206c92ef256d7f9dd1898685799ef0aa0e5974f669167218b18a5d004d7c04458264736f6c63430008110033

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

000000000000000000000000c4c81bd79ebbacc68426ce94f7004dd0ad88426d

-----Decoded View---------------
Arg [0] : _migrationToken (address): 0xc4C81bd79EBBacC68426Ce94f7004Dd0Ad88426d

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


Deployed Bytecode Sourcemap

23724:2176:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;12669:100;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;15029:201;;;;;;:::i;:::-;;:::i;:::-;;;1169:14:1;;1162:22;1144:41;;1132:2;1117:18;15029:201:0;1004:187:1;13798:108:0;13886:12;;13798:108;;;1342:25:1;;;1330:2;1315:18;13798:108:0;1196:177:1;15810:261:0;;;;;;:::i;:::-;;:::i;24259:92::-;;;24342:1;1853:36:1;;1841:2;1826:18;24259:92:0;1711:184:1;23819:32:0;;;;;-1:-1:-1;;;23819:32:0;;;;;;16480:238;;;;;;:::i;:::-;;:::i;23914:35::-;;;;;;;;;13969:127;;;;;;:::i;:::-;-1:-1:-1;;;;;14070:18:0;14043:7;14070:18;;;;;;;;;;;;13969:127;6124:103;;;:::i;:::-;;23858:49;;;;;;:::i;:::-;;;;;;;;;;;;;;;;5483:87;5556:6;;-1:-1:-1;;;;;5556:6:0;5483:87;;;-1:-1:-1;;;;;2255:32:1;;;2237:51;;2225:2;2210:18;5483:87:0;2091:203:1;23784:28:0;;;;;-1:-1:-1;;;;;23784:28:0;;;12888:104;;;:::i;17221:436::-;;;;;;:::i;:::-;;:::i;14302:193::-;;;;;;:::i;:::-;;:::i;25251:474::-;;;:::i;24359:122::-;;;;;;:::i;:::-;;:::i;24842:401::-;;;;;;:::i;:::-;;:::i;14558:151::-;;;;;;:::i;:::-;;:::i;25733:164::-;;;:::i;6382:201::-;;;;;;:::i;:::-;;:::i;12669:100::-;12723:13;12756:5;12749:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;12669:100;:::o;15029:201::-;15112:4;4114:10;15168:32;4114:10;15184:7;15193:6;15168:8;:32::i;:::-;15218:4;15211:11;;;15029:201;;;;;:::o;15810:261::-;15907:4;4114:10;15965:38;15981:4;4114:10;15996:6;15965:15;:38::i;:::-;16014:27;16024:4;16030:2;16034:6;16014:9;:27::i;:::-;-1:-1:-1;16059:4:0;;15810:261;-1:-1:-1;;;;15810:261:0:o;16480:238::-;16568:4;4114:10;16624:64;4114:10;16640:7;16677:10;16649:25;4114:10;16640:7;16649:9;:25::i;:::-;:38;;;;:::i;:::-;16624:8;:64::i;6124:103::-;5369:13;:11;:13::i;:::-;6189:30:::1;6216:1;6189:18;:30::i;:::-;6124:103::o:0;12888:104::-;12944:13;12977:7;12970:14;;;;;:::i;17221:436::-;17314:4;4114:10;17314:4;17397:25;4114:10;17414:7;17397:9;:25::i;:::-;17370:52;;17461:15;17441:16;:35;;17433:85;;;;-1:-1:-1;;;17433:85:0;;3785:2:1;17433:85:0;;;3767:21:1;3824:2;3804:18;;;3797:30;3863:34;3843:18;;;3836:62;-1:-1:-1;;;3914:18:1;;;3907:35;3959:19;;17433:85:0;;;;;;;;;17554:60;17563:5;17570:7;17598:15;17579:16;:34;17554:8;:60::i;14302:193::-;14381:4;4114:10;14437:28;4114:10;14454:2;14458:6;14437:9;:28::i;25251:474::-;5369:13;:11;:13::i;:::-;25350:14:::1;::::0;:39:::1;::::0;-1:-1:-1;;;25350:39:0;;25383:4:::1;25350:39;::::0;::::1;2237:51:1::0;25318:29:0::1;::::0;-1:-1:-1;;;;;25350:14:0::1;::::0;:24:::1;::::0;2210:18:1;;25350:39:0::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;25318:71;;25432:1;25408:21;:25;25400:70;;;::::0;-1:-1:-1;;;25400:70:0;;4380:2:1;25400:70:0::1;::::0;::::1;4362:21:1::0;;;4399:18;;;4392:30;4458:34;4438:18;;;4431:62;4510:18;;25400:70:0::1;4178:356:1::0;25400:70:0::1;25481:14;::::0;:58:::1;::::0;-1:-1:-1;;;25481:58:0;;25505:10:::1;25481:58;::::0;::::1;4713:51:1::0;4780:18;;;4773:34;;;-1:-1:-1;;;;;25481:14:0;;::::1;::::0;:23:::1;::::0;4686:18:1;;25481:58:0::1;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1::0;25596:4:0::1;25552:23;14070:18:::0;;;;;;;;;;;25617:19;;25613:105:::1;;25653:53;25671:4;25678:10;25690:15;25653:9;:53::i;:::-;25307:418;;25251:474::o:0;24359:122::-;5369:13;:11;:13::i;:::-;-1:-1:-1;;;;;24439:27:0::1;;::::0;;;:17:::1;:27;::::0;;;;:34;;-1:-1:-1;;24439:34:0::1;24469:4;24439:34;::::0;;24359:122::o;24842:401::-;24911:13;;-1:-1:-1;;;24911:13:0;;;;24903:46;;;;-1:-1:-1;;;24903:46:0;;5302:2:1;24903:46:0;;;5284:21:1;5341:2;5321:18;;;5314:30;-1:-1:-1;;;5360:18:1;;;5353:50;5420:18;;24903:46:0;5100:344:1;24903:46:0;24968:14;;:36;;-1:-1:-1;;;24968:36:0;;24993:10;24968:36;;;2237:51:1;25008:7:0;;-1:-1:-1;;;;;24968:14:0;;:24;;2210:18:1;;24968:36:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:47;;24960:90;;;;-1:-1:-1;;;24960:90:0;;5651:2:1;24960:90:0;;;5633:21:1;5690:2;5670:18;;;5663:30;5729:32;5709:18;;;5702:60;5779:18;;24960:90:0;5449:354:1;24960:90:0;25063:14;;:63;;-1:-1:-1;;;25063:63:0;;25091:10;25063:63;;;6048:34:1;25111:4:0;6098:18:1;;;6091:43;6150:18;;;6143:34;;;-1:-1:-1;;;;;25063:14:0;;;;:27;;5983:18:1;;25063:63:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;25137:45;25155:4;25162:10;25174:7;25137:9;:45::i;:::-;25200:35;;1342:25:1;;;25215:10:0;;25200:35;;1330:2:1;1315:18;25200:35:0;;;;;;;24842:401;:::o;14558:151::-;-1:-1:-1;;;;;14674:18:0;;;14647:7;14674:18;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;14558:151::o;25733:164::-;5369:13;:11;:13::i;:::-;25793::::1;:21:::0;;-1:-1:-1;;;;25793:21:0::1;::::0;;25825:15:::1;:22:::0;;-1:-1:-1;;25825:22:0::1;-1:-1:-1::0;25825:22:0;;::::1;::::0;;;25863:26:::1;::::0;1144:41:1;;;25863:26:0::1;::::0;1132:2:1;1117:18;25863:26:0::1;;;;;;;25733:164::o:0;6382:201::-;5369:13;:11;:13::i;:::-;-1:-1:-1;;;;;6471:22:0;::::1;6463:73;;;::::0;-1:-1:-1;;;6463:73:0;;6390:2:1;6463:73:0::1;::::0;::::1;6372:21:1::0;6429:2;6409:18;;;6402:30;6468:34;6448:18;;;6441:62;-1:-1:-1;;;6519:18:1;;;6512:36;6565:19;;6463:73:0::1;6188:402:1::0;6463:73:0::1;6547:28;6566:8;6547:18;:28::i;:::-;6382:201:::0;:::o;22870:91::-;;;;:::o;21214:346::-;-1:-1:-1;;;;;21316:19:0;;21308:68;;;;-1:-1:-1;;;21308:68:0;;6797:2:1;21308:68:0;;;6779:21:1;6836:2;6816:18;;;6809:30;6875:34;6855:18;;;6848:62;-1:-1:-1;;;6926:18:1;;;6919:34;6970:19;;21308:68:0;6595:400:1;21308:68:0;-1:-1:-1;;;;;21395:21:0;;21387:68;;;;-1:-1:-1;;;21387:68:0;;7202:2:1;21387:68:0;;;7184:21:1;7241:2;7221:18;;;7214:30;7280:34;7260:18;;;7253:62;-1:-1:-1;;;7331:18:1;;;7324:32;7373:19;;21387:68:0;7000:398:1;21387:68:0;-1:-1:-1;;;;;21468:18:0;;;;;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;:36;;;21520:32;;1342:25:1;;;21520:32:0;;1315:18:1;21520:32:0;;;;;;;21214:346;;;:::o;21851:419::-;21952:24;21979:25;21989:5;21996:7;21979:9;:25::i;:::-;21952:52;;-1:-1:-1;;22019:16:0;:37;22015:248;;22101:6;22081:16;:26;;22073:68;;;;-1:-1:-1;;;22073:68:0;;7605:2:1;22073:68:0;;;7587:21:1;7644:2;7624:18;;;7617:30;7683:31;7663:18;;;7656:59;7732:18;;22073:68:0;7403:353:1;22073:68:0;22185:51;22194:5;22201:7;22229:6;22210:16;:25;22185:8;:51::i;:::-;21941:329;21851:419;;;:::o;18127:806::-;-1:-1:-1;;;;;18224:18:0;;18216:68;;;;-1:-1:-1;;;18216:68:0;;7963:2:1;18216:68:0;;;7945:21:1;8002:2;7982:18;;;7975:30;8041:34;8021:18;;;8014:62;-1:-1:-1;;;8092:18:1;;;8085:35;8137:19;;18216:68:0;7761:401:1;18216:68:0;-1:-1:-1;;;;;18303:16:0;;18295:64;;;;-1:-1:-1;;;18295:64:0;;8369:2:1;18295:64:0;;;8351:21:1;8408:2;8388:18;;;8381:30;8447:34;8427:18;;;8420:62;-1:-1:-1;;;8498:18:1;;;8491:33;8541:19;;18295:64:0;8167:399:1;18295:64:0;18372:38;18393:4;18399:2;18403:6;18372:20;:38::i;:::-;-1:-1:-1;;;;;18445:15:0;;18423:19;18445:15;;;;;;;;;;;18479:21;;;;18471:72;;;;-1:-1:-1;;;18471:72:0;;8773:2:1;18471:72:0;;;8755:21:1;8812:2;8792:18;;;8785:30;8851:34;8831:18;;;8824:62;-1:-1:-1;;;8902:18:1;;;8895:36;8948:19;;18471:72:0;8571:402:1;18471:72:0;-1:-1:-1;;;;;18579:15:0;;;:9;:15;;;;;;;;;;;18597:20;;;18579:38;;18797:13;;;;;;;;;;:23;;;;;;18849:26;;1342:25:1;;;18797:13:0;;18849:26;;1315:18:1;18849:26:0;;;;;;;18888:37;22870:91;5648:132;5556:6;;-1:-1:-1;;;;;5556:6:0;4114:10;5712:23;5704:68;;;;-1:-1:-1;;;5704:68:0;;9180:2:1;5704:68:0;;;9162:21:1;;;9199:18;;;9192:30;9258:34;9238:18;;;9231:62;9310:18;;5704:68:0;8978:356:1;6743:191:0;6836:6;;;-1:-1:-1;;;;;6853:17:0;;;-1:-1:-1;;;;;;6853:17:0;;;;;;;6886:40;;6836:6;;;6853:17;6836:6;;6886:40;;6817:16;;6886:40;6806:128;6743:191;:::o;24489:345::-;-1:-1:-1;;;;;24658:18:0;;;;;;:38;;-1:-1:-1;;;;;;24680:16:0;;;;24658:38;24655:172;;;24721:15;;;;;:42;;-1:-1:-1;;;;;;24740:23:0;;;;;;:17;:23;;;;;;;;24721:42;24713:102;;;;-1:-1:-1;;;24713:102:0;;9541:2:1;24713:102:0;;;9523:21:1;9580:2;9560:18;;;9553:30;9619:34;9599:18;;;9592:62;-1:-1:-1;;;9670:18:1;;;9663:45;9725:19;;24713:102:0;9339:411:1;14:548;126:4;155:2;184;173:9;166:21;216:6;210:13;259:6;254:2;243:9;239:18;232:34;284:1;294:140;308:6;305:1;302:13;294:140;;;403:14;;;399:23;;393:30;369:17;;;388:2;365:26;358:66;323:10;;294:140;;;298:3;483:1;478:2;469:6;458:9;454:22;450:31;443:42;553:2;546;542:7;537:2;529:6;525:15;521:29;510:9;506:45;502:54;494:62;;;;14:548;;;;:::o;567:173::-;635:20;;-1:-1:-1;;;;;684:31:1;;674:42;;664:70;;730:1;727;720:12;664:70;567:173;;;:::o;745:254::-;813:6;821;874:2;862:9;853:7;849:23;845:32;842:52;;;890:1;887;880:12;842:52;913:29;932:9;913:29;:::i;:::-;903:39;989:2;974:18;;;;961:32;;-1:-1:-1;;;745:254:1:o;1378:328::-;1455:6;1463;1471;1524:2;1512:9;1503:7;1499:23;1495:32;1492:52;;;1540:1;1537;1530:12;1492:52;1563:29;1582:9;1563:29;:::i;:::-;1553:39;;1611:38;1645:2;1634:9;1630:18;1611:38;:::i;:::-;1601:48;;1696:2;1685:9;1681:18;1668:32;1658:42;;1378:328;;;;;:::o;1900:186::-;1959:6;2012:2;2000:9;1991:7;1987:23;1983:32;1980:52;;;2028:1;2025;2018:12;1980:52;2051:29;2070:9;2051:29;:::i;:::-;2041:39;1900:186;-1:-1:-1;;;1900:186:1:o;2521:180::-;2580:6;2633:2;2621:9;2612:7;2608:23;2604:32;2601:52;;;2649:1;2646;2639:12;2601:52;-1:-1:-1;2672:23:1;;2521:180;-1:-1:-1;2521:180:1:o;2706:260::-;2774:6;2782;2835:2;2823:9;2814:7;2810:23;2806:32;2803:52;;;2851:1;2848;2841:12;2803:52;2874:29;2893:9;2874:29;:::i;:::-;2864:39;;2922:38;2956:2;2945:9;2941:18;2922:38;:::i;:::-;2912:48;;2706:260;;;;;:::o;2971:380::-;3050:1;3046:12;;;;3093;;;3114:61;;3168:4;3160:6;3156:17;3146:27;;3114:61;3221:2;3213:6;3210:14;3190:18;3187:38;3184:161;;3267:10;3262:3;3258:20;3255:1;3248:31;3302:4;3299:1;3292:15;3330:4;3327:1;3320:15;3184:161;;2971:380;;;:::o;3356:222::-;3421:9;;;3442:10;;;3439:133;;;3494:10;3489:3;3485:20;3482:1;3475:31;3529:4;3526:1;3519:15;3557:4;3554:1;3547:15;3989:184;4059:6;4112:2;4100:9;4091:7;4087:23;4083:32;4080:52;;;4128:1;4125;4118:12;4080:52;-1:-1:-1;4151:16:1;;3989:184;-1:-1:-1;3989:184:1:o;4818:277::-;4885:6;4938:2;4926:9;4917:7;4913:23;4909:32;4906:52;;;4954:1;4951;4944:12;4906:52;4986:9;4980:16;5039:5;5032:13;5025:21;5018:5;5015:32;5005:60;;5061:1;5058;5051:12

Swarm Source

ipfs://6c92ef256d7f9dd1898685799ef0aa0e5974f669167218b18a5d004d7c044582

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.