Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
0x8e919e7ed0869f332bcfcff9d05ce6566ecacfcf881ded015c579e17ba253542 | Buy Tokens Nativ... | (pending) | 22 mins ago | IN | 0.16 ETH | (Pending) | |||
Buy Tokens Nativ... | 21688004 | 1 hr ago | IN | 0.07 ETH | 0.00112321 | ||||
Buy Tokens Nativ... | 21687544 | 2 hrs ago | IN | 0.785 ETH | 0.00067538 | ||||
Buy Tokens Nativ... | 21687513 | 2 hrs ago | IN | 0.031 ETH | 0.0007131 | ||||
Buy Tokens Nativ... | 21687301 | 3 hrs ago | IN | 0.0035 ETH | 0.0002773 | ||||
Buy Tokens Nativ... | 21686919 | 4 hrs ago | IN | 0.031 ETH | 0.00024559 | ||||
Buy Tokens Nativ... | 21686887 | 5 hrs ago | IN | 0.0006 ETH | 0.00023559 | ||||
Buy Tokens Nativ... | 21686861 | 5 hrs ago | IN | 0.153 ETH | 0.00028883 | ||||
Buy Tokens Nativ... | 21686861 | 5 hrs ago | IN | 0.00134 ETH | 0.00028643 | ||||
Buy Tokens Nativ... | 21686830 | 5 hrs ago | IN | 0.009 ETH | 0.00025731 | ||||
Buy Tokens Nativ... | 21686771 | 5 hrs ago | IN | 0.04 ETH | 0.00025142 | ||||
Buy Tokens Nativ... | 21686755 | 5 hrs ago | IN | 0.00092 ETH | 0.00027319 | ||||
Buy Tokens Nativ... | 21686708 | 5 hrs ago | IN | 0.02 ETH | 0.00035212 | ||||
Buy Tokens Nativ... | 21686607 | 5 hrs ago | IN | 0.04 ETH | 0.00028349 | ||||
Buy Tokens Nativ... | 21686590 | 6 hrs ago | IN | 0.033 ETH | 0.00042366 | ||||
Buy Tokens Nativ... | 21686458 | 6 hrs ago | IN | 0.00025 ETH | 0.0002074 | ||||
Buy Tokens Nativ... | 21686456 | 6 hrs ago | IN | 0.01 ETH | 0.00023914 | ||||
Buy Tokens Nativ... | 21686434 | 6 hrs ago | IN | 0.0014 ETH | 0.00025177 | ||||
Buy Tokens Nativ... | 21686423 | 6 hrs ago | IN | 0.00748 ETH | 0.00021066 | ||||
Buy Tokens Nativ... | 21686420 | 6 hrs ago | IN | 0.071 ETH | 0.00025787 | ||||
Buy Tokens Nativ... | 21686366 | 6 hrs ago | IN | 0.0011 ETH | 0.00020782 | ||||
Buy Tokens Nativ... | 21686333 | 6 hrs ago | IN | 0.0084 ETH | 0.00024213 | ||||
Buy Tokens Nativ... | 21686220 | 7 hrs ago | IN | 0.00245 ETH | 0.00019966 | ||||
Buy Tokens Nativ... | 21686107 | 7 hrs ago | IN | 0.031 ETH | 0.00027043 | ||||
Buy Tokens Nativ... | 21685823 | 8 hrs ago | IN | 0.031 ETH | 0.00021673 |
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block |
From
|
To
|
|||
---|---|---|---|---|---|---|
21688004 | 1 hr ago | 0.07 ETH | ||||
21687544 | 2 hrs ago | 0.785 ETH | ||||
21687513 | 2 hrs ago | 0.031 ETH | ||||
21687301 | 3 hrs ago | 0.0035 ETH | ||||
21686919 | 4 hrs ago | 0.031 ETH | ||||
21686887 | 5 hrs ago | 0.0006 ETH | ||||
21686861 | 5 hrs ago | 0.153 ETH | ||||
21686861 | 5 hrs ago | 0.00134 ETH | ||||
21686830 | 5 hrs ago | 0.009 ETH | ||||
21686771 | 5 hrs ago | 0.04 ETH | ||||
21686755 | 5 hrs ago | 0.00092 ETH | ||||
21686708 | 5 hrs ago | 0.02 ETH | ||||
21686607 | 5 hrs ago | 0.04 ETH | ||||
21686590 | 6 hrs ago | 0.033 ETH | ||||
21686458 | 6 hrs ago | 0.00025 ETH | ||||
21686456 | 6 hrs ago | 0.01 ETH | ||||
21686434 | 6 hrs ago | 0.0014 ETH | ||||
21686423 | 6 hrs ago | 0.00748 ETH | ||||
21686420 | 6 hrs ago | 0.071 ETH | ||||
21686366 | 6 hrs ago | 0.0011 ETH | ||||
21686333 | 6 hrs ago | 0.0084 ETH | ||||
21686220 | 7 hrs ago | 0.00245 ETH | ||||
21686107 | 7 hrs ago | 0.031 ETH | ||||
21685823 | 8 hrs ago | 0.031 ETH | ||||
21685813 | 8 hrs ago | 0.031 ETH |
Loading...
Loading
Contract Name:
AurealOnePresale
Compiler Version
v0.8.22+commit.4fc1097e
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.22; import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol"; import {Pausable} from "@openzeppelin/contracts/security/Pausable.sol"; import {ReentrancyGuard} from "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import {SafeERC20} from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import {AggregatorV3Interface} from "@chainlink/contracts/src/v0.8/interfaces/AggregatorV3Interface.sol"; contract AurealOnePresale is Ownable, Pausable, ReentrancyGuard { using SafeERC20 for IERC20; IERC20 public s_usdt; IERC20 public s_usdc; address public i_eth_usd_priceFeed; address public i_usdt_usd_priceFeed; constructor(address _owner) Ownable(_owner) { if (block.chainid == 1) { // Ethereum i_eth_usd_priceFeed = 0x5f4eC3Df9cbd43714FE2740f5E3616155c5b8419; i_usdt_usd_priceFeed = 0x3E7d1eAB13ad0104d2750B8863b489D65364e32D; s_usdt = IERC20(0xdAC17F958D2ee523a2206206994597C13D831ec7); s_usdc = IERC20(0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48); } else if (block.chainid == 56) { // Binance i_eth_usd_priceFeed = 0x0567F2323251f0Aab15c8dFb1967E4e8A7D42aeE; i_usdt_usd_priceFeed = 0xB97Ad0E74fa7d920791E90258A6E2085088b4320; s_usdt = IERC20(0x55d398326f99059fF775485246999027B3197955); s_usdc = IERC20(0x8AC76a51cc950d9822D68b83fE1Ad97B32Cd580d); } else if (block.chainid == 137) { // Polygon i_eth_usd_priceFeed = 0xAB594600376Ec9fD91F8e885dADF0CE036862dE0; i_usdt_usd_priceFeed = 0x0A6513e40db6EB1b165753AD52E80663aeA50545; s_usdt = IERC20(0xc2132D05D31c914a87C6611C10748AEb04B58e8F); s_usdc = IERC20(0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359); } else if (block.chainid == 42161) { // Arbitrum i_eth_usd_priceFeed = 0x639Fe6ab55C921f74e7fac1ee960C0B6293ba612; i_usdt_usd_priceFeed = 0x3f3f5dF88dC9F13eac63DF89EC16ef6e7E25DdE7; s_usdt = IERC20(0xFd086bC7CD5C481DCC9C85ebE478A1C0b69FCbb9); s_usdc = IERC20(0xaf88d065e77c8cC2239327C5EDb3A432268e5831); } } function _multiply(uint256 x, uint256 y) internal pure returns (uint256 z) { require(y == 0 || (z = x * y) / y == x); } function _div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } function _getDerivedPrice( address _base, address _quote, uint8 _decimals ) internal view returns (int256) { require( _decimals > uint8(0) && _decimals <= uint8(18), "Invalid decimals" ); int256 decimals = int256(10**uint256(_decimals)); (, int256 basePrice, , , ) = AggregatorV3Interface(_base) .latestRoundData(); uint8 baseDecimals = AggregatorV3Interface(_base).decimals(); basePrice = _scalePrice(basePrice, baseDecimals, _decimals); (, int256 quotePrice, , , ) = AggregatorV3Interface(_quote) .latestRoundData(); uint8 quoteDecimals = AggregatorV3Interface(_quote).decimals(); quotePrice = _scalePrice(quotePrice, quoteDecimals, _decimals); return (basePrice * decimals) / quotePrice; } function _scalePrice( int256 _price, uint8 _priceDecimals, uint8 _decimals ) internal pure returns (int256) { if (_priceDecimals < _decimals) { return _price * int256(10**uint256(_decimals - _priceDecimals)); } else if (_priceDecimals > _decimals) { return _price / int256(10**uint256(_priceDecimals - _decimals)); } return _price; } event BoughtWithNativeToken(address user, uint256 amount, uint256 time, string clickid, uint256 token_quantity); event BoughtWithUSDT(address user, uint256 amount, uint256 time, string clickid, uint256 token_quantity); event BoughtWithUSDC(address user, uint256 amount, uint256 time, string clickid, uint256 token_quantity); function buyTokensNative(uint256 token_quantity, string memory clickid) external payable whenNotPaused { (bool sent, ) = payable(owner()).call{value: msg.value}(""); require(sent, "Funds transfer unsuccesfull"); emit BoughtWithNativeToken(msg.sender, msg.value, block.timestamp, clickid, token_quantity); } function buyTokensUSDT(uint256 amount, uint256 token_quantity, string memory clickid) external whenNotPaused { s_usdt.safeTransferFrom(msg.sender, owner(), amount); emit BoughtWithUSDT(msg.sender, amount, block.timestamp, clickid, token_quantity); } function buyTokensUSDC(uint256 amount, uint256 token_quantity, string memory clickid) external whenNotPaused { s_usdc.safeTransferFrom(msg.sender, owner(), amount); emit BoughtWithUSDC(msg.sender, amount, block.timestamp, clickid, token_quantity); } function pause() external whenNotPaused onlyOwner { _pause(); } function unpause() external whenPaused onlyOwner { _unpause(); } 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 pragma solidity ^0.8.0; interface AggregatorV3Interface { function decimals() external view returns (uint8); function description() external view returns (string memory); function version() external view returns (uint256); function getRoundData( uint80 _roundId ) external view returns (uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound); function latestRoundData() external view returns (uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.20; import {IERC20} from "../IERC20.sol"; import {IERC20Permit} from "../extensions/IERC20Permit.sol"; import {Address} from "../../../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 An operation with an ERC20 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. */ 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. */ 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. */ 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 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); if (returndata.length != 0 && !abi.decode(returndata, (bool))) { 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 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(token).code.length > 0; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.20; /** * @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 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 v4.9.0) (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { _nonReentrantBefore(); _; _nonReentrantAfter(); } function _nonReentrantBefore() private { // On the first call to nonReentrant, _status will be _NOT_ENTERED require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; } function _nonReentrantAfter() private { // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } /** * @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a * `nonReentrant` function in the call stack. */ function _reentrancyGuardEntered() internal view returns (bool) { return _status == _ENTERED; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (security/Pausable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ constructor() { _paused = false; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { _requireNotPaused(); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { _requirePaused(); _; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Throws if the contract is paused. */ function _requireNotPaused() internal view virtual { require(!paused(), "Pausable: paused"); } /** * @dev Throws if the contract is not paused. */ function _requirePaused() internal view virtual { require(paused(), "Pausable: not paused"); } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (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.0.0) (utils/Address.sol) pragma solidity ^0.8.20; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev The ETH balance of the account is not enough to perform the operation. */ error AddressInsufficientBalance(address account); /** * @dev There's no code at `target` (it is not a contract). */ error AddressEmptyCode(address target); /** * @dev A call to an address target failed. The target may have reverted. */ error FailedInnerCall(); /** * @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.20/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { if (address(this).balance < amount) { revert AddressInsufficientBalance(address(this)); } (bool success, ) = recipient.call{value: amount}(""); if (!success) { revert FailedInnerCall(); } } /** * @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 or custom error, it is bubbled * up by this function (like regular Solidity function calls). However, if * the call reverted with no returned reason, this function reverts with a * {FailedInnerCall} error. * * 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. */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCallWithValue(target, data, 0); } /** * @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`. */ function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { if (address(this).balance < value) { revert AddressInsufficientBalance(address(this)); } (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, success, returndata); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, success, returndata); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResultFromTarget(target, success, returndata); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and reverts if the target * was not a contract or bubbling up the revert reason (falling back to {FailedInnerCall}) in case of an * unsuccessful call. */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata ) internal view returns (bytes memory) { if (!success) { _revert(returndata); } else { // only check if target is a contract if the call was successful and the return data is empty // otherwise we already know that it was a contract if (returndata.length == 0 && target.code.length == 0) { revert AddressEmptyCode(target); } return returndata; } } /** * @dev Tool to verify that a low level call was successful, and reverts if it wasn't, either by bubbling the * revert reason or with a default {FailedInnerCall} error. */ function verifyCallResult(bool success, bytes memory returndata) internal pure returns (bytes memory) { if (!success) { _revert(returndata); } else { return returndata; } } /** * @dev Reverts with returndata if present. Otherwise reverts with {FailedInnerCall}. */ function _revert(bytes memory returndata) 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 FailedInnerCall(); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/extensions/IERC20Permit.sol) pragma solidity ^0.8.20; /** * @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); }
// 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; } }
{ "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
[{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"target","type":"address"}],"name":"AddressEmptyCode","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"AddressInsufficientBalance","type":"error"},{"inputs":[],"name":"FailedInnerCall","type":"error"},{"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"},{"indexed":false,"internalType":"string","name":"clickid","type":"string"},{"indexed":false,"internalType":"uint256","name":"token_quantity","type":"uint256"}],"name":"BoughtWithNativeToken","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"},{"indexed":false,"internalType":"string","name":"clickid","type":"string"},{"indexed":false,"internalType":"uint256","name":"token_quantity","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"},{"indexed":false,"internalType":"string","name":"clickid","type":"string"},{"indexed":false,"internalType":"uint256","name":"token_quantity","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"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[{"internalType":"uint256","name":"token_quantity","type":"uint256"},{"internalType":"string","name":"clickid","type":"string"}],"name":"buyTokensNative","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"token_quantity","type":"uint256"},{"internalType":"string","name":"clickid","type":"string"}],"name":"buyTokensUSDC","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"token_quantity","type":"uint256"},{"internalType":"string","name":"clickid","type":"string"}],"name":"buyTokensUSDT","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"i_eth_usd_priceFeed","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"i_usdt_usd_priceFeed","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"s_usdc","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"s_usdt","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_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
608060405234801562000010575f80fd5b5060405162001ddc38038062001ddc833981810160405281019062000036919062000784565b805f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603620000aa575f6040517f1e4fbdf7000000000000000000000000000000000000000000000000000000008152600401620000a19190620007c5565b60405180910390fd5b620000bb816200065e60201b60201c565b505f8060146101000a81548160ff02191690831515021790555060018081905550600146036200023b57735f4ec3df9cbd43714fe2740f5e3616155c5b841960045f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550733e7d1eab13ad0104d2750b8863b489d65364e32d60055f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555073dac17f958d2ee523a2206206994597c13d831ec760025f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555073a0b86991c6218b36c1d19d4a2e9eb0ce3606eb4860035f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555062000657565b603846036200039a57730567f2323251f0aab15c8dfb1967e4e8a7d42aee60045f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555073b97ad0e74fa7d920791e90258a6e2085088b432060055f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507355d398326f99059ff775485246999027b319795560025f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550738ac76a51cc950d9822d68b83fe1ad97b32cd580d60035f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555062000656565b60894603620004f95773ab594600376ec9fd91f8e885dadf0ce036862de060045f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550730a6513e40db6eb1b165753ad52e80663aea5054560055f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555073c2132d05d31c914a87c6611c10748aeb04b58e8f60025f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550733c499c542cef5e3811e1192ce70d8cc03d5c335960035f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555062000655565b61a4b14603620006545773639fe6ab55c921f74e7fac1ee960c0b6293ba61260045f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550733f3f5df88dc9f13eac63df89ec16ef6e7e25dde760055f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555073fd086bc7cd5c481dcc9c85ebe478a1c0b69fcbb960025f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555073af88d065e77c8cc2239327c5edb3a432268e583160035f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b5b5b5b50620007e0565b5f805f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050815f806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6200074e8262000723565b9050919050565b620007608162000742565b81146200076b575f80fd5b50565b5f815190506200077e8162000755565b92915050565b5f602082840312156200079c576200079b6200071f565b5b5f620007ab848285016200076e565b91505092915050565b620007bf8162000742565b82525050565b5f602082019050620007da5f830184620007b4565b92915050565b6115ee80620007ee5f395ff3fe6080604052600436106100e7575f3560e01c806382e19a9d116100895780638da5cb5b116100585780638da5cb5b14610269578063a1db978214610293578063c1c13507146102bb578063f2fde38b146102e5576100e7565b806382e19a9d146101d7578063834719171461020157806384276d811461022b5780638456cb5914610253576100e7565b80635c975abb116100c55780635c975abb146101455780636580b08a1461016f5780636c66386414610197578063715018a6146101c1576100e7565b806316da08e1146100eb578063240a2ffe146101135780633f4ba83a1461012f575b5f80fd5b3480156100f6575f80fd5b50610111600480360381019061010c9190610f4c565b61030d565b005b61012d60048036038101906101289190610fb8565b6103ae565b005b34801561013a575f80fd5b506101436104a9565b005b348015610150575f80fd5b506101596104c3565b604051610166919061102c565b60405180910390f35b34801561017a575f80fd5b5061019560048036038101906101909190610f4c565b6104d8565b005b3480156101a2575f80fd5b506101ab610579565b6040516101b891906110bf565b60405180910390f35b3480156101cc575f80fd5b506101d561059e565b005b3480156101e2575f80fd5b506101eb6105b1565b6040516101f891906110bf565b60405180910390f35b34801561020c575f80fd5b506102156105d6565b60405161022291906110f8565b60405180910390f35b348015610236575f80fd5b50610251600480360381019061024c9190611111565b6105fb565b005b34801561025e575f80fd5b506102676106b6565b005b348015610274575f80fd5b5061027d6106d0565b60405161028a91906110f8565b60405180910390f35b34801561029e575f80fd5b506102b960048036038101906102b49190611166565b6106f7565b005b3480156102c6575f80fd5b506102cf6107b8565b6040516102dc91906110f8565b60405180910390f35b3480156102f0575f80fd5b5061030b600480360381019061030691906111a4565b6107dd565b005b610315610861565b61036a336103216106d0565b8560035f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108ab909392919063ffffffff16565b7f61b07b5eec69ce193eaa65630faea732ba3b0d325f643febeacdf0f005e5416033844284866040516103a1959493929190611258565b60405180910390a1505050565b6103b6610861565b5f6103bf6106d0565b73ffffffffffffffffffffffffffffffffffffffff16346040516103e2906112dd565b5f6040518083038185875af1925050503d805f811461041c576040519150601f19603f3d011682016040523d82523d5f602084013e610421565b606091505b5050905080610465576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161045c9061133b565b60405180910390fd5b7fd69029881ea218c62f2722da18a29c82eabe0cb0f8911e4cd4a5f815e2011fe4333442858760405161049c959493929190611258565b60405180910390a1505050565b6104b161092d565b6104b9610976565b6104c16109fd565b565b5f8060149054906101000a900460ff16905090565b6104e0610861565b610535336104ec6106d0565b8560025f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108ab909392919063ffffffff16565b7f548a1d90f84cec077b6097108fa476a4d900612ef31962ce03b8991a4d25d1d5338442848660405161056c959493929190611258565b60405180910390a1505050565b60025f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6105a6610976565b6105af5f610a5e565b565b60035f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60045f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b610603610976565b5f61060c6106d0565b73ffffffffffffffffffffffffffffffffffffffff168260405161062f906112dd565b5f6040518083038185875af1925050503d805f8114610669576040519150601f19603f3d011682016040523d82523d5f602084013e61066e565b606091505b50509050806106b2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106a9906113c9565b60405180910390fd5b5050565b6106be610861565b6106c6610976565b6106ce610b1f565b565b5f805f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6106ff610976565b5f8290508073ffffffffffffffffffffffffffffffffffffffff1663095ea7b330846040518363ffffffff1660e01b815260040161073e9291906113e7565b6020604051808303815f875af115801561075a573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061077e9190611438565b506107b33061078b6106d0565b848473ffffffffffffffffffffffffffffffffffffffff166108ab909392919063ffffffff16565b505050565b60055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6107e5610976565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610855575f6040517f1e4fbdf700000000000000000000000000000000000000000000000000000000815260040161084c91906110f8565b60405180910390fd5b61085e81610a5e565b50565b6108696104c3565b156108a9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108a0906114ad565b60405180910390fd5b565b610927848573ffffffffffffffffffffffffffffffffffffffff166323b872dd8686866040516024016108e0939291906114cb565b604051602081830303815290604052915060e01b6020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050610b81565b50505050565b6109356104c3565b610974576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161096b9061154a565b60405180910390fd5b565b61097e610c16565b73ffffffffffffffffffffffffffffffffffffffff1661099c6106d0565b73ffffffffffffffffffffffffffffffffffffffff16146109fb576109bf610c16565b6040517f118cdaa70000000000000000000000000000000000000000000000000000000081526004016109f291906110f8565b60405180910390fd5b565b610a0561092d565b5f8060146101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa610a47610c16565b604051610a5491906110f8565b60405180910390a1565b5f805f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050815f806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b610b27610861565b60015f60146101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258610b6a610c16565b604051610b7791906110f8565b60405180910390a1565b5f610bab828473ffffffffffffffffffffffffffffffffffffffff16610c1d90919063ffffffff16565b90505f815114158015610bcf575080806020019051810190610bcd9190611438565b155b15610c1157826040517f5274afe7000000000000000000000000000000000000000000000000000000008152600401610c0891906110f8565b60405180910390fd5b505050565b5f33905090565b6060610c2a83835f610c32565b905092915050565b606081471015610c7957306040517fcd786059000000000000000000000000000000000000000000000000000000008152600401610c7091906110f8565b60405180910390fd5b5f808573ffffffffffffffffffffffffffffffffffffffff168486604051610ca191906115a2565b5f6040518083038185875af1925050503d805f8114610cdb576040519150601f19603f3d011682016040523d82523d5f602084013e610ce0565b606091505b5091509150610cf0868383610cfb565b925050509392505050565b606082610d1057610d0b82610d88565b610d80565b5f8251148015610d3657505f8473ffffffffffffffffffffffffffffffffffffffff163b145b15610d7857836040517f9996b315000000000000000000000000000000000000000000000000000000008152600401610d6f91906110f8565b60405180910390fd5b819050610d81565b5b9392505050565b5f81511115610d9a5780518082602001fd5b6040517f1425ea4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f604051905090565b5f80fd5b5f80fd5b5f819050919050565b610def81610ddd565b8114610df9575f80fd5b50565b5f81359050610e0a81610de6565b92915050565b5f80fd5b5f80fd5b5f601f19601f8301169050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b610e5e82610e18565b810181811067ffffffffffffffff82111715610e7d57610e7c610e28565b5b80604052505050565b5f610e8f610dcc565b9050610e9b8282610e55565b919050565b5f67ffffffffffffffff821115610eba57610eb9610e28565b5b610ec382610e18565b9050602081019050919050565b828183375f83830152505050565b5f610ef0610eeb84610ea0565b610e86565b905082815260208101848484011115610f0c57610f0b610e14565b5b610f17848285610ed0565b509392505050565b5f82601f830112610f3357610f32610e10565b5b8135610f43848260208601610ede565b91505092915050565b5f805f60608486031215610f6357610f62610dd5565b5b5f610f7086828701610dfc565b9350506020610f8186828701610dfc565b925050604084013567ffffffffffffffff811115610fa257610fa1610dd9565b5b610fae86828701610f1f565b9150509250925092565b5f8060408385031215610fce57610fcd610dd5565b5b5f610fdb85828601610dfc565b925050602083013567ffffffffffffffff811115610ffc57610ffb610dd9565b5b61100885828601610f1f565b9150509250929050565b5f8115159050919050565b61102681611012565b82525050565b5f60208201905061103f5f83018461101d565b92915050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f819050919050565b5f61108761108261107d84611045565b611064565b611045565b9050919050565b5f6110988261106d565b9050919050565b5f6110a98261108e565b9050919050565b6110b98161109f565b82525050565b5f6020820190506110d25f8301846110b0565b92915050565b5f6110e282611045565b9050919050565b6110f2816110d8565b82525050565b5f60208201905061110b5f8301846110e9565b92915050565b5f6020828403121561112657611125610dd5565b5b5f61113384828501610dfc565b91505092915050565b611145816110d8565b811461114f575f80fd5b50565b5f813590506111608161113c565b92915050565b5f806040838503121561117c5761117b610dd5565b5b5f61118985828601611152565b925050602061119a85828601610dfc565b9150509250929050565b5f602082840312156111b9576111b8610dd5565b5b5f6111c684828501611152565b91505092915050565b6111d881610ddd565b82525050565b5f81519050919050565b5f82825260208201905092915050565b5f5b838110156112155780820151818401526020810190506111fa565b5f8484015250505050565b5f61122a826111de565b61123481856111e8565b93506112448185602086016111f8565b61124d81610e18565b840191505092915050565b5f60a08201905061126b5f8301886110e9565b61127860208301876111cf565b61128560408301866111cf565b81810360608301526112978185611220565b90506112a660808301846111cf565b9695505050505050565b5f81905092915050565b50565b5f6112c85f836112b0565b91506112d3826112ba565b5f82019050919050565b5f6112e7826112bd565b9150819050919050565b7f46756e6473207472616e7366657220756e73756363657366756c6c00000000005f82015250565b5f611325601b836111e8565b9150611330826112f1565b602082019050919050565b5f6020820190508181035f83015261135281611319565b9050919050565b7f456e6572676957616e4272696467653a3a204661696c656420746f20776974685f8201527f64726177206e617469766520636f696e73000000000000000000000000000000602082015250565b5f6113b36031836111e8565b91506113be82611359565b604082019050919050565b5f6020820190508181035f8301526113e0816113a7565b9050919050565b5f6040820190506113fa5f8301856110e9565b61140760208301846111cf565b9392505050565b61141781611012565b8114611421575f80fd5b50565b5f815190506114328161140e565b92915050565b5f6020828403121561144d5761144c610dd5565b5b5f61145a84828501611424565b91505092915050565b7f5061757361626c653a20706175736564000000000000000000000000000000005f82015250565b5f6114976010836111e8565b91506114a282611463565b602082019050919050565b5f6020820190508181035f8301526114c48161148b565b9050919050565b5f6060820190506114de5f8301866110e9565b6114eb60208301856110e9565b6114f860408301846111cf565b949350505050565b7f5061757361626c653a206e6f74207061757365640000000000000000000000005f82015250565b5f6115346014836111e8565b915061153f82611500565b602082019050919050565b5f6020820190508181035f83015261156181611528565b9050919050565b5f81519050919050565b5f61157c82611568565b61158681856112b0565b93506115968185602086016111f8565b80840191505092915050565b5f6115ad8284611572565b91508190509291505056fea26469706673582212200b95369f396fe9e692a7576fa96fcfa46edb76b93e26e08524d42420861f86d264736f6c63430008160033000000000000000000000000f962a1cc9f1e6c1fe155572162e1ae449bb85edf
Deployed Bytecode
0x6080604052600436106100e7575f3560e01c806382e19a9d116100895780638da5cb5b116100585780638da5cb5b14610269578063a1db978214610293578063c1c13507146102bb578063f2fde38b146102e5576100e7565b806382e19a9d146101d7578063834719171461020157806384276d811461022b5780638456cb5914610253576100e7565b80635c975abb116100c55780635c975abb146101455780636580b08a1461016f5780636c66386414610197578063715018a6146101c1576100e7565b806316da08e1146100eb578063240a2ffe146101135780633f4ba83a1461012f575b5f80fd5b3480156100f6575f80fd5b50610111600480360381019061010c9190610f4c565b61030d565b005b61012d60048036038101906101289190610fb8565b6103ae565b005b34801561013a575f80fd5b506101436104a9565b005b348015610150575f80fd5b506101596104c3565b604051610166919061102c565b60405180910390f35b34801561017a575f80fd5b5061019560048036038101906101909190610f4c565b6104d8565b005b3480156101a2575f80fd5b506101ab610579565b6040516101b891906110bf565b60405180910390f35b3480156101cc575f80fd5b506101d561059e565b005b3480156101e2575f80fd5b506101eb6105b1565b6040516101f891906110bf565b60405180910390f35b34801561020c575f80fd5b506102156105d6565b60405161022291906110f8565b60405180910390f35b348015610236575f80fd5b50610251600480360381019061024c9190611111565b6105fb565b005b34801561025e575f80fd5b506102676106b6565b005b348015610274575f80fd5b5061027d6106d0565b60405161028a91906110f8565b60405180910390f35b34801561029e575f80fd5b506102b960048036038101906102b49190611166565b6106f7565b005b3480156102c6575f80fd5b506102cf6107b8565b6040516102dc91906110f8565b60405180910390f35b3480156102f0575f80fd5b5061030b600480360381019061030691906111a4565b6107dd565b005b610315610861565b61036a336103216106d0565b8560035f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108ab909392919063ffffffff16565b7f61b07b5eec69ce193eaa65630faea732ba3b0d325f643febeacdf0f005e5416033844284866040516103a1959493929190611258565b60405180910390a1505050565b6103b6610861565b5f6103bf6106d0565b73ffffffffffffffffffffffffffffffffffffffff16346040516103e2906112dd565b5f6040518083038185875af1925050503d805f811461041c576040519150601f19603f3d011682016040523d82523d5f602084013e610421565b606091505b5050905080610465576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161045c9061133b565b60405180910390fd5b7fd69029881ea218c62f2722da18a29c82eabe0cb0f8911e4cd4a5f815e2011fe4333442858760405161049c959493929190611258565b60405180910390a1505050565b6104b161092d565b6104b9610976565b6104c16109fd565b565b5f8060149054906101000a900460ff16905090565b6104e0610861565b610535336104ec6106d0565b8560025f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108ab909392919063ffffffff16565b7f548a1d90f84cec077b6097108fa476a4d900612ef31962ce03b8991a4d25d1d5338442848660405161056c959493929190611258565b60405180910390a1505050565b60025f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6105a6610976565b6105af5f610a5e565b565b60035f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60045f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b610603610976565b5f61060c6106d0565b73ffffffffffffffffffffffffffffffffffffffff168260405161062f906112dd565b5f6040518083038185875af1925050503d805f8114610669576040519150601f19603f3d011682016040523d82523d5f602084013e61066e565b606091505b50509050806106b2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106a9906113c9565b60405180910390fd5b5050565b6106be610861565b6106c6610976565b6106ce610b1f565b565b5f805f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6106ff610976565b5f8290508073ffffffffffffffffffffffffffffffffffffffff1663095ea7b330846040518363ffffffff1660e01b815260040161073e9291906113e7565b6020604051808303815f875af115801561075a573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061077e9190611438565b506107b33061078b6106d0565b848473ffffffffffffffffffffffffffffffffffffffff166108ab909392919063ffffffff16565b505050565b60055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6107e5610976565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610855575f6040517f1e4fbdf700000000000000000000000000000000000000000000000000000000815260040161084c91906110f8565b60405180910390fd5b61085e81610a5e565b50565b6108696104c3565b156108a9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108a0906114ad565b60405180910390fd5b565b610927848573ffffffffffffffffffffffffffffffffffffffff166323b872dd8686866040516024016108e0939291906114cb565b604051602081830303815290604052915060e01b6020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050610b81565b50505050565b6109356104c3565b610974576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161096b9061154a565b60405180910390fd5b565b61097e610c16565b73ffffffffffffffffffffffffffffffffffffffff1661099c6106d0565b73ffffffffffffffffffffffffffffffffffffffff16146109fb576109bf610c16565b6040517f118cdaa70000000000000000000000000000000000000000000000000000000081526004016109f291906110f8565b60405180910390fd5b565b610a0561092d565b5f8060146101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa610a47610c16565b604051610a5491906110f8565b60405180910390a1565b5f805f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050815f806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b610b27610861565b60015f60146101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258610b6a610c16565b604051610b7791906110f8565b60405180910390a1565b5f610bab828473ffffffffffffffffffffffffffffffffffffffff16610c1d90919063ffffffff16565b90505f815114158015610bcf575080806020019051810190610bcd9190611438565b155b15610c1157826040517f5274afe7000000000000000000000000000000000000000000000000000000008152600401610c0891906110f8565b60405180910390fd5b505050565b5f33905090565b6060610c2a83835f610c32565b905092915050565b606081471015610c7957306040517fcd786059000000000000000000000000000000000000000000000000000000008152600401610c7091906110f8565b60405180910390fd5b5f808573ffffffffffffffffffffffffffffffffffffffff168486604051610ca191906115a2565b5f6040518083038185875af1925050503d805f8114610cdb576040519150601f19603f3d011682016040523d82523d5f602084013e610ce0565b606091505b5091509150610cf0868383610cfb565b925050509392505050565b606082610d1057610d0b82610d88565b610d80565b5f8251148015610d3657505f8473ffffffffffffffffffffffffffffffffffffffff163b145b15610d7857836040517f9996b315000000000000000000000000000000000000000000000000000000008152600401610d6f91906110f8565b60405180910390fd5b819050610d81565b5b9392505050565b5f81511115610d9a5780518082602001fd5b6040517f1425ea4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f604051905090565b5f80fd5b5f80fd5b5f819050919050565b610def81610ddd565b8114610df9575f80fd5b50565b5f81359050610e0a81610de6565b92915050565b5f80fd5b5f80fd5b5f601f19601f8301169050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b610e5e82610e18565b810181811067ffffffffffffffff82111715610e7d57610e7c610e28565b5b80604052505050565b5f610e8f610dcc565b9050610e9b8282610e55565b919050565b5f67ffffffffffffffff821115610eba57610eb9610e28565b5b610ec382610e18565b9050602081019050919050565b828183375f83830152505050565b5f610ef0610eeb84610ea0565b610e86565b905082815260208101848484011115610f0c57610f0b610e14565b5b610f17848285610ed0565b509392505050565b5f82601f830112610f3357610f32610e10565b5b8135610f43848260208601610ede565b91505092915050565b5f805f60608486031215610f6357610f62610dd5565b5b5f610f7086828701610dfc565b9350506020610f8186828701610dfc565b925050604084013567ffffffffffffffff811115610fa257610fa1610dd9565b5b610fae86828701610f1f565b9150509250925092565b5f8060408385031215610fce57610fcd610dd5565b5b5f610fdb85828601610dfc565b925050602083013567ffffffffffffffff811115610ffc57610ffb610dd9565b5b61100885828601610f1f565b9150509250929050565b5f8115159050919050565b61102681611012565b82525050565b5f60208201905061103f5f83018461101d565b92915050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f819050919050565b5f61108761108261107d84611045565b611064565b611045565b9050919050565b5f6110988261106d565b9050919050565b5f6110a98261108e565b9050919050565b6110b98161109f565b82525050565b5f6020820190506110d25f8301846110b0565b92915050565b5f6110e282611045565b9050919050565b6110f2816110d8565b82525050565b5f60208201905061110b5f8301846110e9565b92915050565b5f6020828403121561112657611125610dd5565b5b5f61113384828501610dfc565b91505092915050565b611145816110d8565b811461114f575f80fd5b50565b5f813590506111608161113c565b92915050565b5f806040838503121561117c5761117b610dd5565b5b5f61118985828601611152565b925050602061119a85828601610dfc565b9150509250929050565b5f602082840312156111b9576111b8610dd5565b5b5f6111c684828501611152565b91505092915050565b6111d881610ddd565b82525050565b5f81519050919050565b5f82825260208201905092915050565b5f5b838110156112155780820151818401526020810190506111fa565b5f8484015250505050565b5f61122a826111de565b61123481856111e8565b93506112448185602086016111f8565b61124d81610e18565b840191505092915050565b5f60a08201905061126b5f8301886110e9565b61127860208301876111cf565b61128560408301866111cf565b81810360608301526112978185611220565b90506112a660808301846111cf565b9695505050505050565b5f81905092915050565b50565b5f6112c85f836112b0565b91506112d3826112ba565b5f82019050919050565b5f6112e7826112bd565b9150819050919050565b7f46756e6473207472616e7366657220756e73756363657366756c6c00000000005f82015250565b5f611325601b836111e8565b9150611330826112f1565b602082019050919050565b5f6020820190508181035f83015261135281611319565b9050919050565b7f456e6572676957616e4272696467653a3a204661696c656420746f20776974685f8201527f64726177206e617469766520636f696e73000000000000000000000000000000602082015250565b5f6113b36031836111e8565b91506113be82611359565b604082019050919050565b5f6020820190508181035f8301526113e0816113a7565b9050919050565b5f6040820190506113fa5f8301856110e9565b61140760208301846111cf565b9392505050565b61141781611012565b8114611421575f80fd5b50565b5f815190506114328161140e565b92915050565b5f6020828403121561144d5761144c610dd5565b5b5f61145a84828501611424565b91505092915050565b7f5061757361626c653a20706175736564000000000000000000000000000000005f82015250565b5f6114976010836111e8565b91506114a282611463565b602082019050919050565b5f6020820190508181035f8301526114c48161148b565b9050919050565b5f6060820190506114de5f8301866110e9565b6114eb60208301856110e9565b6114f860408301846111cf565b949350505050565b7f5061757361626c653a206e6f74207061757365640000000000000000000000005f82015250565b5f6115346014836111e8565b915061153f82611500565b602082019050919050565b5f6020820190508181035f83015261156181611528565b9050919050565b5f81519050919050565b5f61157c82611568565b61158681856112b0565b93506115968185602086016111f8565b80840191505092915050565b5f6115ad8284611572565b91508190509291505056fea26469706673582212200b95369f396fe9e692a7576fa96fcfa46edb76b93e26e08524d42420861f86d264736f6c63430008160033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000f962a1cc9f1e6c1fe155572162e1ae449bb85edf
-----Decoded View---------------
Arg [0] : _owner (address): 0xF962a1cc9F1e6c1fE155572162E1AE449Bb85edf
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000f962a1cc9f1e6c1fe155572162e1ae449bb85edf
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 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.