ETH Price: $2,167.57 (+1.89%)

Contract

0x9615460582Efa2a9b1d8D21e7E02afE43A415E13
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Migrate194908812024-03-22 14:52:35347 days ago1711119155IN
0x96154605...43A415E13
0 ETH0.0050060938.05119567
Migrate187839362023-12-14 10:58:11446 days ago1702551491IN
0x96154605...43A415E13
0 ETH0.0046160937.38428969
Migrate187838262023-12-14 10:35:59446 days ago1702550159IN
0x96154605...43A415E13
0 ETH0.0051353941.58989505
Migrate173026112023-05-20 19:07:47654 days ago1684609667IN
0x96154605...43A415E13
0 ETH0.0025042230.98977942
Migrate169892502023-04-06 11:21:23698 days ago1680780083IN
0x96154605...43A415E13
0 ETH0.0032284726.14894209
Migrate169891702023-04-06 11:04:11698 days ago1680779051IN
0x96154605...43A415E13
0 ETH0.0031657525.64092106
Migrate169891452023-04-06 10:58:59698 days ago1680778739IN
0x96154605...43A415E13
0 ETH0.0029855324.1812078
Migrate169890892023-04-06 10:47:23698 days ago1680778043IN
0x96154605...43A415E13
0 ETH0.0034117527.63340795
Release Tokens169545592023-04-01 13:22:11703 days ago1680355331IN
0x96154605...43A415E13
0 ETH0.0008943723.66638179
Migrate169545332023-04-01 13:16:47703 days ago1680355007IN
0x96154605...43A415E13
0 ETH0.0025035620.27952549
Release Tokens169544822023-04-01 13:06:23703 days ago1680354383IN
0x96154605...43A415E13
0 ETH0.0008259921.84408075
Migrate169544442023-04-01 12:58:47703 days ago1680353927IN
0x96154605...43A415E13
0 ETH0.002884121.92204848
Release Tokens168953062023-03-24 5:32:59711 days ago1679635979IN
0x96154605...43A415E13
0 ETH0.0004810512.72927079
Migrate168952892023-03-24 5:29:35711 days ago1679635775IN
0x96154605...43A415E13
0 ETH0.0015951412.92735818
Migrate168952822023-03-24 5:28:11711 days ago1679635691IN
0x96154605...43A415E13
0 ETH0.0014944112.10396172
Migrate168719122023-03-20 22:39:35714 days ago1679351975IN
0x96154605...43A415E13
0 ETH0.0025251920.45076451
Migrate168718562023-03-20 22:28:11714 days ago1679351291IN
0x96154605...43A415E13
0 ETH0.0024671319.98053787
Migrate168661582023-03-20 3:18:11715 days ago1679282291IN
0x96154605...43A415E13
0 ETH0.0022244518.01688291
Migrate168650852023-03-19 23:40:47715 days ago1679269247IN
0x96154605...43A415E13
0 ETH0.0024047219.48073352
Migrate168650742023-03-19 23:38:23715 days ago1679269103IN
0x96154605...43A415E13
0 ETH0.0022807318.4745113
Migrate168650702023-03-19 23:37:35715 days ago1679269055IN
0x96154605...43A415E13
0 ETH0.0025735620.84450161
Migrate168650632023-03-19 23:36:11715 days ago1679268971IN
0x96154605...43A415E13
0 ETH0.0028591723.15549249
Migrate167618462023-03-05 11:17:11730 days ago1678015031IN
0x96154605...43A415E13
0 ETH0.0026716121.63651398
Migrate167618382023-03-05 11:15:35730 days ago1678014935IN
0x96154605...43A415E13
0 ETH0.0011803519.67262261
Migrate167618352023-03-05 11:14:59730 days ago1678014899IN
0x96154605...43A415E13
0 ETH0.001163519.39168716
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
TokenMigrator

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 12 : TokenMigrator.sol
// SPDX-License-Identifier: UNLICENSED

// based on ref code from gnt
pragma solidity 0.8.7;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";

import "@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol";
import "../interfaces/IBlocklist.sol";
import "../interfaces/IAllowlist.sol";

// Allows user to migrate from old token to new token by burning the old token

contract TokenMigrator is Ownable {
    using SafeMath for uint256;
    using SafeERC20 for IERC20;

    struct SwapRecord {
        uint256 amount;
        uint256 unlockTimestamp;
    }

    ERC20Burnable public target;
    IERC20 public oldToken;
    IBlocklist private _blocklist;
    IAllowlist private _allowlist;
    uint256 public startTime;

    address[] public stakers;
    // address public constant burn = 0x000000000000000000000000000000000000dEaD;

    mapping(address => SwapRecord) public lockedSwaps;

    event TargetChanged(ERC20Burnable previousTarget, ERC20Burnable changedTarget);
    event BlocklistChanged(IBlocklist previousTarget, IBlocklist changedTarget);
    event AllowlistChanged(IAllowlist previousTarget, IAllowlist changedTarget);

    event SwapLocked(address from, uint256 value, uint256 unlockTimestamp);
    event Migrated(address from, address to, ERC20Burnable target, uint256 value);

    constructor(
        IERC20 _oldToken,
        ERC20Burnable _target,
        IBlocklist bl,
        IAllowlist al
    ) {
        require(address(_oldToken) != address(0), "FD:0AD");
        oldToken = _oldToken;
        target = _target;
        _blocklist = bl;
        _allowlist = al;
        startTime = block.timestamp;
    }

    function migrate(uint256 _value) external {
        require(address(target) != address(0), "FD:0AD");

        oldToken.transferFrom(msg.sender, 0x000000000000000000000000000000000000dEaD, _value);

        if (_inAllowlist(msg.sender) || _inBlocklist(msg.sender)) {
            _sendTokens(_value, msg.sender);
            return;
        }
        uint256 tenPrctOfDeposit = _value / 10;
        _value -= tenPrctOfDeposit;

        SwapRecord memory existingSwap = lockedSwaps[msg.sender];
        existingSwap.amount += _value;
        existingSwap.unlockTimestamp = block.timestamp + 5 days;
        lockedSwaps[msg.sender] = existingSwap;

        _sendTokens(tenPrctOfDeposit, msg.sender);
        emit SwapLocked(msg.sender, _value, existingSwap.unlockTimestamp);
    }

    function releaseTokens() external {
        require(address(target) != address(0), "FD:0AD");
        _releaseForUser(msg.sender);
    }

    function setTarget(ERC20Burnable _target) external onlyOwner {
        emit TargetChanged(target, _target);
        target = _target;
    }

    function setBlocklist(IBlocklist bl) external onlyOwner {
        emit BlocklistChanged(_blocklist, bl);
        _blocklist = bl;
    }

    function setAllowlist(IAllowlist al) external onlyOwner {
        emit AllowlistChanged(_allowlist, al);
        _allowlist = al;
    }

    function releaseForAll() external onlyOwner {
        uint256 stakersLength = stakers.length;
        for (uint256 i = 0; i < stakersLength; i++) {
            address staker = stakers[i];
            _releaseForUser(staker);
        }
    }

    // Based on community advice. once a preset epoch of 1-2 mos expired,
    // all tokens in the contract
    // should be burnt. this will reduce circulating supply and
    // reassure the community of limited dilution
    function burnAll() external onlyOwner {
        require((startTime + 60 days) < block.timestamp, "TM:Too early");
        target.burn(target.balanceOf(address(this)));
    }

    function _inBlocklist(address to) internal returns (bool) {
        if (address(_blocklist) != address(0) && _blocklist.inBlockList(to)) {
            return true;
        } else {
            return false;
        }
    }

    function _inAllowlist(address to) internal returns (bool) {
        if (address(_blocklist) != address(0) && _allowlist.inAllowlist(to)) {
            return true;
        } else {
            return false;
        }
    }

    function _releaseForUser(address to) internal {
        SwapRecord memory existingSwap = lockedSwaps[to];
        if (_inAllowlist(to)) {
            existingSwap.unlockTimestamp = block.timestamp;
        }
        if (existingSwap.amount > 0 && block.timestamp >= existingSwap.unlockTimestamp) {
            delete lockedSwaps[to];
            _sendTokens(existingSwap.amount, to);
        }
    }

    function _sendTokens(uint256 amount, address to) internal {
        if (_inBlocklist(to)) {
            target.transfer(owner(), amount);
            emit Migrated(to, owner(), target, amount);
        } else {
            target.transfer(to, amount);
            emit Migrated(to, to, target, amount);
        }
    }
}

File 2 of 12 : Ownable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../utils/Context.sol";

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

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _setOwner(_msgSender());
    }

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

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

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

    function _setOwner(address newOwner) private {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 3 of 12 : SafeMath.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.

/**
 * @dev Wrappers over Solidity's arithmetic operations.
 *
 * NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler
 * now has built in overflow checking.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

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

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

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

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

    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        return a + b;
    }

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

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        return a * b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator.
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return a / b;
    }

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

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

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

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

File 4 of 12 : SafeERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC20.sol";
import "../../../utils/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");
        }
    }
}

File 5 of 12 : ERC20Burnable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../ERC20.sol";
import "../../../utils/Context.sol";

/**
 * @dev Extension of {ERC20} that allows token holders to destroy both their own
 * tokens and those that they have an allowance for, in a way that can be
 * recognized off-chain (via event analysis).
 */
abstract contract ERC20Burnable is Context, ERC20 {
    /**
     * @dev Destroys `amount` tokens from the caller.
     *
     * See {ERC20-_burn}.
     */
    function burn(uint256 amount) public virtual {
        _burn(_msgSender(), amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`, deducting from the caller's
     * allowance.
     *
     * See {ERC20-_burn} and {ERC20-allowance}.
     *
     * Requirements:
     *
     * - the caller must have allowance for ``accounts``'s tokens of at least
     * `amount`.
     */
    function burnFrom(address account, uint256 amount) public virtual {
        uint256 currentAllowance = allowance(account, _msgSender());
        require(currentAllowance >= amount, "ERC20: burn amount exceeds allowance");
        unchecked {
            _approve(account, _msgSender(), currentAllowance - amount);
        }
        _burn(account, amount);
    }
}

File 6 of 12 : IBlocklist.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.0;

interface IBlocklist {
    function inBlockList(address _user) external returns (bool _isInBlocklist);
}

File 7 of 12 : IAllowlist.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.0;

interface IAllowlist {
    function inAllowlist(address _user) external returns (bool _isInAllowlist);
}

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

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 9 of 12 : 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 10 of 12 : 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);
    }

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal 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 12 : ERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IERC20.sol";
import "./extensions/IERC20Metadata.sol";
import "../../utils/Context.sol";

/**
 * @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.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * 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}.
     *
     * The default value of {decimals} is 18. To select a different value for
     * {decimals} you should overload it.
     *
     * 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 value {ERC20} uses, unless this function is
     * 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:
     *
     * - `recipient` cannot be the zero address.
     * - the caller must have a balance of at least `amount`.
     */
    function transfer(address recipient, uint256 amount) public virtual override returns (bool) {
        _transfer(_msgSender(), recipient, 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}.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        _approve(_msgSender(), 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}.
     *
     * Requirements:
     *
     * - `sender` and `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     * - the caller must have allowance for ``sender``'s tokens of at least
     * `amount`.
     */
    function transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) public virtual override returns (bool) {
        _transfer(sender, recipient, amount);

        uint256 currentAllowance = _allowances[sender][_msgSender()];
        require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance");
        unchecked {
            _approve(sender, _msgSender(), currentAllowance - 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) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][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) {
        uint256 currentAllowance = _allowances[_msgSender()][spender];
        require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
        unchecked {
            _approve(_msgSender(), spender, currentAllowance - subtractedValue);
        }

        return true;
    }

    /**
     * @dev Moves `amount` of tokens from `sender` to `recipient`.
     *
     * 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:
     *
     * - `sender` cannot be the zero address.
     * - `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     */
    function _transfer(
        address sender,
        address recipient,
        uint256 amount
    ) internal virtual {
        require(sender != address(0), "ERC20: transfer from the zero address");
        require(recipient != address(0), "ERC20: transfer to the zero address");

        _beforeTokenTransfer(sender, recipient, amount);

        uint256 senderBalance = _balances[sender];
        require(senderBalance >= amount, "ERC20: transfer amount exceeds balance");
        unchecked {
            _balances[sender] = senderBalance - amount;
        }
        _balances[recipient] += amount;

        emit Transfer(sender, recipient, amount);

        _afterTokenTransfer(sender, recipient, 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;
        _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;
        }
        _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 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 12 of 12 : IERC20Metadata.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC20.sol";

/**
 * @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);
}

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

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"contract IERC20","name":"_oldToken","type":"address"},{"internalType":"contract ERC20Burnable","name":"_target","type":"address"},{"internalType":"contract IBlocklist","name":"bl","type":"address"},{"internalType":"contract IAllowlist","name":"al","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"contract IAllowlist","name":"previousTarget","type":"address"},{"indexed":false,"internalType":"contract IAllowlist","name":"changedTarget","type":"address"}],"name":"AllowlistChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"contract IBlocklist","name":"previousTarget","type":"address"},{"indexed":false,"internalType":"contract IBlocklist","name":"changedTarget","type":"address"}],"name":"BlocklistChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"contract ERC20Burnable","name":"target","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Migrated","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":false,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"unlockTimestamp","type":"uint256"}],"name":"SwapLocked","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"contract ERC20Burnable","name":"previousTarget","type":"address"},{"indexed":false,"internalType":"contract ERC20Burnable","name":"changedTarget","type":"address"}],"name":"TargetChanged","type":"event"},{"inputs":[],"name":"burnAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"lockedSwaps","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"unlockTimestamp","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_value","type":"uint256"}],"name":"migrate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"oldToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"releaseForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"releaseTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IAllowlist","name":"al","type":"address"}],"name":"setAllowlist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IBlocklist","name":"bl","type":"address"}],"name":"setBlocklist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract ERC20Burnable","name":"_target","type":"address"}],"name":"setTarget","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"stakers","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"startTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"target","outputs":[{"internalType":"contract ERC20Burnable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405234801561001057600080fd5b5060405162000fe538038062000fe583398101604081905261003191610124565b61003a336100d4565b6001600160a01b03841661007d5760405162461bcd60e51b815260206004820152600660248201526511910e8c105160d21b604482015260640160405180910390fd5b600280546001600160a01b039586166001600160a01b03199182161790915560018054948616948216949094179093556003805492851692841692909217909155600480549190931691161790554260055561019b565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000806000806080858703121561013a57600080fd5b845161014581610183565b602086015190945061015681610183565b604086015190935061016781610183565b606086015190925061017881610183565b939692955090935050565b6001600160a01b038116811461019857600080fd5b50565b610e3a80620001ab6000396000f3fe608060405234801561001057600080fd5b50600436106100f55760003560e01c80639975038c11610097578063d4b8399211610066578063d4b83992146101bc578063de57b287146101cf578063f2fde38b1461020b578063fd5e6dd11461021e57600080fd5b80639975038c14610186578063a96f86681461018e578063aef18ae714610196578063b31c710a146101a957600080fd5b8063776d1a01116100d3578063776d1a011461012a57806378e979251461013d5780638da5cb5b14610159578063936d1f651461017e57600080fd5b8063454b0608146100fa57806358bf3c7f1461010f578063715018a614610122575b600080fd5b61010d610108366004610cf0565b610231565b005b61010d61011d366004610caa565b610411565b61010d6104a4565b61010d610138366004610caa565b6104da565b61014660055481565b6040519081526020015b60405180910390f35b6000546001600160a01b03165b6040516001600160a01b039091168152602001610150565b61010d61056d565b61010d6105f1565b61010d61073e565b61010d6101a4366004610caa565b610788565b600254610166906001600160a01b031681565b600154610166906001600160a01b031681565b6101f66101dd366004610caa565b6007602052600090815260409020805460019091015482565b60408051928352602083019190915201610150565b61010d610219366004610caa565b61081b565b61016661022c366004610cf0565b6108b3565b6001546001600160a01b03166102775760405162461bcd60e51b815260206004820152600660248201526511910e8c105160d21b60448201526064015b60405180910390fd5b6002546040516323b872dd60e01b815233600482015261dead6024820152604481018390526001600160a01b03909116906323b872dd90606401602060405180830381600087803b1580156102cb57600080fd5b505af11580156102df573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103039190610cce565b5061030d336108dd565b8061031c575061031c3361098c565b1561032e5761032b81336109d6565b50565b600061033b600a83610d6f565b90506103478183610d91565b3360009081526007602090815260409182902082518084019093528054808452600190910154918301919091529193509083908290610387908390610d57565b9052506103974262069780610d57565b6020808301918252336000818152600790925260409091208351815591516001909201919091556103c99083906109d6565b602080820151604080513381529283018690528201527f46ac8d00147e18e4e4f9ccc1d9573f16811024436ba2ad88bf4471e36c01fd2c9060600160405180910390a1505050565b6000546001600160a01b0316331461043b5760405162461bcd60e51b815260040161026e90610d22565b600454604080516001600160a01b03928316815291831660208301527f92d0c9f661c56dfa53982bd52b4a3d82387ae596426816e0ab67346a9972c14b910160405180910390a1600480546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b031633146104ce5760405162461bcd60e51b815260040161026e90610d22565b6104d86000610bd1565b565b6000546001600160a01b031633146105045760405162461bcd60e51b815260040161026e90610d22565b600154604080516001600160a01b03928316815291831660208301527f4d11d6210a5e807da812a693b5d341a870571b5fc31158172207a3d99c911ccd910160405180910390a1600180546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b031633146105975760405162461bcd60e51b815260040161026e90610d22565b60065460005b818110156105ed576000600682815481106105ba576105ba610dd9565b6000918252602090912001546001600160a01b031690506105da81610c21565b50806105e581610da8565b91505061059d565b5050565b6000546001600160a01b0316331461061b5760405162461bcd60e51b815260040161026e90610d22565b42600554624f1a0061062d9190610d57565b106106695760405162461bcd60e51b815260206004820152600c60248201526b544d3a546f6f206561726c7960a01b604482015260640161026e565b6001546040516370a0823160e01b81523060048201526001600160a01b03909116906342966c689082906370a082319060240160206040518083038186803b1580156106b457600080fd5b505afa1580156106c8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106ec9190610d09565b6040518263ffffffff1660e01b815260040161070a91815260200190565b600060405180830381600087803b15801561072457600080fd5b505af1158015610738573d6000803e3d6000fd5b50505050565b6001546001600160a01b031661077f5760405162461bcd60e51b815260206004820152600660248201526511910e8c105160d21b604482015260640161026e565b6104d833610c21565b6000546001600160a01b031633146107b25760405162461bcd60e51b815260040161026e90610d22565b600354604080516001600160a01b03928316815291831660208301527fcb7cd73951f34ba8e51586b87fe4b6691dfa0872ede9945e4ea7658f40b4cef7910160405180910390a1600380546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b031633146108455760405162461bcd60e51b815260040161026e90610d22565b6001600160a01b0381166108aa5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161026e565b61032b81610bd1565b600681815481106108c357600080fd5b6000918252602090912001546001600160a01b0316905081565b6003546000906001600160a01b03161580159061097757506004805460405163723798b160e11b81526001600160a01b038581169382019390935291169063e46f3162906024015b602060405180830381600087803b15801561093f57600080fd5b505af1158015610953573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109779190610cce565b1561098457506001919050565b506000919050565b6003546000906001600160a01b031615801590610977575060035460405163752ca6ad60e01b81526001600160a01b0384811660048301529091169063752ca6ad90602401610925565b6109df8161098c565b15610af8576001546001600160a01b031663a9059cbb610a076000546001600160a01b031690565b6040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260248101859052604401602060405180830381600087803b158015610a4f57600080fd5b505af1158015610a63573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a879190610cce565b507fc7ea1a149fa86d488de0d46911cc7c13bc51bbab90c2481c4318bc4083a3542281610abc6000546001600160a01b031690565b600154604080516001600160a01b0394851681529284166020840152921691810191909152606081018490526080015b60405180910390a15050565b60015460405163a9059cbb60e01b81526001600160a01b038381166004830152602482018590529091169063a9059cbb90604401602060405180830381600087803b158015610b4657600080fd5b505af1158015610b5a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b7e9190610cce565b50600154604080516001600160a01b03808516808352602083015290921690820152606081018390527fc7ea1a149fa86d488de0d46911cc7c13bc51bbab90c2481c4318bc4083a3542290608001610aec565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b0381166000908152600760209081526040918290208251808401909352805483526001015490820152610c5a826108dd565b15610c66574260208201525b805115801590610c7a575080602001514210155b156105ed576001600160a01b03821660009081526007602052604081208181556001015580516105ed90836109d6565b600060208284031215610cbc57600080fd5b8135610cc781610def565b9392505050565b600060208284031215610ce057600080fd5b81518015158114610cc757600080fd5b600060208284031215610d0257600080fd5b5035919050565b600060208284031215610d1b57600080fd5b5051919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60008219821115610d6a57610d6a610dc3565b500190565b600082610d8c57634e487b7160e01b600052601260045260246000fd5b500490565b600082821015610da357610da3610dc3565b500390565b6000600019821415610dbc57610dbc610dc3565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b6001600160a01b038116811461032b57600080fdfea26469706673582212209165bec1d1e514c59666d7863621d4e2a389775766aa57963f30c63ba7c5b64e64736f6c6343000807003300000000000000000000000084810bcf08744d5862b8181f12d17bfd57d3b07800000000000000000000000024c19f7101c1731b85f1127eaa0407732e36ecdd000000000000000000000000def92dff0a91629f91a49b87fd38aec92ab4dc190000000000000000000000008083ff84a133835dc5f5abc2a88458f4dcda9c38

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100f55760003560e01c80639975038c11610097578063d4b8399211610066578063d4b83992146101bc578063de57b287146101cf578063f2fde38b1461020b578063fd5e6dd11461021e57600080fd5b80639975038c14610186578063a96f86681461018e578063aef18ae714610196578063b31c710a146101a957600080fd5b8063776d1a01116100d3578063776d1a011461012a57806378e979251461013d5780638da5cb5b14610159578063936d1f651461017e57600080fd5b8063454b0608146100fa57806358bf3c7f1461010f578063715018a614610122575b600080fd5b61010d610108366004610cf0565b610231565b005b61010d61011d366004610caa565b610411565b61010d6104a4565b61010d610138366004610caa565b6104da565b61014660055481565b6040519081526020015b60405180910390f35b6000546001600160a01b03165b6040516001600160a01b039091168152602001610150565b61010d61056d565b61010d6105f1565b61010d61073e565b61010d6101a4366004610caa565b610788565b600254610166906001600160a01b031681565b600154610166906001600160a01b031681565b6101f66101dd366004610caa565b6007602052600090815260409020805460019091015482565b60408051928352602083019190915201610150565b61010d610219366004610caa565b61081b565b61016661022c366004610cf0565b6108b3565b6001546001600160a01b03166102775760405162461bcd60e51b815260206004820152600660248201526511910e8c105160d21b60448201526064015b60405180910390fd5b6002546040516323b872dd60e01b815233600482015261dead6024820152604481018390526001600160a01b03909116906323b872dd90606401602060405180830381600087803b1580156102cb57600080fd5b505af11580156102df573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103039190610cce565b5061030d336108dd565b8061031c575061031c3361098c565b1561032e5761032b81336109d6565b50565b600061033b600a83610d6f565b90506103478183610d91565b3360009081526007602090815260409182902082518084019093528054808452600190910154918301919091529193509083908290610387908390610d57565b9052506103974262069780610d57565b6020808301918252336000818152600790925260409091208351815591516001909201919091556103c99083906109d6565b602080820151604080513381529283018690528201527f46ac8d00147e18e4e4f9ccc1d9573f16811024436ba2ad88bf4471e36c01fd2c9060600160405180910390a1505050565b6000546001600160a01b0316331461043b5760405162461bcd60e51b815260040161026e90610d22565b600454604080516001600160a01b03928316815291831660208301527f92d0c9f661c56dfa53982bd52b4a3d82387ae596426816e0ab67346a9972c14b910160405180910390a1600480546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b031633146104ce5760405162461bcd60e51b815260040161026e90610d22565b6104d86000610bd1565b565b6000546001600160a01b031633146105045760405162461bcd60e51b815260040161026e90610d22565b600154604080516001600160a01b03928316815291831660208301527f4d11d6210a5e807da812a693b5d341a870571b5fc31158172207a3d99c911ccd910160405180910390a1600180546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b031633146105975760405162461bcd60e51b815260040161026e90610d22565b60065460005b818110156105ed576000600682815481106105ba576105ba610dd9565b6000918252602090912001546001600160a01b031690506105da81610c21565b50806105e581610da8565b91505061059d565b5050565b6000546001600160a01b0316331461061b5760405162461bcd60e51b815260040161026e90610d22565b42600554624f1a0061062d9190610d57565b106106695760405162461bcd60e51b815260206004820152600c60248201526b544d3a546f6f206561726c7960a01b604482015260640161026e565b6001546040516370a0823160e01b81523060048201526001600160a01b03909116906342966c689082906370a082319060240160206040518083038186803b1580156106b457600080fd5b505afa1580156106c8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106ec9190610d09565b6040518263ffffffff1660e01b815260040161070a91815260200190565b600060405180830381600087803b15801561072457600080fd5b505af1158015610738573d6000803e3d6000fd5b50505050565b6001546001600160a01b031661077f5760405162461bcd60e51b815260206004820152600660248201526511910e8c105160d21b604482015260640161026e565b6104d833610c21565b6000546001600160a01b031633146107b25760405162461bcd60e51b815260040161026e90610d22565b600354604080516001600160a01b03928316815291831660208301527fcb7cd73951f34ba8e51586b87fe4b6691dfa0872ede9945e4ea7658f40b4cef7910160405180910390a1600380546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b031633146108455760405162461bcd60e51b815260040161026e90610d22565b6001600160a01b0381166108aa5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161026e565b61032b81610bd1565b600681815481106108c357600080fd5b6000918252602090912001546001600160a01b0316905081565b6003546000906001600160a01b03161580159061097757506004805460405163723798b160e11b81526001600160a01b038581169382019390935291169063e46f3162906024015b602060405180830381600087803b15801561093f57600080fd5b505af1158015610953573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109779190610cce565b1561098457506001919050565b506000919050565b6003546000906001600160a01b031615801590610977575060035460405163752ca6ad60e01b81526001600160a01b0384811660048301529091169063752ca6ad90602401610925565b6109df8161098c565b15610af8576001546001600160a01b031663a9059cbb610a076000546001600160a01b031690565b6040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260248101859052604401602060405180830381600087803b158015610a4f57600080fd5b505af1158015610a63573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a879190610cce565b507fc7ea1a149fa86d488de0d46911cc7c13bc51bbab90c2481c4318bc4083a3542281610abc6000546001600160a01b031690565b600154604080516001600160a01b0394851681529284166020840152921691810191909152606081018490526080015b60405180910390a15050565b60015460405163a9059cbb60e01b81526001600160a01b038381166004830152602482018590529091169063a9059cbb90604401602060405180830381600087803b158015610b4657600080fd5b505af1158015610b5a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b7e9190610cce565b50600154604080516001600160a01b03808516808352602083015290921690820152606081018390527fc7ea1a149fa86d488de0d46911cc7c13bc51bbab90c2481c4318bc4083a3542290608001610aec565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b0381166000908152600760209081526040918290208251808401909352805483526001015490820152610c5a826108dd565b15610c66574260208201525b805115801590610c7a575080602001514210155b156105ed576001600160a01b03821660009081526007602052604081208181556001015580516105ed90836109d6565b600060208284031215610cbc57600080fd5b8135610cc781610def565b9392505050565b600060208284031215610ce057600080fd5b81518015158114610cc757600080fd5b600060208284031215610d0257600080fd5b5035919050565b600060208284031215610d1b57600080fd5b5051919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60008219821115610d6a57610d6a610dc3565b500190565b600082610d8c57634e487b7160e01b600052601260045260246000fd5b500490565b600082821015610da357610da3610dc3565b500390565b6000600019821415610dbc57610dbc610dc3565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b6001600160a01b038116811461032b57600080fdfea26469706673582212209165bec1d1e514c59666d7863621d4e2a389775766aa57963f30c63ba7c5b64e64736f6c63430008070033

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

00000000000000000000000084810bcf08744d5862b8181f12d17bfd57d3b07800000000000000000000000024c19f7101c1731b85f1127eaa0407732e36ecdd000000000000000000000000def92dff0a91629f91a49b87fd38aec92ab4dc190000000000000000000000008083ff84a133835dc5f5abc2a88458f4dcda9c38

-----Decoded View---------------
Arg [0] : _oldToken (address): 0x84810bcF08744d5862B8181f12d17bfd57d3b078
Arg [1] : _target (address): 0x24C19F7101c1731b85F1127EaA0407732E36EcDD
Arg [2] : bl (address): 0xDef92Dff0A91629f91A49b87fd38aEC92ab4Dc19
Arg [3] : al (address): 0x8083ff84A133835Dc5F5abC2a88458F4Dcda9C38

-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 00000000000000000000000084810bcf08744d5862b8181f12d17bfd57d3b078
Arg [1] : 00000000000000000000000024c19f7101c1731b85f1127eaa0407732e36ecdd
Arg [2] : 000000000000000000000000def92dff0a91629f91a49b87fd38aec92ab4dc19
Arg [3] : 0000000000000000000000008083ff84a133835dc5f5abc2a88458f4dcda9c38


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.