ETH Price: $2,950.50 (-2.00%)

Contract

0xb636433D8081593b02b1ecCF1118Ad05c100e0A4
 

Overview

ETH Balance

0.00855 ETH

ETH Value

$25.23 (@ $2,950.50/ETH)

Token Holdings

More Info

Private Name Tags

Transaction Hash
Block
From
To
Mint135925662025-01-04 12:49:07389 days ago1735994947IN
0xb636433D...5c100e0A4
0.000033 ETH0.000000270.0031467
Mint109608582024-11-04 14:45:31450 days ago1730731531IN
0xb636433D...5c100e0A4
0.000033 ETH0.000003490.00055299
Mint109608352024-11-04 14:44:45450 days ago1730731485IN
0xb636433D...5c100e0A4
0.000033 ETH0.000003770.00054874
Mint109587522024-11-04 13:35:19450 days ago1730727319IN
0xb636433D...5c100e0A4
0.000033 ETH0.000000630.00049898
Mint109587032024-11-04 13:33:41450 days ago1730727221IN
0xb636433D...5c100e0A4
0.000033 ETH0.000000760.00145989
Mint105674982024-10-26 12:13:31459 days ago1729944811IN
0xb636433D...5c100e0A4
0.000033 ETH0.000000270.0038
Mint105664792024-10-26 11:39:33459 days ago1729942773IN
0xb636433D...5c100e0A4
0.000033 ETH0.000000180.00279861
Mint101807822024-10-17 13:22:59468 days ago1729171379IN
0xb636433D...5c100e0A4
0.000033 ETH0.000000310.00415903
Mint101807032024-10-17 13:20:21468 days ago1729171221IN
0xb636433D...5c100e0A4
0.000033 ETH0.000000290.00398558
Mint101806872024-10-17 13:19:49468 days ago1729171189IN
0xb636433D...5c100e0A4
0.000033 ETH0.000000290.00390443
Mint101805992024-10-17 13:16:53468 days ago1729171013IN
0xb636433D...5c100e0A4
0.000033 ETH0.000000280.0036507
Mint101805852024-10-17 13:16:25468 days ago1729170985IN
0xb636433D...5c100e0A4
0.000033 ETH0.000000280.00367369
Mint99158812024-10-11 10:12:57474 days ago1728641577IN
0xb636433D...5c100e0A4
0.000033 ETH0.000000450.00688446
Mint97969582024-10-08 16:08:51477 days ago1728403731IN
0xb636433D...5c100e0A4
0.000033 ETH0.00000030.00312922
Mint95144262024-10-02 3:11:07484 days ago1727838667IN
0xb636433D...5c100e0A4
0.000033 ETH0.000000140.00222705
Mint94170832024-09-29 21:06:21486 days ago1727643981IN
0xb636433D...5c100e0A4
0.000033 ETH0.000000070.00087555
Mint94164752024-09-29 20:46:05486 days ago1727642765IN
0xb636433D...5c100e0A4
0.000033 ETH0.000000070.00093033
Mint89433462024-09-18 21:55:07497 days ago1726696507IN
0xb636433D...5c100e0A4
0.000033 ETH0.000000240.00367644
Mint86822932024-09-12 20:53:21503 days ago1726174401IN
0xb636433D...5c100e0A4
0.000033 ETH0.000000640.0111
Mint86418612024-09-11 22:25:37504 days ago1726093537IN
0xb636433D...5c100e0A4
0.000033 ETH0.000000510.00888546
Mint85866302024-09-10 15:44:35505 days ago1725983075IN
0xb636433D...5c100e0A4
0.000033 ETH0.000000520.00856628
Mint85729012024-09-10 8:06:57505 days ago1725955617IN
0xb636433D...5c100e0A4
0.000033 ETH0.000000240.00404469
Mint85728762024-09-10 8:06:07505 days ago1725955567IN
0xb636433D...5c100e0A4
0.000033 ETH0.000000290.00486521
Mint85728552024-09-10 8:05:25505 days ago1725955525IN
0xb636433D...5c100e0A4
0.000033 ETH0.000000230.00379322
Mint85728362024-09-10 8:04:47505 days ago1725955487IN
0xb636433D...5c100e0A4
0.000033 ETH0.000000280.00477535
View all transactions

Latest 2 internal transactions

Advanced mode:
Parent Transaction Hash Block From To
83042042024-09-04 2:50:23512 days ago1725418223
0xb636433D...5c100e0A4
0.04734 ETH
74965362024-08-16 10:08:07530 days ago1723802887  Contract Creation0 ETH

Cross-Chain Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
CyberNFTGate

Compiler Version
v0.8.14+commit.80d49f37

Optimization Enabled:
Yes with 200 runs

Other Settings:
london EvmVersion
// SPDX-License-Identifier: GPL-3.0-or-later

pragma solidity 0.8.14;

import { IERC20 } from "openzeppelin-contracts/contracts/token/ERC20/IERC20.sol";
import { SafeERC20 } from "openzeppelin-contracts/contracts/token/ERC20/utils/SafeERC20.sol";
import { Ownable } from "openzeppelin-contracts/contracts/access/Ownable.sol";
import { Pausable } from "openzeppelin-contracts/contracts/security/Pausable.sol";

contract CyberNFTGate is Ownable, Pausable {
    using SafeERC20 for IERC20;

    /*//////////////////////////////////////////////////////////////
                            STRUCT
    //////////////////////////////////////////////////////////////*/

    struct NFTConfig {
        bool isWhitelist;
        uint256 mintFee;
    }

    /*//////////////////////////////////////////////////////////////
                            EVENT
    //////////////////////////////////////////////////////////////*/

    event Mint(
        bytes32 requestId,
        address from,
        address nft,
        address to,
        uint256 tokenId,
        uint256 amount
    );

    /*//////////////////////////////////////////////////////////////
                            STORAGE
    //////////////////////////////////////////////////////////////*/

    mapping(bytes32 => bool) public requestIdUsed;
    mapping(address => NFTConfig) public nftConfigs;
    uint256 public fixedFee;

    /*//////////////////////////////////////////////////////////////
                        CONSTRUCTOR & INITIALIZER
    //////////////////////////////////////////////////////////////*/

    constructor(address _owner) {
        _transferOwnership(_owner);
        fixedFee = 0.000003 ether;
    }

    /*//////////////////////////////////////////////////////////////
                                 EXTERNAL
    //////////////////////////////////////////////////////////////*/

    function mint(
        bytes32 requestId,
        address nft,
        address to,
        uint256 tokenId,
        uint256 amount
    ) external payable whenNotPaused {
        require(to != address(0), "INVALID_ADDRESS_ZERO");
        require(requestId != bytes32(0), "INVALID_REQUEST_ID");
        require(amount > 0, "INVALID_AMOUNT");

        NFTConfig memory nftConfig = nftConfigs[nft];
        require(nftConfig.isWhitelist, "NFT_NOT_WHITELISTED");
        require(msg.value == requiredFee(nft, amount), "WRONG_MINT_FEE");
        require(!requestIdUsed[requestId], "REQUEST_ID_USED");
        requestIdUsed[requestId] = true;

        emit Mint(requestId, msg.sender, nft, to, tokenId, amount);
    }

    function requiredFee(
        address nft,
        uint256 amount
    ) public view returns (uint256) {
        require(amount > 0, "INVALID_AMOUNT");
        NFTConfig memory nftConfig = nftConfigs[nft];
        require(nftConfig.isWhitelist, "NFT_NOT_WHITELISTED");
        return amount * nftConfig.mintFee + fixedFee;
    }

    /*//////////////////////////////////////////////////////////////
                            ONLY OWNER 
    //////////////////////////////////////////////////////////////*/

    function withdraw(address token) external onlyOwner {
        if (token == address(0)) {
            (bool success, ) = owner().call{ value: address(this).balance }("");
            require(success, "WITHDRAW_FAILED");
        } else {
            IERC20(token).safeTransfer(
                owner(),
                IERC20(token).balanceOf(address(this))
            );
        }
    }

    function pause() external onlyOwner {
        _pause();
    }

    function unpause() external onlyOwner {
        _unpause();
    }

    function setNFTConfig(
        address nft,
        bool isWhitelist,
        uint256 mintFee
    ) external onlyOwner {
        nftConfigs[nft] = NFTConfig(isWhitelist, mintFee);
    }

    function setFixedFee(uint256 fee) external onlyOwner {
        fixedFee = fee;
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.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.8.0) (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";
import "../extensions/draft-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;

    function safeTransfer(
        IERC20 token,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    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));
    }

    function safeIncreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        uint256 newAllowance = token.allowance(address(this), spender) + value;
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    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");
            uint256 newAllowance = oldAllowance - value;
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
        }
    }

    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");
        if (returndata.length > 0) {
            // Return data is optional
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.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 anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _transferOwnership(address(0));
    }

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

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

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (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 Modifier to make a function callable only when the contract is not paused.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    modifier whenNotPaused() {
        _requireNotPaused();
        _;
    }

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

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

    /**
     * @dev Throws if the contract is paused.
     */
    function _requireNotPaused() internal view virtual {
        require(!paused(), "Pausable: paused");
    }

    /**
     * @dev Throws if the contract is not paused.
     */
    function _requirePaused() internal view virtual {
        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());
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/draft-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.8.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        (bool success, ) = recipient.call{value: amount}("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain `call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return 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;
    }
}

Settings
{
  "remappings": [
    "ds-test/=lib/forge-std/lib/ds-test/src/",
    "forge-std/=lib/forge-std/src/",
    "openzeppelin-contracts/=lib/openzeppelin-contracts/",
    "solmate/=lib/solmate/",
    "kernel/=lib/kernel/",
    "account-abstraction/=lib/account-abstraction/contracts/",
    "@ensdomains/=lib/account-abstraction/node_modules/@ensdomains/",
    "@openzeppelin/=lib/kernel/lib/openzeppelin-contracts/",
    "hardhat-deploy/=lib/account-abstraction/node_modules/hardhat-deploy/",
    "solady/=lib/kernel/lib/solady/"
  ],
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "metadata": {
    "useLiteralContent": false,
    "bytecodeHash": "ipfs"
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "evmVersion": "london",
  "viaIR": false,
  "libraries": {}
}

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bytes32","name":"requestId","type":"bytes32"},{"indexed":false,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"address","name":"nft","type":"address"},{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Mint","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":[],"name":"fixedFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"requestId","type":"bytes32"},{"internalType":"address","name":"nft","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"nftConfigs","outputs":[{"internalType":"bool","name":"isWhitelist","type":"bool"},{"internalType":"uint256","name":"mintFee","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"requestIdUsed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"nft","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"requiredFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"fee","type":"uint256"}],"name":"setFixedFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"nft","type":"address"},{"internalType":"bool","name":"isWhitelist","type":"bool"},{"internalType":"uint256","name":"mintFee","type":"uint256"}],"name":"setNFTConfig","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405234801561001057600080fd5b50604051610fe3380380610fe383398101604081905261002f916100ae565b6100383361005e565b6000805460ff60a01b1916905561004e8161005e565b506502ba7def30006003556100de565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000602082840312156100c057600080fd5b81516001600160a01b03811681146100d757600080fd5b9392505050565b610ef6806100ed6000396000f3fe6080604052600436106100dd5760003560e01c80638da5cb5b1161007f578063cce0be8a11610059578063cce0be8a14610233578063e6bf66af14610284578063e8402e7c14610297578063f2fde38b146102b757600080fd5b80638da5cb5b146101c757806391792d5b146101ef578063c791e7321461021357600080fd5b806351cff8d9116100bb57806351cff8d91461015e5780635c975abb1461017e578063715018a61461019d5780638456cb59146101b257600080fd5b80632ec922f6146100e257806337de8106146101275780633f4ba83a14610149575b600080fd5b3480156100ee57600080fd5b506101126100fd366004610ca2565b60016020526000908152604090205460ff1681565b60405190151581526020015b60405180910390f35b34801561013357600080fd5b50610147610142366004610ca2565b6102d7565b005b34801561015557600080fd5b506101476102e4565b34801561016a57600080fd5b50610147610179366004610cd7565b6102f6565b34801561018a57600080fd5b50600054600160a01b900460ff16610112565b3480156101a957600080fd5b5061014761043b565b3480156101be57600080fd5b5061014761044d565b3480156101d357600080fd5b506000546040516001600160a01b03909116815260200161011e565b3480156101fb57600080fd5b5061020560035481565b60405190815260200161011e565b34801561021f57600080fd5b5061020561022e366004610cf9565b61045d565b34801561023f57600080fd5b5061026d61024e366004610cd7565b6002602052600090815260409020805460019091015460ff9091169082565b60408051921515835260208301919091520161011e565b610147610292366004610d23565b610540565b3480156102a357600080fd5b506101476102b2366004610d7f565b6107b2565b3480156102c357600080fd5b506101476102d2366004610cd7565b610801565b6102df610877565b600355565b6102ec610877565b6102f46108d1565b565b6102fe610877565b6001600160a01b0381166103aa57600080546040516001600160a01b039091169047908381818185875af1925050503d8060008114610359576040519150601f19603f3d011682016040523d82523d6000602084013e61035e565b606091505b50509050806103a65760405162461bcd60e51b815260206004820152600f60248201526e15d2551211149055d7d19052531151608a1b60448201526064015b60405180910390fd5b5050565b6104386103bf6000546001600160a01b031690565b6040516370a0823160e01b81523060048201526001600160a01b038416906370a0823190602401602060405180830381865afa158015610403573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104279190610dbe565b6001600160a01b0384169190610926565b50565b610443610877565b6102f4600061097d565b610455610877565b6102f46109cd565b600080821161049f5760405162461bcd60e51b815260206004820152600e60248201526d1253959053125117d05353d5539560921b604482015260640161039d565b6001600160a01b0383166000908152600260209081526040918290208251808401909352805460ff1615158084526001909101549183019190915261051c5760405162461bcd60e51b815260206004820152601360248201527213919517d393d517d5d2125511531254d51151606a1b604482015260640161039d565b600354602082015161052e9085610ded565b6105389190610e0c565b949350505050565b610548610a10565b6001600160a01b0383166105955760405162461bcd60e51b8152602060048201526014602482015273494e56414c49445f414444524553535f5a45524f60601b604482015260640161039d565b846105d75760405162461bcd60e51b81526020600482015260126024820152711253959053125117d49154555154d517d25160721b604482015260640161039d565b600081116106185760405162461bcd60e51b815260206004820152600e60248201526d1253959053125117d05353d5539560921b604482015260640161039d565b6001600160a01b0384166000908152600260209081526040918290208251808401909352805460ff161515808452600190910154918301919091526106955760405162461bcd60e51b815260206004820152601360248201527213919517d393d517d5d2125511531254d51151606a1b604482015260640161039d565b61069f858361045d565b34146106de5760405162461bcd60e51b815260206004820152600e60248201526d57524f4e475f4d494e545f46454560901b604482015260640161039d565b60008681526001602052604090205460ff161561072f5760405162461bcd60e51b815260206004820152600f60248201526e149154555154d517d25117d554d151608a1b604482015260640161039d565b600086815260016020818152604092839020805460ff1916909217909155815188815233918101919091526001600160a01b0387811682840152861660608201526080810185905260a0810184905290517f78c254946944bac7cd09f784ede139938b4ab6f826a517d98dfd1cdfa58527819181900360c00190a1505050505050565b6107ba610877565b604080518082018252921515835260208084019283526001600160a01b0394909416600090815260029094529092209051815460ff19169015151781559051600190910155565b610809610877565b6001600160a01b03811661086e5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161039d565b6104388161097d565b6000546001600160a01b031633146102f45760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161039d565b6108d9610a5d565b6000805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610978908490610aad565b505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6109d5610a10565b6000805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586109093390565b600054600160a01b900460ff16156102f45760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015260640161039d565b600054600160a01b900460ff166102f45760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015260640161039d565b6000610b02826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316610b7f9092919063ffffffff16565b8051909150156109785780806020019051810190610b209190610e24565b6109785760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b606482015260840161039d565b6060610538848460008585600080866001600160a01b03168587604051610ba69190610e71565b60006040518083038185875af1925050503d8060008114610be3576040519150601f19603f3d011682016040523d82523d6000602084013e610be8565b606091505b5091509150610bf987838387610c04565b979650505050505050565b60608315610c73578251600003610c6c576001600160a01b0385163b610c6c5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161039d565b5081610538565b6105388383815115610c885781518083602001fd5b8060405162461bcd60e51b815260040161039d9190610e8d565b600060208284031215610cb457600080fd5b5035919050565b80356001600160a01b0381168114610cd257600080fd5b919050565b600060208284031215610ce957600080fd5b610cf282610cbb565b9392505050565b60008060408385031215610d0c57600080fd5b610d1583610cbb565b946020939093013593505050565b600080600080600060a08688031215610d3b57600080fd5b85359450610d4b60208701610cbb565b9350610d5960408701610cbb565b94979396509394606081013594506080013592915050565b801515811461043857600080fd5b600080600060608486031215610d9457600080fd5b610d9d84610cbb565b92506020840135610dad81610d71565b929592945050506040919091013590565b600060208284031215610dd057600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b6000816000190483118215151615610e0757610e07610dd7565b500290565b60008219821115610e1f57610e1f610dd7565b500190565b600060208284031215610e3657600080fd5b8151610cf281610d71565b60005b83811015610e5c578181015183820152602001610e44565b83811115610e6b576000848401525b50505050565b60008251610e83818460208701610e41565b9190910192915050565b6020815260008251806020840152610eac816040850160208701610e41565b601f01601f1916919091016040019291505056fea26469706673582212204a9b9e265e61075b99f6d6747086e5c8ab47982473bff3bb6bfbbfa68d8c173164736f6c634300080e00330000000000000000000000007884f7f04f994da14302a16cf15e597e31eebecf

Deployed Bytecode

0x6080604052600436106100dd5760003560e01c80638da5cb5b1161007f578063cce0be8a11610059578063cce0be8a14610233578063e6bf66af14610284578063e8402e7c14610297578063f2fde38b146102b757600080fd5b80638da5cb5b146101c757806391792d5b146101ef578063c791e7321461021357600080fd5b806351cff8d9116100bb57806351cff8d91461015e5780635c975abb1461017e578063715018a61461019d5780638456cb59146101b257600080fd5b80632ec922f6146100e257806337de8106146101275780633f4ba83a14610149575b600080fd5b3480156100ee57600080fd5b506101126100fd366004610ca2565b60016020526000908152604090205460ff1681565b60405190151581526020015b60405180910390f35b34801561013357600080fd5b50610147610142366004610ca2565b6102d7565b005b34801561015557600080fd5b506101476102e4565b34801561016a57600080fd5b50610147610179366004610cd7565b6102f6565b34801561018a57600080fd5b50600054600160a01b900460ff16610112565b3480156101a957600080fd5b5061014761043b565b3480156101be57600080fd5b5061014761044d565b3480156101d357600080fd5b506000546040516001600160a01b03909116815260200161011e565b3480156101fb57600080fd5b5061020560035481565b60405190815260200161011e565b34801561021f57600080fd5b5061020561022e366004610cf9565b61045d565b34801561023f57600080fd5b5061026d61024e366004610cd7565b6002602052600090815260409020805460019091015460ff9091169082565b60408051921515835260208301919091520161011e565b610147610292366004610d23565b610540565b3480156102a357600080fd5b506101476102b2366004610d7f565b6107b2565b3480156102c357600080fd5b506101476102d2366004610cd7565b610801565b6102df610877565b600355565b6102ec610877565b6102f46108d1565b565b6102fe610877565b6001600160a01b0381166103aa57600080546040516001600160a01b039091169047908381818185875af1925050503d8060008114610359576040519150601f19603f3d011682016040523d82523d6000602084013e61035e565b606091505b50509050806103a65760405162461bcd60e51b815260206004820152600f60248201526e15d2551211149055d7d19052531151608a1b60448201526064015b60405180910390fd5b5050565b6104386103bf6000546001600160a01b031690565b6040516370a0823160e01b81523060048201526001600160a01b038416906370a0823190602401602060405180830381865afa158015610403573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104279190610dbe565b6001600160a01b0384169190610926565b50565b610443610877565b6102f4600061097d565b610455610877565b6102f46109cd565b600080821161049f5760405162461bcd60e51b815260206004820152600e60248201526d1253959053125117d05353d5539560921b604482015260640161039d565b6001600160a01b0383166000908152600260209081526040918290208251808401909352805460ff1615158084526001909101549183019190915261051c5760405162461bcd60e51b815260206004820152601360248201527213919517d393d517d5d2125511531254d51151606a1b604482015260640161039d565b600354602082015161052e9085610ded565b6105389190610e0c565b949350505050565b610548610a10565b6001600160a01b0383166105955760405162461bcd60e51b8152602060048201526014602482015273494e56414c49445f414444524553535f5a45524f60601b604482015260640161039d565b846105d75760405162461bcd60e51b81526020600482015260126024820152711253959053125117d49154555154d517d25160721b604482015260640161039d565b600081116106185760405162461bcd60e51b815260206004820152600e60248201526d1253959053125117d05353d5539560921b604482015260640161039d565b6001600160a01b0384166000908152600260209081526040918290208251808401909352805460ff161515808452600190910154918301919091526106955760405162461bcd60e51b815260206004820152601360248201527213919517d393d517d5d2125511531254d51151606a1b604482015260640161039d565b61069f858361045d565b34146106de5760405162461bcd60e51b815260206004820152600e60248201526d57524f4e475f4d494e545f46454560901b604482015260640161039d565b60008681526001602052604090205460ff161561072f5760405162461bcd60e51b815260206004820152600f60248201526e149154555154d517d25117d554d151608a1b604482015260640161039d565b600086815260016020818152604092839020805460ff1916909217909155815188815233918101919091526001600160a01b0387811682840152861660608201526080810185905260a0810184905290517f78c254946944bac7cd09f784ede139938b4ab6f826a517d98dfd1cdfa58527819181900360c00190a1505050505050565b6107ba610877565b604080518082018252921515835260208084019283526001600160a01b0394909416600090815260029094529092209051815460ff19169015151781559051600190910155565b610809610877565b6001600160a01b03811661086e5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161039d565b6104388161097d565b6000546001600160a01b031633146102f45760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161039d565b6108d9610a5d565b6000805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610978908490610aad565b505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6109d5610a10565b6000805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586109093390565b600054600160a01b900460ff16156102f45760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015260640161039d565b600054600160a01b900460ff166102f45760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015260640161039d565b6000610b02826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316610b7f9092919063ffffffff16565b8051909150156109785780806020019051810190610b209190610e24565b6109785760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b606482015260840161039d565b6060610538848460008585600080866001600160a01b03168587604051610ba69190610e71565b60006040518083038185875af1925050503d8060008114610be3576040519150601f19603f3d011682016040523d82523d6000602084013e610be8565b606091505b5091509150610bf987838387610c04565b979650505050505050565b60608315610c73578251600003610c6c576001600160a01b0385163b610c6c5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161039d565b5081610538565b6105388383815115610c885781518083602001fd5b8060405162461bcd60e51b815260040161039d9190610e8d565b600060208284031215610cb457600080fd5b5035919050565b80356001600160a01b0381168114610cd257600080fd5b919050565b600060208284031215610ce957600080fd5b610cf282610cbb565b9392505050565b60008060408385031215610d0c57600080fd5b610d1583610cbb565b946020939093013593505050565b600080600080600060a08688031215610d3b57600080fd5b85359450610d4b60208701610cbb565b9350610d5960408701610cbb565b94979396509394606081013594506080013592915050565b801515811461043857600080fd5b600080600060608486031215610d9457600080fd5b610d9d84610cbb565b92506020840135610dad81610d71565b929592945050506040919091013590565b600060208284031215610dd057600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b6000816000190483118215151615610e0757610e07610dd7565b500290565b60008219821115610e1f57610e1f610dd7565b500190565b600060208284031215610e3657600080fd5b8151610cf281610d71565b60005b83811015610e5c578181015183820152602001610e44565b83811115610e6b576000848401525b50505050565b60008251610e83818460208701610e41565b9190910192915050565b6020815260008251806020840152610eac816040850160208701610e41565b601f01601f1916919091016040019291505056fea26469706673582212204a9b9e265e61075b99f6d6747086e5c8ab47982473bff3bb6bfbbfa68d8c173164736f6c634300080e0033

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

0000000000000000000000007884f7f04f994da14302a16cf15e597e31eebecf

-----Decoded View---------------
Arg [0] : _owner (address): 0x7884f7F04F994da14302a16Cf15E597e31eebECf

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000007884f7f04f994da14302a16cf15e597e31eebecf


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
0xb636433D8081593b02b1ecCF1118Ad05c100e0A4
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.