ETH Price: $3,446.65 (+1.41%)

Token

Legacy Morpho Token (MORPHO)
 

Overview

Max Total Supply

1,000,000,000 MORPHO

Holders

1,438 ( -0.487%)

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 18 Decimals)

Filtered by Token Holder
diors.eth
Balance
23.392404800303647405 MORPHO

Value
$0.00
0xb0eb002fb38c3a986dddb86503b359f2dc317011
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

Morpho is an open, efficient, and resilient platform that allows anyone to earn yield and borrow assets. At the same time, developers or businesses can create markets, curate vaults, and build a range of applications on its flexible, permissionless infrastructure.

# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
MorphoToken

Compiler Version
v0.8.13+commit.abaa5c0e

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 5 : MorphoToken.sol
// SPDX-License-Identifier: GNU AGPLv3
pragma solidity ^0.8.13;

import "@semitransferable-token/Token.sol";

/// @title MorphoToken.
/// @author Morpho Association.
/// @custom:contact [email protected]
/// @notice Morpho token contract.
contract MorphoToken is Token {

    /// @notice Constructs Morpho token contract.
    /// @param _owner The address of the owner (Morpho DAO).
    constructor(address _owner) Token("Morpho Token", "MORPHO", 18, _owner) {
        _mint(_owner, 0.2e9 ether); // Mint 1B of Morpho tokens.
    }
}

File 2 of 5 : Token.sol
// SPDX-License-Identifier: AGPL-3.0-only
pragma solidity ^0.8.13;

import {ERC20} from "solmate/tokens/ERC20.sol";
import {RolesAuthority} from "./RolesAuthority.sol";

/* The purpose of this token is to temporarily be nontransferable except for special cases.
  This is done by role-based access control. The token implements its own authorisation logic (by inheriting from RolesAuthority). It points to itself as its authority.

  The owner is then able to define who can call what functions of the token, then make the function public at a later stage (at an extra cost of 1 SLOAD).
*/
contract Token is ERC20, RolesAuthority {
  // We pass all arguments to the ancestors except the authority argument which is the token itself.
  constructor(
    string memory _name,
    string memory _symbol,
    uint8 _decimals,
    address _owner
  ) ERC20(_name, _symbol, _decimals) RolesAuthority(_owner) {}

  // `transfer` now `requiresAuth`.
  function transfer(address to, uint256 amount)
    public
    override
    requiresAuth
    returns (bool)
  {
    return super.transfer(to, amount);
  }

  // `transferFrom` now `requiresAuth`.
  function transferFrom(
    address from,
    address to,
    uint256 amount
  ) public override requiresAuth returns (bool) {
    return super.transferFrom(from, to, amount);
  }

  // `mint` is added to the external interface, and also `requiresAuth`
  function mint(address to, uint256 amount) external requiresAuth {
    _mint(to, amount);
  }

  // `burn` is added to the external interface
  function burn(uint256 amount) external {
    _burn(msg.sender, amount);
  }
}

File 3 of 5 : ERC20.sol
// SPDX-License-Identifier: AGPL-3.0-only
pragma solidity >=0.8.0;

/// @notice Modern and gas efficient ERC20 + EIP-2612 implementation.
/// @author Solmate (https://github.com/Rari-Capital/solmate/blob/main/src/tokens/ERC20.sol)
/// @author Modified from Uniswap (https://github.com/Uniswap/uniswap-v2-core/blob/master/contracts/UniswapV2ERC20.sol)
/// @dev Do not manually set balances without updating totalSupply, as the sum of all user balances must not exceed it.
abstract contract ERC20 {
    /*//////////////////////////////////////////////////////////////
                                 EVENTS
    //////////////////////////////////////////////////////////////*/

    event Transfer(address indexed from, address indexed to, uint256 amount);

    event Approval(address indexed owner, address indexed spender, uint256 amount);

    /*//////////////////////////////////////////////////////////////
                            METADATA STORAGE
    //////////////////////////////////////////////////////////////*/

    string public name;

    string public symbol;

    uint8 public immutable decimals;

    /*//////////////////////////////////////////////////////////////
                              ERC20 STORAGE
    //////////////////////////////////////////////////////////////*/

    uint256 public totalSupply;

    mapping(address => uint256) public balanceOf;

    mapping(address => mapping(address => uint256)) public allowance;

    /*//////////////////////////////////////////////////////////////
                            EIP-2612 STORAGE
    //////////////////////////////////////////////////////////////*/

    uint256 internal immutable INITIAL_CHAIN_ID;

    bytes32 internal immutable INITIAL_DOMAIN_SEPARATOR;

    mapping(address => uint256) public nonces;

    /*//////////////////////////////////////////////////////////////
                               CONSTRUCTOR
    //////////////////////////////////////////////////////////////*/

    constructor(
        string memory _name,
        string memory _symbol,
        uint8 _decimals
    ) {
        name = _name;
        symbol = _symbol;
        decimals = _decimals;

        INITIAL_CHAIN_ID = block.chainid;
        INITIAL_DOMAIN_SEPARATOR = computeDomainSeparator();
    }

    /*//////////////////////////////////////////////////////////////
                               ERC20 LOGIC
    //////////////////////////////////////////////////////////////*/

    function approve(address spender, uint256 amount) public virtual returns (bool) {
        allowance[msg.sender][spender] = amount;

        emit Approval(msg.sender, spender, amount);

        return true;
    }

    function transfer(address to, uint256 amount) public virtual returns (bool) {
        balanceOf[msg.sender] -= amount;

        // Cannot overflow because the sum of all user
        // balances can't exceed the max uint256 value.
        unchecked {
            balanceOf[to] += amount;
        }

        emit Transfer(msg.sender, to, amount);

        return true;
    }

    function transferFrom(
        address from,
        address to,
        uint256 amount
    ) public virtual returns (bool) {
        uint256 allowed = allowance[from][msg.sender]; // Saves gas for limited approvals.

        if (allowed != type(uint256).max) allowance[from][msg.sender] = allowed - amount;

        balanceOf[from] -= amount;

        // Cannot overflow because the sum of all user
        // balances can't exceed the max uint256 value.
        unchecked {
            balanceOf[to] += amount;
        }

        emit Transfer(from, to, amount);

        return true;
    }

    /*//////////////////////////////////////////////////////////////
                             EIP-2612 LOGIC
    //////////////////////////////////////////////////////////////*/

    function permit(
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) public virtual {
        require(deadline >= block.timestamp, "PERMIT_DEADLINE_EXPIRED");

        // Unchecked because the only math done is incrementing
        // the owner's nonce which cannot realistically overflow.
        unchecked {
            address recoveredAddress = ecrecover(
                keccak256(
                    abi.encodePacked(
                        "\x19\x01",
                        DOMAIN_SEPARATOR(),
                        keccak256(
                            abi.encode(
                                keccak256(
                                    "Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)"
                                ),
                                owner,
                                spender,
                                value,
                                nonces[owner]++,
                                deadline
                            )
                        )
                    )
                ),
                v,
                r,
                s
            );

            require(recoveredAddress != address(0) && recoveredAddress == owner, "INVALID_SIGNER");

            allowance[recoveredAddress][spender] = value;
        }

        emit Approval(owner, spender, value);
    }

    function DOMAIN_SEPARATOR() public view virtual returns (bytes32) {
        return block.chainid == INITIAL_CHAIN_ID ? INITIAL_DOMAIN_SEPARATOR : computeDomainSeparator();
    }

    function computeDomainSeparator() internal view virtual returns (bytes32) {
        return
            keccak256(
                abi.encode(
                    keccak256("EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)"),
                    keccak256(bytes(name)),
                    keccak256("1"),
                    block.chainid,
                    address(this)
                )
            );
    }

    /*//////////////////////////////////////////////////////////////
                        INTERNAL MINT/BURN LOGIC
    //////////////////////////////////////////////////////////////*/

    function _mint(address to, uint256 amount) internal virtual {
        totalSupply += amount;

        // Cannot overflow because the sum of all user
        // balances can't exceed the max uint256 value.
        unchecked {
            balanceOf[to] += amount;
        }

        emit Transfer(address(0), to, amount);
    }

    function _burn(address from, uint256 amount) internal virtual {
        balanceOf[from] -= amount;

        // Cannot underflow because a user's balance
        // will never be larger than the total supply.
        unchecked {
            totalSupply -= amount;
        }

        emit Transfer(from, address(0), amount);
    }
}

File 4 of 5 : RolesAuthority.sol
// SPDX-License-Identifier: AGPL-3.0-only
pragma solidity >=0.8.0;

import {Auth} from "./Auth.sol";

/// @notice Role based Authority that supports up to 256 roles, target is always this.
/// @author Modified from Solmate (https://github.com/Rari-Capital/solmate/blob/main/src/auth/authorities/RolesAuthority.sol)
/// @author Modified from Dappsys (https://github.com/dapphub/ds-roles/blob/master/src/roles.sol)
contract RolesAuthority is Auth {
    /*//////////////////////////////////////////////////////////////
                                 EVENTS
    //////////////////////////////////////////////////////////////*/

    event UserRoleUpdated(address indexed user, uint8 indexed role, bool enabled);

    event PublicCapabilityUpdated(bytes4 indexed functionSig, bool enabled);

    event RoleCapabilityUpdated(uint8 indexed role, bytes4 indexed functionSig, bool enabled);

    /*//////////////////////////////////////////////////////////////
                               CONSTRUCTOR
    //////////////////////////////////////////////////////////////*/

    constructor(address _owner) Auth(_owner) {}

    /*//////////////////////////////////////////////////////////////
                            ROLE/USER STORAGE
    //////////////////////////////////////////////////////////////*/

    mapping(address => bytes32) public getUserRoles;

    mapping(bytes4 => bool) public isCapabilityPublic;

    mapping(bytes4 => bytes32) public getRolesWithCapability;

    function doesUserHaveRole(address user, uint8 role) public view virtual returns (bool) {
        return (uint256(getUserRoles[user]) >> role) & 1 != 0;
    }

    function doesRoleHaveCapability(
        uint8 role,
        bytes4 functionSig
    ) public view virtual returns (bool) {
        return (uint256(getRolesWithCapability[functionSig]) >> role) & 1 != 0;
    }

    /*//////////////////////////////////////////////////////////////
                           AUTHORIZATION LOGIC
    //////////////////////////////////////////////////////////////*/

    function canCall(
        address user,
        bytes4 functionSig
    ) public view virtual override returns (bool) {
        return
            isCapabilityPublic[functionSig] ||
            bytes32(0) != getUserRoles[user] & getRolesWithCapability[functionSig];
    }

    /*//////////////////////////////////////////////////////////////
                   ROLE CAPABILITY CONFIGURATION LOGIC
    //////////////////////////////////////////////////////////////*/

    function setPublicCapability(
        bytes4 functionSig,
        bool enabled
    ) public virtual requiresAuth {
        isCapabilityPublic[functionSig] = enabled;

        emit PublicCapabilityUpdated(functionSig, enabled);
    }

    function setRoleCapability(
        uint8 role,
        bytes4 functionSig,
        bool enabled
    ) public virtual requiresAuth {
        if (enabled) {
            getRolesWithCapability[functionSig] |= bytes32(1 << role);
        } else {
            getRolesWithCapability[functionSig] &= ~bytes32(1 << role);
        }

        emit RoleCapabilityUpdated(role, functionSig, enabled);
    }

    /*//////////////////////////////////////////////////////////////
                       USER ROLE ASSIGNMENT LOGIC
    //////////////////////////////////////////////////////////////*/

    function setUserRole(
        address user,
        uint8 role,
        bool enabled
    ) public virtual requiresAuth {
        if (enabled) {
            getUserRoles[user] |= bytes32(1 << role);
        } else {
            getUserRoles[user] &= ~bytes32(1 << role);
        }

        emit UserRoleUpdated(user, role, enabled);
    }
}

File 5 of 5 : Auth.sol
// SPDX-License-Identifier: AGPL-3.0-only
pragma solidity >=0.8.0;

/// @notice Modified `Auth.sol`, where the contract is its own `authority` there is no `target` to `canCall`.
/// @notice Provides a flexible and updatable auth pattern which is completely separate from application logic.
/// @author Modified from Solmate (https://github.com/Rari-Capital/solmate/blob/main/src/auth/Auth.sol)
/// @author Modified from Dappsys (https://github.com/dapphub/ds-auth/blob/master/src/auth.sol)
abstract contract Auth {
    event OwnerUpdated(address indexed user, address indexed newOwner);

    address public owner;

    constructor(address _owner) {
        owner = _owner;

        emit OwnerUpdated(msg.sender, _owner);
    }

    modifier requiresAuth() virtual {
        require(isAuthorized(msg.sender, msg.sig), "UNAUTHORIZED");

        _;
    }

    function isAuthorized(address user, bytes4 functionSig) internal view virtual returns (bool) {
        return canCall(user, functionSig) || user == owner;
    }

    function setOwner(address newOwner) public virtual requiresAuth {
        owner = newOwner;

        emit OwnerUpdated(msg.sender, newOwner);
    }

    function canCall(
        address user,
        bytes4 functionSig
    ) public view virtual returns (bool);
}

Settings
{
  "remappings": [
    "@semitransferable-token/=lib/semitransferable-token/src/",
    "ds-test/=lib/forge-std/lib/ds-test/src/",
    "forge-std/=lib/forge-std/src/",
    "semitransferable-token/=lib/semitransferable-token/src/",
    "solmate/=lib/semitransferable-token/lib/solmate/src/",
    "src/=src/",
    "test/=test/",
    "script/=script/"
  ],
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "metadata": {
    "bytecodeHash": "ipfs"
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "evmVersion": "london",
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_owner","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":"amount","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnerUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes4","name":"functionSig","type":"bytes4"},{"indexed":false,"internalType":"bool","name":"enabled","type":"bool"}],"name":"PublicCapabilityUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint8","name":"role","type":"uint8"},{"indexed":true,"internalType":"bytes4","name":"functionSig","type":"bytes4"},{"indexed":false,"internalType":"bool","name":"enabled","type":"bool"}],"name":"RoleCapabilityUpdated","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":"amount","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint8","name":"role","type":"uint8"},{"indexed":false,"internalType":"bool","name":"enabled","type":"bool"}],"name":"UserRoleUpdated","type":"event"},{"inputs":[],"name":"DOMAIN_SEPARATOR","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","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":"","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"bytes4","name":"functionSig","type":"bytes4"}],"name":"canCall","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8","name":"role","type":"uint8"},{"internalType":"bytes4","name":"functionSig","type":"bytes4"}],"name":"doesRoleHaveCapability","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"uint8","name":"role","type":"uint8"}],"name":"doesUserHaveRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"name":"getRolesWithCapability","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"getUserRoles","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"name":"isCapabilityPublic","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"nonces","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"permit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"setOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"functionSig","type":"bytes4"},{"internalType":"bool","name":"enabled","type":"bool"}],"name":"setPublicCapability","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"role","type":"uint8"},{"internalType":"bytes4","name":"functionSig","type":"bytes4"},{"internalType":"bool","name":"enabled","type":"bool"}],"name":"setRoleCapability","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"uint8","name":"role","type":"uint8"},{"internalType":"bool","name":"enabled","type":"bool"}],"name":"setUserRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"}]

60e06040523480156200001157600080fd5b5060405162001784380380620017848339810160408190526200003491620002ee565b6040518060400160405280600c81526020016b26b7b9383437902a37b5b2b760a11b815250604051806040016040528060068152602001654d4f5250484f60d01b815250601283808085858582600090805190602001906200009892919062000248565b508151620000ae90600190602085019062000248565b5060ff81166080524660a052620000c46200013f565b60c0525050600680546001600160a01b0319166001600160a01b03841690811790915560405190915033907f8292fce18fa69edf4db7b94ea2e58241df0ae57f97e0a6c9b29067028bf92d7690600090a350505050505062000138816aa56fa5b99019a5c8000000620001db60201b60201c565b5062000426565b60007f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f60006040516200017391906200035c565b6040805191829003822060208301939093528101919091527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc660608201524660808201523060a082015260c00160405160208183030381529060405280519060200120905090565b8060026000828254620001ef9190620003ff565b90915550506001600160a01b0382166000818152600360209081526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b828054620002569062000320565b90600052602060002090601f0160209004810192826200027a5760008555620002c5565b82601f106200029557805160ff1916838001178555620002c5565b82800160010185558215620002c5579182015b82811115620002c5578251825591602001919060010190620002a8565b50620002d3929150620002d7565b5090565b5b80821115620002d35760008155600101620002d8565b6000602082840312156200030157600080fd5b81516001600160a01b03811681146200031957600080fd5b9392505050565b600181811c908216806200033557607f821691505b6020821081036200035657634e487b7160e01b600052602260045260246000fd5b50919050565b600080835481600182811c9150808316806200037957607f831692505b602080841082036200039957634e487b7160e01b86526022600452602486fd5b818015620003b05760018114620003c257620003f1565b60ff19861689528489019650620003f1565b60008a81526020902060005b86811015620003e95781548b820152908501908301620003ce565b505084890196505b509498975050505050505050565b600082198211156200042157634e487b7160e01b600052601160045260246000fd5b500190565b60805160a05160c05161132e620004566000396000610714015260006106df0152600061024f015261132e6000f3fe608060405234801561001057600080fd5b50600436106101735760003560e01c80634b5159da116100de57806395d89b4111610097578063dd62ed3e11610071578063dd62ed3e14610383578063e688747b146103ae578063ea7ca276146103e4578063ed0d0efb1461041b57600080fd5b806395d89b4114610355578063a9059cbb1461035d578063d505accf1461037057600080fd5b80634b5159da146102b157806367aff484146102c457806370a08231146102d75780637ecebe00146102f757806386bed3e0146103175780638da5cb5b1461032a57600080fd5b806318160ddd1161013057806318160ddd1461022e57806323b872dd14610237578063313ce5671461024a5780633644e5151461028357806340c10f191461028b57806342966c681461029e57600080fd5b806306a36aee1461017857806306fdde03146101ab578063095ea7b3146101c05780630bade8a4146101e35780630ea9b75b1461020657806313af40351461021b575b600080fd5b610198610186366004610eaf565b60076020526000908152604090205481565b6040519081526020015b60405180910390f35b6101b361043b565b6040516101a29190610eca565b6101d36101ce366004610f1f565b6104c9565b60405190151581526020016101a2565b6101d36101f1366004610f61565b60086020526000908152604090205460ff1681565b610219610214366004610f9d565b610535565b005b610219610229366004610eaf565b610616565b61019860025481565b6101d3610245366004610fe0565b610694565b6102717f000000000000000000000000000000000000000000000000000000000000000081565b60405160ff90911681526020016101a2565b6101986106db565b610219610299366004610f1f565b610736565b6102196102ac36600461101c565b610776565b6102196102bf366004611035565b610783565b6102196102d2366004611068565b610815565b6101986102e5366004610eaf565b60036020526000908152604090205481565b610198610305366004610eaf565b60056020526000908152604090205481565b6101d3610325366004611094565b6108dd565b60065461033d906001600160a01b031681565b6040516001600160a01b0390911681526020016101a2565b6101b361093d565b6101d361036b366004610f1f565b61094a565b61021961037e3660046110be565b610988565b610198610391366004611128565b600460209081526000928352604080842090915290825290205481565b6101d36103bc366004611152565b6001600160e01b03191660009081526009602052604090205460ff919091161c600116151590565b6101d36103f236600461116e565b6001600160a01b0391909116600090815260076020526040902054600160ff9092161c16151590565b610198610429366004610f61565b60096020526000908152604090205481565b6000805461044890611198565b80601f016020809104026020016040519081016040528092919081815260200182805461047490611198565b80156104c15780601f10610496576101008083540402835291602001916104c1565b820191906000526020600020905b8154815290600101906020018083116104a457829003601f168201915b505050505081565b3360008181526004602090815260408083206001600160a01b038716808552925280832085905551919290917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925906105249086815260200190565b60405180910390a350600192915050565b61054b336000356001600160e01b031916610bcc565b6105705760405162461bcd60e51b8152600401610567906111d2565b60405180910390fd5b80156105a0576001600160e01b0319821660009081526009602052604090208054600160ff86161b1790556105c7565b6001600160e01b0319821660009081526009602052604090208054600160ff86161b191690555b816001600160e01b0319168360ff167fbfe16b2c35ce23dfd1ab0e7b5d086a10060c9b52d1574e1680c881b3b3a2b15183604051610609911515815260200190565b60405180910390a3505050565b61062c336000356001600160e01b031916610bcc565b6106485760405162461bcd60e51b8152600401610567906111d2565b600680546001600160a01b0319166001600160a01b03831690811790915560405133907f8292fce18fa69edf4db7b94ea2e58241df0ae57f97e0a6c9b29067028bf92d7690600090a350565b60006106ac336000356001600160e01b031916610bcc565b6106c85760405162461bcd60e51b8152600401610567906111d2565b6106d3848484610bf7565b949350505050565b60007f000000000000000000000000000000000000000000000000000000000000000046146107115761070c610cd7565b905090565b507f000000000000000000000000000000000000000000000000000000000000000090565b61074c336000356001600160e01b031916610bcc565b6107685760405162461bcd60e51b8152600401610567906111d2565b6107728282610d71565b5050565b6107803382610dcb565b50565b610799336000356001600160e01b031916610bcc565b6107b55760405162461bcd60e51b8152600401610567906111d2565b6001600160e01b03198216600081815260086020908152604091829020805460ff191685151590811790915591519182527f36d28126bef21a4f3765d7fcb7c45cead463ae4c41094ef3b771ede598544103910160405180910390a25050565b61082b336000356001600160e01b031916610bcc565b6108475760405162461bcd60e51b8152600401610567906111d2565b8015610876576001600160a01b03831660009081526007602052604090208054600160ff85161b17905561089c565b6001600160a01b03831660009081526007602052604090208054600160ff85161b191690555b8160ff16836001600160a01b03167f4c9bdd0c8e073eb5eda2250b18d8e5121ff27b62064fbeeeed4869bb99bc5bf283604051610609911515815260200190565b6001600160e01b0319811660009081526008602052604081205460ff168061093657506001600160e01b031982166000908152600960209081526040808320546001600160a01b03871684526007909252909120541615155b9392505050565b6001805461044890611198565b6000610962336000356001600160e01b031916610bcc565b61097e5760405162461bcd60e51b8152600401610567906111d2565b6109368383610e2d565b428410156109d85760405162461bcd60e51b815260206004820152601760248201527f5045524d49545f444541444c494e455f455850495245440000000000000000006044820152606401610567565b600060016109e46106db565b6001600160a01b038a811660008181526005602090815260409182902080546001810190915582517f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c98184015280840194909452938d166060840152608083018c905260a083019390935260c08083018b90528151808403909101815260e08301909152805192019190912061190160f01b6101008301526101028201929092526101228101919091526101420160408051601f198184030181528282528051602091820120600084529083018083525260ff871690820152606081018590526080810184905260a0016020604051602081039080840390855afa158015610af0573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811615801590610b265750876001600160a01b0316816001600160a01b0316145b610b635760405162461bcd60e51b815260206004820152600e60248201526d24a72b20a624a22fa9a4a3a722a960911b6044820152606401610567565b6001600160a01b0390811660009081526004602090815260408083208a8516808552908352928190208990555188815291928a16917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a350505050505050565b6000610bd883836108dd565b8061093657506006546001600160a01b03848116911614905092915050565b6001600160a01b03831660009081526004602090815260408083203384529091528120546000198114610c5357610c2e838261120e565b6001600160a01b03861660009081526004602090815260408083203384529091529020555b6001600160a01b03851660009081526003602052604081208054859290610c7b90849061120e565b90915550506001600160a01b03808516600081815260036020526040908190208054870190555190918716906000805160206112d983398151915290610cc49087815260200190565b60405180910390a3506001949350505050565b60007f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6000604051610d099190611225565b6040805191829003822060208301939093528101919091527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc660608201524660808201523060a082015260c00160405160208183030381529060405280519060200120905090565b8060026000828254610d8391906112c0565b90915550506001600160a01b0382166000818152600360209081526040808320805486019055518481526000805160206112d983398151915291015b60405180910390a35050565b6001600160a01b03821660009081526003602052604081208054839290610df390849061120e565b90915550506002805482900390556040518181526000906001600160a01b038416906000805160206112d983398151915290602001610dbf565b33600090815260036020526040812080548391908390610e4e90849061120e565b90915550506001600160a01b038316600081815260036020526040908190208054850190555133906000805160206112d9833981519152906105249086815260200190565b80356001600160a01b0381168114610eaa57600080fd5b919050565b600060208284031215610ec157600080fd5b61093682610e93565b600060208083528351808285015260005b81811015610ef757858101830151858201604001528201610edb565b81811115610f09576000604083870101525b50601f01601f1916929092016040019392505050565b60008060408385031215610f3257600080fd5b610f3b83610e93565b946020939093013593505050565b80356001600160e01b031981168114610eaa57600080fd5b600060208284031215610f7357600080fd5b61093682610f49565b803560ff81168114610eaa57600080fd5b80358015158114610eaa57600080fd5b600080600060608486031215610fb257600080fd5b610fbb84610f7c565b9250610fc960208501610f49565b9150610fd760408501610f8d565b90509250925092565b600080600060608486031215610ff557600080fd5b610ffe84610e93565b925061100c60208501610e93565b9150604084013590509250925092565b60006020828403121561102e57600080fd5b5035919050565b6000806040838503121561104857600080fd5b61105183610f49565b915061105f60208401610f8d565b90509250929050565b60008060006060848603121561107d57600080fd5b61108684610e93565b9250610fc960208501610f7c565b600080604083850312156110a757600080fd5b6110b083610e93565b915061105f60208401610f49565b600080600080600080600060e0888a0312156110d957600080fd5b6110e288610e93565b96506110f060208901610e93565b9550604088013594506060880135935061110c60808901610f7c565b925060a0880135915060c0880135905092959891949750929550565b6000806040838503121561113b57600080fd5b61114483610e93565b915061105f60208401610e93565b6000806040838503121561116557600080fd5b6110b083610f7c565b6000806040838503121561118157600080fd5b61118a83610e93565b915061105f60208401610f7c565b600181811c908216806111ac57607f821691505b6020821081036111cc57634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252600c908201526b15539055551213d49256915160a21b604082015260600190565b634e487b7160e01b600052601160045260246000fd5b600082821015611220576112206111f8565b500390565b600080835481600182811c91508083168061124157607f831692505b6020808410820361126057634e487b7160e01b86526022600452602486fd5b8180156112745760018114611285576112b2565b60ff198616895284890196506112b2565b60008a81526020902060005b868110156112aa5781548b820152908501908301611291565b505084890196505b509498975050505050505050565b600082198211156112d3576112d36111f8565b50019056feddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa2646970667358221220df88e78a2d87614af9ad7f2fc454115e3a973aaf7113493854c3f60432830d5e64736f6c634300080d00330000000000000000000000006abfd6139c7c3cc270ee2ce132e309f59caaf6a2

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101735760003560e01c80634b5159da116100de57806395d89b4111610097578063dd62ed3e11610071578063dd62ed3e14610383578063e688747b146103ae578063ea7ca276146103e4578063ed0d0efb1461041b57600080fd5b806395d89b4114610355578063a9059cbb1461035d578063d505accf1461037057600080fd5b80634b5159da146102b157806367aff484146102c457806370a08231146102d75780637ecebe00146102f757806386bed3e0146103175780638da5cb5b1461032a57600080fd5b806318160ddd1161013057806318160ddd1461022e57806323b872dd14610237578063313ce5671461024a5780633644e5151461028357806340c10f191461028b57806342966c681461029e57600080fd5b806306a36aee1461017857806306fdde03146101ab578063095ea7b3146101c05780630bade8a4146101e35780630ea9b75b1461020657806313af40351461021b575b600080fd5b610198610186366004610eaf565b60076020526000908152604090205481565b6040519081526020015b60405180910390f35b6101b361043b565b6040516101a29190610eca565b6101d36101ce366004610f1f565b6104c9565b60405190151581526020016101a2565b6101d36101f1366004610f61565b60086020526000908152604090205460ff1681565b610219610214366004610f9d565b610535565b005b610219610229366004610eaf565b610616565b61019860025481565b6101d3610245366004610fe0565b610694565b6102717f000000000000000000000000000000000000000000000000000000000000001281565b60405160ff90911681526020016101a2565b6101986106db565b610219610299366004610f1f565b610736565b6102196102ac36600461101c565b610776565b6102196102bf366004611035565b610783565b6102196102d2366004611068565b610815565b6101986102e5366004610eaf565b60036020526000908152604090205481565b610198610305366004610eaf565b60056020526000908152604090205481565b6101d3610325366004611094565b6108dd565b60065461033d906001600160a01b031681565b6040516001600160a01b0390911681526020016101a2565b6101b361093d565b6101d361036b366004610f1f565b61094a565b61021961037e3660046110be565b610988565b610198610391366004611128565b600460209081526000928352604080842090915290825290205481565b6101d36103bc366004611152565b6001600160e01b03191660009081526009602052604090205460ff919091161c600116151590565b6101d36103f236600461116e565b6001600160a01b0391909116600090815260076020526040902054600160ff9092161c16151590565b610198610429366004610f61565b60096020526000908152604090205481565b6000805461044890611198565b80601f016020809104026020016040519081016040528092919081815260200182805461047490611198565b80156104c15780601f10610496576101008083540402835291602001916104c1565b820191906000526020600020905b8154815290600101906020018083116104a457829003601f168201915b505050505081565b3360008181526004602090815260408083206001600160a01b038716808552925280832085905551919290917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925906105249086815260200190565b60405180910390a350600192915050565b61054b336000356001600160e01b031916610bcc565b6105705760405162461bcd60e51b8152600401610567906111d2565b60405180910390fd5b80156105a0576001600160e01b0319821660009081526009602052604090208054600160ff86161b1790556105c7565b6001600160e01b0319821660009081526009602052604090208054600160ff86161b191690555b816001600160e01b0319168360ff167fbfe16b2c35ce23dfd1ab0e7b5d086a10060c9b52d1574e1680c881b3b3a2b15183604051610609911515815260200190565b60405180910390a3505050565b61062c336000356001600160e01b031916610bcc565b6106485760405162461bcd60e51b8152600401610567906111d2565b600680546001600160a01b0319166001600160a01b03831690811790915560405133907f8292fce18fa69edf4db7b94ea2e58241df0ae57f97e0a6c9b29067028bf92d7690600090a350565b60006106ac336000356001600160e01b031916610bcc565b6106c85760405162461bcd60e51b8152600401610567906111d2565b6106d3848484610bf7565b949350505050565b60007f000000000000000000000000000000000000000000000000000000000000000146146107115761070c610cd7565b905090565b507f01e6add2f006fb5541b1d8a84959622074d7059bd369fe69c7c7319969c394aa90565b61074c336000356001600160e01b031916610bcc565b6107685760405162461bcd60e51b8152600401610567906111d2565b6107728282610d71565b5050565b6107803382610dcb565b50565b610799336000356001600160e01b031916610bcc565b6107b55760405162461bcd60e51b8152600401610567906111d2565b6001600160e01b03198216600081815260086020908152604091829020805460ff191685151590811790915591519182527f36d28126bef21a4f3765d7fcb7c45cead463ae4c41094ef3b771ede598544103910160405180910390a25050565b61082b336000356001600160e01b031916610bcc565b6108475760405162461bcd60e51b8152600401610567906111d2565b8015610876576001600160a01b03831660009081526007602052604090208054600160ff85161b17905561089c565b6001600160a01b03831660009081526007602052604090208054600160ff85161b191690555b8160ff16836001600160a01b03167f4c9bdd0c8e073eb5eda2250b18d8e5121ff27b62064fbeeeed4869bb99bc5bf283604051610609911515815260200190565b6001600160e01b0319811660009081526008602052604081205460ff168061093657506001600160e01b031982166000908152600960209081526040808320546001600160a01b03871684526007909252909120541615155b9392505050565b6001805461044890611198565b6000610962336000356001600160e01b031916610bcc565b61097e5760405162461bcd60e51b8152600401610567906111d2565b6109368383610e2d565b428410156109d85760405162461bcd60e51b815260206004820152601760248201527f5045524d49545f444541444c494e455f455850495245440000000000000000006044820152606401610567565b600060016109e46106db565b6001600160a01b038a811660008181526005602090815260409182902080546001810190915582517f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c98184015280840194909452938d166060840152608083018c905260a083019390935260c08083018b90528151808403909101815260e08301909152805192019190912061190160f01b6101008301526101028201929092526101228101919091526101420160408051601f198184030181528282528051602091820120600084529083018083525260ff871690820152606081018590526080810184905260a0016020604051602081039080840390855afa158015610af0573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811615801590610b265750876001600160a01b0316816001600160a01b0316145b610b635760405162461bcd60e51b815260206004820152600e60248201526d24a72b20a624a22fa9a4a3a722a960911b6044820152606401610567565b6001600160a01b0390811660009081526004602090815260408083208a8516808552908352928190208990555188815291928a16917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a350505050505050565b6000610bd883836108dd565b8061093657506006546001600160a01b03848116911614905092915050565b6001600160a01b03831660009081526004602090815260408083203384529091528120546000198114610c5357610c2e838261120e565b6001600160a01b03861660009081526004602090815260408083203384529091529020555b6001600160a01b03851660009081526003602052604081208054859290610c7b90849061120e565b90915550506001600160a01b03808516600081815260036020526040908190208054870190555190918716906000805160206112d983398151915290610cc49087815260200190565b60405180910390a3506001949350505050565b60007f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6000604051610d099190611225565b6040805191829003822060208301939093528101919091527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc660608201524660808201523060a082015260c00160405160208183030381529060405280519060200120905090565b8060026000828254610d8391906112c0565b90915550506001600160a01b0382166000818152600360209081526040808320805486019055518481526000805160206112d983398151915291015b60405180910390a35050565b6001600160a01b03821660009081526003602052604081208054839290610df390849061120e565b90915550506002805482900390556040518181526000906001600160a01b038416906000805160206112d983398151915290602001610dbf565b33600090815260036020526040812080548391908390610e4e90849061120e565b90915550506001600160a01b038316600081815260036020526040908190208054850190555133906000805160206112d9833981519152906105249086815260200190565b80356001600160a01b0381168114610eaa57600080fd5b919050565b600060208284031215610ec157600080fd5b61093682610e93565b600060208083528351808285015260005b81811015610ef757858101830151858201604001528201610edb565b81811115610f09576000604083870101525b50601f01601f1916929092016040019392505050565b60008060408385031215610f3257600080fd5b610f3b83610e93565b946020939093013593505050565b80356001600160e01b031981168114610eaa57600080fd5b600060208284031215610f7357600080fd5b61093682610f49565b803560ff81168114610eaa57600080fd5b80358015158114610eaa57600080fd5b600080600060608486031215610fb257600080fd5b610fbb84610f7c565b9250610fc960208501610f49565b9150610fd760408501610f8d565b90509250925092565b600080600060608486031215610ff557600080fd5b610ffe84610e93565b925061100c60208501610e93565b9150604084013590509250925092565b60006020828403121561102e57600080fd5b5035919050565b6000806040838503121561104857600080fd5b61105183610f49565b915061105f60208401610f8d565b90509250929050565b60008060006060848603121561107d57600080fd5b61108684610e93565b9250610fc960208501610f7c565b600080604083850312156110a757600080fd5b6110b083610e93565b915061105f60208401610f49565b600080600080600080600060e0888a0312156110d957600080fd5b6110e288610e93565b96506110f060208901610e93565b9550604088013594506060880135935061110c60808901610f7c565b925060a0880135915060c0880135905092959891949750929550565b6000806040838503121561113b57600080fd5b61114483610e93565b915061105f60208401610e93565b6000806040838503121561116557600080fd5b6110b083610f7c565b6000806040838503121561118157600080fd5b61118a83610e93565b915061105f60208401610f7c565b600181811c908216806111ac57607f821691505b6020821081036111cc57634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252600c908201526b15539055551213d49256915160a21b604082015260600190565b634e487b7160e01b600052601160045260246000fd5b600082821015611220576112206111f8565b500390565b600080835481600182811c91508083168061124157607f831692505b6020808410820361126057634e487b7160e01b86526022600452602486fd5b8180156112745760018114611285576112b2565b60ff198616895284890196506112b2565b60008a81526020902060005b868110156112aa5781548b820152908501908301611291565b505084890196505b509498975050505050505050565b600082198211156112d3576112d36111f8565b50019056feddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa2646970667358221220df88e78a2d87614af9ad7f2fc454115e3a973aaf7113493854c3f60432830d5e64736f6c634300080d0033

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

0000000000000000000000006abfd6139c7c3cc270ee2ce132e309f59caaf6a2

-----Decoded View---------------
Arg [0] : _owner (address): 0x6ABfd6139c7C3CC270ee2Ce132E309F59cAaF6a2

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000006abfd6139c7c3cc270ee2ce132e309f59caaf6a2


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.