ETH Price: $3,222.96 (+2.95%)

Token

Einstein (EIN)
 

Overview

Max Total Supply

49,016,480,416.040473728569292194 EIN

Holders

11

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 18 Decimals)

Balance
1,000,000,000 EIN

Value
$0.00
0xb9086a3e7ebb0233d5a3e325821a1f0b3fd1828e
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information
# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
Einstein

Compiler Version
v0.8.3+commit.8d00100c

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, GNU GPLv3 license
File 1 of 5 : Einstein.sol
// SPDX-License-Identifier: GPL-3.0

pragma solidity 0.8.3;

import {ERC20} from "@openzeppelin/contracts/token/ERC20/ERC20.sol";

/**
    @notice Great scott! Einstein is the first dog to travel to the future!
    Apparently some MPH sent EIN into the future, and millions of them came
    back! It makes no sense!
    @dev Convert your MPH into EIN and vice versa. But there's a catch: burning
    EIN to MPH is instant, while minting EIN using MPH has a linear unlock schedule.
 */
contract Einstein is ERC20("Einstein", "EIN") {
    uint256 internal constant _PRECISION = 10**18;

    ERC20 public immutable mph;
    uint256 public immutable multiplier; // 1 MPH = `multiplier` EIN
    uint256 public immutable unlockTime; // seconds for minted EIN to be unlocked

    struct UnlockInfo {
        uint256 startTime;
        uint256 endTime;
        uint256 amount;
    }
    mapping(address => UnlockInfo) public accountUnlockInfo;

    constructor(
        address _mph,
        uint256 _multiplier,
        uint256 _unlockTime
    ) {
        require(
            _mph != address(0) && _multiplier > 0 && _unlockTime > 0,
            "Invalid input"
        );
        mph = ERC20(_mph);
        multiplier = _multiplier;
        unlockTime = _unlockTime;
    }

    function woof(uint256 mphAmount) external {
        // transfer MPH from account
        mph.transferFrom(msg.sender, address(this), mphAmount);

        // mint locked EIN to account
        UnlockInfo memory unlockInfo = accountUnlockInfo[msg.sender];
        uint256 einAmount = mphToEIN(mphAmount);
        if (block.timestamp >= unlockInfo.endTime) {
            // fully unlocked
            // mint unlocked amount
            if (unlockInfo.amount > 0) {
                _mint(msg.sender, unlockInfo.amount);
            }
            // create new locked EIN
            accountUnlockInfo[msg.sender] = UnlockInfo({
                startTime: block.timestamp,
                endTime: block.timestamp + unlockTime,
                amount: einAmount
            });
        } else {
            // partly unlocked
            // mint unlocked amount
            uint256 unlockedAmount =
                (unlockInfo.amount * (block.timestamp - unlockInfo.startTime)) /
                    (unlockInfo.endTime - unlockInfo.startTime);
            if (unlockedAmount > 0) {
                _mint(msg.sender, unlockedAmount);
            }
            // create new locked EIN
            // consisting of new amount + previous locked amount
            accountUnlockInfo[msg.sender] = UnlockInfo({
                startTime: block.timestamp,
                endTime: block.timestamp + unlockTime,
                amount: einAmount + unlockInfo.amount - unlockedAmount
            });
        }
    }

    function unwoof(uint256 einAmount) external {
        // Note: _updateAccount() is auto-triggered by _beforeTokenTransfer()
        // so no need to unlock tokens first
        // burn EIN from account
        _burn(msg.sender, einAmount);

        // transfer MPH to account
        mph.transfer(msg.sender, einToMPH(einAmount));
    }

    function balanceOf(address account)
        public
        view
        override
        returns (uint256 balance)
    {
        balance = super.balanceOf(account);
        UnlockInfo memory unlockInfo = accountUnlockInfo[account];
        if (block.timestamp >= unlockInfo.endTime) {
            // fully unlocked
            balance += unlockInfo.amount;
        } else {
            // partly unlocked
            balance +=
                (unlockInfo.amount * (block.timestamp - unlockInfo.startTime)) /
                (unlockInfo.endTime - unlockInfo.startTime);
        }
    }

    function einToMPH(uint256 einAmount) public view returns (uint256) {
        return einAmount / multiplier;
    }

    function mphToEIN(uint256 mphAmount) public view returns (uint256) {
        return mphAmount * multiplier;
    }

    function _beforeTokenTransfer(
        address from,
        address, /*to*/
        uint256 /*amount*/
    ) internal override {
        if (from != address(0)) {
            _updateAccount(from);
        }
    }

    function _updateAccount(address account) internal {
        UnlockInfo memory unlockInfo = accountUnlockInfo[account];
        if (block.timestamp >= unlockInfo.endTime) {
            // fully unlocked
            // mint unlocked amount
            if (unlockInfo.amount > 0) {
                _mint(account, unlockInfo.amount);
            }
            delete accountUnlockInfo[account];
        } else {
            // partly unlocked
            // mint unlocked amount
            uint256 unlockedAmount =
                (unlockInfo.amount * (block.timestamp - unlockInfo.startTime)) /
                    (unlockInfo.endTime - unlockInfo.startTime);
            if (unlockedAmount > 0) {
                _mint(account, unlockedAmount);
            }
            // update unlock info
            accountUnlockInfo[account].startTime = block.timestamp;
            accountUnlockInfo[account].amount =
                unlockInfo.amount -
                unlockedAmount;
        }
    }
}

File 2 of 5 : 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 guidelines: functions revert instead
 * of 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 defaut 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");
        _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");
        _approve(_msgSender(), spender, currentAllowance - subtractedValue);

        return true;
    }

    /**
     * @dev Moves tokens `amount` from `sender` to `recipient`.
     *
     * This is 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");
        _balances[sender] = senderBalance - amount;
        _balances[recipient] += amount;

        emit Transfer(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:
     *
     * - `to` 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);
    }

    /**
     * @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");
        _balances[account] = accountBalance - amount;
        _totalSupply -= amount;

        emit Transfer(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 to 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 { }
}

File 3 of 5 : 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 4 of 5 : 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);
}

File 5 of 5 : 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) {
        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        return msg.data;
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_mph","type":"address"},{"internalType":"uint256","name":"_multiplier","type":"uint256"},{"internalType":"uint256","name":"_unlockTime","type":"uint256"}],"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":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":"","type":"address"}],"name":"accountUnlockInfo","outputs":[{"internalType":"uint256","name":"startTime","type":"uint256"},{"internalType":"uint256","name":"endTime","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"stateMutability":"view","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":"balance","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":[{"internalType":"uint256","name":"einAmount","type":"uint256"}],"name":"einToMPH","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":"mph","outputs":[{"internalType":"contract ERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"mphAmount","type":"uint256"}],"name":"mphToEIN","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"multiplier","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","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":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unlockTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"einAmount","type":"uint256"}],"name":"unwoof","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"mphAmount","type":"uint256"}],"name":"woof","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60e06040523480156200001157600080fd5b5060405162001532380380620015328339810160408190526200003491620001ce565b6040518060400160405280600881526020016722b4b739ba32b4b760c11b8152506040518060400160405280600381526020016222a4a760e91b81525081600390805190602001906200008992919062000128565b5080516200009f90600490602084019062000128565b5050506001600160a01b03831615801590620000bb5750600082115b8015620000c85750600081115b620001095760405162461bcd60e51b815260206004820152600d60248201526c125b9d985b1a59081a5b9c1d5d609a1b604482015260640160405180910390fd5b60609290921b6001600160601b03191660805260a05260c0526200024e565b828054620001369062000211565b90600052602060002090601f0160209004810192826200015a5760008555620001a5565b82601f106200017557805160ff1916838001178555620001a5565b82800160010185558215620001a5579182015b82811115620001a557825182559160200191906001019062000188565b50620001b3929150620001b7565b5090565b5b80821115620001b35760008155600101620001b8565b600080600060608486031215620001e3578283fd5b83516001600160a01b0381168114620001fa578384fd5b602085015160409095015190969495509392505050565b600181811c908216806200022657607f821691505b602082108114156200024857634e487b7160e01b600052602260045260246000fd5b50919050565b60805160601c60a05160c051611287620002ab600039600081816101f701528181610885015261094301526000818161017e0152818161065a015261069d0152600081816101a5015281816104b7015261078c01526112876000f3fe608060405234801561001057600080fd5b50600436106101215760003560e01c806339509351116100ad5780639bcc5af8116100715780639bcc5af8146102c8578063a457c2d7146102db578063a9059cbb146102ee578063ab8f90c314610301578063dd62ed3e1461031457610121565b8063395093511461023d57806370a08231146102505780637fa204c3146102635780639094fa9b146102ad57806395d89b41146102c057610121565b80632304aa61116100f45780632304aa61146101a057806323b872dd146101df578063251c1aa3146101f2578063313ce5671461021957806335118f741461022857610121565b806306fdde0314610126578063095ea7b31461014457806318160ddd146101675780631b3ed72214610179575b600080fd5b61012e61034d565b60405161013b9190611145565b60405180910390f35b6101576101523660046110e4565b6103df565b604051901515815260200161013b565b6002545b60405190815260200161013b565b61016b7f000000000000000000000000000000000000000000000000000000000000000081565b6101c77f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b03909116815260200161013b565b6101576101ed3660046110a9565b6103f5565b61016b7f000000000000000000000000000000000000000000000000000000000000000081565b6040516012815260200161013b565b61023b61023636600461112d565b6104ab565b005b61015761024b3660046110e4565b610570565b61016b61025e366004611056565b6105a7565b610292610271366004611056565b60056020526000908152604090208054600182015460029092015490919083565b6040805193845260208401929092529082015260600161013b565b61016b6102bb36600461112d565b610653565b61012e610687565b61016b6102d636600461112d565b610696565b6101576102e93660046110e4565b6106c2565b6101576102fc3660046110e4565b61075d565b61023b61030f36600461112d565b61076a565b61016b610322366004611077565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b60606003805461035c90611206565b80601f016020809104026020016040519081016040528092919081815260200182805461038890611206565b80156103d55780601f106103aa576101008083540402835291602001916103d5565b820191906000526020600020905b8154815290600101906020018083116103b857829003601f168201915b5050505050905090565b60006103ec3384846109bf565b50600192915050565b6000610402848484610ae4565b6001600160a01b03841660009081526001602090815260408083203384529091529020548281101561048c5760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b60648201526084015b60405180910390fd5b6104a0853361049b86856111ef565b6109bf565b506001949350505050565b6104b53382610cc7565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663a9059cbb336104ee84610696565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401602060405180830381600087803b15801561053457600080fd5b505af1158015610548573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061056c919061110d565b5050565b3360008181526001602090815260408083206001600160a01b038716845290915281205490916103ec91859061049b908690611198565b6001600160a01b03811660009081526020818152604080832054600583529281902081516060810183528154815260018201549381018490526002909101549181019190915290421061060a5760408101516106039083611198565b915061064d565b8051602082015161061b91906111ef565b815161062790426111ef565b826040015161063691906111d0565b61064091906111b0565b61064a9083611198565b91505b50919050565b600061067f7f0000000000000000000000000000000000000000000000000000000000000000836111d0565b90505b919050565b60606004805461035c90611206565b600061067f7f0000000000000000000000000000000000000000000000000000000000000000836111b0565b3360009081526001602090815260408083206001600160a01b0386168452909152812054828110156107445760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610483565b610753338561049b86856111ef565b5060019392505050565b60006103ec338484610ae4565b6040516323b872dd60e01b8152336004820152306024820152604481018290527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906323b872dd90606401602060405180830381600087803b1580156107d857600080fd5b505af11580156107ec573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610810919061110d565b5033600090815260056020908152604080832081516060810183528154815260018201549381019390935260020154908201529061084d83610653565b9050816020015142106108e65760408201511561087257610872338360400151610e22565b60405180606001604052804281526020017f0000000000000000000000000000000000000000000000000000000000000000426108af9190611198565b81526020908101839052336000908152600582526040908190208351815591830151600183015591909101516002909101556109ba565b815160208301516000916108f9916111ef565b835161090590426111ef565b846040015161091491906111d0565b61091e91906111b0565b90508015610930576109303382610e22565b60405180606001604052804281526020017f00000000000000000000000000000000000000000000000000000000000000004261096d9190611198565b8152602001828560400151856109839190611198565b61098d91906111ef565b90523360009081526005602090815260409182902083518155908301516001820155910151600290910155505b505050565b6001600160a01b038316610a215760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610483565b6001600160a01b038216610a825760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610483565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6001600160a01b038316610b485760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610483565b6001600160a01b038216610baa5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610483565b610bb5838383610f0d565b6001600160a01b03831660009081526020819052604090205481811015610c2d5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610483565b610c3782826111ef565b6001600160a01b038086166000908152602081905260408082209390935590851681529081208054849290610c6d908490611198565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051610cb991815260200190565b60405180910390a350505050565b6001600160a01b038216610d275760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610483565b610d3382600083610f0d565b6001600160a01b03821660009081526020819052604090205481811015610da75760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610483565b610db182826111ef565b6001600160a01b03841660009081526020819052604081209190915560028054849290610ddf9084906111ef565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90602001610ad7565b6001600160a01b038216610e785760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610483565b610e8460008383610f0d565b8060026000828254610e969190611198565b90915550506001600160a01b03821660009081526020819052604081208054839290610ec3908490611198565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b6001600160a01b038316156109ba576109ba836001600160a01b0381166000908152600560209081526040918290208251606081018452815481526001820154928101839052600290910154928101929092524210610fa957604081015115610f7e57610f7e828260400151610e22565b6001600160a01b0382166000908152600560205260408120818155600181018290556002015561056c565b80516020820151600091610fbc916111ef565b8251610fc890426111ef565b8360400151610fd791906111d0565b610fe191906111b0565b90508015610ff357610ff38382610e22565b6001600160a01b0383166000908152600560205260409081902042905582015161101e9082906111ef565b6001600160a01b038416600090815260056020526040902060020155505050565b80356001600160a01b038116811461068257600080fd5b600060208284031215611067578081fd5b6110708261103f565b9392505050565b60008060408385031215611089578081fd5b6110928361103f565b91506110a06020840161103f565b90509250929050565b6000806000606084860312156110bd578081fd5b6110c68461103f565b92506110d46020850161103f565b9150604084013590509250925092565b600080604083850312156110f6578182fd5b6110ff8361103f565b946020939093013593505050565b60006020828403121561111e578081fd5b81518015158114611070578182fd5b60006020828403121561113e578081fd5b5035919050565b6000602080835283518082850152825b8181101561117157858101830151858201604001528201611155565b818111156111825783604083870101525b50601f01601f1916929092016040019392505050565b600082198211156111ab576111ab61123b565b500190565b6000826111cb57634e487b7160e01b81526012600452602481fd5b500490565b60008160001904831182151516156111ea576111ea61123b565b500290565b6000828210156112015761120161123b565b500390565b600181811c9082168061121a57607f821691505b6020821081141561064d57634e487b7160e01b600052602260045260246000fd5b634e487b7160e01b600052601160045260246000fdfea264697066735822122022e37ce43b26c47255ed4d27e778af7723fa9e2858e8540823a200458ae679be64736f6c634300080300330000000000000000000000008888801af4d980682e47f1a9036e589479e835c5000000000000000000000000000000000000000000000000000000003b9aca000000000000000000000000000000000000000000000000000000000000015180

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101215760003560e01c806339509351116100ad5780639bcc5af8116100715780639bcc5af8146102c8578063a457c2d7146102db578063a9059cbb146102ee578063ab8f90c314610301578063dd62ed3e1461031457610121565b8063395093511461023d57806370a08231146102505780637fa204c3146102635780639094fa9b146102ad57806395d89b41146102c057610121565b80632304aa61116100f45780632304aa61146101a057806323b872dd146101df578063251c1aa3146101f2578063313ce5671461021957806335118f741461022857610121565b806306fdde0314610126578063095ea7b31461014457806318160ddd146101675780631b3ed72214610179575b600080fd5b61012e61034d565b60405161013b9190611145565b60405180910390f35b6101576101523660046110e4565b6103df565b604051901515815260200161013b565b6002545b60405190815260200161013b565b61016b7f000000000000000000000000000000000000000000000000000000003b9aca0081565b6101c77f0000000000000000000000008888801af4d980682e47f1a9036e589479e835c581565b6040516001600160a01b03909116815260200161013b565b6101576101ed3660046110a9565b6103f5565b61016b7f000000000000000000000000000000000000000000000000000000000001518081565b6040516012815260200161013b565b61023b61023636600461112d565b6104ab565b005b61015761024b3660046110e4565b610570565b61016b61025e366004611056565b6105a7565b610292610271366004611056565b60056020526000908152604090208054600182015460029092015490919083565b6040805193845260208401929092529082015260600161013b565b61016b6102bb36600461112d565b610653565b61012e610687565b61016b6102d636600461112d565b610696565b6101576102e93660046110e4565b6106c2565b6101576102fc3660046110e4565b61075d565b61023b61030f36600461112d565b61076a565b61016b610322366004611077565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b60606003805461035c90611206565b80601f016020809104026020016040519081016040528092919081815260200182805461038890611206565b80156103d55780601f106103aa576101008083540402835291602001916103d5565b820191906000526020600020905b8154815290600101906020018083116103b857829003601f168201915b5050505050905090565b60006103ec3384846109bf565b50600192915050565b6000610402848484610ae4565b6001600160a01b03841660009081526001602090815260408083203384529091529020548281101561048c5760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b60648201526084015b60405180910390fd5b6104a0853361049b86856111ef565b6109bf565b506001949350505050565b6104b53382610cc7565b7f0000000000000000000000008888801af4d980682e47f1a9036e589479e835c56001600160a01b031663a9059cbb336104ee84610696565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401602060405180830381600087803b15801561053457600080fd5b505af1158015610548573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061056c919061110d565b5050565b3360008181526001602090815260408083206001600160a01b038716845290915281205490916103ec91859061049b908690611198565b6001600160a01b03811660009081526020818152604080832054600583529281902081516060810183528154815260018201549381018490526002909101549181019190915290421061060a5760408101516106039083611198565b915061064d565b8051602082015161061b91906111ef565b815161062790426111ef565b826040015161063691906111d0565b61064091906111b0565b61064a9083611198565b91505b50919050565b600061067f7f000000000000000000000000000000000000000000000000000000003b9aca00836111d0565b90505b919050565b60606004805461035c90611206565b600061067f7f000000000000000000000000000000000000000000000000000000003b9aca00836111b0565b3360009081526001602090815260408083206001600160a01b0386168452909152812054828110156107445760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610483565b610753338561049b86856111ef565b5060019392505050565b60006103ec338484610ae4565b6040516323b872dd60e01b8152336004820152306024820152604481018290527f0000000000000000000000008888801af4d980682e47f1a9036e589479e835c56001600160a01b0316906323b872dd90606401602060405180830381600087803b1580156107d857600080fd5b505af11580156107ec573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610810919061110d565b5033600090815260056020908152604080832081516060810183528154815260018201549381019390935260020154908201529061084d83610653565b9050816020015142106108e65760408201511561087257610872338360400151610e22565b60405180606001604052804281526020017f0000000000000000000000000000000000000000000000000000000000015180426108af9190611198565b81526020908101839052336000908152600582526040908190208351815591830151600183015591909101516002909101556109ba565b815160208301516000916108f9916111ef565b835161090590426111ef565b846040015161091491906111d0565b61091e91906111b0565b90508015610930576109303382610e22565b60405180606001604052804281526020017f00000000000000000000000000000000000000000000000000000000000151804261096d9190611198565b8152602001828560400151856109839190611198565b61098d91906111ef565b90523360009081526005602090815260409182902083518155908301516001820155910151600290910155505b505050565b6001600160a01b038316610a215760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610483565b6001600160a01b038216610a825760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610483565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6001600160a01b038316610b485760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610483565b6001600160a01b038216610baa5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610483565b610bb5838383610f0d565b6001600160a01b03831660009081526020819052604090205481811015610c2d5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610483565b610c3782826111ef565b6001600160a01b038086166000908152602081905260408082209390935590851681529081208054849290610c6d908490611198565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051610cb991815260200190565b60405180910390a350505050565b6001600160a01b038216610d275760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610483565b610d3382600083610f0d565b6001600160a01b03821660009081526020819052604090205481811015610da75760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610483565b610db182826111ef565b6001600160a01b03841660009081526020819052604081209190915560028054849290610ddf9084906111ef565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90602001610ad7565b6001600160a01b038216610e785760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610483565b610e8460008383610f0d565b8060026000828254610e969190611198565b90915550506001600160a01b03821660009081526020819052604081208054839290610ec3908490611198565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b6001600160a01b038316156109ba576109ba836001600160a01b0381166000908152600560209081526040918290208251606081018452815481526001820154928101839052600290910154928101929092524210610fa957604081015115610f7e57610f7e828260400151610e22565b6001600160a01b0382166000908152600560205260408120818155600181018290556002015561056c565b80516020820151600091610fbc916111ef565b8251610fc890426111ef565b8360400151610fd791906111d0565b610fe191906111b0565b90508015610ff357610ff38382610e22565b6001600160a01b0383166000908152600560205260409081902042905582015161101e9082906111ef565b6001600160a01b038416600090815260056020526040902060020155505050565b80356001600160a01b038116811461068257600080fd5b600060208284031215611067578081fd5b6110708261103f565b9392505050565b60008060408385031215611089578081fd5b6110928361103f565b91506110a06020840161103f565b90509250929050565b6000806000606084860312156110bd578081fd5b6110c68461103f565b92506110d46020850161103f565b9150604084013590509250925092565b600080604083850312156110f6578182fd5b6110ff8361103f565b946020939093013593505050565b60006020828403121561111e578081fd5b81518015158114611070578182fd5b60006020828403121561113e578081fd5b5035919050565b6000602080835283518082850152825b8181101561117157858101830151858201604001528201611155565b818111156111825783604083870101525b50601f01601f1916929092016040019392505050565b600082198211156111ab576111ab61123b565b500190565b6000826111cb57634e487b7160e01b81526012600452602481fd5b500490565b60008160001904831182151516156111ea576111ea61123b565b500290565b6000828210156112015761120161123b565b500390565b600181811c9082168061121a57607f821691505b6020821081141561064d57634e487b7160e01b600052602260045260246000fd5b634e487b7160e01b600052601160045260246000fdfea264697066735822122022e37ce43b26c47255ed4d27e778af7723fa9e2858e8540823a200458ae679be64736f6c63430008030033

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

0000000000000000000000008888801af4d980682e47f1a9036e589479e835c5000000000000000000000000000000000000000000000000000000003b9aca000000000000000000000000000000000000000000000000000000000000015180

-----Decoded View---------------
Arg [0] : _mph (address): 0x8888801aF4d980682e47f1A9036e589479e835C5
Arg [1] : _multiplier (uint256): 1000000000
Arg [2] : _unlockTime (uint256): 86400

-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 0000000000000000000000008888801af4d980682e47f1a9036e589479e835c5
Arg [1] : 000000000000000000000000000000000000000000000000000000003b9aca00
Arg [2] : 0000000000000000000000000000000000000000000000000000000000015180


Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.