ETH Price: $3,622.74 (+9.03%)

Contract

0xf4fB40257f1907e325A55fb8DC4C81B5F41F1CE2
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

1 address found via
Transaction Hash
Method
Block
From
To
Purchase194868272024-03-22 1:14:35250 days ago1711070075IN
0xf4fB4025...5F41F1CE2
0.003432 ETH0.0007929520.98824326
Purchase194855742024-03-21 21:01:59250 days ago1711054919IN
0xf4fB4025...5F41F1CE2
0.144231 ETH0.0013354335.34678137
Purchase194852952024-03-21 20:05:59251 days ago1711051559IN
0xf4fB4025...5F41F1CE2
0.02904 ETH0.0019925734.53043549
Purchase194852902024-03-21 20:04:59251 days ago1711051499IN
0xf4fB4025...5F41F1CE2
0.005808 ETH0.0021444337.162069
Purchase194852642024-03-21 19:59:47251 days ago1711051187IN
0xf4fB4025...5F41F1CE2
0.029346 ETH0.0014822325.68648084
Purchase194852422024-03-21 19:55:23251 days ago1711050923IN
0xf4fB4025...5F41F1CE2
0.043607 ETH0.001675729.03919194
Purchase194852252024-03-21 19:51:59251 days ago1711050719IN
0xf4fB4025...5F41F1CE2
0.029087 ETH0.0016914429.31187788
Purchase194851342024-03-21 19:33:47251 days ago1711049627IN
0xf4fB4025...5F41F1CE2
0.029189 ETH0.0013032732.09636319
Purchase194850732024-03-21 19:21:11251 days ago1711048871IN
0xf4fB4025...5F41F1CE2
0.014605 ETH0.0016827929.16197512
Purchase194850502024-03-21 19:16:23251 days ago1711048583IN
0xf4fB4025...5F41F1CE2
0.008763 ETH0.0011026427.15545149
Purchase194850462024-03-21 19:15:35251 days ago1711048535IN
0xf4fB4025...5F41F1CE2
0.004395 ETH0.0011936229.39603643
Purchase194849942024-03-21 19:04:47251 days ago1711047887IN
0xf4fB4025...5F41F1CE2
0.029211 ETH0.0017767830.79081655
Purchase194849902024-03-21 19:03:59251 days ago1711047839IN
0xf4fB4025...5F41F1CE2
0.029211 ETH0.0012378130.48440199
Purchase194849732024-03-21 19:00:35251 days ago1711047635IN
0xf4fB4025...5F41F1CE2
0.029257 ETH0.0017811930.86727441
Purchase194848782024-03-21 18:41:23251 days ago1711046483IN
0xf4fB4025...5F41F1CE2
0.072929 ETH0.0013162332.41547657
Purchase194848672024-03-21 18:39:11251 days ago1711046351IN
0xf4fB4025...5F41F1CE2
0.174999 ETH0.0018991232.91087763
Purchase194848652024-03-21 18:38:47251 days ago1711046327IN
0xf4fB4025...5F41F1CE2
0.014545 ETH0.0019313933.47711793
Purchase194848042024-03-21 18:26:35251 days ago1711045595IN
0xf4fB4025...5F41F1CE2
0.05831 ETH0.0020456635.45042386
Purchase194847522024-03-21 18:16:11251 days ago1711044971IN
0xf4fB4025...5F41F1CE2
0.028902 ETH0.0022352738.73619752
Purchase194846572024-03-21 17:56:59251 days ago1711043819IN
0xf4fB4025...5F41F1CE2
0.100898 ETH0.0013590833.47079468
Purchase194846462024-03-21 17:54:47251 days ago1711043687IN
0xf4fB4025...5F41F1CE2
0.028795 ETH0.0021014736.41759775
Purchase194846152024-03-21 17:48:35251 days ago1711043315IN
0xf4fB4025...5F41F1CE2
0.014355 ETH0.0018817132.60917345
Purchase194845672024-03-21 17:38:47251 days ago1711042727IN
0xf4fB4025...5F41F1CE2
0.100498 ETH0.0013798333.9818125
Purchase194844832024-03-21 17:21:47251 days ago1711041707IN
0xf4fB4025...5F41F1CE2
0.283542 ETH0.0013831334.07320243
Purchase194843622024-03-21 16:57:11251 days ago1711040231IN
0xf4fB4025...5F41F1CE2
0.00854 ETH0.0014773336.38319392
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block From To
194868272024-03-22 1:14:35250 days ago1711070075
0xf4fB4025...5F41F1CE2
0.003432 ETH
194855742024-03-21 21:01:59250 days ago1711054919
0xf4fB4025...5F41F1CE2
0.144231 ETH
194852952024-03-21 20:05:59251 days ago1711051559
0xf4fB4025...5F41F1CE2
0.02904 ETH
194852902024-03-21 20:04:59251 days ago1711051499
0xf4fB4025...5F41F1CE2
0.005808 ETH
194852642024-03-21 19:59:47251 days ago1711051187
0xf4fB4025...5F41F1CE2
0.029346 ETH
194852422024-03-21 19:55:23251 days ago1711050923
0xf4fB4025...5F41F1CE2
0.043607 ETH
194852252024-03-21 19:51:59251 days ago1711050719
0xf4fB4025...5F41F1CE2
0.029087 ETH
194851342024-03-21 19:33:47251 days ago1711049627
0xf4fB4025...5F41F1CE2
0.029189 ETH
194850732024-03-21 19:21:11251 days ago1711048871
0xf4fB4025...5F41F1CE2
0.014605 ETH
194850502024-03-21 19:16:23251 days ago1711048583
0xf4fB4025...5F41F1CE2
0.008763 ETH
194850462024-03-21 19:15:35251 days ago1711048535
0xf4fB4025...5F41F1CE2
0.004395 ETH
194849942024-03-21 19:04:47251 days ago1711047887
0xf4fB4025...5F41F1CE2
0.029211 ETH
194849902024-03-21 19:03:59251 days ago1711047839
0xf4fB4025...5F41F1CE2
0.029211 ETH
194849732024-03-21 19:00:35251 days ago1711047635
0xf4fB4025...5F41F1CE2
0.029257 ETH
194848782024-03-21 18:41:23251 days ago1711046483
0xf4fB4025...5F41F1CE2
0.072929 ETH
194848672024-03-21 18:39:11251 days ago1711046351
0xf4fB4025...5F41F1CE2
0.174999 ETH
194848652024-03-21 18:38:47251 days ago1711046327
0xf4fB4025...5F41F1CE2
0.014545 ETH
194848042024-03-21 18:26:35251 days ago1711045595
0xf4fB4025...5F41F1CE2
0.05831 ETH
194847522024-03-21 18:16:11251 days ago1711044971
0xf4fB4025...5F41F1CE2
0.028902 ETH
194846572024-03-21 17:56:59251 days ago1711043819
0xf4fB4025...5F41F1CE2
0.100898 ETH
194846462024-03-21 17:54:47251 days ago1711043687
0xf4fB4025...5F41F1CE2
0.028795 ETH
194846152024-03-21 17:48:35251 days ago1711043315
0xf4fB4025...5F41F1CE2
0.014355 ETH
194845672024-03-21 17:38:47251 days ago1711042727
0xf4fB4025...5F41F1CE2
0.100498 ETH
194844832024-03-21 17:21:47251 days ago1711041707
0xf4fB4025...5F41F1CE2
0.283542 ETH
194843622024-03-21 16:57:11251 days ago1711040231
0xf4fB4025...5F41F1CE2
0.00854 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
FiatPurchase

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 5 : FiatPurchase.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 FiatPurchase {
    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 recoverClaimRecords(ClaimRecord[] memory records) public {
        require(msg.sender == adminAddress, "Only admin can recover claim records");
        for (uint256 i = 0; i < records.length; i++) {
            purchaseRecord[records[i].user] = records[i].amount;
        }
    }

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

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

        payable(feeReceiver).transfer(msg.value);
    }

    function getUserPurchasedAmount(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.0) (token/ERC20/extensions/IERC20Permit.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in
 * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].
 *
 * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by
 * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't
 * need to send a transaction, and thus is not required to hold Ether at all.
 */
interface IERC20Permit {
    /**
     * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,
     * given ``owner``'s signed approval.
     *
     * IMPORTANT: The same issues {IERC20-approve} has related to transaction
     * ordering also apply here.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `deadline` must be a timestamp in the future.
     * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`
     * over the EIP712-formatted function arguments.
     * - the signature must use ``owner``'s current nonce (see {nonces}).
     *
     * For more information on the signature format, see the
     * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP
     * section].
     */
    function permit(
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external;

    /**
     * @dev Returns the current nonce for `owner`. This value must be
     * included whenever a signature is generated for {permit}.
     *
     * Every successful call to {permit} increases ``owner``'s nonce by one. This
     * prevents a signature from being used multiple times.
     */
    function nonces(address owner) external view returns (uint256);

    /**
     * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}.
     */
    // solhint-disable-next-line func-name-mixedcase
    function DOMAIN_SEPARATOR() external view returns (bytes32);
}

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"}],"name":"getUserPurchasedAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"wallet","type":"address"},{"internalType":"uint256","name":"memeAmount","type":"uint256"}],"name":"purchase","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"user","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"internalType":"struct FiatPurchase.ClaimRecord[]","name":"records","type":"tuple[]"}],"name":"recoverClaimRecords","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

60c060405234801561001057600080fd5b50604051610a07380380610a0783398181016040528101906100329190610104565b8173ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff16815250508073ffffffffffffffffffffffffffffffffffffffff1660a08173ffffffffffffffffffffffffffffffffffffffff16815250505050610144565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006100d1826100a6565b9050919050565b6100e1816100c6565b81146100ec57600080fd5b50565b6000815190506100fe816100d8565b92915050565b6000806040838503121561011b5761011a6100a1565b5b6000610129858286016100ef565b925050602061013a858286016100ef565b9150509250929050565b60805160a05161089f610168600039600060c801526000610307015261089f6000f3fe6080604052600436106100385760003560e01c806307c4b7bb1461004457806310a142941461006d5780638de93222146100aa5761003f565b3661003f57005b600080fd5b34801561005057600080fd5b5061006b600480360381019061006691906105c6565b6100c6565b005b34801561007957600080fd5b50610094600480360381019061008f919061060f565b6101f6565b6040516100a1919061064b565b60405180910390f35b6100c460048036038101906100bf9190610666565b61023e565b005b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610154576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161014b90610729565b60405180910390fd5b60005b81518110156101f25781818151811061017357610172610749565b5b60200260200101516020015160008084848151811061019557610194610749565b5b60200260200101516000015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555080806101ea906107a7565b915050610157565b5050565b60008060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b806000808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461028891906107ef565b6000808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055507f1cbc5ab135991bd2b6a4b034a04aa2aa086dac1371cb9b16b8b5e2ed6b036bed8282346040516102fd93929190610832565b60405180910390a17f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166108fc349081150290604051600060405180830381858888f1935050505015801561036b573d6000803e3d6000fd5b505050565b6000604051905090565b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6103d282610389565b810181811067ffffffffffffffff821117156103f1576103f061039a565b5b80604052505050565b6000610404610370565b905061041082826103c9565b919050565b600067ffffffffffffffff8211156104305761042f61039a565b5b602082029050602081019050919050565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006104768261044b565b9050919050565b6104868161046b565b811461049157600080fd5b50565b6000813590506104a38161047d565b92915050565b6000819050919050565b6104bc816104a9565b81146104c757600080fd5b50565b6000813590506104d9816104b3565b92915050565b6000604082840312156104f5576104f4610446565b5b6104ff60406103fa565b9050600061050f84828501610494565b6000830152506020610523848285016104ca565b60208301525092915050565b600061054261053d84610415565b6103fa565b9050808382526020820190506040840283018581111561056557610564610441565b5b835b8181101561058e578061057a88826104df565b845260208401935050604081019050610567565b5050509392505050565b600082601f8301126105ad576105ac610384565b5b81356105bd84826020860161052f565b91505092915050565b6000602082840312156105dc576105db61037a565b5b600082013567ffffffffffffffff8111156105fa576105f961037f565b5b61060684828501610598565b91505092915050565b6000602082840312156106255761062461037a565b5b600061063384828501610494565b91505092915050565b610645816104a9565b82525050565b6000602082019050610660600083018461063c565b92915050565b6000806040838503121561067d5761067c61037a565b5b600061068b85828601610494565b925050602061069c858286016104ca565b9150509250929050565b600082825260208201905092915050565b7f4f6e6c792061646d696e2063616e207265636f76657220636c61696d2072656360008201527f6f72647300000000000000000000000000000000000000000000000000000000602082015250565b60006107136024836106a6565b915061071e826106b7565b604082019050919050565b6000602082019050818103600083015261074281610706565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006107b2826104a9565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036107e4576107e3610778565b5b600182019050919050565b60006107fa826104a9565b9150610805836104a9565b925082820190508082111561081d5761081c610778565b5b92915050565b61082c8161046b565b82525050565b60006060820190506108476000830186610823565b610854602083018561063c565b610861604083018461063c565b94935050505056fea264697066735822122070686b8e120661dea529295b2c046acee766582be89049772a2ce01c77c50ebb64736f6c634300081100330000000000000000000000009b40425362a2c59145fb16da63f78dd8d93a42790000000000000000000000007d58e64fc100ded56b5d2853b54944b6fd23db15

Deployed Bytecode

0x6080604052600436106100385760003560e01c806307c4b7bb1461004457806310a142941461006d5780638de93222146100aa5761003f565b3661003f57005b600080fd5b34801561005057600080fd5b5061006b600480360381019061006691906105c6565b6100c6565b005b34801561007957600080fd5b50610094600480360381019061008f919061060f565b6101f6565b6040516100a1919061064b565b60405180910390f35b6100c460048036038101906100bf9190610666565b61023e565b005b7f0000000000000000000000007d58e64fc100ded56b5d2853b54944b6fd23db1573ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610154576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161014b90610729565b60405180910390fd5b60005b81518110156101f25781818151811061017357610172610749565b5b60200260200101516020015160008084848151811061019557610194610749565b5b60200260200101516000015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555080806101ea906107a7565b915050610157565b5050565b60008060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b806000808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461028891906107ef565b6000808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055507f1cbc5ab135991bd2b6a4b034a04aa2aa086dac1371cb9b16b8b5e2ed6b036bed8282346040516102fd93929190610832565b60405180910390a17f0000000000000000000000009b40425362a2c59145fb16da63f78dd8d93a427973ffffffffffffffffffffffffffffffffffffffff166108fc349081150290604051600060405180830381858888f1935050505015801561036b573d6000803e3d6000fd5b505050565b6000604051905090565b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6103d282610389565b810181811067ffffffffffffffff821117156103f1576103f061039a565b5b80604052505050565b6000610404610370565b905061041082826103c9565b919050565b600067ffffffffffffffff8211156104305761042f61039a565b5b602082029050602081019050919050565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006104768261044b565b9050919050565b6104868161046b565b811461049157600080fd5b50565b6000813590506104a38161047d565b92915050565b6000819050919050565b6104bc816104a9565b81146104c757600080fd5b50565b6000813590506104d9816104b3565b92915050565b6000604082840312156104f5576104f4610446565b5b6104ff60406103fa565b9050600061050f84828501610494565b6000830152506020610523848285016104ca565b60208301525092915050565b600061054261053d84610415565b6103fa565b9050808382526020820190506040840283018581111561056557610564610441565b5b835b8181101561058e578061057a88826104df565b845260208401935050604081019050610567565b5050509392505050565b600082601f8301126105ad576105ac610384565b5b81356105bd84826020860161052f565b91505092915050565b6000602082840312156105dc576105db61037a565b5b600082013567ffffffffffffffff8111156105fa576105f961037f565b5b61060684828501610598565b91505092915050565b6000602082840312156106255761062461037a565b5b600061063384828501610494565b91505092915050565b610645816104a9565b82525050565b6000602082019050610660600083018461063c565b92915050565b6000806040838503121561067d5761067c61037a565b5b600061068b85828601610494565b925050602061069c858286016104ca565b9150509250929050565b600082825260208201905092915050565b7f4f6e6c792061646d696e2063616e207265636f76657220636c61696d2072656360008201527f6f72647300000000000000000000000000000000000000000000000000000000602082015250565b60006107136024836106a6565b915061071e826106b7565b604082019050919050565b6000602082019050818103600083015261074281610706565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006107b2826104a9565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036107e4576107e3610778565b5b600182019050919050565b60006107fa826104a9565b9150610805836104a9565b925082820190508082111561081d5761081c610778565b5b92915050565b61082c8161046b565b82525050565b60006060820190506108476000830186610823565b610854602083018561063c565b610861604083018461063c565b94935050505056fea264697066735822122070686b8e120661dea529295b2c046acee766582be89049772a2ce01c77c50ebb64736f6c63430008110033

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

0000000000000000000000009b40425362a2c59145fb16da63f78dd8d93a42790000000000000000000000007d58e64fc100ded56b5d2853b54944b6fd23db15

-----Decoded View---------------
Arg [0] : _feeReceiver (address): 0x9B40425362a2C59145FB16da63F78DD8D93a4279
Arg [1] : _adminAddress (address): 0x7d58e64FC100DED56b5d2853b54944b6fd23Db15

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 0000000000000000000000009b40425362a2c59145fb16da63f78dd8d93a4279
Arg [1] : 0000000000000000000000007d58e64fc100ded56b5d2853b54944b6fd23db15


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.