Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 119 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Join Raffle | 14430783 | 891 days ago | IN | 0 ETH | 0.00878872 | ||||
Join Raffle | 14429918 | 891 days ago | IN | 0 ETH | 0.00399451 | ||||
Join Raffle | 14429915 | 891 days ago | IN | 0 ETH | 0.00547098 | ||||
Join Raffle | 14427143 | 891 days ago | IN | 0 ETH | 0.00427427 | ||||
Join Raffle | 14427138 | 891 days ago | IN | 0 ETH | 0.00543034 | ||||
Join Raffle | 14426975 | 891 days ago | IN | 0 ETH | 0.00400541 | ||||
Join Raffle | 14426972 | 891 days ago | IN | 0 ETH | 0.00424893 | ||||
Join Raffle | 14426754 | 891 days ago | IN | 0 ETH | 0.00256272 | ||||
Join Raffle | 14425865 | 892 days ago | IN | 0 ETH | 0.00527887 | ||||
Join Raffle | 14425202 | 892 days ago | IN | 0 ETH | 0.00478961 | ||||
Join Raffle | 14424183 | 892 days ago | IN | 0 ETH | 0.00356793 | ||||
Join Raffle | 14424045 | 892 days ago | IN | 0 ETH | 0.00394019 | ||||
Join Raffle | 14424014 | 892 days ago | IN | 0 ETH | 0.00468373 | ||||
Join Raffle | 14423841 | 892 days ago | IN | 0 ETH | 0.00373863 | ||||
Join Raffle | 14423834 | 892 days ago | IN | 0 ETH | 0.00430346 | ||||
Join Raffle | 14423022 | 892 days ago | IN | 0 ETH | 0.00187323 | ||||
Join Raffle | 14423019 | 892 days ago | IN | 0 ETH | 0.00210194 | ||||
Join Raffle | 14423018 | 892 days ago | IN | 0 ETH | 0.00189264 | ||||
Join Raffle | 14423014 | 892 days ago | IN | 0 ETH | 0.00219994 | ||||
Join Raffle | 14422398 | 892 days ago | IN | 0 ETH | 0.00201977 | ||||
Join Raffle | 14422333 | 892 days ago | IN | 0 ETH | 0.00177755 | ||||
Join Raffle | 14422329 | 892 days ago | IN | 0 ETH | 0.00206129 | ||||
Join Raffle | 14421034 | 892 days ago | IN | 0 ETH | 0.00278605 | ||||
Join Raffle | 14421031 | 892 days ago | IN | 0 ETH | 0.00345123 | ||||
Join Raffle | 14420628 | 892 days ago | IN | 0 ETH | 0.00195046 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
Marketplace
Compiler Version
v0.8.7+commit.e28d00a7
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2022-03-17 */ // File: @openzeppelin/contracts/utils/Strings.sol // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @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); } } // File: @openzeppelin/contracts/utils/Address.sol // OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ 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 assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } } // File: @openzeppelin/contracts/token/ERC721/IERC721Receiver.sol // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ 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 `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); } // File: @openzeppelin/contracts/utils/introspection/IERC165.sol // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); } // File: @openzeppelin/contracts/utils/introspection/ERC165.sol // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } } // File: @openzeppelin/contracts/token/ERC721/IERC721.sol // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; } // File: @openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol) pragma solidity ^0.8.0; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256); /** * @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); } // File: @openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ 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); } // File: @openzeppelin/contracts/security/ReentrancyGuard.sol // OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } } // File: @openzeppelin/contracts/token/ERC20/IERC20.sol // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `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); /** * @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); } // File: @openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol) pragma solidity ^0.8.0; /** * @dev Interface for the optional metadata functions from the ERC20 standard. * * _Available since v4.1._ */ interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns the decimals places of the token. */ function decimals() external view returns (uint8); } // File: @openzeppelin/contracts/utils/Context.sol // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } } // File: contracts/babyzuki/ERC721A.sol pragma solidity ^0.8.0; interface IOwnershipData{ function getOwnershipData(uint256 tokenId) external view returns (address _address, uint64 _timestamp); } /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata and Enumerable extension. Built to optimize for lower gas during batch mints. * * Assumes serials are sequentially minted starting at 0 (e.g. 0, 1, 2, 3..). * * Assumes the number of issuable tokens (collection size) is capped and fits in a uint128. * * Does not support burning tokens to address(0). */ contract ERC721A is Context, ERC165, IERC721, IERC721Metadata, IERC721Enumerable { using Address for address; using Strings for uint256; struct TokenOwnership { address addr; uint64 startTimestamp; } struct AddressData { uint128 balance; uint128 numberMinted; } uint256 internal currentIndex = 0; uint256 internal immutable collectionSize; uint256 internal immutable maxBatchSize; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to ownership details // An empty struct value does not necessarily mean the token is unowned. See ownershipOf implementation for details. mapping(uint256 => TokenOwnership) private _ownerships; // Mapping owner address to address data mapping(address => AddressData) private _addressData; // 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 * `maxBatchSize` refers to how much a minter can mint at a time. * `collectionSize_` refers to how many tokens are in the collection. */ constructor( string memory name_, string memory symbol_, uint256 maxBatchSize_, uint256 collectionSize_ ) { require( collectionSize_ > 0, "ERC721A: collection must have a nonzero supply" ); require(maxBatchSize_ > 0, "ERC721A: max batch size must be nonzero"); _name = name_; _symbol = symbol_; maxBatchSize = maxBatchSize_; collectionSize = collectionSize_; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view override returns (uint256) { return currentIndex; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view override returns (uint256) { require(index < totalSupply(), "ERC721A: global index out of bounds"); return index; } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. * This read function is O(collectionSize). If calling from a separate contract, be sure to test gas first. * It may also degrade with extremely large collection sizes (e.g >> 10000), test for your use case. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view override returns (uint256) { require(index < balanceOf(owner), "ERC721A: owner index out of bounds"); uint256 numMintedSoFar = totalSupply(); uint256 tokenIdsIdx = 0; address currOwnershipAddr = address(0); for (uint256 i = 0; i < numMintedSoFar; i++) { TokenOwnership memory ownership = _ownerships[i]; if (ownership.addr != address(0)) { currOwnershipAddr = ownership.addr; } if (currOwnershipAddr == owner) { if (tokenIdsIdx == index) { return i; } tokenIdsIdx++; } } revert("ERC721A: unable to get token of owner by index"); } /** * @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 || interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view override returns (uint256) { require(owner != address(0), "ERC721A: balance query for the zero address"); return uint256(_addressData[owner].balance); } function _numberMinted(address owner) internal view returns (uint256) { require( owner != address(0), "ERC721A: number minted query for the zero address" ); return uint256(_addressData[owner].numberMinted); } function ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) { require(_exists(tokenId), "ERC721A: owner query for nonexistent token"); uint256 lowestTokenToCheck; if (tokenId >= maxBatchSize) { lowestTokenToCheck = tokenId - maxBatchSize + 1; } for (uint256 curr = tokenId; curr >= lowestTokenToCheck; curr--) { TokenOwnership memory ownership = _ownerships[curr]; if (ownership.addr != address(0)) { return ownership; } } revert("ERC721A: unable to determine the owner of token"); } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view override returns (address) { return ownershipOf(tokenId).addr; } /** * @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) { require( _exists(tokenId), "ERC721Metadata: URI query for nonexistent token" ); 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 overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public override { address owner = ERC721A.ownerOf(tokenId); require(to != owner, "ERC721A: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721A: approve caller is not owner nor approved for all" ); _approve(to, tokenId, owner); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view override returns (address) { require(_exists(tokenId), "ERC721A: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public override { require(operator != _msgSender(), "ERC721A: approve to caller"); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_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 override { _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public override { _transfer(from, to, tokenId); require( _checkOnERC721Received(from, to, tokenId, _data), "ERC721A: 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`), */ function _exists(uint256 tokenId) internal view returns (bool) { return tokenId < currentIndex; } function _safeMint(address to, uint256 quantity) internal { _safeMint(to, quantity, ""); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - there must be `quantity` tokens remaining unminted in the total collection. * - `to` cannot be the zero address. * - `quantity` cannot be larger than the max batch size. * * Emits a {Transfer} event. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal { uint256 startTokenId = currentIndex; require(to != address(0), "ERC721A: mint to the zero address"); // We know if the first token in the batch doesn't exist, the other ones don't as well, because of serial ordering. require(!_exists(startTokenId), "ERC721A: token already minted"); require(quantity <= maxBatchSize, "ERC721A: quantity to mint too high"); _beforeTokenTransfers(address(0), to, startTokenId, quantity); AddressData memory addressData = _addressData[to]; _addressData[to] = AddressData( addressData.balance + uint128(quantity), addressData.numberMinted + uint128(quantity) ); _ownerships[startTokenId] = TokenOwnership(to, uint64(block.timestamp)); uint256 updatedIndex = startTokenId; for (uint256 i = 0; i < quantity; i++) { emit Transfer(address(0), to, updatedIndex); require( _checkOnERC721Received(address(0), to, updatedIndex, _data), "ERC721A: transfer to non ERC721Receiver implementer" ); updatedIndex++; } currentIndex = updatedIndex; _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Transfers `tokenId` from `from` to `to`. * * 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 ) private { TokenOwnership memory prevOwnership = ownershipOf(tokenId); bool isApprovedOrOwner = (_msgSender() == prevOwnership.addr || getApproved(tokenId) == _msgSender() || isApprovedForAll(prevOwnership.addr, _msgSender())); require( isApprovedOrOwner, "ERC721A: transfer caller is not owner nor approved" ); require( prevOwnership.addr == from, "ERC721A: transfer from incorrect owner" ); require(to != address(0), "ERC721A: transfer to the zero address"); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner _approve(address(0), tokenId, prevOwnership.addr); _addressData[from].balance -= 1; _addressData[to].balance += 1; _ownerships[tokenId] = TokenOwnership(to, uint64(block.timestamp)); // If the ownership slot of tokenId+1 is not explicitly set, that means the transfer initiator owns it. // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls. uint256 nextTokenId = tokenId + 1; if (_ownerships[nextTokenId].addr == address(0)) { if (_exists(nextTokenId)) { _ownerships[nextTokenId] = TokenOwnership( prevOwnership.addr, prevOwnership.startTimestamp ); } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve( address to, uint256 tokenId, address owner ) private { _tokenApprovals[tokenId] = to; emit Approval(owner, to, tokenId); } uint256 public nextOwnerToExplicitlySet = 0; /** * @dev Explicitly set `owners` to eliminate loops in future calls of ownerOf(). */ function _setOwnersExplicit(uint256 quantity) internal { uint256 oldNextOwnerToSet = nextOwnerToExplicitlySet; require(quantity > 0, "quantity must be nonzero"); uint256 endIndex = oldNextOwnerToSet + quantity - 1; if (endIndex > collectionSize - 1) { endIndex = collectionSize - 1; } // We know if the last one in the group exists, all in the group exist, due to serial ordering. require(_exists(endIndex), "not enough minted yet for this cleanup"); for (uint256 i = oldNextOwnerToSet; i <= endIndex; i++) { if (_ownerships[i].addr == address(0)) { TokenOwnership memory ownership = ownershipOf(i); _ownerships[i] = TokenOwnership( ownership.addr, ownership.startTimestamp ); } } nextOwnerToExplicitlySet = endIndex + 1; } /** * @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(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721A: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. This includes minting. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * 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`. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Hook that is called after a set of serially-ordered token ids have been transferred. This includes * minting. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * Calling conditions: * * - when `from` and `to` are both non-zero. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} } // File: @openzeppelin/contracts/token/ERC20/ERC20.sol // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/ERC20.sol) pragma solidity ^0.8.0; /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our guide * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * We have followed general OpenZeppelin Contracts guidelines: functions revert * instead returning `false` on failure. This behavior is nonetheless * conventional and does not conflict with the expectations of ERC20 * applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {symbol}. * * The default value of {decimals} is 18. To select a different value for * {decimals} you should overload it. * * All two of these values are immutable: they can only be set once during * construction. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev Returns the name of the token. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5.05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the value {ERC20} uses, unless this function is * overridden; * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view virtual override returns (uint8) { return 18; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `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, _allowances[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 = _allowances[owner][spender]; require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); unchecked { _approve(owner, spender, currentAllowance - subtractedValue); } return true; } /** * @dev Moves `amount` of tokens from `sender` to `recipient`. * * This internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `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 Spend `amount` form the allowance of `owner` toward `spender`. * * 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 {} } // File: @openzeppelin/contracts/access/Ownable.sol // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } } // File: contracts/babyzuki/contracts.sol pragma solidity ^0.8.0; contract BBZOrigin is Ownable, ERC721A, ReentrancyGuard, IOwnershipData { struct MintConfig { uint256 dnmAmount; bool groupAActive; uint256 groupAPrice; bool groupBActive; uint256 groupBPrice; bool groupCActive; uint256 groupCPrice; } MintConfig public config; mapping(address => uint256) public groupA; mapping(address => uint256) public groupB; string private baseTokenURI; constructor( uint256 collectionSize, uint256 dnmAmount ) ERC721A("BBZ Origin", "BBZORIGIN", 5, collectionSize) { config.dnmAmount = dnmAmount; config.groupAPrice = 0.1 ether; config.groupBPrice = 0.12 ether; config.groupCPrice = 0.14 ether; baseTokenURI = "https://d359zl9sgwt1qi.cloudfront.net/"; } modifier callerIsNotContract() { require(tx.origin == msg.sender, "The caller is another contract"); _; } /* DnM Related */ function mintDnM() external onlyOwner { uint256 numChunks = config.dnmAmount / maxBatchSize; for (uint256 i = 0; i < numChunks; i++) { _safeMint(msg.sender, maxBatchSize); } } function mintUnclaimed() external onlyOwner { for (uint256 i = currentIndex; i < collectionSize; i++) { _safeMint(msg.sender, 1); } } /* Manage */ function setGroupState(bool g1, bool g2, bool g3) external onlyOwner { config.groupAActive = g1; config.groupBActive = g2; config.groupCActive = g3; } function setGroupPrice(uint256 p1, uint256 p2, uint256 p3) external onlyOwner { config.groupAPrice = p1; config.groupBPrice = p2; config.groupCPrice = p3; } function withdrawETH() external onlyOwner nonReentrant { (bool success, ) = msg.sender.call{value: address(this).balance}(""); require(success, "Transfer failed."); } /* OG Mint */ function isOGMintActive() external view returns (bool) { return config.groupAActive; } function isInOgList() external view returns (bool) { return (groupA[msg.sender] > 0); } function mintOG(uint256 quantity) external payable callerIsNotContract { uint256 totalCost = uint256(config.groupAPrice) * quantity; require(config.groupAActive, "OG Sale is not active"); require(msg.value >= totalCost, "Not enough ETH"); require(groupA[msg.sender] >= quantity, "Not in OG list or already minted max amount"); require(currentIndex + quantity <= collectionSize, "Total tokens amount reached"); groupA[msg.sender] = groupA[msg.sender] - quantity; _safeMint(msg.sender, quantity); } function setOGList( address[] memory addresses, uint256[] memory numSlots ) external onlyOwner { require( addresses.length == numSlots.length, "Addresses does not match numSlots length" ); for (uint256 i = 0; i < addresses.length; i++) { groupA[addresses[i]] += numSlots[i]; } } /* WL Mint */ function isWLMintActive() external view returns (bool) { return config.groupBActive; } function isInWLList() external view returns (bool) { return (groupB[msg.sender] > 0); } function mintWL(uint256 quantity) external payable callerIsNotContract { uint256 totalCost = uint256(config.groupBPrice) * quantity; require(config.groupBActive, "WL Sale is not active"); require(msg.value >= totalCost, "Not enough ETH"); require(groupB[msg.sender] >= quantity, "Not in WL list or already minted max amount"); require(currentIndex + quantity <= collectionSize, "Total tokens amount reached"); groupB[msg.sender] = groupB[msg.sender] - quantity; _safeMint(msg.sender, quantity); } function setWLList( address[] memory addresses, uint256[] memory numSlots ) external onlyOwner { require( addresses.length == numSlots.length, "Addresses does not match numSlots length" ); for (uint256 i = 0; i < addresses.length; i++) { groupB[addresses[i]] += numSlots[i]; } } /* Public Mint */ function isPublicMintActive() external view returns (bool) { return config.groupCActive; } function mint(uint256 quantity) external payable callerIsNotContract { uint256 totalCost = uint256(config.groupCPrice) * quantity; require(config.groupCActive, "Public Sale is not active"); require(msg.value >= totalCost, "Not enough ETH"); require(currentIndex + quantity <= collectionSize, "Total tokens amount reached"); require(quantity <= 3, "Max mint amount is 3"); _safeMint(msg.sender, quantity); } /* Metadata */ function _baseURI() internal view virtual override returns (string memory) { return baseTokenURI; } function setBaseURI(string calldata baseURI) external onlyOwner { baseTokenURI = baseURI; } function setOwnersExplicit(uint256 quantity) external onlyOwner nonReentrant { _setOwnersExplicit(quantity); } function numberMinted(address owner) public view returns (uint256) { return _numberMinted(owner); } function getOwnershipData(uint256 tokenId) external override view returns (address _address, uint64 _timestamp) { TokenOwnership memory ownership = ownershipOf(tokenId); return (ownership.addr, ownership.startTimestamp); } } // File: contracts/babyzuki/bbz.sol pragma solidity 0.8.7; interface ISpendable{ function spend(address spender, uint256 amount) external returns (uint256); } contract BBZToken is ERC20, Ownable, ISpendable { struct ClaimableTokenData { bool active; uint256 defaultBonus; uint256 cycle; uint256 startTimestamp; mapping(uint256 => uint256) bonus; } mapping(address => ClaimableTokenData) claimableTokens; mapping(address => mapping(uint256 => uint256)) claims; address marketMaker; constructor(string memory name, string memory symbol) ERC20(name, symbol) { marketMaker = address(0); } function decimals() public view virtual override returns (uint8) { return 0; } function marketMakerAddress() public view returns (address) { return marketMaker; } function setMarketMakerAddress(address newAddress) external onlyOwner { marketMaker = newAddress; } function setCollectionBonus(address collectionAddress, bool active, uint256 timestamp, uint256 defaultBonus, uint256 cycle, uint256[] calldata tokenIds, uint256[] calldata bonus) external onlyOwner{ require(tokenIds.length == bonus.length, "Tokens ids are not compatible with bonuses"); require(cycle >= 60, "Cycle too low"); ClaimableTokenData storage tokenData = claimableTokens[collectionAddress]; tokenData.active = active; tokenData.defaultBonus = defaultBonus; tokenData.cycle = cycle; tokenData.startTimestamp = timestamp; for (uint256 i = 0; i < tokenIds.length; i++) { tokenData.bonus[tokenIds[i]] = bonus[i]; } } function setCollectionState(address collectionAddress, bool active, uint256 timestamp) external onlyOwner { ClaimableTokenData storage tokenData = claimableTokens[collectionAddress]; tokenData.active = active; tokenData.startTimestamp = timestamp; } function getTokenBonus(address collectionAddress, uint256 tokenId) external view returns (uint256){ ClaimableTokenData storage tokenData = claimableTokens[collectionAddress]; uint256 bonus = tokenData.bonus[tokenId]; return bonus == 0 ? tokenData.defaultBonus : bonus; } function claim(address tokenAddress, uint256[] calldata tokenIds) external { ClaimableTokenData storage tokenData = claimableTokens[tokenAddress]; require(tokenData.active, "Token is not activated for BBZ rewards."); _mint(msg.sender, _calculateAmountBeforeClaim(tokenData, tokenAddress, tokenIds)); } function claimableAmount(address tokenAddress, uint256[] calldata tokenIds) external view returns (uint256) { ClaimableTokenData storage tokenData = claimableTokens[tokenAddress]; require(tokenData.active, "Token is not activated for BBZ rewards."); return _calculateAmount(tokenData, tokenAddress, tokenIds); } function _calculateAmount(ClaimableTokenData storage tokenData, address tokenAddress, uint256[] memory tokenIds) private view returns (uint256){ IOwnershipData token = IOwnershipData(tokenAddress); uint256 amount = 0; mapping(uint256 => uint256) storage tokenClaims = claims[tokenAddress]; for (uint256 i = 0; i < tokenIds.length; i++) { (address tokenOwner, uint256 timestamp) = token.getOwnershipData(tokenIds[i]); require(tokenOwner == msg.sender, "You are not the owner of the NFT Token"); require(tokenOwner != address(0), "Token is not yet minted"); uint256 lastClaim = tokenClaims[tokenIds[i]]; if (lastClaim == 0 || lastClaim < timestamp){ lastClaim = timestamp; } if (lastClaim < tokenData.startTimestamp){ lastClaim = tokenData.startTimestamp; } uint256 diff = block.timestamp - lastClaim; uint256 bonus = tokenData.bonus[tokenIds[i]]; if (bonus == 0) { bonus = tokenData.defaultBonus; } amount = amount + ((diff / tokenData.cycle) * bonus); } return amount; } function _calculateAmountBeforeClaim(ClaimableTokenData storage tokenData, address tokenAddress, uint256[] memory tokenIds) private returns (uint256){ IOwnershipData token = IOwnershipData(tokenAddress); uint256 amount = 0; mapping(uint256 => uint256) storage tokenClaims = claims[tokenAddress]; for (uint256 i = 0; i < tokenIds.length; i++) { (address tokenOwner, uint256 timestamp) = token.getOwnershipData(tokenIds[i]); require(tokenOwner == msg.sender, "You are not the owner of the NFT Token"); require(tokenOwner != address(0), "Token is not yet minted"); uint256 lastClaim = tokenClaims[tokenIds[i]]; if (lastClaim == 0 || lastClaim < timestamp){ lastClaim = timestamp; } if (lastClaim < tokenData.startTimestamp){ lastClaim = tokenData.startTimestamp; } uint256 diff = block.timestamp - lastClaim; uint256 bonus = tokenData.bonus[tokenIds[i]]; if (bonus == 0) { bonus = tokenData.defaultBonus; } amount = amount + ((diff / tokenData.cycle) * bonus); tokenClaims[tokenIds[i]] = lastClaim + (diff / tokenData.cycle) * tokenData.cycle; } return amount; } // To be used by a market maker contract to burn users funds function spend(address from, uint256 amount) external override returns (uint256){ require(msg.sender == marketMaker, "Access denied"); require(balanceOf(from) >= amount, "Balance too low"); _burn(from, amount); return amount; } // For future use of manuall selling/negociating BBZ function mintTo(address to, uint256 amount) external onlyOwner { require(amount > 0, "Invalid amount"); _mint(to, amount); } } // File: contracts/babyzuki/marketplace.sol pragma solidity 0.8.7; struct Raffle { mapping(address => bool) participants; address[] addresses; uint256 participantsCount; mapping(address => bool) drawHelper; address[] winners; uint256 maxWinners; uint256 maxParticipants; uint256 endTimestamp; uint256 price; } contract Marketplace is Ownable { mapping(uint256 => Raffle) private raffles; mapping(address => uint256[]) private raffleEntries; uint256 public raffleCount; address private marketToken; constructor (address _marketToken) { marketToken = _marketToken; raffleCount = 0; } function createRaffle(uint256 _maxParticipants, uint256 _maxWinners, uint256 _endTimestamp, uint256 _price) external onlyOwner returns (uint256){ raffleCount++; Raffle storage raffle = raffles[raffleCount]; raffle.maxParticipants = _maxParticipants; raffle.maxWinners = _maxWinners; raffle.endTimestamp = _endTimestamp; raffle.price = _price; return raffleCount; } function joinRaffle(uint256 id) public { address participant = msg.sender; // get the required raffle Raffle storage raffle = raffles[id]; require(IERC20(marketToken).balanceOf(participant) >= raffle.price, "Not enought tokens"); // validate raffle status require(raffle.winners.length == 0, "Already picked winners"); require(!raffle.participants[participant], "Already participating"); require(raffle.participantsCount <= raffle.maxParticipants, "Reached max participants"); require(block.timestamp <= raffle.endTimestamp, "Too late to enter"); // deduct participation fee IERC20(marketToken).transferFrom(participant, owner(), raffle.price); raffle.participants[participant] = true; raffle.addresses.push(participant); raffle.participantsCount++; raffleEntries[participant].push(id); } function raffleDetails(uint256 id) public view returns (uint256, uint256, uint256) { require(raffleCount >= id); Raffle storage raffle = raffles[id]; return (raffle.participantsCount, raffle.price, raffle.maxParticipants); } function participating(address addr, uint256 id) external view returns (bool) { require(raffleCount >= id); Raffle storage raffle = raffles[id]; return raffle.participants[addr]; } function myRaffles() public view returns (uint256[] memory) { return raffleEntries[msg.sender]; } function canDrawRaffle(uint256 id) external view returns (bool) { require(raffleCount >= id, "Invalid raffle id"); Raffle storage raffle = raffles[id]; if (raffle.winners.length != 0) return false; if (raffle.participantsCount < raffle.maxParticipants) { if (block.timestamp < raffle.endTimestamp) return false; } return true; } function setRaffleWinners(uint256 id, uint256[] memory winners) external onlyOwner { require(raffleCount >= id, "Invalid raffle id"); Raffle storage raffle = raffles[id]; require(raffle.winners.length == 0, "Raffle already settled"); for (uint256 i = 0; i < winners.length; i++) { raffle.winners.push(raffle.addresses[winners[i]]); } } function raffleWinners(uint256 id) public view returns (address[] memory) { require(raffleCount >= id, "Invalid raffle id"); return raffles[id].winners; } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_marketToken","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"canDrawRaffle","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxParticipants","type":"uint256"},{"internalType":"uint256","name":"_maxWinners","type":"uint256"},{"internalType":"uint256","name":"_endTimestamp","type":"uint256"},{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"createRaffle","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"joinRaffle","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"myRaffles","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"participating","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"raffleCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"raffleDetails","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"raffleWinners","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256[]","name":"winners","type":"uint256[]"}],"name":"setRaffleWinners","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b5060405162001ce438038062001ce483398181016040528101906200003791906200018a565b620000576200004b620000a760201b60201c565b620000af60201b60201c565b80600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506000600381905550506200020f565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6000815190506200018481620001f5565b92915050565b600060208284031215620001a357620001a2620001f0565b5b6000620001b38482850162000173565b91505092915050565b6000620001c982620001d0565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600080fd5b6200020081620001bc565b81146200020c57600080fd5b50565b611ac5806200021f6000396000f3fe608060405234801561001057600080fd5b50600436106100b45760003560e01c80638da5cb5b116100715780638da5cb5b1461018d578063a3ef015b146101ab578063a54c120c146101db578063d1c129a1146101f9578063d356290f1461022b578063f2fde38b14610247576100b4565b806306eafd16146100b957806311e5b16a146100d757806339510c85146101075780634758eca9146101375780635231a18614610153578063715018a614610183575b600080fd5b6100c1610263565b6040516100ce91906114bc565b60405180910390f35b6100f160048036038101906100ec91906110b9565b6102f8565b6040516100fe919061149a565b60405180910390f35b610121600480360381019061011c919061116f565b6103e1565b60405161012e9190611619565b60405180910390f35b610151600480360381019061014c91906110b9565b6104c2565b005b61016d600480360381019061016891906110b9565b61093b565b60405161017a91906114de565b60405180910390f35b61018b6109e4565b005b610195610a6c565b6040516101a29190611448565b60405180910390f35b6101c560048036038101906101c0919061104c565b610a95565b6040516101d291906114de565b60405180910390f35b6101e3610b15565b6040516101f09190611619565b60405180910390f35b610213600480360381019061020e91906110b9565b610b1b565b60405161022293929190611634565b60405180910390f35b61024560048036038101906102409190611113565b610b63565b005b610261600480360381019061025c919061101f565b610d69565b005b6060600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208054806020026020016040519081016040528092919081815260200182805480156102ee57602002820191906000526020600020905b8154815260200190600101908083116102da575b5050505050905090565b606081600354101561033f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161033690611579565b60405180910390fd5b600160008381526020019081526020016000206004018054806020026020016040519081016040528092919081815260200182805480156103d557602002820191906000526020600020905b8160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001906001019080831161038b575b50505050509050919050565b60006103eb610e61565b73ffffffffffffffffffffffffffffffffffffffff16610409610a6c565b73ffffffffffffffffffffffffffffffffffffffff161461045f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610456906115b9565b60405180910390fd5b60036000815480929190610472906117b8565b919050555060006001600060035481526020019081526020016000209050858160060181905550848160050181905550838160070181905550828160080181905550600354915050949350505050565b600033905060006001600084815260200190815260200160002090508060080154600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231846040518263ffffffff1660e01b815260040161053e9190611448565b60206040518083038186803b15801561055657600080fd5b505afa15801561056a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061058e91906110e6565b10156105cf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105c690611599565b60405180910390fd5b6000816004018054905014610619576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161061090611539565b60405180910390fd5b8060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16156106a8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161069f90611559565b60405180910390fd5b8060060154816002015411156106f3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106ea90611519565b60405180910390fd5b806007015442111561073a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610731906115d9565b60405180910390fd5b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd83610781610a6c565b84600801546040518463ffffffff1660e01b81526004016107a493929190611463565b602060405180830381600087803b1580156107be57600080fd5b505af11580156107d2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107f6919061108c565b5060018160000160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555080600101829080600181540180825580915050600190039060005260206000200160009091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508060020160008154809291906108cb906117b8565b9190505550600260008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020839080600181540180825580915050600190039060005260206000200160009091909190915055505050565b6000816003541015610982576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161097990611579565b60405180910390fd5b600060016000848152602001908152602001600020905060008160040180549050146109b25760009150506109df565b8060060154816002015410156109d95780600701544210156109d85760009150506109df565b5b60019150505b919050565b6109ec610e61565b73ffffffffffffffffffffffffffffffffffffffff16610a0a610a6c565b73ffffffffffffffffffffffffffffffffffffffff1614610a60576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a57906115b9565b60405180910390fd5b610a6a6000610e69565b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6000816003541015610aa657600080fd5b60006001600084815260200190815260200160002090508060000160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1691505092915050565b60035481565b6000806000836003541015610b2f57600080fd5b6000600160008681526020019081526020016000209050806002015481600801548260060154935093509350509193909250565b610b6b610e61565b73ffffffffffffffffffffffffffffffffffffffff16610b89610a6c565b73ffffffffffffffffffffffffffffffffffffffff1614610bdf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bd6906115b9565b60405180910390fd5b816003541015610c24576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c1b90611579565b60405180910390fd5b60006001600084815260200190815260200160002090506000816004018054905014610c85576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c7c906115f9565b60405180910390fd5b60005b8251811015610d63578160040182600101848381518110610cac57610cab611830565b5b602002602001015181548110610cc557610cc4611830565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169080600181540180825580915050600190039060005260206000200160009091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508080610d5b906117b8565b915050610c88565b50505050565b610d71610e61565b73ffffffffffffffffffffffffffffffffffffffff16610d8f610a6c565b73ffffffffffffffffffffffffffffffffffffffff1614610de5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ddc906115b9565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610e55576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e4c906114f9565b60405180910390fd5b610e5e81610e69565b50565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6000610f40610f3b84611690565b61166b565b90508083825260208201905082856020860282011115610f6357610f62611893565b5b60005b85811015610f935781610f798882610ff5565b845260208401935060208301925050600181019050610f66565b5050509392505050565b600081359050610fac81611a4a565b92915050565b600082601f830112610fc757610fc661188e565b5b8135610fd7848260208601610f2d565b91505092915050565b600081519050610fef81611a61565b92915050565b60008135905061100481611a78565b92915050565b60008151905061101981611a78565b92915050565b6000602082840312156110355761103461189d565b5b600061104384828501610f9d565b91505092915050565b600080604083850312156110635761106261189d565b5b600061107185828601610f9d565b925050602061108285828601610ff5565b9150509250929050565b6000602082840312156110a2576110a161189d565b5b60006110b084828501610fe0565b91505092915050565b6000602082840312156110cf576110ce61189d565b5b60006110dd84828501610ff5565b91505092915050565b6000602082840312156110fc576110fb61189d565b5b600061110a8482850161100a565b91505092915050565b6000806040838503121561112a5761112961189d565b5b600061113885828601610ff5565b925050602083013567ffffffffffffffff81111561115957611158611898565b5b61116585828601610fb2565b9150509250929050565b600080600080608085870312156111895761118861189d565b5b600061119787828801610ff5565b94505060206111a887828801610ff5565b93505060406111b987828801610ff5565b92505060606111ca87828801610ff5565b91505092959194509250565b60006111e28383611206565b60208301905092915050565b60006111fa838361142a565b60208301905092915050565b61120f8161173f565b82525050565b61121e8161173f565b82525050565b600061122f826116dc565b611239818561170c565b9350611244836116bc565b8060005b8381101561127557815161125c88826111d6565b9750611267836116f2565b925050600181019050611248565b5085935050505092915050565b600061128d826116e7565b611297818561171d565b93506112a2836116cc565b8060005b838110156112d35781516112ba88826111ee565b97506112c5836116ff565b9250506001810190506112a6565b5085935050505092915050565b6112e981611751565b82525050565b60006112fc60268361172e565b9150611307826118b3565b604082019050919050565b600061131f60188361172e565b915061132a82611902565b602082019050919050565b600061134260168361172e565b915061134d8261192b565b602082019050919050565b600061136560158361172e565b915061137082611954565b602082019050919050565b600061138860118361172e565b91506113938261197d565b602082019050919050565b60006113ab60128361172e565b91506113b6826119a6565b602082019050919050565b60006113ce60208361172e565b91506113d9826119cf565b602082019050919050565b60006113f160118361172e565b91506113fc826119f8565b602082019050919050565b600061141460168361172e565b915061141f82611a21565b602082019050919050565b6114338161177d565b82525050565b6114428161177d565b82525050565b600060208201905061145d6000830184611215565b92915050565b60006060820190506114786000830186611215565b6114856020830185611215565b6114926040830184611439565b949350505050565b600060208201905081810360008301526114b48184611224565b905092915050565b600060208201905081810360008301526114d68184611282565b905092915050565b60006020820190506114f360008301846112e0565b92915050565b60006020820190508181036000830152611512816112ef565b9050919050565b6000602082019050818103600083015261153281611312565b9050919050565b6000602082019050818103600083015261155281611335565b9050919050565b6000602082019050818103600083015261157281611358565b9050919050565b600060208201905081810360008301526115928161137b565b9050919050565b600060208201905081810360008301526115b28161139e565b9050919050565b600060208201905081810360008301526115d2816113c1565b9050919050565b600060208201905081810360008301526115f2816113e4565b9050919050565b6000602082019050818103600083015261161281611407565b9050919050565b600060208201905061162e6000830184611439565b92915050565b60006060820190506116496000830186611439565b6116566020830185611439565b6116636040830184611439565b949350505050565b6000611675611686565b90506116818282611787565b919050565b6000604051905090565b600067ffffffffffffffff8211156116ab576116aa61185f565b5b602082029050602081019050919050565b6000819050602082019050919050565b6000819050602082019050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600061174a8261175d565b9050919050565b60008115159050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b611790826118a2565b810181811067ffffffffffffffff821117156117af576117ae61185f565b5b80604052505050565b60006117c38261177d565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156117f6576117f5611801565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f52656163686564206d6178207061727469636970616e74730000000000000000600082015250565b7f416c7265616479207069636b65642077696e6e65727300000000000000000000600082015250565b7f416c72656164792070617274696369706174696e670000000000000000000000600082015250565b7f496e76616c696420726166666c65206964000000000000000000000000000000600082015250565b7f4e6f7420656e6f7567687420746f6b656e730000000000000000000000000000600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f546f6f206c61746520746f20656e746572000000000000000000000000000000600082015250565b7f526166666c6520616c726561647920736574746c656400000000000000000000600082015250565b611a538161173f565b8114611a5e57600080fd5b50565b611a6a81611751565b8114611a7557600080fd5b50565b611a818161177d565b8114611a8c57600080fd5b5056fea2646970667358221220c995c6a7d48af2ed3fa1514786bfdf84b997ed232cc81a081d6750bcc223331464736f6c63430008070033000000000000000000000000e891809f7325cdb7286c2de897ba8b2a0f83eff7
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100b45760003560e01c80638da5cb5b116100715780638da5cb5b1461018d578063a3ef015b146101ab578063a54c120c146101db578063d1c129a1146101f9578063d356290f1461022b578063f2fde38b14610247576100b4565b806306eafd16146100b957806311e5b16a146100d757806339510c85146101075780634758eca9146101375780635231a18614610153578063715018a614610183575b600080fd5b6100c1610263565b6040516100ce91906114bc565b60405180910390f35b6100f160048036038101906100ec91906110b9565b6102f8565b6040516100fe919061149a565b60405180910390f35b610121600480360381019061011c919061116f565b6103e1565b60405161012e9190611619565b60405180910390f35b610151600480360381019061014c91906110b9565b6104c2565b005b61016d600480360381019061016891906110b9565b61093b565b60405161017a91906114de565b60405180910390f35b61018b6109e4565b005b610195610a6c565b6040516101a29190611448565b60405180910390f35b6101c560048036038101906101c0919061104c565b610a95565b6040516101d291906114de565b60405180910390f35b6101e3610b15565b6040516101f09190611619565b60405180910390f35b610213600480360381019061020e91906110b9565b610b1b565b60405161022293929190611634565b60405180910390f35b61024560048036038101906102409190611113565b610b63565b005b610261600480360381019061025c919061101f565b610d69565b005b6060600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208054806020026020016040519081016040528092919081815260200182805480156102ee57602002820191906000526020600020905b8154815260200190600101908083116102da575b5050505050905090565b606081600354101561033f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161033690611579565b60405180910390fd5b600160008381526020019081526020016000206004018054806020026020016040519081016040528092919081815260200182805480156103d557602002820191906000526020600020905b8160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001906001019080831161038b575b50505050509050919050565b60006103eb610e61565b73ffffffffffffffffffffffffffffffffffffffff16610409610a6c565b73ffffffffffffffffffffffffffffffffffffffff161461045f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610456906115b9565b60405180910390fd5b60036000815480929190610472906117b8565b919050555060006001600060035481526020019081526020016000209050858160060181905550848160050181905550838160070181905550828160080181905550600354915050949350505050565b600033905060006001600084815260200190815260200160002090508060080154600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231846040518263ffffffff1660e01b815260040161053e9190611448565b60206040518083038186803b15801561055657600080fd5b505afa15801561056a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061058e91906110e6565b10156105cf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105c690611599565b60405180910390fd5b6000816004018054905014610619576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161061090611539565b60405180910390fd5b8060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16156106a8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161069f90611559565b60405180910390fd5b8060060154816002015411156106f3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106ea90611519565b60405180910390fd5b806007015442111561073a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610731906115d9565b60405180910390fd5b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd83610781610a6c565b84600801546040518463ffffffff1660e01b81526004016107a493929190611463565b602060405180830381600087803b1580156107be57600080fd5b505af11580156107d2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107f6919061108c565b5060018160000160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555080600101829080600181540180825580915050600190039060005260206000200160009091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508060020160008154809291906108cb906117b8565b9190505550600260008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020839080600181540180825580915050600190039060005260206000200160009091909190915055505050565b6000816003541015610982576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161097990611579565b60405180910390fd5b600060016000848152602001908152602001600020905060008160040180549050146109b25760009150506109df565b8060060154816002015410156109d95780600701544210156109d85760009150506109df565b5b60019150505b919050565b6109ec610e61565b73ffffffffffffffffffffffffffffffffffffffff16610a0a610a6c565b73ffffffffffffffffffffffffffffffffffffffff1614610a60576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a57906115b9565b60405180910390fd5b610a6a6000610e69565b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6000816003541015610aa657600080fd5b60006001600084815260200190815260200160002090508060000160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1691505092915050565b60035481565b6000806000836003541015610b2f57600080fd5b6000600160008681526020019081526020016000209050806002015481600801548260060154935093509350509193909250565b610b6b610e61565b73ffffffffffffffffffffffffffffffffffffffff16610b89610a6c565b73ffffffffffffffffffffffffffffffffffffffff1614610bdf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bd6906115b9565b60405180910390fd5b816003541015610c24576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c1b90611579565b60405180910390fd5b60006001600084815260200190815260200160002090506000816004018054905014610c85576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c7c906115f9565b60405180910390fd5b60005b8251811015610d63578160040182600101848381518110610cac57610cab611830565b5b602002602001015181548110610cc557610cc4611830565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169080600181540180825580915050600190039060005260206000200160009091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508080610d5b906117b8565b915050610c88565b50505050565b610d71610e61565b73ffffffffffffffffffffffffffffffffffffffff16610d8f610a6c565b73ffffffffffffffffffffffffffffffffffffffff1614610de5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ddc906115b9565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610e55576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e4c906114f9565b60405180910390fd5b610e5e81610e69565b50565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6000610f40610f3b84611690565b61166b565b90508083825260208201905082856020860282011115610f6357610f62611893565b5b60005b85811015610f935781610f798882610ff5565b845260208401935060208301925050600181019050610f66565b5050509392505050565b600081359050610fac81611a4a565b92915050565b600082601f830112610fc757610fc661188e565b5b8135610fd7848260208601610f2d565b91505092915050565b600081519050610fef81611a61565b92915050565b60008135905061100481611a78565b92915050565b60008151905061101981611a78565b92915050565b6000602082840312156110355761103461189d565b5b600061104384828501610f9d565b91505092915050565b600080604083850312156110635761106261189d565b5b600061107185828601610f9d565b925050602061108285828601610ff5565b9150509250929050565b6000602082840312156110a2576110a161189d565b5b60006110b084828501610fe0565b91505092915050565b6000602082840312156110cf576110ce61189d565b5b60006110dd84828501610ff5565b91505092915050565b6000602082840312156110fc576110fb61189d565b5b600061110a8482850161100a565b91505092915050565b6000806040838503121561112a5761112961189d565b5b600061113885828601610ff5565b925050602083013567ffffffffffffffff81111561115957611158611898565b5b61116585828601610fb2565b9150509250929050565b600080600080608085870312156111895761118861189d565b5b600061119787828801610ff5565b94505060206111a887828801610ff5565b93505060406111b987828801610ff5565b92505060606111ca87828801610ff5565b91505092959194509250565b60006111e28383611206565b60208301905092915050565b60006111fa838361142a565b60208301905092915050565b61120f8161173f565b82525050565b61121e8161173f565b82525050565b600061122f826116dc565b611239818561170c565b9350611244836116bc565b8060005b8381101561127557815161125c88826111d6565b9750611267836116f2565b925050600181019050611248565b5085935050505092915050565b600061128d826116e7565b611297818561171d565b93506112a2836116cc565b8060005b838110156112d35781516112ba88826111ee565b97506112c5836116ff565b9250506001810190506112a6565b5085935050505092915050565b6112e981611751565b82525050565b60006112fc60268361172e565b9150611307826118b3565b604082019050919050565b600061131f60188361172e565b915061132a82611902565b602082019050919050565b600061134260168361172e565b915061134d8261192b565b602082019050919050565b600061136560158361172e565b915061137082611954565b602082019050919050565b600061138860118361172e565b91506113938261197d565b602082019050919050565b60006113ab60128361172e565b91506113b6826119a6565b602082019050919050565b60006113ce60208361172e565b91506113d9826119cf565b602082019050919050565b60006113f160118361172e565b91506113fc826119f8565b602082019050919050565b600061141460168361172e565b915061141f82611a21565b602082019050919050565b6114338161177d565b82525050565b6114428161177d565b82525050565b600060208201905061145d6000830184611215565b92915050565b60006060820190506114786000830186611215565b6114856020830185611215565b6114926040830184611439565b949350505050565b600060208201905081810360008301526114b48184611224565b905092915050565b600060208201905081810360008301526114d68184611282565b905092915050565b60006020820190506114f360008301846112e0565b92915050565b60006020820190508181036000830152611512816112ef565b9050919050565b6000602082019050818103600083015261153281611312565b9050919050565b6000602082019050818103600083015261155281611335565b9050919050565b6000602082019050818103600083015261157281611358565b9050919050565b600060208201905081810360008301526115928161137b565b9050919050565b600060208201905081810360008301526115b28161139e565b9050919050565b600060208201905081810360008301526115d2816113c1565b9050919050565b600060208201905081810360008301526115f2816113e4565b9050919050565b6000602082019050818103600083015261161281611407565b9050919050565b600060208201905061162e6000830184611439565b92915050565b60006060820190506116496000830186611439565b6116566020830185611439565b6116636040830184611439565b949350505050565b6000611675611686565b90506116818282611787565b919050565b6000604051905090565b600067ffffffffffffffff8211156116ab576116aa61185f565b5b602082029050602081019050919050565b6000819050602082019050919050565b6000819050602082019050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600061174a8261175d565b9050919050565b60008115159050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b611790826118a2565b810181811067ffffffffffffffff821117156117af576117ae61185f565b5b80604052505050565b60006117c38261177d565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156117f6576117f5611801565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f52656163686564206d6178207061727469636970616e74730000000000000000600082015250565b7f416c7265616479207069636b65642077696e6e65727300000000000000000000600082015250565b7f416c72656164792070617274696369706174696e670000000000000000000000600082015250565b7f496e76616c696420726166666c65206964000000000000000000000000000000600082015250565b7f4e6f7420656e6f7567687420746f6b656e730000000000000000000000000000600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f546f6f206c61746520746f20656e746572000000000000000000000000000000600082015250565b7f526166666c6520616c726561647920736574746c656400000000000000000000600082015250565b611a538161173f565b8114611a5e57600080fd5b50565b611a6a81611751565b8114611a7557600080fd5b50565b611a818161177d565b8114611a8c57600080fd5b5056fea2646970667358221220c995c6a7d48af2ed3fa1514786bfdf84b997ed232cc81a081d6750bcc223331464736f6c63430008070033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000e891809f7325cdb7286c2de897ba8b2a0f83eff7
-----Decoded View---------------
Arg [0] : _marketToken (address): 0xe891809f7325CDB7286C2De897Ba8B2a0F83EfF7
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000e891809f7325cdb7286c2de897ba8b2a0f83eff7
Deployed Bytecode Sourcemap
72016:3338:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;74221:111;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;75164:187;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;72345:434;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;72787:938;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;74340:406;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;58514:103;;;:::i;:::-;;57863:87;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;73999:214;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;72162:26;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;73733:258;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;;;:::i;:::-;;;;;;;;74754:402;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;58772:201;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;74221:111;74263:16;74299:13;:25;74313:10;74299:25;;;;;;;;;;;;;;;74292:32;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;74221:111;:::o;75164:187::-;75220:16;75272:2;75257:11;;:17;;75249:47;;;;;;;;;;;;:::i;:::-;;;;;;;;;75324:7;:11;75332:2;75324:11;;;;;;;;;;;:19;;75317:26;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;75164:187;;;:::o;72345:434::-;72481:7;58094:12;:10;:12::i;:::-;58083:23;;:7;:5;:7::i;:::-;:23;;;58075:68;;;;;;;;;;;;:::i;:::-;;;;;;;;;72500:11:::1;;:13;;;;;;;;;:::i;:::-;;;;;;72524:21;72548:7;:20;72556:11;;72548:20;;;;;;;;;;;72524:44;;72604:16;72579:6;:22;;:41;;;;72651:11;72631:6;:17;;:31;;;;72695:13;72673:6;:19;;:35;;;;72734:6;72719;:12;;:21;;;;72760:11;;72753:18;;;72345:434:::0;;;;;;:::o;72787:938::-;72837:19;72859:10;72837:32;;72916:21;72940:7;:11;72948:2;72940:11;;;;;;;;;;;72916:35;;73016:6;:12;;;72977:11;;;;;;;;;;;72970:29;;;73000:11;72970:42;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:58;;72962:89;;;;;;;;;;;;:::i;:::-;;;;;;;;;73136:1;73111:6;:14;;:21;;;;:26;73103:61;;;;;;;;;;;;:::i;:::-;;;;;;;;;73184:6;:19;;:32;73204:11;73184:32;;;;;;;;;;;;;;;;;;;;;;;;;73183:33;73175:67;;;;;;;;;;;;:::i;:::-;;;;;;;;;73289:6;:22;;;73261:6;:24;;;:50;;73253:87;;;;;;;;;;;;:::i;:::-;;;;;;;;;73378:6;:19;;;73359:15;:38;;73351:68;;;;;;;;;;;;:::i;:::-;;;;;;;;;73476:11;;;;;;;;;;;73469:32;;;73502:11;73515:7;:5;:7::i;:::-;73524:6;:12;;;73469:68;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;73585:4;73550:6;:19;;:32;73570:11;73550:32;;;;;;;;;;;;;;;;:39;;;;;;;;;;;;;;;;;;73600:6;:16;;73622:11;73600:34;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;73645:6;:24;;;:26;;;;;;;;;:::i;:::-;;;;;;73682:13;:26;73696:11;73682:26;;;;;;;;;;;;;;;73714:2;73682:35;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;72826:899;;72787:938;:::o;74340:406::-;74398:4;74438:2;74423:11;;:17;;74415:47;;;;;;;;;;;;:::i;:::-;;;;;;;;;74475:21;74499:7;:11;74507:2;74499:11;;;;;;;;;;;74475:35;;74550:1;74525:6;:14;;:21;;;;:26;74521:44;;74560:5;74553:12;;;;;74521:44;74609:6;:22;;;74582:6;:24;;;:49;74578:137;;;74670:6;:19;;;74652:15;:37;74648:55;;;74698:5;74691:12;;;;;74648:55;74578:137;74734:4;74727:11;;;74340:406;;;;:::o;58514:103::-;58094:12;:10;:12::i;:::-;58083:23;;:7;:5;:7::i;:::-;:23;;;58075:68;;;;;;;;;;;;:::i;:::-;;;;;;;;;58579:30:::1;58606:1;58579:18;:30::i;:::-;58514:103::o:0;57863:87::-;57909:7;57936:6;;;;;;;;;;;57929:13;;57863:87;:::o;73999:214::-;74071:4;74111:2;74096:11;;:17;;74088:26;;;;;;74125:21;74149:7;:11;74157:2;74149:11;;;;;;;;;;;74125:35;;74180:6;:19;;:25;74200:4;74180:25;;;;;;;;;;;;;;;;;;;;;;;;;74173:32;;;73999:214;;;;:::o;72162:26::-;;;;:::o;73733:258::-;73789:7;73798;73807;73850:2;73835:11;;:17;;73827:26;;;;;;73864:21;73888:7;:11;73896:2;73888:11;;;;;;;;;;;73864:35;;73920:6;:24;;;73946:6;:12;;;73960:6;:22;;;73912:71;;;;;;;73733:258;;;;;:::o;74754:402::-;58094:12;:10;:12::i;:::-;58083:23;;:7;:5;:7::i;:::-;:23;;;58075:68;;;;;;;;;;;;:::i;:::-;;;;;;;;;74871:2:::1;74856:11;;:17;;74848:47;;;;;;;;;;;;:::i;:::-;;;;;;;;;74908:21;74932:7;:11;74940:2;74932:11;;;;;;;;;;;74908:35;;74987:1;74962:6;:14;;:21;;;;:26;74954:61;;;;;;;;;;;;:::i;:::-;;;;;;;;;75033:9;75028:121;75052:7;:14;75048:1;:18;75028:121;;;75088:6;:14;;75108:6;:16;;75125:7;75133:1;75125:10;;;;;;;;:::i;:::-;;;;;;;;75108:28;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;75088:49;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;75068:3;;;;;:::i;:::-;;;;75028:121;;;;74837:319;74754:402:::0;;:::o;58772:201::-;58094:12;:10;:12::i;:::-;58083:23;;:7;:5;:7::i;:::-;:23;;;58075:68;;;;;;;;;;;;:::i;:::-;;;;;;;;;58881:1:::1;58861:22;;:8;:22;;;;58853:73;;;;;;;;;;;;:::i;:::-;;;;;;;;;58937:28;58956:8;58937:18;:28::i;:::-;58772:201:::0;:::o;27411:98::-;27464:7;27491:10;27484:17;;27411:98;:::o;59133:191::-;59207:16;59226:6;;;;;;;;;;;59207:25;;59252:8;59243:6;;:17;;;;;;;;;;;;;;;;;;59307:8;59276:40;;59297:8;59276:40;;;;;;;;;;;;59196:128;59133:191;:::o;24:722:1:-;120:5;145:81;161:64;218:6;161:64;:::i;:::-;145:81;:::i;:::-;136:90;;246:5;275:6;268:5;261:21;309:4;302:5;298:16;291:23;;335:6;385:3;377:4;369:6;365:17;360:3;356:27;353:36;350:143;;;404:79;;:::i;:::-;350:143;517:1;502:238;527:6;524:1;521:13;502:238;;;595:3;624:37;657:3;645:10;624:37;:::i;:::-;619:3;612:50;691:4;686:3;682:14;675:21;;725:4;720:3;716:14;709:21;;562:178;549:1;546;542:9;537:14;;502:238;;;506:14;126:620;;24:722;;;;;:::o;752:139::-;798:5;836:6;823:20;814:29;;852:33;879:5;852:33;:::i;:::-;752:139;;;;:::o;914:370::-;985:5;1034:3;1027:4;1019:6;1015:17;1011:27;1001:122;;1042:79;;:::i;:::-;1001:122;1159:6;1146:20;1184:94;1274:3;1266:6;1259:4;1251:6;1247:17;1184:94;:::i;:::-;1175:103;;991:293;914:370;;;;:::o;1290:137::-;1344:5;1375:6;1369:13;1360:22;;1391:30;1415:5;1391:30;:::i;:::-;1290:137;;;;:::o;1433:139::-;1479:5;1517:6;1504:20;1495:29;;1533:33;1560:5;1533:33;:::i;:::-;1433:139;;;;:::o;1578:143::-;1635:5;1666:6;1660:13;1651:22;;1682:33;1709:5;1682:33;:::i;:::-;1578:143;;;;:::o;1727:329::-;1786:6;1835:2;1823:9;1814:7;1810:23;1806:32;1803:119;;;1841:79;;:::i;:::-;1803:119;1961:1;1986:53;2031:7;2022:6;2011:9;2007:22;1986:53;:::i;:::-;1976:63;;1932:117;1727:329;;;;:::o;2062:474::-;2130:6;2138;2187:2;2175:9;2166:7;2162:23;2158:32;2155:119;;;2193:79;;:::i;:::-;2155:119;2313:1;2338:53;2383:7;2374:6;2363:9;2359:22;2338:53;:::i;:::-;2328:63;;2284:117;2440:2;2466:53;2511:7;2502:6;2491:9;2487:22;2466:53;:::i;:::-;2456:63;;2411:118;2062:474;;;;;:::o;2542:345::-;2609:6;2658:2;2646:9;2637:7;2633:23;2629:32;2626:119;;;2664:79;;:::i;:::-;2626:119;2784:1;2809:61;2862:7;2853:6;2842:9;2838:22;2809:61;:::i;:::-;2799:71;;2755:125;2542:345;;;;:::o;2893:329::-;2952:6;3001:2;2989:9;2980:7;2976:23;2972:32;2969:119;;;3007:79;;:::i;:::-;2969:119;3127:1;3152:53;3197:7;3188:6;3177:9;3173:22;3152:53;:::i;:::-;3142:63;;3098:117;2893:329;;;;:::o;3228:351::-;3298:6;3347:2;3335:9;3326:7;3322:23;3318:32;3315:119;;;3353:79;;:::i;:::-;3315:119;3473:1;3498:64;3554:7;3545:6;3534:9;3530:22;3498:64;:::i;:::-;3488:74;;3444:128;3228:351;;;;:::o;3585:684::-;3678:6;3686;3735:2;3723:9;3714:7;3710:23;3706:32;3703:119;;;3741:79;;:::i;:::-;3703:119;3861:1;3886:53;3931:7;3922:6;3911:9;3907:22;3886:53;:::i;:::-;3876:63;;3832:117;4016:2;4005:9;4001:18;3988:32;4047:18;4039:6;4036:30;4033:117;;;4069:79;;:::i;:::-;4033:117;4174:78;4244:7;4235:6;4224:9;4220:22;4174:78;:::i;:::-;4164:88;;3959:303;3585:684;;;;;:::o;4275:765::-;4361:6;4369;4377;4385;4434:3;4422:9;4413:7;4409:23;4405:33;4402:120;;;4441:79;;:::i;:::-;4402:120;4561:1;4586:53;4631:7;4622:6;4611:9;4607:22;4586:53;:::i;:::-;4576:63;;4532:117;4688:2;4714:53;4759:7;4750:6;4739:9;4735:22;4714:53;:::i;:::-;4704:63;;4659:118;4816:2;4842:53;4887:7;4878:6;4867:9;4863:22;4842:53;:::i;:::-;4832:63;;4787:118;4944:2;4970:53;5015:7;5006:6;4995:9;4991:22;4970:53;:::i;:::-;4960:63;;4915:118;4275:765;;;;;;;:::o;5046:179::-;5115:10;5136:46;5178:3;5170:6;5136:46;:::i;:::-;5214:4;5209:3;5205:14;5191:28;;5046:179;;;;:::o;5231:::-;5300:10;5321:46;5363:3;5355:6;5321:46;:::i;:::-;5399:4;5394:3;5390:14;5376:28;;5231:179;;;;:::o;5416:108::-;5493:24;5511:5;5493:24;:::i;:::-;5488:3;5481:37;5416:108;;:::o;5530:118::-;5617:24;5635:5;5617:24;:::i;:::-;5612:3;5605:37;5530:118;;:::o;5684:732::-;5803:3;5832:54;5880:5;5832:54;:::i;:::-;5902:86;5981:6;5976:3;5902:86;:::i;:::-;5895:93;;6012:56;6062:5;6012:56;:::i;:::-;6091:7;6122:1;6107:284;6132:6;6129:1;6126:13;6107:284;;;6208:6;6202:13;6235:63;6294:3;6279:13;6235:63;:::i;:::-;6228:70;;6321:60;6374:6;6321:60;:::i;:::-;6311:70;;6167:224;6154:1;6151;6147:9;6142:14;;6107:284;;;6111:14;6407:3;6400:10;;5808:608;;;5684:732;;;;:::o;6452:::-;6571:3;6600:54;6648:5;6600:54;:::i;:::-;6670:86;6749:6;6744:3;6670:86;:::i;:::-;6663:93;;6780:56;6830:5;6780:56;:::i;:::-;6859:7;6890:1;6875:284;6900:6;6897:1;6894:13;6875:284;;;6976:6;6970:13;7003:63;7062:3;7047:13;7003:63;:::i;:::-;6996:70;;7089:60;7142:6;7089:60;:::i;:::-;7079:70;;6935:224;6922:1;6919;6915:9;6910:14;;6875:284;;;6879:14;7175:3;7168:10;;6576:608;;;6452:732;;;;:::o;7190:109::-;7271:21;7286:5;7271:21;:::i;:::-;7266:3;7259:34;7190:109;;:::o;7305:366::-;7447:3;7468:67;7532:2;7527:3;7468:67;:::i;:::-;7461:74;;7544:93;7633:3;7544:93;:::i;:::-;7662:2;7657:3;7653:12;7646:19;;7305:366;;;:::o;7677:::-;7819:3;7840:67;7904:2;7899:3;7840:67;:::i;:::-;7833:74;;7916:93;8005:3;7916:93;:::i;:::-;8034:2;8029:3;8025:12;8018:19;;7677:366;;;:::o;8049:::-;8191:3;8212:67;8276:2;8271:3;8212:67;:::i;:::-;8205:74;;8288:93;8377:3;8288:93;:::i;:::-;8406:2;8401:3;8397:12;8390:19;;8049:366;;;:::o;8421:::-;8563:3;8584:67;8648:2;8643:3;8584:67;:::i;:::-;8577:74;;8660:93;8749:3;8660:93;:::i;:::-;8778:2;8773:3;8769:12;8762:19;;8421:366;;;:::o;8793:::-;8935:3;8956:67;9020:2;9015:3;8956:67;:::i;:::-;8949:74;;9032:93;9121:3;9032:93;:::i;:::-;9150:2;9145:3;9141:12;9134:19;;8793:366;;;:::o;9165:::-;9307:3;9328:67;9392:2;9387:3;9328:67;:::i;:::-;9321:74;;9404:93;9493:3;9404:93;:::i;:::-;9522:2;9517:3;9513:12;9506:19;;9165:366;;;:::o;9537:::-;9679:3;9700:67;9764:2;9759:3;9700:67;:::i;:::-;9693:74;;9776:93;9865:3;9776:93;:::i;:::-;9894:2;9889:3;9885:12;9878:19;;9537:366;;;:::o;9909:::-;10051:3;10072:67;10136:2;10131:3;10072:67;:::i;:::-;10065:74;;10148:93;10237:3;10148:93;:::i;:::-;10266:2;10261:3;10257:12;10250:19;;9909:366;;;:::o;10281:::-;10423:3;10444:67;10508:2;10503:3;10444:67;:::i;:::-;10437:74;;10520:93;10609:3;10520:93;:::i;:::-;10638:2;10633:3;10629:12;10622:19;;10281:366;;;:::o;10653:108::-;10730:24;10748:5;10730:24;:::i;:::-;10725:3;10718:37;10653:108;;:::o;10767:118::-;10854:24;10872:5;10854:24;:::i;:::-;10849:3;10842:37;10767:118;;:::o;10891:222::-;10984:4;11022:2;11011:9;11007:18;10999:26;;11035:71;11103:1;11092:9;11088:17;11079:6;11035:71;:::i;:::-;10891:222;;;;:::o;11119:442::-;11268:4;11306:2;11295:9;11291:18;11283:26;;11319:71;11387:1;11376:9;11372:17;11363:6;11319:71;:::i;:::-;11400:72;11468:2;11457:9;11453:18;11444:6;11400:72;:::i;:::-;11482;11550:2;11539:9;11535:18;11526:6;11482:72;:::i;:::-;11119:442;;;;;;:::o;11567:373::-;11710:4;11748:2;11737:9;11733:18;11725:26;;11797:9;11791:4;11787:20;11783:1;11772:9;11768:17;11761:47;11825:108;11928:4;11919:6;11825:108;:::i;:::-;11817:116;;11567:373;;;;:::o;11946:::-;12089:4;12127:2;12116:9;12112:18;12104:26;;12176:9;12170:4;12166:20;12162:1;12151:9;12147:17;12140:47;12204:108;12307:4;12298:6;12204:108;:::i;:::-;12196:116;;11946:373;;;;:::o;12325:210::-;12412:4;12450:2;12439:9;12435:18;12427:26;;12463:65;12525:1;12514:9;12510:17;12501:6;12463:65;:::i;:::-;12325:210;;;;:::o;12541:419::-;12707:4;12745:2;12734:9;12730:18;12722:26;;12794:9;12788:4;12784:20;12780:1;12769:9;12765:17;12758:47;12822:131;12948:4;12822:131;:::i;:::-;12814:139;;12541:419;;;:::o;12966:::-;13132:4;13170:2;13159:9;13155:18;13147:26;;13219:9;13213:4;13209:20;13205:1;13194:9;13190:17;13183:47;13247:131;13373:4;13247:131;:::i;:::-;13239:139;;12966:419;;;:::o;13391:::-;13557:4;13595:2;13584:9;13580:18;13572:26;;13644:9;13638:4;13634:20;13630:1;13619:9;13615:17;13608:47;13672:131;13798:4;13672:131;:::i;:::-;13664:139;;13391:419;;;:::o;13816:::-;13982:4;14020:2;14009:9;14005:18;13997:26;;14069:9;14063:4;14059:20;14055:1;14044:9;14040:17;14033:47;14097:131;14223:4;14097:131;:::i;:::-;14089:139;;13816:419;;;:::o;14241:::-;14407:4;14445:2;14434:9;14430:18;14422:26;;14494:9;14488:4;14484:20;14480:1;14469:9;14465:17;14458:47;14522:131;14648:4;14522:131;:::i;:::-;14514:139;;14241:419;;;:::o;14666:::-;14832:4;14870:2;14859:9;14855:18;14847:26;;14919:9;14913:4;14909:20;14905:1;14894:9;14890:17;14883:47;14947:131;15073:4;14947:131;:::i;:::-;14939:139;;14666:419;;;:::o;15091:::-;15257:4;15295:2;15284:9;15280:18;15272:26;;15344:9;15338:4;15334:20;15330:1;15319:9;15315:17;15308:47;15372:131;15498:4;15372:131;:::i;:::-;15364:139;;15091:419;;;:::o;15516:::-;15682:4;15720:2;15709:9;15705:18;15697:26;;15769:9;15763:4;15759:20;15755:1;15744:9;15740:17;15733:47;15797:131;15923:4;15797:131;:::i;:::-;15789:139;;15516:419;;;:::o;15941:::-;16107:4;16145:2;16134:9;16130:18;16122:26;;16194:9;16188:4;16184:20;16180:1;16169:9;16165:17;16158:47;16222:131;16348:4;16222:131;:::i;:::-;16214:139;;15941:419;;;:::o;16366:222::-;16459:4;16497:2;16486:9;16482:18;16474:26;;16510:71;16578:1;16567:9;16563:17;16554:6;16510:71;:::i;:::-;16366:222;;;;:::o;16594:442::-;16743:4;16781:2;16770:9;16766:18;16758:26;;16794:71;16862:1;16851:9;16847:17;16838:6;16794:71;:::i;:::-;16875:72;16943:2;16932:9;16928:18;16919:6;16875:72;:::i;:::-;16957;17025:2;17014:9;17010:18;17001:6;16957:72;:::i;:::-;16594:442;;;;;;:::o;17042:129::-;17076:6;17103:20;;:::i;:::-;17093:30;;17132:33;17160:4;17152:6;17132:33;:::i;:::-;17042:129;;;:::o;17177:75::-;17210:6;17243:2;17237:9;17227:19;;17177:75;:::o;17258:311::-;17335:4;17425:18;17417:6;17414:30;17411:56;;;17447:18;;:::i;:::-;17411:56;17497:4;17489:6;17485:17;17477:25;;17557:4;17551;17547:15;17539:23;;17258:311;;;:::o;17575:132::-;17642:4;17665:3;17657:11;;17695:4;17690:3;17686:14;17678:22;;17575:132;;;:::o;17713:::-;17780:4;17803:3;17795:11;;17833:4;17828:3;17824:14;17816:22;;17713:132;;;:::o;17851:114::-;17918:6;17952:5;17946:12;17936:22;;17851:114;;;:::o;17971:::-;18038:6;18072:5;18066:12;18056:22;;17971:114;;;:::o;18091:113::-;18161:4;18193;18188:3;18184:14;18176:22;;18091:113;;;:::o;18210:::-;18280:4;18312;18307:3;18303:14;18295:22;;18210:113;;;:::o;18329:184::-;18428:11;18462:6;18457:3;18450:19;18502:4;18497:3;18493:14;18478:29;;18329:184;;;;:::o;18519:::-;18618:11;18652:6;18647:3;18640:19;18692:4;18687:3;18683:14;18668:29;;18519:184;;;;:::o;18709:169::-;18793:11;18827:6;18822:3;18815:19;18867:4;18862:3;18858:14;18843:29;;18709:169;;;;:::o;18884:96::-;18921:7;18950:24;18968:5;18950:24;:::i;:::-;18939:35;;18884:96;;;:::o;18986:90::-;19020:7;19063:5;19056:13;19049:21;19038:32;;18986:90;;;:::o;19082:126::-;19119:7;19159:42;19152:5;19148:54;19137:65;;19082:126;;;:::o;19214:77::-;19251:7;19280:5;19269:16;;19214:77;;;:::o;19297:281::-;19380:27;19402:4;19380:27;:::i;:::-;19372:6;19368:40;19510:6;19498:10;19495:22;19474:18;19462:10;19459:34;19456:62;19453:88;;;19521:18;;:::i;:::-;19453:88;19561:10;19557:2;19550:22;19340:238;19297:281;;:::o;19584:233::-;19623:3;19646:24;19664:5;19646:24;:::i;:::-;19637:33;;19692:66;19685:5;19682:77;19679:103;;;19762:18;;:::i;:::-;19679:103;19809:1;19802:5;19798:13;19791:20;;19584:233;;;:::o;19823:180::-;19871:77;19868:1;19861:88;19968:4;19965:1;19958:15;19992:4;19989:1;19982:15;20009:180;20057:77;20054:1;20047:88;20154:4;20151:1;20144:15;20178:4;20175:1;20168:15;20195:180;20243:77;20240:1;20233:88;20340:4;20337:1;20330:15;20364:4;20361:1;20354:15;20381:117;20490:1;20487;20480:12;20504:117;20613:1;20610;20603:12;20627:117;20736:1;20733;20726:12;20750:117;20859:1;20856;20849:12;20873:102;20914:6;20965:2;20961:7;20956:2;20949:5;20945:14;20941:28;20931:38;;20873:102;;;:::o;20981:225::-;21121:34;21117:1;21109:6;21105:14;21098:58;21190:8;21185:2;21177:6;21173:15;21166:33;20981:225;:::o;21212:174::-;21352:26;21348:1;21340:6;21336:14;21329:50;21212:174;:::o;21392:172::-;21532:24;21528:1;21520:6;21516:14;21509:48;21392:172;:::o;21570:171::-;21710:23;21706:1;21698:6;21694:14;21687:47;21570:171;:::o;21747:167::-;21887:19;21883:1;21875:6;21871:14;21864:43;21747:167;:::o;21920:168::-;22060:20;22056:1;22048:6;22044:14;22037:44;21920:168;:::o;22094:182::-;22234:34;22230:1;22222:6;22218:14;22211:58;22094:182;:::o;22282:167::-;22422:19;22418:1;22410:6;22406:14;22399:43;22282:167;:::o;22455:172::-;22595:24;22591:1;22583:6;22579:14;22572:48;22455:172;:::o;22633:122::-;22706:24;22724:5;22706:24;:::i;:::-;22699:5;22696:35;22686:63;;22745:1;22742;22735:12;22686:63;22633:122;:::o;22761:116::-;22831:21;22846:5;22831:21;:::i;:::-;22824:5;22821:32;22811:60;;22867:1;22864;22857:12;22811:60;22761:116;:::o;22883:122::-;22956:24;22974:5;22956:24;:::i;:::-;22949:5;22946:35;22936:63;;22995:1;22992;22985:12;22936:63;22883:122;:::o
Swarm Source
ipfs://c995c6a7d48af2ed3fa1514786bfdf84b997ed232cc81a081d6750bcc2233314
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 26 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.