Source Code
Overview
ETH Balance
0 ETH
Eth Value
$0.00Latest 25 from a total of 1,118 transactions
| Transaction Hash |
Method
|
Block
|
From
|
|
To
|
||||
|---|---|---|---|---|---|---|---|---|---|
| Buy Tokens Nativ... | 24258103 | 48 days ago | IN | 0.0295 ETH | 0.00000155 | ||||
| Buy Tokens Nativ... | 23849107 | 105 days ago | IN | 1.2 ETH | 0.00012485 | ||||
| Buy Tokens Nativ... | 23816668 | 109 days ago | IN | 0.001 ETH | 0.00001905 | ||||
| Buy Tokens Nativ... | 23815731 | 109 days ago | IN | 0.0022999 ETH | 0.00004216 | ||||
| Buy Tokens USDT | 23812951 | 110 days ago | IN | 0 ETH | 0.00010247 | ||||
| Buy Tokens Nativ... | 23812591 | 110 days ago | IN | 0.0001 ETH | 0.00008201 | ||||
| Buy Tokens Nativ... | 23810325 | 110 days ago | IN | 0.0024 ETH | 0.00004189 | ||||
| Buy Tokens Nativ... | 23800310 | 112 days ago | IN | 0.008 ETH | 0.00000691 | ||||
| Buy Tokens Nativ... | 23799510 | 112 days ago | IN | 0.217 ETH | 0.00008957 | ||||
| Buy Tokens Nativ... | 23799181 | 112 days ago | IN | 0.02 ETH | 0.000093 | ||||
| Buy Tokens Nativ... | 23799108 | 112 days ago | IN | 0.0032 ETH | 0.00002641 | ||||
| Buy Tokens Nativ... | 23798364 | 112 days ago | IN | 0.0008 ETH | 0.00012298 | ||||
| Buy Tokens USDT | 23796905 | 112 days ago | IN | 0 ETH | 0.00008056 | ||||
| Buy Tokens Nativ... | 23793421 | 113 days ago | IN | 0.00542 ETH | 0.00004565 | ||||
| Buy Tokens Nativ... | 23791663 | 113 days ago | IN | 0.0005 ETH | 0.00016134 | ||||
| Buy Tokens Nativ... | 23791654 | 113 days ago | IN | 0.0005 ETH | 0.00015775 | ||||
| Buy Tokens Nativ... | 23789005 | 113 days ago | IN | 0.033515 ETH | 0.00004346 | ||||
| Buy Tokens USDT | 23787918 | 113 days ago | IN | 0 ETH | 0.00007315 | ||||
| Buy Tokens USDT | 23787902 | 113 days ago | IN | 0 ETH | 0.00098589 | ||||
| Buy Tokens USDT | 23786995 | 114 days ago | IN | 0 ETH | 0.00096301 | ||||
| Buy Tokens USDT | 23786984 | 114 days ago | IN | 0 ETH | 0.00006727 | ||||
| Buy Tokens Nativ... | 23785516 | 114 days ago | IN | 0.001 ETH | 0.00008436 | ||||
| Buy Tokens Nativ... | 23785512 | 114 days ago | IN | 0.001 ETH | 0.00008433 | ||||
| Buy Tokens Nativ... | 23785494 | 114 days ago | IN | 0.0009 ETH | 0.00008442 | ||||
| Buy Tokens Nativ... | 23785483 | 114 days ago | IN | 0.002 ETH | 0.0000846 |
Latest 25 internal transactions (View All)
Advanced mode:
| Parent Transaction Hash | Method | Block |
From
|
|
To
|
||
|---|---|---|---|---|---|---|---|
| Transfer | 24258103 | 48 days ago | 0.0295 ETH | ||||
| Transfer | 23849107 | 105 days ago | 1.2 ETH | ||||
| Transfer | 23816668 | 109 days ago | 0.001 ETH | ||||
| Transfer | 23815731 | 109 days ago | 0.0022999 ETH | ||||
| Transfer | 23812591 | 110 days ago | 0.0001 ETH | ||||
| Transfer | 23810325 | 110 days ago | 0.0024 ETH | ||||
| Transfer | 23800310 | 112 days ago | 0.008 ETH | ||||
| Transfer | 23799510 | 112 days ago | 0.217 ETH | ||||
| Transfer | 23799181 | 112 days ago | 0.02 ETH | ||||
| Transfer | 23799108 | 112 days ago | 0.0032 ETH | ||||
| Transfer | 23798364 | 112 days ago | 0.0008 ETH | ||||
| Transfer | 23793421 | 113 days ago | 0.00542 ETH | ||||
| Transfer | 23791663 | 113 days ago | 0.0005 ETH | ||||
| Transfer | 23791654 | 113 days ago | 0.0005 ETH | ||||
| Transfer | 23789992 | 113 days ago | 0.001 ETH | ||||
| Buy Tokens Nativ... | 23789992 | 113 days ago | 0.001 ETH | ||||
| Transfer | 23789762 | 113 days ago | 0.002 ETH | ||||
| Buy Tokens Nativ... | 23789762 | 113 days ago | 0.002 ETH | ||||
| Transfer | 23789731 | 113 days ago | 0.002 ETH | ||||
| Buy Tokens Nativ... | 23789731 | 113 days ago | 0.002 ETH | ||||
| Transfer | 23789005 | 113 days ago | 0.033515 ETH | ||||
| Transfer | 23785516 | 114 days ago | 0.001 ETH | ||||
| Transfer | 23785512 | 114 days ago | 0.001 ETH | ||||
| Transfer | 23785494 | 114 days ago | 0.0009 ETH | ||||
| Transfer | 23785483 | 114 days ago | 0.002 ETH |
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions
Loading...
Loading
Contract Name:
TapziPresale
Compiler Version
v0.8.24+commit.e11b9ed9
Optimization Enabled:
No with 200 runs
Other Settings:
cancun EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT
pragma solidity 0.8.24;
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 TapziPresale 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.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 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.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": [],
"evmVersion": "cancun"
}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"},{"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
608060405234801562000010575f80fd5b5060405162001be338038062001be3833981810160405281019062000036919062000784565b805f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603620000aa575f6040517f1e4fbdf7000000000000000000000000000000000000000000000000000000008152600401620000a19190620007c5565b60405180910390fd5b620000bb816200065e60201b60201c565b505f8060146101000a81548160ff02191690831515021790555060018081905550600146036200023b57735f4ec3df9cbd43714fe2740f5e3616155c5b841960045f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550733e7d1eab13ad0104d2750b8863b489d65364e32d60055f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555073dac17f958d2ee523a2206206994597c13d831ec760025f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555073a0b86991c6218b36c1d19d4a2e9eb0ce3606eb4860035f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555062000657565b603846036200039a57730567f2323251f0aab15c8dfb1967e4e8a7d42aee60045f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555073b97ad0e74fa7d920791e90258a6e2085088b432060055f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507355d398326f99059ff775485246999027b319795560025f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550738ac76a51cc950d9822d68b83fe1ad97b32cd580d60035f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555062000656565b60894603620004f95773ab594600376ec9fd91f8e885dadf0ce036862de060045f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550730a6513e40db6eb1b165753ad52e80663aea5054560055f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555073c2132d05d31c914a87c6611c10748aeb04b58e8f60025f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550733c499c542cef5e3811e1192ce70d8cc03d5c335960035f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555062000655565b61a4b14603620006545773639fe6ab55c921f74e7fac1ee960c0b6293ba61260045f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550733f3f5df88dc9f13eac63df89ec16ef6e7e25dde760055f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555073fd086bc7cd5c481dcc9c85ebe478a1c0b69fcbb960025f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555073af88d065e77c8cc2239327c5edb3a432268e583160035f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b5b5b5b50620007e0565b5f805f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050815f806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6200074e8262000723565b9050919050565b620007608162000742565b81146200076b575f80fd5b50565b5f815190506200077e8162000755565b92915050565b5f602082840312156200079c576200079b6200071f565b5b5f620007ab848285016200076e565b91505092915050565b620007bf8162000742565b82525050565b5f602082019050620007da5f830184620007b4565b92915050565b6113f580620007ee5f395ff3fe6080604052600436106100e7575f3560e01c806382e19a9d116100895780638da5cb5b116100585780638da5cb5b14610269578063a1db978214610293578063c1c13507146102bb578063f2fde38b146102e5576100e7565b806382e19a9d146101d7578063834719171461020157806384276d811461022b5780638456cb5914610253576100e7565b80635c975abb116100c55780635c975abb146101455780636580b08a1461016f5780636c66386414610197578063715018a6146101c1576100e7565b806316da08e1146100eb578063240a2ffe146101135780633f4ba83a1461012f575b5f80fd5b3480156100f6575f80fd5b50610111600480360381019061010c9190610da3565b61030d565b005b61012d60048036038101906101289190610e0f565b6103ae565b005b34801561013a575f80fd5b506101436104a9565b005b348015610150575f80fd5b506101596104c3565b6040516101669190610e83565b60405180910390f35b34801561017a575f80fd5b5061019560048036038101906101909190610da3565b6104d8565b005b3480156101a2575f80fd5b506101ab610579565b6040516101b89190610f16565b60405180910390f35b3480156101cc575f80fd5b506101d561059e565b005b3480156101e2575f80fd5b506101eb6105b1565b6040516101f89190610f16565b60405180910390f35b34801561020c575f80fd5b506102156105d6565b6040516102229190610f4f565b60405180910390f35b348015610236575f80fd5b50610251600480360381019061024c9190610f68565b6105fb565b005b34801561025e575f80fd5b506102676106b6565b005b348015610274575f80fd5b5061027d6106d0565b60405161028a9190610f4f565b60405180910390f35b34801561029e575f80fd5b506102b960048036038101906102b49190610fbd565b6106f7565b005b3480156102c6575f80fd5b506102cf6107b8565b6040516102dc9190610f4f565b60405180910390f35b3480156102f0575f80fd5b5061030b60048036038101906103069190610ffb565b6107dd565b005b610315610861565b61036a336103216106d0565b8560035f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108ab909392919063ffffffff16565b7f61b07b5eec69ce193eaa65630faea732ba3b0d325f643febeacdf0f005e5416033844284866040516103a19594939291906110af565b60405180910390a1505050565b6103b6610861565b5f6103bf6106d0565b73ffffffffffffffffffffffffffffffffffffffff16346040516103e290611134565b5f6040518083038185875af1925050503d805f811461041c576040519150601f19603f3d011682016040523d82523d5f602084013e610421565b606091505b5050905080610465576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161045c90611192565b60405180910390fd5b7fd69029881ea218c62f2722da18a29c82eabe0cb0f8911e4cd4a5f815e2011fe4333442858760405161049c9594939291906110af565b60405180910390a1505050565b6104b161092d565b6104b9610976565b6104c16109fd565b565b5f8060149054906101000a900460ff16905090565b6104e0610861565b610535336104ec6106d0565b8560025f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108ab909392919063ffffffff16565b7f548a1d90f84cec077b6097108fa476a4d900612ef31962ce03b8991a4d25d1d5338442848660405161056c9594939291906110af565b60405180910390a1505050565b60025f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6105a6610976565b6105af5f610a5e565b565b60035f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60045f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b610603610976565b5f61060c6106d0565b73ffffffffffffffffffffffffffffffffffffffff168260405161062f90611134565b5f6040518083038185875af1925050503d805f8114610669576040519150601f19603f3d011682016040523d82523d5f602084013e61066e565b606091505b50509050806106b2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106a990611220565b60405180910390fd5b5050565b6106be610861565b6106c6610976565b6106ce610b1f565b565b5f805f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6106ff610976565b5f8290508073ffffffffffffffffffffffffffffffffffffffff1663095ea7b330846040518363ffffffff1660e01b815260040161073e92919061123e565b6020604051808303815f875af115801561075a573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061077e919061128f565b506107b33061078b6106d0565b848473ffffffffffffffffffffffffffffffffffffffff166108ab909392919063ffffffff16565b505050565b60055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6107e5610976565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610855575f6040517f1e4fbdf700000000000000000000000000000000000000000000000000000000815260040161084c9190610f4f565b60405180910390fd5b61085e81610a5e565b50565b6108696104c3565b156108a9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108a090611304565b60405180910390fd5b565b610927848573ffffffffffffffffffffffffffffffffffffffff166323b872dd8686866040516024016108e093929190611322565b604051602081830303815290604052915060e01b6020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050610b81565b50505050565b6109356104c3565b610974576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161096b906113a1565b60405180910390fd5b565b61097e610c1c565b73ffffffffffffffffffffffffffffffffffffffff1661099c6106d0565b73ffffffffffffffffffffffffffffffffffffffff16146109fb576109bf610c1c565b6040517f118cdaa70000000000000000000000000000000000000000000000000000000081526004016109f29190610f4f565b60405180910390fd5b565b610a0561092d565b5f8060146101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa610a47610c1c565b604051610a549190610f4f565b60405180910390a1565b5f805f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050815f806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b610b27610861565b60015f60146101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258610b6a610c1c565b604051610b779190610f4f565b60405180910390a1565b5f8060205f8451602086015f885af180610ba0576040513d5f823e3d81fd5b3d92505f519150505f8214610bb9576001811415610bd4565b5f8473ffffffffffffffffffffffffffffffffffffffff163b145b15610c1657836040517f5274afe7000000000000000000000000000000000000000000000000000000008152600401610c0d9190610f4f565b60405180910390fd5b50505050565b5f33905090565b5f604051905090565b5f80fd5b5f80fd5b5f819050919050565b610c4681610c34565b8114610c50575f80fd5b50565b5f81359050610c6181610c3d565b92915050565b5f80fd5b5f80fd5b5f601f19601f8301169050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b610cb582610c6f565b810181811067ffffffffffffffff82111715610cd457610cd3610c7f565b5b80604052505050565b5f610ce6610c23565b9050610cf28282610cac565b919050565b5f67ffffffffffffffff821115610d1157610d10610c7f565b5b610d1a82610c6f565b9050602081019050919050565b828183375f83830152505050565b5f610d47610d4284610cf7565b610cdd565b905082815260208101848484011115610d6357610d62610c6b565b5b610d6e848285610d27565b509392505050565b5f82601f830112610d8a57610d89610c67565b5b8135610d9a848260208601610d35565b91505092915050565b5f805f60608486031215610dba57610db9610c2c565b5b5f610dc786828701610c53565b9350506020610dd886828701610c53565b925050604084013567ffffffffffffffff811115610df957610df8610c30565b5b610e0586828701610d76565b9150509250925092565b5f8060408385031215610e2557610e24610c2c565b5b5f610e3285828601610c53565b925050602083013567ffffffffffffffff811115610e5357610e52610c30565b5b610e5f85828601610d76565b9150509250929050565b5f8115159050919050565b610e7d81610e69565b82525050565b5f602082019050610e965f830184610e74565b92915050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f819050919050565b5f610ede610ed9610ed484610e9c565b610ebb565b610e9c565b9050919050565b5f610eef82610ec4565b9050919050565b5f610f0082610ee5565b9050919050565b610f1081610ef6565b82525050565b5f602082019050610f295f830184610f07565b92915050565b5f610f3982610e9c565b9050919050565b610f4981610f2f565b82525050565b5f602082019050610f625f830184610f40565b92915050565b5f60208284031215610f7d57610f7c610c2c565b5b5f610f8a84828501610c53565b91505092915050565b610f9c81610f2f565b8114610fa6575f80fd5b50565b5f81359050610fb781610f93565b92915050565b5f8060408385031215610fd357610fd2610c2c565b5b5f610fe085828601610fa9565b9250506020610ff185828601610c53565b9150509250929050565b5f602082840312156110105761100f610c2c565b5b5f61101d84828501610fa9565b91505092915050565b61102f81610c34565b82525050565b5f81519050919050565b5f82825260208201905092915050565b5f5b8381101561106c578082015181840152602081019050611051565b5f8484015250505050565b5f61108182611035565b61108b818561103f565b935061109b81856020860161104f565b6110a481610c6f565b840191505092915050565b5f60a0820190506110c25f830188610f40565b6110cf6020830187611026565b6110dc6040830186611026565b81810360608301526110ee8185611077565b90506110fd6080830184611026565b9695505050505050565b5f81905092915050565b50565b5f61111f5f83611107565b915061112a82611111565b5f82019050919050565b5f61113e82611114565b9150819050919050565b7f46756e6473207472616e7366657220756e73756363657366756c6c00000000005f82015250565b5f61117c601b8361103f565b915061118782611148565b602082019050919050565b5f6020820190508181035f8301526111a981611170565b9050919050565b7f456e6572676957616e4272696467653a3a204661696c656420746f20776974685f8201527f64726177206e617469766520636f696e73000000000000000000000000000000602082015250565b5f61120a60318361103f565b9150611215826111b0565b604082019050919050565b5f6020820190508181035f830152611237816111fe565b9050919050565b5f6040820190506112515f830185610f40565b61125e6020830184611026565b9392505050565b61126e81610e69565b8114611278575f80fd5b50565b5f8151905061128981611265565b92915050565b5f602082840312156112a4576112a3610c2c565b5b5f6112b18482850161127b565b91505092915050565b7f5061757361626c653a20706175736564000000000000000000000000000000005f82015250565b5f6112ee60108361103f565b91506112f9826112ba565b602082019050919050565b5f6020820190508181035f83015261131b816112e2565b9050919050565b5f6060820190506113355f830186610f40565b6113426020830185610f40565b61134f6040830184611026565b949350505050565b7f5061757361626c653a206e6f74207061757365640000000000000000000000005f82015250565b5f61138b60148361103f565b915061139682611357565b602082019050919050565b5f6020820190508181035f8301526113b88161137f565b905091905056fea264697066735822122023cc26dc4024bb248ec2d7b42577851cd968e0f8bc9cf1cad3b1238edfbd80d164736f6c63430008180033000000000000000000000000497990860d2448dc475dcc1496309c1883cd214b
Deployed Bytecode
0x6080604052600436106100e7575f3560e01c806382e19a9d116100895780638da5cb5b116100585780638da5cb5b14610269578063a1db978214610293578063c1c13507146102bb578063f2fde38b146102e5576100e7565b806382e19a9d146101d7578063834719171461020157806384276d811461022b5780638456cb5914610253576100e7565b80635c975abb116100c55780635c975abb146101455780636580b08a1461016f5780636c66386414610197578063715018a6146101c1576100e7565b806316da08e1146100eb578063240a2ffe146101135780633f4ba83a1461012f575b5f80fd5b3480156100f6575f80fd5b50610111600480360381019061010c9190610da3565b61030d565b005b61012d60048036038101906101289190610e0f565b6103ae565b005b34801561013a575f80fd5b506101436104a9565b005b348015610150575f80fd5b506101596104c3565b6040516101669190610e83565b60405180910390f35b34801561017a575f80fd5b5061019560048036038101906101909190610da3565b6104d8565b005b3480156101a2575f80fd5b506101ab610579565b6040516101b89190610f16565b60405180910390f35b3480156101cc575f80fd5b506101d561059e565b005b3480156101e2575f80fd5b506101eb6105b1565b6040516101f89190610f16565b60405180910390f35b34801561020c575f80fd5b506102156105d6565b6040516102229190610f4f565b60405180910390f35b348015610236575f80fd5b50610251600480360381019061024c9190610f68565b6105fb565b005b34801561025e575f80fd5b506102676106b6565b005b348015610274575f80fd5b5061027d6106d0565b60405161028a9190610f4f565b60405180910390f35b34801561029e575f80fd5b506102b960048036038101906102b49190610fbd565b6106f7565b005b3480156102c6575f80fd5b506102cf6107b8565b6040516102dc9190610f4f565b60405180910390f35b3480156102f0575f80fd5b5061030b60048036038101906103069190610ffb565b6107dd565b005b610315610861565b61036a336103216106d0565b8560035f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108ab909392919063ffffffff16565b7f61b07b5eec69ce193eaa65630faea732ba3b0d325f643febeacdf0f005e5416033844284866040516103a19594939291906110af565b60405180910390a1505050565b6103b6610861565b5f6103bf6106d0565b73ffffffffffffffffffffffffffffffffffffffff16346040516103e290611134565b5f6040518083038185875af1925050503d805f811461041c576040519150601f19603f3d011682016040523d82523d5f602084013e610421565b606091505b5050905080610465576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161045c90611192565b60405180910390fd5b7fd69029881ea218c62f2722da18a29c82eabe0cb0f8911e4cd4a5f815e2011fe4333442858760405161049c9594939291906110af565b60405180910390a1505050565b6104b161092d565b6104b9610976565b6104c16109fd565b565b5f8060149054906101000a900460ff16905090565b6104e0610861565b610535336104ec6106d0565b8560025f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108ab909392919063ffffffff16565b7f548a1d90f84cec077b6097108fa476a4d900612ef31962ce03b8991a4d25d1d5338442848660405161056c9594939291906110af565b60405180910390a1505050565b60025f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6105a6610976565b6105af5f610a5e565b565b60035f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60045f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b610603610976565b5f61060c6106d0565b73ffffffffffffffffffffffffffffffffffffffff168260405161062f90611134565b5f6040518083038185875af1925050503d805f8114610669576040519150601f19603f3d011682016040523d82523d5f602084013e61066e565b606091505b50509050806106b2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106a990611220565b60405180910390fd5b5050565b6106be610861565b6106c6610976565b6106ce610b1f565b565b5f805f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6106ff610976565b5f8290508073ffffffffffffffffffffffffffffffffffffffff1663095ea7b330846040518363ffffffff1660e01b815260040161073e92919061123e565b6020604051808303815f875af115801561075a573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061077e919061128f565b506107b33061078b6106d0565b848473ffffffffffffffffffffffffffffffffffffffff166108ab909392919063ffffffff16565b505050565b60055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6107e5610976565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610855575f6040517f1e4fbdf700000000000000000000000000000000000000000000000000000000815260040161084c9190610f4f565b60405180910390fd5b61085e81610a5e565b50565b6108696104c3565b156108a9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108a090611304565b60405180910390fd5b565b610927848573ffffffffffffffffffffffffffffffffffffffff166323b872dd8686866040516024016108e093929190611322565b604051602081830303815290604052915060e01b6020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050610b81565b50505050565b6109356104c3565b610974576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161096b906113a1565b60405180910390fd5b565b61097e610c1c565b73ffffffffffffffffffffffffffffffffffffffff1661099c6106d0565b73ffffffffffffffffffffffffffffffffffffffff16146109fb576109bf610c1c565b6040517f118cdaa70000000000000000000000000000000000000000000000000000000081526004016109f29190610f4f565b60405180910390fd5b565b610a0561092d565b5f8060146101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa610a47610c1c565b604051610a549190610f4f565b60405180910390a1565b5f805f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050815f806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b610b27610861565b60015f60146101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258610b6a610c1c565b604051610b779190610f4f565b60405180910390a1565b5f8060205f8451602086015f885af180610ba0576040513d5f823e3d81fd5b3d92505f519150505f8214610bb9576001811415610bd4565b5f8473ffffffffffffffffffffffffffffffffffffffff163b145b15610c1657836040517f5274afe7000000000000000000000000000000000000000000000000000000008152600401610c0d9190610f4f565b60405180910390fd5b50505050565b5f33905090565b5f604051905090565b5f80fd5b5f80fd5b5f819050919050565b610c4681610c34565b8114610c50575f80fd5b50565b5f81359050610c6181610c3d565b92915050565b5f80fd5b5f80fd5b5f601f19601f8301169050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b610cb582610c6f565b810181811067ffffffffffffffff82111715610cd457610cd3610c7f565b5b80604052505050565b5f610ce6610c23565b9050610cf28282610cac565b919050565b5f67ffffffffffffffff821115610d1157610d10610c7f565b5b610d1a82610c6f565b9050602081019050919050565b828183375f83830152505050565b5f610d47610d4284610cf7565b610cdd565b905082815260208101848484011115610d6357610d62610c6b565b5b610d6e848285610d27565b509392505050565b5f82601f830112610d8a57610d89610c67565b5b8135610d9a848260208601610d35565b91505092915050565b5f805f60608486031215610dba57610db9610c2c565b5b5f610dc786828701610c53565b9350506020610dd886828701610c53565b925050604084013567ffffffffffffffff811115610df957610df8610c30565b5b610e0586828701610d76565b9150509250925092565b5f8060408385031215610e2557610e24610c2c565b5b5f610e3285828601610c53565b925050602083013567ffffffffffffffff811115610e5357610e52610c30565b5b610e5f85828601610d76565b9150509250929050565b5f8115159050919050565b610e7d81610e69565b82525050565b5f602082019050610e965f830184610e74565b92915050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f819050919050565b5f610ede610ed9610ed484610e9c565b610ebb565b610e9c565b9050919050565b5f610eef82610ec4565b9050919050565b5f610f0082610ee5565b9050919050565b610f1081610ef6565b82525050565b5f602082019050610f295f830184610f07565b92915050565b5f610f3982610e9c565b9050919050565b610f4981610f2f565b82525050565b5f602082019050610f625f830184610f40565b92915050565b5f60208284031215610f7d57610f7c610c2c565b5b5f610f8a84828501610c53565b91505092915050565b610f9c81610f2f565b8114610fa6575f80fd5b50565b5f81359050610fb781610f93565b92915050565b5f8060408385031215610fd357610fd2610c2c565b5b5f610fe085828601610fa9565b9250506020610ff185828601610c53565b9150509250929050565b5f602082840312156110105761100f610c2c565b5b5f61101d84828501610fa9565b91505092915050565b61102f81610c34565b82525050565b5f81519050919050565b5f82825260208201905092915050565b5f5b8381101561106c578082015181840152602081019050611051565b5f8484015250505050565b5f61108182611035565b61108b818561103f565b935061109b81856020860161104f565b6110a481610c6f565b840191505092915050565b5f60a0820190506110c25f830188610f40565b6110cf6020830187611026565b6110dc6040830186611026565b81810360608301526110ee8185611077565b90506110fd6080830184611026565b9695505050505050565b5f81905092915050565b50565b5f61111f5f83611107565b915061112a82611111565b5f82019050919050565b5f61113e82611114565b9150819050919050565b7f46756e6473207472616e7366657220756e73756363657366756c6c00000000005f82015250565b5f61117c601b8361103f565b915061118782611148565b602082019050919050565b5f6020820190508181035f8301526111a981611170565b9050919050565b7f456e6572676957616e4272696467653a3a204661696c656420746f20776974685f8201527f64726177206e617469766520636f696e73000000000000000000000000000000602082015250565b5f61120a60318361103f565b9150611215826111b0565b604082019050919050565b5f6020820190508181035f830152611237816111fe565b9050919050565b5f6040820190506112515f830185610f40565b61125e6020830184611026565b9392505050565b61126e81610e69565b8114611278575f80fd5b50565b5f8151905061128981611265565b92915050565b5f602082840312156112a4576112a3610c2c565b5b5f6112b18482850161127b565b91505092915050565b7f5061757361626c653a20706175736564000000000000000000000000000000005f82015250565b5f6112ee60108361103f565b91506112f9826112ba565b602082019050919050565b5f6020820190508181035f83015261131b816112e2565b9050919050565b5f6060820190506113355f830186610f40565b6113426020830185610f40565b61134f6040830184611026565b949350505050565b7f5061757361626c653a206e6f74207061757365640000000000000000000000005f82015250565b5f61138b60148361103f565b915061139682611357565b602082019050919050565b5f6020820190508181035f8301526113b88161137f565b905091905056fea264697066735822122023cc26dc4024bb248ec2d7b42577851cd968e0f8bc9cf1cad3b1238edfbd80d164736f6c63430008180033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000497990860d2448dc475dcc1496309c1883cd214b
-----Decoded View---------------
Arg [0] : _owner (address): 0x497990860D2448dc475DCc1496309C1883cd214b
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000497990860d2448dc475dcc1496309c1883cd214b
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in ETH
0
Multichain Portfolio | 33 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
Loading...
Loading
Loading...
Loading
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.