ERC-20
Overview
Max Total Supply
500,224,647.07604166522892538 CATNIP
Holders
264
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Balance
371.91944444444206416 CATNIPValue
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
InvaderStaking
Compiler Version
v0.8.11+commit.d7f03943
Optimization Enabled:
Yes with 2100 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity 0.8.11; import "@openzeppelin/contracts/token/ERC20/extensions/ERC20Capped.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol"; contract InvaderStaking is ERC20Capped, Ownable { uint256 public MAX_WALLET_STAKED = 30; uint256 public EMISSIONS_RATE = 115740740740740; // 10e18 (Rate by Decimals)/ 86400 (Daily Secs) address public ADDRESS = 0x246e29ef6987637e48e7509F91521Ce64EB8c831; address public VAULT = 0x563e6750e382fe86E458153ba520B89F986471aa; bool public stakingLive = true; mapping(uint256 => uint256) internal TokenIdTimeStaked; mapping(uint256 => address) internal TokenIdToStaker; mapping(address => uint256[]) internal StakerToTokenIds; IERC721Enumerable private _IERC721Enumerable = IERC721Enumerable(ADDRESS); constructor() ERC20("Catnip", "CATNIP") ERC20Capped(2000000000 * (10**uint256(18))) { _mint(VAULT, 500000000 * (10**uint256(18))); } modifier stakingEnabled { require(stakingLive, "STAKING_NOT_LIVE"); _; } function getTokensStaked(address staker) public view returns (uint256[] memory) { return StakerToTokenIds[staker]; } function getStakedCount(address staker) public view returns (uint256) { return StakerToTokenIds[staker].length; } function removeTokenIdFromArray(uint256[] storage array, uint256 tokenId) internal { uint256 length = array.length; for (uint256 i = 0; i < length; i++) { if (array[i] == tokenId) { length--; if (i < length) { array[i] = array[length]; } array.pop(); break; } } } // Stake tokens by specific IDs function stakeTokensByIds(uint256[] memory tokenIds) public stakingEnabled { require(getStakedCount(msg.sender) + tokenIds.length <= MAX_WALLET_STAKED, "MAX_TOKENS_STAKED_PER_WALLET"); require(totalSupply() < cap(), "CAP_REACHED"); for (uint256 i = 0; i < tokenIds.length; i++) { uint256 id = tokenIds[i]; require(_IERC721Enumerable.ownerOf(id) == msg.sender && TokenIdToStaker[id] == address(0), "TOKEN_IS_NOT_YOURS"); _IERC721Enumerable.transferFrom(msg.sender, address(this), id); StakerToTokenIds[msg.sender].push(id); TokenIdTimeStaked[id] = block.timestamp; TokenIdToStaker[id] = msg.sender; } } // Unstake all and claim all rewards function unstakeAll() public { require(getStakedCount(msg.sender) > 0, "NEED_ONE_STAKED"); uint256 totalRewards = 0; for (uint256 i = StakerToTokenIds[msg.sender].length; i > 0; i--) { uint256 tokenId = StakerToTokenIds[msg.sender][i - 1]; _IERC721Enumerable.transferFrom(address(this), msg.sender, tokenId); totalRewards += ((block.timestamp - TokenIdTimeStaked[tokenId]) * EMISSIONS_RATE); StakerToTokenIds[msg.sender].pop(); TokenIdToStaker[tokenId] = address(0); } _mint(msg.sender, totalRewards); } // Unstake specific tokens function unstakeTokensByIds(uint256[] memory tokenIds) public { uint256 totalRewards = 0; for (uint256 i = 0; i < tokenIds.length; i++) { uint256 id = tokenIds[i]; require(TokenIdToStaker[id] == msg.sender, "NOT_ORIGINAL_STAKER"); _IERC721Enumerable.transferFrom(address(this), msg.sender, id); totalRewards += ((block.timestamp - TokenIdTimeStaked[id]) * EMISSIONS_RATE); removeTokenIdFromArray(StakerToTokenIds[msg.sender], id); TokenIdToStaker[id] = address(0); } _mint(msg.sender, totalRewards); } // Claim reward by specific token ID function claimByTokenId(uint256 tokenId) public { require(TokenIdToStaker[tokenId] == msg.sender, "NOT_STAKED_BY_YOU"); _mint(msg.sender, ((block.timestamp - TokenIdTimeStaked[tokenId]) * EMISSIONS_RATE)); TokenIdTimeStaked[tokenId] = block.timestamp; } // Claim all rewards without unstaking function claimAll() public { uint256 totalRewards = 0; uint256[] memory tokenIds = StakerToTokenIds[msg.sender]; for (uint256 i = 0; i < tokenIds.length; i++) { uint256 id = tokenIds[i]; require(TokenIdToStaker[id] == msg.sender, "NOT_STAKED_BY_YOU"); totalRewards += ((block.timestamp - TokenIdTimeStaked[id]) * EMISSIONS_RATE); TokenIdTimeStaked[id] = block.timestamp; } _mint(msg.sender, totalRewards); } // Get user pending rewards function getAllRewards(address staker) public view returns (uint256) { uint256 totalRewards = 0; uint256[] memory TokenIds = StakerToTokenIds[staker]; for (uint256 i = 0; i < TokenIds.length; i++) { totalRewards += ((block.timestamp - TokenIdTimeStaked[TokenIds[i]]) * EMISSIONS_RATE); } return totalRewards; } // Get rewards by that specific ID function getRewardsByTokenId(uint256 tokenId) public view returns (uint256) { require(TokenIdToStaker[tokenId] != address(0), "TOKEN_NOT_STAKED"); uint256 secondsStaked = block.timestamp - TokenIdTimeStaked[tokenId]; return secondsStaked * EMISSIONS_RATE; } // Get staker of a certain Token ID function getTokenStaker(uint256 tokenId) public view returns (address) { return TokenIdToStaker[tokenId]; } // Toggle staking live function toggle() external onlyOwner { stakingLive = !stakingLive; } // For future halvening function setEmissionRate(uint256 rate) external onlyOwner { EMISSIONS_RATE = rate; } // Change vault address if needed function setVaultAddress(address addr) external onlyOwner { VAULT = addr; } // Airdrop Catnip for Offchain collection function airdrop(address add, uint256 amount) external onlyOwner { _mint(add, amount); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/ERC20Capped.sol) pragma solidity ^0.8.0; import "../ERC20.sol"; /** * @dev Extension of {ERC20} that adds a cap to the supply of tokens. */ abstract contract ERC20Capped is ERC20 { uint256 private immutable _cap; /** * @dev Sets the value of the `cap`. This value is immutable, it can only be * set once during construction. */ constructor(uint256 cap_) { require(cap_ > 0, "ERC20Capped: cap is 0"); _cap = cap_; } /** * @dev Returns the cap on the token's total supply. */ function cap() public view virtual returns (uint256) { return _cap; } /** * @dev See {ERC20-_mint}. */ function _mint(address account, uint256 amount) internal virtual override { require(ERC20.totalSupply() + amount <= cap(), "ERC20Capped: cap exceeded"); super._mint(account, amount); } }
// 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); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Enumerable.sol) 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 // OpenZeppelin Contracts v4.4.1 (token/ERC20/ERC20.sol) pragma solidity ^0.8.0; import "./IERC20.sol"; import "./extensions/IERC20Metadata.sol"; import "../../utils/Context.sol"; /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our guide * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * We have followed general OpenZeppelin Contracts guidelines: functions revert * instead returning `false` on failure. This behavior is nonetheless * conventional and does not conflict with the expectations of ERC20 * applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {symbol}. * * The default value of {decimals} is 18. To select a different value for * {decimals} you should overload it. * * All two of these values are immutable: they can only be set once during * construction. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev Returns the name of the token. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5.05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the value {ERC20} uses, unless this function is * overridden; * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view virtual override returns (uint8) { return 18; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `recipient` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address recipient, uint256 amount) public virtual override returns (bool) { _transfer(_msgSender(), recipient, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { _approve(_msgSender(), spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * Requirements: * * - `sender` and `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. * - the caller must have allowance for ``sender``'s tokens of at least * `amount`. */ function transferFrom( address sender, address recipient, uint256 amount ) public virtual override returns (bool) { _transfer(sender, recipient, amount); uint256 currentAllowance = _allowances[sender][_msgSender()]; require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance"); unchecked { _approve(sender, _msgSender(), currentAllowance - amount); } return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender] + addedValue); return true; } /** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. * - `spender` must have allowance for the caller of at least * `subtractedValue`. */ function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { uint256 currentAllowance = _allowances[_msgSender()][spender]; require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); unchecked { _approve(_msgSender(), spender, currentAllowance - subtractedValue); } return true; } /** * @dev Moves `amount` of tokens from `sender` to `recipient`. * * This internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `sender` cannot be the zero address. * - `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. */ function _transfer( address sender, address recipient, uint256 amount ) internal virtual { require(sender != address(0), "ERC20: transfer from the zero address"); require(recipient != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(sender, recipient, amount); uint256 senderBalance = _balances[sender]; require(senderBalance >= amount, "ERC20: transfer amount exceeds balance"); unchecked { _balances[sender] = senderBalance - amount; } _balances[recipient] += amount; emit Transfer(sender, recipient, amount); _afterTokenTransfer(sender, recipient, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. */ function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply += amount; _balances[account] += amount; emit Transfer(address(0), account, amount); _afterTokenTransfer(address(0), account, amount); } /** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */ function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); uint256 accountBalance = _balances[account]; require(accountBalance >= amount, "ERC20: burn amount exceeds balance"); unchecked { _balances[account] = accountBalance - amount; } _totalSupply -= amount; emit Transfer(account, address(0), amount); _afterTokenTransfer(account, address(0), amount); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. */ function _approve( address owner, address spender, uint256 amount ) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 amount ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * has been transferred to `to`. * - when `from` is zero, `amount` tokens have been minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens have been burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 amount ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address sender, address recipient, uint256 amount ) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; /** * @dev Interface for the optional metadata functions from the ERC20 standard. * * _Available since v4.1._ */ interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns the decimals places of the token. */ function decimals() external view returns (uint8); }
// 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; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol) 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 // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) 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); }
{ "optimizer": { "enabled": true, "runs": 2100 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
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":"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":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"ADDRESS","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"EMISSIONS_RATE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_WALLET_STAKED","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"VAULT","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"add","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"airdrop","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":"cap","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claimAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"claimByTokenId","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"staker","type":"address"}],"name":"getAllRewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getRewardsByTokenId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"staker","type":"address"}],"name":"getStakedCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getTokenStaker","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"staker","type":"address"}],"name":"getTokensStaked","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"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":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"rate","type":"uint256"}],"name":"setEmissionRate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"setVaultAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"stakeTokensByIds","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stakingLive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"toggle","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unstakeAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"unstakeTokensByIds","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60a0604052601e600655656943fdbce6846007556008805473246e29ef6987637e48e7509f91521ce64eb8c8316001600160a01b03199182168117909255600980546001600160a81b0319167401563e6750e382fe86e458153ba520b89f986471aa179055600d805490911690911790553480156200007d57600080fd5b506200008c6012600a62000534565b6200009c90637735940062000549565b6040518060400160405280600681526020016504361746e69760d41b8152506040518060400160405280600681526020016504341544e49560d41b8152508160039080519060200190620000f292919062000379565b5080516200010890600490602084019062000379565b50505060008111620001615760405162461bcd60e51b815260206004820152601560248201527f45524332304361707065643a206361702069732030000000000000000000000060448201526064015b60405180910390fd5b6080526200016f33620001aa565b600954620001a4906001600160a01b03166200018e6012600a62000534565b6200019e90631dcd650062000549565b620001fc565b620005c3565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60805181620002156200028c60201b620005d61760201c565b6200022191906200056b565b1115620002715760405162461bcd60e51b815260206004820152601960248201527f45524332304361707065643a2063617020657863656564656400000000000000604482015260640162000158565b6200028882826200029260201b6200156c1760201c565b5050565b60025490565b6001600160a01b038216620002ea5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640162000158565b8060026000828254620002fe91906200056b565b90915550506001600160a01b038216600090815260208190526040812080548392906200032d9084906200056b565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a362000288565b828054620003879062000586565b90600052602060002090601f016020900481019282620003ab5760008555620003f6565b82601f10620003c657805160ff1916838001178555620003f6565b82800160010185558215620003f6579182015b82811115620003f6578251825591602001919060010190620003d9565b506200040492915062000408565b5090565b5b8082111562000404576000815560010162000409565b634e487b7160e01b600052601160045260246000fd5b600181815b80851115620004765781600019048211156200045a576200045a6200041f565b808516156200046857918102915b93841c93908002906200043a565b509250929050565b6000826200048f575060016200052e565b816200049e575060006200052e565b8160018114620004b75760028114620004c257620004e2565b60019150506200052e565b60ff841115620004d657620004d66200041f565b50506001821b6200052e565b5060208310610133831016604e8410600b841016171562000507575081810a6200052e565b62000513838362000435565b80600019048211156200052a576200052a6200041f565b0290505b92915050565b60006200054283836200047e565b9392505050565b60008160001904831182151516156200056657620005666200041f565b500290565b600082198211156200058157620005816200041f565b500190565b600181811c908216806200059b57607f821691505b60208210811415620005bd57634e487b7160e01b600052602260045260246000fd5b50919050565b608051611f15620005ed600039600081816102ac0152818161100c01526119be0152611f156000f3fe608060405234801561001057600080fd5b50600436106102265760003560e01c8063715018a61161012a578063a215ff04116100bd578063ba7e76621161008c578063d92656a711610071578063d92656a7146104bd578063dd62ed3e146104e2578063f2fde38b1461051b57600080fd5b8063ba7e7662146104ac578063d1058e59146104b557600080fd5b8063a215ff0414610460578063a457c2d714610473578063a9059cbb14610486578063b51ce63d1461049957600080fd5b80638ba4cc3c116100f95780638ba4cc3c146104215780638da5cb5b1461043457806395d89b4114610445578063a1bdb15e1461044d57600080fd5b8063715018a6146103d457806383c13db2146103dc57806385535cc5146104055780638ab8fab31461041857600080fd5b806339509351116101bd57806352eb77961161018c578063659ebdf211610171578063659ebdf21461036f578063662b29171461039857806370a08231146103ab57600080fd5b806352eb77961461033c5780635e1f1e2a1461035c57600080fd5b806339509351146102e357806340a3d246146102f6578063411557d1146102fe578063515ec1051461032957600080fd5b8063313ce567116101f9578063313ce5671461029157806335322f37146102a0578063355274ea146102aa578063362a3fad146102d057600080fd5b806306fdde031461022b578063095ea7b31461024957806318160ddd1461026c57806323b872dd1461027e575b600080fd5b61023361052e565b6040516102409190611b67565b60405180910390f35b61025c610257366004611bd1565b6105c0565b6040519015158152602001610240565b6002545b604051908152602001610240565b61025c61028c366004611bfd565b6105dc565b60405160128152602001610240565b6102a86106a0565b005b7f0000000000000000000000000000000000000000000000000000000000000000610270565b6102706102de366004611c3e565b61086b565b61025c6102f1366004611bd1565b61094c565b6102a8610988565b600954610311906001600160a01b031681565b6040516001600160a01b039091168152602001610240565b610270610337366004611c5b565b610a2f565b61034f61034a366004611c3e565b610ac3565b6040516102409190611c74565b6102a861036a366004611c5b565b610b2f565b61031161037d366004611c5b565b6000908152600b60205260409020546001600160a01b031690565b6102a86103a6366004611cce565b610bd9565b6102706103b9366004611c3e565b6001600160a01b031660009081526020819052604090205490565b6102a8610d72565b6102706103ea366004611c3e565b6001600160a01b03166000908152600c602052604090205490565b6102a8610413366004611c3e565b610dd8565b61027060065481565b6102a861042f366004611bd1565b610e61565b6005546001600160a01b0316610311565b610233610ec5565b6102a861045b366004611c5b565b610ed4565b6102a861046e366004611cce565b610f33565b61025c610481366004611bd1565b61127d565b61025c610494366004611bd1565b61132e565b600854610311906001600160a01b031681565b61027060075481565b6102a861133b565b60095461025c9074010000000000000000000000000000000000000000900460ff1681565b6102706104f0366004611d8c565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6102a8610529366004611c3e565b61148d565b60606003805461053d90611dc5565b80601f016020809104026020016040519081016040528092919081815260200182805461056990611dc5565b80156105b65780601f1061058b576101008083540402835291602001916105b6565b820191906000526020600020905b81548152906001019060200180831161059957829003601f168201915b5050505050905090565b60006105cd33848461164b565b50600192915050565b60025490565b60006105e98484846117a3565b6001600160a01b0384166000908152600160209081526040808320338452909152902054828110156106885760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206160448201527f6c6c6f77616e636500000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b610695853385840361164b565b506001949350505050565b336000908152600c6020526040812054116106fd5760405162461bcd60e51b815260206004820152600f60248201527f4e4545445f4f4e455f5354414b45440000000000000000000000000000000000604482015260640161067f565b336000908152600c60205260408120545b801561085d57336000908152600c6020526040812061072e600184611e16565b8154811061073e5761073e611e2d565b600091825260209091200154600d546040516323b872dd60e01b8152306004820152336024820152604481018390529192506001600160a01b0316906323b872dd90606401600060405180830381600087803b15801561079d57600080fd5b505af11580156107b1573d6000803e3d6000fd5b50506007546000848152600a60205260409020549092506107d3915042611e16565b6107dd9190611e43565b6107e79084611e62565b336000908152600c602052604090208054919450908061080957610809611e7a565b600082815260208082208301600019908101839055909201909255918152600b90915260409020805473ffffffffffffffffffffffffffffffffffffffff191690558061085581611e90565b91505061070e565b5061086833826119bc565b50565b6001600160a01b0381166000908152600c602090815260408083208054825181850281018501909352808352849384939291908301828280156108cd57602002820191906000526020600020905b8154815260200190600101908083116108b9575b5050505050905060005b815181101561094357600754600a60008484815181106108f9576108f9611e2d565b60200260200101518152602001908152602001600020544261091b9190611e16565b6109259190611e43565b61092f9084611e62565b92508061093b81611ea7565b9150506108d7565b50909392505050565b3360008181526001602090815260408083206001600160a01b038716845290915281205490916105cd918590610983908690611e62565b61164b565b6005546001600160a01b031633146109e25760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161067f565b600980547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff8116740100000000000000000000000000000000000000009182900460ff1615909102179055565b6000818152600b60205260408120546001600160a01b0316610a935760405162461bcd60e51b815260206004820152601060248201527f544f4b454e5f4e4f545f5354414b454400000000000000000000000000000000604482015260640161067f565b6000828152600a6020526040812054610aac9042611e16565b905060075481610abc9190611e43565b9392505050565b6001600160a01b0381166000908152600c6020908152604091829020805483518184028101840190945280845260609392830182828015610b2357602002820191906000526020600020905b815481526020019060010190808311610b0f575b50505050509050919050565b6000818152600b60205260409020546001600160a01b03163314610b955760405162461bcd60e51b815260206004820152601160248201527f4e4f545f5354414b45445f42595f594f55000000000000000000000000000000604482015260640161067f565b6007546000828152600a6020526040902054610bc6913391610bb79042611e16565b610bc19190611e43565b6119bc565b6000908152600a60205260409020429055565b6000805b8251811015610d63576000838281518110610bfa57610bfa611e2d565b6020908102919091018101516000818152600b9092526040909120549091506001600160a01b03163314610c705760405162461bcd60e51b815260206004820152601360248201527f4e4f545f4f524947494e414c5f5354414b455200000000000000000000000000604482015260640161067f565b600d546040516323b872dd60e01b8152306004820152336024820152604481018390526001600160a01b03909116906323b872dd90606401600060405180830381600087803b158015610cc257600080fd5b505af1158015610cd6573d6000803e3d6000fd5b50506007546000848152600a6020526040902054909250610cf8915042611e16565b610d029190611e43565b610d0c9084611e62565b336000908152600c60205260409020909350610d289082611a49565b6000908152600b60205260409020805473ffffffffffffffffffffffffffffffffffffffff1916905580610d5b81611ea7565b915050610bdd565b50610d6e33826119bc565b5050565b6005546001600160a01b03163314610dcc5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161067f565b610dd66000611b08565b565b6005546001600160a01b03163314610e325760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161067f565b6009805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6005546001600160a01b03163314610ebb5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161067f565b610d6e82826119bc565b60606004805461053d90611dc5565b6005546001600160a01b03163314610f2e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161067f565b600755565b60095474010000000000000000000000000000000000000000900460ff16610f9d5760405162461bcd60e51b815260206004820152601060248201527f5354414b494e475f4e4f545f4c49564500000000000000000000000000000000604482015260640161067f565b6006548151336000908152600c6020526040902054610fbc9190611e62565b111561100a5760405162461bcd60e51b815260206004820152601c60248201527f4d41585f544f4b454e535f5354414b45445f5045525f57414c4c455400000000604482015260640161067f565b7f00000000000000000000000000000000000000000000000000000000000000006002541061107b5760405162461bcd60e51b815260206004820152600b60248201527f4341505f52454143484544000000000000000000000000000000000000000000604482015260640161067f565b60005b8151811015610d6e57600082828151811061109b5761109b611e2d565b6020908102919091010151600d546040517f6352211e0000000000000000000000000000000000000000000000000000000081526004810183905291925033916001600160a01b0390911690636352211e90602401602060405180830381865afa15801561110d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111319190611ec2565b6001600160a01b031614801561115c57506000818152600b60205260409020546001600160a01b0316155b6111a85760405162461bcd60e51b815260206004820152601260248201527f544f4b454e5f49535f4e4f545f594f5552530000000000000000000000000000604482015260640161067f565b600d546040516323b872dd60e01b8152336004820152306024820152604481018390526001600160a01b03909116906323b872dd90606401600060405180830381600087803b1580156111fa57600080fd5b505af115801561120e573d6000803e3d6000fd5b5050336000818152600c60209081526040808320805460018101825590845282842001879055958252600a8152858220429055600b905293909320805473ffffffffffffffffffffffffffffffffffffffff19169093179092555081905061127581611ea7565b91505061107e565b3360009081526001602090815260408083206001600160a01b0386168452909152812054828110156113175760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760448201527f207a65726f000000000000000000000000000000000000000000000000000000606482015260840161067f565b611324338585840361164b565b5060019392505050565b60006105cd3384846117a3565b336000908152600c602090815260408083208054825181850281018501909352808352849383018282801561138f57602002820191906000526020600020905b81548152602001906001019080831161137b575b5050505050905060005b81518110156114825760008282815181106113b6576113b6611e2d565b6020908102919091018101516000818152600b9092526040909120549091506001600160a01b0316331461142c5760405162461bcd60e51b815260206004820152601160248201527f4e4f545f5354414b45445f42595f594f55000000000000000000000000000000604482015260640161067f565b6007546000828152600a60205260409020546114489042611e16565b6114529190611e43565b61145c9085611e62565b6000918252600a602052604090912042905592508061147a81611ea7565b915050611399565b50610d6e33836119bc565b6005546001600160a01b031633146114e75760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161067f565b6001600160a01b0381166115635760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f6464726573730000000000000000000000000000000000000000000000000000606482015260840161067f565b61086881611b08565b6001600160a01b0382166115c25760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640161067f565b80600260008282546115d49190611e62565b90915550506001600160a01b03821660009081526020819052604081208054839290611601908490611e62565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b6001600160a01b0383166116c65760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460448201527f7265737300000000000000000000000000000000000000000000000000000000606482015260840161067f565b6001600160a01b0382166117425760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f20616464726560448201527f7373000000000000000000000000000000000000000000000000000000000000606482015260840161067f565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b03831661181f5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f20616460448201527f6472657373000000000000000000000000000000000000000000000000000000606482015260840161067f565b6001600160a01b03821661189b5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201527f6573730000000000000000000000000000000000000000000000000000000000606482015260840161067f565b6001600160a01b0383166000908152602081905260409020548181101561192a5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206260448201527f616c616e63650000000000000000000000000000000000000000000000000000606482015260840161067f565b6001600160a01b03808516600090815260208190526040808220858503905591851681529081208054849290611961908490611e62565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516119ad91815260200190565b60405180910390a35b50505050565b7f0000000000000000000000000000000000000000000000000000000000000000816119e760025490565b6119f19190611e62565b1115611a3f5760405162461bcd60e51b815260206004820152601960248201527f45524332304361707065643a2063617020657863656564656400000000000000604482015260640161067f565b610d6e828261156c565b815460005b818110156119b65782848281548110611a6957611a69611e2d565b90600052602060002001541415611af65781611a8481611e90565b92505081811015611acb57838281548110611aa157611aa1611e2d565b9060005260206000200154848281548110611abe57611abe611e2d565b6000918252602090912001555b83805480611adb57611adb611e7a565b600190038181906000526020600020016000905590556119b6565b80611b0081611ea7565b915050611a4e565b600580546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600060208083528351808285015260005b81811015611b9457858101830151858201604001528201611b78565b81811115611ba6576000604083870101525b50601f01601f1916929092016040019392505050565b6001600160a01b038116811461086857600080fd5b60008060408385031215611be457600080fd5b8235611bef81611bbc565b946020939093013593505050565b600080600060608486031215611c1257600080fd5b8335611c1d81611bbc565b92506020840135611c2d81611bbc565b929592945050506040919091013590565b600060208284031215611c5057600080fd5b8135610abc81611bbc565b600060208284031215611c6d57600080fd5b5035919050565b6020808252825182820181905260009190848201906040850190845b81811015611cac57835183529284019291840191600101611c90565b50909695505050505050565b634e487b7160e01b600052604160045260246000fd5b60006020808385031215611ce157600080fd5b823567ffffffffffffffff80821115611cf957600080fd5b818501915085601f830112611d0d57600080fd5b813581811115611d1f57611d1f611cb8565b8060051b604051601f19603f83011681018181108582111715611d4457611d44611cb8565b604052918252848201925083810185019188831115611d6257600080fd5b938501935b82851015611d8057843584529385019392850192611d67565b98975050505050505050565b60008060408385031215611d9f57600080fd5b8235611daa81611bbc565b91506020830135611dba81611bbc565b809150509250929050565b600181811c90821680611dd957607f821691505b60208210811415611dfa57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b600082821015611e2857611e28611e00565b500390565b634e487b7160e01b600052603260045260246000fd5b6000816000190483118215151615611e5d57611e5d611e00565b500290565b60008219821115611e7557611e75611e00565b500190565b634e487b7160e01b600052603160045260246000fd5b600081611e9f57611e9f611e00565b506000190190565b6000600019821415611ebb57611ebb611e00565b5060010190565b600060208284031215611ed457600080fd5b8151610abc81611bbc56fea264697066735822122042c71cfe24d0242fb516ec9174473ead72b250fb67d844ca9817ba80d46c257164736f6c634300080b0033
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106102265760003560e01c8063715018a61161012a578063a215ff04116100bd578063ba7e76621161008c578063d92656a711610071578063d92656a7146104bd578063dd62ed3e146104e2578063f2fde38b1461051b57600080fd5b8063ba7e7662146104ac578063d1058e59146104b557600080fd5b8063a215ff0414610460578063a457c2d714610473578063a9059cbb14610486578063b51ce63d1461049957600080fd5b80638ba4cc3c116100f95780638ba4cc3c146104215780638da5cb5b1461043457806395d89b4114610445578063a1bdb15e1461044d57600080fd5b8063715018a6146103d457806383c13db2146103dc57806385535cc5146104055780638ab8fab31461041857600080fd5b806339509351116101bd57806352eb77961161018c578063659ebdf211610171578063659ebdf21461036f578063662b29171461039857806370a08231146103ab57600080fd5b806352eb77961461033c5780635e1f1e2a1461035c57600080fd5b806339509351146102e357806340a3d246146102f6578063411557d1146102fe578063515ec1051461032957600080fd5b8063313ce567116101f9578063313ce5671461029157806335322f37146102a0578063355274ea146102aa578063362a3fad146102d057600080fd5b806306fdde031461022b578063095ea7b31461024957806318160ddd1461026c57806323b872dd1461027e575b600080fd5b61023361052e565b6040516102409190611b67565b60405180910390f35b61025c610257366004611bd1565b6105c0565b6040519015158152602001610240565b6002545b604051908152602001610240565b61025c61028c366004611bfd565b6105dc565b60405160128152602001610240565b6102a86106a0565b005b7f000000000000000000000000000000000000000006765c793fa10079d0000000610270565b6102706102de366004611c3e565b61086b565b61025c6102f1366004611bd1565b61094c565b6102a8610988565b600954610311906001600160a01b031681565b6040516001600160a01b039091168152602001610240565b610270610337366004611c5b565b610a2f565b61034f61034a366004611c3e565b610ac3565b6040516102409190611c74565b6102a861036a366004611c5b565b610b2f565b61031161037d366004611c5b565b6000908152600b60205260409020546001600160a01b031690565b6102a86103a6366004611cce565b610bd9565b6102706103b9366004611c3e565b6001600160a01b031660009081526020819052604090205490565b6102a8610d72565b6102706103ea366004611c3e565b6001600160a01b03166000908152600c602052604090205490565b6102a8610413366004611c3e565b610dd8565b61027060065481565b6102a861042f366004611bd1565b610e61565b6005546001600160a01b0316610311565b610233610ec5565b6102a861045b366004611c5b565b610ed4565b6102a861046e366004611cce565b610f33565b61025c610481366004611bd1565b61127d565b61025c610494366004611bd1565b61132e565b600854610311906001600160a01b031681565b61027060075481565b6102a861133b565b60095461025c9074010000000000000000000000000000000000000000900460ff1681565b6102706104f0366004611d8c565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6102a8610529366004611c3e565b61148d565b60606003805461053d90611dc5565b80601f016020809104026020016040519081016040528092919081815260200182805461056990611dc5565b80156105b65780601f1061058b576101008083540402835291602001916105b6565b820191906000526020600020905b81548152906001019060200180831161059957829003601f168201915b5050505050905090565b60006105cd33848461164b565b50600192915050565b60025490565b60006105e98484846117a3565b6001600160a01b0384166000908152600160209081526040808320338452909152902054828110156106885760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206160448201527f6c6c6f77616e636500000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b610695853385840361164b565b506001949350505050565b336000908152600c6020526040812054116106fd5760405162461bcd60e51b815260206004820152600f60248201527f4e4545445f4f4e455f5354414b45440000000000000000000000000000000000604482015260640161067f565b336000908152600c60205260408120545b801561085d57336000908152600c6020526040812061072e600184611e16565b8154811061073e5761073e611e2d565b600091825260209091200154600d546040516323b872dd60e01b8152306004820152336024820152604481018390529192506001600160a01b0316906323b872dd90606401600060405180830381600087803b15801561079d57600080fd5b505af11580156107b1573d6000803e3d6000fd5b50506007546000848152600a60205260409020549092506107d3915042611e16565b6107dd9190611e43565b6107e79084611e62565b336000908152600c602052604090208054919450908061080957610809611e7a565b600082815260208082208301600019908101839055909201909255918152600b90915260409020805473ffffffffffffffffffffffffffffffffffffffff191690558061085581611e90565b91505061070e565b5061086833826119bc565b50565b6001600160a01b0381166000908152600c602090815260408083208054825181850281018501909352808352849384939291908301828280156108cd57602002820191906000526020600020905b8154815260200190600101908083116108b9575b5050505050905060005b815181101561094357600754600a60008484815181106108f9576108f9611e2d565b60200260200101518152602001908152602001600020544261091b9190611e16565b6109259190611e43565b61092f9084611e62565b92508061093b81611ea7565b9150506108d7565b50909392505050565b3360008181526001602090815260408083206001600160a01b038716845290915281205490916105cd918590610983908690611e62565b61164b565b6005546001600160a01b031633146109e25760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161067f565b600980547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff8116740100000000000000000000000000000000000000009182900460ff1615909102179055565b6000818152600b60205260408120546001600160a01b0316610a935760405162461bcd60e51b815260206004820152601060248201527f544f4b454e5f4e4f545f5354414b454400000000000000000000000000000000604482015260640161067f565b6000828152600a6020526040812054610aac9042611e16565b905060075481610abc9190611e43565b9392505050565b6001600160a01b0381166000908152600c6020908152604091829020805483518184028101840190945280845260609392830182828015610b2357602002820191906000526020600020905b815481526020019060010190808311610b0f575b50505050509050919050565b6000818152600b60205260409020546001600160a01b03163314610b955760405162461bcd60e51b815260206004820152601160248201527f4e4f545f5354414b45445f42595f594f55000000000000000000000000000000604482015260640161067f565b6007546000828152600a6020526040902054610bc6913391610bb79042611e16565b610bc19190611e43565b6119bc565b6000908152600a60205260409020429055565b6000805b8251811015610d63576000838281518110610bfa57610bfa611e2d565b6020908102919091018101516000818152600b9092526040909120549091506001600160a01b03163314610c705760405162461bcd60e51b815260206004820152601360248201527f4e4f545f4f524947494e414c5f5354414b455200000000000000000000000000604482015260640161067f565b600d546040516323b872dd60e01b8152306004820152336024820152604481018390526001600160a01b03909116906323b872dd90606401600060405180830381600087803b158015610cc257600080fd5b505af1158015610cd6573d6000803e3d6000fd5b50506007546000848152600a6020526040902054909250610cf8915042611e16565b610d029190611e43565b610d0c9084611e62565b336000908152600c60205260409020909350610d289082611a49565b6000908152600b60205260409020805473ffffffffffffffffffffffffffffffffffffffff1916905580610d5b81611ea7565b915050610bdd565b50610d6e33826119bc565b5050565b6005546001600160a01b03163314610dcc5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161067f565b610dd66000611b08565b565b6005546001600160a01b03163314610e325760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161067f565b6009805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6005546001600160a01b03163314610ebb5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161067f565b610d6e82826119bc565b60606004805461053d90611dc5565b6005546001600160a01b03163314610f2e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161067f565b600755565b60095474010000000000000000000000000000000000000000900460ff16610f9d5760405162461bcd60e51b815260206004820152601060248201527f5354414b494e475f4e4f545f4c49564500000000000000000000000000000000604482015260640161067f565b6006548151336000908152600c6020526040902054610fbc9190611e62565b111561100a5760405162461bcd60e51b815260206004820152601c60248201527f4d41585f544f4b454e535f5354414b45445f5045525f57414c4c455400000000604482015260640161067f565b7f000000000000000000000000000000000000000006765c793fa10079d00000006002541061107b5760405162461bcd60e51b815260206004820152600b60248201527f4341505f52454143484544000000000000000000000000000000000000000000604482015260640161067f565b60005b8151811015610d6e57600082828151811061109b5761109b611e2d565b6020908102919091010151600d546040517f6352211e0000000000000000000000000000000000000000000000000000000081526004810183905291925033916001600160a01b0390911690636352211e90602401602060405180830381865afa15801561110d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111319190611ec2565b6001600160a01b031614801561115c57506000818152600b60205260409020546001600160a01b0316155b6111a85760405162461bcd60e51b815260206004820152601260248201527f544f4b454e5f49535f4e4f545f594f5552530000000000000000000000000000604482015260640161067f565b600d546040516323b872dd60e01b8152336004820152306024820152604481018390526001600160a01b03909116906323b872dd90606401600060405180830381600087803b1580156111fa57600080fd5b505af115801561120e573d6000803e3d6000fd5b5050336000818152600c60209081526040808320805460018101825590845282842001879055958252600a8152858220429055600b905293909320805473ffffffffffffffffffffffffffffffffffffffff19169093179092555081905061127581611ea7565b91505061107e565b3360009081526001602090815260408083206001600160a01b0386168452909152812054828110156113175760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760448201527f207a65726f000000000000000000000000000000000000000000000000000000606482015260840161067f565b611324338585840361164b565b5060019392505050565b60006105cd3384846117a3565b336000908152600c602090815260408083208054825181850281018501909352808352849383018282801561138f57602002820191906000526020600020905b81548152602001906001019080831161137b575b5050505050905060005b81518110156114825760008282815181106113b6576113b6611e2d565b6020908102919091018101516000818152600b9092526040909120549091506001600160a01b0316331461142c5760405162461bcd60e51b815260206004820152601160248201527f4e4f545f5354414b45445f42595f594f55000000000000000000000000000000604482015260640161067f565b6007546000828152600a60205260409020546114489042611e16565b6114529190611e43565b61145c9085611e62565b6000918252600a602052604090912042905592508061147a81611ea7565b915050611399565b50610d6e33836119bc565b6005546001600160a01b031633146114e75760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161067f565b6001600160a01b0381166115635760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f6464726573730000000000000000000000000000000000000000000000000000606482015260840161067f565b61086881611b08565b6001600160a01b0382166115c25760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640161067f565b80600260008282546115d49190611e62565b90915550506001600160a01b03821660009081526020819052604081208054839290611601908490611e62565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b6001600160a01b0383166116c65760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460448201527f7265737300000000000000000000000000000000000000000000000000000000606482015260840161067f565b6001600160a01b0382166117425760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f20616464726560448201527f7373000000000000000000000000000000000000000000000000000000000000606482015260840161067f565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b03831661181f5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f20616460448201527f6472657373000000000000000000000000000000000000000000000000000000606482015260840161067f565b6001600160a01b03821661189b5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201527f6573730000000000000000000000000000000000000000000000000000000000606482015260840161067f565b6001600160a01b0383166000908152602081905260409020548181101561192a5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206260448201527f616c616e63650000000000000000000000000000000000000000000000000000606482015260840161067f565b6001600160a01b03808516600090815260208190526040808220858503905591851681529081208054849290611961908490611e62565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516119ad91815260200190565b60405180910390a35b50505050565b7f000000000000000000000000000000000000000006765c793fa10079d0000000816119e760025490565b6119f19190611e62565b1115611a3f5760405162461bcd60e51b815260206004820152601960248201527f45524332304361707065643a2063617020657863656564656400000000000000604482015260640161067f565b610d6e828261156c565b815460005b818110156119b65782848281548110611a6957611a69611e2d565b90600052602060002001541415611af65781611a8481611e90565b92505081811015611acb57838281548110611aa157611aa1611e2d565b9060005260206000200154848281548110611abe57611abe611e2d565b6000918252602090912001555b83805480611adb57611adb611e7a565b600190038181906000526020600020016000905590556119b6565b80611b0081611ea7565b915050611a4e565b600580546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600060208083528351808285015260005b81811015611b9457858101830151858201604001528201611b78565b81811115611ba6576000604083870101525b50601f01601f1916929092016040019392505050565b6001600160a01b038116811461086857600080fd5b60008060408385031215611be457600080fd5b8235611bef81611bbc565b946020939093013593505050565b600080600060608486031215611c1257600080fd5b8335611c1d81611bbc565b92506020840135611c2d81611bbc565b929592945050506040919091013590565b600060208284031215611c5057600080fd5b8135610abc81611bbc565b600060208284031215611c6d57600080fd5b5035919050565b6020808252825182820181905260009190848201906040850190845b81811015611cac57835183529284019291840191600101611c90565b50909695505050505050565b634e487b7160e01b600052604160045260246000fd5b60006020808385031215611ce157600080fd5b823567ffffffffffffffff80821115611cf957600080fd5b818501915085601f830112611d0d57600080fd5b813581811115611d1f57611d1f611cb8565b8060051b604051601f19603f83011681018181108582111715611d4457611d44611cb8565b604052918252848201925083810185019188831115611d6257600080fd5b938501935b82851015611d8057843584529385019392850192611d67565b98975050505050505050565b60008060408385031215611d9f57600080fd5b8235611daa81611bbc565b91506020830135611dba81611bbc565b809150509250929050565b600181811c90821680611dd957607f821691505b60208210811415611dfa57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b600082821015611e2857611e28611e00565b500390565b634e487b7160e01b600052603260045260246000fd5b6000816000190483118215151615611e5d57611e5d611e00565b500290565b60008219821115611e7557611e75611e00565b500190565b634e487b7160e01b600052603160045260246000fd5b600081611e9f57611e9f611e00565b506000190190565b6000600019821415611ebb57611ebb611e00565b5060010190565b600060208284031215611ed457600080fd5b8151610abc81611bbc56fea264697066735822122042c71cfe24d0242fb516ec9174473ead72b250fb67d844ca9817ba80d46c257164736f6c634300080b0033
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.