ETH Price: $2,433.29 (-2.26%)

Token

Hapee Frens (HPFS)
 

Overview

Max Total Supply

0 HPFS

Holders

526

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A

Other Info

Filtered by Token Holder
jstreet.eth
Balance
7 HPFS
0x0d235ca475917E8143d799f8C4c8b8452906dfE0
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:
HapeeFrens

Compiler Version
v0.8.14+commit.80d49f37

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 5 : HapeeFrens.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity >=0.8.4;

import {ERC721} from "@solmate/tokens/ERC721.sol";
import {Strings} from "@openzeppelin/utils/Strings.sol";
import {Ownable} from "@openzeppelin/access/Ownable.sol";

contract HapeeFrens is Ownable, ERC721 {
    error QueryForNonExistentToken();
    error TokenLimitReached();
    error Greedy();
    error Paused();

    uint8 public paused = 1;

    uint256 public constant MAX_TOKENS = 3000;
    uint8 public constant MAX_MINT_AMOUNT = 7;

    string private baseUri;

    mapping(address => uint8) public minted;
    uint256 public totalMinted = 0;

    constructor() ERC721("Hapee Frens", "HPFS") {}

    modifier whenUnpaused() {
        if (paused == 1) {
            revert Paused();
        }
        _;
    }

    function setBaseURI(string calldata newBaseUri) external onlyOwner {
        baseUri = newBaseUri;
    }

    function pause() external onlyOwner {
        paused = 1;
    }

    function unpause() external onlyOwner {
        paused = 2;
    }

    function mintFren(uint8 amount) external whenUnpaused {
        // Check if 3000 tokes reached
        uint256 _totalMinted = totalMinted;
        if (_totalMinted + amount > MAX_TOKENS) {
            revert TokenLimitReached();
        }

        // Check if address minted more than 7
        uint8 mintedSoFar = minted[msg.sender];
        if (mintedSoFar + amount > MAX_MINT_AMOUNT) {
            revert Greedy();
        }

        minted[msg.sender] += amount;
        totalMinted += amount;
        uint256 baseIndex = _totalMinted + 1;
        for (uint8 i = 0; i < amount; ) {
            _safeMint(msg.sender, baseIndex + i);
            unchecked {
                i++;
            }
        }
    }

    function tokenURI(uint256 id) public view override returns (string memory) {
        if (_ownerOf[id] == address(0)) revert QueryForNonExistentToken();
        return string(abi.encodePacked(baseUri, Strings.toString(id)));
    }
}

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

/// @notice Modern, minimalist, and gas efficient ERC-721 implementation.
/// @author Solmate (https://github.com/Rari-Capital/solmate/blob/main/src/tokens/ERC721.sol)
abstract contract ERC721 {
    /*//////////////////////////////////////////////////////////////
                                 EVENTS
    //////////////////////////////////////////////////////////////*/

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

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

    event ApprovalForAll(address indexed owner, address indexed operator, bool approved);

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

    string public name;

    string public symbol;

    function tokenURI(uint256 id) public view virtual returns (string memory);

    /*//////////////////////////////////////////////////////////////
                      ERC721 BALANCE/OWNER STORAGE
    //////////////////////////////////////////////////////////////*/

    mapping(uint256 => address) internal _ownerOf;

    mapping(address => uint256) internal _balanceOf;

    function ownerOf(uint256 id) public view virtual returns (address owner) {
        require((owner = _ownerOf[id]) != address(0), "NOT_MINTED");
    }

    function balanceOf(address owner) public view virtual returns (uint256) {
        require(owner != address(0), "ZERO_ADDRESS");

        return _balanceOf[owner];
    }

    /*//////////////////////////////////////////////////////////////
                         ERC721 APPROVAL STORAGE
    //////////////////////////////////////////////////////////////*/

    mapping(uint256 => address) public getApproved;

    mapping(address => mapping(address => bool)) public isApprovedForAll;

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

    constructor(string memory _name, string memory _symbol) {
        name = _name;
        symbol = _symbol;
    }

    /*//////////////////////////////////////////////////////////////
                              ERC721 LOGIC
    //////////////////////////////////////////////////////////////*/

    function approve(address spender, uint256 id) public virtual {
        address owner = _ownerOf[id];

        require(msg.sender == owner || isApprovedForAll[owner][msg.sender], "NOT_AUTHORIZED");

        getApproved[id] = spender;

        emit Approval(owner, spender, id);
    }

    function setApprovalForAll(address operator, bool approved) public virtual {
        isApprovedForAll[msg.sender][operator] = approved;

        emit ApprovalForAll(msg.sender, operator, approved);
    }

    function transferFrom(
        address from,
        address to,
        uint256 id
    ) public virtual {
        require(from == _ownerOf[id], "WRONG_FROM");

        require(to != address(0), "INVALID_RECIPIENT");

        require(
            msg.sender == from || isApprovedForAll[from][msg.sender] || msg.sender == getApproved[id],
            "NOT_AUTHORIZED"
        );

        // Underflow of the sender's balance is impossible because we check for
        // ownership above and the recipient's balance can't realistically overflow.
        unchecked {
            _balanceOf[from]--;

            _balanceOf[to]++;
        }

        _ownerOf[id] = to;

        delete getApproved[id];

        emit Transfer(from, to, id);
    }

    function safeTransferFrom(
        address from,
        address to,
        uint256 id
    ) public virtual {
        transferFrom(from, to, id);

        require(
            to.code.length == 0 ||
                ERC721TokenReceiver(to).onERC721Received(msg.sender, from, id, "") ==
                ERC721TokenReceiver.onERC721Received.selector,
            "UNSAFE_RECIPIENT"
        );
    }

    function safeTransferFrom(
        address from,
        address to,
        uint256 id,
        bytes calldata data
    ) public virtual {
        transferFrom(from, to, id);

        require(
            to.code.length == 0 ||
                ERC721TokenReceiver(to).onERC721Received(msg.sender, from, id, data) ==
                ERC721TokenReceiver.onERC721Received.selector,
            "UNSAFE_RECIPIENT"
        );
    }

    /*//////////////////////////////////////////////////////////////
                              ERC165 LOGIC
    //////////////////////////////////////////////////////////////*/

    function supportsInterface(bytes4 interfaceId) public view virtual returns (bool) {
        return
            interfaceId == 0x01ffc9a7 || // ERC165 Interface ID for ERC165
            interfaceId == 0x80ac58cd || // ERC165 Interface ID for ERC721
            interfaceId == 0x5b5e139f; // ERC165 Interface ID for ERC721Metadata
    }

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

    function _mint(address to, uint256 id) internal virtual {
        require(to != address(0), "INVALID_RECIPIENT");

        require(_ownerOf[id] == address(0), "ALREADY_MINTED");

        // Counter overflow is incredibly unrealistic.
        unchecked {
            _balanceOf[to]++;
        }

        _ownerOf[id] = to;

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

    function _burn(uint256 id) internal virtual {
        address owner = _ownerOf[id];

        require(owner != address(0), "NOT_MINTED");

        // Ownership check above ensures no underflow.
        unchecked {
            _balanceOf[owner]--;
        }

        delete _ownerOf[id];

        delete getApproved[id];

        emit Transfer(owner, address(0), id);
    }

    /*//////////////////////////////////////////////////////////////
                        INTERNAL SAFE MINT LOGIC
    //////////////////////////////////////////////////////////////*/

    function _safeMint(address to, uint256 id) internal virtual {
        _mint(to, id);

        require(
            to.code.length == 0 ||
                ERC721TokenReceiver(to).onERC721Received(msg.sender, address(0), id, "") ==
                ERC721TokenReceiver.onERC721Received.selector,
            "UNSAFE_RECIPIENT"
        );
    }

    function _safeMint(
        address to,
        uint256 id,
        bytes memory data
    ) internal virtual {
        _mint(to, id);

        require(
            to.code.length == 0 ||
                ERC721TokenReceiver(to).onERC721Received(msg.sender, address(0), id, data) ==
                ERC721TokenReceiver.onERC721Received.selector,
            "UNSAFE_RECIPIENT"
        );
    }
}

/// @notice A generic interface for a contract which properly accepts ERC721 tokens.
/// @author Solmate (https://github.com/Rari-Capital/solmate/blob/main/src/tokens/ERC721.sol)
abstract contract ERC721TokenReceiver {
    function onERC721Received(
        address,
        address,
        uint256,
        bytes calldata
    ) external virtual returns (bytes4) {
        return ERC721TokenReceiver.onERC721Received.selector;
    }
}

File 3 of 5 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)

pragma solidity ^0.8.0;

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";
    uint8 private constant _ADDRESS_LENGTH = 20;

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        // Inspired by OraclizeAPI's implementation - MIT licence
        // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol

        if (value == 0) {
            return "0";
        }
        uint256 temp = value;
        uint256 digits;
        while (temp != 0) {
            digits++;
            temp /= 10;
        }
        bytes memory buffer = new bytes(digits);
        while (value != 0) {
            digits -= 1;
            buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));
            value /= 10;
        }
        return string(buffer);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        if (value == 0) {
            return "0x00";
        }
        uint256 temp = value;
        uint256 length = 0;
        while (temp != 0) {
            length++;
            temp >>= 8;
        }
        return toHexString(value, length);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
     */
    function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
        bytes memory buffer = new bytes(2 * length + 2);
        buffer[0] = "0";
        buffer[1] = "x";
        for (uint256 i = 2 * length + 1; i > 1; --i) {
            buffer[i] = _HEX_SYMBOLS[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }

    /**
     * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.
     */
    function toHexString(address addr) internal pure returns (string memory) {
        return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);
    }
}

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

pragma solidity ^0.8.0;

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

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

Settings
{
  "remappings": [
    "$/=src/",
    "@ds-test/=lib/ds-test/src/",
    "@forge-std/=lib/forge-std/src/",
    "@openzeppelin/=lib/openzeppelin-contracts/contracts/",
    "@solmate/=lib/solmate/src/",
    "ds-test/=lib/ds-test/src/",
    "forge-std/=lib/forge-std/src/",
    "openzeppelin-contracts/=lib/openzeppelin-contracts/",
    "solmate/=lib/solmate/src/",
    "src/=src/"
  ],
  "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":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"Greedy","type":"error"},{"inputs":[],"name":"Paused","type":"error"},{"inputs":[],"name":"QueryForNonExistentToken","type":"error"},{"inputs":[],"name":"TokenLimitReached","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"MAX_MINT_AMOUNT","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_TOKENS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8","name":"amount","type":"uint8"}],"name":"mintFren","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"minted","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"owner","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newBaseUri","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040526007805460ff191660011790556000600a553480156200002357600080fd5b506040518060400160405280600b81526020016a4861706565204672656e7360a81b815250604051806040016040528060048152602001634850465360e01b8152506200007f62000079620000b360201b60201c565b620000b7565b81516200009490600190602085019062000107565b508051620000aa90600290602084019062000107565b505050620001e9565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b8280546200011590620001ad565b90600052602060002090601f01602090048101928262000139576000855562000184565b82601f106200015457805160ff191683800117855562000184565b8280016001018555821562000184579182015b828111156200018457825182559160200191906001019062000167565b506200019292915062000196565b5090565b5b8082111562000192576000815560010162000197565b600181811c90821680620001c257607f821691505b602082108103620001e357634e487b7160e01b600052602260045260246000fd5b50919050565b61169280620001f96000396000f3fe608060405234801561001057600080fd5b50600436106101735760003560e01c806370a08231116100de578063a2309ff811610097578063e985e9c511610071578063e985e9c514610340578063f2fde38b1461036e578063f47c84c514610381578063fa9b70181461038a57600080fd5b8063a2309ff814610311578063b88d4fde1461031a578063c87b56dd1461032d57600080fd5b806370a08231146102b4578063715018a6146102d55780638456cb59146102dd5780638da5cb5b146102e557806395d89b41146102f6578063a22cb465146102fe57600080fd5b806323b872dd1161013057806323b872dd146102535780633f4ba83a1461026657806342842e0e1461026e57806355f804b3146102815780635c975abb146102945780636352211e146102a157600080fd5b806301ffc9a71461017857806302c3fb41146101a057806306fdde03146101b5578063081812fc146101ca578063095ea7b31461020b5780631e7269c51461021e575b600080fd5b61018b6101863660046110df565b610392565b60405190151581526020015b60405180910390f35b6101b36101ae366004611103565b6103e4565b005b6101bd610517565b6040516101979190611156565b6101f36101d8366004611189565b6005602052600090815260409020546001600160a01b031681565b6040516001600160a01b039091168152602001610197565b6101b36102193660046111b9565b6105a5565b61024161022c3660046111e3565b60096020526000908152604090205460ff1681565b60405160ff9091168152602001610197565b6101b36102613660046111fe565b61068c565b6101b3610853565b6101b361027c3660046111fe565b61088c565b6101b361028f366004611283565b610961565b6007546102419060ff1681565b6101f36102af366004611189565b610997565b6102c76102c23660046111e3565b6109ee565b604051908152602001610197565b6101b3610a51565b6101b3610a87565b6000546001600160a01b03166101f3565b6101bd610ac0565b6101b361030c3660046112c5565b610acd565b6102c7600a5481565b6101b3610328366004611301565b610b39565b6101bd61033b366004611189565b610bf7565b61018b61034e366004611370565b600660209081526000928352604080842090915290825290205460ff1681565b6101b361037c3660046111e3565b610c61565b6102c7610bb881565b610241600781565b60006301ffc9a760e01b6001600160e01b0319831614806103c357506380ac58cd60e01b6001600160e01b03198316145b806103de5750635b5e139f60e01b6001600160e01b03198316145b92915050565b60075460ff1660010361040a576040516313d0ff5960e31b815260040160405180910390fd5b600a54610bb861041d60ff8416836113b9565b111561043c576040516353bb24f960e01b815260040160405180910390fd5b3360009081526009602052604090205460ff16600761045b84836113d1565b60ff16111561047d576040516353dc4cf160e01b815260040160405180910390fd5b336000908152600960205260408120805485929061049f90849060ff166113d1565b92506101000a81548160ff021916908360ff1602179055508260ff16600a60008282546104cc91906113b9565b90915550600090506104df8360016113b9565b905060005b8460ff168160ff161015610510576105083361050360ff8416856113b9565b610cfc565b6001016104e4565b5050505050565b60018054610524906113f6565b80601f0160208091040260200160405190810160405280929190818152602001828054610550906113f6565b801561059d5780601f106105725761010080835404028352916020019161059d565b820191906000526020600020905b81548152906001019060200180831161058057829003601f168201915b505050505081565b6000818152600360205260409020546001600160a01b0316338114806105ee57506001600160a01b038116600090815260066020908152604080832033845290915290205460ff165b6106305760405162461bcd60e51b815260206004820152600e60248201526d1393d517d055551213d49256915160921b60448201526064015b60405180910390fd5b60008281526005602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000818152600360205260409020546001600160a01b038481169116146106e25760405162461bcd60e51b815260206004820152600a60248201526957524f4e475f46524f4d60b01b6044820152606401610627565b6001600160a01b03821661072c5760405162461bcd60e51b81526020600482015260116024820152701253959053125117d49150d25412515395607a1b6044820152606401610627565b336001600160a01b038416148061076657506001600160a01b038316600090815260066020908152604080832033845290915290205460ff165b8061078757506000818152600560205260409020546001600160a01b031633145b6107c45760405162461bcd60e51b815260206004820152600e60248201526d1393d517d055551213d49256915160921b6044820152606401610627565b6001600160a01b0380841660008181526004602090815260408083208054600019019055938616808352848320805460010190558583526003825284832080546001600160a01b03199081168317909155600590925284832080549092169091559251849392917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6000546001600160a01b0316331461087d5760405162461bcd60e51b815260040161062790611430565b6007805460ff19166002179055565b61089783838361068c565b6001600160a01b0382163b15806109405750604051630a85bd0160e11b8082523360048301526001600160a01b03858116602484015260448301849052608060648401526000608484015290919084169063150b7a029060a4016020604051808303816000875af1158015610910573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109349190611465565b6001600160e01b031916145b61095c5760405162461bcd60e51b815260040161062790611482565b505050565b6000546001600160a01b0316331461098b5760405162461bcd60e51b815260040161062790611430565b61095c60088383611030565b6000818152600360205260409020546001600160a01b0316806109e95760405162461bcd60e51b815260206004820152600a6024820152691393d517d3525395115160b21b6044820152606401610627565b919050565b60006001600160a01b038216610a355760405162461bcd60e51b815260206004820152600c60248201526b5a45524f5f4144445245535360a01b6044820152606401610627565b506001600160a01b031660009081526004602052604090205490565b6000546001600160a01b03163314610a7b5760405162461bcd60e51b815260040161062790611430565b610a856000610dcc565b565b6000546001600160a01b03163314610ab15760405162461bcd60e51b815260040161062790611430565b6007805460ff19166001179055565b60028054610524906113f6565b3360008181526006602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b610b4485858561068c565b6001600160a01b0384163b1580610bdb5750604051630a85bd0160e11b808252906001600160a01b0386169063150b7a0290610b8c9033908a908990899089906004016114ac565b6020604051808303816000875af1158015610bab573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bcf9190611465565b6001600160e01b031916145b6105105760405162461bcd60e51b815260040161062790611482565b6000818152600360205260409020546060906001600160a01b0316610c2f576040516302d4aa9360e61b815260040160405180910390fd5b6008610c3a83610e1c565b604051602001610c4b92919061151c565b6040516020818303038152906040529050919050565b6000546001600160a01b03163314610c8b5760405162461bcd60e51b815260040161062790611430565b6001600160a01b038116610cf05760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610627565b610cf981610dcc565b50565b610d068282610f25565b6001600160a01b0382163b1580610dac5750604051630a85bd0160e11b80825233600483015260006024830181905260448301849052608060648401526084830152906001600160a01b0384169063150b7a029060a4016020604051808303816000875af1158015610d7c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610da09190611465565b6001600160e01b031916145b610dc85760405162461bcd60e51b815260040161062790611482565b5050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b606081600003610e435750506040805180820190915260018152600360fc1b602082015290565b8160005b8115610e6d5780610e57816115c2565b9150610e669050600a836115f1565b9150610e47565b60008167ffffffffffffffff811115610e8857610e88611605565b6040519080825280601f01601f191660200182016040528015610eb2576020820181803683370190505b5090505b8415610f1d57610ec760018361161b565b9150610ed4600a86611632565b610edf9060306113b9565b60f81b818381518110610ef457610ef4611646565b60200101906001600160f81b031916908160001a905350610f16600a866115f1565b9450610eb6565b949350505050565b6001600160a01b038216610f6f5760405162461bcd60e51b81526020600482015260116024820152701253959053125117d49150d25412515395607a1b6044820152606401610627565b6000818152600360205260409020546001600160a01b031615610fc55760405162461bcd60e51b815260206004820152600e60248201526d1053149150511657d3525395115160921b6044820152606401610627565b6001600160a01b038216600081815260046020908152604080832080546001019055848352600390915280822080546001600160a01b0319168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b82805461103c906113f6565b90600052602060002090601f01602090048101928261105e57600085556110a4565b82601f106110775782800160ff198235161785556110a4565b828001600101855582156110a4579182015b828111156110a4578235825591602001919060010190611089565b506110b09291506110b4565b5090565b5b808211156110b057600081556001016110b5565b6001600160e01b031981168114610cf957600080fd5b6000602082840312156110f157600080fd5b81356110fc816110c9565b9392505050565b60006020828403121561111557600080fd5b813560ff811681146110fc57600080fd5b60005b83811015611141578181015183820152602001611129565b83811115611150576000848401525b50505050565b6020815260008251806020840152611175816040850160208701611126565b601f01601f19169190910160400192915050565b60006020828403121561119b57600080fd5b5035919050565b80356001600160a01b03811681146109e957600080fd5b600080604083850312156111cc57600080fd5b6111d5836111a2565b946020939093013593505050565b6000602082840312156111f557600080fd5b6110fc826111a2565b60008060006060848603121561121357600080fd5b61121c846111a2565b925061122a602085016111a2565b9150604084013590509250925092565b60008083601f84011261124c57600080fd5b50813567ffffffffffffffff81111561126457600080fd5b60208301915083602082850101111561127c57600080fd5b9250929050565b6000806020838503121561129657600080fd5b823567ffffffffffffffff8111156112ad57600080fd5b6112b98582860161123a565b90969095509350505050565b600080604083850312156112d857600080fd5b6112e1836111a2565b9150602083013580151581146112f657600080fd5b809150509250929050565b60008060008060006080868803121561131957600080fd5b611322866111a2565b9450611330602087016111a2565b935060408601359250606086013567ffffffffffffffff81111561135357600080fd5b61135f8882890161123a565b969995985093965092949392505050565b6000806040838503121561138357600080fd5b61138c836111a2565b915061139a602084016111a2565b90509250929050565b634e487b7160e01b600052601160045260246000fd5b600082198211156113cc576113cc6113a3565b500190565b600060ff821660ff84168060ff038211156113ee576113ee6113a3565b019392505050565b600181811c9082168061140a57607f821691505b60208210810361142a57634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60006020828403121561147757600080fd5b81516110fc816110c9565b60208082526010908201526f155394d0519157d49150d2541251539560821b604082015260600190565b6001600160a01b038681168252851660208201526040810184905260806060820181905281018290526000828460a0840137600060a0848401015260a0601f19601f85011683010190509695505050505050565b60008151611512818560208601611126565b9290920192915050565b600080845481600182811c91508083168061153857607f831692505b6020808410820361155757634e487b7160e01b86526022600452602486fd5b81801561156b576001811461157c576115a9565b60ff198616895284890196506115a9565b60008b81526020902060005b868110156115a15781548b820152908501908301611588565b505084890196505b5050505050506115b98185611500565b95945050505050565b6000600182016115d4576115d46113a3565b5060010190565b634e487b7160e01b600052601260045260246000fd5b600082611600576116006115db565b500490565b634e487b7160e01b600052604160045260246000fd5b60008282101561162d5761162d6113a3565b500390565b600082611641576116416115db565b500690565b634e487b7160e01b600052603260045260246000fdfea2646970667358221220fe0b5121a305f18cda180426a8decd5905c7ca08cfa7c9e61992f0c8563e213864736f6c634300080e0033

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101735760003560e01c806370a08231116100de578063a2309ff811610097578063e985e9c511610071578063e985e9c514610340578063f2fde38b1461036e578063f47c84c514610381578063fa9b70181461038a57600080fd5b8063a2309ff814610311578063b88d4fde1461031a578063c87b56dd1461032d57600080fd5b806370a08231146102b4578063715018a6146102d55780638456cb59146102dd5780638da5cb5b146102e557806395d89b41146102f6578063a22cb465146102fe57600080fd5b806323b872dd1161013057806323b872dd146102535780633f4ba83a1461026657806342842e0e1461026e57806355f804b3146102815780635c975abb146102945780636352211e146102a157600080fd5b806301ffc9a71461017857806302c3fb41146101a057806306fdde03146101b5578063081812fc146101ca578063095ea7b31461020b5780631e7269c51461021e575b600080fd5b61018b6101863660046110df565b610392565b60405190151581526020015b60405180910390f35b6101b36101ae366004611103565b6103e4565b005b6101bd610517565b6040516101979190611156565b6101f36101d8366004611189565b6005602052600090815260409020546001600160a01b031681565b6040516001600160a01b039091168152602001610197565b6101b36102193660046111b9565b6105a5565b61024161022c3660046111e3565b60096020526000908152604090205460ff1681565b60405160ff9091168152602001610197565b6101b36102613660046111fe565b61068c565b6101b3610853565b6101b361027c3660046111fe565b61088c565b6101b361028f366004611283565b610961565b6007546102419060ff1681565b6101f36102af366004611189565b610997565b6102c76102c23660046111e3565b6109ee565b604051908152602001610197565b6101b3610a51565b6101b3610a87565b6000546001600160a01b03166101f3565b6101bd610ac0565b6101b361030c3660046112c5565b610acd565b6102c7600a5481565b6101b3610328366004611301565b610b39565b6101bd61033b366004611189565b610bf7565b61018b61034e366004611370565b600660209081526000928352604080842090915290825290205460ff1681565b6101b361037c3660046111e3565b610c61565b6102c7610bb881565b610241600781565b60006301ffc9a760e01b6001600160e01b0319831614806103c357506380ac58cd60e01b6001600160e01b03198316145b806103de5750635b5e139f60e01b6001600160e01b03198316145b92915050565b60075460ff1660010361040a576040516313d0ff5960e31b815260040160405180910390fd5b600a54610bb861041d60ff8416836113b9565b111561043c576040516353bb24f960e01b815260040160405180910390fd5b3360009081526009602052604090205460ff16600761045b84836113d1565b60ff16111561047d576040516353dc4cf160e01b815260040160405180910390fd5b336000908152600960205260408120805485929061049f90849060ff166113d1565b92506101000a81548160ff021916908360ff1602179055508260ff16600a60008282546104cc91906113b9565b90915550600090506104df8360016113b9565b905060005b8460ff168160ff161015610510576105083361050360ff8416856113b9565b610cfc565b6001016104e4565b5050505050565b60018054610524906113f6565b80601f0160208091040260200160405190810160405280929190818152602001828054610550906113f6565b801561059d5780601f106105725761010080835404028352916020019161059d565b820191906000526020600020905b81548152906001019060200180831161058057829003601f168201915b505050505081565b6000818152600360205260409020546001600160a01b0316338114806105ee57506001600160a01b038116600090815260066020908152604080832033845290915290205460ff165b6106305760405162461bcd60e51b815260206004820152600e60248201526d1393d517d055551213d49256915160921b60448201526064015b60405180910390fd5b60008281526005602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000818152600360205260409020546001600160a01b038481169116146106e25760405162461bcd60e51b815260206004820152600a60248201526957524f4e475f46524f4d60b01b6044820152606401610627565b6001600160a01b03821661072c5760405162461bcd60e51b81526020600482015260116024820152701253959053125117d49150d25412515395607a1b6044820152606401610627565b336001600160a01b038416148061076657506001600160a01b038316600090815260066020908152604080832033845290915290205460ff165b8061078757506000818152600560205260409020546001600160a01b031633145b6107c45760405162461bcd60e51b815260206004820152600e60248201526d1393d517d055551213d49256915160921b6044820152606401610627565b6001600160a01b0380841660008181526004602090815260408083208054600019019055938616808352848320805460010190558583526003825284832080546001600160a01b03199081168317909155600590925284832080549092169091559251849392917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6000546001600160a01b0316331461087d5760405162461bcd60e51b815260040161062790611430565b6007805460ff19166002179055565b61089783838361068c565b6001600160a01b0382163b15806109405750604051630a85bd0160e11b8082523360048301526001600160a01b03858116602484015260448301849052608060648401526000608484015290919084169063150b7a029060a4016020604051808303816000875af1158015610910573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109349190611465565b6001600160e01b031916145b61095c5760405162461bcd60e51b815260040161062790611482565b505050565b6000546001600160a01b0316331461098b5760405162461bcd60e51b815260040161062790611430565b61095c60088383611030565b6000818152600360205260409020546001600160a01b0316806109e95760405162461bcd60e51b815260206004820152600a6024820152691393d517d3525395115160b21b6044820152606401610627565b919050565b60006001600160a01b038216610a355760405162461bcd60e51b815260206004820152600c60248201526b5a45524f5f4144445245535360a01b6044820152606401610627565b506001600160a01b031660009081526004602052604090205490565b6000546001600160a01b03163314610a7b5760405162461bcd60e51b815260040161062790611430565b610a856000610dcc565b565b6000546001600160a01b03163314610ab15760405162461bcd60e51b815260040161062790611430565b6007805460ff19166001179055565b60028054610524906113f6565b3360008181526006602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b610b4485858561068c565b6001600160a01b0384163b1580610bdb5750604051630a85bd0160e11b808252906001600160a01b0386169063150b7a0290610b8c9033908a908990899089906004016114ac565b6020604051808303816000875af1158015610bab573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bcf9190611465565b6001600160e01b031916145b6105105760405162461bcd60e51b815260040161062790611482565b6000818152600360205260409020546060906001600160a01b0316610c2f576040516302d4aa9360e61b815260040160405180910390fd5b6008610c3a83610e1c565b604051602001610c4b92919061151c565b6040516020818303038152906040529050919050565b6000546001600160a01b03163314610c8b5760405162461bcd60e51b815260040161062790611430565b6001600160a01b038116610cf05760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610627565b610cf981610dcc565b50565b610d068282610f25565b6001600160a01b0382163b1580610dac5750604051630a85bd0160e11b80825233600483015260006024830181905260448301849052608060648401526084830152906001600160a01b0384169063150b7a029060a4016020604051808303816000875af1158015610d7c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610da09190611465565b6001600160e01b031916145b610dc85760405162461bcd60e51b815260040161062790611482565b5050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b606081600003610e435750506040805180820190915260018152600360fc1b602082015290565b8160005b8115610e6d5780610e57816115c2565b9150610e669050600a836115f1565b9150610e47565b60008167ffffffffffffffff811115610e8857610e88611605565b6040519080825280601f01601f191660200182016040528015610eb2576020820181803683370190505b5090505b8415610f1d57610ec760018361161b565b9150610ed4600a86611632565b610edf9060306113b9565b60f81b818381518110610ef457610ef4611646565b60200101906001600160f81b031916908160001a905350610f16600a866115f1565b9450610eb6565b949350505050565b6001600160a01b038216610f6f5760405162461bcd60e51b81526020600482015260116024820152701253959053125117d49150d25412515395607a1b6044820152606401610627565b6000818152600360205260409020546001600160a01b031615610fc55760405162461bcd60e51b815260206004820152600e60248201526d1053149150511657d3525395115160921b6044820152606401610627565b6001600160a01b038216600081815260046020908152604080832080546001019055848352600390915280822080546001600160a01b0319168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b82805461103c906113f6565b90600052602060002090601f01602090048101928261105e57600085556110a4565b82601f106110775782800160ff198235161785556110a4565b828001600101855582156110a4579182015b828111156110a4578235825591602001919060010190611089565b506110b09291506110b4565b5090565b5b808211156110b057600081556001016110b5565b6001600160e01b031981168114610cf957600080fd5b6000602082840312156110f157600080fd5b81356110fc816110c9565b9392505050565b60006020828403121561111557600080fd5b813560ff811681146110fc57600080fd5b60005b83811015611141578181015183820152602001611129565b83811115611150576000848401525b50505050565b6020815260008251806020840152611175816040850160208701611126565b601f01601f19169190910160400192915050565b60006020828403121561119b57600080fd5b5035919050565b80356001600160a01b03811681146109e957600080fd5b600080604083850312156111cc57600080fd5b6111d5836111a2565b946020939093013593505050565b6000602082840312156111f557600080fd5b6110fc826111a2565b60008060006060848603121561121357600080fd5b61121c846111a2565b925061122a602085016111a2565b9150604084013590509250925092565b60008083601f84011261124c57600080fd5b50813567ffffffffffffffff81111561126457600080fd5b60208301915083602082850101111561127c57600080fd5b9250929050565b6000806020838503121561129657600080fd5b823567ffffffffffffffff8111156112ad57600080fd5b6112b98582860161123a565b90969095509350505050565b600080604083850312156112d857600080fd5b6112e1836111a2565b9150602083013580151581146112f657600080fd5b809150509250929050565b60008060008060006080868803121561131957600080fd5b611322866111a2565b9450611330602087016111a2565b935060408601359250606086013567ffffffffffffffff81111561135357600080fd5b61135f8882890161123a565b969995985093965092949392505050565b6000806040838503121561138357600080fd5b61138c836111a2565b915061139a602084016111a2565b90509250929050565b634e487b7160e01b600052601160045260246000fd5b600082198211156113cc576113cc6113a3565b500190565b600060ff821660ff84168060ff038211156113ee576113ee6113a3565b019392505050565b600181811c9082168061140a57607f821691505b60208210810361142a57634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60006020828403121561147757600080fd5b81516110fc816110c9565b60208082526010908201526f155394d0519157d49150d2541251539560821b604082015260600190565b6001600160a01b038681168252851660208201526040810184905260806060820181905281018290526000828460a0840137600060a0848401015260a0601f19601f85011683010190509695505050505050565b60008151611512818560208601611126565b9290920192915050565b600080845481600182811c91508083168061153857607f831692505b6020808410820361155757634e487b7160e01b86526022600452602486fd5b81801561156b576001811461157c576115a9565b60ff198616895284890196506115a9565b60008b81526020902060005b868110156115a15781548b820152908501908301611588565b505084890196505b5050505050506115b98185611500565b95945050505050565b6000600182016115d4576115d46113a3565b5060010190565b634e487b7160e01b600052601260045260246000fd5b600082611600576116006115db565b500490565b634e487b7160e01b600052604160045260246000fd5b60008282101561162d5761162d6113a3565b500390565b600082611641576116416115db565b500690565b634e487b7160e01b600052603260045260246000fdfea2646970667358221220fe0b5121a305f18cda180426a8decd5905c7ca08cfa7c9e61992f0c8563e213864736f6c634300080e0033

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.