Feature Tip: Add private address tag to any address under My Name Tag !
Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 24 from a total of 24 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Buy In ETH | 20074237 | 239 days ago | IN | 0.08 ETH | 0.00087295 | ||||
Buy In ETH | 20012212 | 248 days ago | IN | 0.08 ETH | 0.00208317 | ||||
Buy In ETH | 19889749 | 265 days ago | IN | 0.08 ETH | 0.00104393 | ||||
Buy In ETH | 19744725 | 285 days ago | IN | 0.08 ETH | 0.00064128 | ||||
Buy In ETH | 19703371 | 291 days ago | IN | 0.064 ETH | 0.00102933 | ||||
Buy In ETH | 19620235 | 302 days ago | IN | 0.08 ETH | 0.00268643 | ||||
Buy In ETH | 19559769 | 311 days ago | IN | 0 ETH | 0.00188943 | ||||
Buy In ETH | 19559652 | 311 days ago | IN | 0 ETH | 0.00176639 | ||||
Buy In ETH | 19554969 | 312 days ago | IN | 0 ETH | 0.00245618 | ||||
Buy In ETH | 19546952 | 313 days ago | IN | 0 ETH | 0.00244175 | ||||
Buy In ETH | 19546460 | 313 days ago | IN | 0 ETH | 0.00184118 | ||||
Buy In ETH | 19545676 | 313 days ago | IN | 0 ETH | 0.00155785 | ||||
Buy In ETH | 19539958 | 314 days ago | IN | 0 ETH | 0.00308886 | ||||
Buy In ETH | 19539590 | 314 days ago | IN | 0 ETH | 0.00184582 | ||||
Buy In ETH | 19536178 | 314 days ago | IN | 0 ETH | 0.00275098 | ||||
Buy In ETH | 19532533 | 315 days ago | IN | 0 ETH | 0.00336154 | ||||
Buy In ETH | 19531036 | 315 days ago | IN | 0 ETH | 0.00210248 | ||||
Buy In ETH | 19527630 | 315 days ago | IN | 0 ETH | 0.00357898 | ||||
Buy In ETH | 19526103 | 316 days ago | IN | 0 ETH | 0.00460491 | ||||
Buy In ETH | 19524554 | 316 days ago | IN | 0.08 ETH | 0.00306911 | ||||
Transfer Ownersh... | 19515386 | 317 days ago | IN | 0 ETH | 0.0005252 | ||||
Buy In ETH | 19514891 | 317 days ago | IN | 0 ETH | 0.00216857 | ||||
Add VIP Batch | 19514741 | 317 days ago | IN | 0 ETH | 0.01567516 | ||||
Add NFT Contract... | 19514738 | 317 days ago | IN | 0 ETH | 0.00491005 |
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
NFTFestEntriesShopV2
Compiler Version
v0.8.20+commit.a1b79de6
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity 0.8.20; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; interface INFT { function safeMint( address ) external returns (uint256 tokenId); function balanceOf(address) external returns (uint256); function supplyLeft() external returns (uint256); } interface IERC1155 { function balanceOf(address owner) external view returns (uint256); } interface WarmInterface { function balanceOf(address contractAddress, address owner) external view returns (uint256); function balanceOf(address contractAddress, address owner, uint256 tokenId) external view returns (uint256); } contract NFTFestEntriesShopV2 is Ownable { INFT public nft; address public fundsRecipient; uint256 public ethPrice = 8*10**16; // set to 14 instead of 16 for testnet uint256 public VIPStartTime = 1711408392; uint256 public VIPDuration = 7 * 24 * 60 * 60; mapping(address => bool) public whiteListedNFT; mapping(address => bool) public mintedAsVIP; mapping(address => bool) public VIPWhiteListed; address public warmContractAddress; event BuyEntry(uint256 _id, address _to, uint256 value); constructor( INFT _nftAddress, address _fundsRecipient, address _warmContractAddress ) { nft = _nftAddress; fundsRecipient = _fundsRecipient; warmContractAddress = _warmContractAddress; } /** * @dev Buy NFT with ETH with a 0.8% slippage * @param _amount quantity to mint */ function buyInETH( uint256 _amount, address _partnerNftContract, int256 _erc1155NftId ) public payable { require(block.timestamp > VIPStartTime, "mint is not open"); if (msg.value == 0 ){ require(VIPWhiteListed[msg.sender], "not allowed"); require(_amount == 1, "only one nft allowed"); require(VIPPeriodOpen(), "VIP period is over"); VIPWhiteListed[msg.sender] = false; } else { if(_partnerNftContract != address(0)){ require(whiteListedNFT[_partnerNftContract], "not address of a partner"); _verifyOwnership(_partnerNftContract,_erc1155NftId); require(msg.value == _amount * ethPrice * 8 / 10, "bad amount sent"); } else { require(msg.value == _amount * ethPrice, "bad amount sent"); } // The value is immediately transferred to the funds recipient (bool sent,) = payable(fundsRecipient).call{value : msg.value}(""); require(sent, "Failed to send Ether"); } for (uint256 i; i < _amount; i++) { uint256 tokenId = _mint(msg.sender); emit BuyEntry(tokenId, msg.sender, msg.value / _amount); } } /** * @dev Mint a specific amount of a given token * @param _to Address that will receive the token */ function _mint( address _to ) internal returns (uint256) { return nft.safeMint(_to); } /** * @dev Set the price in wei * @param _price New price in wei */ function setPrice(uint256 _price) external onlyOwner { ethPrice = _price; } function addNFTContract(address _address) external onlyOwner { require(!whiteListedNFT[_address]); whiteListedNFT[_address] = true; } function removeNFTContract(address _address) external onlyOwner { require(whiteListedNFT[_address]); whiteListedNFT[_address] = false; } function addNFTContractBatch(address[] memory _addresses) external onlyOwner { for (uint256 i; i < _addresses.length; i ++) { whiteListedNFT[_addresses[i]] = true; } } function removeNFTContractBatch(address[] memory _addresses) external onlyOwner { for (uint256 i; i < _addresses.length; i ++) { whiteListedNFT[_addresses[i]] = false; } } function addVIP(address _address) external onlyOwner { require(!VIPWhiteListed[_address]); VIPWhiteListed[_address] = true; } function removeVIP(address _address) external onlyOwner { require(VIPWhiteListed[_address]); VIPWhiteListed[_address] = false; } function addVIPBatch(address[] memory _addresses) external onlyOwner { for (uint256 i; i < _addresses.length; i ++) { VIPWhiteListed[_addresses[i]] = true; } } function removeVIPBatch(address[] memory _addresses) external onlyOwner { for (uint256 i; i < _addresses.length; i ++) { VIPWhiteListed[_addresses[i]] = false; } } function setStartTime(uint256 _startTime) external onlyOwner { VIPStartTime = _startTime; } function setVipDuration(uint256 _duration) external onlyOwner { VIPDuration = _duration; } function isVIP(address _address) public view returns(bool){ return VIPWhiteListed[_address]; } function VIPPeriodOpen() public view returns(bool){ return block.timestamp < VIPStartTime + VIPDuration; } function _verifyOwnership(address _partnerNftContract, int256 _erc1155NftId) internal view { WarmInterface warmInstance = WarmInterface(warmContractAddress); if(_erc1155NftId >0) { require(warmInstance.balanceOf(_partnerNftContract,msg.sender, uint256(_erc1155NftId)) > 0, "not owner of this nft partner"); } else { require(warmInstance.balanceOf(_partnerNftContract, msg.sender) > 0, "not owner of this nft partner"); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby disabling 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 (last updated v4.9.0) (token/ERC20/extensions/IERC20Permit.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612]. * * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't * need to send a transaction, and thus is not required to hold Ether at all. */ interface IERC20Permit { /** * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens, * given ``owner``'s signed approval. * * IMPORTANT: The same issues {IERC20-approve} has related to transaction * ordering also apply here. * * Emits an {Approval} event. * * Requirements: * * - `spender` cannot be the zero address. * - `deadline` must be a timestamp in the future. * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner` * over the EIP712-formatted function arguments. * - the signature must use ``owner``'s current nonce (see {nonces}). * * For more information on the signature format, see the * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP * section]. */ function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) external; /** * @dev Returns the current nonce for `owner`. This value must be * included whenever a signature is generated for {permit}. * * Every successful call to {permit} increases ``owner``'s nonce by one. This * prevents a signature from being used multiple times. */ function nonces(address owner) external view returns (uint256); /** * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}. */ // solhint-disable-next-line func-name-mixedcase function DOMAIN_SEPARATOR() external view returns (bytes32); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address from, address to, uint256 amount) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; import "../extensions/IERC20Permit.sol"; import "../../../utils/Address.sol"; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using Address for address; /** * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value, * non-reverting calls are assumed to be successful. */ function safeTransfer(IERC20 token, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } /** * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful. */ function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove(IERC20 token, address spender, uint256 value) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' require( (value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } /** * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value, * non-reverting calls are assumed to be successful. */ function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 oldAllowance = token.allowance(address(this), spender); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance + value)); } /** * @dev Decrease the calling contract's allowance toward `spender` by `value`. If `token` returns no value, * non-reverting calls are assumed to be successful. */ function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require(oldAllowance >= value, "SafeERC20: decreased allowance below zero"); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance - value)); } } /** * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value, * non-reverting calls are assumed to be successful. Compatible with tokens that require the approval to be set to * 0 before setting it to a non-zero value. */ function forceApprove(IERC20 token, address spender, uint256 value) internal { bytes memory approvalCall = abi.encodeWithSelector(token.approve.selector, spender, value); if (!_callOptionalReturnBool(token, approvalCall)) { _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, 0)); _callOptionalReturn(token, approvalCall); } } /** * @dev Use a ERC-2612 signature to set the `owner` approval toward `spender` on `token`. * Revert on invalid signature. */ function safePermit( IERC20Permit token, address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) internal { uint256 nonceBefore = token.nonces(owner); token.permit(owner, spender, value, deadline, v, r, s); uint256 nonceAfter = token.nonces(owner); require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed"); } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address-functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); require(returndata.length == 0 || abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). * * This is a variant of {_callOptionalReturn} that silents catches all reverts and returns a bool instead. */ function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We cannot use {Address-functionCall} here since this should return false // and not revert is the subcall reverts. (bool success, bytes memory returndata) = address(token).call(data); return success && (returndata.length == 0 || abi.decode(returndata, (bool))) && Address.isContract(address(token)); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.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 * * Furthermore, `isContract` will also return true if the target contract within * the same transaction is already scheduled for destruction by `SELFDESTRUCT`, * which only has an effect at the end of a transaction. * ==== * * [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://consensys.net/diligence/blog/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.8.0/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 functionCallWithValue(target, data, 0, "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"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, 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) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, 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) { (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract. * * _Available since v4.8._ */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata, string memory errorMessage ) internal view returns (bytes memory) { if (success) { if (returndata.length == 0) { // only check isContract if the call was successful and the return data is empty // otherwise we already know that it was a contract require(isContract(target), "Address: call to non-contract"); } return returndata; } else { _revert(returndata, errorMessage); } } /** * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason or 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 { _revert(returndata, errorMessage); } } function _revert(bytes memory returndata, string memory errorMessage) private pure { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"contract INFT","name":"_nftAddress","type":"address"},{"internalType":"address","name":"_fundsRecipient","type":"address"},{"internalType":"address","name":"_warmContractAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_id","type":"uint256"},{"indexed":false,"internalType":"address","name":"_to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"BuyEntry","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[],"name":"VIPDuration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"VIPPeriodOpen","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"VIPStartTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"VIPWhiteListed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"addNFTContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_addresses","type":"address[]"}],"name":"addNFTContractBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"addVIP","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_addresses","type":"address[]"}],"name":"addVIPBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"address","name":"_partnerNftContract","type":"address"},{"internalType":"int256","name":"_erc1155NftId","type":"int256"}],"name":"buyInETH","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"ethPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"fundsRecipient","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"isVIP","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"mintedAsVIP","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nft","outputs":[{"internalType":"contract INFT","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"removeNFTContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_addresses","type":"address[]"}],"name":"removeNFTContractBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"removeVIP","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_addresses","type":"address[]"}],"name":"removeVIPBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_startTime","type":"uint256"}],"name":"setStartTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_duration","type":"uint256"}],"name":"setVipDuration","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"warmContractAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"whiteListedNFT","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
608060405267011c37937e080000600355636602050860045562093a806005553480156200002b575f80fd5b506040516200235a3803806200235a8339818101604052810190620000519190620002a9565b62000071620000656200013a60201b60201c565b6200014160201b60201c565b8260015f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508160025f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508060095f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050505062000302565b5f33905090565b5f805f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050815f806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f620002318262000206565b9050919050565b5f620002448262000225565b9050919050565b620002568162000238565b811462000261575f80fd5b50565b5f8151905062000274816200024b565b92915050565b620002858162000225565b811462000290575f80fd5b50565b5f81519050620002a3816200027a565b92915050565b5f805f60608486031215620002c357620002c262000202565b5b5f620002d28682870162000264565b9350506020620002e58682870162000293565b9250506040620002f88682870162000293565b9150509250925092565b61204a80620003105f395ff3fe608060405260043610610180575f3560e01c80638da5cb5b116100d0578063d5752a6211610089578063f4201c3c11610063578063f4201c3c1461051c578063f61d5f2914610558578063fc3aad1f14610582578063ff186b2e146105ac57610180565b8063d5752a62146104a4578063f21f7674146104cc578063f2fde38b146104f457610180565b80638da5cb5b1461039e57806391b7f5ed146103c85780639692065d146103f0578063aef9a92e14610418578063b925d90c14610454578063cfac5d7c1461047c57610180565b80633e0a322d1161013d5780635d7ff836116101175780635d7ff836146102e85780635da5f31e14610310578063715018a61461034c57806376ed72761461036257610180565b80633e0a322d1461026e57806347ccca02146102965780634f7d4951146102c057610180565b8063095dc5cf1461018457806325480627146101ac57806327726f52146101d65780632fe0de54146101f2578063385bfbb41461021c5780633b6fd2cf14610244575b5f80fd5b34801561018f575f80fd5b506101aa60048036038101906101a591906115b1565b6105d6565b005b3480156101b7575f80fd5b506101c0610687565b6040516101cd91906115f4565b60405180910390f35b6101f060048036038101906101eb919061166a565b61068d565b005b3480156101fd575f80fd5b50610206610b07565b60405161021391906115f4565b60405180910390f35b348015610227575f80fd5b50610242600480360381019061023d91906115b1565b610b0d565b005b34801561024f575f80fd5b50610258610bbe565b60405161026591906116c9565b60405180910390f35b348015610279575f80fd5b50610294600480360381019061028f91906116e2565b610be3565b005b3480156102a1575f80fd5b506102aa610bf5565b6040516102b79190611768565b60405180910390f35b3480156102cb575f80fd5b506102e660048036038101906102e191906115b1565b610c1a565b005b3480156102f3575f80fd5b5061030e600480360381019061030991906118d1565b610ccd565b005b34801561031b575f80fd5b50610336600480360381019061033191906115b1565b610d65565b6040516103439190611932565b60405180910390f35b348015610357575f80fd5b50610360610d82565b005b34801561036d575f80fd5b50610388600480360381019061038391906115b1565b610d95565b6040516103959190611932565b60405180910390f35b3480156103a9575f80fd5b506103b2610db2565b6040516103bf91906116c9565b60405180910390f35b3480156103d3575f80fd5b506103ee60048036038101906103e991906116e2565b610dd9565b005b3480156103fb575f80fd5b50610416600480360381019061041191906116e2565b610deb565b005b348015610423575f80fd5b5061043e600480360381019061043991906115b1565b610dfd565b60405161044b9190611932565b60405180910390f35b34801561045f575f80fd5b5061047a600480360381019061047591906118d1565b610e1a565b005b348015610487575f80fd5b506104a2600480360381019061049d91906115b1565b610eb2565b005b3480156104af575f80fd5b506104ca60048036038101906104c591906118d1565b610f65565b005b3480156104d7575f80fd5b506104f260048036038101906104ed91906118d1565b610ffe565b005b3480156104ff575f80fd5b5061051a600480360381019061051591906115b1565b611097565b005b348015610527575f80fd5b50610542600480360381019061053d91906115b1565b611119565b60405161054f9190611932565b60405180910390f35b348015610563575f80fd5b5061056c61116b565b60405161057991906116c9565b60405180910390f35b34801561058d575f80fd5b50610596611190565b6040516105a39190611932565b60405180910390f35b3480156105b7575f80fd5b506105c06111a8565b6040516105cd91906115f4565b60405180910390f35b6105de6111ae565b60085f8273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16610630575f80fd5b5f60085f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff02191690831515021790555050565b60055481565b60045442116106d1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106c8906119a5565b60405180910390fd5b5f34036108445760085f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16610761576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161075890611a0d565b60405180910390fd5b600183146107a4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161079b90611a75565b60405180910390fd5b6107ac611190565b6107eb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107e290611add565b60405180910390fd5b5f60085f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff021916908315150217905550610a91565b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16146109765760065f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16610900576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f790611b45565b60405180910390fd5b61090a828261122c565b600a60086003548561091c9190611b90565b6109269190611b90565b6109309190611bfe565b3414610971576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161096890611c78565b60405180910390fd5b6109c6565b600354836109849190611b90565b34146109c5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109bc90611c78565b60405180910390fd5b5b5f60025f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1634604051610a0c90611cc3565b5f6040518083038185875af1925050503d805f8114610a46576040519150601f19603f3d011682016040523d82523d5f602084013e610a4b565b606091505b5050905080610a8f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a8690611d21565b60405180910390fd5b505b5f5b83811015610b01575f610aa5336113dc565b90507fba1a6d04c020b29d709aabcdbdf65dcf51068d739b687a4dddc07e761ea53f4881338734610ad69190611bfe565b604051610ae593929190611d3f565b60405180910390a1508080610af990611d74565b915050610a93565b50505050565b60045481565b610b156111ae565b60065f8273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16610b67575f80fd5b5f60065f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff02191690831515021790555050565b60025f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b610beb6111ae565b8060048190555050565b60015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b610c226111ae565b60085f8273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff1615610c75575f80fd5b600160085f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff02191690831515021790555050565b610cd56111ae565b5f5b8151811015610d61575f60085f848481518110610cf757610cf6611dbb565b5b602002602001015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055508080610d5990611d74565b915050610cd7565b5050565b6007602052805f5260405f205f915054906101000a900460ff1681565b610d8a6111ae565b610d935f61147e565b565b6006602052805f5260405f205f915054906101000a900460ff1681565b5f805f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b610de16111ae565b8060038190555050565b610df36111ae565b8060058190555050565b6008602052805f5260405f205f915054906101000a900460ff1681565b610e226111ae565b5f5b8151811015610eae575f60065f848481518110610e4457610e43611dbb565b5b602002602001015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055508080610ea690611d74565b915050610e24565b5050565b610eba6111ae565b60065f8273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff1615610f0d575f80fd5b600160065f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff02191690831515021790555050565b610f6d6111ae565b5f5b8151811015610ffa57600160065f848481518110610f9057610f8f611dbb565b5b602002602001015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055508080610ff290611d74565b915050610f6f565b5050565b6110066111ae565b5f5b815181101561109357600160085f84848151811061102957611028611dbb565b5b602002602001015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff021916908315150217905550808061108b90611d74565b915050611008565b5050565b61109f6111ae565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361110d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161110490611e58565b60405180910390fd5b6111168161147e565b50565b5f60085f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff169050919050565b60095f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b5f6005546004546111a19190611e76565b4210905090565b60035481565b6111b661153f565b73ffffffffffffffffffffffffffffffffffffffff166111d4610db2565b73ffffffffffffffffffffffffffffffffffffffff161461122a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161122190611ef3565b60405180910390fd5b565b5f60095f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690505f82131561131b575f8173ffffffffffffffffffffffffffffffffffffffff1663e93119d98533866040518463ffffffff1660e01b815260040161129793929190611f11565b602060405180830381865afa1580156112b2573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906112d69190611f5a565b11611316576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161130d90611fcf565b60405180910390fd5b6113d7565b5f8173ffffffffffffffffffffffffffffffffffffffff1663f7888aec85336040518363ffffffff1660e01b8152600401611357929190611fed565b602060405180830381865afa158015611372573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906113969190611f5a565b116113d6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113cd90611fcf565b60405180910390fd5b5b505050565b5f60015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166340d097c3836040518263ffffffff1660e01b815260040161143791906116c9565b6020604051808303815f875af1158015611453573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906114779190611f5a565b9050919050565b5f805f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050815f806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b5f33905090565b5f604051905090565b5f80fd5b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f61158082611557565b9050919050565b61159081611576565b811461159a575f80fd5b50565b5f813590506115ab81611587565b92915050565b5f602082840312156115c6576115c561154f565b5b5f6115d38482850161159d565b91505092915050565b5f819050919050565b6115ee816115dc565b82525050565b5f6020820190506116075f8301846115e5565b92915050565b611616816115dc565b8114611620575f80fd5b50565b5f813590506116318161160d565b92915050565b5f819050919050565b61164981611637565b8114611653575f80fd5b50565b5f8135905061166481611640565b92915050565b5f805f606084860312156116815761168061154f565b5b5f61168e86828701611623565b935050602061169f8682870161159d565b92505060406116b086828701611656565b9150509250925092565b6116c381611576565b82525050565b5f6020820190506116dc5f8301846116ba565b92915050565b5f602082840312156116f7576116f661154f565b5b5f61170484828501611623565b91505092915050565b5f819050919050565b5f61173061172b61172684611557565b61170d565b611557565b9050919050565b5f61174182611716565b9050919050565b5f61175282611737565b9050919050565b61176281611748565b82525050565b5f60208201905061177b5f830184611759565b92915050565b5f80fd5b5f601f19601f8301169050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b6117cb82611785565b810181811067ffffffffffffffff821117156117ea576117e9611795565b5b80604052505050565b5f6117fc611546565b905061180882826117c2565b919050565b5f67ffffffffffffffff82111561182757611826611795565b5b602082029050602081019050919050565b5f80fd5b5f61184e6118498461180d565b6117f3565b9050808382526020820190506020840283018581111561187157611870611838565b5b835b8181101561189a5780611886888261159d565b845260208401935050602081019050611873565b5050509392505050565b5f82601f8301126118b8576118b7611781565b5b81356118c884826020860161183c565b91505092915050565b5f602082840312156118e6576118e561154f565b5b5f82013567ffffffffffffffff81111561190357611902611553565b5b61190f848285016118a4565b91505092915050565b5f8115159050919050565b61192c81611918565b82525050565b5f6020820190506119455f830184611923565b92915050565b5f82825260208201905092915050565b7f6d696e74206973206e6f74206f70656e000000000000000000000000000000005f82015250565b5f61198f60108361194b565b915061199a8261195b565b602082019050919050565b5f6020820190508181035f8301526119bc81611983565b9050919050565b7f6e6f7420616c6c6f7765640000000000000000000000000000000000000000005f82015250565b5f6119f7600b8361194b565b9150611a02826119c3565b602082019050919050565b5f6020820190508181035f830152611a24816119eb565b9050919050565b7f6f6e6c79206f6e65206e667420616c6c6f7765640000000000000000000000005f82015250565b5f611a5f60148361194b565b9150611a6a82611a2b565b602082019050919050565b5f6020820190508181035f830152611a8c81611a53565b9050919050565b7f56495020706572696f64206973206f76657200000000000000000000000000005f82015250565b5f611ac760128361194b565b9150611ad282611a93565b602082019050919050565b5f6020820190508181035f830152611af481611abb565b9050919050565b7f6e6f742061646472657373206f66206120706172746e657200000000000000005f82015250565b5f611b2f60188361194b565b9150611b3a82611afb565b602082019050919050565b5f6020820190508181035f830152611b5c81611b23565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f611b9a826115dc565b9150611ba5836115dc565b9250828202611bb3816115dc565b91508282048414831517611bca57611bc9611b63565b5b5092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b5f611c08826115dc565b9150611c13836115dc565b925082611c2357611c22611bd1565b5b828204905092915050565b7f62616420616d6f756e742073656e7400000000000000000000000000000000005f82015250565b5f611c62600f8361194b565b9150611c6d82611c2e565b602082019050919050565b5f6020820190508181035f830152611c8f81611c56565b9050919050565b5f81905092915050565b50565b5f611cae5f83611c96565b9150611cb982611ca0565b5f82019050919050565b5f611ccd82611ca3565b9150819050919050565b7f4661696c656420746f2073656e642045746865720000000000000000000000005f82015250565b5f611d0b60148361194b565b9150611d1682611cd7565b602082019050919050565b5f6020820190508181035f830152611d3881611cff565b9050919050565b5f606082019050611d525f8301866115e5565b611d5f60208301856116ba565b611d6c60408301846115e5565b949350505050565b5f611d7e826115dc565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203611db057611daf611b63565b5b600182019050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f20615f8201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b5f611e4260268361194b565b9150611e4d82611de8565b604082019050919050565b5f6020820190508181035f830152611e6f81611e36565b9050919050565b5f611e80826115dc565b9150611e8b836115dc565b9250828201905080821115611ea357611ea2611b63565b5b92915050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65725f82015250565b5f611edd60208361194b565b9150611ee882611ea9565b602082019050919050565b5f6020820190508181035f830152611f0a81611ed1565b9050919050565b5f606082019050611f245f8301866116ba565b611f3160208301856116ba565b611f3e60408301846115e5565b949350505050565b5f81519050611f548161160d565b92915050565b5f60208284031215611f6f57611f6e61154f565b5b5f611f7c84828501611f46565b91505092915050565b7f6e6f74206f776e6572206f662074686973206e667420706172746e65720000005f82015250565b5f611fb9601d8361194b565b9150611fc482611f85565b602082019050919050565b5f6020820190508181035f830152611fe681611fad565b9050919050565b5f6040820190506120005f8301856116ba565b61200d60208301846116ba565b939250505056fea264697066735822122080ea68123144e2161fb0ce523996814c9c780bdd98e66e7aaa782beee0cf31b964736f6c63430008140033000000000000000000000000db2dc523a0670b8bd466907639dbb8393a9bf17e000000000000000000000000bf5c0c5f8f2a91ec9c2e738cf5189399a5b24937000000000000000000000000c3aa9bc72bd623168860a1e5c6a4530d3d80456c
Deployed Bytecode
0x608060405260043610610180575f3560e01c80638da5cb5b116100d0578063d5752a6211610089578063f4201c3c11610063578063f4201c3c1461051c578063f61d5f2914610558578063fc3aad1f14610582578063ff186b2e146105ac57610180565b8063d5752a62146104a4578063f21f7674146104cc578063f2fde38b146104f457610180565b80638da5cb5b1461039e57806391b7f5ed146103c85780639692065d146103f0578063aef9a92e14610418578063b925d90c14610454578063cfac5d7c1461047c57610180565b80633e0a322d1161013d5780635d7ff836116101175780635d7ff836146102e85780635da5f31e14610310578063715018a61461034c57806376ed72761461036257610180565b80633e0a322d1461026e57806347ccca02146102965780634f7d4951146102c057610180565b8063095dc5cf1461018457806325480627146101ac57806327726f52146101d65780632fe0de54146101f2578063385bfbb41461021c5780633b6fd2cf14610244575b5f80fd5b34801561018f575f80fd5b506101aa60048036038101906101a591906115b1565b6105d6565b005b3480156101b7575f80fd5b506101c0610687565b6040516101cd91906115f4565b60405180910390f35b6101f060048036038101906101eb919061166a565b61068d565b005b3480156101fd575f80fd5b50610206610b07565b60405161021391906115f4565b60405180910390f35b348015610227575f80fd5b50610242600480360381019061023d91906115b1565b610b0d565b005b34801561024f575f80fd5b50610258610bbe565b60405161026591906116c9565b60405180910390f35b348015610279575f80fd5b50610294600480360381019061028f91906116e2565b610be3565b005b3480156102a1575f80fd5b506102aa610bf5565b6040516102b79190611768565b60405180910390f35b3480156102cb575f80fd5b506102e660048036038101906102e191906115b1565b610c1a565b005b3480156102f3575f80fd5b5061030e600480360381019061030991906118d1565b610ccd565b005b34801561031b575f80fd5b50610336600480360381019061033191906115b1565b610d65565b6040516103439190611932565b60405180910390f35b348015610357575f80fd5b50610360610d82565b005b34801561036d575f80fd5b50610388600480360381019061038391906115b1565b610d95565b6040516103959190611932565b60405180910390f35b3480156103a9575f80fd5b506103b2610db2565b6040516103bf91906116c9565b60405180910390f35b3480156103d3575f80fd5b506103ee60048036038101906103e991906116e2565b610dd9565b005b3480156103fb575f80fd5b50610416600480360381019061041191906116e2565b610deb565b005b348015610423575f80fd5b5061043e600480360381019061043991906115b1565b610dfd565b60405161044b9190611932565b60405180910390f35b34801561045f575f80fd5b5061047a600480360381019061047591906118d1565b610e1a565b005b348015610487575f80fd5b506104a2600480360381019061049d91906115b1565b610eb2565b005b3480156104af575f80fd5b506104ca60048036038101906104c591906118d1565b610f65565b005b3480156104d7575f80fd5b506104f260048036038101906104ed91906118d1565b610ffe565b005b3480156104ff575f80fd5b5061051a600480360381019061051591906115b1565b611097565b005b348015610527575f80fd5b50610542600480360381019061053d91906115b1565b611119565b60405161054f9190611932565b60405180910390f35b348015610563575f80fd5b5061056c61116b565b60405161057991906116c9565b60405180910390f35b34801561058d575f80fd5b50610596611190565b6040516105a39190611932565b60405180910390f35b3480156105b7575f80fd5b506105c06111a8565b6040516105cd91906115f4565b60405180910390f35b6105de6111ae565b60085f8273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16610630575f80fd5b5f60085f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff02191690831515021790555050565b60055481565b60045442116106d1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106c8906119a5565b60405180910390fd5b5f34036108445760085f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16610761576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161075890611a0d565b60405180910390fd5b600183146107a4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161079b90611a75565b60405180910390fd5b6107ac611190565b6107eb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107e290611add565b60405180910390fd5b5f60085f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff021916908315150217905550610a91565b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16146109765760065f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16610900576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f790611b45565b60405180910390fd5b61090a828261122c565b600a60086003548561091c9190611b90565b6109269190611b90565b6109309190611bfe565b3414610971576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161096890611c78565b60405180910390fd5b6109c6565b600354836109849190611b90565b34146109c5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109bc90611c78565b60405180910390fd5b5b5f60025f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1634604051610a0c90611cc3565b5f6040518083038185875af1925050503d805f8114610a46576040519150601f19603f3d011682016040523d82523d5f602084013e610a4b565b606091505b5050905080610a8f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a8690611d21565b60405180910390fd5b505b5f5b83811015610b01575f610aa5336113dc565b90507fba1a6d04c020b29d709aabcdbdf65dcf51068d739b687a4dddc07e761ea53f4881338734610ad69190611bfe565b604051610ae593929190611d3f565b60405180910390a1508080610af990611d74565b915050610a93565b50505050565b60045481565b610b156111ae565b60065f8273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16610b67575f80fd5b5f60065f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff02191690831515021790555050565b60025f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b610beb6111ae565b8060048190555050565b60015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b610c226111ae565b60085f8273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff1615610c75575f80fd5b600160085f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff02191690831515021790555050565b610cd56111ae565b5f5b8151811015610d61575f60085f848481518110610cf757610cf6611dbb565b5b602002602001015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055508080610d5990611d74565b915050610cd7565b5050565b6007602052805f5260405f205f915054906101000a900460ff1681565b610d8a6111ae565b610d935f61147e565b565b6006602052805f5260405f205f915054906101000a900460ff1681565b5f805f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b610de16111ae565b8060038190555050565b610df36111ae565b8060058190555050565b6008602052805f5260405f205f915054906101000a900460ff1681565b610e226111ae565b5f5b8151811015610eae575f60065f848481518110610e4457610e43611dbb565b5b602002602001015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055508080610ea690611d74565b915050610e24565b5050565b610eba6111ae565b60065f8273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff1615610f0d575f80fd5b600160065f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff02191690831515021790555050565b610f6d6111ae565b5f5b8151811015610ffa57600160065f848481518110610f9057610f8f611dbb565b5b602002602001015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055508080610ff290611d74565b915050610f6f565b5050565b6110066111ae565b5f5b815181101561109357600160085f84848151811061102957611028611dbb565b5b602002602001015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff021916908315150217905550808061108b90611d74565b915050611008565b5050565b61109f6111ae565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361110d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161110490611e58565b60405180910390fd5b6111168161147e565b50565b5f60085f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff169050919050565b60095f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b5f6005546004546111a19190611e76565b4210905090565b60035481565b6111b661153f565b73ffffffffffffffffffffffffffffffffffffffff166111d4610db2565b73ffffffffffffffffffffffffffffffffffffffff161461122a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161122190611ef3565b60405180910390fd5b565b5f60095f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690505f82131561131b575f8173ffffffffffffffffffffffffffffffffffffffff1663e93119d98533866040518463ffffffff1660e01b815260040161129793929190611f11565b602060405180830381865afa1580156112b2573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906112d69190611f5a565b11611316576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161130d90611fcf565b60405180910390fd5b6113d7565b5f8173ffffffffffffffffffffffffffffffffffffffff1663f7888aec85336040518363ffffffff1660e01b8152600401611357929190611fed565b602060405180830381865afa158015611372573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906113969190611f5a565b116113d6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113cd90611fcf565b60405180910390fd5b5b505050565b5f60015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166340d097c3836040518263ffffffff1660e01b815260040161143791906116c9565b6020604051808303815f875af1158015611453573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906114779190611f5a565b9050919050565b5f805f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050815f806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b5f33905090565b5f604051905090565b5f80fd5b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f61158082611557565b9050919050565b61159081611576565b811461159a575f80fd5b50565b5f813590506115ab81611587565b92915050565b5f602082840312156115c6576115c561154f565b5b5f6115d38482850161159d565b91505092915050565b5f819050919050565b6115ee816115dc565b82525050565b5f6020820190506116075f8301846115e5565b92915050565b611616816115dc565b8114611620575f80fd5b50565b5f813590506116318161160d565b92915050565b5f819050919050565b61164981611637565b8114611653575f80fd5b50565b5f8135905061166481611640565b92915050565b5f805f606084860312156116815761168061154f565b5b5f61168e86828701611623565b935050602061169f8682870161159d565b92505060406116b086828701611656565b9150509250925092565b6116c381611576565b82525050565b5f6020820190506116dc5f8301846116ba565b92915050565b5f602082840312156116f7576116f661154f565b5b5f61170484828501611623565b91505092915050565b5f819050919050565b5f61173061172b61172684611557565b61170d565b611557565b9050919050565b5f61174182611716565b9050919050565b5f61175282611737565b9050919050565b61176281611748565b82525050565b5f60208201905061177b5f830184611759565b92915050565b5f80fd5b5f601f19601f8301169050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b6117cb82611785565b810181811067ffffffffffffffff821117156117ea576117e9611795565b5b80604052505050565b5f6117fc611546565b905061180882826117c2565b919050565b5f67ffffffffffffffff82111561182757611826611795565b5b602082029050602081019050919050565b5f80fd5b5f61184e6118498461180d565b6117f3565b9050808382526020820190506020840283018581111561187157611870611838565b5b835b8181101561189a5780611886888261159d565b845260208401935050602081019050611873565b5050509392505050565b5f82601f8301126118b8576118b7611781565b5b81356118c884826020860161183c565b91505092915050565b5f602082840312156118e6576118e561154f565b5b5f82013567ffffffffffffffff81111561190357611902611553565b5b61190f848285016118a4565b91505092915050565b5f8115159050919050565b61192c81611918565b82525050565b5f6020820190506119455f830184611923565b92915050565b5f82825260208201905092915050565b7f6d696e74206973206e6f74206f70656e000000000000000000000000000000005f82015250565b5f61198f60108361194b565b915061199a8261195b565b602082019050919050565b5f6020820190508181035f8301526119bc81611983565b9050919050565b7f6e6f7420616c6c6f7765640000000000000000000000000000000000000000005f82015250565b5f6119f7600b8361194b565b9150611a02826119c3565b602082019050919050565b5f6020820190508181035f830152611a24816119eb565b9050919050565b7f6f6e6c79206f6e65206e667420616c6c6f7765640000000000000000000000005f82015250565b5f611a5f60148361194b565b9150611a6a82611a2b565b602082019050919050565b5f6020820190508181035f830152611a8c81611a53565b9050919050565b7f56495020706572696f64206973206f76657200000000000000000000000000005f82015250565b5f611ac760128361194b565b9150611ad282611a93565b602082019050919050565b5f6020820190508181035f830152611af481611abb565b9050919050565b7f6e6f742061646472657373206f66206120706172746e657200000000000000005f82015250565b5f611b2f60188361194b565b9150611b3a82611afb565b602082019050919050565b5f6020820190508181035f830152611b5c81611b23565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f611b9a826115dc565b9150611ba5836115dc565b9250828202611bb3816115dc565b91508282048414831517611bca57611bc9611b63565b5b5092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b5f611c08826115dc565b9150611c13836115dc565b925082611c2357611c22611bd1565b5b828204905092915050565b7f62616420616d6f756e742073656e7400000000000000000000000000000000005f82015250565b5f611c62600f8361194b565b9150611c6d82611c2e565b602082019050919050565b5f6020820190508181035f830152611c8f81611c56565b9050919050565b5f81905092915050565b50565b5f611cae5f83611c96565b9150611cb982611ca0565b5f82019050919050565b5f611ccd82611ca3565b9150819050919050565b7f4661696c656420746f2073656e642045746865720000000000000000000000005f82015250565b5f611d0b60148361194b565b9150611d1682611cd7565b602082019050919050565b5f6020820190508181035f830152611d3881611cff565b9050919050565b5f606082019050611d525f8301866115e5565b611d5f60208301856116ba565b611d6c60408301846115e5565b949350505050565b5f611d7e826115dc565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203611db057611daf611b63565b5b600182019050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f20615f8201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b5f611e4260268361194b565b9150611e4d82611de8565b604082019050919050565b5f6020820190508181035f830152611e6f81611e36565b9050919050565b5f611e80826115dc565b9150611e8b836115dc565b9250828201905080821115611ea357611ea2611b63565b5b92915050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65725f82015250565b5f611edd60208361194b565b9150611ee882611ea9565b602082019050919050565b5f6020820190508181035f830152611f0a81611ed1565b9050919050565b5f606082019050611f245f8301866116ba565b611f3160208301856116ba565b611f3e60408301846115e5565b949350505050565b5f81519050611f548161160d565b92915050565b5f60208284031215611f6f57611f6e61154f565b5b5f611f7c84828501611f46565b91505092915050565b7f6e6f74206f776e6572206f662074686973206e667420706172746e65720000005f82015250565b5f611fb9601d8361194b565b9150611fc482611f85565b602082019050919050565b5f6020820190508181035f830152611fe681611fad565b9050919050565b5f6040820190506120005f8301856116ba565b61200d60208301846116ba565b939250505056fea264697066735822122080ea68123144e2161fb0ce523996814c9c780bdd98e66e7aaa782beee0cf31b964736f6c63430008140033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000db2dc523a0670b8bd466907639dbb8393a9bf17e000000000000000000000000bf5c0c5f8f2a91ec9c2e738cf5189399a5b24937000000000000000000000000c3aa9bc72bd623168860a1e5c6a4530d3d80456c
-----Decoded View---------------
Arg [0] : _nftAddress (address): 0xDb2Dc523a0670B8bD466907639DBB8393A9bf17e
Arg [1] : _fundsRecipient (address): 0xbF5C0C5F8F2A91EC9c2e738CF5189399a5B24937
Arg [2] : _warmContractAddress (address): 0xC3AA9bc72Bd623168860a1e5c6a4530d3D80456c
-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 000000000000000000000000db2dc523a0670b8bd466907639dbb8393a9bf17e
Arg [1] : 000000000000000000000000bf5c0c5f8f2a91ec9c2e738cf5189399a5b24937
Arg [2] : 000000000000000000000000c3aa9bc72bd623168860a1e5c6a4530d3d80456c
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 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.