Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 844 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
Value | ||||
---|---|---|---|---|---|---|---|---|---|
Buy With Eth | 15429331 | 674 days ago | IN | 0.000001 ETH | 0.00047305 | ||||
Buy With Eth | 15429329 | 674 days ago | IN | 0.0000001 ETH | 0.00038769 | ||||
Buy With Eth | 15429329 | 674 days ago | IN | 0.0000001 ETH | 0.00038769 | ||||
Buy With Eth | 15429329 | 674 days ago | IN | 0.0000001 ETH | 0.00038769 | ||||
Buy With Eth | 15429329 | 674 days ago | IN | 0.0000001 ETH | 0.00038769 | ||||
Buy With Eth | 15429329 | 674 days ago | IN | 0.0000001 ETH | 0.00152917 | ||||
Buy With Eth | 15429329 | 674 days ago | IN | 0.0000001 ETH | 0.00152917 | ||||
Buy With Eth | 15429329 | 674 days ago | IN | 0.0000001 ETH | 0.00152917 | ||||
Buy With Eth | 15429329 | 674 days ago | IN | 0.0000001 ETH | 0.00152917 | ||||
Buy With Eth | 15429329 | 674 days ago | IN | 0.0000001 ETH | 0.00152917 | ||||
Buy With Eth | 15429329 | 674 days ago | IN | 0.0000001 ETH | 0.00152917 | ||||
Buy With Eth | 15429321 | 674 days ago | IN | 0.0000001 ETH | 0.00125533 | ||||
Buy With Eth | 15429318 | 674 days ago | IN | 0.000001 ETH | 0.00067522 | ||||
Buy With Eth | 15429318 | 674 days ago | IN | 0.000001 ETH | 0.00067522 | ||||
Buy With Eth | 15429318 | 674 days ago | IN | 0.000001 ETH | 0.00067522 | ||||
Buy With Eth | 15429318 | 674 days ago | IN | 0.000001 ETH | 0.00067522 | ||||
Buy With Eth | 15429318 | 674 days ago | IN | 0.000001 ETH | 0.00067522 | ||||
Buy With Eth | 15429318 | 674 days ago | IN | 0.000001 ETH | 0.00067522 | ||||
Buy With Eth | 15429318 | 674 days ago | IN | 0.000001 ETH | 0.00067522 | ||||
Buy With Eth | 15429318 | 674 days ago | IN | 0.000001 ETH | 0.00067522 | ||||
Buy With Eth | 15429318 | 674 days ago | IN | 0.000001 ETH | 0.00067522 | ||||
Buy With Eth | 15429318 | 674 days ago | IN | 0.000001 ETH | 0.00067522 | ||||
Buy With Eth | 15429318 | 674 days ago | IN | 0.000001 ETH | 0.00067522 | ||||
Buy With Eth | 15429318 | 674 days ago | IN | 0.000001 ETH | 0.00067522 | ||||
Buy With Eth | 15429318 | 674 days ago | IN | 0.000001 ETH | 0.00067522 |
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block | From | To | Value | ||
---|---|---|---|---|---|---|
15429329 | 674 days ago | 0.0000001 ETH | ||||
15429329 | 674 days ago | 0.0000001 ETH | ||||
15429329 | 674 days ago | 0.0000001 ETH | ||||
15429329 | 674 days ago | 0.0000001 ETH | ||||
15429329 | 674 days ago | 0.0000001 ETH | ||||
15429329 | 674 days ago | 0.0000001 ETH | ||||
15429321 | 674 days ago | 0.0000001 ETH | ||||
15429318 | 674 days ago | 0.000001 ETH | ||||
15429318 | 674 days ago | 0.000001 ETH | ||||
15429318 | 674 days ago | 0.000001 ETH | ||||
15429318 | 674 days ago | 0.000001 ETH | ||||
15429318 | 674 days ago | 0.000001 ETH | ||||
15429318 | 674 days ago | 0.000001 ETH | ||||
15429318 | 674 days ago | 0.000001 ETH | ||||
15429318 | 674 days ago | 0.000001 ETH | ||||
15429318 | 674 days ago | 0.000001 ETH | ||||
15429317 | 674 days ago | 0.000001 ETH | ||||
15429317 | 674 days ago | 0.000001 ETH | ||||
15429317 | 674 days ago | 0.000001 ETH | ||||
15429317 | 674 days ago | 0.000001 ETH | ||||
15429317 | 674 days ago | 0.000001 ETH | ||||
15429317 | 674 days ago | 0.000001 ETH | ||||
15429317 | 674 days ago | 0.000001 ETH | ||||
15429317 | 674 days ago | 0.000001 ETH | ||||
15429317 | 674 days ago | 0.000001 ETH |
Loading...
Loading
Contract Name:
NFTVendor2
Compiler Version
v0.8.13+commit.abaa5c0e
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "Ownable.sol"; import "Address.sol"; import "IERC20.sol"; import "IERC721SafeMint.sol"; contract NFTVendor2 is Ownable { using Address for address payable; IERC20 public silver; IERC20 public gold; address payable public holding; address public auth; IERC721SafeMint public token; uint256 public saleEnd; uint256 public priceEth; uint256 public priceSilver; uint256 public priceGold; bool public saleActive; uint256 private _saleStart; bool public whitelistEnabled; bool public freeMintingEnabled; mapping(address => bool) public freeMinters; uint256 public maxPerAccount = 999999999; mapping(address => uint256) public purchased; // TODO make private and make a getter mapping(address => uint256) private lastPurchaseSale; constructor(address tokenAddress, address silverAddress, address goldAddress, address payable holdingAddress, address authWallet) { token = IERC721SafeMint(tokenAddress); silver = IERC20(silverAddress); gold = IERC20(goldAddress); holding = holdingAddress; auth = authWallet; } // ADMINISTRATIVE function beginSale(uint256 amount, uint256 maxPerUser) public onlyOwner { saleActive = true; saleEnd = token.totalSupply() + amount; maxPerAccount = maxPerUser; _saleStart = block.timestamp; } function addToSale(uint256 amount) public onlyOwner { saleEnd += amount; } function endSale() public onlyOwner { saleActive = false; } function addFreeMinter(address user) public onlyOwner { freeMinters[user] = true; } function addFreeMinters(address[] calldata users) public onlyOwner { for (uint i = 0; i < users.length; i++) freeMinters[users[i]] = true; } // PURCHASE function _buy(address account, uint256 amount, uint8 v, bytes32 r, bytes32 s, uint256 timestamp) internal { require(saleActive, "No sale currently active."); require(token.totalSupply() + amount <= saleEnd, "Not enough NFTs available to purchase."); if (whitelistEnabled) { require(block.timestamp < timestamp + 10 minutes, "Signature expired"); bytes32 hash = keccak256(abi.encode("NFTVendor2_buy", _msgSender(), timestamp)); address signer = ecrecover(hash, v, r, s); require(signer == auth, "Invalid signature"); } uint256 totalBought = amount; if (lastPurchaseSale[account] == _saleStart) totalBought += purchased[account]; require(totalBought <= maxPerAccount, "Overrunning max purchases per account."); purchased[account] = totalBought; if (lastPurchaseSale[account] != _saleStart) lastPurchaseSale[account] = _saleStart; token.safeMint(_msgSender(), amount); } function freeMint(uint8 v, bytes32 r, bytes32 s, uint256 timestamp) public { require(freeMintingEnabled, "Free minting is not enabled."); require(freeMinters[_msgSender()], "No free mints available for this address."); _buy(_msgSender(), 1, v, r, s, timestamp); freeMinters[_msgSender()] = false; } function buyWithSilver(uint256 amount, uint8 v, bytes32 r, bytes32 s, uint256 timestamp) public { require(priceSilver != 0, "Purchase with silver disabled."); _buy(_msgSender(), amount, v, r, s, timestamp); silver.transferFrom(_msgSender(), holding, amount * priceSilver); } function buyWithGold(uint256 amount, uint8 v, bytes32 r, bytes32 s, uint256 timestamp) public { require(priceGold != 0, "Purchase with gold disabled."); _buy(_msgSender(), amount, v, r, s, timestamp); gold.transferFrom(_msgSender(), holding, amount * priceGold); } function buyWithEth(uint256 amount, uint8 v, bytes32 r, bytes32 s, uint256 timestamp) public payable { require(priceEth != 0, "Purchase with eth disabled."); require(msg.value == amount * priceEth, "Incorrect payment."); _buy(_msgSender(), amount, v, r, s, timestamp); // being careful about reentrancy shenanigans holding.sendValue(msg.value); } // SETTERS function setToken(address tokenAddress) public onlyOwner { token = IERC721SafeMint(tokenAddress); } function setHoldingAddress(address payable holdingAddress) public onlyOwner { holding = holdingAddress; } function setAuthWallet(address authWallet) public onlyOwner { auth = authWallet; } function setPrices(uint256 silverPrice, uint256 goldPrice, uint256 ethPrice) public onlyOwner { priceSilver = silverPrice; priceGold = goldPrice; priceEth = ethPrice; } function setSilverPrice(uint256 price) public onlyOwner { priceSilver = price; } function setGoldPrice(uint256 price) public onlyOwner { priceGold = price; } function setEthPrice(uint256 price) public onlyOwner { priceEth = price; } function setWhitelistStatus(bool status) public onlyOwner { whitelistEnabled = status; } function setFreeMintStatus(bool status) public onlyOwner { freeMintingEnabled = status; } function setMaxPerAccount(uint256 max) public onlyOwner { maxPerAccount = max; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (access/Ownable.sol) pragma solidity ^0.8.0; import "Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (utils/Address.sol) pragma solidity ^0.8.0; /** * @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 * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 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); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.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 `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address sender, address recipient, uint256 amount ) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "IERC721.sol"; interface IERC721SafeMint is IERC721 { function safeMint(address to, uint256 id) external; function totalSupply() external view returns (uint256); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (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); }
{ "evmVersion": "istanbul", "optimizer": { "enabled": true, "runs": 200 }, "libraries": { "NFTVendor2.sol": {} }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"address","name":"silverAddress","type":"address"},{"internalType":"address","name":"goldAddress","type":"address"},{"internalType":"address payable","name":"holdingAddress","type":"address"},{"internalType":"address","name":"authWallet","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":"address","name":"user","type":"address"}],"name":"addFreeMinter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"users","type":"address[]"}],"name":"addFreeMinters","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"addToSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"auth","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"maxPerUser","type":"uint256"}],"name":"beginSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"},{"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"buyWithEth","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"},{"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"buyWithGold","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"},{"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"buyWithSilver","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"endSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"},{"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"freeMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"freeMinters","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"freeMintingEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"gold","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"holding","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxPerAccount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"priceEth","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"priceGold","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"priceSilver","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"purchased","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"saleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"saleEnd","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"authWallet","type":"address"}],"name":"setAuthWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"price","type":"uint256"}],"name":"setEthPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"status","type":"bool"}],"name":"setFreeMintStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"price","type":"uint256"}],"name":"setGoldPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"holdingAddress","type":"address"}],"name":"setHoldingAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"max","type":"uint256"}],"name":"setMaxPerAccount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"silverPrice","type":"uint256"},{"internalType":"uint256","name":"goldPrice","type":"uint256"},{"internalType":"uint256","name":"ethPrice","type":"uint256"}],"name":"setPrices","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"price","type":"uint256"}],"name":"setSilverPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"tokenAddress","type":"address"}],"name":"setToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"status","type":"bool"}],"name":"setWhitelistStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"silver","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"token","outputs":[{"internalType":"contract IERC721SafeMint","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"whitelistEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
6080604052633b9ac9ff600e553480156200001957600080fd5b506040516200195e3803806200195e8339810160408190526200003c9162000113565b6200004733620000aa565b600580546001600160a01b03199081166001600160a01b0397881617909155600180548216958716959095179094556002805485169386169390931790925560038054841691851691909117905560048054909216921691909117905562000193565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b03811681146200011057600080fd5b50565b600080600080600060a086880312156200012c57600080fd5b85516200013981620000fa565b60208701519095506200014c81620000fa565b60408701519094506200015f81620000fa565b60608701519093506200017281620000fa565b60808701519092506200018581620000fa565b809150509295509295909350565b6117bb80620001a36000396000f3fe6080604052600436106102195760003560e01c8063715018a611610123578063bf613202116100ab578063f2fde38b1161006f578063f2fde38b14610604578063f6a3f1fd14610624578063f8b0871214610644578063fbec6f2114610674578063fc0c546a1461069457600080fd5b8063bf61320214610578578063c10b93581461058e578063c6dc9fdc146105a4578063d9c0f6b6146105c4578063de9375f2146105e457600080fd5b80639ea27b69116100f25780639ea27b69146104ef578063a88fe42d14610505578063b3ae927814610525578063b8043b4014610545578063b9d6d1631461055857600080fd5b8063715018a61461048657806388d65e2f1461049b5780638da5cb5b146104b1578063964ae766146104cf57600080fd5b80633d89b133116101a65780634c1303ad116101755780634c1303ad146103e55780634f17689b1461040557806351fb012d14610425578063522fe98e1461043f57806368428a1b1461046c57600080fd5b80633d89b1331461035657806340b5aa2c1461037657806343dde639146103965780634a999118146103c557600080fd5b80632c3eb567116101ed5780632c3eb567146102bd5780632ca38363146102dd5780632d02a5b2146103015780633498858d14610321578063380d831b1461034157600080fd5b80629f92621461021e5780630314214c1461024057806313cabc7e1461027d578063144fa6d71461029d575b600080fd5b34801561022a57600080fd5b5061023e6102393660046114c9565b6106b4565b005b34801561024c57600080fd5b50600154610260906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b34801561028957600080fd5b5061023e6102983660046114c9565b6106ec565b3480156102a957600080fd5b5061023e6102b83660046114f7565b61071b565b3480156102c957600080fd5b5061023e6102d8366004611531565b610767565b3480156102e957600080fd5b506102f360075481565b604051908152602001610274565b34801561030d57600080fd5b5061023e61031c3660046114c9565b610876565b34801561032d57600080fd5b50600354610260906001600160a01b031681565b34801561034d57600080fd5b5061023e6108a5565b34801561036257600080fd5b5061023e610371366004611577565b6108db565b34801561038257600080fd5b5061023e6103913660046115ec565b61097c565b3480156103a257600080fd5b50600c546103b590610100900460ff1681565b6040519015158152602001610274565b3480156103d157600080fd5b5061023e6103e0366004611633565b610a70565b3480156103f157600080fd5b5061023e6104003660046114c9565b610aad565b34801561041157600080fd5b5061023e6104203660046114f7565b610adc565b34801561043157600080fd5b50600c546103b59060ff1681565b34801561044b57600080fd5b506102f361045a3660046114f7565b600f6020526000908152604090205481565b34801561047857600080fd5b50600a546103b59060ff1681565b34801561049257600080fd5b5061023e610b28565b3480156104a757600080fd5b506102f360085481565b3480156104bd57600080fd5b506000546001600160a01b0316610260565b3480156104db57600080fd5b5061023e6104ea366004611531565b610b5e565b3480156104fb57600080fd5b506102f360095481565b34801561051157600080fd5b5061023e610520366004611650565b610be7565b34801561053157600080fd5b5061023e6105403660046114c9565b610c1f565b61023e610553366004611531565b610c63565b34801561056457600080fd5b5061023e6105733660046114f7565b610d2b565b34801561058457600080fd5b506102f3600e5481565b34801561059a57600080fd5b506102f360065481565b3480156105b057600080fd5b5061023e6105bf36600461167c565b610d79565b3480156105d057600080fd5b5061023e6105df366004611633565b610e34565b3480156105f057600080fd5b50600454610260906001600160a01b031681565b34801561061057600080fd5b5061023e61061f3660046114f7565b610e78565b34801561063057600080fd5b5061023e61063f3660046114f7565b610f13565b34801561065057600080fd5b506103b561065f3660046114f7565b600d6020526000908152604090205460ff1681565b34801561068057600080fd5b50600254610260906001600160a01b031681565b3480156106a057600080fd5b50600554610260906001600160a01b031681565b6000546001600160a01b031633146106e75760405162461bcd60e51b81526004016106de9061169e565b60405180910390fd5b600755565b6000546001600160a01b031633146107165760405162461bcd60e51b81526004016106de9061169e565b600855565b6000546001600160a01b031633146107455760405162461bcd60e51b81526004016106de9061169e565b600580546001600160a01b0319166001600160a01b0392909216919091179055565b6008546000036107b95760405162461bcd60e51b815260206004820152601e60248201527f507572636861736520776974682073696c7665722064697361626c65642e000060448201526064016106de565b6107c8335b8686868686610f5f565b6001546001600160a01b03166323b872dd336003546008546001600160a01b03909116906107f6908a6116e9565b6040516001600160e01b031960e086901b1681526001600160a01b03938416600482015292909116602483015260448201526064016020604051808303816000875af115801561084a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061086e9190611708565b505050505050565b6000546001600160a01b031633146108a05760405162461bcd60e51b81526004016106de9061169e565b600955565b6000546001600160a01b031633146108cf5760405162461bcd60e51b81526004016106de9061169e565b600a805460ff19169055565b6000546001600160a01b031633146109055760405162461bcd60e51b81526004016106de9061169e565b60005b81811015610977576001600d600085858581811061092857610928611725565b905060200201602081019061093d91906114f7565b6001600160a01b031681526020810191909152604001600020805460ff19169115159190911790558061096f8161173b565b915050610908565b505050565b600c54610100900460ff166109d35760405162461bcd60e51b815260206004820152601c60248201527f46726565206d696e74696e67206973206e6f7420656e61626c65642e0000000060448201526064016106de565b336000908152600d602052604090205460ff16610a445760405162461bcd60e51b815260206004820152602960248201527f4e6f2066726565206d696e747320617661696c61626c6520666f7220746869736044820152681030b2323932b9b99760b91b60648201526084016106de565b610a5333600186868686610f5f565b5050336000908152600d60205260409020805460ff191690555050565b6000546001600160a01b03163314610a9a5760405162461bcd60e51b81526004016106de9061169e565b600c805460ff1916911515919091179055565b6000546001600160a01b03163314610ad75760405162461bcd60e51b81526004016106de9061169e565b600e55565b6000546001600160a01b03163314610b065760405162461bcd60e51b81526004016106de9061169e565b600480546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b03163314610b525760405162461bcd60e51b81526004016106de9061169e565b610b5c6000611360565b565b600954600003610bb05760405162461bcd60e51b815260206004820152601c60248201527f5075726368617365207769746820676f6c642064697361626c65642e0000000060448201526064016106de565b610bb9336107be565b6002546001600160a01b03166323b872dd336003546009546001600160a01b03909116906107f6908a6116e9565b6000546001600160a01b03163314610c115760405162461bcd60e51b81526004016106de9061169e565b600892909255600955600755565b6000546001600160a01b03163314610c495760405162461bcd60e51b81526004016106de9061169e565b8060066000828254610c5b9190611754565b909155505050565b600754600003610cb55760405162461bcd60e51b815260206004820152601b60248201527f50757263686173652077697468206574682064697361626c65642e000000000060448201526064016106de565b600754610cc290866116e9565b3414610d055760405162461bcd60e51b815260206004820152601260248201527124b731b7b93932b1ba103830bcb6b2b73a1760711b60448201526064016106de565b610d0e336107be565b600354610d24906001600160a01b0316346113b0565b5050505050565b6000546001600160a01b03163314610d555760405162461bcd60e51b81526004016106de9061169e565b6001600160a01b03166000908152600d60205260409020805460ff19166001179055565b6000546001600160a01b03163314610da35760405162461bcd60e51b81526004016106de9061169e565b600a805460ff19166001179055600554604080516318160ddd60e01b8152905184926001600160a01b0316916318160ddd9160048083019260209291908290030181865afa158015610df9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e1d919061176c565b610e279190611754565b600655600e555042600b55565b6000546001600160a01b03163314610e5e5760405162461bcd60e51b81526004016106de9061169e565b600c80549115156101000261ff0019909216919091179055565b6000546001600160a01b03163314610ea25760405162461bcd60e51b81526004016106de9061169e565b6001600160a01b038116610f075760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016106de565b610f1081611360565b50565b6000546001600160a01b03163314610f3d5760405162461bcd60e51b81526004016106de9061169e565b600380546001600160a01b0319166001600160a01b0392909216919091179055565b600a5460ff16610fb15760405162461bcd60e51b815260206004820152601960248201527f4e6f2073616c652063757272656e746c79206163746976652e0000000000000060448201526064016106de565b600654600554604080516318160ddd60e01b8152905188926001600160a01b0316916318160ddd9160048083019260209291908290030181865afa158015610ffd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611021919061176c565b61102b9190611754565b11156110885760405162461bcd60e51b815260206004820152602660248201527f4e6f7420656e6f756768204e46547320617661696c61626c6520746f2070757260448201526531b430b9b29760d11b60648201526084016106de565b600c5460ff16156111ee5761109f81610258611754565b42106110e15760405162461bcd60e51b815260206004820152601160248201527014da59db985d1d5c9948195e1c1a5c9959607a1b60448201526064016106de565b60408051606060208201819052600e60808301526d4e465456656e646f72325f62757960901b60a0830152339282019290925290810182905260009060c00160408051601f198184030181528282528051602091820120600080855291840180845281905260ff89169284019290925260608301879052608083018690529092509060019060a0016020604051602081039080840390855afa15801561118b573d6000803e3d6000fd5b5050604051601f1901516004549092506001600160a01b0380841691161490506111eb5760405162461bcd60e51b8152602060048201526011602482015270496e76616c6964207369676e617475726560781b60448201526064016106de565b50505b600b546001600160a01b03871660009081526010602052604090205486919003611238576001600160a01b0387166000908152600f60205260409020546112359082611754565b90505b600e548111156112995760405162461bcd60e51b815260206004820152602660248201527f4f76657272756e6e696e67206d6178207075726368617365732070657220616360448201526531b7bab73a1760d11b60648201526084016106de565b6001600160a01b0387166000908152600f60209081526040808320849055600b54601090925290912054146112e557600b546001600160a01b0388166000908152601060205260409020555b6005546001600160a01b031663a1448194336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260248101899052604401600060405180830381600087803b15801561133f57600080fd5b505af1158015611353573d6000803e3d6000fd5b5050505050505050505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b804710156114005760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e636500000060448201526064016106de565b6000826001600160a01b03168260405160006040518083038185875af1925050503d806000811461144d576040519150601f19603f3d011682016040523d82523d6000602084013e611452565b606091505b50509050806109775760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d6179206861766520726576657274656400000000000060648201526084016106de565b6000602082840312156114db57600080fd5b5035919050565b6001600160a01b0381168114610f1057600080fd5b60006020828403121561150957600080fd5b8135611514816114e2565b9392505050565b803560ff8116811461152c57600080fd5b919050565b600080600080600060a0868803121561154957600080fd5b853594506115596020870161151b565b94979496505050506040830135926060810135926080909101359150565b6000806020838503121561158a57600080fd5b823567ffffffffffffffff808211156115a257600080fd5b818501915085601f8301126115b657600080fd5b8135818111156115c557600080fd5b8660208260051b85010111156115da57600080fd5b60209290920196919550909350505050565b6000806000806080858703121561160257600080fd5b61160b8561151b565b966020860135965060408601359560600135945092505050565b8015158114610f1057600080fd5b60006020828403121561164557600080fd5b813561151481611625565b60008060006060848603121561166557600080fd5b505081359360208301359350604090920135919050565b6000806040838503121561168f57600080fd5b50508035926020909101359150565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052601160045260246000fd5b6000816000190483118215151615611703576117036116d3565b500290565b60006020828403121561171a57600080fd5b815161151481611625565b634e487b7160e01b600052603260045260246000fd5b60006001820161174d5761174d6116d3565b5060010190565b60008219821115611767576117676116d3565b500190565b60006020828403121561177e57600080fd5b505191905056fea2646970667358221220ab830f16e1ae5b5b955dac42f41c9ccbe0b6d045d99c316179ca4b5d2dd4312964736f6c634300080d00330000000000000000000000006af385f45b2f00c49f78f3829d69fbc197d4faee00000000000000000000000059f45dbab3d265082993eda387f496fee97fda4b000000000000000000000000a970b99ba54ecc8abf284d1249607676c91868eb000000000000000000000000451998d6b44fe650c801225ed3a13b1a430c1901000000000000000000000000d8fc0ddf2fa655936a6058ff8bbf71d6828e8057
Deployed Bytecode
0x6080604052600436106102195760003560e01c8063715018a611610123578063bf613202116100ab578063f2fde38b1161006f578063f2fde38b14610604578063f6a3f1fd14610624578063f8b0871214610644578063fbec6f2114610674578063fc0c546a1461069457600080fd5b8063bf61320214610578578063c10b93581461058e578063c6dc9fdc146105a4578063d9c0f6b6146105c4578063de9375f2146105e457600080fd5b80639ea27b69116100f25780639ea27b69146104ef578063a88fe42d14610505578063b3ae927814610525578063b8043b4014610545578063b9d6d1631461055857600080fd5b8063715018a61461048657806388d65e2f1461049b5780638da5cb5b146104b1578063964ae766146104cf57600080fd5b80633d89b133116101a65780634c1303ad116101755780634c1303ad146103e55780634f17689b1461040557806351fb012d14610425578063522fe98e1461043f57806368428a1b1461046c57600080fd5b80633d89b1331461035657806340b5aa2c1461037657806343dde639146103965780634a999118146103c557600080fd5b80632c3eb567116101ed5780632c3eb567146102bd5780632ca38363146102dd5780632d02a5b2146103015780633498858d14610321578063380d831b1461034157600080fd5b80629f92621461021e5780630314214c1461024057806313cabc7e1461027d578063144fa6d71461029d575b600080fd5b34801561022a57600080fd5b5061023e6102393660046114c9565b6106b4565b005b34801561024c57600080fd5b50600154610260906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b34801561028957600080fd5b5061023e6102983660046114c9565b6106ec565b3480156102a957600080fd5b5061023e6102b83660046114f7565b61071b565b3480156102c957600080fd5b5061023e6102d8366004611531565b610767565b3480156102e957600080fd5b506102f360075481565b604051908152602001610274565b34801561030d57600080fd5b5061023e61031c3660046114c9565b610876565b34801561032d57600080fd5b50600354610260906001600160a01b031681565b34801561034d57600080fd5b5061023e6108a5565b34801561036257600080fd5b5061023e610371366004611577565b6108db565b34801561038257600080fd5b5061023e6103913660046115ec565b61097c565b3480156103a257600080fd5b50600c546103b590610100900460ff1681565b6040519015158152602001610274565b3480156103d157600080fd5b5061023e6103e0366004611633565b610a70565b3480156103f157600080fd5b5061023e6104003660046114c9565b610aad565b34801561041157600080fd5b5061023e6104203660046114f7565b610adc565b34801561043157600080fd5b50600c546103b59060ff1681565b34801561044b57600080fd5b506102f361045a3660046114f7565b600f6020526000908152604090205481565b34801561047857600080fd5b50600a546103b59060ff1681565b34801561049257600080fd5b5061023e610b28565b3480156104a757600080fd5b506102f360085481565b3480156104bd57600080fd5b506000546001600160a01b0316610260565b3480156104db57600080fd5b5061023e6104ea366004611531565b610b5e565b3480156104fb57600080fd5b506102f360095481565b34801561051157600080fd5b5061023e610520366004611650565b610be7565b34801561053157600080fd5b5061023e6105403660046114c9565b610c1f565b61023e610553366004611531565b610c63565b34801561056457600080fd5b5061023e6105733660046114f7565b610d2b565b34801561058457600080fd5b506102f3600e5481565b34801561059a57600080fd5b506102f360065481565b3480156105b057600080fd5b5061023e6105bf36600461167c565b610d79565b3480156105d057600080fd5b5061023e6105df366004611633565b610e34565b3480156105f057600080fd5b50600454610260906001600160a01b031681565b34801561061057600080fd5b5061023e61061f3660046114f7565b610e78565b34801561063057600080fd5b5061023e61063f3660046114f7565b610f13565b34801561065057600080fd5b506103b561065f3660046114f7565b600d6020526000908152604090205460ff1681565b34801561068057600080fd5b50600254610260906001600160a01b031681565b3480156106a057600080fd5b50600554610260906001600160a01b031681565b6000546001600160a01b031633146106e75760405162461bcd60e51b81526004016106de9061169e565b60405180910390fd5b600755565b6000546001600160a01b031633146107165760405162461bcd60e51b81526004016106de9061169e565b600855565b6000546001600160a01b031633146107455760405162461bcd60e51b81526004016106de9061169e565b600580546001600160a01b0319166001600160a01b0392909216919091179055565b6008546000036107b95760405162461bcd60e51b815260206004820152601e60248201527f507572636861736520776974682073696c7665722064697361626c65642e000060448201526064016106de565b6107c8335b8686868686610f5f565b6001546001600160a01b03166323b872dd336003546008546001600160a01b03909116906107f6908a6116e9565b6040516001600160e01b031960e086901b1681526001600160a01b03938416600482015292909116602483015260448201526064016020604051808303816000875af115801561084a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061086e9190611708565b505050505050565b6000546001600160a01b031633146108a05760405162461bcd60e51b81526004016106de9061169e565b600955565b6000546001600160a01b031633146108cf5760405162461bcd60e51b81526004016106de9061169e565b600a805460ff19169055565b6000546001600160a01b031633146109055760405162461bcd60e51b81526004016106de9061169e565b60005b81811015610977576001600d600085858581811061092857610928611725565b905060200201602081019061093d91906114f7565b6001600160a01b031681526020810191909152604001600020805460ff19169115159190911790558061096f8161173b565b915050610908565b505050565b600c54610100900460ff166109d35760405162461bcd60e51b815260206004820152601c60248201527f46726565206d696e74696e67206973206e6f7420656e61626c65642e0000000060448201526064016106de565b336000908152600d602052604090205460ff16610a445760405162461bcd60e51b815260206004820152602960248201527f4e6f2066726565206d696e747320617661696c61626c6520666f7220746869736044820152681030b2323932b9b99760b91b60648201526084016106de565b610a5333600186868686610f5f565b5050336000908152600d60205260409020805460ff191690555050565b6000546001600160a01b03163314610a9a5760405162461bcd60e51b81526004016106de9061169e565b600c805460ff1916911515919091179055565b6000546001600160a01b03163314610ad75760405162461bcd60e51b81526004016106de9061169e565b600e55565b6000546001600160a01b03163314610b065760405162461bcd60e51b81526004016106de9061169e565b600480546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b03163314610b525760405162461bcd60e51b81526004016106de9061169e565b610b5c6000611360565b565b600954600003610bb05760405162461bcd60e51b815260206004820152601c60248201527f5075726368617365207769746820676f6c642064697361626c65642e0000000060448201526064016106de565b610bb9336107be565b6002546001600160a01b03166323b872dd336003546009546001600160a01b03909116906107f6908a6116e9565b6000546001600160a01b03163314610c115760405162461bcd60e51b81526004016106de9061169e565b600892909255600955600755565b6000546001600160a01b03163314610c495760405162461bcd60e51b81526004016106de9061169e565b8060066000828254610c5b9190611754565b909155505050565b600754600003610cb55760405162461bcd60e51b815260206004820152601b60248201527f50757263686173652077697468206574682064697361626c65642e000000000060448201526064016106de565b600754610cc290866116e9565b3414610d055760405162461bcd60e51b815260206004820152601260248201527124b731b7b93932b1ba103830bcb6b2b73a1760711b60448201526064016106de565b610d0e336107be565b600354610d24906001600160a01b0316346113b0565b5050505050565b6000546001600160a01b03163314610d555760405162461bcd60e51b81526004016106de9061169e565b6001600160a01b03166000908152600d60205260409020805460ff19166001179055565b6000546001600160a01b03163314610da35760405162461bcd60e51b81526004016106de9061169e565b600a805460ff19166001179055600554604080516318160ddd60e01b8152905184926001600160a01b0316916318160ddd9160048083019260209291908290030181865afa158015610df9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e1d919061176c565b610e279190611754565b600655600e555042600b55565b6000546001600160a01b03163314610e5e5760405162461bcd60e51b81526004016106de9061169e565b600c80549115156101000261ff0019909216919091179055565b6000546001600160a01b03163314610ea25760405162461bcd60e51b81526004016106de9061169e565b6001600160a01b038116610f075760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016106de565b610f1081611360565b50565b6000546001600160a01b03163314610f3d5760405162461bcd60e51b81526004016106de9061169e565b600380546001600160a01b0319166001600160a01b0392909216919091179055565b600a5460ff16610fb15760405162461bcd60e51b815260206004820152601960248201527f4e6f2073616c652063757272656e746c79206163746976652e0000000000000060448201526064016106de565b600654600554604080516318160ddd60e01b8152905188926001600160a01b0316916318160ddd9160048083019260209291908290030181865afa158015610ffd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611021919061176c565b61102b9190611754565b11156110885760405162461bcd60e51b815260206004820152602660248201527f4e6f7420656e6f756768204e46547320617661696c61626c6520746f2070757260448201526531b430b9b29760d11b60648201526084016106de565b600c5460ff16156111ee5761109f81610258611754565b42106110e15760405162461bcd60e51b815260206004820152601160248201527014da59db985d1d5c9948195e1c1a5c9959607a1b60448201526064016106de565b60408051606060208201819052600e60808301526d4e465456656e646f72325f62757960901b60a0830152339282019290925290810182905260009060c00160408051601f198184030181528282528051602091820120600080855291840180845281905260ff89169284019290925260608301879052608083018690529092509060019060a0016020604051602081039080840390855afa15801561118b573d6000803e3d6000fd5b5050604051601f1901516004549092506001600160a01b0380841691161490506111eb5760405162461bcd60e51b8152602060048201526011602482015270496e76616c6964207369676e617475726560781b60448201526064016106de565b50505b600b546001600160a01b03871660009081526010602052604090205486919003611238576001600160a01b0387166000908152600f60205260409020546112359082611754565b90505b600e548111156112995760405162461bcd60e51b815260206004820152602660248201527f4f76657272756e6e696e67206d6178207075726368617365732070657220616360448201526531b7bab73a1760d11b60648201526084016106de565b6001600160a01b0387166000908152600f60209081526040808320849055600b54601090925290912054146112e557600b546001600160a01b0388166000908152601060205260409020555b6005546001600160a01b031663a1448194336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260248101899052604401600060405180830381600087803b15801561133f57600080fd5b505af1158015611353573d6000803e3d6000fd5b5050505050505050505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b804710156114005760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e636500000060448201526064016106de565b6000826001600160a01b03168260405160006040518083038185875af1925050503d806000811461144d576040519150601f19603f3d011682016040523d82523d6000602084013e611452565b606091505b50509050806109775760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d6179206861766520726576657274656400000000000060648201526084016106de565b6000602082840312156114db57600080fd5b5035919050565b6001600160a01b0381168114610f1057600080fd5b60006020828403121561150957600080fd5b8135611514816114e2565b9392505050565b803560ff8116811461152c57600080fd5b919050565b600080600080600060a0868803121561154957600080fd5b853594506115596020870161151b565b94979496505050506040830135926060810135926080909101359150565b6000806020838503121561158a57600080fd5b823567ffffffffffffffff808211156115a257600080fd5b818501915085601f8301126115b657600080fd5b8135818111156115c557600080fd5b8660208260051b85010111156115da57600080fd5b60209290920196919550909350505050565b6000806000806080858703121561160257600080fd5b61160b8561151b565b966020860135965060408601359560600135945092505050565b8015158114610f1057600080fd5b60006020828403121561164557600080fd5b813561151481611625565b60008060006060848603121561166557600080fd5b505081359360208301359350604090920135919050565b6000806040838503121561168f57600080fd5b50508035926020909101359150565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052601160045260246000fd5b6000816000190483118215151615611703576117036116d3565b500290565b60006020828403121561171a57600080fd5b815161151481611625565b634e487b7160e01b600052603260045260246000fd5b60006001820161174d5761174d6116d3565b5060010190565b60008219821115611767576117676116d3565b500190565b60006020828403121561177e57600080fd5b505191905056fea2646970667358221220ab830f16e1ae5b5b955dac42f41c9ccbe0b6d045d99c316179ca4b5d2dd4312964736f6c634300080d0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000006af385f45b2f00c49f78f3829d69fbc197d4faee00000000000000000000000059f45dbab3d265082993eda387f496fee97fda4b000000000000000000000000a970b99ba54ecc8abf284d1249607676c91868eb000000000000000000000000451998d6b44fe650c801225ed3a13b1a430c1901000000000000000000000000d8fc0ddf2fa655936a6058ff8bbf71d6828e8057
-----Decoded View---------------
Arg [0] : tokenAddress (address): 0x6AF385f45b2F00C49F78F3829d69Fbc197D4FaeE
Arg [1] : silverAddress (address): 0x59F45DbaB3d265082993EdA387F496fEe97fda4B
Arg [2] : goldAddress (address): 0xA970B99bA54eCc8AbF284D1249607676c91868Eb
Arg [3] : holdingAddress (address): 0x451998d6b44fE650c801225ed3a13b1a430c1901
Arg [4] : authWallet (address): 0xD8fC0DDF2fa655936A6058Ff8bBf71d6828e8057
-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 0000000000000000000000006af385f45b2f00c49f78f3829d69fbc197d4faee
Arg [1] : 00000000000000000000000059f45dbab3d265082993eda387f496fee97fda4b
Arg [2] : 000000000000000000000000a970b99ba54ecc8abf284d1249607676c91868eb
Arg [3] : 000000000000000000000000451998d6b44fe650c801225ed3a13b1a430c1901
Arg [4] : 000000000000000000000000d8fc0ddf2fa655936a6058ff8bbf71d6828e8057
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 26 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
[ 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.