ETH Price: $3,157.35 (+1.47%)

Token

Ethereal Fragments (FRAGZ)
 

Overview

Max Total Supply

5,082.49752314814814809 FRAGZ

Holders

80

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 18 Decimals)

Filtered by Token Holder
akarui.eth
Balance
28.105462962962962962 FRAGZ

Value
$0.00
0xcaa65fb3417710c3c5fc0e3194d4054bea19aab3
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:
EtherealFragments

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 6 : EtherealFragments.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";

interface IEtherealWorlds {
	function balanceOf(address _user) external view returns(uint256);
	function ownerOf(uint256 id) external view returns (address user);
}

contract EtherealFragments is ERC20("Ethereal Fragments", "FRAGZ") {
	uint256 constant public BASE_RATE = 2 ether; // Not actually ether
	uint256 constant public DISTRIBUTION_END = 1643533200 + 157784760; // Start time + duration

	mapping(uint256 => uint256) public lastUpdate;

	IEtherealWorlds private  _worldsContract;

	event FragzPaid(address indexed user, uint256 reward);
	event FragzBurnt(address indexed user, uint256 amount, string indexed reason);

	// Link the _worlds contract and mint 2500 tokens to provide liquidity / donations
	constructor(address _worlds) {
		_worldsContract = IEtherealWorlds(_worlds);
		_mint(0x17020cBf555670aB1c7f3e64a80dA61b0B4990c0, 2500 ether);
	}

	function getRewards(uint256 _tokenId, uint256 _time) internal returns(uint256) {
		uint256 _lastUpdate = lastUpdate[_tokenId] == 0 ? DISTRIBUTION_END - 157784760 : lastUpdate[_tokenId];
	
		lastUpdate[_tokenId] = _time;
		return BASE_RATE * (_time - _lastUpdate) / 86400;		
	}

	function claimFragz(uint256[] calldata _tokens) external {
		require(_worldsContract.ownerOf(_tokens[0]) == msg.sender, "Fragz: Not Owner");
		uint256 _time = block.timestamp < DISTRIBUTION_END ? block.timestamp : DISTRIBUTION_END;
		uint256 reward = getRewards(_tokens[0], _time);

        for (uint256 i = 1; i < _tokens.length; i++) {
			require(_worldsContract.ownerOf(_tokens[i]) == msg.sender, "Fragz: Not Owner");
			reward += getRewards(_tokens[i], _time);
        }
			
		_mint(msg.sender, reward);
		emit FragzPaid(msg.sender, reward);
	}

	function burn(uint256 _amount, string memory _reason) external {
		_burn(msg.sender, _amount);
		emit FragzBurnt(msg.sender, _amount, _reason);
	}

	function getTotalClaimable(uint256 _tokenId) external view returns(uint256 _rewards) {
		uint256 _lastUpdate = lastUpdate[_tokenId] == 0 ? DISTRIBUTION_END - 157784760 : lastUpdate[_tokenId];

		uint256 _time = block.timestamp < DISTRIBUTION_END ? block.timestamp : DISTRIBUTION_END;
		_rewards = BASE_RATE * (_time - _lastUpdate) / 86400;
	}
}

File 2 of 6 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (access/Ownable.sol)

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() {
        _transferOwnership(_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 {
        _transferOwnership(address(0));
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _transferOwnership(newOwner);
    }

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

File 3 of 6 : ERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (token/ERC20/ERC20.sol)

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 4 of 6 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (utils/Context.sol)

pragma solidity ^0.8.0;

/**
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

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

File 5 of 6 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (token/ERC20/IERC20.sol)

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 6 of 6 : IERC20Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (token/ERC20/extensions/IERC20Metadata.sol)

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",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_worlds","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":true,"internalType":"string","name":"reason","type":"string"}],"name":"FragzBurnt","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"reward","type":"uint256"}],"name":"FragzPaid","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":[],"name":"BASE_RATE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DISTRIBUTION_END","outputs":[{"internalType":"uint256","name":"","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":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"string","name":"_reason","type":"string"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_tokens","type":"uint256[]"}],"name":"claimFragz","outputs":[],"stateMutability":"nonpayable","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":"_tokenId","type":"uint256"}],"name":"getTotalClaimable","outputs":[{"internalType":"uint256","name":"_rewards","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":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"lastUpdate","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"}]

60806040523480156200001157600080fd5b50604051620014f9380380620014f983398101604081905262000034916200027d565b6040805180820182526012815271457468657265616c20467261676d656e747360701b602080830191825283518085019094526005845264232920a3ad60d91b9084015281519192916200008b91600391620001d7565b508051620000a1906004906020840190620001d7565b5050600680546001600160a01b0319166001600160a01b03841617905550620000e87317020cbf555670ab1c7f3e64a80da61b0b4990c068878678326eac900000620000ef565b5062000313565b6001600160a01b0382166200014a5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640160405180910390fd5b80600260008282546200015e9190620002af565b90915550506001600160a01b038216600090815260208190526040812080548392906200018d908490620002af565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b828054620001e590620002d6565b90600052602060002090601f01602090048101928262000209576000855562000254565b82601f106200022457805160ff191683800117855562000254565b8280016001018555821562000254579182015b828111156200025457825182559160200191906001019062000237565b506200026292915062000266565b5090565b5b8082111562000262576000815560010162000267565b6000602082840312156200029057600080fd5b81516001600160a01b0381168114620002a857600080fd5b9392505050565b60008219821115620002d157634e487b7160e01b600052601160045260246000fd5b500190565b600181811c90821680620002eb57607f821691505b602082108114156200030d57634e487b7160e01b600052602260045260246000fd5b50919050565b6111d680620003236000396000f3fe608060405234801561001057600080fd5b506004361061010b5760003560e01c806370a08231116100a257806395d89b411161007157806395d89b4114610227578063a457c2d71461022f578063a9059cbb14610242578063d2e3ed5614610255578063dd62ed3e1461026857600080fd5b806370a08231146101cb5780637641e6f3146101f4578063796ac34a14610209578063919cd40f1461021c57600080fd5b806323b872dd116100de57806323b872dd14610187578063313ce5671461019a57806339509351146101a957806341910f90146101bc57600080fd5b806306fdde0314610110578063095ea7b31461012e5780630bc5dec41461015157806318160ddd1461017f575b600080fd5b6101186102a1565b6040516101259190610e01565b60405180910390f35b61014161013c366004610e4c565b610333565b6040519015158152602001610125565b61017161015f366004610e78565b60056020526000908152604090205481565b604051908152602001610125565b600254610171565b610141610195366004610e91565b610349565b60405160128152602001610125565b6101416101b7366004610e4c565b6103f8565b610171671bc16d674ec8000081565b6101716101d9366004610ed2565b6001600160a01b031660009081526020819052604090205490565b610207610202366004610f0c565b610434565b005b610171610217366004610e78565b61048d565b610171636b5dee4881565b610118610518565b61014161023d366004610e4c565b610527565b610141610250366004610e4c565b6105c0565b610207610263366004610fc7565b6105cd565b61017161027636600461103c565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6060600380546102b090611075565b80601f01602080910402602001604051908101604052809291908181526020018280546102dc90611075565b80156103295780601f106102fe57610100808354040283529160200191610329565b820191906000526020600020905b81548152906001019060200180831161030c57829003601f168201915b5050505050905090565b6000610340338484610865565b50600192915050565b600061035684848461098a565b6001600160a01b0384166000908152600160209081526040808320338452909152902054828110156103e05760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b60648201526084015b60405180910390fd5b6103ed8533858403610865565b506001949350505050565b3360008181526001602090815260408083206001600160a01b0387168452909152812054909161034091859061042f9086906110c6565b610865565b61043e3383610b5a565b8060405161044c91906110de565b6040519081900381208382529033907f6bd34dae09ffcc12cf276d7de2d5ee8297119c22ccae53be6ea20a12b9debda4906020015b60405180910390a35050565b6000818152600560205260408120548190156104b7576000838152600560205260409020546104c9565b6104c96309679ab8636b5dee486110fa565b90506000636b5dee4842106104e257636b5dee486104e4565b425b9050620151806104f483836110fa565b61050690671bc16d674ec80000611111565b6105109190611130565b949350505050565b6060600480546102b090611075565b3360009081526001602090815260408083206001600160a01b0386168452909152812054828110156105a95760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084016103d7565b6105b63385858403610865565b5060019392505050565b600061034033848461098a565b60065433906001600160a01b0316636352211e84846000816105f1576105f1611152565b905060200201356040518263ffffffff1660e01b815260040161061691815260200190565b60206040518083038186803b15801561062e57600080fd5b505afa158015610642573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106669190611168565b6001600160a01b0316146106af5760405162461bcd60e51b815260206004820152601060248201526f233930b3bd1d102737ba1027bbb732b960811b60448201526064016103d7565b6000636b5dee4842106106c657636b5dee486106c8565b425b905060006106ef848460008181106106e2576106e2611152565b9050602002013583610ca0565b905060015b8381101561081f5760065433906001600160a01b0316636352211e87878581811061072157610721611152565b905060200201356040518263ffffffff1660e01b815260040161074691815260200190565b60206040518083038186803b15801561075e57600080fd5b505afa158015610772573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107969190611168565b6001600160a01b0316146107df5760405162461bcd60e51b815260206004820152601060248201526f233930b3bd1d102737ba1027bbb732b960811b60448201526064016103d7565b6108018585838181106107f4576107f4611152565b9050602002013584610ca0565b61080b90836110c6565b91508061081781611185565b9150506106f4565b5061082a3382610cfd565b60405181815233907ff6eb0397b24f6a458f1ad9e0b41739ce27842bdf4c0fd84e1f90b580b24a44179060200160405180910390a250505050565b6001600160a01b0383166108c75760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016103d7565b6001600160a01b0382166109285760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016103d7565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6001600160a01b0383166109ee5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b60648201526084016103d7565b6001600160a01b038216610a505760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b60648201526084016103d7565b6001600160a01b03831660009081526020819052604090205481811015610ac85760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b60648201526084016103d7565b6001600160a01b03808516600090815260208190526040808220858503905591851681529081208054849290610aff9084906110c6565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051610b4b91815260200190565b60405180910390a35b50505050565b6001600160a01b038216610bba5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b60648201526084016103d7565b6001600160a01b03821660009081526020819052604090205481811015610c2e5760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b60648201526084016103d7565b6001600160a01b0383166000908152602081905260408120838303905560028054849290610c5d9084906110fa565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200161097d565b600082815260056020526040812054819015610cca57600084815260056020526040902054610cdc565b610cdc6309679ab8636b5dee486110fa565b60008581526005602052604090208490559050620151806104f482856110fa565b6001600160a01b038216610d535760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016103d7565b8060026000828254610d6591906110c6565b90915550506001600160a01b03821660009081526020819052604081208054839290610d929084906110c6565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90602001610481565b60005b83811015610df0578181015183820152602001610dd8565b83811115610b545750506000910152565b6020815260008251806020840152610e20816040850160208701610dd5565b601f01601f19169190910160400192915050565b6001600160a01b0381168114610e4957600080fd5b50565b60008060408385031215610e5f57600080fd5b8235610e6a81610e34565b946020939093013593505050565b600060208284031215610e8a57600080fd5b5035919050565b600080600060608486031215610ea657600080fd5b8335610eb181610e34565b92506020840135610ec181610e34565b929592945050506040919091013590565b600060208284031215610ee457600080fd5b8135610eef81610e34565b9392505050565b634e487b7160e01b600052604160045260246000fd5b60008060408385031215610f1f57600080fd5b82359150602083013567ffffffffffffffff80821115610f3e57600080fd5b818501915085601f830112610f5257600080fd5b813581811115610f6457610f64610ef6565b604051601f8201601f19908116603f01168101908382118183101715610f8c57610f8c610ef6565b81604052828152886020848701011115610fa557600080fd5b8260208601602083013760006020848301015280955050505050509250929050565b60008060208385031215610fda57600080fd5b823567ffffffffffffffff80821115610ff257600080fd5b818501915085601f83011261100657600080fd5b81358181111561101557600080fd5b8660208260051b850101111561102a57600080fd5b60209290920196919550909350505050565b6000806040838503121561104f57600080fd5b823561105a81610e34565b9150602083013561106a81610e34565b809150509250929050565b600181811c9082168061108957607f821691505b602082108114156110aa57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b600082198211156110d9576110d96110b0565b500190565b600082516110f0818460208701610dd5565b9190910192915050565b60008282101561110c5761110c6110b0565b500390565b600081600019048311821515161561112b5761112b6110b0565b500290565b60008261114d57634e487b7160e01b600052601260045260246000fd5b500490565b634e487b7160e01b600052603260045260246000fd5b60006020828403121561117a57600080fd5b8151610eef81610e34565b6000600019821415611199576111996110b0565b506001019056fea2646970667358221220f43c47d0a1bdca66accc5e9457a654116821650fd677c4b83fe6aae9e1e3f79764736f6c63430008090033000000000000000000000000590bbc539d4fa56afaf030378577dd8bc6b6f0fc

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061010b5760003560e01c806370a08231116100a257806395d89b411161007157806395d89b4114610227578063a457c2d71461022f578063a9059cbb14610242578063d2e3ed5614610255578063dd62ed3e1461026857600080fd5b806370a08231146101cb5780637641e6f3146101f4578063796ac34a14610209578063919cd40f1461021c57600080fd5b806323b872dd116100de57806323b872dd14610187578063313ce5671461019a57806339509351146101a957806341910f90146101bc57600080fd5b806306fdde0314610110578063095ea7b31461012e5780630bc5dec41461015157806318160ddd1461017f575b600080fd5b6101186102a1565b6040516101259190610e01565b60405180910390f35b61014161013c366004610e4c565b610333565b6040519015158152602001610125565b61017161015f366004610e78565b60056020526000908152604090205481565b604051908152602001610125565b600254610171565b610141610195366004610e91565b610349565b60405160128152602001610125565b6101416101b7366004610e4c565b6103f8565b610171671bc16d674ec8000081565b6101716101d9366004610ed2565b6001600160a01b031660009081526020819052604090205490565b610207610202366004610f0c565b610434565b005b610171610217366004610e78565b61048d565b610171636b5dee4881565b610118610518565b61014161023d366004610e4c565b610527565b610141610250366004610e4c565b6105c0565b610207610263366004610fc7565b6105cd565b61017161027636600461103c565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6060600380546102b090611075565b80601f01602080910402602001604051908101604052809291908181526020018280546102dc90611075565b80156103295780601f106102fe57610100808354040283529160200191610329565b820191906000526020600020905b81548152906001019060200180831161030c57829003601f168201915b5050505050905090565b6000610340338484610865565b50600192915050565b600061035684848461098a565b6001600160a01b0384166000908152600160209081526040808320338452909152902054828110156103e05760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b60648201526084015b60405180910390fd5b6103ed8533858403610865565b506001949350505050565b3360008181526001602090815260408083206001600160a01b0387168452909152812054909161034091859061042f9086906110c6565b610865565b61043e3383610b5a565b8060405161044c91906110de565b6040519081900381208382529033907f6bd34dae09ffcc12cf276d7de2d5ee8297119c22ccae53be6ea20a12b9debda4906020015b60405180910390a35050565b6000818152600560205260408120548190156104b7576000838152600560205260409020546104c9565b6104c96309679ab8636b5dee486110fa565b90506000636b5dee4842106104e257636b5dee486104e4565b425b9050620151806104f483836110fa565b61050690671bc16d674ec80000611111565b6105109190611130565b949350505050565b6060600480546102b090611075565b3360009081526001602090815260408083206001600160a01b0386168452909152812054828110156105a95760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084016103d7565b6105b63385858403610865565b5060019392505050565b600061034033848461098a565b60065433906001600160a01b0316636352211e84846000816105f1576105f1611152565b905060200201356040518263ffffffff1660e01b815260040161061691815260200190565b60206040518083038186803b15801561062e57600080fd5b505afa158015610642573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106669190611168565b6001600160a01b0316146106af5760405162461bcd60e51b815260206004820152601060248201526f233930b3bd1d102737ba1027bbb732b960811b60448201526064016103d7565b6000636b5dee4842106106c657636b5dee486106c8565b425b905060006106ef848460008181106106e2576106e2611152565b9050602002013583610ca0565b905060015b8381101561081f5760065433906001600160a01b0316636352211e87878581811061072157610721611152565b905060200201356040518263ffffffff1660e01b815260040161074691815260200190565b60206040518083038186803b15801561075e57600080fd5b505afa158015610772573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107969190611168565b6001600160a01b0316146107df5760405162461bcd60e51b815260206004820152601060248201526f233930b3bd1d102737ba1027bbb732b960811b60448201526064016103d7565b6108018585838181106107f4576107f4611152565b9050602002013584610ca0565b61080b90836110c6565b91508061081781611185565b9150506106f4565b5061082a3382610cfd565b60405181815233907ff6eb0397b24f6a458f1ad9e0b41739ce27842bdf4c0fd84e1f90b580b24a44179060200160405180910390a250505050565b6001600160a01b0383166108c75760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016103d7565b6001600160a01b0382166109285760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016103d7565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6001600160a01b0383166109ee5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b60648201526084016103d7565b6001600160a01b038216610a505760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b60648201526084016103d7565b6001600160a01b03831660009081526020819052604090205481811015610ac85760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b60648201526084016103d7565b6001600160a01b03808516600090815260208190526040808220858503905591851681529081208054849290610aff9084906110c6565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051610b4b91815260200190565b60405180910390a35b50505050565b6001600160a01b038216610bba5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b60648201526084016103d7565b6001600160a01b03821660009081526020819052604090205481811015610c2e5760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b60648201526084016103d7565b6001600160a01b0383166000908152602081905260408120838303905560028054849290610c5d9084906110fa565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200161097d565b600082815260056020526040812054819015610cca57600084815260056020526040902054610cdc565b610cdc6309679ab8636b5dee486110fa565b60008581526005602052604090208490559050620151806104f482856110fa565b6001600160a01b038216610d535760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016103d7565b8060026000828254610d6591906110c6565b90915550506001600160a01b03821660009081526020819052604081208054839290610d929084906110c6565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90602001610481565b60005b83811015610df0578181015183820152602001610dd8565b83811115610b545750506000910152565b6020815260008251806020840152610e20816040850160208701610dd5565b601f01601f19169190910160400192915050565b6001600160a01b0381168114610e4957600080fd5b50565b60008060408385031215610e5f57600080fd5b8235610e6a81610e34565b946020939093013593505050565b600060208284031215610e8a57600080fd5b5035919050565b600080600060608486031215610ea657600080fd5b8335610eb181610e34565b92506020840135610ec181610e34565b929592945050506040919091013590565b600060208284031215610ee457600080fd5b8135610eef81610e34565b9392505050565b634e487b7160e01b600052604160045260246000fd5b60008060408385031215610f1f57600080fd5b82359150602083013567ffffffffffffffff80821115610f3e57600080fd5b818501915085601f830112610f5257600080fd5b813581811115610f6457610f64610ef6565b604051601f8201601f19908116603f01168101908382118183101715610f8c57610f8c610ef6565b81604052828152886020848701011115610fa557600080fd5b8260208601602083013760006020848301015280955050505050509250929050565b60008060208385031215610fda57600080fd5b823567ffffffffffffffff80821115610ff257600080fd5b818501915085601f83011261100657600080fd5b81358181111561101557600080fd5b8660208260051b850101111561102a57600080fd5b60209290920196919550909350505050565b6000806040838503121561104f57600080fd5b823561105a81610e34565b9150602083013561106a81610e34565b809150509250929050565b600181811c9082168061108957607f821691505b602082108114156110aa57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b600082198211156110d9576110d96110b0565b500190565b600082516110f0818460208701610dd5565b9190910192915050565b60008282101561110c5761110c6110b0565b500390565b600081600019048311821515161561112b5761112b6110b0565b500290565b60008261114d57634e487b7160e01b600052601260045260246000fd5b500490565b634e487b7160e01b600052603260045260246000fd5b60006020828403121561117a57600080fd5b8151610eef81610e34565b6000600019821415611199576111996110b0565b506001019056fea2646970667358221220f43c47d0a1bdca66accc5e9457a654116821650fd677c4b83fe6aae9e1e3f79764736f6c63430008090033

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

000000000000000000000000590bbc539d4fa56afaf030378577dd8bc6b6f0fc

-----Decoded View---------------
Arg [0] : _worlds (address): 0x590Bbc539D4fA56afAF030378577dD8BC6B6F0fc

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000590bbc539d4fa56afaf030378577dd8bc6b6f0fc


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.