ETH Price: $3,781.55 (+5.60%)

Contract

0xEC1D0BAf094657432820D9e756bd0fB8dd9FA1A9
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Pay For Mint170422042023-04-14 1:29:23607 days ago1681435763IN
0xEC1D0BAf...8dd9FA1A9
0 ETH0.0063212225.83857315
Pay For Mint170421952023-04-14 1:27:35607 days ago1681435655IN
0xEC1D0BAf...8dd9FA1A9
0 ETH0.0068230227.89110667
Pay For Mint170421802023-04-14 1:24:35607 days ago1681435475IN
0xEC1D0BAf...8dd9FA1A9
0 ETH0.0049773927.4879035
Pay For Mint170421652023-04-14 1:21:35607 days ago1681435295IN
0xEC1D0BAf...8dd9FA1A9
0 ETH0.0053914229.77439995
Pay For Mint170421572023-04-14 1:19:59607 days ago1681435199IN
0xEC1D0BAf...8dd9FA1A9
0 ETH0.0113820333.47224521
Pay For Mint170418272023-04-14 0:12:23607 days ago1681431143IN
0xEC1D0BAf...8dd9FA1A9
0 ETH0.0043764720.56129353
Pay For Mint170417992023-04-14 0:06:47607 days ago1681430807IN
0xEC1D0BAf...8dd9FA1A9
0 ETH0.0062189523.97837053
Pay For Mint170417942023-04-14 0:05:47607 days ago1681430747IN
0xEC1D0BAf...8dd9FA1A9
0 ETH0.0028563421.61229076
Pay For Mint170417912023-04-14 0:05:11607 days ago1681430711IN
0xEC1D0BAf...8dd9FA1A9
0 ETH0.0035207123.58418721
Pay For Mint170417532023-04-13 23:57:23607 days ago1681430243IN
0xEC1D0BAf...8dd9FA1A9
0 ETH0.0065838825.38736813
Pay For Mint170417392023-04-13 23:54:35607 days ago1681430075IN
0xEC1D0BAf...8dd9FA1A9
0 ETH0.003932426.34548549
Pay For Mint170416982023-04-13 23:46:23607 days ago1681429583IN
0xEC1D0BAf...8dd9FA1A9
0 ETH0.0041343622.83471506
Pay For Mint170415752023-04-13 23:21:23607 days ago1681428083IN
0xEC1D0BAf...8dd9FA1A9
0 ETH0.0033218522.25864
Pay For Mint170415702023-04-13 23:20:23607 days ago1681428023IN
0xEC1D0BAf...8dd9FA1A9
0 ETH0.0033509122.44973435
Pay For Mint170413492023-04-13 22:34:59607 days ago1681425299IN
0xEC1D0BAf...8dd9FA1A9
0 ETH0.006981222.65919657
Pay For Mint170407662023-04-13 20:34:23607 days ago1681418063IN
0xEC1D0BAf...8dd9FA1A9
0 ETH0.0041974528.11743504
Pay For Mint170407582023-04-13 20:32:47607 days ago1681417967IN
0xEC1D0BAf...8dd9FA1A9
0 ETH0.0043373329.05441569
Pay For Mint170407392023-04-13 20:28:47607 days ago1681417727IN
0xEC1D0BAf...8dd9FA1A9
0 ETH0.0042334628.36247023
Pay For Mint170407302023-04-13 20:26:59607 days ago1681417619IN
0xEC1D0BAf...8dd9FA1A9
0 ETH0.0041625527.88961361
Pay For Mint170407202023-04-13 20:24:59607 days ago1681417499IN
0xEC1D0BAf...8dd9FA1A9
0 ETH0.0048650932.59672402
Pay For Mint170407122023-04-13 20:22:59607 days ago1681417379IN
0xEC1D0BAf...8dd9FA1A9
0 ETH0.0046392131.07664235
Pay For Mint170406792023-04-13 20:16:11607 days ago1681416971IN
0xEC1D0BAf...8dd9FA1A9
0 ETH0.0053435629.53516381
Pay For Mint170393072023-04-13 15:17:23608 days ago1681399043IN
0xEC1D0BAf...8dd9FA1A9
0 ETH0.005409636.2479052
Pay For Mint170365302023-04-13 4:55:47608 days ago1681361747IN
0xEC1D0BAf...8dd9FA1A9
0 ETH0.0030239422.87694876
Pay For Mint170362152023-04-13 3:42:59608 days ago1681357379IN
0xEC1D0BAf...8dd9FA1A9
0 ETH0.0095821122.90694317
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block From To
170422042023-04-14 1:29:23607 days ago1681435763
0xEC1D0BAf...8dd9FA1A9
0 ETH
170422042023-04-14 1:29:23607 days ago1681435763
0xEC1D0BAf...8dd9FA1A9
0 ETH
170422042023-04-14 1:29:23607 days ago1681435763
0xEC1D0BAf...8dd9FA1A9
0 ETH
170422042023-04-14 1:29:23607 days ago1681435763
0xEC1D0BAf...8dd9FA1A9
0 ETH
170422042023-04-14 1:29:23607 days ago1681435763
0xEC1D0BAf...8dd9FA1A9
0 ETH
170422042023-04-14 1:29:23607 days ago1681435763
0xEC1D0BAf...8dd9FA1A9
0 ETH
170422042023-04-14 1:29:23607 days ago1681435763
0xEC1D0BAf...8dd9FA1A9
0 ETH
170422042023-04-14 1:29:23607 days ago1681435763
0xEC1D0BAf...8dd9FA1A9
0 ETH
170422042023-04-14 1:29:23607 days ago1681435763
0xEC1D0BAf...8dd9FA1A9
0 ETH
170422042023-04-14 1:29:23607 days ago1681435763
0xEC1D0BAf...8dd9FA1A9
0 ETH
170422042023-04-14 1:29:23607 days ago1681435763
0xEC1D0BAf...8dd9FA1A9
0 ETH
170422042023-04-14 1:29:23607 days ago1681435763
0xEC1D0BAf...8dd9FA1A9
0 ETH
170422042023-04-14 1:29:23607 days ago1681435763
0xEC1D0BAf...8dd9FA1A9
0 ETH
170422042023-04-14 1:29:23607 days ago1681435763
0xEC1D0BAf...8dd9FA1A9
0 ETH
170422042023-04-14 1:29:23607 days ago1681435763
0xEC1D0BAf...8dd9FA1A9
0 ETH
170422042023-04-14 1:29:23607 days ago1681435763
0xEC1D0BAf...8dd9FA1A9
0 ETH
170421952023-04-14 1:27:35607 days ago1681435655
0xEC1D0BAf...8dd9FA1A9
0 ETH
170421952023-04-14 1:27:35607 days ago1681435655
0xEC1D0BAf...8dd9FA1A9
0 ETH
170421952023-04-14 1:27:35607 days ago1681435655
0xEC1D0BAf...8dd9FA1A9
0 ETH
170421952023-04-14 1:27:35607 days ago1681435655
0xEC1D0BAf...8dd9FA1A9
0 ETH
170421952023-04-14 1:27:35607 days ago1681435655
0xEC1D0BAf...8dd9FA1A9
0 ETH
170421952023-04-14 1:27:35607 days ago1681435655
0xEC1D0BAf...8dd9FA1A9
0 ETH
170421952023-04-14 1:27:35607 days ago1681435655
0xEC1D0BAf...8dd9FA1A9
0 ETH
170421952023-04-14 1:27:35607 days ago1681435655
0xEC1D0BAf...8dd9FA1A9
0 ETH
170421952023-04-14 1:27:35607 days ago1681435655
0xEC1D0BAf...8dd9FA1A9
0 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
GiryptoSale

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 9 : GiryptoSale.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/security/Pausable.sol";



interface IG_ERC721A is IERC721 {
    function massMint(address to, uint256 amount) external;
    function totalSupply() external returns (uint256);
}

interface IF_ERC721A is IERC721 {
    function addLevel(uint256 tokenId) external;

    function tokenOfOwnerByIndex(address owner, uint256 index)
        external
        view
        returns (uint256);

    function fablesLevel(uint256 tokenId) external view returns (uint256);
}

contract GiryptoSale is Ownable, ReentrancyGuard, Pausable {
    uint256 public price = 0.126 ether;
    uint256 public sellAmount = 0;
    uint256 public constant maxSell = 3000;

    IF_ERC721A public f_ERC721;
    IG_ERC721A public g_ERC721;

    address public communityWallet;

    uint256 public saleStartTime;
    uint256 public saleEndTime;

    event LevelUp(address indexed from, uint256[] tokenIds,uint256 currentSupply);

    constructor(
        address _f,
        address _g,
        address _wallet,
        uint256 _price,
        uint256 start,
        uint256 end
    ) {
        price = _price;
        f_ERC721 = IF_ERC721A(_f);
        g_ERC721 = IG_ERC721A(_g);
        communityWallet = _wallet;

        saleStartTime = start;
        saleEndTime = end;
    }

    /*
    GET
    */
    function CheckClearTokens(address from)
        external
        view
        returns (uint256[] memory)
    {
        uint256 bal = f_ERC721.balanceOf(from);

        uint256[] memory balTokens = new uint256[](bal);
        uint256 count = 0;
        for (uint256 i = 0; i < bal; i++) {
            uint256 tokenId = f_ERC721.tokenOfOwnerByIndex(from, i);

            if (f_ERC721.fablesLevel(tokenId) == 0) {
                balTokens[count] = tokenId;
                count++;
            }
        }

        uint256[] memory clearTokens = new uint256[](count);
        for(uint256 i=0 ; i< count;i++){
            clearTokens[i] = balTokens[i];
        }

        return clearTokens;
    }


    /*
    SET onlyOwner
    */
    function setSaleTime(
        uint256 _start,
        uint256 _end
    ) external onlyOwner {
        saleStartTime = _start;
        saleEndTime = _end;
    }

    function setPrice(uint256 _price) external onlyOwner {
        price = _price;
    }

    function setPause(bool _p) external onlyOwner {
        if (_p) {
            _pause();
        } else {
            _unpause();
        }
    }

    /*
    Only communityWallet
    */
    function Withdraw_Eth() public {
        require(msg.sender == communityWallet, "Not Authorized");
        uint256 eth_Balance = address(this).balance;
        (bool isSuccess, ) = payable(communityWallet).call{value: eth_Balance}(
            ""
        );
        require(isSuccess, "Failed To Withdraw Eth");
    }

    /*
    Payable
    */
    function PayForMint(bytes memory _signature, uint256[] memory _tokenIds)
        external
        payable
        nonReentrant
        whenNotPaused
    {
        address sender = msg.sender;

        uint256 amount = _tokenIds.length;
        uint256 totalPrice = price * amount;

        uint256 currentSupply = g_ERC721.totalSupply();

        require(!_isContract(sender), "Invalid Sender");
        require(_verifySigner(_signature, sender), "Invalid Signer");
        require(msg.value == totalPrice, "Not Enough Eth");
        require(sellAmount + amount <= maxSell, "Max Supply");
        require(f_ERC721.balanceOf(sender) > 0, "Invalid F balance");

        for (uint256 i = 0; i < amount; i++) {
            require(f_ERC721.ownerOf(_tokenIds[i]) == sender, "Invalid Owner");
            require(f_ERC721.fablesLevel(_tokenIds[i]) == 0, "Already LevelUp");
        }

        require (
            block.timestamp >= saleStartTime &&
            block.timestamp < saleEndTime,
            "Mint not start yet"
        );

        g_ERC721.massMint(sender, amount);
        _levelUp(sender, _tokenIds,currentSupply);

        sellAmount += amount;
    }

    /*
    Internal
    */
    function _levelUp(address sender, uint256[] memory tokenIds , uint256 currentSupply) internal {
        for (uint256 i = 0; i < tokenIds.length; i++) {
            f_ERC721.addLevel(tokenIds[i]);
        }
        emit LevelUp(sender, tokenIds,currentSupply);
    }

    function _isContract(address account) internal view returns (bool) {
        return account.code.length > 0;
    }

    function _verifySigner(bytes memory _signature, address _to)
        internal
        pure 
        returns (bool)
    {
        bytes32 hash = keccak256(abi.encode(_to));
        bytes32 ECDSA_Hash = ECDSA.toEthSignedMessageHash(hash);

        return (ECDSA.recover(ECDSA_Hash, _signature) == _to);
    }
}

File 2 of 9 : Pausable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/Pausable.sol)

pragma solidity ^0.8.0;

import "../utils/Context.sol";

/**
 * @dev Contract module which allows children to implement an emergency stop
 * mechanism that can be triggered by an authorized account.
 *
 * This module is used through inheritance. It will make available the
 * modifiers `whenNotPaused` and `whenPaused`, which can be applied to
 * the functions of your contract. Note that they will not be pausable by
 * simply including this module, only once the modifiers are put in place.
 */
abstract contract Pausable is Context {
    /**
     * @dev Emitted when the pause is triggered by `account`.
     */
    event Paused(address account);

    /**
     * @dev Emitted when the pause is lifted by `account`.
     */
    event Unpaused(address account);

    bool private _paused;

    /**
     * @dev Initializes the contract in unpaused state.
     */
    constructor() {
        _paused = false;
    }

    /**
     * @dev Returns true if the contract is paused, and false otherwise.
     */
    function paused() public view virtual returns (bool) {
        return _paused;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is not paused.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    modifier whenNotPaused() {
        require(!paused(), "Pausable: paused");
        _;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is paused.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    modifier whenPaused() {
        require(paused(), "Pausable: not paused");
        _;
    }

    /**
     * @dev Triggers stopped state.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    function _pause() internal virtual whenNotPaused {
        _paused = true;
        emit Paused(_msgSender());
    }

    /**
     * @dev Returns to normal state.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    function _unpause() internal virtual whenPaused {
        _paused = false;
        emit Unpaused(_msgSender());
    }
}

File 3 of 9 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

import "../../utils/introspection/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`.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes calldata data
    ) external;

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    /**
     * @dev Transfers `tokenId` token from `from` to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    /**
     * @dev Gives permission to `to` to transfer `tokenId` token to another account.
     * The approval is cleared when the token is transferred.
     *
     * Only a single account can be approved at a time, so approving the zero address clears previous approvals.
     *
     * Requirements:
     *
     * - The caller must own the token or be an approved operator.
     * - `tokenId` must exist.
     *
     * Emits an {Approval} event.
     */
    function approve(address to, uint256 tokenId) external;

    /**
     * @dev Approve or remove `operator` as an operator for the caller.
     * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
     *
     * Requirements:
     *
     * - The `operator` cannot be the caller.
     *
     * Emits an {ApprovalForAll} event.
     */
    function setApprovalForAll(address operator, bool _approved) external;

    /**
     * @dev Returns the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) external view returns (address operator);

    /**
     * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.
     *
     * See {setApprovalForAll}
     */
    function isApprovedForAll(address owner, address operator) external view returns (bool);
}

File 4 of 9 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;

        _;

        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }
}

File 5 of 9 : ECDSA.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/cryptography/ECDSA.sol)

pragma solidity ^0.8.0;

import "../Strings.sol";

/**
 * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.
 *
 * These functions can be used to verify that a message was signed by the holder
 * of the private keys of a given address.
 */
library ECDSA {
    enum RecoverError {
        NoError,
        InvalidSignature,
        InvalidSignatureLength,
        InvalidSignatureS,
        InvalidSignatureV
    }

    function _throwError(RecoverError error) private pure {
        if (error == RecoverError.NoError) {
            return; // no error: do nothing
        } else if (error == RecoverError.InvalidSignature) {
            revert("ECDSA: invalid signature");
        } else if (error == RecoverError.InvalidSignatureLength) {
            revert("ECDSA: invalid signature length");
        } else if (error == RecoverError.InvalidSignatureS) {
            revert("ECDSA: invalid signature 's' value");
        } else if (error == RecoverError.InvalidSignatureV) {
            revert("ECDSA: invalid signature 'v' value");
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature` or error string. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     *
     * Documentation for signature generation:
     * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js]
     * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers]
     *
     * _Available since v4.3._
     */
    function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) {
        // Check the signature length
        // - case 65: r,s,v signature (standard)
        // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._
        if (signature.length == 65) {
            bytes32 r;
            bytes32 s;
            uint8 v;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            assembly {
                r := mload(add(signature, 0x20))
                s := mload(add(signature, 0x40))
                v := byte(0, mload(add(signature, 0x60)))
            }
            return tryRecover(hash, v, r, s);
        } else if (signature.length == 64) {
            bytes32 r;
            bytes32 vs;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            assembly {
                r := mload(add(signature, 0x20))
                vs := mload(add(signature, 0x40))
            }
            return tryRecover(hash, r, vs);
        } else {
            return (address(0), RecoverError.InvalidSignatureLength);
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature`. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     */
    function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, signature);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately.
     *
     * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures]
     *
     * _Available since v4.3._
     */
    function tryRecover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address, RecoverError) {
        bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff);
        uint8 v = uint8((uint256(vs) >> 255) + 27);
        return tryRecover(hash, v, r, s);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.
     *
     * _Available since v4.2._
     */
    function recover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, r, vs);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `v`,
     * `r` and `s` signature fields separately.
     *
     * _Available since v4.3._
     */
    function tryRecover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address, RecoverError) {
        // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature
        // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines
        // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most
        // signatures from current libraries generate a unique signature with an s-value in the lower half order.
        //
        // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value
        // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or
        // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept
        // these malleable signatures as well.
        if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) {
            return (address(0), RecoverError.InvalidSignatureS);
        }
        if (v != 27 && v != 28) {
            return (address(0), RecoverError.InvalidSignatureV);
        }

        // If the signature is valid (and not malleable), return the signer address
        address signer = ecrecover(hash, v, r, s);
        if (signer == address(0)) {
            return (address(0), RecoverError.InvalidSignature);
        }

        return (signer, RecoverError.NoError);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `v`,
     * `r` and `s` signature fields separately.
     */
    function recover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, v, r, s);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from a `hash`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) {
        // 32 is the length in bytes of hash,
        // enforced by the type signature above
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash));
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from `s`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s));
    }

    /**
     * @dev Returns an Ethereum Signed Typed Data, created from a
     * `domainSeparator` and a `structHash`. This produces hash corresponding
     * to the one signed with the
     * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`]
     * JSON-RPC method as part of EIP-712.
     *
     * See {recover}.
     */
    function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash));
    }
}

File 6 of 9 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (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 Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _transferOwnership(address(0));
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 7 of 9 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)

pragma solidity ^0.8.0;

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        // Inspired by OraclizeAPI's implementation - MIT licence
        // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol

        if (value == 0) {
            return "0";
        }
        uint256 temp = value;
        uint256 digits;
        while (temp != 0) {
            digits++;
            temp /= 10;
        }
        bytes memory buffer = new bytes(digits);
        while (value != 0) {
            digits -= 1;
            buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));
            value /= 10;
        }
        return string(buffer);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        if (value == 0) {
            return "0x00";
        }
        uint256 temp = value;
        uint256 length = 0;
        while (temp != 0) {
            length++;
            temp >>= 8;
        }
        return toHexString(value, length);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
     */
    function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
        bytes memory buffer = new bytes(2 * length + 2);
        buffer[0] = "0";
        buffer[1] = "x";
        for (uint256 i = 2 * length + 1; i > 1; --i) {
            buffer[i] = _HEX_SYMBOLS[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }
}

File 8 of 9 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC165 standard, as defined in the
 * https://eips.ethereum.org/EIPS/eip-165[EIP].
 *
 * Implementers can declare support of contract interfaces, which can then be
 * queried by others ({ERC165Checker}).
 *
 * For an implementation, see {ERC165}.
 */
interface IERC165 {
    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);
}

File 9 of 9 : Context.sol
// 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;
    }
}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_f","type":"address"},{"internalType":"address","name":"_g","type":"address"},{"internalType":"address","name":"_wallet","type":"address"},{"internalType":"uint256","name":"_price","type":"uint256"},{"internalType":"uint256","name":"start","type":"uint256"},{"internalType":"uint256","name":"end","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"},{"indexed":false,"internalType":"uint256","name":"currentSupply","type":"uint256"}],"name":"LevelUp","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[{"internalType":"address","name":"from","type":"address"}],"name":"CheckClearTokens","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"_signature","type":"bytes"},{"internalType":"uint256[]","name":"_tokenIds","type":"uint256[]"}],"name":"PayForMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"Withdraw_Eth","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"communityWallet","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"f_ERC721","outputs":[{"internalType":"contract IF_ERC721A","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"g_ERC721","outputs":[{"internalType":"contract IG_ERC721A","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSell","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":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"saleEndTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"saleStartTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"sellAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"_p","type":"bool"}],"name":"setPause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_start","type":"uint256"},{"internalType":"uint256","name":"_end","type":"uint256"}],"name":"setSaleTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040526701bfa45519b3000060035560006004553480156200002257600080fd5b506040516200197538038062001975833981016040819052620000459162000120565b6200005033620000b3565b600180556002805460ff19169055600392909255600580546001600160a01b039687166001600160a01b03199182161790915560068054958716958216959095179094556007805493909516929093169190911790925560085560095562000186565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80516001600160a01b03811681146200011b57600080fd5b919050565b60008060008060008060c087890312156200013a57600080fd5b620001458762000103565b9550620001556020880162000103565b9450620001656040880162000103565b9350606087015192506080870151915060a087015190509295509295509295565b6117df80620001966000396000f3fe6080604052600436106101095760003560e01c806391b7f5ed11610095578063bedb86fb11610064578063bedb86fb1461029e578063c7574839146102be578063ca87e67e146102de578063ed338ff1146102fe578063f2fde38b1461031457600080fd5b806391b7f5ed14610225578063a035b1fe14610245578063b8eb35461461025b578063ba33d1571461027157600080fd5b80633f407b84116100dc5780633f407b84146101a65780635ac21286146101bc5780635c975abb146101cf578063715018a6146101f25780638da5cb5b1461020757600080fd5b80630c4c6cb81461010e5780630f31c6321461014b5780631cbaee2d146101625780633981462e14610186575b600080fd5b34801561011a57600080fd5b5060065461012e906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b34801561015757600080fd5b50610160610334565b005b34801561016e57600080fd5b5061017860085481565b604051908152602001610142565b34801561019257600080fd5b5060055461012e906001600160a01b031681565b3480156101b257600080fd5b5061017860045481565b6101606101ca3660046114fb565b610428565b3480156101db57600080fd5b5060025460ff166040519015158152602001610142565b3480156101fe57600080fd5b506101606109d9565b34801561021357600080fd5b506000546001600160a01b031661012e565b34801561023157600080fd5b506101606102403660046115b3565b610a0f565b34801561025157600080fd5b5061017860035481565b34801561026757600080fd5b50610178610bb881565b34801561027d57600080fd5b5061029161028c3660046115e1565b610a3e565b6040516101429190611640565b3480156102aa57600080fd5b506101606102b9366004611653565b610cd6565b3480156102ca57600080fd5b5060075461012e906001600160a01b031681565b3480156102ea57600080fd5b506101606102f9366004611675565b610d19565b34801561030a57600080fd5b5061017860095481565b34801561032057600080fd5b5061016061032f3660046115e1565b610d4e565b6007546001600160a01b031633146103845760405162461bcd60e51b815260206004820152600e60248201526d139bdd08105d5d1a1bdc9a5e995960921b60448201526064015b60405180910390fd5b60075460405147916000916001600160a01b039091169083908381818185875af1925050503d80600081146103d5576040519150601f19603f3d011682016040523d82523d6000602084013e6103da565b606091505b50509050806104245760405162461bcd60e51b815260206004820152601660248201527508cc2d2d8cac840a8de40aed2e8d0c8e4c2ee408ae8d60531b604482015260640161037b565b5050565b60026001540361047a5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161037b565b600260015561048b60025460ff1690565b156104cb5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015260640161037b565b80516003543391906000906104e19083906116ad565b90506000600660009054906101000a90046001600160a01b03166001600160a01b03166318160ddd6040518163ffffffff1660e01b81526004016020604051808303816000875af115801561053a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061055e91906116c4565b90506001600160a01b0384163b156105a95760405162461bcd60e51b815260206004820152600e60248201526d24b73b30b634b21029b2b73232b960911b604482015260640161037b565b6105b38685610de6565b6105f05760405162461bcd60e51b815260206004820152600e60248201526d24b73b30b634b21029b4b3b732b960911b604482015260640161037b565b8134146106305760405162461bcd60e51b815260206004820152600e60248201526d09cdee8408adcdeeaced0408ae8d60931b604482015260640161037b565b610bb88360045461064191906116dd565b111561067c5760405162461bcd60e51b815260206004820152600a6024820152694d617820537570706c7960b01b604482015260640161037b565b6005546040516370a0823160e01b81526001600160a01b03868116600483015260009216906370a0823190602401602060405180830381865afa1580156106c7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106eb91906116c4565b1161072c5760405162461bcd60e51b8152602060048201526011602482015270496e76616c696420462062616c616e636560781b604482015260640161037b565b60005b838110156108f05760055486516001600160a01b03808816921690636352211e90899085908110610762576107626116f0565b60200260200101516040518263ffffffff1660e01b815260040161078891815260200190565b602060405180830381865afa1580156107a5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107c99190611706565b6001600160a01b03161461080f5760405162461bcd60e51b815260206004820152600d60248201526c24b73b30b634b21027bbb732b960991b604482015260640161037b565b60055486516001600160a01b03909116906324ecff3e90889084908110610838576108386116f0565b60200260200101516040518263ffffffff1660e01b815260040161085e91815260200190565b602060405180830381865afa15801561087b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061089f91906116c4565b156108de5760405162461bcd60e51b815260206004820152600f60248201526e0416c7265616479204c6576656c557608c1b604482015260640161037b565b806108e881611723565b91505061072f565b506008544210158015610904575060095442105b6109455760405162461bcd60e51b8152602060048201526012602482015271135a5b9d081b9bdd081cdd185c9d081e595d60721b604482015260640161037b565b6006546040516339a55f6160e01b81526001600160a01b03868116600483015260248201869052909116906339a55f6190604401600060405180830381600087803b15801561099357600080fd5b505af11580156109a7573d6000803e3d6000fd5b505050506109b6848683610e7b565b82600460008282546109c891906116dd565b909155505060018055505050505050565b6000546001600160a01b03163314610a035760405162461bcd60e51b815260040161037b9061173c565b610a0d6000610f64565b565b6000546001600160a01b03163314610a395760405162461bcd60e51b815260040161037b9061173c565b600355565b6005546040516370a0823160e01b81526001600160a01b0383811660048301526060926000929116906370a0823190602401602060405180830381865afa158015610a8d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ab191906116c4565b905060008167ffffffffffffffff811115610ace57610ace611434565b604051908082528060200260200182016040528015610af7578160200160208202803683370190505b5090506000805b83811015610c3057600554604051632f745c5960e01b81526001600160a01b038881166004830152602482018490526000921690632f745c5990604401602060405180830381865afa158015610b58573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b7c91906116c4565b6005546040516312767f9f60e11b8152600481018390529192506001600160a01b0316906324ecff3e90602401602060405180830381865afa158015610bc6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bea91906116c4565b600003610c1d5780848481518110610c0457610c046116f0565b602090810291909101015282610c1981611723565b9350505b5080610c2881611723565b915050610afe565b5060008167ffffffffffffffff811115610c4c57610c4c611434565b604051908082528060200260200182016040528015610c75578160200160208202803683370190505b50905060005b82811015610ccc57838181518110610c9557610c956116f0565b6020026020010151828281518110610caf57610caf6116f0565b602090810291909101015280610cc481611723565b915050610c7b565b5095945050505050565b6000546001600160a01b03163314610d005760405162461bcd60e51b815260040161037b9061173c565b8015610d1157610d0e610fb4565b50565b610d0e61104c565b6000546001600160a01b03163314610d435760405162461bcd60e51b815260040161037b9061173c565b600891909155600955565b6000546001600160a01b03163314610d785760405162461bcd60e51b815260040161037b9061173c565b6001600160a01b038116610ddd5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161037b565b610d0e81610f64565b604080516001600160a01b038316602080830182905283518084038201815283850185528051908201207f19457468657265756d205369676e6564204d6573736167653a0a3332000000006060850152607c80850182905285518086039091018152609c909401909452825192019190912060009291610e6682876110c6565b6001600160a01b031614925050505b92915050565b60005b8251811015610f1b5760055483516001600160a01b0390911690633a1ad04690859084908110610eb057610eb06116f0565b60200260200101516040518263ffffffff1660e01b8152600401610ed691815260200190565b600060405180830381600087803b158015610ef057600080fd5b505af1158015610f04573d6000803e3d6000fd5b505050508080610f1390611723565b915050610e7e565b50826001600160a01b03167f334d970df67732ddcdd87ade05adb5e43fc7175f32d22427c4f69b0e5a05f5368383604051610f57929190611771565b60405180910390a2505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60025460ff1615610ffa5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015260640161037b565b6002805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25861102f3390565b6040516001600160a01b03909116815260200160405180910390a1565b60025460ff166110955760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015260640161037b565b6002805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa3361102f565b60008060006110d585856110ea565b915091506110e281611158565b509392505050565b60008082516041036111205760208301516040840151606085015160001a6111148782858561130e565b94509450505050611151565b8251604003611149576020830151604084015161113e8683836113fb565b935093505050611151565b506000905060025b9250929050565b600081600481111561116c5761116c611793565b036111745750565b600181600481111561118857611188611793565b036111d55760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e61747572650000000000000000604482015260640161037b565b60028160048111156111e9576111e9611793565b036112365760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e67746800604482015260640161037b565b600381600481111561124a5761124a611793565b036112a25760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b606482015260840161037b565b60048160048111156112b6576112b6611793565b03610d0e5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b606482015260840161037b565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561134557506000905060036113f2565b8460ff16601b1415801561135d57508460ff16601c14155b1561136e57506000905060046113f2565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa1580156113c2573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166113eb576000600192509250506113f2565b9150600090505b94509492505050565b6000806001600160ff1b0383168161141860ff86901c601b6116dd565b90506114268782888561130e565b935093505050935093915050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561147357611473611434565b604052919050565b600082601f83011261148c57600080fd5b8135602067ffffffffffffffff8211156114a8576114a8611434565b8160051b6114b782820161144a565b92835284810182019282810190878511156114d157600080fd5b83870192505b848310156114f0578235825291830191908301906114d7565b979650505050505050565b6000806040838503121561150e57600080fd5b823567ffffffffffffffff8082111561152657600080fd5b818501915085601f83011261153a57600080fd5b813560208282111561154e5761154e611434565b611560601f8301601f1916820161144a565b828152888284870101111561157457600080fd5b8282860183830137600092810182019290925290945085013591508082111561159c57600080fd5b506115a98582860161147b565b9150509250929050565b6000602082840312156115c557600080fd5b5035919050565b6001600160a01b0381168114610d0e57600080fd5b6000602082840312156115f357600080fd5b81356115fe816115cc565b9392505050565b600081518084526020808501945080840160005b8381101561163557815187529582019590820190600101611619565b509495945050505050565b6020815260006115fe6020830184611605565b60006020828403121561166557600080fd5b813580151581146115fe57600080fd5b6000806040838503121561168857600080fd5b50508035926020909101359150565b634e487b7160e01b600052601160045260246000fd5b8082028115828204841417610e7557610e75611697565b6000602082840312156116d657600080fd5b5051919050565b80820180821115610e7557610e75611697565b634e487b7160e01b600052603260045260246000fd5b60006020828403121561171857600080fd5b81516115fe816115cc565b60006001820161173557611735611697565b5060010190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6040815260006117846040830185611605565b90508260208301529392505050565b634e487b7160e01b600052602160045260246000fdfea264697066735822122017157e6ec69e7e05d9aa62522e6a6a26d0bcca81eebde257904ecb7bbb82c45764736f6c634300081100330000000000000000000000005100c2913ff11bf2a21745b3c2e90f43e3699ab80000000000000000000000007fe8969bd50d75625c40fdce5363507445d9d156000000000000000000000000bfdbd0392f843c4a6309b47b88e01ecb10088b0200000000000000000000000000000000000000000000000001bfa45519b300000000000000000000000000000000000000000000000000000000000063c89bec00000000000000000000000000000000000000000000000000000001dbf82cd0

Deployed Bytecode

0x6080604052600436106101095760003560e01c806391b7f5ed11610095578063bedb86fb11610064578063bedb86fb1461029e578063c7574839146102be578063ca87e67e146102de578063ed338ff1146102fe578063f2fde38b1461031457600080fd5b806391b7f5ed14610225578063a035b1fe14610245578063b8eb35461461025b578063ba33d1571461027157600080fd5b80633f407b84116100dc5780633f407b84146101a65780635ac21286146101bc5780635c975abb146101cf578063715018a6146101f25780638da5cb5b1461020757600080fd5b80630c4c6cb81461010e5780630f31c6321461014b5780631cbaee2d146101625780633981462e14610186575b600080fd5b34801561011a57600080fd5b5060065461012e906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b34801561015757600080fd5b50610160610334565b005b34801561016e57600080fd5b5061017860085481565b604051908152602001610142565b34801561019257600080fd5b5060055461012e906001600160a01b031681565b3480156101b257600080fd5b5061017860045481565b6101606101ca3660046114fb565b610428565b3480156101db57600080fd5b5060025460ff166040519015158152602001610142565b3480156101fe57600080fd5b506101606109d9565b34801561021357600080fd5b506000546001600160a01b031661012e565b34801561023157600080fd5b506101606102403660046115b3565b610a0f565b34801561025157600080fd5b5061017860035481565b34801561026757600080fd5b50610178610bb881565b34801561027d57600080fd5b5061029161028c3660046115e1565b610a3e565b6040516101429190611640565b3480156102aa57600080fd5b506101606102b9366004611653565b610cd6565b3480156102ca57600080fd5b5060075461012e906001600160a01b031681565b3480156102ea57600080fd5b506101606102f9366004611675565b610d19565b34801561030a57600080fd5b5061017860095481565b34801561032057600080fd5b5061016061032f3660046115e1565b610d4e565b6007546001600160a01b031633146103845760405162461bcd60e51b815260206004820152600e60248201526d139bdd08105d5d1a1bdc9a5e995960921b60448201526064015b60405180910390fd5b60075460405147916000916001600160a01b039091169083908381818185875af1925050503d80600081146103d5576040519150601f19603f3d011682016040523d82523d6000602084013e6103da565b606091505b50509050806104245760405162461bcd60e51b815260206004820152601660248201527508cc2d2d8cac840a8de40aed2e8d0c8e4c2ee408ae8d60531b604482015260640161037b565b5050565b60026001540361047a5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161037b565b600260015561048b60025460ff1690565b156104cb5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015260640161037b565b80516003543391906000906104e19083906116ad565b90506000600660009054906101000a90046001600160a01b03166001600160a01b03166318160ddd6040518163ffffffff1660e01b81526004016020604051808303816000875af115801561053a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061055e91906116c4565b90506001600160a01b0384163b156105a95760405162461bcd60e51b815260206004820152600e60248201526d24b73b30b634b21029b2b73232b960911b604482015260640161037b565b6105b38685610de6565b6105f05760405162461bcd60e51b815260206004820152600e60248201526d24b73b30b634b21029b4b3b732b960911b604482015260640161037b565b8134146106305760405162461bcd60e51b815260206004820152600e60248201526d09cdee8408adcdeeaced0408ae8d60931b604482015260640161037b565b610bb88360045461064191906116dd565b111561067c5760405162461bcd60e51b815260206004820152600a6024820152694d617820537570706c7960b01b604482015260640161037b565b6005546040516370a0823160e01b81526001600160a01b03868116600483015260009216906370a0823190602401602060405180830381865afa1580156106c7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106eb91906116c4565b1161072c5760405162461bcd60e51b8152602060048201526011602482015270496e76616c696420462062616c616e636560781b604482015260640161037b565b60005b838110156108f05760055486516001600160a01b03808816921690636352211e90899085908110610762576107626116f0565b60200260200101516040518263ffffffff1660e01b815260040161078891815260200190565b602060405180830381865afa1580156107a5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107c99190611706565b6001600160a01b03161461080f5760405162461bcd60e51b815260206004820152600d60248201526c24b73b30b634b21027bbb732b960991b604482015260640161037b565b60055486516001600160a01b03909116906324ecff3e90889084908110610838576108386116f0565b60200260200101516040518263ffffffff1660e01b815260040161085e91815260200190565b602060405180830381865afa15801561087b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061089f91906116c4565b156108de5760405162461bcd60e51b815260206004820152600f60248201526e0416c7265616479204c6576656c557608c1b604482015260640161037b565b806108e881611723565b91505061072f565b506008544210158015610904575060095442105b6109455760405162461bcd60e51b8152602060048201526012602482015271135a5b9d081b9bdd081cdd185c9d081e595d60721b604482015260640161037b565b6006546040516339a55f6160e01b81526001600160a01b03868116600483015260248201869052909116906339a55f6190604401600060405180830381600087803b15801561099357600080fd5b505af11580156109a7573d6000803e3d6000fd5b505050506109b6848683610e7b565b82600460008282546109c891906116dd565b909155505060018055505050505050565b6000546001600160a01b03163314610a035760405162461bcd60e51b815260040161037b9061173c565b610a0d6000610f64565b565b6000546001600160a01b03163314610a395760405162461bcd60e51b815260040161037b9061173c565b600355565b6005546040516370a0823160e01b81526001600160a01b0383811660048301526060926000929116906370a0823190602401602060405180830381865afa158015610a8d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ab191906116c4565b905060008167ffffffffffffffff811115610ace57610ace611434565b604051908082528060200260200182016040528015610af7578160200160208202803683370190505b5090506000805b83811015610c3057600554604051632f745c5960e01b81526001600160a01b038881166004830152602482018490526000921690632f745c5990604401602060405180830381865afa158015610b58573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b7c91906116c4565b6005546040516312767f9f60e11b8152600481018390529192506001600160a01b0316906324ecff3e90602401602060405180830381865afa158015610bc6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bea91906116c4565b600003610c1d5780848481518110610c0457610c046116f0565b602090810291909101015282610c1981611723565b9350505b5080610c2881611723565b915050610afe565b5060008167ffffffffffffffff811115610c4c57610c4c611434565b604051908082528060200260200182016040528015610c75578160200160208202803683370190505b50905060005b82811015610ccc57838181518110610c9557610c956116f0565b6020026020010151828281518110610caf57610caf6116f0565b602090810291909101015280610cc481611723565b915050610c7b565b5095945050505050565b6000546001600160a01b03163314610d005760405162461bcd60e51b815260040161037b9061173c565b8015610d1157610d0e610fb4565b50565b610d0e61104c565b6000546001600160a01b03163314610d435760405162461bcd60e51b815260040161037b9061173c565b600891909155600955565b6000546001600160a01b03163314610d785760405162461bcd60e51b815260040161037b9061173c565b6001600160a01b038116610ddd5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161037b565b610d0e81610f64565b604080516001600160a01b038316602080830182905283518084038201815283850185528051908201207f19457468657265756d205369676e6564204d6573736167653a0a3332000000006060850152607c80850182905285518086039091018152609c909401909452825192019190912060009291610e6682876110c6565b6001600160a01b031614925050505b92915050565b60005b8251811015610f1b5760055483516001600160a01b0390911690633a1ad04690859084908110610eb057610eb06116f0565b60200260200101516040518263ffffffff1660e01b8152600401610ed691815260200190565b600060405180830381600087803b158015610ef057600080fd5b505af1158015610f04573d6000803e3d6000fd5b505050508080610f1390611723565b915050610e7e565b50826001600160a01b03167f334d970df67732ddcdd87ade05adb5e43fc7175f32d22427c4f69b0e5a05f5368383604051610f57929190611771565b60405180910390a2505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60025460ff1615610ffa5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015260640161037b565b6002805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25861102f3390565b6040516001600160a01b03909116815260200160405180910390a1565b60025460ff166110955760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015260640161037b565b6002805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa3361102f565b60008060006110d585856110ea565b915091506110e281611158565b509392505050565b60008082516041036111205760208301516040840151606085015160001a6111148782858561130e565b94509450505050611151565b8251604003611149576020830151604084015161113e8683836113fb565b935093505050611151565b506000905060025b9250929050565b600081600481111561116c5761116c611793565b036111745750565b600181600481111561118857611188611793565b036111d55760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e61747572650000000000000000604482015260640161037b565b60028160048111156111e9576111e9611793565b036112365760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e67746800604482015260640161037b565b600381600481111561124a5761124a611793565b036112a25760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b606482015260840161037b565b60048160048111156112b6576112b6611793565b03610d0e5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b606482015260840161037b565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561134557506000905060036113f2565b8460ff16601b1415801561135d57508460ff16601c14155b1561136e57506000905060046113f2565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa1580156113c2573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166113eb576000600192509250506113f2565b9150600090505b94509492505050565b6000806001600160ff1b0383168161141860ff86901c601b6116dd565b90506114268782888561130e565b935093505050935093915050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561147357611473611434565b604052919050565b600082601f83011261148c57600080fd5b8135602067ffffffffffffffff8211156114a8576114a8611434565b8160051b6114b782820161144a565b92835284810182019282810190878511156114d157600080fd5b83870192505b848310156114f0578235825291830191908301906114d7565b979650505050505050565b6000806040838503121561150e57600080fd5b823567ffffffffffffffff8082111561152657600080fd5b818501915085601f83011261153a57600080fd5b813560208282111561154e5761154e611434565b611560601f8301601f1916820161144a565b828152888284870101111561157457600080fd5b8282860183830137600092810182019290925290945085013591508082111561159c57600080fd5b506115a98582860161147b565b9150509250929050565b6000602082840312156115c557600080fd5b5035919050565b6001600160a01b0381168114610d0e57600080fd5b6000602082840312156115f357600080fd5b81356115fe816115cc565b9392505050565b600081518084526020808501945080840160005b8381101561163557815187529582019590820190600101611619565b509495945050505050565b6020815260006115fe6020830184611605565b60006020828403121561166557600080fd5b813580151581146115fe57600080fd5b6000806040838503121561168857600080fd5b50508035926020909101359150565b634e487b7160e01b600052601160045260246000fd5b8082028115828204841417610e7557610e75611697565b6000602082840312156116d657600080fd5b5051919050565b80820180821115610e7557610e75611697565b634e487b7160e01b600052603260045260246000fd5b60006020828403121561171857600080fd5b81516115fe816115cc565b60006001820161173557611735611697565b5060010190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6040815260006117846040830185611605565b90508260208301529392505050565b634e487b7160e01b600052602160045260246000fdfea264697066735822122017157e6ec69e7e05d9aa62522e6a6a26d0bcca81eebde257904ecb7bbb82c45764736f6c63430008110033

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

0000000000000000000000005100c2913ff11bf2a21745b3c2e90f43e3699ab80000000000000000000000007fe8969bd50d75625c40fdce5363507445d9d156000000000000000000000000bfdbd0392f843c4a6309b47b88e01ecb10088b0200000000000000000000000000000000000000000000000001bfa45519b300000000000000000000000000000000000000000000000000000000000063c89bec00000000000000000000000000000000000000000000000000000001dbf82cd0

-----Decoded View---------------
Arg [0] : _f (address): 0x5100c2913ff11Bf2a21745B3C2E90f43E3699AB8
Arg [1] : _g (address): 0x7Fe8969Bd50D75625c40fDCe5363507445D9D156
Arg [2] : _wallet (address): 0xbFdbd0392f843C4a6309b47b88e01eCB10088b02
Arg [3] : _price (uint256): 126000000000000000
Arg [4] : start (uint256): 1674091500
Arg [5] : end (uint256): 7985442000

-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 0000000000000000000000005100c2913ff11bf2a21745b3c2e90f43e3699ab8
Arg [1] : 0000000000000000000000007fe8969bd50d75625c40fdce5363507445d9d156
Arg [2] : 000000000000000000000000bfdbd0392f843c4a6309b47b88e01ecb10088b02
Arg [3] : 00000000000000000000000000000000000000000000000001bfa45519b30000
Arg [4] : 0000000000000000000000000000000000000000000000000000000063c89bec
Arg [5] : 00000000000000000000000000000000000000000000000000000001dbf82cd0


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.