Feature Tip: Add private address tag to any address under My Name Tag !
ERC-20
Overview
Max Total Supply
16,993,992.4 GANJA
Holders
26
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Balance
441,729 GANJAValue
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
GANJA
Compiler Version
v0.8.0+commit.c7dfd78e
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2022-10-01 */ // // // ██████╗ █████╗ ███╗ ██╗ ██╗ █████╗ ██████╗ ██████╗ ██████╗ ██╗ ██╗ // ██╔════╝ ██╔══██╗████╗ ██║ ██║██╔══██╗ ██╔════╝ ██╔══██╗██╔═══██╗██║ ██║ // ██║ ███╗███████║██╔██╗ ██║ ██║███████║ ██║ ███╗██████╔╝██║ ██║██║ █╗ ██║ // ██║ ██║██╔══██║██║╚██╗██║██ ██║██╔══██║ ██║ ██║██╔══██╗██║ ██║██║███╗██║ // ╚██████╔╝██║ ██║██║ ╚████║╚█████╔╝██║ ██║ ╚██████╔╝██║ ██║╚██████╔╝╚███╔███╔╝ // ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═══╝ ╚════╝ ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝ ╚══╝╚══╝ // // ███████╗ ██████╗ █████╗ ███╗ ██╗ ██╗ █████╗ ███████╗ █████╗ ██████╗ ███╗ ███╗ // ██╔██╔══╝██╔════╝ ██╔══██╗████╗ ██║ ██║██╔══██╗ ██╔════╝██╔══██╗██╔══██╗████╗ ████║ // ╚██████╗ ██║ ██╗ ███████║██╔██╗██║ ██║███████║ █████╗ ███████║██████╔╝██╔████╔██║ // ╚═██╔██╗██║ ╚██╗██╔══██║██║╚████║██╗ ██║██╔══██║ ██╔══╝ ██╔══██║██╔══██╗██║╚██╔╝██║ // ███████╔╝╚██████╔╝██║ ██║██║ ╚███║╚█████╔╝██║ ██║ ██║ ██║ ██║██║ ██║██║ ╚═╝ ██║ // ╚══════╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚══╝ ╚════╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═╝ // // ████████████████████████████████████████████████████████████████████████████████ // ████████████████████████████▀▀▀-. '▀▀▀▀███████████████████████████ // ██████████████████████▀▀└ '▀▀██████████████████████ // ██████████████████▀▀- ▀▀██████████████████ // ███████████████▀▀ └▀███████████████ // █████████████▀ ▀█████████████ // ███████████▀ "███████████ // █████████▀ "█████████ // ███████▀ ▀███████ // ██████¬ ▄▄████████████▄▄▄ █████████████████████▄▄ ██████ // ███████████████████▀▀' ¬└▀▀████████⌐ ¬└▀▀██████████████████ // ████ ╓██▀¬ ▄██▀ ██ ▐▄▄▄▄ ▀██ ▀███ // ███████████████" ╓████████ ▐█████ ████████████████ // ██ ██⌐ ,▄███████▄▄██- ██ ▐█████ ██▌ ██ // ██████████████ ▐████████████████████ └▀▀▀' ,█████████████████ // █ ▐██ ▐██ç██▌¬¬¬¬¬¬¬¬██⌐ ██ ▀███ █ // █▄▄▄▄▄▄▄▄▄▄███. ▀▀███▌ ███▄██ ▐███▄ ▀██▄▄▄▄▄▄▄▄▄▄▄▄▄█ // ▌ ▀██. ██▌ ██ ▐██▀██µ ▀██- j // ' ▀██▄ ██⌐ ██ ▐██ ▐██ ▐██ a // ▄m ▄▄▄^ ╓▄▄M ,████▄ç ███ ██ ▐██▄▄██⌐ ██▄▄▄ ▄▄▄ +h // "▀▀▀ ▀▀▀- "▀▀▀╘▀▀██████████████████▀ █████████████▀▀█████████████▌▀▀▀ "▀▀" l // ██ⁿ ╓███▀ ╓███▀ ╓████ ╓████▀▐████.-████ ████⌐ ████▄ ████▄ ████▄ ▀███▄ ▀███▄ 7██i // ╘ '└└└ └└└¬ └└└└ -└└└ └└└└- └└└└ └└└└ ╘└└└╙ └└└└ -└└└ '└└└ └└└└ └ v // ████▀ ▄████▀ ▄████▀ ▄████▀ █████- █████- █████ █████ ╘█████ ╙████▄ ▀████▄ ▀████e // // Ganja Grow brought to you by the Grand Rising DAO. // Featured Developers: Jahhweh, Wadada // Featured Artists: 1AnnaHuff, Adelf Menezes, cryptoboop, DrSisyphos, jakeEY3, JudaHLion // // // // SPDX-License-Identifier: MIT // v420.69.51 pragma solidity ^0.8.0; library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } } library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } } 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); } abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } } 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`. * * 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; /** * @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 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 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 the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @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); } 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); /** * @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); } interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); } interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); } interface IERC20 { /** * @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); /** * @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 `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, 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 `from` to `to` 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 from, address to, uint256 amount ) external returns (bool); } 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); } abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } } contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: address zero is not a valid owner"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: invalid token ID"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { _requireMinted(tokenId); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not token owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { _requireMinted(tokenId); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner nor approved"); _safeTransfer(from, to, tokenId, data); } /** * @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. * * `data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { address owner = ERC721.ownerOf(tokenId); return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == spender); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); _afterTokenTransfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); _afterTokenTransfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); _afterTokenTransfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits an {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits an {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Reverts if the `tokenId` has not been minted yet. */ function _requireMinted(uint256 tokenId) internal view virtual { require(_exists(tokenId), "ERC721: invalid token ID"); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { /// @solidity memory-safe-assembly assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` 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 tokenId ) 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. * - `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 tokenId ) internal virtual {} } abstract contract ERC721Enumerable is ERC721, IERC721Enumerable { // Mapping from owner to list of owned token IDs mapping(address => mapping(uint256 => uint256)) private _ownedTokens; // Mapping from token ID to index of the owner tokens list mapping(uint256 => uint256) private _ownedTokensIndex; // Array with all token ids, used for enumeration uint256[] private _allTokens; // Mapping from token id to position in the allTokens array mapping(uint256 => uint256) private _allTokensIndex; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) { return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) { require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds"); return _ownedTokens[owner][index]; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _allTokens.length; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view virtual override returns (uint256) { require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds"); return _allTokens[index]; } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` cannot be the zero address. * - `to` cannot be the zero address. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual override { super._beforeTokenTransfer(from, to, tokenId); if (from == address(0)) { _addTokenToAllTokensEnumeration(tokenId); } else if (from != to) { _removeTokenFromOwnerEnumeration(from, tokenId); } if (to == address(0)) { _removeTokenFromAllTokensEnumeration(tokenId); } else if (to != from) { _addTokenToOwnerEnumeration(to, tokenId); } } /** * @dev Private function to add a token to this extension's ownership-tracking data structures. * @param to address representing the new owner of the given token ID * @param tokenId uint256 ID of the token to be added to the tokens list of the given address */ function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private { uint256 length = ERC721.balanceOf(to); _ownedTokens[to][length] = tokenId; _ownedTokensIndex[tokenId] = length; } /** * @dev Private function to add a token to this extension's token tracking data structures. * @param tokenId uint256 ID of the token to be added to the tokens list */ function _addTokenToAllTokensEnumeration(uint256 tokenId) private { _allTokensIndex[tokenId] = _allTokens.length; _allTokens.push(tokenId); } /** * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for * gas optimizations e.g. when performing a transfer operation (avoiding double writes). * This has O(1) time complexity, but alters the order of the _ownedTokens array. * @param from address representing the previous owner of the given token ID * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address */ function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private { // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = ERC721.balanceOf(from) - 1; uint256 tokenIndex = _ownedTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary if (tokenIndex != lastTokenIndex) { uint256 lastTokenId = _ownedTokens[from][lastTokenIndex]; _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index } // This also deletes the contents at the last position of the array delete _ownedTokensIndex[tokenId]; delete _ownedTokens[from][lastTokenIndex]; } /** * @dev Private function to remove a token from this extension's token tracking data structures. * This has O(1) time complexity, but alters the order of the _allTokens array. * @param tokenId uint256 ID of the token to be removed from the tokens list */ function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private { // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = _allTokens.length - 1; uint256 tokenIndex = _allTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding // an 'if' statement (like in _removeTokenFromOwnerEnumeration) uint256 lastTokenId = _allTokens[lastTokenIndex]; _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index // This also deletes the contents at the last position of the array delete _allTokensIndex[tokenId]; _allTokens.pop(); } } 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: * * - `to` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address to, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _transfer(owner, to, 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}. * * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on * `transferFrom`. This is semantically equivalent to an infinite approval. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _approve(owner, 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}. * * NOTE: Does not update the allowance if the current allowance * is the maximum `uint256`. * * Requirements: * * - `from` and `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. * - the caller must have allowance for ``from``'s tokens of at least * `amount`. */ function transferFrom( address from, address to, uint256 amount ) public virtual override returns (bool) { address spender = _msgSender(); _spendAllowance(from, spender, amount); _transfer(from, to, 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) { address owner = _msgSender(); _approve(owner, spender, allowance(owner, 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) { address owner = _msgSender(); uint256 currentAllowance = allowance(owner, spender); require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); unchecked { _approve(owner, spender, currentAllowance - subtractedValue); } return true; } /** * @dev Moves `amount` of tokens from `from` to `to`. * * 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: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. */ function _transfer( address from, address to, uint256 amount ) internal virtual { require(from != address(0), "ERC20: transfer from the zero address"); require(to != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(from, to, amount); uint256 fromBalance = _balances[from]; require(fromBalance >= amount, "ERC20: transfer amount exceeds balance"); unchecked { _balances[from] = fromBalance - amount; } _balances[to] += amount; emit Transfer(from, to, amount); _afterTokenTransfer(from, to, 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 Updates `owner` s allowance for `spender` based on spent `amount`. * * Does not update the allowance amount in case of infinite allowance. * Revert if not enough allowance is available. * * Might emit an {Approval} event. */ function _spendAllowance( address owner, address spender, uint256 amount ) internal virtual { uint256 currentAllowance = allowance(owner, spender); if (currentAllowance != type(uint256).max) { require(currentAllowance >= amount, "ERC20: insufficient allowance"); unchecked { _approve(owner, spender, currentAllowance - 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 {} } abstract contract ERC20Burnable is Context, ERC20 { /** * @dev Destroys `amount` tokens from the caller. * * See {ERC20-_burn}. */ function burn(uint256 amount) public virtual { _burn(_msgSender(), amount); } /** * @dev Destroys `amount` tokens from `account`, deducting from the caller's * allowance. * * See {ERC20-_burn} and {ERC20-allowance}. * * Requirements: * * - the caller must have allowance for ``accounts``'s tokens of at least * `amount`. */ function burnFrom(address account, uint256 amount) public virtual { _spendAllowance(account, _msgSender(), amount); _burn(account, amount); } } 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 Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { 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); } } contract GANJA is ERC20, ERC20Burnable, Ownable { mapping(address => bool) controllers; uint256 public maxSupply = 5000000000 ether; constructor() ERC20("GANJA", "GANJA") { } function mint(address to, uint256 amount) external { require(controllers[msg.sender], "No narcs"); require(totalSupply()<=maxSupply); _mint(to, amount); } function burnFrom(address account, uint256 amount) public override { if (controllers[msg.sender]) { _burn(account, amount); } else { super.burnFrom(account, amount); } } function addController(address controller) external onlyOwner { controllers[controller] = true; } function removeController(address controller) external onlyOwner { controllers[controller] = false; } } contract GanjaGrowGanja is Ownable, IERC721Receiver { uint256 public totalStaked; struct Stake { uint24 tokenId; uint48 timestamp; address owner; } mapping(uint256 => Stake) public vault; event NFTStaked(address owner, uint256 tokenId, uint256 value); event NFTUnstaked(address owner, uint256 tokenId, uint256 value); event Claimed(address owner, uint256 amount); ERC721Enumerable nft; GANJA token; constructor(ERC721Enumerable _nft, GANJA _token) { nft = _nft; token = _token; } function stake(uint256[] calldata tokenIds) external { uint256 tokenId; totalStaked += tokenIds.length; for (uint i = 0; i < tokenIds.length; i++) { tokenId = tokenIds[i]; require(nft.ownerOf(tokenId) == msg.sender, "not your token"); require(vault[tokenId].tokenId == 0, 'already staked'); nft.transferFrom(msg.sender, address(this), tokenId); emit NFTStaked(msg.sender, tokenId, block.timestamp); vault[tokenId] = Stake({ owner: msg.sender, tokenId: uint24(tokenId), timestamp: uint48(block.timestamp) }); } } function _unstakeMany(address account, uint256[] calldata tokenIds) internal { uint256 tokenId; totalStaked -= tokenIds.length; for (uint i = 0; i < tokenIds.length; i++) { tokenId = tokenIds[i]; Stake memory staked = vault[tokenId]; require(staked.owner == msg.sender, "not an owner"); delete vault[tokenId]; emit NFTUnstaked(account, tokenId, block.timestamp); nft.transferFrom(address(this), account, tokenId); } } function claim(uint256[] calldata tokenIds) external { _claim(msg.sender, tokenIds, false); } function claimForAddress(address account, uint256[] calldata tokenIds) external { _claim(account, tokenIds, false); } function unstake(uint256[] calldata tokenIds) external { _claim(msg.sender, tokenIds, true); } function _claim(address account, uint256[] calldata tokenIds, bool _unstake) internal { uint256 tokenId; uint256 earned = 0; for (uint i = 0; i < tokenIds.length; i++) { tokenId = tokenIds[i]; Stake memory staked = vault[tokenId]; require(staked.owner == account, "not an owner"); require(token.totalSupply()<=token.maxSupply(), "no more ganja"); uint256 stakedAt = staked.timestamp; earned = 7 ether * (block.timestamp - stakedAt) / 60; vault[tokenId] = Stake({ owner: account, tokenId: uint24(tokenId), timestamp: uint48(block.timestamp) }); } if (earned + token.totalSupply() <= token.maxSupply()) { token.mint(account, earned); } else if (earned + token.totalSupply() >= token.maxSupply()) { uint256 lastTokens = token.maxSupply() - token.totalSupply(); token.mint(account, lastTokens); } else { token.mint(account, 0); } if (_unstake) { _unstakeMany(account, tokenIds); } emit Claimed(account, earned); } function earningInfo(address account, uint256[] calldata tokenIds) external view returns (uint256[1] memory info) { uint256 tokenId; uint256 earned = 0; for (uint i = 0; i < tokenIds.length; i++) { tokenId = tokenIds[i]; Stake memory staked = vault[tokenId]; require(staked.owner == account, "not an owner"); uint256 stakedAt = staked.timestamp; earned = 7 ether * (block.timestamp - stakedAt) / 60; } if (earned > 0) { return [earned]; } } function balanceOf(address account) public view returns (uint256) { uint256 balance = 0; uint256 supply = nft.totalSupply(); for(uint i = 1; i <= supply; i++) { if (vault[i].owner == account) { balance += 1; } } return balance; } function tokensOfOwner(address account) public view returns (uint256[] memory ownerTokens) { uint256 supply = nft.totalSupply(); uint256[] memory tmp = new uint256[](supply); uint256 index = 0; for(uint tokenId = 1; tokenId <= supply; tokenId++) { if (vault[tokenId].owner == account) { tmp[index] = vault[tokenId].tokenId; index +=1; } } uint256[] memory tokens = new uint256[](index); for(uint i = 0; i < index; i++) { tokens[i] = tmp[i]; } return tokens; } function onERC721Received(address, address from, uint256, bytes calldata) external pure override returns (bytes4) { require(from == address(0x0), "Cannot send nfts to Vault directly"); return IERC721Receiver.onERC721Received.selector; } }
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":[{"internalType":"address","name":"controller","type":"address"}],"name":"addController","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":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burnFrom","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":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"controller","type":"address"}],"name":"removeController","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040526b1027e72f1f128130880000006007553480156200002157600080fd5b506040518060400160405280600581526020017f47414e4a410000000000000000000000000000000000000000000000000000008152506040518060400160405280600581526020017f47414e4a410000000000000000000000000000000000000000000000000000008152508160039080519060200190620000a6929190620001b6565b508060049080519060200190620000bf929190620001b6565b505050620000e2620000d6620000e860201b60201c565b620000f060201b60201c565b620002cb565b600033905090565b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b828054620001c49062000266565b90600052602060002090601f016020900481019282620001e8576000855562000234565b82601f106200020357805160ff191683800117855562000234565b8280016001018555821562000234579182015b828111156200023357825182559160200191906001019062000216565b5b50905062000243919062000247565b5090565b5b808211156200026257600081600090555060010162000248565b5090565b600060028204905060018216806200027f57607f821691505b602082108114156200029657620002956200029c565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b611e0680620002db6000396000f3fe608060405234801561001057600080fd5b506004361061012c5760003560e01c806379cc6790116100ad578063a9059cbb11610071578063a9059cbb14610331578063d5abeb0114610361578063dd62ed3e1461037f578063f2fde38b146103af578063f6a74ed7146103cb5761012c565b806379cc67901461028d5780638da5cb5b146102a957806395d89b41146102c7578063a457c2d7146102e5578063a7fc7a07146103155761012c565b806339509351116100f457806339509351146101eb57806340c10f191461021b57806342966c681461023757806370a0823114610253578063715018a6146102835761012c565b806306fdde0314610131578063095ea7b31461014f57806318160ddd1461017f57806323b872dd1461019d578063313ce567146101cd575b600080fd5b6101396103e7565b60405161014691906119db565b60405180910390f35b61016960048036038101906101649190611435565b610479565b60405161017691906119c0565b60405180910390f35b61018761049c565b6040516101949190611b9d565b60405180910390f35b6101b760048036038101906101b291906113e6565b6104a6565b6040516101c491906119c0565b60405180910390f35b6101d56104d5565b6040516101e29190611bb8565b60405180910390f35b61020560048036038101906102009190611435565b6104de565b60405161021291906119c0565b60405180910390f35b61023560048036038101906102309190611435565b610515565b005b610251600480360381019061024c9190611471565b6105c5565b005b61026d60048036038101906102689190611381565b6105d9565b60405161027a9190611b9d565b60405180910390f35b61028b610621565b005b6102a760048036038101906102a29190611435565b610635565b005b6102b16106a5565b6040516102be91906119a5565b60405180910390f35b6102cf6106cf565b6040516102dc91906119db565b60405180910390f35b6102ff60048036038101906102fa9190611435565b610761565b60405161030c91906119c0565b60405180910390f35b61032f600480360381019061032a9190611381565b6107d8565b005b61034b60048036038101906103469190611435565b61083b565b60405161035891906119c0565b60405180910390f35b61036961085e565b6040516103769190611b9d565b60405180910390f35b610399600480360381019061039491906113aa565b610864565b6040516103a69190611b9d565b60405180910390f35b6103c960048036038101906103c49190611381565b6108eb565b005b6103e560048036038101906103e09190611381565b61096f565b005b6060600380546103f690611d01565b80601f016020809104026020016040519081016040528092919081815260200182805461042290611d01565b801561046f5780601f106104445761010080835404028352916020019161046f565b820191906000526020600020905b81548152906001019060200180831161045257829003601f168201915b5050505050905090565b6000806104846109d2565b90506104918185856109da565b600191505092915050565b6000600254905090565b6000806104b16109d2565b90506104be858285610ba5565b6104c9858585610c31565b60019150509392505050565b60006012905090565b6000806104e96109d2565b905061050a8185856104fb8589610864565b6105059190611bef565b6109da565b600191505092915050565b600660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff166105a1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161059890611abd565b60405180910390fd5b6007546105ac61049c565b11156105b757600080fd5b6105c18282610eb2565b5050565b6105d66105d06109d2565b82611012565b50565b60008060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6106296111e9565b6106336000611267565b565b600660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1615610696576106918282611012565b6106a1565b6106a0828261132d565b5b5050565b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6060600480546106de90611d01565b80601f016020809104026020016040519081016040528092919081815260200182805461070a90611d01565b80156107575780601f1061072c57610100808354040283529160200191610757565b820191906000526020600020905b81548152906001019060200180831161073a57829003601f168201915b5050505050905090565b60008061076c6109d2565b9050600061077a8286610864565b9050838110156107bf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107b690611b5d565b60405180910390fd5b6107cc82868684036109da565b60019250505092915050565b6107e06111e9565b6001600660008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555050565b6000806108466109d2565b9050610853818585610c31565b600191505092915050565b60075481565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b6108f36111e9565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610963576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161095a90611a3d565b60405180910390fd5b61096c81611267565b50565b6109776111e9565b6000600660008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555050565b600033905090565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610a4a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a4190611b3d565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415610aba576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ab190611a5d565b60405180910390fd5b80600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92583604051610b989190611b9d565b60405180910390a3505050565b6000610bb18484610864565b90507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8114610c2b5781811015610c1d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c1490611a7d565b60405180910390fd5b610c2a84848484036109da565b5b50505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610ca1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c9890611b1d565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415610d11576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d08906119fd565b60405180910390fd5b610d1c83838361134d565b60008060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015610da2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d9990611a9d565b60405180910390fd5b8181036000808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550816000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254610e359190611bef565b925050819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051610e999190611b9d565b60405180910390a3610eac848484611352565b50505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415610f22576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f1990611b7d565b60405180910390fd5b610f2e6000838361134d565b8060026000828254610f409190611bef565b92505081905550806000808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254610f959190611bef565b925050819055508173ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef83604051610ffa9190611b9d565b60405180910390a361100e60008383611352565b5050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611082576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161107990611afd565b60405180910390fd5b61108e8260008361134d565b60008060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015611114576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161110b90611a1d565b60405180910390fd5b8181036000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550816002600082825461116b9190611c45565b92505081905550600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516111d09190611b9d565b60405180910390a36111e483600084611352565b505050565b6111f16109d2565b73ffffffffffffffffffffffffffffffffffffffff1661120f6106a5565b73ffffffffffffffffffffffffffffffffffffffff1614611265576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161125c90611add565b60405180910390fd5b565b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b61133f826113396109d2565b83610ba5565b6113498282611012565b5050565b505050565b505050565b60008135905061136681611da2565b92915050565b60008135905061137b81611db9565b92915050565b60006020828403121561139357600080fd5b60006113a184828501611357565b91505092915050565b600080604083850312156113bd57600080fd5b60006113cb85828601611357565b92505060206113dc85828601611357565b9150509250929050565b6000806000606084860312156113fb57600080fd5b600061140986828701611357565b935050602061141a86828701611357565b925050604061142b8682870161136c565b9150509250925092565b6000806040838503121561144857600080fd5b600061145685828601611357565b92505060206114678582860161136c565b9150509250929050565b60006020828403121561148357600080fd5b60006114918482850161136c565b91505092915050565b6114a381611c79565b82525050565b6114b281611c8b565b82525050565b60006114c382611bd3565b6114cd8185611bde565b93506114dd818560208601611cce565b6114e681611d91565b840191505092915050565b60006114fe602383611bde565b91507f45524332303a207472616e7366657220746f20746865207a65726f206164647260008301527f65737300000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000611564602283611bde565b91507f45524332303a206275726e20616d6f756e7420657863656564732062616c616e60008301527f63650000000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b60006115ca602683611bde565b91507f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008301527f64647265737300000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000611630602283611bde565b91507f45524332303a20617070726f766520746f20746865207a65726f20616464726560008301527f73730000000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000611696601d83611bde565b91507f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006000830152602082019050919050565b60006116d6602683611bde565b91507f45524332303a207472616e7366657220616d6f756e742065786365656473206260008301527f616c616e636500000000000000000000000000000000000000000000000000006020830152604082019050919050565b600061173c600883611bde565b91507f4e6f206e617263730000000000000000000000000000000000000000000000006000830152602082019050919050565b600061177c602083611bde565b91507f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726000830152602082019050919050565b60006117bc602183611bde565b91507f45524332303a206275726e2066726f6d20746865207a65726f2061646472657360008301527f73000000000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000611822602583611bde565b91507f45524332303a207472616e736665722066726f6d20746865207a65726f20616460008301527f64726573730000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000611888602483611bde565b91507f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460008301527f72657373000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b60006118ee602583611bde565b91507f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760008301527f207a65726f0000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000611954601f83611bde565b91507f45524332303a206d696e7420746f20746865207a65726f2061646472657373006000830152602082019050919050565b61199081611cb7565b82525050565b61199f81611cc1565b82525050565b60006020820190506119ba600083018461149a565b92915050565b60006020820190506119d560008301846114a9565b92915050565b600060208201905081810360008301526119f581846114b8565b905092915050565b60006020820190508181036000830152611a16816114f1565b9050919050565b60006020820190508181036000830152611a3681611557565b9050919050565b60006020820190508181036000830152611a56816115bd565b9050919050565b60006020820190508181036000830152611a7681611623565b9050919050565b60006020820190508181036000830152611a9681611689565b9050919050565b60006020820190508181036000830152611ab6816116c9565b9050919050565b60006020820190508181036000830152611ad68161172f565b9050919050565b60006020820190508181036000830152611af68161176f565b9050919050565b60006020820190508181036000830152611b16816117af565b9050919050565b60006020820190508181036000830152611b3681611815565b9050919050565b60006020820190508181036000830152611b568161187b565b9050919050565b60006020820190508181036000830152611b76816118e1565b9050919050565b60006020820190508181036000830152611b9681611947565b9050919050565b6000602082019050611bb26000830184611987565b92915050565b6000602082019050611bcd6000830184611996565b92915050565b600081519050919050565b600082825260208201905092915050565b6000611bfa82611cb7565b9150611c0583611cb7565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115611c3a57611c39611d33565b5b828201905092915050565b6000611c5082611cb7565b9150611c5b83611cb7565b925082821015611c6e57611c6d611d33565b5b828203905092915050565b6000611c8482611c97565b9050919050565b60008115159050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b60005b83811015611cec578082015181840152602081019050611cd1565b83811115611cfb576000848401525b50505050565b60006002820490506001821680611d1957607f821691505b60208210811415611d2d57611d2c611d62565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000601f19601f8301169050919050565b611dab81611c79565b8114611db657600080fd5b50565b611dc281611cb7565b8114611dcd57600080fd5b5056fea2646970667358221220841b05e4ab3e5f2a4983e27ae2dea295df1f806f497021d0b71035562046d3fe64736f6c63430008000033
Deployed Bytecode
0x608060405234801561001057600080fd5b506004361061012c5760003560e01c806379cc6790116100ad578063a9059cbb11610071578063a9059cbb14610331578063d5abeb0114610361578063dd62ed3e1461037f578063f2fde38b146103af578063f6a74ed7146103cb5761012c565b806379cc67901461028d5780638da5cb5b146102a957806395d89b41146102c7578063a457c2d7146102e5578063a7fc7a07146103155761012c565b806339509351116100f457806339509351146101eb57806340c10f191461021b57806342966c681461023757806370a0823114610253578063715018a6146102835761012c565b806306fdde0314610131578063095ea7b31461014f57806318160ddd1461017f57806323b872dd1461019d578063313ce567146101cd575b600080fd5b6101396103e7565b60405161014691906119db565b60405180910390f35b61016960048036038101906101649190611435565b610479565b60405161017691906119c0565b60405180910390f35b61018761049c565b6040516101949190611b9d565b60405180910390f35b6101b760048036038101906101b291906113e6565b6104a6565b6040516101c491906119c0565b60405180910390f35b6101d56104d5565b6040516101e29190611bb8565b60405180910390f35b61020560048036038101906102009190611435565b6104de565b60405161021291906119c0565b60405180910390f35b61023560048036038101906102309190611435565b610515565b005b610251600480360381019061024c9190611471565b6105c5565b005b61026d60048036038101906102689190611381565b6105d9565b60405161027a9190611b9d565b60405180910390f35b61028b610621565b005b6102a760048036038101906102a29190611435565b610635565b005b6102b16106a5565b6040516102be91906119a5565b60405180910390f35b6102cf6106cf565b6040516102dc91906119db565b60405180910390f35b6102ff60048036038101906102fa9190611435565b610761565b60405161030c91906119c0565b60405180910390f35b61032f600480360381019061032a9190611381565b6107d8565b005b61034b60048036038101906103469190611435565b61083b565b60405161035891906119c0565b60405180910390f35b61036961085e565b6040516103769190611b9d565b60405180910390f35b610399600480360381019061039491906113aa565b610864565b6040516103a69190611b9d565b60405180910390f35b6103c960048036038101906103c49190611381565b6108eb565b005b6103e560048036038101906103e09190611381565b61096f565b005b6060600380546103f690611d01565b80601f016020809104026020016040519081016040528092919081815260200182805461042290611d01565b801561046f5780601f106104445761010080835404028352916020019161046f565b820191906000526020600020905b81548152906001019060200180831161045257829003601f168201915b5050505050905090565b6000806104846109d2565b90506104918185856109da565b600191505092915050565b6000600254905090565b6000806104b16109d2565b90506104be858285610ba5565b6104c9858585610c31565b60019150509392505050565b60006012905090565b6000806104e96109d2565b905061050a8185856104fb8589610864565b6105059190611bef565b6109da565b600191505092915050565b600660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff166105a1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161059890611abd565b60405180910390fd5b6007546105ac61049c565b11156105b757600080fd5b6105c18282610eb2565b5050565b6105d66105d06109d2565b82611012565b50565b60008060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6106296111e9565b6106336000611267565b565b600660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1615610696576106918282611012565b6106a1565b6106a0828261132d565b5b5050565b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6060600480546106de90611d01565b80601f016020809104026020016040519081016040528092919081815260200182805461070a90611d01565b80156107575780601f1061072c57610100808354040283529160200191610757565b820191906000526020600020905b81548152906001019060200180831161073a57829003601f168201915b5050505050905090565b60008061076c6109d2565b9050600061077a8286610864565b9050838110156107bf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107b690611b5d565b60405180910390fd5b6107cc82868684036109da565b60019250505092915050565b6107e06111e9565b6001600660008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555050565b6000806108466109d2565b9050610853818585610c31565b600191505092915050565b60075481565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b6108f36111e9565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610963576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161095a90611a3d565b60405180910390fd5b61096c81611267565b50565b6109776111e9565b6000600660008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555050565b600033905090565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610a4a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a4190611b3d565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415610aba576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ab190611a5d565b60405180910390fd5b80600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92583604051610b989190611b9d565b60405180910390a3505050565b6000610bb18484610864565b90507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8114610c2b5781811015610c1d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c1490611a7d565b60405180910390fd5b610c2a84848484036109da565b5b50505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610ca1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c9890611b1d565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415610d11576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d08906119fd565b60405180910390fd5b610d1c83838361134d565b60008060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015610da2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d9990611a9d565b60405180910390fd5b8181036000808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550816000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254610e359190611bef565b925050819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051610e999190611b9d565b60405180910390a3610eac848484611352565b50505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415610f22576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f1990611b7d565b60405180910390fd5b610f2e6000838361134d565b8060026000828254610f409190611bef565b92505081905550806000808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254610f959190611bef565b925050819055508173ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef83604051610ffa9190611b9d565b60405180910390a361100e60008383611352565b5050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611082576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161107990611afd565b60405180910390fd5b61108e8260008361134d565b60008060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905081811015611114576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161110b90611a1d565b60405180910390fd5b8181036000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550816002600082825461116b9190611c45565b92505081905550600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516111d09190611b9d565b60405180910390a36111e483600084611352565b505050565b6111f16109d2565b73ffffffffffffffffffffffffffffffffffffffff1661120f6106a5565b73ffffffffffffffffffffffffffffffffffffffff1614611265576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161125c90611add565b60405180910390fd5b565b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b61133f826113396109d2565b83610ba5565b6113498282611012565b5050565b505050565b505050565b60008135905061136681611da2565b92915050565b60008135905061137b81611db9565b92915050565b60006020828403121561139357600080fd5b60006113a184828501611357565b91505092915050565b600080604083850312156113bd57600080fd5b60006113cb85828601611357565b92505060206113dc85828601611357565b9150509250929050565b6000806000606084860312156113fb57600080fd5b600061140986828701611357565b935050602061141a86828701611357565b925050604061142b8682870161136c565b9150509250925092565b6000806040838503121561144857600080fd5b600061145685828601611357565b92505060206114678582860161136c565b9150509250929050565b60006020828403121561148357600080fd5b60006114918482850161136c565b91505092915050565b6114a381611c79565b82525050565b6114b281611c8b565b82525050565b60006114c382611bd3565b6114cd8185611bde565b93506114dd818560208601611cce565b6114e681611d91565b840191505092915050565b60006114fe602383611bde565b91507f45524332303a207472616e7366657220746f20746865207a65726f206164647260008301527f65737300000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000611564602283611bde565b91507f45524332303a206275726e20616d6f756e7420657863656564732062616c616e60008301527f63650000000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b60006115ca602683611bde565b91507f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008301527f64647265737300000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000611630602283611bde565b91507f45524332303a20617070726f766520746f20746865207a65726f20616464726560008301527f73730000000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000611696601d83611bde565b91507f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006000830152602082019050919050565b60006116d6602683611bde565b91507f45524332303a207472616e7366657220616d6f756e742065786365656473206260008301527f616c616e636500000000000000000000000000000000000000000000000000006020830152604082019050919050565b600061173c600883611bde565b91507f4e6f206e617263730000000000000000000000000000000000000000000000006000830152602082019050919050565b600061177c602083611bde565b91507f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726000830152602082019050919050565b60006117bc602183611bde565b91507f45524332303a206275726e2066726f6d20746865207a65726f2061646472657360008301527f73000000000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000611822602583611bde565b91507f45524332303a207472616e736665722066726f6d20746865207a65726f20616460008301527f64726573730000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000611888602483611bde565b91507f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460008301527f72657373000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b60006118ee602583611bde565b91507f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760008301527f207a65726f0000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000611954601f83611bde565b91507f45524332303a206d696e7420746f20746865207a65726f2061646472657373006000830152602082019050919050565b61199081611cb7565b82525050565b61199f81611cc1565b82525050565b60006020820190506119ba600083018461149a565b92915050565b60006020820190506119d560008301846114a9565b92915050565b600060208201905081810360008301526119f581846114b8565b905092915050565b60006020820190508181036000830152611a16816114f1565b9050919050565b60006020820190508181036000830152611a3681611557565b9050919050565b60006020820190508181036000830152611a56816115bd565b9050919050565b60006020820190508181036000830152611a7681611623565b9050919050565b60006020820190508181036000830152611a9681611689565b9050919050565b60006020820190508181036000830152611ab6816116c9565b9050919050565b60006020820190508181036000830152611ad68161172f565b9050919050565b60006020820190508181036000830152611af68161176f565b9050919050565b60006020820190508181036000830152611b16816117af565b9050919050565b60006020820190508181036000830152611b3681611815565b9050919050565b60006020820190508181036000830152611b568161187b565b9050919050565b60006020820190508181036000830152611b76816118e1565b9050919050565b60006020820190508181036000830152611b9681611947565b9050919050565b6000602082019050611bb26000830184611987565b92915050565b6000602082019050611bcd6000830184611996565b92915050565b600081519050919050565b600082825260208201905092915050565b6000611bfa82611cb7565b9150611c0583611cb7565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115611c3a57611c39611d33565b5b828201905092915050565b6000611c5082611cb7565b9150611c5b83611cb7565b925082821015611c6e57611c6d611d33565b5b828203905092915050565b6000611c8482611c97565b9050919050565b60008115159050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b60005b83811015611cec578082015181840152602081019050611cd1565b83811115611cfb576000848401525b50505050565b60006002820490506001821680611d1957607f821691505b60208210811415611d2d57611d2c611d62565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000601f19601f8301169050919050565b611dab81611c79565b8114611db657600080fd5b50565b611dc281611cb7565b8114611dcd57600080fd5b5056fea2646970667358221220841b05e4ab3e5f2a4983e27ae2dea295df1f806f497021d0b71035562046d3fe64736f6c63430008000033
Deployed Bytecode Sourcemap
63590:877:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;50023:100;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;52374:201;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;51143:108;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;53155:295;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;50985:93;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;53859:238;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;63791:186;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;60974:91;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;51314:127;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;62773:103;;;:::i;:::-;;63985:237;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;62125:87;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;50242:104;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;54600:436;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;64230:111;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;51647:193;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;63690:43;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;51903:151;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;63031:201;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;64349:115;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;50023:100;50077:13;50110:5;50103:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;50023:100;:::o;52374:201::-;52457:4;52474:13;52490:12;:10;:12::i;:::-;52474:28;;52513:32;52522:5;52529:7;52538:6;52513:8;:32::i;:::-;52563:4;52556:11;;;52374:201;;;;:::o;51143:108::-;51204:7;51231:12;;51224:19;;51143:108;:::o;53155:295::-;53286:4;53303:15;53321:12;:10;:12::i;:::-;53303:30;;53344:38;53360:4;53366:7;53375:6;53344:15;:38::i;:::-;53393:27;53403:4;53409:2;53413:6;53393:9;:27::i;:::-;53438:4;53431:11;;;53155:295;;;;;:::o;50985:93::-;51043:5;51068:2;51061:9;;50985:93;:::o;53859:238::-;53947:4;53964:13;53980:12;:10;:12::i;:::-;53964:28;;54003:64;54012:5;54019:7;54056:10;54028:25;54038:5;54045:7;54028:9;:25::i;:::-;:38;;;;:::i;:::-;54003:8;:64::i;:::-;54085:4;54078:11;;;53859:238;;;;:::o;63791:186::-;63861:11;:23;63873:10;63861:23;;;;;;;;;;;;;;;;;;;;;;;;;63853:44;;;;;;;;;;;;:::i;:::-;;;;;;;;;63931:9;;63916:13;:11;:13::i;:::-;:24;;63908:33;;;;;;63952:17;63958:2;63962:6;63952:5;:17::i;:::-;63791:186;;:::o;60974:91::-;61030:27;61036:12;:10;:12::i;:::-;61050:6;61030:5;:27::i;:::-;60974:91;:::o;51314:127::-;51388:7;51415:9;:18;51425:7;51415:18;;;;;;;;;;;;;;;;51408:25;;51314:127;;;:::o;62773:103::-;62011:13;:11;:13::i;:::-;62838:30:::1;62865:1;62838:18;:30::i;:::-;62773:103::o:0;63985:237::-;64067:11;:23;64079:10;64067:23;;;;;;;;;;;;;;;;;;;;;;;;;64063:151;;;64107:22;64113:7;64122:6;64107:5;:22::i;:::-;64063:151;;;64171:31;64186:7;64195:6;64171:14;:31::i;:::-;64063:151;63985:237;;:::o;62125:87::-;62171:7;62198:6;;;;;;;;;;;62191:13;;62125:87;:::o;50242:104::-;50298:13;50331:7;50324:14;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;50242:104;:::o;54600:436::-;54693:4;54710:13;54726:12;:10;:12::i;:::-;54710:28;;54749:24;54776:25;54786:5;54793:7;54776:9;:25::i;:::-;54749:52;;54840:15;54820:16;:35;;54812:85;;;;;;;;;;;;:::i;:::-;;;;;;;;;54933:60;54942:5;54949:7;54977:15;54958:16;:34;54933:8;:60::i;:::-;55024:4;55017:11;;;;54600:436;;;;:::o;64230:111::-;62011:13;:11;:13::i;:::-;64329:4:::1;64303:11;:23;64315:10;64303:23;;;;;;;;;;;;;;;;:30;;;;;;;;;;;;;;;;;;64230:111:::0;:::o;51647:193::-;51726:4;51743:13;51759:12;:10;:12::i;:::-;51743:28;;51782;51792:5;51799:2;51803:6;51782:9;:28::i;:::-;51828:4;51821:11;;;51647:193;;;;:::o;63690:43::-;;;;:::o;51903:151::-;51992:7;52019:11;:18;52031:5;52019:18;;;;;;;;;;;;;;;:27;52038:7;52019:27;;;;;;;;;;;;;;;;52012:34;;51903:151;;;;:::o;63031:201::-;62011:13;:11;:13::i;:::-;63140:1:::1;63120:22;;:8;:22;;;;63112:73;;;;;;;;;;;;:::i;:::-;;;;;;;;;63196:28;63215:8;63196:18;:28::i;:::-;63031:201:::0;:::o;64349:115::-;62011:13;:11;:13::i;:::-;64451:5:::1;64425:11;:23;64437:10;64425:23;;;;;;;;;;;;;;;;:31;;;;;;;;;;;;;;;;;;64349:115:::0;:::o;28115:98::-;28168:7;28195:10;28188:17;;28115:98;:::o;58225:380::-;58378:1;58361:19;;:5;:19;;;;58353:68;;;;;;;;;;;;:::i;:::-;;;;;;;;;58459:1;58440:21;;:7;:21;;;;58432:68;;;;;;;;;;;;:::i;:::-;;;;;;;;;58543:6;58513:11;:18;58525:5;58513:18;;;;;;;;;;;;;;;:27;58532:7;58513:27;;;;;;;;;;;;;;;:36;;;;58581:7;58565:32;;58574:5;58565:32;;;58590:6;58565:32;;;;;;:::i;:::-;;;;;;;;58225:380;;;:::o;58896:453::-;59031:24;59058:25;59068:5;59075:7;59058:9;:25::i;:::-;59031:52;;59118:17;59098:16;:37;59094:248;;59180:6;59160:16;:26;;59152:68;;;;;;;;;;;;:::i;:::-;;;;;;;;;59264:51;59273:5;59280:7;59308:6;59289:16;:25;59264:8;:51::i;:::-;59094:248;58896:453;;;;:::o;55506:671::-;55653:1;55637:18;;:4;:18;;;;55629:68;;;;;;;;;;;;:::i;:::-;;;;;;;;;55730:1;55716:16;;:2;:16;;;;55708:64;;;;;;;;;;;;:::i;:::-;;;;;;;;;55785:38;55806:4;55812:2;55816:6;55785:20;:38::i;:::-;55836:19;55858:9;:15;55868:4;55858:15;;;;;;;;;;;;;;;;55836:37;;55907:6;55892:11;:21;;55884:72;;;;;;;;;;;;:::i;:::-;;;;;;;;;56024:6;56010:11;:20;55992:9;:15;56002:4;55992:15;;;;;;;;;;;;;;;:38;;;;56069:6;56052:9;:13;56062:2;56052:13;;;;;;;;;;;;;;;;:23;;;;;;;:::i;:::-;;;;;;;;56108:2;56093:26;;56102:4;56093:26;;;56112:6;56093:26;;;;;;:::i;:::-;;;;;;;;56132:37;56152:4;56158:2;56162:6;56132:19;:37::i;:::-;55506:671;;;;:::o;56464:399::-;56567:1;56548:21;;:7;:21;;;;56540:65;;;;;;;;;;;;:::i;:::-;;;;;;;;;56618:49;56647:1;56651:7;56660:6;56618:20;:49::i;:::-;56696:6;56680:12;;:22;;;;;;;:::i;:::-;;;;;;;;56735:6;56713:9;:18;56723:7;56713:18;;;;;;;;;;;;;;;;:28;;;;;;;:::i;:::-;;;;;;;;56778:7;56757:37;;56774:1;56757:37;;;56787:6;56757:37;;;;;;:::i;:::-;;;;;;;;56807:48;56835:1;56839:7;56848:6;56807:19;:48::i;:::-;56464:399;;:::o;57196:591::-;57299:1;57280:21;;:7;:21;;;;57272:67;;;;;;;;;;;;:::i;:::-;;;;;;;;;57352:49;57373:7;57390:1;57394:6;57352:20;:49::i;:::-;57414:22;57439:9;:18;57449:7;57439:18;;;;;;;;;;;;;;;;57414:43;;57494:6;57476:14;:24;;57468:71;;;;;;;;;;;;:::i;:::-;;;;;;;;;57613:6;57596:14;:23;57575:9;:18;57585:7;57575:18;;;;;;;;;;;;;;;:44;;;;57657:6;57641:12;;:22;;;;;;;:::i;:::-;;;;;;;;57707:1;57681:37;;57690:7;57681:37;;;57711:6;57681:37;;;;;;:::i;:::-;;;;;;;;57731:48;57751:7;57768:1;57772:6;57731:19;:48::i;:::-;57196:591;;;:::o;62290:132::-;62365:12;:10;:12::i;:::-;62354:23;;:7;:5;:7::i;:::-;:23;;;62346:68;;;;;;;;;;;;:::i;:::-;;;;;;;;;62290:132::o;63392:191::-;63466:16;63485:6;;;;;;;;;;;63466:25;;63511:8;63502:6;;:17;;;;;;;;;;;;;;;;;;63566:8;63535:40;;63556:8;63535:40;;;;;;;;;;;;63392:191;;:::o;61384:164::-;61461:46;61477:7;61486:12;:10;:12::i;:::-;61500:6;61461:15;:46::i;:::-;61518:22;61524:7;61533:6;61518:5;:22::i;:::-;61384:164;;:::o;59949:125::-;;;;:::o;60678:124::-;;;;:::o;7:139:1:-;;91:6;78:20;69:29;;107:33;134:5;107:33;:::i;:::-;59:87;;;;:::o;152:139::-;;236:6;223:20;214:29;;252:33;279:5;252:33;:::i;:::-;204:87;;;;:::o;297:262::-;;405:2;393:9;384:7;380:23;376:32;373:2;;;421:1;418;411:12;373:2;464:1;489:53;534:7;525:6;514:9;510:22;489:53;:::i;:::-;479:63;;435:117;363:196;;;;:::o;565:407::-;;;690:2;678:9;669:7;665:23;661:32;658:2;;;706:1;703;696:12;658:2;749:1;774:53;819:7;810:6;799:9;795:22;774:53;:::i;:::-;764:63;;720:117;876:2;902:53;947:7;938:6;927:9;923:22;902:53;:::i;:::-;892:63;;847:118;648:324;;;;;:::o;978:552::-;;;;1120:2;1108:9;1099:7;1095:23;1091:32;1088:2;;;1136:1;1133;1126:12;1088:2;1179:1;1204:53;1249:7;1240:6;1229:9;1225:22;1204:53;:::i;:::-;1194:63;;1150:117;1306:2;1332:53;1377:7;1368:6;1357:9;1353:22;1332:53;:::i;:::-;1322:63;;1277:118;1434:2;1460:53;1505:7;1496:6;1485:9;1481:22;1460:53;:::i;:::-;1450:63;;1405:118;1078:452;;;;;:::o;1536:407::-;;;1661:2;1649:9;1640:7;1636:23;1632:32;1629:2;;;1677:1;1674;1667:12;1629:2;1720:1;1745:53;1790:7;1781:6;1770:9;1766:22;1745:53;:::i;:::-;1735:63;;1691:117;1847:2;1873:53;1918:7;1909:6;1898:9;1894:22;1873:53;:::i;:::-;1863:63;;1818:118;1619:324;;;;;:::o;1949:262::-;;2057:2;2045:9;2036:7;2032:23;2028:32;2025:2;;;2073:1;2070;2063:12;2025:2;2116:1;2141:53;2186:7;2177:6;2166:9;2162:22;2141:53;:::i;:::-;2131:63;;2087:117;2015:196;;;;:::o;2217:118::-;2304:24;2322:5;2304:24;:::i;:::-;2299:3;2292:37;2282:53;;:::o;2341:109::-;2422:21;2437:5;2422:21;:::i;:::-;2417:3;2410:34;2400:50;;:::o;2456:364::-;;2572:39;2605:5;2572:39;:::i;:::-;2627:71;2691:6;2686:3;2627:71;:::i;:::-;2620:78;;2707:52;2752:6;2747:3;2740:4;2733:5;2729:16;2707:52;:::i;:::-;2784:29;2806:6;2784:29;:::i;:::-;2779:3;2775:39;2768:46;;2548:272;;;;;:::o;2826:367::-;;2989:67;3053:2;3048:3;2989:67;:::i;:::-;2982:74;;3086:34;3082:1;3077:3;3073:11;3066:55;3152:5;3147:2;3142:3;3138:12;3131:27;3184:2;3179:3;3175:12;3168:19;;2972:221;;;:::o;3199:366::-;;3362:67;3426:2;3421:3;3362:67;:::i;:::-;3355:74;;3459:34;3455:1;3450:3;3446:11;3439:55;3525:4;3520:2;3515:3;3511:12;3504:26;3556:2;3551:3;3547:12;3540:19;;3345:220;;;:::o;3571:370::-;;3734:67;3798:2;3793:3;3734:67;:::i;:::-;3727:74;;3831:34;3827:1;3822:3;3818:11;3811:55;3897:8;3892:2;3887:3;3883:12;3876:30;3932:2;3927:3;3923:12;3916:19;;3717:224;;;:::o;3947:366::-;;4110:67;4174:2;4169:3;4110:67;:::i;:::-;4103:74;;4207:34;4203:1;4198:3;4194:11;4187:55;4273:4;4268:2;4263:3;4259:12;4252:26;4304:2;4299:3;4295:12;4288:19;;4093:220;;;:::o;4319:327::-;;4482:67;4546:2;4541:3;4482:67;:::i;:::-;4475:74;;4579:31;4575:1;4570:3;4566:11;4559:52;4637:2;4632:3;4628:12;4621:19;;4465:181;;;:::o;4652:370::-;;4815:67;4879:2;4874:3;4815:67;:::i;:::-;4808:74;;4912:34;4908:1;4903:3;4899:11;4892:55;4978:8;4973:2;4968:3;4964:12;4957:30;5013:2;5008:3;5004:12;4997:19;;4798:224;;;:::o;5028:305::-;;5191:66;5255:1;5250:3;5191:66;:::i;:::-;5184:73;;5287:10;5283:1;5278:3;5274:11;5267:31;5324:2;5319:3;5315:12;5308:19;;5174:159;;;:::o;5339:330::-;;5502:67;5566:2;5561:3;5502:67;:::i;:::-;5495:74;;5599:34;5595:1;5590:3;5586:11;5579:55;5660:2;5655:3;5651:12;5644:19;;5485:184;;;:::o;5675:365::-;;5838:67;5902:2;5897:3;5838:67;:::i;:::-;5831:74;;5935:34;5931:1;5926:3;5922:11;5915:55;6001:3;5996:2;5991:3;5987:12;5980:25;6031:2;6026:3;6022:12;6015:19;;5821:219;;;:::o;6046:369::-;;6209:67;6273:2;6268:3;6209:67;:::i;:::-;6202:74;;6306:34;6302:1;6297:3;6293:11;6286:55;6372:7;6367:2;6362:3;6358:12;6351:29;6406:2;6401:3;6397:12;6390:19;;6192:223;;;:::o;6421:368::-;;6584:67;6648:2;6643:3;6584:67;:::i;:::-;6577:74;;6681:34;6677:1;6672:3;6668:11;6661:55;6747:6;6742:2;6737:3;6733:12;6726:28;6780:2;6775:3;6771:12;6764:19;;6567:222;;;:::o;6795:369::-;;6958:67;7022:2;7017:3;6958:67;:::i;:::-;6951:74;;7055:34;7051:1;7046:3;7042:11;7035:55;7121:7;7116:2;7111:3;7107:12;7100:29;7155:2;7150:3;7146:12;7139:19;;6941:223;;;:::o;7170:329::-;;7333:67;7397:2;7392:3;7333:67;:::i;:::-;7326:74;;7430:33;7426:1;7421:3;7417:11;7410:54;7490:2;7485:3;7481:12;7474:19;;7316:183;;;:::o;7505:118::-;7592:24;7610:5;7592:24;:::i;:::-;7587:3;7580:37;7570:53;;:::o;7629:112::-;7712:22;7728:5;7712:22;:::i;:::-;7707:3;7700:35;7690:51;;:::o;7747:222::-;;7878:2;7867:9;7863:18;7855:26;;7891:71;7959:1;7948:9;7944:17;7935:6;7891:71;:::i;:::-;7845:124;;;;:::o;7975:210::-;;8100:2;8089:9;8085:18;8077:26;;8113:65;8175:1;8164:9;8160:17;8151:6;8113:65;:::i;:::-;8067:118;;;;:::o;8191:313::-;;8342:2;8331:9;8327:18;8319:26;;8391:9;8385:4;8381:20;8377:1;8366:9;8362:17;8355:47;8419:78;8492:4;8483:6;8419:78;:::i;:::-;8411:86;;8309:195;;;;:::o;8510:419::-;;8714:2;8703:9;8699:18;8691:26;;8763:9;8757:4;8753:20;8749:1;8738:9;8734:17;8727:47;8791:131;8917:4;8791:131;:::i;:::-;8783:139;;8681:248;;;:::o;8935:419::-;;9139:2;9128:9;9124:18;9116:26;;9188:9;9182:4;9178:20;9174:1;9163:9;9159:17;9152:47;9216:131;9342:4;9216:131;:::i;:::-;9208:139;;9106:248;;;:::o;9360:419::-;;9564:2;9553:9;9549:18;9541:26;;9613:9;9607:4;9603:20;9599:1;9588:9;9584:17;9577:47;9641:131;9767:4;9641:131;:::i;:::-;9633:139;;9531:248;;;:::o;9785:419::-;;9989:2;9978:9;9974:18;9966:26;;10038:9;10032:4;10028:20;10024:1;10013:9;10009:17;10002:47;10066:131;10192:4;10066:131;:::i;:::-;10058:139;;9956:248;;;:::o;10210:419::-;;10414:2;10403:9;10399:18;10391:26;;10463:9;10457:4;10453:20;10449:1;10438:9;10434:17;10427:47;10491:131;10617:4;10491:131;:::i;:::-;10483:139;;10381:248;;;:::o;10635:419::-;;10839:2;10828:9;10824:18;10816:26;;10888:9;10882:4;10878:20;10874:1;10863:9;10859:17;10852:47;10916:131;11042:4;10916:131;:::i;:::-;10908:139;;10806:248;;;:::o;11060:419::-;;11264:2;11253:9;11249:18;11241:26;;11313:9;11307:4;11303:20;11299:1;11288:9;11284:17;11277:47;11341:131;11467:4;11341:131;:::i;:::-;11333:139;;11231:248;;;:::o;11485:419::-;;11689:2;11678:9;11674:18;11666:26;;11738:9;11732:4;11728:20;11724:1;11713:9;11709:17;11702:47;11766:131;11892:4;11766:131;:::i;:::-;11758:139;;11656:248;;;:::o;11910:419::-;;12114:2;12103:9;12099:18;12091:26;;12163:9;12157:4;12153:20;12149:1;12138:9;12134:17;12127:47;12191:131;12317:4;12191:131;:::i;:::-;12183:139;;12081:248;;;:::o;12335:419::-;;12539:2;12528:9;12524:18;12516:26;;12588:9;12582:4;12578:20;12574:1;12563:9;12559:17;12552:47;12616:131;12742:4;12616:131;:::i;:::-;12608:139;;12506:248;;;:::o;12760:419::-;;12964:2;12953:9;12949:18;12941:26;;13013:9;13007:4;13003:20;12999:1;12988:9;12984:17;12977:47;13041:131;13167:4;13041:131;:::i;:::-;13033:139;;12931:248;;;:::o;13185:419::-;;13389:2;13378:9;13374:18;13366:26;;13438:9;13432:4;13428:20;13424:1;13413:9;13409:17;13402:47;13466:131;13592:4;13466:131;:::i;:::-;13458:139;;13356:248;;;:::o;13610:419::-;;13814:2;13803:9;13799:18;13791:26;;13863:9;13857:4;13853:20;13849:1;13838:9;13834:17;13827:47;13891:131;14017:4;13891:131;:::i;:::-;13883:139;;13781:248;;;:::o;14035:222::-;;14166:2;14155:9;14151:18;14143:26;;14179:71;14247:1;14236:9;14232:17;14223:6;14179:71;:::i;:::-;14133:124;;;;:::o;14263:214::-;;14390:2;14379:9;14375:18;14367:26;;14403:67;14467:1;14456:9;14452:17;14443:6;14403:67;:::i;:::-;14357:120;;;;:::o;14483:99::-;;14569:5;14563:12;14553:22;;14542:40;;;:::o;14588:169::-;;14706:6;14701:3;14694:19;14746:4;14741:3;14737:14;14722:29;;14684:73;;;;:::o;14763:305::-;;14822:20;14840:1;14822:20;:::i;:::-;14817:25;;14856:20;14874:1;14856:20;:::i;:::-;14851:25;;15010:1;14942:66;14938:74;14935:1;14932:81;14929:2;;;15016:18;;:::i;:::-;14929:2;15060:1;15057;15053:9;15046:16;;14807:261;;;;:::o;15074:191::-;;15134:20;15152:1;15134:20;:::i;:::-;15129:25;;15168:20;15186:1;15168:20;:::i;:::-;15163:25;;15207:1;15204;15201:8;15198:2;;;15212:18;;:::i;:::-;15198:2;15257:1;15254;15250:9;15242:17;;15119:146;;;;:::o;15271:96::-;;15337:24;15355:5;15337:24;:::i;:::-;15326:35;;15316:51;;;:::o;15373:90::-;;15450:5;15443:13;15436:21;15425:32;;15415:48;;;:::o;15469:126::-;;15546:42;15539:5;15535:54;15524:65;;15514:81;;;:::o;15601:77::-;;15667:5;15656:16;;15646:32;;;:::o;15684:86::-;;15759:4;15752:5;15748:16;15737:27;;15727:43;;;:::o;15776:307::-;15844:1;15854:113;15868:6;15865:1;15862:13;15854:113;;;15953:1;15948:3;15944:11;15938:18;15934:1;15929:3;15925:11;15918:39;15890:2;15887:1;15883:10;15878:15;;15854:113;;;15985:6;15982:1;15979:13;15976:2;;;16065:1;16056:6;16051:3;16047:16;16040:27;15976:2;15825:258;;;;:::o;16089:320::-;;16170:1;16164:4;16160:12;16150:22;;16217:1;16211:4;16207:12;16238:18;16228:2;;16294:4;16286:6;16282:17;16272:27;;16228:2;16356;16348:6;16345:14;16325:18;16322:38;16319:2;;;16375:18;;:::i;:::-;16319:2;16140:269;;;;:::o;16415:180::-;16463:77;16460:1;16453:88;16560:4;16557:1;16550:15;16584:4;16581:1;16574:15;16601:180;16649:77;16646:1;16639:88;16746:4;16743:1;16736:15;16770:4;16767:1;16760:15;16787:102;;16879:2;16875:7;16870:2;16863:5;16859:14;16855:28;16845:38;;16835:54;;;:::o;16895:122::-;16968:24;16986:5;16968:24;:::i;:::-;16961:5;16958:35;16948:2;;17007:1;17004;16997:12;16948:2;16938:79;:::o;17023:122::-;17096:24;17114:5;17096:24;:::i;:::-;17089:5;17086:35;17076:2;;17135:1;17132;17125:12;17076:2;17066:79;:::o
Swarm Source
ipfs://841b05e4ab3e5f2a4983e27ae2dea295df1f806f497021d0b71035562046d3fe
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.