Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 189 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Buy With Native | 21971243 | 1 hr ago | IN | 0.0515 ETH | 0.00004285 | ||||
Buy With Native | 21970526 | 3 hrs ago | IN | 0.054 ETH | 0.00034399 | ||||
Buy With Native | 21969932 | 5 hrs ago | IN | 0.052 ETH | 0.00004633 | ||||
Buy With Native | 21969560 | 6 hrs ago | IN | 0.002622 ETH | 0.00005729 | ||||
Buy With Native | 21967984 | 12 hrs ago | IN | 0.0006 ETH | 0.00004967 | ||||
Buy With Native | 21967290 | 14 hrs ago | IN | 0.002 ETH | 0.00011207 | ||||
Buy With Native | 21967189 | 14 hrs ago | IN | 0.039 ETH | 0.00015273 | ||||
Buy With Native | 21967138 | 14 hrs ago | IN | 0.004 ETH | 0.00016628 | ||||
Buy With Native | 21967119 | 14 hrs ago | IN | 0.002511 ETH | 0.00017147 | ||||
Buy With USDT | 21966585 | 16 hrs ago | IN | 0 ETH | 0.00006448 | ||||
Buy With Native | 21966471 | 17 hrs ago | IN | 0.005 ETH | 0.00002773 | ||||
Buy With Native | 21966464 | 17 hrs ago | IN | 0.005 ETH | 0.00002725 | ||||
Buy With Native | 21966278 | 17 hrs ago | IN | 0.04 ETH | 0.00003765 | ||||
Buy With Native | 21965986 | 18 hrs ago | IN | 0.003 ETH | 0.00005845 | ||||
Buy With Native | 21964203 | 24 hrs ago | IN | 0.00056 ETH | 0.00003963 | ||||
Buy With Native | 21964198 | 24 hrs ago | IN | 0.0001 ETH | 0.00004027 | ||||
Buy With Native | 21964059 | 25 hrs ago | IN | 0.0025 ETH | 0.00003859 | ||||
Buy With USDC | 21963451 | 27 hrs ago | IN | 0 ETH | 0.00004595 | ||||
Buy With Native | 21959506 | 40 hrs ago | IN | 0.005 ETH | 0.00002568 | ||||
Buy With Native | 21959128 | 41 hrs ago | IN | 0.00786 ETH | 0.00004133 | ||||
Buy With Native | 21958216 | 44 hrs ago | IN | 0.0015 ETH | 0.00003893 | ||||
Buy With Native | 21957878 | 45 hrs ago | IN | 0.00002 ETH | 0.00002223 | ||||
Buy With Native | 21957861 | 45 hrs ago | IN | 0.00001 ETH | 0.00002398 | ||||
Buy With Native | 21957856 | 45 hrs ago | IN | 0.00001 ETH | 0.00002147 | ||||
Buy With Native | 21957843 | 45 hrs ago | IN | 0.0001 ETH | 0.00002293 |
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block |
From
|
To
|
|||
---|---|---|---|---|---|---|
21971243 | 1 hr ago | 0.0515 ETH | ||||
21970526 | 3 hrs ago | 0.054 ETH | ||||
21969932 | 5 hrs ago | 0.052 ETH | ||||
21969560 | 6 hrs ago | 0.002622 ETH | ||||
21967984 | 12 hrs ago | 0.0006 ETH | ||||
21967290 | 14 hrs ago | 0.002 ETH | ||||
21967189 | 14 hrs ago | 0.039 ETH | ||||
21967138 | 14 hrs ago | 0.004 ETH | ||||
21967119 | 14 hrs ago | 0.002511 ETH | ||||
21966471 | 17 hrs ago | 0.005 ETH | ||||
21966464 | 17 hrs ago | 0.005 ETH | ||||
21966278 | 17 hrs ago | 0.04 ETH | ||||
21965986 | 18 hrs ago | 0.003 ETH | ||||
21964203 | 24 hrs ago | 0.00056 ETH | ||||
21964198 | 24 hrs ago | 0.0001 ETH | ||||
21964059 | 25 hrs ago | 0.0025 ETH | ||||
21959506 | 40 hrs ago | 0.005 ETH | ||||
21959128 | 41 hrs ago | 0.00786 ETH | ||||
21958216 | 44 hrs ago | 0.0015 ETH | ||||
21957878 | 45 hrs ago | 0.00002 ETH | ||||
21957861 | 45 hrs ago | 0.00001 ETH | ||||
21957856 | 45 hrs ago | 0.00001 ETH | ||||
21957843 | 45 hrs ago | 0.0001 ETH | ||||
21957836 | 45 hrs ago | 0.0003 ETH | ||||
21957830 | 46 hrs ago | 0.0001 ETH |
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
LuckhunterPresale
Compiler Version
v0.8.25+commit.b61c2a91
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity 0.8.25; import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import {SafeERC20} from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol"; contract LuckhunterPresale is Ownable { using SafeERC20 for IERC20; IERC20 public usdt; IERC20 public usdc; constructor(address _owner) Ownable(_owner) { if (block.chainid == 1) { usdt = IERC20(0xdAC17F958D2ee523a2206206994597C13D831ec7); usdc = IERC20(0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48); } else if (block.chainid == 56) { usdt = IERC20(0x55d398326f99059fF775485246999027B3197955); usdc = IERC20(0x8AC76a51cc950d9822D68b83fE1Ad97B32Cd580d); } else if (block.chainid == 137) { usdt = IERC20(0xc2132D05D31c914a87C6611C10748AEb04B58e8F); usdc = IERC20(0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359); } } event BoughtWithNative(address user, uint256 amount, uint256 time); event BoughtWithUSDT(address user, uint256 amount, uint256 time); event BoughtWithUSDC(address user, uint256 amount, uint256 time); function buyWithNative() external payable { (bool sent, ) = payable(owner()).call{value: msg.value}(""); require(sent, "Funds transfer unsuccesfull"); emit BoughtWithNative(msg.sender, msg.value, block.timestamp); } function buyWithUSDT(uint256 amount) external { usdt.safeTransferFrom(msg.sender, owner(), amount); emit BoughtWithUSDT(msg.sender, amount, block.timestamp); } function buyWithUSDC(uint256 amount) external { usdc.safeTransferFrom(msg.sender, owner(), amount); emit BoughtWithUSDC(msg.sender, amount, block.timestamp); } function withdrawERC20(address _tokenAddress, uint256 _amount) external onlyOwner { IERC20 currentToken = IERC20(_tokenAddress); currentToken.approve(address(this), _amount); currentToken.safeTransferFrom(address(this), owner(), _amount); } function withdrawNative(uint256 _amount) external onlyOwner { (bool hs, ) = payable(owner()).call{value: _amount}(""); require(hs, "EnergiWanBridge:: Failed to withdraw native coins"); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol) pragma solidity ^0.8.20; import {Context} from "../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. * * The initial owner is set to the address provided by the deployer. 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; /** * @dev The caller account is not authorized to perform an operation. */ error OwnableUnauthorizedAccount(address account); /** * @dev The owner is not a valid owner account. (eg. `address(0)`) */ error OwnableInvalidOwner(address owner); event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the address provided by the deployer as the initial owner. */ constructor(address initialOwner) { if (initialOwner == address(0)) { revert OwnableInvalidOwner(address(0)); } _transferOwnership(initialOwner); } /** * @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 { if (owner() != _msgSender()) { revert OwnableUnauthorizedAccount(_msgSender()); } } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby disabling any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { if (newOwner == address(0)) { revert OwnableInvalidOwner(address(0)); } _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 v5.2.0) (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.20; import {IERC20} from "../IERC20.sol"; import {IERC1363} from "../../../interfaces/IERC1363.sol"; /** * @title SafeERC20 * @dev Wrappers around ERC-20 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 { /** * @dev An operation with an ERC-20 token failed. */ error SafeERC20FailedOperation(address token); /** * @dev Indicates a failed `decreaseAllowance` request. */ error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease); /** * @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.encodeCall(token.transfer, (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.encodeCall(token.transferFrom, (from, to, 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. * * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the "client" * smart contract uses ERC-7674 to set temporary allowances, then the "client" smart contract should avoid using * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior. */ function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 oldAllowance = token.allowance(address(this), spender); forceApprove(token, spender, oldAllowance + value); } /** * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no * value, non-reverting calls are assumed to be successful. * * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the "client" * smart contract uses ERC-7674 to set temporary allowances, then the "client" smart contract should avoid using * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior. */ function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal { unchecked { uint256 currentAllowance = token.allowance(address(this), spender); if (currentAllowance < requestedDecrease) { revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease); } forceApprove(token, spender, currentAllowance - requestedDecrease); } } /** * @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. * * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function * only sets the "standard" allowance. Any temporary allowance will remain active, in addition to the value being * set here. */ function forceApprove(IERC20 token, address spender, uint256 value) internal { bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value)); if (!_callOptionalReturnBool(token, approvalCall)) { _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0))); _callOptionalReturn(token, approvalCall); } } /** * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when * targeting contracts. * * Reverts if the returned value is other than `true`. */ function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal { if (to.code.length == 0) { safeTransfer(token, to, value); } else if (!token.transferAndCall(to, value, data)) { revert SafeERC20FailedOperation(address(token)); } } /** * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when * targeting contracts. * * Reverts if the returned value is other than `true`. */ function transferFromAndCallRelaxed( IERC1363 token, address from, address to, uint256 value, bytes memory data ) internal { if (to.code.length == 0) { safeTransferFrom(token, from, to, value); } else if (!token.transferFromAndCall(from, to, value, data)) { revert SafeERC20FailedOperation(address(token)); } } /** * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when * targeting contracts. * * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}. * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall} * once without retrying, and relies on the returned value to be true. * * Reverts if the returned value is other than `true`. */ function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal { if (to.code.length == 0) { forceApprove(token, to, value); } else if (!token.approveAndCall(to, value, data)) { revert SafeERC20FailedOperation(address(token)); } } /** * @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 {_callOptionalReturnBool} that reverts if call fails to meet the requirements. */ function _callOptionalReturn(IERC20 token, bytes memory data) private { uint256 returnSize; uint256 returnValue; assembly ("memory-safe") { let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20) // bubble errors if iszero(success) { let ptr := mload(0x40) returndatacopy(ptr, 0, returndatasize()) revert(ptr, returndatasize()) } returnSize := returndatasize() returnValue := mload(0) } if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) { revert SafeERC20FailedOperation(address(token)); } } /** * @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 silently catches all reverts and returns a bool instead. */ function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) { bool success; uint256 returnSize; uint256 returnValue; assembly ("memory-safe") { success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20) returnSize := returndatasize() returnValue := mload(0) } return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.1.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.20; /** * @dev Interface of the ERC-20 standard as defined in the ERC. */ 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 value of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the value of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves a `value` amount of 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 value) 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 a `value` amount of tokens 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 value) external returns (bool); /** * @dev Moves a `value` amount of tokens from `from` to `to` using the * allowance mechanism. `value` 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 value) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.1.0) (interfaces/IERC1363.sol) pragma solidity ^0.8.20; import {IERC20} from "./IERC20.sol"; import {IERC165} from "./IERC165.sol"; /** * @title IERC1363 * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363]. * * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction. */ interface IERC1363 is IERC20, IERC165 { /* * Note: the ERC-165 identifier for this interface is 0xb0202a11. * 0xb0202a11 === * bytes4(keccak256('transferAndCall(address,uint256)')) ^ * bytes4(keccak256('transferAndCall(address,uint256,bytes)')) ^ * bytes4(keccak256('transferFromAndCall(address,address,uint256)')) ^ * bytes4(keccak256('transferFromAndCall(address,address,uint256,bytes)')) ^ * bytes4(keccak256('approveAndCall(address,uint256)')) ^ * bytes4(keccak256('approveAndCall(address,uint256,bytes)')) */ /** * @dev Moves a `value` amount of tokens from the caller's account to `to` * and then calls {IERC1363Receiver-onTransferReceived} on `to`. * @param to The address which you want to transfer to. * @param value The amount of tokens to be transferred. * @return A boolean value indicating whether the operation succeeded unless throwing. */ function transferAndCall(address to, uint256 value) external returns (bool); /** * @dev Moves a `value` amount of tokens from the caller's account to `to` * and then calls {IERC1363Receiver-onTransferReceived} on `to`. * @param to The address which you want to transfer to. * @param value The amount of tokens to be transferred. * @param data Additional data with no specified format, sent in call to `to`. * @return A boolean value indicating whether the operation succeeded unless throwing. */ function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool); /** * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism * and then calls {IERC1363Receiver-onTransferReceived} on `to`. * @param from The address which you want to send tokens from. * @param to The address which you want to transfer to. * @param value The amount of tokens to be transferred. * @return A boolean value indicating whether the operation succeeded unless throwing. */ function transferFromAndCall(address from, address to, uint256 value) external returns (bool); /** * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism * and then calls {IERC1363Receiver-onTransferReceived} on `to`. * @param from The address which you want to send tokens from. * @param to The address which you want to transfer to. * @param value The amount of tokens to be transferred. * @param data Additional data with no specified format, sent in call to `to`. * @return A boolean value indicating whether the operation succeeded unless throwing. */ function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool); /** * @dev Sets a `value` amount of tokens as the allowance of `spender` over the * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`. * @param spender The address which will spend the funds. * @param value The amount of tokens to be spent. * @return A boolean value indicating whether the operation succeeded unless throwing. */ function approveAndCall(address spender, uint256 value) external returns (bool); /** * @dev Sets a `value` amount of tokens as the allowance of `spender` over the * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`. * @param spender The address which will spend the funds. * @param value The amount of tokens to be spent. * @param data Additional data with no specified format, sent in call to `spender`. * @return A boolean value indicating whether the operation succeeded unless throwing. */ function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol) pragma solidity ^0.8.20; /** * @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; } function _contextSuffixLength() internal view virtual returns (uint256) { return 0; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (interfaces/IERC165.sol) pragma solidity ^0.8.20; import {IERC165} from "../utils/introspection/IERC165.sol";
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (interfaces/IERC20.sol) pragma solidity ^0.8.20; import {IERC20} from "../token/ERC20/IERC20.sol";
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.1.0) (utils/introspection/IERC165.sol) pragma solidity ^0.8.20; /** * @dev Interface of the ERC-165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[ERC]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[ERC section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "remappings": [] }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"SafeERC20FailedOperation","type":"error"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"time","type":"uint256"}],"name":"BoughtWithNative","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"time","type":"uint256"}],"name":"BoughtWithUSDC","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"time","type":"uint256"}],"name":"BoughtWithUSDT","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[],"name":"buyWithNative","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"buyWithUSDC","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"buyWithUSDT","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"usdc","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"usdt","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_tokenAddress","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdrawERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdrawNative","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060405234801561000f575f80fd5b5060405161118f38038061118f833981810160405281019061003191906103f4565b805f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036100a2575f6040517f1e4fbdf7000000000000000000000000000000000000000000000000000000008152600401610099919061042e565b60405180910390fd5b6100b1816102d560201b60201c565b50600146036101675773dac17f958d2ee523a2206206994597c13d831ec760015f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555073a0b86991c6218b36c1d19d4a2e9eb0ce3606eb4860025f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506102cf565b6038460361021c577355d398326f99059ff775485246999027b319795560015f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550738ac76a51cc950d9822d68b83fe1ad97b32cd580d60025f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506102ce565b608946036102cd5773c2132d05d31c914a87c6611c10748aeb04b58e8f60015f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550733c499c542cef5e3811e1192ce70d8cc03d5c335960025f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b5b5b50610447565b5f805f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050815f806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6103c38261039a565b9050919050565b6103d3816103b9565b81146103dd575f80fd5b50565b5f815190506103ee816103ca565b92915050565b5f6020828403121561040957610408610396565b5b5f610416848285016103e0565b91505092915050565b610428816103b9565b82525050565b5f6020820190506104415f83018461041f565b92915050565b610d3b806104545f395ff3fe608060405260043610610090575f3560e01c80638da5cb5b116100585780638da5cb5b14610130578063a1db97821461015a578063a7c6016014610182578063aeccf735146101aa578063f2fde38b146101d257610090565b80632f48ab7d146100945780633e413bee146100be578063715018a6146100e857806384276d81146100fe57806384ecec1614610126575b5f80fd5b34801561009f575f80fd5b506100a86101fa565b6040516100b59190610977565b60405180910390f35b3480156100c9575f80fd5b506100d261021f565b6040516100df9190610977565b60405180910390f35b3480156100f3575f80fd5b506100fc610244565b005b348015610109575f80fd5b50610124600480360381019061011f91906109c7565b610257565b005b61012e610312565b005b34801561013b575f80fd5b506101446103ff565b6040516101519190610a12565b60405180910390f35b348015610165575f80fd5b50610180600480360381019061017b9190610a55565b610426565b005b34801561018d575f80fd5b506101a860048036038101906101a391906109c7565b6104e7565b005b3480156101b5575f80fd5b506101d060048036038101906101cb91906109c7565b61057a565b005b3480156101dd575f80fd5b506101f860048036038101906101f39190610a93565b61060d565b005b60015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60025f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b61024c610691565b6102555f610718565b565b61025f610691565b5f6102686103ff565b73ffffffffffffffffffffffffffffffffffffffff168260405161028b90610aeb565b5f6040518083038185875af1925050503d805f81146102c5576040519150601f19603f3d011682016040523d82523d5f602084013e6102ca565b606091505b505090508061030e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161030590610b7f565b60405180910390fd5b5050565b5f61031b6103ff565b73ffffffffffffffffffffffffffffffffffffffff163460405161033e90610aeb565b5f6040518083038185875af1925050503d805f8114610378576040519150601f19603f3d011682016040523d82523d5f602084013e61037d565b606091505b50509050806103c1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103b890610be7565b60405180910390fd5b7f30c6e15a5ccededb6345783ec57710a131242720fce1cdd20f86b31b137af0853334426040516103f493929190610c14565b60405180910390a150565b5f805f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b61042e610691565b5f8290508073ffffffffffffffffffffffffffffffffffffffff1663095ea7b330846040518363ffffffff1660e01b815260040161046d929190610c49565b6020604051808303815f875af1158015610489573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906104ad9190610ca5565b506104e2306104ba6103ff565b848473ffffffffffffffffffffffffffffffffffffffff166107d9909392919063ffffffff16565b505050565b61053c336104f36103ff565b8360015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166107d9909392919063ffffffff16565b7fba8a0c50b92271711d3f854db35684163f8207e83da52b251ff49e813e87fdc533824260405161056f93929190610c14565b60405180910390a150565b6105cf336105866103ff565b8360025f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166107d9909392919063ffffffff16565b7fdec22887de37bc1e7624b8a1a804adbf9f6b86c5f8ff50d331976b30b8a89bfa33824260405161060293929190610c14565b60405180910390a150565b610615610691565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610685575f6040517f1e4fbdf700000000000000000000000000000000000000000000000000000000815260040161067c9190610a12565b60405180910390fd5b61068e81610718565b50565b61069961085b565b73ffffffffffffffffffffffffffffffffffffffff166106b76103ff565b73ffffffffffffffffffffffffffffffffffffffff1614610716576106da61085b565b6040517f118cdaa700000000000000000000000000000000000000000000000000000000815260040161070d9190610a12565b60405180910390fd5b565b5f805f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050815f806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b610855848573ffffffffffffffffffffffffffffffffffffffff166323b872dd86868660405160240161080e93929190610cd0565b604051602081830303815290604052915060e01b6020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050610862565b50505050565b5f33905090565b5f8060205f8451602086015f885af180610881576040513d5f823e3d81fd5b3d92505f519150505f821461089a5760018114156108b5565b5f8473ffffffffffffffffffffffffffffffffffffffff163b145b156108f757836040517f5274afe70000000000000000000000000000000000000000000000000000000081526004016108ee9190610a12565b60405180910390fd5b50505050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f819050919050565b5f61093f61093a610935846108fd565b61091c565b6108fd565b9050919050565b5f61095082610925565b9050919050565b5f61096182610946565b9050919050565b61097181610957565b82525050565b5f60208201905061098a5f830184610968565b92915050565b5f80fd5b5f819050919050565b6109a681610994565b81146109b0575f80fd5b50565b5f813590506109c18161099d565b92915050565b5f602082840312156109dc576109db610990565b5b5f6109e9848285016109b3565b91505092915050565b5f6109fc826108fd565b9050919050565b610a0c816109f2565b82525050565b5f602082019050610a255f830184610a03565b92915050565b610a34816109f2565b8114610a3e575f80fd5b50565b5f81359050610a4f81610a2b565b92915050565b5f8060408385031215610a6b57610a6a610990565b5b5f610a7885828601610a41565b9250506020610a89858286016109b3565b9150509250929050565b5f60208284031215610aa857610aa7610990565b5b5f610ab584828501610a41565b91505092915050565b5f81905092915050565b50565b5f610ad65f83610abe565b9150610ae182610ac8565b5f82019050919050565b5f610af582610acb565b9150819050919050565b5f82825260208201905092915050565b7f456e6572676957616e4272696467653a3a204661696c656420746f20776974685f8201527f64726177206e617469766520636f696e73000000000000000000000000000000602082015250565b5f610b69603183610aff565b9150610b7482610b0f565b604082019050919050565b5f6020820190508181035f830152610b9681610b5d565b9050919050565b7f46756e6473207472616e7366657220756e73756363657366756c6c00000000005f82015250565b5f610bd1601b83610aff565b9150610bdc82610b9d565b602082019050919050565b5f6020820190508181035f830152610bfe81610bc5565b9050919050565b610c0e81610994565b82525050565b5f606082019050610c275f830186610a03565b610c346020830185610c05565b610c416040830184610c05565b949350505050565b5f604082019050610c5c5f830185610a03565b610c696020830184610c05565b9392505050565b5f8115159050919050565b610c8481610c70565b8114610c8e575f80fd5b50565b5f81519050610c9f81610c7b565b92915050565b5f60208284031215610cba57610cb9610990565b5b5f610cc784828501610c91565b91505092915050565b5f606082019050610ce35f830186610a03565b610cf06020830185610a03565b610cfd6040830184610c05565b94935050505056fea26469706673582212204f0985736119ef816c0116075b69a158b5a4de1f75198eedbe4f13d488bf69a364736f6c634300081900330000000000000000000000002f4f8ea3b0194d2ee0e3ec2eb7c0f5a651a09adf
Deployed Bytecode
0x608060405260043610610090575f3560e01c80638da5cb5b116100585780638da5cb5b14610130578063a1db97821461015a578063a7c6016014610182578063aeccf735146101aa578063f2fde38b146101d257610090565b80632f48ab7d146100945780633e413bee146100be578063715018a6146100e857806384276d81146100fe57806384ecec1614610126575b5f80fd5b34801561009f575f80fd5b506100a86101fa565b6040516100b59190610977565b60405180910390f35b3480156100c9575f80fd5b506100d261021f565b6040516100df9190610977565b60405180910390f35b3480156100f3575f80fd5b506100fc610244565b005b348015610109575f80fd5b50610124600480360381019061011f91906109c7565b610257565b005b61012e610312565b005b34801561013b575f80fd5b506101446103ff565b6040516101519190610a12565b60405180910390f35b348015610165575f80fd5b50610180600480360381019061017b9190610a55565b610426565b005b34801561018d575f80fd5b506101a860048036038101906101a391906109c7565b6104e7565b005b3480156101b5575f80fd5b506101d060048036038101906101cb91906109c7565b61057a565b005b3480156101dd575f80fd5b506101f860048036038101906101f39190610a93565b61060d565b005b60015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60025f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b61024c610691565b6102555f610718565b565b61025f610691565b5f6102686103ff565b73ffffffffffffffffffffffffffffffffffffffff168260405161028b90610aeb565b5f6040518083038185875af1925050503d805f81146102c5576040519150601f19603f3d011682016040523d82523d5f602084013e6102ca565b606091505b505090508061030e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161030590610b7f565b60405180910390fd5b5050565b5f61031b6103ff565b73ffffffffffffffffffffffffffffffffffffffff163460405161033e90610aeb565b5f6040518083038185875af1925050503d805f8114610378576040519150601f19603f3d011682016040523d82523d5f602084013e61037d565b606091505b50509050806103c1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103b890610be7565b60405180910390fd5b7f30c6e15a5ccededb6345783ec57710a131242720fce1cdd20f86b31b137af0853334426040516103f493929190610c14565b60405180910390a150565b5f805f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b61042e610691565b5f8290508073ffffffffffffffffffffffffffffffffffffffff1663095ea7b330846040518363ffffffff1660e01b815260040161046d929190610c49565b6020604051808303815f875af1158015610489573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906104ad9190610ca5565b506104e2306104ba6103ff565b848473ffffffffffffffffffffffffffffffffffffffff166107d9909392919063ffffffff16565b505050565b61053c336104f36103ff565b8360015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166107d9909392919063ffffffff16565b7fba8a0c50b92271711d3f854db35684163f8207e83da52b251ff49e813e87fdc533824260405161056f93929190610c14565b60405180910390a150565b6105cf336105866103ff565b8360025f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166107d9909392919063ffffffff16565b7fdec22887de37bc1e7624b8a1a804adbf9f6b86c5f8ff50d331976b30b8a89bfa33824260405161060293929190610c14565b60405180910390a150565b610615610691565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610685575f6040517f1e4fbdf700000000000000000000000000000000000000000000000000000000815260040161067c9190610a12565b60405180910390fd5b61068e81610718565b50565b61069961085b565b73ffffffffffffffffffffffffffffffffffffffff166106b76103ff565b73ffffffffffffffffffffffffffffffffffffffff1614610716576106da61085b565b6040517f118cdaa700000000000000000000000000000000000000000000000000000000815260040161070d9190610a12565b60405180910390fd5b565b5f805f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050815f806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b610855848573ffffffffffffffffffffffffffffffffffffffff166323b872dd86868660405160240161080e93929190610cd0565b604051602081830303815290604052915060e01b6020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050610862565b50505050565b5f33905090565b5f8060205f8451602086015f885af180610881576040513d5f823e3d81fd5b3d92505f519150505f821461089a5760018114156108b5565b5f8473ffffffffffffffffffffffffffffffffffffffff163b145b156108f757836040517f5274afe70000000000000000000000000000000000000000000000000000000081526004016108ee9190610a12565b60405180910390fd5b50505050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f819050919050565b5f61093f61093a610935846108fd565b61091c565b6108fd565b9050919050565b5f61095082610925565b9050919050565b5f61096182610946565b9050919050565b61097181610957565b82525050565b5f60208201905061098a5f830184610968565b92915050565b5f80fd5b5f819050919050565b6109a681610994565b81146109b0575f80fd5b50565b5f813590506109c18161099d565b92915050565b5f602082840312156109dc576109db610990565b5b5f6109e9848285016109b3565b91505092915050565b5f6109fc826108fd565b9050919050565b610a0c816109f2565b82525050565b5f602082019050610a255f830184610a03565b92915050565b610a34816109f2565b8114610a3e575f80fd5b50565b5f81359050610a4f81610a2b565b92915050565b5f8060408385031215610a6b57610a6a610990565b5b5f610a7885828601610a41565b9250506020610a89858286016109b3565b9150509250929050565b5f60208284031215610aa857610aa7610990565b5b5f610ab584828501610a41565b91505092915050565b5f81905092915050565b50565b5f610ad65f83610abe565b9150610ae182610ac8565b5f82019050919050565b5f610af582610acb565b9150819050919050565b5f82825260208201905092915050565b7f456e6572676957616e4272696467653a3a204661696c656420746f20776974685f8201527f64726177206e617469766520636f696e73000000000000000000000000000000602082015250565b5f610b69603183610aff565b9150610b7482610b0f565b604082019050919050565b5f6020820190508181035f830152610b9681610b5d565b9050919050565b7f46756e6473207472616e7366657220756e73756363657366756c6c00000000005f82015250565b5f610bd1601b83610aff565b9150610bdc82610b9d565b602082019050919050565b5f6020820190508181035f830152610bfe81610bc5565b9050919050565b610c0e81610994565b82525050565b5f606082019050610c275f830186610a03565b610c346020830185610c05565b610c416040830184610c05565b949350505050565b5f604082019050610c5c5f830185610a03565b610c696020830184610c05565b9392505050565b5f8115159050919050565b610c8481610c70565b8114610c8e575f80fd5b50565b5f81519050610c9f81610c7b565b92915050565b5f60208284031215610cba57610cb9610990565b5b5f610cc784828501610c91565b91505092915050565b5f606082019050610ce35f830186610a03565b610cf06020830185610a03565b610cfd6040830184610c05565b94935050505056fea26469706673582212204f0985736119ef816c0116075b69a158b5a4de1f75198eedbe4f13d488bf69a364736f6c63430008190033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000002f4f8ea3b0194d2ee0e3ec2eb7c0f5a651a09adf
-----Decoded View---------------
Arg [0] : _owner (address): 0x2F4f8EA3B0194d2EE0E3eC2Eb7C0f5a651a09adf
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000002f4f8ea3b0194d2ee0e3ec2eb7c0f5a651a09adf
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 31 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.