Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 1,604 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Decr Styx Balanc... | 15567077 | 679 days ago | IN | 0 ETH | 0.00009776 | ||||
Add Styx Balance | 15567059 | 679 days ago | IN | 0 ETH | 0.00010956 | ||||
Add Styx Balance | 15566355 | 680 days ago | IN | 0 ETH | 0.0001028 | ||||
Add Styx Balance | 15566095 | 680 days ago | IN | 0 ETH | 0.00010164 | ||||
Add Styx Balance | 15565709 | 680 days ago | IN | 0 ETH | 0.00018636 | ||||
Add Styx Balance | 15565600 | 680 days ago | IN | 0 ETH | 0.00007457 | ||||
Add Styx Balance | 15564904 | 680 days ago | IN | 0 ETH | 0.00018767 | ||||
Add Styx Balance | 15564602 | 680 days ago | IN | 0 ETH | 0.00034266 | ||||
Add Styx Balance | 15563908 | 680 days ago | IN | 0 ETH | 0.00057029 | ||||
Add Styx Balance | 15563679 | 680 days ago | IN | 0 ETH | 0.00010058 | ||||
Add Styx Balance | 15563611 | 680 days ago | IN | 0 ETH | 0.0002025 | ||||
Add Styx Balance | 15562689 | 680 days ago | IN | 0 ETH | 0.00013527 | ||||
Add Styx Balance | 15562684 | 680 days ago | IN | 0 ETH | 0.00013201 | ||||
Add Styx Balance | 15562672 | 680 days ago | IN | 0 ETH | 0.00021661 | ||||
Add Styx Balance | 15561133 | 680 days ago | IN | 0 ETH | 0.00041292 | ||||
Add Styx Balance | 15561046 | 680 days ago | IN | 0 ETH | 0.00013838 | ||||
Add Styx Balance | 15560504 | 680 days ago | IN | 0 ETH | 0.00009884 | ||||
Add Styx Balance | 15560408 | 680 days ago | IN | 0 ETH | 0.0001387 | ||||
Add Styx Balance | 15560365 | 680 days ago | IN | 0 ETH | 0.00017033 | ||||
Add Styx Balance | 15558825 | 681 days ago | IN | 0 ETH | 0.00012684 | ||||
Add Styx Balance | 15558624 | 681 days ago | IN | 0 ETH | 0.00013945 | ||||
Add Styx Balance | 15557083 | 681 days ago | IN | 0 ETH | 0.00008501 | ||||
Add Styx Balance | 15556766 | 681 days ago | IN | 0 ETH | 0.00015315 | ||||
Add Styx Balance | 15556443 | 681 days ago | IN | 0 ETH | 0.00008639 | ||||
Add Styx Balance | 15556103 | 681 days ago | IN | 0 ETH | 0.00011139 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
BGFSTYX
Compiler Version
v0.8.4+commit.c7e474f2
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2022-08-11 */ // SPDX-License-Identifier: MIT LICENSE // 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); } } // 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); } } } } // OpenZeppelin Contracts (last updated v4.6.0) (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 `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); } // 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); } // 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; } } // OpenZeppelin Contracts (last updated v4.6.0) (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`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must 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 Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); } // 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); } // 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/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; } } // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/ERC721.sol) pragma solidity ^0.8.0; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require( owner != address(0), "ERC721: balance query for the zero address" ); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require( owner != address(0), "ERC721: owner query for nonexistent token" ); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { 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 overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require( _exists(tokenId), "ERC721: approved query for nonexistent token" ); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require( _isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved" ); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { require( _isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved" ); _safeTransfer(from, to, tokenId, _data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory _data ) internal virtual { _transfer(from, to, tokenId); require( _checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require( _exists(tokenId), "ERC721: operator query for nonexistent token" ); address owner = ERC721.ownerOf(tokenId); return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == spender); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory _data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); _afterTokenTransfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); _afterTokenTransfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require( ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner" ); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); _afterTokenTransfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits a {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received( _msgSender(), from, tokenId, _data ) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert( "ERC721: transfer to non ERC721Receiver implementer" ); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} } // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721Enumerable.sol) pragma solidity ^0.8.0; /** * @dev This implements an optional extension of {ERC721} defined in the EIP that adds * enumerability of all the token ids in the contract as well as all token ids owned by each * account. */ abstract contract ERC721Enumerable is ERC721, IERC721Enumerable { // Mapping from owner to list of owned token IDs mapping(address => mapping(uint256 => uint256)) private _ownedTokens; // Mapping from token ID to index of the owner tokens list mapping(uint256 => uint256) private _ownedTokensIndex; // Array with all token ids, used for enumeration uint256[] private _allTokens; // Mapping from token id to position in the allTokens array mapping(uint256 => uint256) private _allTokensIndex; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) { return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) { require( index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds" ); return _ownedTokens[owner][index]; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _allTokens.length; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view virtual override returns (uint256) { require( index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds" ); return _allTokens[index]; } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` cannot be the zero address. * - `to` cannot be the zero address. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual override { super._beforeTokenTransfer(from, to, tokenId); if (from == address(0)) { _addTokenToAllTokensEnumeration(tokenId); } else if (from != to) { _removeTokenFromOwnerEnumeration(from, tokenId); } if (to == address(0)) { _removeTokenFromAllTokensEnumeration(tokenId); } else if (to != from) { _addTokenToOwnerEnumeration(to, tokenId); } } /** * @dev Private function to add a token to this extension's ownership-tracking data structures. * @param to address representing the new owner of the given token ID * @param tokenId uint256 ID of the token to be added to the tokens list of the given address */ function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private { uint256 length = ERC721.balanceOf(to); _ownedTokens[to][length] = tokenId; _ownedTokensIndex[tokenId] = length; } /** * @dev Private function to add a token to this extension's token tracking data structures. * @param tokenId uint256 ID of the token to be added to the tokens list */ function _addTokenToAllTokensEnumeration(uint256 tokenId) private { _allTokensIndex[tokenId] = _allTokens.length; _allTokens.push(tokenId); } /** * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for * gas optimizations e.g. when performing a transfer operation (avoiding double writes). * This has O(1) time complexity, but alters the order of the _ownedTokens array. * @param from address representing the previous owner of the given token ID * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address */ function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private { // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = ERC721.balanceOf(from) - 1; uint256 tokenIndex = _ownedTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary if (tokenIndex != lastTokenIndex) { uint256 lastTokenId = _ownedTokens[from][lastTokenIndex]; _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index } // This also deletes the contents at the last position of the array delete _ownedTokensIndex[tokenId]; delete _ownedTokens[from][lastTokenIndex]; } /** * @dev Private function to remove a token from this extension's token tracking data structures. * This has O(1) time complexity, but alters the order of the _allTokens array. * @param tokenId uint256 ID of the token to be removed from the tokens list */ function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private { // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = _allTokens.length - 1; uint256 tokenIndex = _allTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding // an 'if' statement (like in _removeTokenFromOwnerEnumeration) uint256 lastTokenId = _allTokens[lastTokenIndex]; _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index // This also deletes the contents at the last position of the array delete _allTokensIndex[tokenId]; _allTokens.pop(); } } // 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); } } pragma solidity 0.8.4; contract BGFSTYX is Ownable, IERC721Receiver { address public familiars; address public towers; bool public claimingEnabled = true; bool public spendingEnabled = true; mapping(address => uint256) public bank; function getBankBalance(address _address) public view returns (uint256) { return bank[_address]; } function spendBalanceFamiliars(address _address, uint256 _amount) public { require(spendingEnabled, "Balance spending functions are disabled."); require(msg.sender == familiars, "Not Allowed."); require(bank[_address] >= _amount, "Not Enough $STYX."); bank[_address] -= _amount; } function spendBalanceTowers(address _address, uint256 _amount) public { require(spendingEnabled, "Balance spending functions are disabled."); require(msg.sender == towers, "Not Allowed."); require(bank[_address] >= _amount, "Not Enough $STYX."); bank[_address] -= _amount; } function addStyxBalance(address _address, uint256 _amount) public onlyOwner { bank[_address] += _amount; } function decrStyxBalance(address _address, uint256 _amount) public onlyOwner { require(bank[_address] >= _amount, "Not Enough $STYX."); bank[_address] -= _amount; } function setStyxBalance(address _address, uint256 _amount) public onlyOwner { bank[_address] = _amount; } //Only Owner function setFamiliarsAddress(address _address) public onlyOwner { familiars = _address; } function setTowersAddress(address _address) public onlyOwner { towers = _address; } function toggleSpending(bool _state) public onlyOwner { spendingEnabled = _state; } function onERC721Received( address, address from, uint256, bytes calldata ) external pure override returns (bytes4) { require(from == address(0x0), "Cannot send Tokens to Vault directly"); return IERC721Receiver.onERC721Received.selector; } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"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":"address","name":"_address","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"addStyxBalance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"bank","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claimingEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"decrStyxBalance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"familiars","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"getBankBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"from","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC721Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"setFamiliarsAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"setStyxBalance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"setTowersAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"spendBalanceFamiliars","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"spendBalanceTowers","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"spendingEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"toggleSpending","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"towers","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040526002805461ffff60a01b191661010160a01b17905534801561002557600080fd5b5061002f33610034565b610084565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6109a3806100936000396000f3fe608060405234801561001057600080fd5b50600436106101165760003560e01c806375c7462d116100a2578063cc3b168411610071578063cc3b168414610280578063da89ddf514610293578063eaa6f6c7146102a6578063ec13e8b8146102b9578063f2fde38b146102cc57600080fd5b806375c7462d1461021e5780637a40390614610249578063841862391461025c5780638da5cb5b1461026f57600080fd5b8063529a1baf116100e9578063529a1baf146101bc57806354278d56146101dc578063548362f7146101ef5780635a3defc614610202578063715018a61461021657600080fd5b806304cdb1711461011b5780630e141a9b14610157578063150b7a021461017b5780634f649ef7146101a7575b600080fd5b6101446101293660046107ab565b6001600160a01b031660009081526003602052604090205490565b6040519081526020015b60405180910390f35b60025461016b90600160a01b900460ff1681565b604051901515815260200161014e565b61018e6101893660046107cc565b6102df565b6040516001600160e01b0319909116815260200161014e565b6101ba6101b5366004610862565b61035b565b005b6101446101ca3660046107ab565b60036020526000908152604090205481565b6101ba6101ea3660046107ab565b6103a1565b6101ba6101fd366004610862565b6103ed565b60025461016b90600160a81b900460ff1681565b6101ba610448565b600254610231906001600160a01b031681565b6040516001600160a01b03909116815260200161014e565b6101ba6102573660046107ab565b61047e565b6101ba61026a366004610862565b6104ca565b6000546001600160a01b0316610231565b6101ba61028e366004610862565b610578565b6101ba6102a1366004610862565b6105ea565b6101ba6102b436600461088b565b61065c565b600154610231906001600160a01b031681565b6101ba6102da3660046107ab565b6106a4565b60006001600160a01b038516156103495760405162461bcd60e51b8152602060048201526024808201527f43616e6e6f742073656e6420546f6b656e7320746f205661756c74206469726560448201526363746c7960e01b60648201526084015b60405180910390fd5b50630a85bd0160e11b95945050505050565b6000546001600160a01b031633146103855760405162461bcd60e51b8152600401610340906108f3565b6001600160a01b03909116600090815260036020526040902055565b6000546001600160a01b031633146103cb5760405162461bcd60e51b8152600401610340906108f3565b600180546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b031633146104175760405162461bcd60e51b8152600401610340906108f3565b6001600160a01b0382166000908152600360205260408120805483929061043f908490610928565b90915550505050565b6000546001600160a01b031633146104725760405162461bcd60e51b8152600401610340906108f3565b61047c600061073f565b565b6000546001600160a01b031633146104a85760405162461bcd60e51b8152600401610340906108f3565b600280546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b031633146104f45760405162461bcd60e51b8152600401610340906108f3565b6001600160a01b0382166000908152600360205260409020548111156105505760405162461bcd60e51b81526020600482015260116024820152702737ba1022b737bab3b4101229aa2cac1760791b6044820152606401610340565b6001600160a01b0382166000908152600360205260408120805483929061043f908490610940565b600254600160a81b900460ff166105a15760405162461bcd60e51b8152600401610340906108ab565b6002546001600160a01b031633146104f45760405162461bcd60e51b815260206004820152600c60248201526b2737ba1020b63637bbb2b21760a11b6044820152606401610340565b600254600160a81b900460ff166106135760405162461bcd60e51b8152600401610340906108ab565b6001546001600160a01b031633146104f45760405162461bcd60e51b815260206004820152600c60248201526b2737ba1020b63637bbb2b21760a11b6044820152606401610340565b6000546001600160a01b031633146106865760405162461bcd60e51b8152600401610340906108f3565b60028054911515600160a81b0260ff60a81b19909216919091179055565b6000546001600160a01b031633146106ce5760405162461bcd60e51b8152600401610340906108f3565b6001600160a01b0381166107335760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610340565b61073c8161073f565b50565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80356001600160a01b03811681146107a657600080fd5b919050565b6000602082840312156107bc578081fd5b6107c58261078f565b9392505050565b6000806000806000608086880312156107e3578081fd5b6107ec8661078f565b94506107fa6020870161078f565b935060408601359250606086013567ffffffffffffffff8082111561081d578283fd5b818801915088601f830112610830578283fd5b81358181111561083e578384fd5b89602082850101111561084f578384fd5b9699959850939650602001949392505050565b60008060408385031215610874578182fd5b61087d8361078f565b946020939093013593505050565b60006020828403121561089c578081fd5b813580151581146107c5578182fd5b60208082526028908201527f42616c616e6365207370656e64696e672066756e6374696f6e7320617265206460408201526734b9b0b13632b21760c11b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6000821982111561093b5761093b610957565b500190565b60008282101561095257610952610957565b500390565b634e487b7160e01b600052601160045260246000fdfea2646970667358221220dc3c1166661bae352248f4801641ed19ba6ae62a36966777a26ea211beee784c64736f6c63430008040033
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101165760003560e01c806375c7462d116100a2578063cc3b168411610071578063cc3b168414610280578063da89ddf514610293578063eaa6f6c7146102a6578063ec13e8b8146102b9578063f2fde38b146102cc57600080fd5b806375c7462d1461021e5780637a40390614610249578063841862391461025c5780638da5cb5b1461026f57600080fd5b8063529a1baf116100e9578063529a1baf146101bc57806354278d56146101dc578063548362f7146101ef5780635a3defc614610202578063715018a61461021657600080fd5b806304cdb1711461011b5780630e141a9b14610157578063150b7a021461017b5780634f649ef7146101a7575b600080fd5b6101446101293660046107ab565b6001600160a01b031660009081526003602052604090205490565b6040519081526020015b60405180910390f35b60025461016b90600160a01b900460ff1681565b604051901515815260200161014e565b61018e6101893660046107cc565b6102df565b6040516001600160e01b0319909116815260200161014e565b6101ba6101b5366004610862565b61035b565b005b6101446101ca3660046107ab565b60036020526000908152604090205481565b6101ba6101ea3660046107ab565b6103a1565b6101ba6101fd366004610862565b6103ed565b60025461016b90600160a81b900460ff1681565b6101ba610448565b600254610231906001600160a01b031681565b6040516001600160a01b03909116815260200161014e565b6101ba6102573660046107ab565b61047e565b6101ba61026a366004610862565b6104ca565b6000546001600160a01b0316610231565b6101ba61028e366004610862565b610578565b6101ba6102a1366004610862565b6105ea565b6101ba6102b436600461088b565b61065c565b600154610231906001600160a01b031681565b6101ba6102da3660046107ab565b6106a4565b60006001600160a01b038516156103495760405162461bcd60e51b8152602060048201526024808201527f43616e6e6f742073656e6420546f6b656e7320746f205661756c74206469726560448201526363746c7960e01b60648201526084015b60405180910390fd5b50630a85bd0160e11b95945050505050565b6000546001600160a01b031633146103855760405162461bcd60e51b8152600401610340906108f3565b6001600160a01b03909116600090815260036020526040902055565b6000546001600160a01b031633146103cb5760405162461bcd60e51b8152600401610340906108f3565b600180546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b031633146104175760405162461bcd60e51b8152600401610340906108f3565b6001600160a01b0382166000908152600360205260408120805483929061043f908490610928565b90915550505050565b6000546001600160a01b031633146104725760405162461bcd60e51b8152600401610340906108f3565b61047c600061073f565b565b6000546001600160a01b031633146104a85760405162461bcd60e51b8152600401610340906108f3565b600280546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b031633146104f45760405162461bcd60e51b8152600401610340906108f3565b6001600160a01b0382166000908152600360205260409020548111156105505760405162461bcd60e51b81526020600482015260116024820152702737ba1022b737bab3b4101229aa2cac1760791b6044820152606401610340565b6001600160a01b0382166000908152600360205260408120805483929061043f908490610940565b600254600160a81b900460ff166105a15760405162461bcd60e51b8152600401610340906108ab565b6002546001600160a01b031633146104f45760405162461bcd60e51b815260206004820152600c60248201526b2737ba1020b63637bbb2b21760a11b6044820152606401610340565b600254600160a81b900460ff166106135760405162461bcd60e51b8152600401610340906108ab565b6001546001600160a01b031633146104f45760405162461bcd60e51b815260206004820152600c60248201526b2737ba1020b63637bbb2b21760a11b6044820152606401610340565b6000546001600160a01b031633146106865760405162461bcd60e51b8152600401610340906108f3565b60028054911515600160a81b0260ff60a81b19909216919091179055565b6000546001600160a01b031633146106ce5760405162461bcd60e51b8152600401610340906108f3565b6001600160a01b0381166107335760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610340565b61073c8161073f565b50565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80356001600160a01b03811681146107a657600080fd5b919050565b6000602082840312156107bc578081fd5b6107c58261078f565b9392505050565b6000806000806000608086880312156107e3578081fd5b6107ec8661078f565b94506107fa6020870161078f565b935060408601359250606086013567ffffffffffffffff8082111561081d578283fd5b818801915088601f830112610830578283fd5b81358181111561083e578384fd5b89602082850101111561084f578384fd5b9699959850939650602001949392505050565b60008060408385031215610874578182fd5b61087d8361078f565b946020939093013593505050565b60006020828403121561089c578081fd5b813580151581146107c5578182fd5b60208082526028908201527f42616c616e6365207370656e64696e672066756e6374696f6e7320617265206460408201526734b9b0b13632b21760c11b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6000821982111561093b5761093b610957565b500190565b60008282101561095257610952610957565b500390565b634e487b7160e01b600052601160045260246000fdfea2646970667358221220dc3c1166661bae352248f4801641ed19ba6ae62a36966777a26ea211beee784c64736f6c63430008040033
Deployed Bytecode Sourcemap
46781:2182:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;47024:112;;;;;;:::i;:::-;-1:-1:-1;;;;;47114:14:0;47087:7;47114:14;;;:4;:14;;;;;;;47024:112;;;;4845:25:1;;;4833:2;4818:18;47024:112:0;;;;;;;;46894:34;;;;;-1:-1:-1;;;46894:34:0;;;;;;;;;2196:14:1;;2189:22;2171:41;;2159:2;2144:18;46894:34:0;2126:92:1;48654:306:0;;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;;2385:33:1;;;2367:52;;2355:2;2340:18;48654:306:0;2322:103:1;48165:142:0;;;;;;:::i;:::-;;:::i;:::-;;46976:39;;;;;;:::i;:::-;;;;;;;;;;;;;;48333:103;;;;;;:::i;:::-;;:::i;47796:143::-;;;;;;:::i;:::-;;:::i;46935:34::-;;;;;-1:-1:-1;;;46935:34:0;;;;;;45901:103;;;:::i;46866:21::-;;;;;-1:-1:-1;;;;;46866:21:0;;;;;;-1:-1:-1;;;;;1987:32:1;;;1969:51;;1957:2;1942:18;46866:21:0;1924:102:1;48444:97:0;;;;;;:::i;:::-;;:::i;47947:210::-;;;;;;:::i;:::-;;:::i;45250:87::-;45296:7;45323:6;-1:-1:-1;;;;;45323:6:0;45250:87;;47473:315;;;;;;:::i;:::-;;:::i;47144:321::-;;;;;;:::i;:::-;;:::i;48549:97::-;;;;;;:::i;:::-;;:::i;46835:24::-;;;;;-1:-1:-1;;;;;46835:24:0;;;46159:238;;;;;;:::i;:::-;;:::i;48654:306::-;48803:6;-1:-1:-1;;;;;48830:20:0;;;48822:69;;;;-1:-1:-1;;;48822:69:0;;4496:2:1;48822:69:0;;;4478:21:1;4535:2;4515:18;;;4508:30;4574:34;4554:18;;;4547:62;-1:-1:-1;;;4625:18:1;;;4618:34;4669:19;;48822:69:0;;;;;;;;;-1:-1:-1;;;;48654:306:0;;;;;;;:::o;48165:142::-;45296:7;45323:6;-1:-1:-1;;;;;45323:6:0;21352:10;45470:23;45462:68;;;;-1:-1:-1;;;45462:68:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;48275:14:0;;::::1;;::::0;;;:4:::1;:14;::::0;;;;:24;48165:142::o;48333:103::-;45296:7;45323:6;-1:-1:-1;;;;;45323:6:0;21352:10;45470:23;45462:68;;;;-1:-1:-1;;;45462:68:0;;;;;;;:::i;:::-;48408:9:::1;:20:::0;;-1:-1:-1;;;;;;48408:20:0::1;-1:-1:-1::0;;;;;48408:20:0;;;::::1;::::0;;;::::1;::::0;;48333:103::o;47796:143::-;45296:7;45323:6;-1:-1:-1;;;;;45323:6:0;21352:10;45470:23;45462:68;;;;-1:-1:-1;;;45462:68:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;47906:14:0;::::1;;::::0;;;:4:::1;:14;::::0;;;;:25;;47924:7;;47906:14;:25:::1;::::0;47924:7;;47906:25:::1;:::i;:::-;::::0;;;-1:-1:-1;;;;47796:143:0:o;45901:103::-;45296:7;45323:6;-1:-1:-1;;;;;45323:6:0;21352:10;45470:23;45462:68;;;;-1:-1:-1;;;45462:68:0;;;;;;;:::i;:::-;45966:30:::1;45993:1;45966:18;:30::i;:::-;45901:103::o:0;48444:97::-;45296:7;45323:6;-1:-1:-1;;;;;45323:6:0;21352:10;45470:23;45462:68;;;;-1:-1:-1;;;45462:68:0;;;;;;;:::i;:::-;48516:6:::1;:17:::0;;-1:-1:-1;;;;;;48516:17:0::1;-1:-1:-1::0;;;;;48516:17:0;;;::::1;::::0;;;::::1;::::0;;48444:97::o;47947:210::-;45296:7;45323:6;-1:-1:-1;;;;;45323:6:0;21352:10;45470:23;45462:68;;;;-1:-1:-1;;;45462:68:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;48066:14:0;::::1;;::::0;;;:4:::1;:14;::::0;;;;;:25;-1:-1:-1;48066:25:0::1;48058:55;;;::::0;-1:-1:-1;;;48058:55:0;;4150:2:1;48058:55:0::1;::::0;::::1;4132:21:1::0;4189:2;4169:18;;;4162:30;-1:-1:-1;;;4208:18:1;;;4201:47;4265:18;;48058:55:0::1;4122:167:1::0;48058:55:0::1;-1:-1:-1::0;;;;;48124:14:0;::::1;;::::0;;;:4:::1;:14;::::0;;;;:25;;48142:7;;48124:14;:25:::1;::::0;48142:7;;48124:25:::1;:::i;47473:315::-:0;47562:15;;-1:-1:-1;;;47562:15:0;;;;47554:68;;;;-1:-1:-1;;;47554:68:0;;;;;;;:::i;:::-;47655:6;;-1:-1:-1;;;;;47655:6:0;47641:10;:20;47633:45;;;;-1:-1:-1;;;47633:45:0;;2632:2:1;47633:45:0;;;2614:21:1;2671:2;2651:18;;;2644:30;-1:-1:-1;;;2690:18:1;;;2683:42;2742:18;;47633:45:0;2604:162:1;47144:321:0;47236:15;;-1:-1:-1;;;47236:15:0;;;;47228:68;;;;-1:-1:-1;;;47228:68:0;;;;;;;:::i;:::-;47329:9;;-1:-1:-1;;;;;47329:9:0;47315:10;:23;47307:48;;;;-1:-1:-1;;;47307:48:0;;2632:2:1;47307:48:0;;;2614:21:1;2671:2;2651:18;;;2644:30;-1:-1:-1;;;2690:18:1;;;2683:42;2742:18;;47307:48:0;2604:162:1;48549:97:0;45296:7;45323:6;-1:-1:-1;;;;;45323:6:0;21352:10;45470:23;45462:68;;;;-1:-1:-1;;;45462:68:0;;;;;;;:::i;:::-;48614:15:::1;:24:::0;;;::::1;;-1:-1:-1::0;;;48614:24:0::1;-1:-1:-1::0;;;;48614:24:0;;::::1;::::0;;;::::1;::::0;;48549:97::o;46159:238::-;45296:7;45323:6;-1:-1:-1;;;;;45323:6:0;21352:10;45470:23;45462:68;;;;-1:-1:-1;;;45462:68:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;46262:22:0;::::1;46240:110;;;::::0;-1:-1:-1;;;46240:110:0;;2973:2:1;46240:110:0::1;::::0;::::1;2955:21:1::0;3012:2;2992:18;;;2985:30;3051:34;3031:18;;;3024:62;-1:-1:-1;;;3102:18:1;;;3095:36;3148:19;;46240:110:0::1;2945:228:1::0;46240:110:0::1;46361:28;46380:8;46361:18;:28::i;:::-;46159:238:::0;:::o;46557:191::-;46631:16;46650:6;;-1:-1:-1;;;;;46667:17:0;;;-1:-1:-1;;;;;;46667:17:0;;;;;;46700:40;;46650:6;;;;;;;46700:40;;46631:16;46700:40;46557:191;;:::o;14:173:1:-;82:20;;-1:-1:-1;;;;;131:31:1;;121:42;;111:2;;177:1;174;167:12;111:2;63:124;;;:::o;192:196::-;251:6;304:2;292:9;283:7;279:23;275:32;272:2;;;325:6;317;310:22;272:2;353:29;372:9;353:29;:::i;:::-;343:39;262:126;-1:-1:-1;;;262:126:1:o;393:858::-;490:6;498;506;514;522;575:3;563:9;554:7;550:23;546:33;543:2;;;597:6;589;582:22;543:2;625:29;644:9;625:29;:::i;:::-;615:39;;673:38;707:2;696:9;692:18;673:38;:::i;:::-;663:48;;758:2;747:9;743:18;730:32;720:42;;813:2;802:9;798:18;785:32;836:18;877:2;869:6;866:14;863:2;;;898:6;890;883:22;863:2;941:6;930:9;926:22;916:32;;986:7;979:4;975:2;971:13;967:27;957:2;;1013:6;1005;998:22;957:2;1058;1045:16;1084:2;1076:6;1073:14;1070:2;;;1105:6;1097;1090:22;1070:2;1155:7;1150:2;1141:6;1137:2;1133:15;1129:24;1126:37;1123:2;;;1181:6;1173;1166:22;1123:2;533:718;;;;-1:-1:-1;533:718:1;;-1:-1:-1;1217:2:1;1209:11;;1239:6;533:718;-1:-1:-1;;;533:718:1:o;1256:264::-;1324:6;1332;1385:2;1373:9;1364:7;1360:23;1356:32;1353:2;;;1406:6;1398;1391:22;1353:2;1434:29;1453:9;1434:29;:::i;:::-;1424:39;1510:2;1495:18;;;;1482:32;;-1:-1:-1;;;1343:177:1:o;1525:293::-;1581:6;1634:2;1622:9;1613:7;1609:23;1605:32;1602:2;;;1655:6;1647;1640:22;1602:2;1699:9;1686:23;1752:5;1745:13;1738:21;1731:5;1728:32;1718:2;;1779:6;1771;1764:22;3178:404;3380:2;3362:21;;;3419:2;3399:18;;;3392:30;3458:34;3453:2;3438:18;;3431:62;-1:-1:-1;;;3524:2:1;3509:18;;3502:38;3572:3;3557:19;;3352:230::o;3587:356::-;3789:2;3771:21;;;3808:18;;;3801:30;3867:34;3862:2;3847:18;;3840:62;3934:2;3919:18;;3761:182::o;4881:128::-;4921:3;4952:1;4948:6;4945:1;4942:13;4939:2;;;4958:18;;:::i;:::-;-1:-1:-1;4994:9:1;;4929:80::o;5014:125::-;5054:4;5082:1;5079;5076:8;5073:2;;;5087:18;;:::i;:::-;-1:-1:-1;5124:9:1;;5063:76::o;5144:127::-;5205:10;5200:3;5196:20;5193:1;5186:31;5236:4;5233:1;5226:15;5260:4;5257:1;5250:15
Swarm Source
ipfs://dc3c1166661bae352248f4801641ed19ba6ae62a36966777a26ea211beee784c
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.