ETH Price: $2,379.20 (-1.62%)

Contract

0x36e0FEb38DEffaB960BC721104edf6f7216786BA
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Buy200206752024-06-04 19:54:11266 days ago1717530851IN
0x36e0FEb3...7216786BA
0.002639 ETH0.0006122513.45562076
Buy200205482024-06-04 19:28:23266 days ago1717529303IN
0x36e0FEb3...7216786BA
0.013145 ETH0.0006734714.80091378
Buy200205252024-06-04 19:23:35266 days ago1717529015IN
0x36e0FEb3...7216786BA
0.065722 ETH0.0009312714.87896447
Buy200202432024-06-04 18:26:59266 days ago1717525619IN
0x36e0FEb3...7216786BA
0.026179 ETH0.0008278418.19359012
Buy200199222024-06-04 17:22:47267 days ago1717521767IN
0x36e0FEb3...7216786BA
0.023545 ETH0.0012591620.11382754
Buy200186282024-06-04 13:02:35267 days ago1717506155IN
0x36e0FEb3...7216786BA
0.013289 ETH0.0008518413.60729911
Buy200181272024-06-04 11:22:11267 days ago1717500131IN
0x36e0FEb3...7216786BA
0.265625 ETH0.000366288.04994142
Buy200180452024-06-04 11:05:47267 days ago1717499147IN
0x36e0FEb3...7216786BA
0.026581 ETH0.000443449.74815284
Buy200179712024-06-04 10:50:59267 days ago1717498259IN
0x36e0FEb3...7216786BA
0.010623 ETH0.0006107713.42297238
Buy200178902024-06-04 10:34:35267 days ago1717497275IN
0x36e0FEb3...7216786BA
0.010647 ETH0.0006364710.16704064
Buy200177622024-06-04 10:08:47267 days ago1717495727IN
0x36e0FEb3...7216786BA
0.053341 ETH0.000572699.14818947
Buy200176822024-06-04 9:52:35267 days ago1717494755IN
0x36e0FEb3...7216786BA
0.053369 ETH0.0004824610.60310863
Buy200176512024-06-04 9:46:23267 days ago1717494383IN
0x36e0FEb3...7216786BA
0.002664 ETH0.0006430210.27161561
Buy200175162024-06-04 9:19:11267 days ago1717492751IN
0x36e0FEb3...7216786BA
0.186121 ETH0.0005007111.0042303
Buy200169642024-06-04 7:27:59267 days ago1717486079IN
0x36e0FEb3...7216786BA
0.028897 ETH0.000414166.61578778
Buy200148732024-06-04 0:28:11267 days ago1717460891IN
0x36e0FEb3...7216786BA
0.021326 ETH0.000339067.45166086
Buy200142162024-06-03 22:16:35267 days ago1717452995IN
0x36e0FEb3...7216786BA
0.10337 ETH0.0005058211.11662464
Buy200141172024-06-03 21:56:35267 days ago1717451795IN
0x36e0FEb3...7216786BA
0.007226 ETH0.0008061712.87782311
Buy200135312024-06-03 19:58:35267 days ago1717444715IN
0x36e0FEb3...7216786BA
0.026517 ETH0.0004879610.72400043
Buy200135062024-06-03 19:53:35267 days ago1717444415IN
0x36e0FEb3...7216786BA
0.053052 ETH0.0005291511.6291698
Buy200134902024-06-03 19:50:23267 days ago1717444223IN
0x36e0FEb3...7216786BA
0.053052 ETH0.0006882815.1265805
Buy200134742024-06-03 19:47:11267 days ago1717444031IN
0x36e0FEb3...7216786BA
0.053019 ETH0.0005659412.43784479
Buy200134712024-06-03 19:46:35267 days ago1717443995IN
0x36e0FEb3...7216786BA
0.013255 ETH0.0005255911.55098732
Buy200134582024-06-03 19:43:59267 days ago1717443839IN
0x36e0FEb3...7216786BA
0.05302 ETH0.0004796310.54090896
Buy200133962024-06-03 19:31:35267 days ago1717443095IN
0x36e0FEb3...7216786BA
0.005028 ETH0.000807312.89577756
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block
From
To
200206752024-06-04 19:54:11266 days ago1717530851
0x36e0FEb3...7216786BA
0.002639 ETH
200205482024-06-04 19:28:23266 days ago1717529303
0x36e0FEb3...7216786BA
0.013145 ETH
200205252024-06-04 19:23:35266 days ago1717529015
0x36e0FEb3...7216786BA
0.065722 ETH
200202432024-06-04 18:26:59266 days ago1717525619
0x36e0FEb3...7216786BA
0.026179 ETH
200199222024-06-04 17:22:47267 days ago1717521767
0x36e0FEb3...7216786BA
0.023545 ETH
200186282024-06-04 13:02:35267 days ago1717506155
0x36e0FEb3...7216786BA
0.013289 ETH
200181272024-06-04 11:22:11267 days ago1717500131
0x36e0FEb3...7216786BA
0.265625 ETH
200180452024-06-04 11:05:47267 days ago1717499147
0x36e0FEb3...7216786BA
0.026581 ETH
200179712024-06-04 10:50:59267 days ago1717498259
0x36e0FEb3...7216786BA
0.010623 ETH
200178902024-06-04 10:34:35267 days ago1717497275
0x36e0FEb3...7216786BA
0.010647 ETH
200177622024-06-04 10:08:47267 days ago1717495727
0x36e0FEb3...7216786BA
0.053341 ETH
200176822024-06-04 9:52:35267 days ago1717494755
0x36e0FEb3...7216786BA
0.053369 ETH
200176512024-06-04 9:46:23267 days ago1717494383
0x36e0FEb3...7216786BA
0.002664 ETH
200175162024-06-04 9:19:11267 days ago1717492751
0x36e0FEb3...7216786BA
0.186121 ETH
200169642024-06-04 7:27:59267 days ago1717486079
0x36e0FEb3...7216786BA
0.028897 ETH
200148732024-06-04 0:28:11267 days ago1717460891
0x36e0FEb3...7216786BA
0.021326 ETH
200142162024-06-03 22:16:35267 days ago1717452995
0x36e0FEb3...7216786BA
0.10337 ETH
200141172024-06-03 21:56:35267 days ago1717451795
0x36e0FEb3...7216786BA
0.007226 ETH
200135312024-06-03 19:58:35267 days ago1717444715
0x36e0FEb3...7216786BA
0.026517 ETH
200135062024-06-03 19:53:35267 days ago1717444415
0x36e0FEb3...7216786BA
0.053052 ETH
200134902024-06-03 19:50:23267 days ago1717444223
0x36e0FEb3...7216786BA
0.053052 ETH
200134742024-06-03 19:47:11267 days ago1717444031
0x36e0FEb3...7216786BA
0.053019 ETH
200134712024-06-03 19:46:35267 days ago1717443995
0x36e0FEb3...7216786BA
0.013255 ETH
200134582024-06-03 19:43:59267 days ago1717443839
0x36e0FEb3...7216786BA
0.05302 ETH
200133962024-06-03 19:31:35267 days ago1717443095
0x36e0FEb3...7216786BA
0.005028 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
BuyWithFiat

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 5 : BuyWithFiat.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.17;

import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";

contract BuyWithFiat {
    using SafeERC20 for IERC20;

    constructor(address _feeReceiver, address _adminAddress) {
        feeReceiver = _feeReceiver;
        adminAddress = _adminAddress;
    }

    event Buy(address wallet, uint256 memeAmount, uint256 ethAmount);

    address immutable feeReceiver;
    address immutable adminAddress;

    mapping(address => uint256) purchaseRecord;

    struct ClaimRecord {
        address user;
        uint256 amount;
    }

    function recoverRecords(ClaimRecord[] memory records) public {
        require(msg.sender == adminAddress, "Only admin can recover");
        for (uint256 i = 0; i < records.length; i++) {
            purchaseRecord[records[i].user] = records[i].amount;
        }
    }

    function buy(address wallet, uint256 memeAmount) public payable {
        purchaseRecord[wallet] = purchaseRecord[wallet] + memeAmount;

        emit Buy(wallet, memeAmount, msg.value);

        address payable ethTarget = payable(feeReceiver);
        (bool success, ) = ethTarget.call{ value: msg.value }("");
        require(success, "ETH transfer failed");
    }

    function getPurchasedAmount(address wallet) public view returns (uint256) {
        return purchaseRecord[wallet];
    }

    receive() external payable {
        // Handle the received Ether
    }
}

File 2 of 5 : IERC20Permit.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.4) (token/ERC20/extensions/IERC20Permit.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in
 * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].
 *
 * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by
 * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't
 * need to send a transaction, and thus is not required to hold Ether at all.
 *
 * ==== Security Considerations
 *
 * There are two important considerations concerning the use of `permit`. The first is that a valid permit signature
 * expresses an allowance, and it should not be assumed to convey additional meaning. In particular, it should not be
 * considered as an intention to spend the allowance in any specific way. The second is that because permits have
 * built-in replay protection and can be submitted by anyone, they can be frontrun. A protocol that uses permits should
 * take this into consideration and allow a `permit` call to fail. Combining these two aspects, a pattern that may be
 * generally recommended is:
 *
 * ```solidity
 * function doThingWithPermit(..., uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) public {
 *     try token.permit(msg.sender, address(this), value, deadline, v, r, s) {} catch {}
 *     doThing(..., value);
 * }
 *
 * function doThing(..., uint256 value) public {
 *     token.safeTransferFrom(msg.sender, address(this), value);
 *     ...
 * }
 * ```
 *
 * Observe that: 1) `msg.sender` is used as the owner, leaving no ambiguity as to the signer intent, and 2) the use of
 * `try/catch` allows the permit to fail and makes the code tolerant to frontrunning. (See also
 * {SafeERC20-safeTransferFrom}).
 *
 * Additionally, note that smart contract wallets (such as Argent or Safe) are not able to produce permit signatures, so
 * contracts should have entry points that don't rely on permit.
 */
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].
     *
     * CAUTION: See Security Considerations above.
     */
    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);
}

File 3 of 5 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);

    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `from` to `to` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(address from, address to, uint256 amount) external returns (bool);
}

File 4 of 5 : SafeERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.3) (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";
import "../extensions/IERC20Permit.sol";
import "../../../utils/Address.sol";

/**
 * @title SafeERC20
 * @dev Wrappers around ERC20 operations that throw on failure (when the token
 * contract returns false). Tokens that return no value (and instead revert or
 * throw on failure) are also supported, non-reverting calls are assumed to be
 * successful.
 * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeERC20 {
    using Address for address;

    /**
     * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     */
    function safeTransfer(IERC20 token, address to, uint256 value) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    /**
     * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the
     * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.
     */
    function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
    }

    /**
     * @dev Deprecated. This function has issues similar to the ones found in
     * {IERC20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    function safeApprove(IERC20 token, address spender, uint256 value) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        require(
            (value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

    /**
     * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     */
    function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 oldAllowance = token.allowance(address(this), spender);
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance + value));
    }

    /**
     * @dev Decrease the calling contract's allowance toward `spender` by `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     */
    function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        unchecked {
            uint256 oldAllowance = token.allowance(address(this), spender);
            require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance - value));
        }
    }

    /**
     * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval
     * to be set to zero before setting it to a non-zero value, such as USDT.
     */
    function forceApprove(IERC20 token, address spender, uint256 value) internal {
        bytes memory approvalCall = abi.encodeWithSelector(token.approve.selector, spender, value);

        if (!_callOptionalReturnBool(token, approvalCall)) {
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, 0));
            _callOptionalReturn(token, approvalCall);
        }
    }

    /**
     * @dev Use a ERC-2612 signature to set the `owner` approval toward `spender` on `token`.
     * Revert on invalid signature.
     */
    function safePermit(
        IERC20Permit token,
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal {
        uint256 nonceBefore = token.nonces(owner);
        token.permit(owner, spender, value, deadline, v, r, s);
        uint256 nonceAfter = token.nonces(owner);
        require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed");
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function _callOptionalReturn(IERC20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We use {Address-functionCall} to perform this call, which verifies that
        // the target address contains contract code and also asserts for success in the low-level call.

        bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
        require(returndata.length == 0 || abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     *
     * This is a variant of {_callOptionalReturn} that silents catches all reverts and returns a bool instead.
     */
    function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We cannot use {Address-functionCall} here since this should return false
        // and not revert is the subcall reverts.

        (bool success, bytes memory returndata) = address(token).call(data);
        return
            success && (returndata.length == 0 || abi.decode(returndata, (bool))) && Address.isContract(address(token));
    }
}

File 5 of 5 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/Address.sol)

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionDelegateCall(target, data, "Address: low-level delegate call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling
     * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.
     *
     * _Available since v4.8._
     */
    function verifyCallResultFromTarget(
        address target,
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        if (success) {
            if (returndata.length == 0) {
                // only check isContract if the call was successful and the return data is empty
                // otherwise we already know that it was a contract
                require(isContract(target), "Address: call to non-contract");
            }
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    /**
     * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason or using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    function _revert(bytes memory returndata, string memory errorMessage) private pure {
        // Look for revert reason and bubble it up if present
        if (returndata.length > 0) {
            // The easiest way to bubble the revert reason is using memory via assembly
            /// @solidity memory-safe-assembly
            assembly {
                let returndata_size := mload(returndata)
                revert(add(32, returndata), returndata_size)
            }
        } else {
            revert(errorMessage);
        }
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_feeReceiver","type":"address"},{"internalType":"address","name":"_adminAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"wallet","type":"address"},{"indexed":false,"internalType":"uint256","name":"memeAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"ethAmount","type":"uint256"}],"name":"Buy","type":"event"},{"inputs":[{"internalType":"address","name":"wallet","type":"address"},{"internalType":"uint256","name":"memeAmount","type":"uint256"}],"name":"buy","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"wallet","type":"address"}],"name":"getPurchasedAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"user","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"internalType":"struct BuyWithFiat.ClaimRecord[]","name":"records","type":"tuple[]"}],"name":"recoverRecords","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

60c060405234801561001057600080fd5b50604051610b00380380610b0083398181016040528101906100329190610104565b8173ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff16815250508073ffffffffffffffffffffffffffffffffffffffff1660a08173ffffffffffffffffffffffffffffffffffffffff16815250505050610144565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006100d1826100a6565b9050919050565b6100e1816100c6565b81146100ec57600080fd5b50565b6000815190506100fe816100d8565b92915050565b6000806040838503121561011b5761011a6100a1565b5b6000610129858286016100ef565b925050602061013a858286016100ef565b9150509250929050565b60805160a05161099761016960003960006101100152600061030901526109976000f3fe6080604052600436106100385760003560e01c8063242857621461004457806380bef7a014610081578063cce7ec13146100aa5761003f565b3661003f57005b600080fd5b34801561005057600080fd5b5061006b6004803603810190610066919061044e565b6100c6565b6040516100789190610494565b60405180910390f35b34801561008d57600080fd5b506100a860048036038101906100a39190610689565b61010e565b005b6100c460048036038101906100bf91906106d2565b61023e565b005b60008060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461019c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101939061076f565b60405180910390fd5b60005b815181101561023a578181815181106101bb576101ba61078f565b5b6020026020010151602001516000808484815181106101dd576101dc61078f565b5b60200260200101516000015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508080610232906107ed565b91505061019f565b5050565b806000808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546102889190610835565b6000808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055507f1cbc5ab135991bd2b6a4b034a04aa2aa086dac1371cb9b16b8b5e2ed6b036bed8282346040516102fd93929190610878565b60405180910390a160007f0000000000000000000000000000000000000000000000000000000000000000905060008173ffffffffffffffffffffffffffffffffffffffff1634604051610350906108e0565b60006040518083038185875af1925050503d806000811461038d576040519150601f19603f3d011682016040523d82523d6000602084013e610392565b606091505b50509050806103d6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103cd90610941565b60405180910390fd5b50505050565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061041b826103f0565b9050919050565b61042b81610410565b811461043657600080fd5b50565b60008135905061044881610422565b92915050565b600060208284031215610464576104636103e6565b5b600061047284828501610439565b91505092915050565b6000819050919050565b61048e8161047b565b82525050565b60006020820190506104a96000830184610485565b92915050565b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6104fd826104b4565b810181811067ffffffffffffffff8211171561051c5761051b6104c5565b5b80604052505050565b600061052f6103dc565b905061053b82826104f4565b919050565b600067ffffffffffffffff82111561055b5761055a6104c5565b5b602082029050602081019050919050565b600080fd5b600080fd5b61057f8161047b565b811461058a57600080fd5b50565b60008135905061059c81610576565b92915050565b6000604082840312156105b8576105b7610571565b5b6105c26040610525565b905060006105d284828501610439565b60008301525060206105e68482850161058d565b60208301525092915050565b600061060561060084610540565b610525565b905080838252602082019050604084028301858111156106285761062761056c565b5b835b81811015610651578061063d88826105a2565b84526020840193505060408101905061062a565b5050509392505050565b600082601f8301126106705761066f6104af565b5b81356106808482602086016105f2565b91505092915050565b60006020828403121561069f5761069e6103e6565b5b600082013567ffffffffffffffff8111156106bd576106bc6103eb565b5b6106c98482850161065b565b91505092915050565b600080604083850312156106e9576106e86103e6565b5b60006106f785828601610439565b92505060206107088582860161058d565b9150509250929050565b600082825260208201905092915050565b7f4f6e6c792061646d696e2063616e207265636f76657200000000000000000000600082015250565b6000610759601683610712565b915061076482610723565b602082019050919050565b600060208201905081810360008301526107888161074c565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006107f88261047b565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820361082a576108296107be565b5b600182019050919050565b60006108408261047b565b915061084b8361047b565b9250828201905080821115610863576108626107be565b5b92915050565b61087281610410565b82525050565b600060608201905061088d6000830186610869565b61089a6020830185610485565b6108a76040830184610485565b949350505050565b600081905092915050565b50565b60006108ca6000836108af565b91506108d5826108ba565b600082019050919050565b60006108eb826108bd565b9150819050919050565b7f455448207472616e73666572206661696c656400000000000000000000000000600082015250565b600061092b601383610712565b9150610936826108f5565b602082019050919050565b6000602082019050818103600083015261095a8161091e565b905091905056fea2646970667358221220a2b32dfbef4f69a04fa8dd82eccda958e2289bd1056218c539df91dfee0a82ff64736f6c6343000811003300000000000000000000000072896938a32ccbd9e3bd68057e7f9b88217a5898000000000000000000000000ed0530d16721751e8ac4747e93ec726621f6c85f

Deployed Bytecode

0x6080604052600436106100385760003560e01c8063242857621461004457806380bef7a014610081578063cce7ec13146100aa5761003f565b3661003f57005b600080fd5b34801561005057600080fd5b5061006b6004803603810190610066919061044e565b6100c6565b6040516100789190610494565b60405180910390f35b34801561008d57600080fd5b506100a860048036038101906100a39190610689565b61010e565b005b6100c460048036038101906100bf91906106d2565b61023e565b005b60008060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b7f000000000000000000000000ed0530d16721751e8ac4747e93ec726621f6c85f73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461019c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101939061076f565b60405180910390fd5b60005b815181101561023a578181815181106101bb576101ba61078f565b5b6020026020010151602001516000808484815181106101dd576101dc61078f565b5b60200260200101516000015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508080610232906107ed565b91505061019f565b5050565b806000808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546102889190610835565b6000808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055507f1cbc5ab135991bd2b6a4b034a04aa2aa086dac1371cb9b16b8b5e2ed6b036bed8282346040516102fd93929190610878565b60405180910390a160007f00000000000000000000000072896938a32ccbd9e3bd68057e7f9b88217a5898905060008173ffffffffffffffffffffffffffffffffffffffff1634604051610350906108e0565b60006040518083038185875af1925050503d806000811461038d576040519150601f19603f3d011682016040523d82523d6000602084013e610392565b606091505b50509050806103d6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103cd90610941565b60405180910390fd5b50505050565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061041b826103f0565b9050919050565b61042b81610410565b811461043657600080fd5b50565b60008135905061044881610422565b92915050565b600060208284031215610464576104636103e6565b5b600061047284828501610439565b91505092915050565b6000819050919050565b61048e8161047b565b82525050565b60006020820190506104a96000830184610485565b92915050565b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6104fd826104b4565b810181811067ffffffffffffffff8211171561051c5761051b6104c5565b5b80604052505050565b600061052f6103dc565b905061053b82826104f4565b919050565b600067ffffffffffffffff82111561055b5761055a6104c5565b5b602082029050602081019050919050565b600080fd5b600080fd5b61057f8161047b565b811461058a57600080fd5b50565b60008135905061059c81610576565b92915050565b6000604082840312156105b8576105b7610571565b5b6105c26040610525565b905060006105d284828501610439565b60008301525060206105e68482850161058d565b60208301525092915050565b600061060561060084610540565b610525565b905080838252602082019050604084028301858111156106285761062761056c565b5b835b81811015610651578061063d88826105a2565b84526020840193505060408101905061062a565b5050509392505050565b600082601f8301126106705761066f6104af565b5b81356106808482602086016105f2565b91505092915050565b60006020828403121561069f5761069e6103e6565b5b600082013567ffffffffffffffff8111156106bd576106bc6103eb565b5b6106c98482850161065b565b91505092915050565b600080604083850312156106e9576106e86103e6565b5b60006106f785828601610439565b92505060206107088582860161058d565b9150509250929050565b600082825260208201905092915050565b7f4f6e6c792061646d696e2063616e207265636f76657200000000000000000000600082015250565b6000610759601683610712565b915061076482610723565b602082019050919050565b600060208201905081810360008301526107888161074c565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006107f88261047b565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820361082a576108296107be565b5b600182019050919050565b60006108408261047b565b915061084b8361047b565b9250828201905080821115610863576108626107be565b5b92915050565b61087281610410565b82525050565b600060608201905061088d6000830186610869565b61089a6020830185610485565b6108a76040830184610485565b949350505050565b600081905092915050565b50565b60006108ca6000836108af565b91506108d5826108ba565b600082019050919050565b60006108eb826108bd565b9150819050919050565b7f455448207472616e73666572206661696c656400000000000000000000000000600082015250565b600061092b601383610712565b9150610936826108f5565b602082019050919050565b6000602082019050818103600083015261095a8161091e565b905091905056fea2646970667358221220a2b32dfbef4f69a04fa8dd82eccda958e2289bd1056218c539df91dfee0a82ff64736f6c63430008110033

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

00000000000000000000000072896938a32ccbd9e3bd68057e7f9b88217a5898000000000000000000000000ed0530d16721751e8ac4747e93ec726621f6c85f

-----Decoded View---------------
Arg [0] : _feeReceiver (address): 0x72896938A32CCBd9E3BD68057E7F9b88217A5898
Arg [1] : _adminAddress (address): 0xEd0530D16721751e8aC4747E93Ec726621F6C85f

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 00000000000000000000000072896938a32ccbd9e3bd68057e7f9b88217a5898
Arg [1] : 000000000000000000000000ed0530d16721751e8ac4747e93ec726621f6c85f


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  ]
[ 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.