Feature Tip: Add private address tag to any address under My Name Tag !
ERC-20
Overview
Max Total Supply
99,019.767939814814814757 CARE
Holders
136
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Balance
428.65462962963 CAREValue
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
CareToken
Compiler Version
v0.8.7+commit.e28d00a7
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT // // Spirit Orb Pets Care Token Contract // Developed by: Heartfelt Games LLC // // The CARE token is a utility token for the Spirit Orb Pets game ecosystem. // $CARE is NOT an investment and has NO economic value. // It will be earned by active holding and game interactions within the // Spirit Orb Pets game ecosystem. Each v0 Spirit Orb Pet will be eligible // to claim tokens at a rate of 10 $CARE per day. // pragma solidity ^0.8.7; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import "@openzeppelin/contracts/token/ERC721/IERC721.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol"; interface ISpiritOrbPetsv0 is IERC721, IERC721Enumerable { } interface IOldCareToken is IERC20 { function _emissionStart() external view returns (uint256); function lastClaim(uint256 tokenIndex) external view returns (uint256); } contract CareToken is ERC20 { address public _owner; // This list allows whitelisted contracts to mint or burn care tokens // for the purpose of the game's interactivity. address[] public _approvedMinters; // freezes the ability to mint new tokens to owner of contract bool public _closedMintToOwner = false; // freezes the ability to add or remove contracts from approvedMinters // Only to be used once all current sources of generating CARE are to be // only ones ever to mint in a closed ecosystem. bool public _freezeApprovedMintersList = false; // v0 pet owner related variables ISpiritOrbPetsv0 public SOPV0Contract; // old Care token contract for getting last claimed info IOldCareToken public OldCareToken; uint256 public INITIAL_ALLOTMENT = 100 * (10 ** 18); uint256 public _emissionStart = 0; uint256 public _emissionEnd = 0; uint256 public _emissionPerDay = 10 * (10 ** 18); mapping(uint256 => uint256) private _lastClaim; constructor() ERC20('Spirit Orb Pets Care Token', 'CARE') { // Initial tokens minted for contests, giveaways, and initial liquidity pool _mint(msg.sender, 40000 * 10 ** 18); _owner = msg.sender; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(_owner == msg.sender, "Ownable: caller is not the owner"); _; } /** * @dev in case more is needed for contests, giveaways, and liquidity pool */ function mint(uint256 amount) external onlyOwner { require(!_closedMintToOwner, "Minting to owner is permanently closed."); _mint(msg.sender, amount * 10 ** 18); } /** * @dev burn tokens */ function burn(address account, uint256 amount) external { require(_approvedMinters.length > 0, "There are no approved contracts yet."); require(isApproved(msg.sender), "Address is not approved to burn."); super._burn(account, amount); } /** * @dev If the community decides that the mint to owner function should no * @dev longer be accessable to the contract owner, call this and it will be * @dev permanently disabled. */ function closeMintToOwner() external onlyOwner { // This can only be set to true. _closedMintToOwner = true; } /** * @dev This adds new contracts to the list of contracts that are allowed to * @dev generate new tokens for use in the CARE token system. */ function addApprovedContract(address addr) external onlyOwner { require(_freezeApprovedMintersList == false, "Once frozen, no more contracts can be added or removed."); _approvedMinters.push(addr); } function removeApprovedContract(uint index) external onlyOwner { require(_freezeApprovedMintersList == false, "Once frozen, no more contracts can be added or removed."); _approvedMinters[index] = _approvedMinters[_approvedMinters.length - 1]; _approvedMinters.pop(); } function getApprovedContractList() external view returns (address[] memory) { return _approvedMinters; } /** * @dev Permanently freezes the access list disallowing additions and removals. */ function freezeApprovedMinters() external onlyOwner { require(_freezeApprovedMintersList == false, "Once frozen, no more contracts can be added or removed."); _freezeApprovedMintersList = true; } function isApproved(address addr) internal view returns (bool) { bool approved = false; for (uint i = 0; i < _approvedMinters.length; i++) { if (_approvedMinters[i] == addr) approved = true; } return approved; } /** * @dev Mints new tokens to contracts on the approved minters list. */ function mintToApprovedContract(uint256 amount, address mintToAddress) external { require(_approvedMinters.length > 0, "There are no approved contracts yet."); require(isApproved(msg.sender), "Address is not approved to mint."); _mint(mintToAddress, amount); } function setOwner(address addr) external onlyOwner { _owner = addr; } function setSOPV0Contract(address addr) external onlyOwner { SOPV0Contract = ISpiritOrbPetsv0(addr); } function setOldCareTokenContract(address addr) external onlyOwner { OldCareToken = IOldCareToken(addr); } function beginEmissionOfTokens() external onlyOwner { require(_emissionStart == 0 && _emissionEnd == 0, "Emission timestamps already set!"); _emissionStart = OldCareToken._emissionStart(); _emissionEnd = _emissionStart + (10 * 365 days) + 2 days; // +2 for leap years } function lastClaim(uint256 tokenIndex) public view returns (uint256) { require(SOPV0Contract.ownerOf(tokenIndex) != address(0)); require(tokenIndex < SOPV0Contract.totalSupply(), "Token index is higher than total collection count."); // If tokens have been claimed before on the old contract check which claim was most recent uint256 oldClaim = OldCareToken.lastClaim(tokenIndex); uint256 lastClaimed = oldClaim >= uint256(_lastClaim[tokenIndex]) ? oldClaim : uint256(_lastClaim[tokenIndex]); // If tokens have never been claimed use emissionStart lastClaimed = lastClaimed != 0 ? lastClaimed : _emissionStart; return lastClaimed; } /** * @dev Accumulated CARE tokens for a Hashmask token index. */ function accumulated(uint256 tokenIndex) public view returns (uint256) { require(_emissionStart != 0 && _emissionEnd != 0, "Emission has not started yet"); require(SOPV0Contract.ownerOf(tokenIndex) != address(0), "Owner cannot be 0 address"); require(tokenIndex < SOPV0Contract.totalSupply(), "Token index is higher than total collection count."); uint256 lastClaimed = lastClaim(tokenIndex); // if last claim was on or after emission end, there isn't any left to give if (lastClaimed >= _emissionEnd) return 0; uint256 accumulationPeriod = block.timestamp < _emissionEnd ? block.timestamp : _emissionEnd; // Getting the min value of both uint256 totalAccumulated = (((accumulationPeriod - lastClaimed) * _emissionPerDay) / 1 days); // If claim hasn't been done before for the index, add initial allotment if (lastClaimed == _emissionStart) { totalAccumulated = totalAccumulated + INITIAL_ALLOTMENT; } return totalAccumulated; } /** * @dev Claim mints CARE tokens and supports multiple Hashmask token indices at once. */ function claim(uint256[] memory tokenIndices) public returns (uint256) { require(_emissionStart != 0 && _emissionEnd != 0, "Emission has not started yet"); uint256 totalClaimQty = 0; for (uint i = 0; i < tokenIndices.length; i++) { // Sanity check for non-minted index require(tokenIndices[i] < SOPV0Contract.totalSupply(), "NFT at index has not been minted yet"); // Duplicate token index check for (uint j = i + 1; j < tokenIndices.length; j++) { require(tokenIndices[i] != tokenIndices[j], "Duplicate token index"); } uint tokenIndex = tokenIndices[i]; require(SOPV0Contract.ownerOf(tokenIndex) == msg.sender, "Sender is not the owner"); uint256 claimQty = accumulated(tokenIndex); if (claimQty != 0) { totalClaimQty = totalClaimQty + claimQty; _lastClaim[tokenIndex] = block.timestamp; } } require(totalClaimQty != 0, "No accumulated CARE"); _mint(msg.sender, totalClaimQty); return totalClaimQty; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../IERC20.sol"; /** * @dev Interface for the optional metadata functions from the ERC20 standard. * * _Available since v4.1._ */ interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns the decimals places of the token. */ function decimals() external view returns (uint8); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address sender, address recipient, uint256 amount ) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC20.sol"; import "./extensions/IERC20Metadata.sol"; import "../../utils/Context.sol"; /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our guide * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * We have followed general OpenZeppelin Contracts guidelines: functions revert * instead returning `false` on failure. This behavior is nonetheless * conventional and does not conflict with the expectations of ERC20 * applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {symbol}. * * The default value of {decimals} is 18. To select a different value for * {decimals} you should overload it. * * All two of these values are immutable: they can only be set once during * construction. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev Returns the name of the token. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5.05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the value {ERC20} uses, unless this function is * overridden; * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view virtual override returns (uint8) { return 18; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `recipient` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address recipient, uint256 amount) public virtual override returns (bool) { _transfer(_msgSender(), recipient, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { _approve(_msgSender(), spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * Requirements: * * - `sender` and `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. * - the caller must have allowance for ``sender``'s tokens of at least * `amount`. */ function transferFrom( address sender, address recipient, uint256 amount ) public virtual override returns (bool) { _transfer(sender, recipient, amount); uint256 currentAllowance = _allowances[sender][_msgSender()]; require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance"); unchecked { _approve(sender, _msgSender(), currentAllowance - amount); } return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender] + addedValue); return true; } /** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. * - `spender` must have allowance for the caller of at least * `subtractedValue`. */ function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { uint256 currentAllowance = _allowances[_msgSender()][spender]; require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); unchecked { _approve(_msgSender(), spender, currentAllowance - subtractedValue); } return true; } /** * @dev Moves `amount` of tokens from `sender` to `recipient`. * * This internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `sender` cannot be the zero address. * - `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. */ function _transfer( address sender, address recipient, uint256 amount ) internal virtual { require(sender != address(0), "ERC20: transfer from the zero address"); require(recipient != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(sender, recipient, amount); uint256 senderBalance = _balances[sender]; require(senderBalance >= amount, "ERC20: transfer amount exceeds balance"); unchecked { _balances[sender] = senderBalance - amount; } _balances[recipient] += amount; emit Transfer(sender, recipient, amount); _afterTokenTransfer(sender, recipient, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. */ function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply += amount; _balances[account] += amount; emit Transfer(address(0), account, amount); _afterTokenTransfer(address(0), account, amount); } /** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */ function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); uint256 accountBalance = _balances[account]; require(accountBalance >= amount, "ERC20: burn amount exceeds balance"); unchecked { _balances[account] = accountBalance - amount; } _totalSupply -= amount; emit Transfer(account, address(0), amount); _afterTokenTransfer(account, address(0), amount); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. */ function _approve( address owner, address spender, uint256 amount ) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 amount ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * has been transferred to `to`. * - when `from` is zero, `amount` tokens have been minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens have been burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 amount ) internal virtual {} }
{ "remappings": [], "optimizer": { "enabled": true, "runs": 200 }, "evmVersion": "london", "libraries": {}, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"INITIAL_ALLOTMENT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"OldCareToken","outputs":[{"internalType":"contract IOldCareToken","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SOPV0Contract","outputs":[{"internalType":"contract ISpiritOrbPetsv0","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"_approvedMinters","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_closedMintToOwner","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_emissionEnd","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_emissionPerDay","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_emissionStart","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_freezeApprovedMintersList","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenIndex","type":"uint256"}],"name":"accumulated","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"addApprovedContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"beginEmissionOfTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIndices","type":"uint256[]"}],"name":"claim","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"closeMintToOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"freezeApprovedMinters","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getApprovedContractList","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenIndex","type":"uint256"}],"name":"lastClaim","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"mintToAddress","type":"address"}],"name":"mintToApprovedContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"removeApprovedContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"setOldCareTokenContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"setOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"setSOPV0Contract","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":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040526007805461ffff1916905568056bc75e2d631000006009556000600a819055600b55678ac7230489e80000600c553480156200003f57600080fd5b50604080518082018252601a81527f537069726974204f72622050657473204361726520546f6b656e0000000000006020808301918252835180850190945260048452634341524560e01b908401528151919291620000a191600391620001d6565b508051620000b7906004906020840190620001d6565b505050620000d633690878678326eac9000000620000ee60201b60201c565b600580546001600160a01b03191633179055620002e0565b6001600160a01b038216620001495760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640160405180910390fd5b80600260008282546200015d91906200027c565b90915550506001600160a01b038216600090815260208190526040812080548392906200018c9084906200027c565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b828054620001e490620002a3565b90600052602060002090601f01602090048101928262000208576000855562000253565b82601f106200022357805160ff191683800117855562000253565b8280016001018555821562000253579182015b828111156200025357825182559160200191906001019062000236565b506200026192915062000265565b5090565b5b8082111562000261576000815560010162000266565b600082198211156200029e57634e487b7160e01b600052601160045260246000fd5b500190565b600181811c90821680620002b857607f821691505b60208210811415620002da57634e487b7160e01b600052602260045260246000fd5b50919050565b61209380620002f06000396000f3fe608060405234801561001057600080fd5b506004361061021c5760003560e01c806370a0823111610125578063b2bdfa7b116100ad578063ce72d21e1161007c578063ce72d21e14610472578063d13b8b471461047f578063d3c0029c14610487578063dd62ed3e1461049a578063f8719dbb146104d357600080fd5b8063b2bdfa7b14610424578063c2f2941114610437578063c607cde71461044a578063c8f5705a1461045d57600080fd5b806395d89b41116100f457806395d89b41146103d05780639dc29fac146103d8578063a0712d68146103eb578063a457c2d7146103fe578063a9059cbb1461041157600080fd5b806370a08231146103825780637b11f754146103ab5780638780a616146103b457806390d177a3146103bd57600080fd5b8063350171bc116101a85780633d3728b5116101775780633d3728b5146103065780635b6b6758146103195780635f3c63391461034a57806369e286ef1461035c5780636ba4c1381461036f57600080fd5b8063350171bc146102d9578063367df165146102e157806339509351146102ea5780633cc1dbd9146102fd57600080fd5b806318160ddd116101ef57806318160ddd1461028a57806323b872dd1461029c57806328910e34146102af5780632a0fff90146102c2578063313ce567146102ca57600080fd5b806306fdde0314610221578063095ea7b31461023f578063135171be1461026257806313af403514610277575b600080fd5b6102296104e6565b6040516102369190611dad565b60405180910390f35b61025261024d366004611c18565b610578565b6040519015158152602001610236565b610275610270366004611b5d565b61058e565b005b610275610285366004611b5d565b61063b565b6002545b604051908152602001610236565b6102526102aa366004611bd7565b610687565b6102756102bd366004611d09565b610731565b610275610833565b60405160128152602001610236565b610275610896565b61028e60095481565b6102526102f8366004611c18565b6108cf565b61028e600a5481565b61028e610314366004611d09565b61090b565b600754610332906201000090046001600160a01b031681565b6040516001600160a01b039091168152602001610236565b60075461025290610100900460ff1681565b61027561036a366004611b5d565b610b17565b61028e61037d366004611c44565b610b63565b61028e610390366004611b5d565b6001600160a01b031660009081526020819052604090205490565b61028e600c5481565b61028e600b5481565b6103326103cb366004611d09565b610f0e565b610229610f38565b6102756103e6366004611c18565b610f47565b6102756103f9366004611d09565b610fc9565b61025261040c366004611c18565b611074565b61025261041f366004611c18565b61110d565b600554610332906001600160a01b031681565b600854610332906001600160a01b031681565b61028e610458366004611d09565b61111a565b61046561137b565b6040516102369190611d60565b6007546102529060ff1681565b6102756113dc565b610275610495366004611d3b565b61150d565b61028e6104a8366004611b9e565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6102756104e1366004611b5d565b61158b565b6060600380546104f590611f9a565b80601f016020809104026020016040519081016040528092919081815260200182805461052190611f9a565b801561056e5780601f106105435761010080835404028352916020019161056e565b820191906000526020600020905b81548152906001019060200180831161055157829003601f168201915b5050505050905090565b60006105853384846115df565b50600192915050565b6005546001600160a01b031633146105c15760405162461bcd60e51b81526004016105b890611ea3565b60405180910390fd5b600754610100900460ff16156105e95760405162461bcd60e51b81526004016105b890611e02565b600680546001810182556000919091527ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d3f0180546001600160a01b0319166001600160a01b0392909216919091179055565b6005546001600160a01b031633146106655760405162461bcd60e51b81526004016105b890611ea3565b600580546001600160a01b0319166001600160a01b0392909216919091179055565b6000610694848484611704565b6001600160a01b0384166000908152600160209081526040808320338452909152902054828110156107195760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b60648201526084016105b8565b61072685338584036115df565b506001949350505050565b6005546001600160a01b0316331461075b5760405162461bcd60e51b81526004016105b890611ea3565b600754610100900460ff16156107835760405162461bcd60e51b81526004016105b890611e02565b6006805461079390600190611f83565b815481106107a3576107a361201c565b600091825260209091200154600680546001600160a01b0390921691839081106107cf576107cf61201c565b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b03160217905550600680548061080e5761080e612006565b600082815260209020810160001990810180546001600160a01b031916905501905550565b6005546001600160a01b0316331461085d5760405162461bcd60e51b81526004016105b890611ea3565b600754610100900460ff16156108855760405162461bcd60e51b81526004016105b890611e02565b6007805461ff001916610100179055565b6005546001600160a01b031633146108c05760405162461bcd60e51b81526004016105b890611ea3565b6007805460ff19166001179055565b3360008181526001602090815260408083206001600160a01b03871684529091528120549091610585918590610906908690611f2a565b6115df565b6007546040516331a9108f60e11b81526000918291620100009091046001600160a01b031690636352211e9061094990869060040190815260200190565b60206040518083038186803b15801561096157600080fd5b505afa158015610975573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109999190611b81565b6001600160a01b031614156109ad57600080fd5b600760029054906101000a90046001600160a01b03166001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b1580156109fb57600080fd5b505afa158015610a0f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a339190611d22565b8210610a515760405162461bcd60e51b81526004016105b890611ed8565b600854604051633d3728b560e01b8152600481018490526000916001600160a01b031690633d3728b59060240160206040518083038186803b158015610a9657600080fd5b505afa158015610aaa573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ace9190611d22565b6000848152600d602052604081205491925090821015610afc576000848152600d6020526040902054610afe565b815b905080610b0d57600a54610b0f565b805b949350505050565b6005546001600160a01b03163314610b415760405162461bcd60e51b81526004016105b890611ea3565b600880546001600160a01b0319166001600160a01b0392909216919091179055565b6000600a54600014158015610b795750600b5415155b610bc55760405162461bcd60e51b815260206004820152601c60248201527f456d697373696f6e20686173206e6f742073746172746564207965740000000060448201526064016105b8565b6000805b8351811015610eba57600760029054906101000a90046001600160a01b03166001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b158015610c2057600080fd5b505afa158015610c34573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c589190611d22565b848281518110610c6a57610c6a61201c565b602002602001015110610ccb5760405162461bcd60e51b8152602060048201526024808201527f4e465420617420696e64657820686173206e6f74206265656e206d696e746564604482015263081e595d60e21b60648201526084016105b8565b6000610cd8826001611f2a565b90505b8451811015610d7057848181518110610cf657610cf661201c565b6020026020010151858381518110610d1057610d1061201c565b60200260200101511415610d5e5760405162461bcd60e51b8152602060048201526015602482015274088eae0d8d2c6c2e8ca40e8ded6cadc40d2dcc8caf605b1b60448201526064016105b8565b80610d6881611fd5565b915050610cdb565b506000848281518110610d8557610d8561201c565b60209081029190910101516007546040516331a9108f60e11b81529192503391620100009091046001600160a01b031690636352211e90610dce90859060040190815260200190565b60206040518083038186803b158015610de657600080fd5b505afa158015610dfa573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e1e9190611b81565b6001600160a01b031614610e745760405162461bcd60e51b815260206004820152601760248201527f53656e646572206973206e6f7420746865206f776e657200000000000000000060448201526064016105b8565b6000610e7f8261111a565b90508015610ea557610e918185611f2a565b6000838152600d6020526040902042905593505b50508080610eb290611fd5565b915050610bc9565b5080610efe5760405162461bcd60e51b81526020600482015260136024820152724e6f20616363756d756c61746564204341524560681b60448201526064016105b8565b610f0833826118d3565b92915050565b60068181548110610f1e57600080fd5b6000918252602090912001546001600160a01b0316905081565b6060600480546104f590611f9a565b600654610f665760405162461bcd60e51b81526004016105b890611e5f565b610f6f336119b2565b610fbb5760405162461bcd60e51b815260206004820181905260248201527f41646472657373206973206e6f7420617070726f76656420746f206275726e2e60448201526064016105b8565b610fc58282611a17565b5050565b6005546001600160a01b03163314610ff35760405162461bcd60e51b81526004016105b890611ea3565b60075460ff16156110565760405162461bcd60e51b815260206004820152602760248201527f4d696e74696e6720746f206f776e6572206973207065726d616e656e746c792060448201526631b637b9b2b21760c91b60648201526084016105b8565b6110713361106c83670de0b6b3a7640000611f64565b6118d3565b50565b3360009081526001602090815260408083206001600160a01b0386168452909152812054828110156110f65760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084016105b8565b61110333858584036115df565b5060019392505050565b6000610585338484611704565b6000600a546000141580156111305750600b5415155b61117c5760405162461bcd60e51b815260206004820152601c60248201527f456d697373696f6e20686173206e6f742073746172746564207965740000000060448201526064016105b8565b6007546040516331a9108f60e11b8152600481018490526000916201000090046001600160a01b031690636352211e9060240160206040518083038186803b1580156111c757600080fd5b505afa1580156111db573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111ff9190611b81565b6001600160a01b031614156112565760405162461bcd60e51b815260206004820152601960248201527f4f776e65722063616e6e6f74206265203020616464726573730000000000000060448201526064016105b8565b600760029054906101000a90046001600160a01b03166001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b1580156112a457600080fd5b505afa1580156112b8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112dc9190611d22565b82106112fa5760405162461bcd60e51b81526004016105b890611ed8565b60006113058361090b565b9050600b5481106113195750600092915050565b6000600b54421061132c57600b5461132e565b425b9050600062015180600c5484846113459190611f83565b61134f9190611f64565b6113599190611f42565b9050600a54831415610b0f576009546113729082611f2a565b95945050505050565b6060600680548060200260200160405190810160405280929190818152602001828054801561056e57602002820191906000526020600020905b81546001600160a01b031681526001909101906020018083116113b5575050505050905090565b6005546001600160a01b031633146114065760405162461bcd60e51b81526004016105b890611ea3565b600a541580156114165750600b54155b6114625760405162461bcd60e51b815260206004820181905260248201527f456d697373696f6e2074696d657374616d707320616c7265616479207365742160448201526064016105b8565b600860009054906101000a90046001600160a01b03166001600160a01b0316633cc1dbd96040518163ffffffff1660e01b815260040160206040518083038186803b1580156114b057600080fd5b505afa1580156114c4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114e89190611d22565b600a8190556114fb906312cc0300611f2a565b611508906202a300611f2a565b600b55565b60065461152c5760405162461bcd60e51b81526004016105b890611e5f565b611535336119b2565b6115815760405162461bcd60e51b815260206004820181905260248201527f41646472657373206973206e6f7420617070726f76656420746f206d696e742e60448201526064016105b8565b610fc581836118d3565b6005546001600160a01b031633146115b55760405162461bcd60e51b81526004016105b890611ea3565b600780546001600160a01b03909216620100000262010000600160b01b0319909216919091179055565b6001600160a01b0383166116415760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016105b8565b6001600160a01b0382166116a25760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016105b8565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6001600160a01b0383166117685760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b60648201526084016105b8565b6001600160a01b0382166117ca5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b60648201526084016105b8565b6001600160a01b038316600090815260208190526040902054818110156118425760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b60648201526084016105b8565b6001600160a01b03808516600090815260208190526040808220858503905591851681529081208054849290611879908490611f2a565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516118c591815260200190565b60405180910390a350505050565b6001600160a01b0382166119295760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016105b8565b806002600082825461193b9190611f2a565b90915550506001600160a01b03821660009081526020819052604081208054839290611968908490611f2a565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b600080805b600654811015611a1057836001600160a01b0316600682815481106119de576119de61201c565b6000918252602090912001546001600160a01b031614156119fe57600191505b80611a0881611fd5565b9150506119b7565b5092915050565b6001600160a01b038216611a775760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b60648201526084016105b8565b6001600160a01b03821660009081526020819052604090205481811015611aeb5760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b60648201526084016105b8565b6001600160a01b0383166000908152602081905260408120838303905560028054849290611b1a908490611f83565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906020016116f7565b600060208284031215611b6f57600080fd5b8135611b7a81612048565b9392505050565b600060208284031215611b9357600080fd5b8151611b7a81612048565b60008060408385031215611bb157600080fd5b8235611bbc81612048565b91506020830135611bcc81612048565b809150509250929050565b600080600060608486031215611bec57600080fd5b8335611bf781612048565b92506020840135611c0781612048565b929592945050506040919091013590565b60008060408385031215611c2b57600080fd5b8235611c3681612048565b946020939093013593505050565b60006020808385031215611c5757600080fd5b823567ffffffffffffffff80821115611c6f57600080fd5b818501915085601f830112611c8357600080fd5b813581811115611c9557611c95612032565b8060051b604051601f19603f83011681018181108582111715611cba57611cba612032565b604052828152858101935084860182860187018a1015611cd957600080fd5b600095505b83861015611cfc578035855260019590950194938601938601611cde565b5098975050505050505050565b600060208284031215611d1b57600080fd5b5035919050565b600060208284031215611d3457600080fd5b5051919050565b60008060408385031215611d4e57600080fd5b823591506020830135611bcc81612048565b6020808252825182820181905260009190848201906040850190845b81811015611da15783516001600160a01b031683529284019291840191600101611d7c565b50909695505050505050565b600060208083528351808285015260005b81811015611dda57858101830151858201604001528201611dbe565b81811115611dec576000604083870101525b50601f01601f1916929092016040019392505050565b60208082526037908201527f4f6e63652066726f7a656e2c206e6f206d6f726520636f6e747261637473206360408201527f616e206265206164646564206f722072656d6f7665642e000000000000000000606082015260800190565b60208082526024908201527f546865726520617265206e6f20617070726f76656420636f6e747261637473206040820152633cb2ba1760e11b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526032908201527f546f6b656e20696e64657820697320686967686572207468616e20746f74616c6040820152711031b7b63632b1ba34b7b71031b7bab73a1760711b606082015260800190565b60008219821115611f3d57611f3d611ff0565b500190565b600082611f5f57634e487b7160e01b600052601260045260246000fd5b500490565b6000816000190483118215151615611f7e57611f7e611ff0565b500290565b600082821015611f9557611f95611ff0565b500390565b600181811c90821680611fae57607f821691505b60208210811415611fcf57634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415611fe957611fe9611ff0565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b038116811461107157600080fdfea2646970667358221220d1902a846f3dda8c9bb2b3c6a1221221226d6b2d27a7837de5b0c3e342bcbae064736f6c63430008070033
Deployed Bytecode
0x608060405234801561001057600080fd5b506004361061021c5760003560e01c806370a0823111610125578063b2bdfa7b116100ad578063ce72d21e1161007c578063ce72d21e14610472578063d13b8b471461047f578063d3c0029c14610487578063dd62ed3e1461049a578063f8719dbb146104d357600080fd5b8063b2bdfa7b14610424578063c2f2941114610437578063c607cde71461044a578063c8f5705a1461045d57600080fd5b806395d89b41116100f457806395d89b41146103d05780639dc29fac146103d8578063a0712d68146103eb578063a457c2d7146103fe578063a9059cbb1461041157600080fd5b806370a08231146103825780637b11f754146103ab5780638780a616146103b457806390d177a3146103bd57600080fd5b8063350171bc116101a85780633d3728b5116101775780633d3728b5146103065780635b6b6758146103195780635f3c63391461034a57806369e286ef1461035c5780636ba4c1381461036f57600080fd5b8063350171bc146102d9578063367df165146102e157806339509351146102ea5780633cc1dbd9146102fd57600080fd5b806318160ddd116101ef57806318160ddd1461028a57806323b872dd1461029c57806328910e34146102af5780632a0fff90146102c2578063313ce567146102ca57600080fd5b806306fdde0314610221578063095ea7b31461023f578063135171be1461026257806313af403514610277575b600080fd5b6102296104e6565b6040516102369190611dad565b60405180910390f35b61025261024d366004611c18565b610578565b6040519015158152602001610236565b610275610270366004611b5d565b61058e565b005b610275610285366004611b5d565b61063b565b6002545b604051908152602001610236565b6102526102aa366004611bd7565b610687565b6102756102bd366004611d09565b610731565b610275610833565b60405160128152602001610236565b610275610896565b61028e60095481565b6102526102f8366004611c18565b6108cf565b61028e600a5481565b61028e610314366004611d09565b61090b565b600754610332906201000090046001600160a01b031681565b6040516001600160a01b039091168152602001610236565b60075461025290610100900460ff1681565b61027561036a366004611b5d565b610b17565b61028e61037d366004611c44565b610b63565b61028e610390366004611b5d565b6001600160a01b031660009081526020819052604090205490565b61028e600c5481565b61028e600b5481565b6103326103cb366004611d09565b610f0e565b610229610f38565b6102756103e6366004611c18565b610f47565b6102756103f9366004611d09565b610fc9565b61025261040c366004611c18565b611074565b61025261041f366004611c18565b61110d565b600554610332906001600160a01b031681565b600854610332906001600160a01b031681565b61028e610458366004611d09565b61111a565b61046561137b565b6040516102369190611d60565b6007546102529060ff1681565b6102756113dc565b610275610495366004611d3b565b61150d565b61028e6104a8366004611b9e565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6102756104e1366004611b5d565b61158b565b6060600380546104f590611f9a565b80601f016020809104026020016040519081016040528092919081815260200182805461052190611f9a565b801561056e5780601f106105435761010080835404028352916020019161056e565b820191906000526020600020905b81548152906001019060200180831161055157829003601f168201915b5050505050905090565b60006105853384846115df565b50600192915050565b6005546001600160a01b031633146105c15760405162461bcd60e51b81526004016105b890611ea3565b60405180910390fd5b600754610100900460ff16156105e95760405162461bcd60e51b81526004016105b890611e02565b600680546001810182556000919091527ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d3f0180546001600160a01b0319166001600160a01b0392909216919091179055565b6005546001600160a01b031633146106655760405162461bcd60e51b81526004016105b890611ea3565b600580546001600160a01b0319166001600160a01b0392909216919091179055565b6000610694848484611704565b6001600160a01b0384166000908152600160209081526040808320338452909152902054828110156107195760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b60648201526084016105b8565b61072685338584036115df565b506001949350505050565b6005546001600160a01b0316331461075b5760405162461bcd60e51b81526004016105b890611ea3565b600754610100900460ff16156107835760405162461bcd60e51b81526004016105b890611e02565b6006805461079390600190611f83565b815481106107a3576107a361201c565b600091825260209091200154600680546001600160a01b0390921691839081106107cf576107cf61201c565b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b03160217905550600680548061080e5761080e612006565b600082815260209020810160001990810180546001600160a01b031916905501905550565b6005546001600160a01b0316331461085d5760405162461bcd60e51b81526004016105b890611ea3565b600754610100900460ff16156108855760405162461bcd60e51b81526004016105b890611e02565b6007805461ff001916610100179055565b6005546001600160a01b031633146108c05760405162461bcd60e51b81526004016105b890611ea3565b6007805460ff19166001179055565b3360008181526001602090815260408083206001600160a01b03871684529091528120549091610585918590610906908690611f2a565b6115df565b6007546040516331a9108f60e11b81526000918291620100009091046001600160a01b031690636352211e9061094990869060040190815260200190565b60206040518083038186803b15801561096157600080fd5b505afa158015610975573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109999190611b81565b6001600160a01b031614156109ad57600080fd5b600760029054906101000a90046001600160a01b03166001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b1580156109fb57600080fd5b505afa158015610a0f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a339190611d22565b8210610a515760405162461bcd60e51b81526004016105b890611ed8565b600854604051633d3728b560e01b8152600481018490526000916001600160a01b031690633d3728b59060240160206040518083038186803b158015610a9657600080fd5b505afa158015610aaa573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ace9190611d22565b6000848152600d602052604081205491925090821015610afc576000848152600d6020526040902054610afe565b815b905080610b0d57600a54610b0f565b805b949350505050565b6005546001600160a01b03163314610b415760405162461bcd60e51b81526004016105b890611ea3565b600880546001600160a01b0319166001600160a01b0392909216919091179055565b6000600a54600014158015610b795750600b5415155b610bc55760405162461bcd60e51b815260206004820152601c60248201527f456d697373696f6e20686173206e6f742073746172746564207965740000000060448201526064016105b8565b6000805b8351811015610eba57600760029054906101000a90046001600160a01b03166001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b158015610c2057600080fd5b505afa158015610c34573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c589190611d22565b848281518110610c6a57610c6a61201c565b602002602001015110610ccb5760405162461bcd60e51b8152602060048201526024808201527f4e465420617420696e64657820686173206e6f74206265656e206d696e746564604482015263081e595d60e21b60648201526084016105b8565b6000610cd8826001611f2a565b90505b8451811015610d7057848181518110610cf657610cf661201c565b6020026020010151858381518110610d1057610d1061201c565b60200260200101511415610d5e5760405162461bcd60e51b8152602060048201526015602482015274088eae0d8d2c6c2e8ca40e8ded6cadc40d2dcc8caf605b1b60448201526064016105b8565b80610d6881611fd5565b915050610cdb565b506000848281518110610d8557610d8561201c565b60209081029190910101516007546040516331a9108f60e11b81529192503391620100009091046001600160a01b031690636352211e90610dce90859060040190815260200190565b60206040518083038186803b158015610de657600080fd5b505afa158015610dfa573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e1e9190611b81565b6001600160a01b031614610e745760405162461bcd60e51b815260206004820152601760248201527f53656e646572206973206e6f7420746865206f776e657200000000000000000060448201526064016105b8565b6000610e7f8261111a565b90508015610ea557610e918185611f2a565b6000838152600d6020526040902042905593505b50508080610eb290611fd5565b915050610bc9565b5080610efe5760405162461bcd60e51b81526020600482015260136024820152724e6f20616363756d756c61746564204341524560681b60448201526064016105b8565b610f0833826118d3565b92915050565b60068181548110610f1e57600080fd5b6000918252602090912001546001600160a01b0316905081565b6060600480546104f590611f9a565b600654610f665760405162461bcd60e51b81526004016105b890611e5f565b610f6f336119b2565b610fbb5760405162461bcd60e51b815260206004820181905260248201527f41646472657373206973206e6f7420617070726f76656420746f206275726e2e60448201526064016105b8565b610fc58282611a17565b5050565b6005546001600160a01b03163314610ff35760405162461bcd60e51b81526004016105b890611ea3565b60075460ff16156110565760405162461bcd60e51b815260206004820152602760248201527f4d696e74696e6720746f206f776e6572206973207065726d616e656e746c792060448201526631b637b9b2b21760c91b60648201526084016105b8565b6110713361106c83670de0b6b3a7640000611f64565b6118d3565b50565b3360009081526001602090815260408083206001600160a01b0386168452909152812054828110156110f65760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084016105b8565b61110333858584036115df565b5060019392505050565b6000610585338484611704565b6000600a546000141580156111305750600b5415155b61117c5760405162461bcd60e51b815260206004820152601c60248201527f456d697373696f6e20686173206e6f742073746172746564207965740000000060448201526064016105b8565b6007546040516331a9108f60e11b8152600481018490526000916201000090046001600160a01b031690636352211e9060240160206040518083038186803b1580156111c757600080fd5b505afa1580156111db573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111ff9190611b81565b6001600160a01b031614156112565760405162461bcd60e51b815260206004820152601960248201527f4f776e65722063616e6e6f74206265203020616464726573730000000000000060448201526064016105b8565b600760029054906101000a90046001600160a01b03166001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b1580156112a457600080fd5b505afa1580156112b8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112dc9190611d22565b82106112fa5760405162461bcd60e51b81526004016105b890611ed8565b60006113058361090b565b9050600b5481106113195750600092915050565b6000600b54421061132c57600b5461132e565b425b9050600062015180600c5484846113459190611f83565b61134f9190611f64565b6113599190611f42565b9050600a54831415610b0f576009546113729082611f2a565b95945050505050565b6060600680548060200260200160405190810160405280929190818152602001828054801561056e57602002820191906000526020600020905b81546001600160a01b031681526001909101906020018083116113b5575050505050905090565b6005546001600160a01b031633146114065760405162461bcd60e51b81526004016105b890611ea3565b600a541580156114165750600b54155b6114625760405162461bcd60e51b815260206004820181905260248201527f456d697373696f6e2074696d657374616d707320616c7265616479207365742160448201526064016105b8565b600860009054906101000a90046001600160a01b03166001600160a01b0316633cc1dbd96040518163ffffffff1660e01b815260040160206040518083038186803b1580156114b057600080fd5b505afa1580156114c4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114e89190611d22565b600a8190556114fb906312cc0300611f2a565b611508906202a300611f2a565b600b55565b60065461152c5760405162461bcd60e51b81526004016105b890611e5f565b611535336119b2565b6115815760405162461bcd60e51b815260206004820181905260248201527f41646472657373206973206e6f7420617070726f76656420746f206d696e742e60448201526064016105b8565b610fc581836118d3565b6005546001600160a01b031633146115b55760405162461bcd60e51b81526004016105b890611ea3565b600780546001600160a01b03909216620100000262010000600160b01b0319909216919091179055565b6001600160a01b0383166116415760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016105b8565b6001600160a01b0382166116a25760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016105b8565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6001600160a01b0383166117685760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b60648201526084016105b8565b6001600160a01b0382166117ca5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b60648201526084016105b8565b6001600160a01b038316600090815260208190526040902054818110156118425760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b60648201526084016105b8565b6001600160a01b03808516600090815260208190526040808220858503905591851681529081208054849290611879908490611f2a565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516118c591815260200190565b60405180910390a350505050565b6001600160a01b0382166119295760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016105b8565b806002600082825461193b9190611f2a565b90915550506001600160a01b03821660009081526020819052604081208054839290611968908490611f2a565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b600080805b600654811015611a1057836001600160a01b0316600682815481106119de576119de61201c565b6000918252602090912001546001600160a01b031614156119fe57600191505b80611a0881611fd5565b9150506119b7565b5092915050565b6001600160a01b038216611a775760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b60648201526084016105b8565b6001600160a01b03821660009081526020819052604090205481811015611aeb5760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b60648201526084016105b8565b6001600160a01b0383166000908152602081905260408120838303905560028054849290611b1a908490611f83565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906020016116f7565b600060208284031215611b6f57600080fd5b8135611b7a81612048565b9392505050565b600060208284031215611b9357600080fd5b8151611b7a81612048565b60008060408385031215611bb157600080fd5b8235611bbc81612048565b91506020830135611bcc81612048565b809150509250929050565b600080600060608486031215611bec57600080fd5b8335611bf781612048565b92506020840135611c0781612048565b929592945050506040919091013590565b60008060408385031215611c2b57600080fd5b8235611c3681612048565b946020939093013593505050565b60006020808385031215611c5757600080fd5b823567ffffffffffffffff80821115611c6f57600080fd5b818501915085601f830112611c8357600080fd5b813581811115611c9557611c95612032565b8060051b604051601f19603f83011681018181108582111715611cba57611cba612032565b604052828152858101935084860182860187018a1015611cd957600080fd5b600095505b83861015611cfc578035855260019590950194938601938601611cde565b5098975050505050505050565b600060208284031215611d1b57600080fd5b5035919050565b600060208284031215611d3457600080fd5b5051919050565b60008060408385031215611d4e57600080fd5b823591506020830135611bcc81612048565b6020808252825182820181905260009190848201906040850190845b81811015611da15783516001600160a01b031683529284019291840191600101611d7c565b50909695505050505050565b600060208083528351808285015260005b81811015611dda57858101830151858201604001528201611dbe565b81811115611dec576000604083870101525b50601f01601f1916929092016040019392505050565b60208082526037908201527f4f6e63652066726f7a656e2c206e6f206d6f726520636f6e747261637473206360408201527f616e206265206164646564206f722072656d6f7665642e000000000000000000606082015260800190565b60208082526024908201527f546865726520617265206e6f20617070726f76656420636f6e747261637473206040820152633cb2ba1760e11b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526032908201527f546f6b656e20696e64657820697320686967686572207468616e20746f74616c6040820152711031b7b63632b1ba34b7b71031b7bab73a1760711b606082015260800190565b60008219821115611f3d57611f3d611ff0565b500190565b600082611f5f57634e487b7160e01b600052601260045260246000fd5b500490565b6000816000190483118215151615611f7e57611f7e611ff0565b500290565b600082821015611f9557611f95611ff0565b500390565b600181811c90821680611fae57607f821691505b60208210811415611fcf57634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415611fe957611fe9611ff0565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b038116811461107157600080fdfea2646970667358221220d1902a846f3dda8c9bb2b3c6a1221221226d6b2d27a7837de5b0c3e342bcbae064736f6c63430008070033
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.