BscScan - Sponsored slots available. Book your slot here!
Source Code
Latest 25 from a total of 2,324 transactions
| Transaction Hash |
|
Block
|
From
|
To
|
|||||
|---|---|---|---|---|---|---|---|---|---|
| Buy Token USDT | 85320368 | 37 days ago | IN | 0 BNB | 0.00000148 | ||||
| Buy Token USDT | 85319627 | 37 days ago | IN | 0 BNB | 0.00000112 | ||||
| Buy Token USDT | 85319524 | 37 days ago | IN | 0 BNB | 0.00000112 | ||||
| Buy Token USDT | 85319517 | 37 days ago | IN | 0 BNB | 0.00000112 | ||||
| Buy Token USDT | 85318284 | 37 days ago | IN | 0 BNB | 0.00000148 | ||||
| Buy Token USDT | 85318148 | 37 days ago | IN | 0 BNB | 0.00000148 | ||||
| Buy Token USDT | 85318090 | 37 days ago | IN | 0 BNB | 0.00000148 | ||||
| Buy Token USDT | 85318077 | 37 days ago | IN | 0 BNB | 0.00000148 | ||||
| Open Sale | 85317950 | 37 days ago | IN | 0 BNB | 0.00000151 | ||||
| Buy Token USDT | 85317857 | 37 days ago | IN | 0 BNB | 0.00000216 | ||||
| Buy Token USDT | 85317752 | 37 days ago | IN | 0 BNB | 0.00000216 | ||||
| Buy Token USDT | 85317705 | 37 days ago | IN | 0 BNB | 0.00000382 | ||||
| Buy Token USDT | 85317700 | 37 days ago | IN | 0 BNB | 0.00000216 | ||||
| Buy Token USDT | 85317570 | 37 days ago | IN | 0 BNB | 0.00000216 | ||||
| Buy Token USDT | 85317416 | 37 days ago | IN | 0 BNB | 0.00000216 | ||||
| Buy Token USDT | 85317262 | 37 days ago | IN | 0 BNB | 0.00000585 | ||||
| Buy Token USDT | 85317234 | 37 days ago | IN | 0 BNB | 0.00000382 | ||||
| Buy Token USDT | 85317225 | 37 days ago | IN | 0 BNB | 0.00000216 | ||||
| Buy Token USDT | 85317208 | 37 days ago | IN | 0 BNB | 0.00000216 | ||||
| Buy Token USDT | 85316767 | 37 days ago | IN | 0 BNB | 0.00000585 | ||||
| Buy Token USDT | 85316644 | 37 days ago | IN | 0 BNB | 0.00000381 | ||||
| Buy Token USDT | 85316483 | 37 days ago | IN | 0 BNB | 0.00000381 | ||||
| Buy Token USDT | 85316459 | 37 days ago | IN | 0 BNB | 0.00000585 | ||||
| Buy Token USDT | 85316407 | 37 days ago | IN | 0 BNB | 0.00000585 | ||||
| Buy Token USDT | 85316059 | 37 days ago | IN | 0 BNB | 0.00000585 |
Latest 25 internal transactions (View All)
| Parent Transaction Hash | Block | From | To | |||
|---|---|---|---|---|---|---|
| 85311755 | 37 days ago | 0.00000386 BNB | ||||
| 85311755 | 37 days ago | 0.16980813 BNB | ||||
| 85295400 | 38 days ago | 0.00011064 BNB | ||||
| 85295400 | 38 days ago | 1.64367935 BNB | ||||
| 85292974 | 38 days ago | 0.00002442 BNB | ||||
| 85292974 | 38 days ago | 0.16940057 BNB | ||||
| 85273695 | 38 days ago | 0.00000135 BNB | ||||
| 85273695 | 38 days ago | 0.82132164 BNB | ||||
| 85264501 | 38 days ago | 0.00000124 BNB | ||||
| 85264501 | 38 days ago | 0.16920475 BNB | ||||
| 85160986 | 38 days ago | 0.00012245 BNB | ||||
| 85160986 | 38 days ago | 0.81424454 BNB | ||||
| 85124479 | 38 days ago | 0.00002709 BNB | ||||
| 85124479 | 38 days ago | 0.8132379 BNB | ||||
| 85111091 | 39 days ago | 0.00000199 BNB | ||||
| 85111091 | 39 days ago | 0.167042 BNB | ||||
| 85110708 | 39 days ago | 0.00004415 BNB | ||||
| 85110708 | 39 days ago | 1.62336184 BNB | ||||
| 85036367 | 39 days ago | 0.00007686 BNB | ||||
| 85036367 | 39 days ago | 0.16726613 BNB | ||||
| 84952277 | 39 days ago | 0.0000355 BNB | ||||
| 84952277 | 39 days ago | 0.16273649 BNB | ||||
| 84916216 | 40 days ago | 0.00003472 BNB | ||||
| 84916216 | 40 days ago | 1.57786727 BNB | ||||
| 84847350 | 40 days ago | 0.00000526 BNB |
Cross-Chain Transactions
Loading...
Loading
Contract Name:
KOTAIPresale
Compiler Version
v0.8.30+commit.73712a01
Optimization Enabled:
No with 200 runs
Other Settings:
cancun EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.30;
import {SafeERC20} from "@openzeppelin-contracts-5.0.2/token/ERC20/utils/SafeERC20.sol";
import {ReentrancyGuard} from "@openzeppelin-contracts-5.0.2/utils/ReentrancyGuard.sol";
import {Ownable} from "@openzeppelin-contracts-5.0.2/access/Ownable.sol";
import {IERC20} from "@openzeppelin-contracts-5.0.2/token/ERC20/IERC20.sol";
import {IERC20Metadata} from "@openzeppelin-contracts-5.0.2/token/ERC20/extensions/IERC20Metadata.sol";
interface IUniswapV2Pair {
function getReserves() external view returns (uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast);
function token0() external view returns (address);
function token1() external view returns (address);
}
contract KOTAIPresale is Ownable, ReentrancyGuard {
using SafeERC20 for IERC20;
IERC20 public saleToken;
IERC20 public addressUSDT;
IUniswapV2Pair public ethPair;
address payable private _marketingWallet1;
bool public saleOpend = false;
uint256[] public investLevels;
address[] public buyersAddresses;
mapping(address => uint256) public mapClaimableTokenAmount;
mapping(address => bool) private isWERT;
event TokensBoughtUSDT(address buyer_, uint256 investLevel_);
event TokensBoughtNative(address buyer_, uint256 investLevel_);
event UnsoldTokenBurned(uint256 value_);
event ClaimedStuckedValue(string asset, uint256 amount_);
event SaleOpend(bool opend);
constructor(
address saleToken_,
address addressUSDT_,
address uniswapETHUSDTPair_,
address marketingWallet1_
) Ownable(msg.sender) {
saleToken = IERC20(saleToken_);
addressUSDT = IERC20(addressUSDT_);
ethPair = IUniswapV2Pair(uniswapETHUSDTPair_);
_marketingWallet1 = payable(marketingWallet1_);
investLevels = [
105 * 10**18,
510 * 10**18,
1020 * 10**18
];
}
modifier checkSale {
require(saleOpend == true, "KOTAIPresale: Sale not opened");
_;
}
modifier validLevel(uint8 investLevel_) {
require(investLevel_ < investLevels.length, "KOTAIPresale: Invalid invest level");
_;
}
function buyTokenUSDT(address buyer_, uint8 investLevel_) public nonReentrant checkSale validLevel(investLevel_) {
uint256 valueUSDT = investLevels[investLevel_];
addressUSDT.safeTransferFrom(buyer_, address(this), valueUSDT);
addToClaimable(buyer_, investLevel_);
addressUSDT.safeTransfer(_marketingWallet1, valueUSDT);
emit TokensBoughtUSDT(buyer_, valueUSDT);
}
function buyTokenNative(address buyer_, uint8 investLevel_) public payable nonReentrant checkSale validLevel(investLevel_) {
uint256 valueUSDT = investLevels[investLevel_];
uint256 ethValue = getNativePricePerLevel(investLevel_);
require(msg.value >= ethValue, "KOTAIPresale: Not enough ETH sent!");
addToClaimable(buyer_, investLevel_);
_marketingWallet1.transfer(ethValue);
uint256 change = msg.value - ethValue;
if (change > 0) {
payable(msg.sender).transfer(change);
}
emit TokensBoughtNative(buyer_, valueUSDT);
}
function buyTokenWERT(address buyer_, uint8 investLevel_) public nonReentrant checkSale validLevel(investLevel_) {
require(isWERT[msg.sender] == true, "KOTAIPresale: Need to be a WERT Wallet.");
uint256 valueUSDT = investLevels[investLevel_];
addToClaimable(buyer_, investLevel_);
addressUSDT.safeTransferFrom(msg.sender, _marketingWallet1, valueUSDT);
emit TokensBoughtUSDT(buyer_, valueUSDT);
}
function addToClaimable(address buyer_, uint256 investLevel_) internal {
if (mapClaimableTokenAmount[buyer_] == 0) {
buyersAddresses.push(buyer_);
}
uint256 oldAmount = mapClaimableTokenAmount[buyer_];
uint256 tokenAmount;
if (investLevel_ == 0) {
tokenAmount = 1_925_000 * 10**18;
} else if (investLevel_ == 1) {
tokenAmount = 12_750_000 * 10**18;
} else if (investLevel_ == 2) {
tokenAmount = 34_000_000 * 10**18;
} else {
revert("KOTAIPresale: Invalid invest level (internal)");
}
mapClaimableTokenAmount[buyer_] = oldAmount + tokenAmount;
}
function getETHPrice() public view returns (uint256) {
(uint112 reserveUSDT, uint112 reserveETH, ) = ethPair.getReserves();
return (uint256(reserveUSDT) * 1e18) / uint256(reserveETH);
}
function getNativePricePerLevel(uint256 investLevel_) public view validLevel(uint8(investLevel_)) returns (uint256) {
uint256 ethPrice = getETHPrice();
return (investLevels[investLevel_] * 1e18) / ethPrice;
}
function getBuyers() public view returns (address[] memory) {
return buyersAddresses;
}
function getClaimables() public view returns (uint256[] memory) {
uint256[] memory tokens = new uint256[](buyersAddresses.length);
for (uint i = 0; i < buyersAddresses.length; i++) {
tokens[i] = mapClaimableTokenAmount[buyersAddresses[i]];
}
return tokens;
}
function addWERTWallet(address wertWallet_) public onlyOwner {
isWERT[wertWallet_] = true;
}
function removeWERTWallet(address wertWallet_) public onlyOwner {
isWERT[wertWallet_] = false;
}
function openSale() public onlyOwner {
saleOpend = !saleOpend;
emit SaleOpend(saleOpend);
}
function claimStuckToken(address token_) public onlyOwner {
require(token_ != address(saleToken), "KOTAIPresale: Not allowed to claim presale token!");
IERC20 stuckedToken = IERC20(token_);
uint256 tokenAmount = stuckedToken.balanceOf(address(this));
stuckedToken.transfer(_marketingWallet1, tokenAmount);
emit ClaimedStuckedValue("Token", tokenAmount);
}
function claimStuckETH() public onlyOwner {
uint256 ethAmount = address(this).balance;
_marketingWallet1.transfer(ethAmount);
emit ClaimedStuckedValue("ETH", ethAmount);
}
}// 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) (utils/ReentrancyGuard.sol)
pragma solidity ^0.8.20;
/**
* @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;
/**
* @dev Unauthorized reentrant call.
*/
error ReentrancyGuardReentrantCall();
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
if (_status == ENTERED) {
revert ReentrancyGuardReentrantCall();
}
// 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 v5.0.0) (access/Ownable.sol)
pragma solidity ^0.8.20;
import "../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) (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 v5.0.0) (token/ERC20/extensions/IERC20Metadata.sol)
pragma solidity ^0.8.20;
import {IERC20} from "../IERC20.sol";
/**
* @dev Interface for the optional metadata functions from the ERC20 standard.
*/
interface IERC20Metadata is IERC20 {
/**
* @dev Returns the name of the token.
*/
function name() external view returns (string memory);
/**
* @dev Returns the symbol of the token.
*/
function symbol() external view returns (string memory);
/**
* @dev Returns the decimals places of the token.
*/
function decimals() external view returns (uint8);
}// 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.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.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;
}
}{
"remappings": [
"@openzeppelin-contracts-5.0.2/=dependencies/@openzeppelin-contracts-5.0.2/",
"@openzeppelin-contracts-5.0.2/=dependencies/@openzeppelin-contracts-5.0.2/",
"forge-std/=lib/forge-std/src/"
],
"optimizer": {
"enabled": false,
"runs": 200
},
"metadata": {
"useLiteralContent": false,
"bytecodeHash": "ipfs",
"appendCBOR": true
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
},
"evmVersion": "cancun",
"viaIR": false
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"address","name":"saleToken_","type":"address"},{"internalType":"address","name":"addressUSDT_","type":"address"},{"internalType":"address","name":"uniswapETHUSDTPair_","type":"address"},{"internalType":"address","name":"marketingWallet1_","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":[],"name":"ReentrancyGuardReentrantCall","type":"error"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"SafeERC20FailedOperation","type":"error"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"asset","type":"string"},{"indexed":false,"internalType":"uint256","name":"amount_","type":"uint256"}],"name":"ClaimedStuckedValue","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":"bool","name":"opend","type":"bool"}],"name":"SaleOpend","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"buyer_","type":"address"},{"indexed":false,"internalType":"uint256","name":"investLevel_","type":"uint256"}],"name":"TokensBoughtNative","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"buyer_","type":"address"},{"indexed":false,"internalType":"uint256","name":"investLevel_","type":"uint256"}],"name":"TokensBoughtUSDT","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"value_","type":"uint256"}],"name":"UnsoldTokenBurned","type":"event"},{"inputs":[{"internalType":"address","name":"wertWallet_","type":"address"}],"name":"addWERTWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"addressUSDT","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"buyer_","type":"address"},{"internalType":"uint8","name":"investLevel_","type":"uint8"}],"name":"buyTokenNative","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"buyer_","type":"address"},{"internalType":"uint8","name":"investLevel_","type":"uint8"}],"name":"buyTokenUSDT","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"buyer_","type":"address"},{"internalType":"uint8","name":"investLevel_","type":"uint8"}],"name":"buyTokenWERT","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"buyersAddresses","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claimStuckETH","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token_","type":"address"}],"name":"claimStuckToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"ethPair","outputs":[{"internalType":"contract IUniswapV2Pair","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getBuyers","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getClaimables","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getETHPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"investLevel_","type":"uint256"}],"name":"getNativePricePerLevel","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"investLevels","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"mapClaimableTokenAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"openSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"wertWallet_","type":"address"}],"name":"removeWERTWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"saleOpend","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"saleToken","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"}]Contract Creation Code
60806040525f600560146101000a81548160ff021916908315150217905550348015610029575f5ffd5b50604051612b34380380612b34833981810160405281019061004b91906103d6565b335f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036100bc575f6040517f1e4fbdf70000000000000000000000000000000000000000000000000000000081526004016100b39190610449565b60405180910390fd5b6100cb8161024460201b60201c565b50600180819055508360025f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508260035f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508160045f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508060055f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060405180606001604052806805b12aefafa804000068ffffffffffffffffff168152602001681ba5abf9e77938000068ffffffffffffffffff16815260200168374b57f3cef270000068ffffffffffffffffff16815250600690600361023a929190610305565b5050505050610462565b5f5f5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050815f5f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b828054828255905f5260205f2090810192821561034c579160200282015b8281111561034b578251829068ffffffffffffffffff16905591602001919060010190610323565b5b509050610359919061035d565b5090565b5b80821115610374575f815f90555060010161035e565b5090565b5f5ffd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6103a58261037c565b9050919050565b6103b58161039b565b81146103bf575f5ffd5b50565b5f815190506103d0816103ac565b92915050565b5f5f5f5f608085870312156103ee576103ed610378565b5b5f6103fb878288016103c2565b945050602061040c878288016103c2565b935050604061041d878288016103c2565b925050606061042e878288016103c2565b91505092959194509250565b6104438161039b565b82525050565b5f60208201905061045c5f83018461043a565b92915050565b6126c58061046f5f395ff3fe608060405260043610610134575f3560e01c80636c981b74116100aa578063e558fa591161006e578063e558fa59146103bc578063e985e367146103f8578063f2fde38b14610422578063f64bfaba1461044a578063f97f220814610474578063fe2143f31461048a57610134565b80636c981b7414610300578063715018a6146103285780638da5cb5b1461033e578063a607a8d914610368578063b7b10a8a1461039257610134565b80632ebf8d61116100fc5780632ebf8d61146101f25780632f1d83be1461021a5780633ed8bb941461024457806355a4e3da146102805780635773bdaa1461029c5780635a6712de146102d857610134565b806304faef5f146101385780630f1d763714610160578063167ff46f1461018857806322d0c30d1461019e5780632d02c60f146101c8575b5f5ffd5b348015610143575f5ffd5b5061015e60048036038101906101599190611aca565b6104c6565b005b34801561016b575f5ffd5b5061018660048036038101906101819190611b08565b6106e5565b005b348015610193575f5ffd5b5061019c610745565b005b3480156101a9575f5ffd5b506101b26107bf565b6040516101bf9190611b8e565b60405180910390f35b3480156101d3575f5ffd5b506101dc6107e4565b6040516101e99190611c67565b60405180910390f35b3480156101fd575f5ffd5b5061021860048036038101906102139190611b08565b6108f6565b005b348015610225575f5ffd5b5061022e610955565b60405161023b9190611ca1565b60405180910390f35b34801561024f575f5ffd5b5061026a60048036038101906102659190611ce4565b610968565b6040516102779190611d1e565b60405180910390f35b61029a60048036038101906102959190611aca565b6109a3565b005b3480156102a7575f5ffd5b506102c260048036038101906102bd9190611ce4565b610bd8565b6040516102cf9190611d46565b60405180910390f35b3480156102e3575f5ffd5b506102fe60048036038101906102f99190611b08565b610bf8565b005b34801561030b575f5ffd5b5061032660048036038101906103219190611aca565b610de7565b005b348015610333575f5ffd5b5061033c610fc2565b005b348015610349575f5ffd5b50610352610fd5565b60405161035f9190611d1e565b60405180910390f35b348015610373575f5ffd5b5061037c610ffc565b6040516103899190611d46565b60405180910390f35b34801561039d575f5ffd5b506103a66110d8565b6040516103b39190611d7f565b60405180910390f35b3480156103c7575f5ffd5b506103e260048036038101906103dd9190611b08565b6110fd565b6040516103ef9190611d46565b60405180910390f35b348015610403575f5ffd5b5061040c611112565b6040516104199190611d7f565b60405180910390f35b34801561042d575f5ffd5b5061044860048036038101906104439190611b08565b611137565b005b348015610455575f5ffd5b5061045e6111bb565b60405161046b9190611e4f565b60405180910390f35b34801561047f575f5ffd5b50610488611246565b005b348015610495575f5ffd5b506104b060048036038101906104ab9190611ce4565b6112f1565b6040516104bd9190611d46565b60405180910390f35b6104ce61138c565b60011515600560149054906101000a900460ff16151514610524576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161051b90611ec9565b60405180910390fd5b806006805490508160ff161061056f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161056690611f57565b60405180910390fd5b6001151560095f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff161515146105ff576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105f690611fe5565b60405180910390fd5b5f60068360ff168154811061061757610616612003565b5b905f5260205f200154905061062f848460ff166113d2565b61069e3360055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff168360035f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16611599909392919063ffffffff16565b7fafb09233ba44d1082ced8495b092317cc06d937a442c30fec0189c34bb6a8de384826040516106cf929190612030565b60405180910390a150506106e161161b565b5050565b6106ed611624565b600160095f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff02191690831515021790555050565b61074d611624565b600560149054906101000a900460ff1615600560146101000a81548160ff0219169083151502179055507fa4795889e3e2581119d5e2bfa054f0a6f12d7b36fa4fb7d1eb134735b9eb3037600560149054906101000a900460ff166040516107b59190611ca1565b60405180910390a1565b60045f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60605f60078054905067ffffffffffffffff81111561080657610805612057565b5b6040519080825280602002602001820160405280156108345781602001602082028036833780820191505090505b5090505f5f90505b6007805490508110156108ee5760085f600783815481106108605761085f612003565b5b905f5260205f20015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20548282815181106108d5576108d4612003565b5b602002602001018181525050808060010191505061083c565b508091505090565b6108fe611624565b5f60095f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff02191690831515021790555050565b600560149054906101000a900460ff1681565b60078181548110610977575f80fd5b905f5260205f20015f915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6109ab61138c565b60011515600560149054906101000a900460ff16151514610a01576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109f890611ec9565b60405180910390fd5b806006805490508160ff1610610a4c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a4390611f57565b60405180910390fd5b5f60068360ff1681548110610a6457610a63612003565b5b905f5260205f20015490505f610a7c8460ff166112f1565b905080341015610ac1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ab8906120f4565b60405180910390fd5b610ace858560ff166113d2565b60055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc8290811502906040515f60405180830381858888f19350505050158015610b32573d5f5f3e3d5ffd5b505f8134610b40919061213f565b90505f811115610b8f573373ffffffffffffffffffffffffffffffffffffffff166108fc8290811502906040515f60405180830381858888f19350505050158015610b8d573d5f5f3e3d5ffd5b505b7f12e1472759ddc998746bb0612bb057ef2d644f7f9f0f373f0fbaf60e08676aa88684604051610bc0929190612030565b60405180910390a150505050610bd461161b565b5050565b60068181548110610be7575f80fd5b905f5260205f20015f915090505481565b610c00611624565b60025f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610c8f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c86906121e2565b60405180910390fd5b5f8190505f8173ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401610ccd9190611d1e565b602060405180830381865afa158015610ce8573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610d0c9190612214565b90508173ffffffffffffffffffffffffffffffffffffffff1663a9059cbb60055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16836040518363ffffffff1660e01b8152600401610d6a92919061225f565b6020604051808303815f875af1158015610d86573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610daa91906122b0565b507f01f284bd7afc2cb227d6ecafc160c2ca420fafe1c7fdfe491add27689944cc0381604051610dda9190612325565b60405180910390a1505050565b610def61138c565b60011515600560149054906101000a900460ff16151514610e45576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e3c90611ec9565b60405180910390fd5b806006805490508160ff1610610e90576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e8790611f57565b60405180910390fd5b5f60068360ff1681548110610ea857610ea7612003565b5b905f5260205f2001549050610f0184308360035f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16611599909392919063ffffffff16565b610f0e848460ff166113d2565b610f7b60055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff168260035f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166116ab9092919063ffffffff16565b7fafb09233ba44d1082ced8495b092317cc06d937a442c30fec0189c34bb6a8de38482604051610fac929190612030565b60405180910390a15050610fbe61161b565b5050565b610fca611624565b610fd35f61172a565b565b5f5f5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b5f5f5f60045f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16630902f1ac6040518163ffffffff1660e01b8152600401606060405180830381865afa158015611069573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061108d91906123cd565b5091509150806dffffffffffffffffffffffffffff16670de0b6b3a7640000836dffffffffffffffffffffffffffff166110c7919061241d565b6110d1919061248b565b9250505090565b60035f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6008602052805f5260405f205f915090505481565b60025f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b61113f611624565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036111af575f6040517f1e4fbdf70000000000000000000000000000000000000000000000000000000081526004016111a69190611d1e565b60405180910390fd5b6111b88161172a565b50565b6060600780548060200260200160405190810160405280929190818152602001828054801561123c57602002820191905f5260205f20905b815f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190600101908083116111f3575b5050505050905090565b61124e611624565b5f47905060055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc8290811502906040515f60405180830381858888f193505050501580156112b6573d5f5f3e3d5ffd5b507f01f284bd7afc2cb227d6ecafc160c2ca420fafe1c7fdfe491add27689944cc03816040516112e69190612505565b60405180910390a150565b5f816006805490508160ff161061133d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161133490611f57565b60405180910390fd5b5f611346610ffc565b905080670de0b6b3a76400006006868154811061136657611365612003565b5b905f5260205f200154611379919061241d565b611383919061248b565b92505050919050565b6002600154036113c8576040517f3ee5aeb500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6002600181905550565b5f60085f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20540361147757600782908060018154018082558091505060019003905f5260205f20015f9091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b5f60085f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205490505f5f83036114d3576a0197a27587b0e3092000009050611546565b600183036114ee576a0a8beae28cb4d5c4c000009050611545565b60028303611509576a1c1fc7b177378f620000009050611544565b6040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161153b906125a1565b60405180910390fd5b5b5b808261155291906125bf565b60085f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f208190555050505050565b611615848573ffffffffffffffffffffffffffffffffffffffff166323b872dd8686866040516024016115ce939291906125f2565b604051602081830303815290604052915060e01b6020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506117eb565b50505050565b60018081905550565b61162c611880565b73ffffffffffffffffffffffffffffffffffffffff1661164a610fd5565b73ffffffffffffffffffffffffffffffffffffffff16146116a95761166d611880565b6040517f118cdaa70000000000000000000000000000000000000000000000000000000081526004016116a09190611d1e565b60405180910390fd5b565b611725838473ffffffffffffffffffffffffffffffffffffffff1663a9059cbb85856040516024016116de929190612030565b604051602081830303815290604052915060e01b6020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506117eb565b505050565b5f5f5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050815f5f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b5f611815828473ffffffffffffffffffffffffffffffffffffffff1661188790919063ffffffff16565b90505f81511415801561183957508080602001905181019061183791906122b0565b155b1561187b57826040517f5274afe70000000000000000000000000000000000000000000000000000000081526004016118729190611d1e565b60405180910390fd5b505050565b5f33905090565b606061189483835f61189c565b905092915050565b6060814710156118e357306040517fcd7860590000000000000000000000000000000000000000000000000000000081526004016118da9190611d1e565b60405180910390fd5b5f5f8573ffffffffffffffffffffffffffffffffffffffff16848660405161190b9190612679565b5f6040518083038185875af1925050503d805f8114611945576040519150601f19603f3d011682016040523d82523d5f602084013e61194a565b606091505b509150915061195a868383611965565b925050509392505050565b60608261197a57611975826119f2565b6119ea565b5f82511480156119a057505f8473ffffffffffffffffffffffffffffffffffffffff163b145b156119e257836040517f9996b3150000000000000000000000000000000000000000000000000000000081526004016119d99190611d1e565b60405180910390fd5b8190506119eb565b5b9392505050565b5f81511115611a045780518082602001fd5b6040517f1425ea4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f5ffd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f611a6382611a3a565b9050919050565b611a7381611a59565b8114611a7d575f5ffd5b50565b5f81359050611a8e81611a6a565b92915050565b5f60ff82169050919050565b611aa981611a94565b8114611ab3575f5ffd5b50565b5f81359050611ac481611aa0565b92915050565b5f5f60408385031215611ae057611adf611a36565b5b5f611aed85828601611a80565b9250506020611afe85828601611ab6565b9150509250929050565b5f60208284031215611b1d57611b1c611a36565b5b5f611b2a84828501611a80565b91505092915050565b5f819050919050565b5f611b56611b51611b4c84611a3a565b611b33565b611a3a565b9050919050565b5f611b6782611b3c565b9050919050565b5f611b7882611b5d565b9050919050565b611b8881611b6e565b82525050565b5f602082019050611ba15f830184611b7f565b92915050565b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b5f819050919050565b611be281611bd0565b82525050565b5f611bf38383611bd9565b60208301905092915050565b5f602082019050919050565b5f611c1582611ba7565b611c1f8185611bb1565b9350611c2a83611bc1565b805f5b83811015611c5a578151611c418882611be8565b9750611c4c83611bff565b925050600181019050611c2d565b5085935050505092915050565b5f6020820190508181035f830152611c7f8184611c0b565b905092915050565b5f8115159050919050565b611c9b81611c87565b82525050565b5f602082019050611cb45f830184611c92565b92915050565b611cc381611bd0565b8114611ccd575f5ffd5b50565b5f81359050611cde81611cba565b92915050565b5f60208284031215611cf957611cf8611a36565b5b5f611d0684828501611cd0565b91505092915050565b611d1881611a59565b82525050565b5f602082019050611d315f830184611d0f565b92915050565b611d4081611bd0565b82525050565b5f602082019050611d595f830184611d37565b92915050565b5f611d6982611b5d565b9050919050565b611d7981611d5f565b82525050565b5f602082019050611d925f830184611d70565b92915050565b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b611dca81611a59565b82525050565b5f611ddb8383611dc1565b60208301905092915050565b5f602082019050919050565b5f611dfd82611d98565b611e078185611da2565b9350611e1283611db2565b805f5b83811015611e42578151611e298882611dd0565b9750611e3483611de7565b925050600181019050611e15565b5085935050505092915050565b5f6020820190508181035f830152611e678184611df3565b905092915050565b5f82825260208201905092915050565b7f4b4f54414950726573616c653a2053616c65206e6f74206f70656e65640000005f82015250565b5f611eb3601d83611e6f565b9150611ebe82611e7f565b602082019050919050565b5f6020820190508181035f830152611ee081611ea7565b9050919050565b7f4b4f54414950726573616c653a20496e76616c696420696e76657374206c65765f8201527f656c000000000000000000000000000000000000000000000000000000000000602082015250565b5f611f41602283611e6f565b9150611f4c82611ee7565b604082019050919050565b5f6020820190508181035f830152611f6e81611f35565b9050919050565b7f4b4f54414950726573616c653a204e65656420746f20626520612057455254205f8201527f57616c6c65742e00000000000000000000000000000000000000000000000000602082015250565b5f611fcf602783611e6f565b9150611fda82611f75565b604082019050919050565b5f6020820190508181035f830152611ffc81611fc3565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b5f6040820190506120435f830185611d0f565b6120506020830184611d37565b9392505050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b7f4b4f54414950726573616c653a204e6f7420656e6f756768204554482073656e5f8201527f7421000000000000000000000000000000000000000000000000000000000000602082015250565b5f6120de602283611e6f565b91506120e982612084565b604082019050919050565b5f6020820190508181035f83015261210b816120d2565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f61214982611bd0565b915061215483611bd0565b925082820390508181111561216c5761216b612112565b5b92915050565b7f4b4f54414950726573616c653a204e6f7420616c6c6f77656420746f20636c615f8201527f696d2070726573616c6520746f6b656e21000000000000000000000000000000602082015250565b5f6121cc603183611e6f565b91506121d782612172565b604082019050919050565b5f6020820190508181035f8301526121f9816121c0565b9050919050565b5f8151905061220e81611cba565b92915050565b5f6020828403121561222957612228611a36565b5b5f61223684828501612200565b91505092915050565b5f61224982611b5d565b9050919050565b6122598161223f565b82525050565b5f6040820190506122725f830185612250565b61227f6020830184611d37565b9392505050565b61228f81611c87565b8114612299575f5ffd5b50565b5f815190506122aa81612286565b92915050565b5f602082840312156122c5576122c4611a36565b5b5f6122d28482850161229c565b91505092915050565b7f546f6b656e0000000000000000000000000000000000000000000000000000005f82015250565b5f61230f600583611e6f565b915061231a826122db565b602082019050919050565b5f6040820190508181035f83015261233c81612303565b905061234b6020830184611d37565b92915050565b5f6dffffffffffffffffffffffffffff82169050919050565b61237381612351565b811461237d575f5ffd5b50565b5f8151905061238e8161236a565b92915050565b5f63ffffffff82169050919050565b6123ac81612394565b81146123b6575f5ffd5b50565b5f815190506123c7816123a3565b92915050565b5f5f5f606084860312156123e4576123e3611a36565b5b5f6123f186828701612380565b935050602061240286828701612380565b9250506040612413868287016123b9565b9150509250925092565b5f61242782611bd0565b915061243283611bd0565b925082820261244081611bd0565b9150828204841483151761245757612456612112565b5b5092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b5f61249582611bd0565b91506124a083611bd0565b9250826124b0576124af61245e565b5b828204905092915050565b7f45544800000000000000000000000000000000000000000000000000000000005f82015250565b5f6124ef600383611e6f565b91506124fa826124bb565b602082019050919050565b5f6040820190508181035f83015261251c816124e3565b905061252b6020830184611d37565b92915050565b7f4b4f54414950726573616c653a20496e76616c696420696e76657374206c65765f8201527f656c2028696e7465726e616c2900000000000000000000000000000000000000602082015250565b5f61258b602d83611e6f565b915061259682612531565b604082019050919050565b5f6020820190508181035f8301526125b88161257f565b9050919050565b5f6125c982611bd0565b91506125d483611bd0565b92508282019050808211156125ec576125eb612112565b5b92915050565b5f6060820190506126055f830186611d0f565b6126126020830185611d0f565b61261f6040830184611d37565b949350505050565b5f81519050919050565b5f81905092915050565b8281835e5f83830152505050565b5f61265382612627565b61265d8185612631565b935061266d81856020860161263b565b80840191505092915050565b5f6126848284612649565b91508190509291505056fea2646970667358221220ab0af790371d0e2a13593f209802eda18e352b29efad966b1e54962e08f689c264736f6c634300081e0033000000000000000000000000d1fb56e6aee842708392f2c8ee948bdfabae3afe00000000000000000000000055d398326f99059ff775485246999027b319795500000000000000000000000016b9a82891338f9ba80e2d6970fdda79d1eb0dae0000000000000000000000000375bb5fbf106a392b4ef91335578c721b2fe46b
Deployed Bytecode
0x608060405260043610610134575f3560e01c80636c981b74116100aa578063e558fa591161006e578063e558fa59146103bc578063e985e367146103f8578063f2fde38b14610422578063f64bfaba1461044a578063f97f220814610474578063fe2143f31461048a57610134565b80636c981b7414610300578063715018a6146103285780638da5cb5b1461033e578063a607a8d914610368578063b7b10a8a1461039257610134565b80632ebf8d61116100fc5780632ebf8d61146101f25780632f1d83be1461021a5780633ed8bb941461024457806355a4e3da146102805780635773bdaa1461029c5780635a6712de146102d857610134565b806304faef5f146101385780630f1d763714610160578063167ff46f1461018857806322d0c30d1461019e5780632d02c60f146101c8575b5f5ffd5b348015610143575f5ffd5b5061015e60048036038101906101599190611aca565b6104c6565b005b34801561016b575f5ffd5b5061018660048036038101906101819190611b08565b6106e5565b005b348015610193575f5ffd5b5061019c610745565b005b3480156101a9575f5ffd5b506101b26107bf565b6040516101bf9190611b8e565b60405180910390f35b3480156101d3575f5ffd5b506101dc6107e4565b6040516101e99190611c67565b60405180910390f35b3480156101fd575f5ffd5b5061021860048036038101906102139190611b08565b6108f6565b005b348015610225575f5ffd5b5061022e610955565b60405161023b9190611ca1565b60405180910390f35b34801561024f575f5ffd5b5061026a60048036038101906102659190611ce4565b610968565b6040516102779190611d1e565b60405180910390f35b61029a60048036038101906102959190611aca565b6109a3565b005b3480156102a7575f5ffd5b506102c260048036038101906102bd9190611ce4565b610bd8565b6040516102cf9190611d46565b60405180910390f35b3480156102e3575f5ffd5b506102fe60048036038101906102f99190611b08565b610bf8565b005b34801561030b575f5ffd5b5061032660048036038101906103219190611aca565b610de7565b005b348015610333575f5ffd5b5061033c610fc2565b005b348015610349575f5ffd5b50610352610fd5565b60405161035f9190611d1e565b60405180910390f35b348015610373575f5ffd5b5061037c610ffc565b6040516103899190611d46565b60405180910390f35b34801561039d575f5ffd5b506103a66110d8565b6040516103b39190611d7f565b60405180910390f35b3480156103c7575f5ffd5b506103e260048036038101906103dd9190611b08565b6110fd565b6040516103ef9190611d46565b60405180910390f35b348015610403575f5ffd5b5061040c611112565b6040516104199190611d7f565b60405180910390f35b34801561042d575f5ffd5b5061044860048036038101906104439190611b08565b611137565b005b348015610455575f5ffd5b5061045e6111bb565b60405161046b9190611e4f565b60405180910390f35b34801561047f575f5ffd5b50610488611246565b005b348015610495575f5ffd5b506104b060048036038101906104ab9190611ce4565b6112f1565b6040516104bd9190611d46565b60405180910390f35b6104ce61138c565b60011515600560149054906101000a900460ff16151514610524576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161051b90611ec9565b60405180910390fd5b806006805490508160ff161061056f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161056690611f57565b60405180910390fd5b6001151560095f3373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff161515146105ff576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105f690611fe5565b60405180910390fd5b5f60068360ff168154811061061757610616612003565b5b905f5260205f200154905061062f848460ff166113d2565b61069e3360055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff168360035f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16611599909392919063ffffffff16565b7fafb09233ba44d1082ced8495b092317cc06d937a442c30fec0189c34bb6a8de384826040516106cf929190612030565b60405180910390a150506106e161161b565b5050565b6106ed611624565b600160095f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff02191690831515021790555050565b61074d611624565b600560149054906101000a900460ff1615600560146101000a81548160ff0219169083151502179055507fa4795889e3e2581119d5e2bfa054f0a6f12d7b36fa4fb7d1eb134735b9eb3037600560149054906101000a900460ff166040516107b59190611ca1565b60405180910390a1565b60045f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60605f60078054905067ffffffffffffffff81111561080657610805612057565b5b6040519080825280602002602001820160405280156108345781602001602082028036833780820191505090505b5090505f5f90505b6007805490508110156108ee5760085f600783815481106108605761085f612003565b5b905f5260205f20015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20548282815181106108d5576108d4612003565b5b602002602001018181525050808060010191505061083c565b508091505090565b6108fe611624565b5f60095f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff02191690831515021790555050565b600560149054906101000a900460ff1681565b60078181548110610977575f80fd5b905f5260205f20015f915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6109ab61138c565b60011515600560149054906101000a900460ff16151514610a01576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109f890611ec9565b60405180910390fd5b806006805490508160ff1610610a4c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a4390611f57565b60405180910390fd5b5f60068360ff1681548110610a6457610a63612003565b5b905f5260205f20015490505f610a7c8460ff166112f1565b905080341015610ac1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ab8906120f4565b60405180910390fd5b610ace858560ff166113d2565b60055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc8290811502906040515f60405180830381858888f19350505050158015610b32573d5f5f3e3d5ffd5b505f8134610b40919061213f565b90505f811115610b8f573373ffffffffffffffffffffffffffffffffffffffff166108fc8290811502906040515f60405180830381858888f19350505050158015610b8d573d5f5f3e3d5ffd5b505b7f12e1472759ddc998746bb0612bb057ef2d644f7f9f0f373f0fbaf60e08676aa88684604051610bc0929190612030565b60405180910390a150505050610bd461161b565b5050565b60068181548110610be7575f80fd5b905f5260205f20015f915090505481565b610c00611624565b60025f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610c8f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c86906121e2565b60405180910390fd5b5f8190505f8173ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401610ccd9190611d1e565b602060405180830381865afa158015610ce8573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610d0c9190612214565b90508173ffffffffffffffffffffffffffffffffffffffff1663a9059cbb60055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16836040518363ffffffff1660e01b8152600401610d6a92919061225f565b6020604051808303815f875af1158015610d86573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610daa91906122b0565b507f01f284bd7afc2cb227d6ecafc160c2ca420fafe1c7fdfe491add27689944cc0381604051610dda9190612325565b60405180910390a1505050565b610def61138c565b60011515600560149054906101000a900460ff16151514610e45576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e3c90611ec9565b60405180910390fd5b806006805490508160ff1610610e90576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e8790611f57565b60405180910390fd5b5f60068360ff1681548110610ea857610ea7612003565b5b905f5260205f2001549050610f0184308360035f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16611599909392919063ffffffff16565b610f0e848460ff166113d2565b610f7b60055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff168260035f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166116ab9092919063ffffffff16565b7fafb09233ba44d1082ced8495b092317cc06d937a442c30fec0189c34bb6a8de38482604051610fac929190612030565b60405180910390a15050610fbe61161b565b5050565b610fca611624565b610fd35f61172a565b565b5f5f5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b5f5f5f60045f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16630902f1ac6040518163ffffffff1660e01b8152600401606060405180830381865afa158015611069573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061108d91906123cd565b5091509150806dffffffffffffffffffffffffffff16670de0b6b3a7640000836dffffffffffffffffffffffffffff166110c7919061241d565b6110d1919061248b565b9250505090565b60035f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6008602052805f5260405f205f915090505481565b60025f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b61113f611624565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036111af575f6040517f1e4fbdf70000000000000000000000000000000000000000000000000000000081526004016111a69190611d1e565b60405180910390fd5b6111b88161172a565b50565b6060600780548060200260200160405190810160405280929190818152602001828054801561123c57602002820191905f5260205f20905b815f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190600101908083116111f3575b5050505050905090565b61124e611624565b5f47905060055f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc8290811502906040515f60405180830381858888f193505050501580156112b6573d5f5f3e3d5ffd5b507f01f284bd7afc2cb227d6ecafc160c2ca420fafe1c7fdfe491add27689944cc03816040516112e69190612505565b60405180910390a150565b5f816006805490508160ff161061133d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161133490611f57565b60405180910390fd5b5f611346610ffc565b905080670de0b6b3a76400006006868154811061136657611365612003565b5b905f5260205f200154611379919061241d565b611383919061248b565b92505050919050565b6002600154036113c8576040517f3ee5aeb500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6002600181905550565b5f60085f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20540361147757600782908060018154018082558091505060019003905f5260205f20015f9091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b5f60085f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205490505f5f83036114d3576a0197a27587b0e3092000009050611546565b600183036114ee576a0a8beae28cb4d5c4c000009050611545565b60028303611509576a1c1fc7b177378f620000009050611544565b6040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161153b906125a1565b60405180910390fd5b5b5b808261155291906125bf565b60085f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f208190555050505050565b611615848573ffffffffffffffffffffffffffffffffffffffff166323b872dd8686866040516024016115ce939291906125f2565b604051602081830303815290604052915060e01b6020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506117eb565b50505050565b60018081905550565b61162c611880565b73ffffffffffffffffffffffffffffffffffffffff1661164a610fd5565b73ffffffffffffffffffffffffffffffffffffffff16146116a95761166d611880565b6040517f118cdaa70000000000000000000000000000000000000000000000000000000081526004016116a09190611d1e565b60405180910390fd5b565b611725838473ffffffffffffffffffffffffffffffffffffffff1663a9059cbb85856040516024016116de929190612030565b604051602081830303815290604052915060e01b6020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506117eb565b505050565b5f5f5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050815f5f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b5f611815828473ffffffffffffffffffffffffffffffffffffffff1661188790919063ffffffff16565b90505f81511415801561183957508080602001905181019061183791906122b0565b155b1561187b57826040517f5274afe70000000000000000000000000000000000000000000000000000000081526004016118729190611d1e565b60405180910390fd5b505050565b5f33905090565b606061189483835f61189c565b905092915050565b6060814710156118e357306040517fcd7860590000000000000000000000000000000000000000000000000000000081526004016118da9190611d1e565b60405180910390fd5b5f5f8573ffffffffffffffffffffffffffffffffffffffff16848660405161190b9190612679565b5f6040518083038185875af1925050503d805f8114611945576040519150601f19603f3d011682016040523d82523d5f602084013e61194a565b606091505b509150915061195a868383611965565b925050509392505050565b60608261197a57611975826119f2565b6119ea565b5f82511480156119a057505f8473ffffffffffffffffffffffffffffffffffffffff163b145b156119e257836040517f9996b3150000000000000000000000000000000000000000000000000000000081526004016119d99190611d1e565b60405180910390fd5b8190506119eb565b5b9392505050565b5f81511115611a045780518082602001fd5b6040517f1425ea4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f5ffd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f611a6382611a3a565b9050919050565b611a7381611a59565b8114611a7d575f5ffd5b50565b5f81359050611a8e81611a6a565b92915050565b5f60ff82169050919050565b611aa981611a94565b8114611ab3575f5ffd5b50565b5f81359050611ac481611aa0565b92915050565b5f5f60408385031215611ae057611adf611a36565b5b5f611aed85828601611a80565b9250506020611afe85828601611ab6565b9150509250929050565b5f60208284031215611b1d57611b1c611a36565b5b5f611b2a84828501611a80565b91505092915050565b5f819050919050565b5f611b56611b51611b4c84611a3a565b611b33565b611a3a565b9050919050565b5f611b6782611b3c565b9050919050565b5f611b7882611b5d565b9050919050565b611b8881611b6e565b82525050565b5f602082019050611ba15f830184611b7f565b92915050565b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b5f819050919050565b611be281611bd0565b82525050565b5f611bf38383611bd9565b60208301905092915050565b5f602082019050919050565b5f611c1582611ba7565b611c1f8185611bb1565b9350611c2a83611bc1565b805f5b83811015611c5a578151611c418882611be8565b9750611c4c83611bff565b925050600181019050611c2d565b5085935050505092915050565b5f6020820190508181035f830152611c7f8184611c0b565b905092915050565b5f8115159050919050565b611c9b81611c87565b82525050565b5f602082019050611cb45f830184611c92565b92915050565b611cc381611bd0565b8114611ccd575f5ffd5b50565b5f81359050611cde81611cba565b92915050565b5f60208284031215611cf957611cf8611a36565b5b5f611d0684828501611cd0565b91505092915050565b611d1881611a59565b82525050565b5f602082019050611d315f830184611d0f565b92915050565b611d4081611bd0565b82525050565b5f602082019050611d595f830184611d37565b92915050565b5f611d6982611b5d565b9050919050565b611d7981611d5f565b82525050565b5f602082019050611d925f830184611d70565b92915050565b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b611dca81611a59565b82525050565b5f611ddb8383611dc1565b60208301905092915050565b5f602082019050919050565b5f611dfd82611d98565b611e078185611da2565b9350611e1283611db2565b805f5b83811015611e42578151611e298882611dd0565b9750611e3483611de7565b925050600181019050611e15565b5085935050505092915050565b5f6020820190508181035f830152611e678184611df3565b905092915050565b5f82825260208201905092915050565b7f4b4f54414950726573616c653a2053616c65206e6f74206f70656e65640000005f82015250565b5f611eb3601d83611e6f565b9150611ebe82611e7f565b602082019050919050565b5f6020820190508181035f830152611ee081611ea7565b9050919050565b7f4b4f54414950726573616c653a20496e76616c696420696e76657374206c65765f8201527f656c000000000000000000000000000000000000000000000000000000000000602082015250565b5f611f41602283611e6f565b9150611f4c82611ee7565b604082019050919050565b5f6020820190508181035f830152611f6e81611f35565b9050919050565b7f4b4f54414950726573616c653a204e65656420746f20626520612057455254205f8201527f57616c6c65742e00000000000000000000000000000000000000000000000000602082015250565b5f611fcf602783611e6f565b9150611fda82611f75565b604082019050919050565b5f6020820190508181035f830152611ffc81611fc3565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b5f6040820190506120435f830185611d0f565b6120506020830184611d37565b9392505050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b7f4b4f54414950726573616c653a204e6f7420656e6f756768204554482073656e5f8201527f7421000000000000000000000000000000000000000000000000000000000000602082015250565b5f6120de602283611e6f565b91506120e982612084565b604082019050919050565b5f6020820190508181035f83015261210b816120d2565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f61214982611bd0565b915061215483611bd0565b925082820390508181111561216c5761216b612112565b5b92915050565b7f4b4f54414950726573616c653a204e6f7420616c6c6f77656420746f20636c615f8201527f696d2070726573616c6520746f6b656e21000000000000000000000000000000602082015250565b5f6121cc603183611e6f565b91506121d782612172565b604082019050919050565b5f6020820190508181035f8301526121f9816121c0565b9050919050565b5f8151905061220e81611cba565b92915050565b5f6020828403121561222957612228611a36565b5b5f61223684828501612200565b91505092915050565b5f61224982611b5d565b9050919050565b6122598161223f565b82525050565b5f6040820190506122725f830185612250565b61227f6020830184611d37565b9392505050565b61228f81611c87565b8114612299575f5ffd5b50565b5f815190506122aa81612286565b92915050565b5f602082840312156122c5576122c4611a36565b5b5f6122d28482850161229c565b91505092915050565b7f546f6b656e0000000000000000000000000000000000000000000000000000005f82015250565b5f61230f600583611e6f565b915061231a826122db565b602082019050919050565b5f6040820190508181035f83015261233c81612303565b905061234b6020830184611d37565b92915050565b5f6dffffffffffffffffffffffffffff82169050919050565b61237381612351565b811461237d575f5ffd5b50565b5f8151905061238e8161236a565b92915050565b5f63ffffffff82169050919050565b6123ac81612394565b81146123b6575f5ffd5b50565b5f815190506123c7816123a3565b92915050565b5f5f5f606084860312156123e4576123e3611a36565b5b5f6123f186828701612380565b935050602061240286828701612380565b9250506040612413868287016123b9565b9150509250925092565b5f61242782611bd0565b915061243283611bd0565b925082820261244081611bd0565b9150828204841483151761245757612456612112565b5b5092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b5f61249582611bd0565b91506124a083611bd0565b9250826124b0576124af61245e565b5b828204905092915050565b7f45544800000000000000000000000000000000000000000000000000000000005f82015250565b5f6124ef600383611e6f565b91506124fa826124bb565b602082019050919050565b5f6040820190508181035f83015261251c816124e3565b905061252b6020830184611d37565b92915050565b7f4b4f54414950726573616c653a20496e76616c696420696e76657374206c65765f8201527f656c2028696e7465726e616c2900000000000000000000000000000000000000602082015250565b5f61258b602d83611e6f565b915061259682612531565b604082019050919050565b5f6020820190508181035f8301526125b88161257f565b9050919050565b5f6125c982611bd0565b91506125d483611bd0565b92508282019050808211156125ec576125eb612112565b5b92915050565b5f6060820190506126055f830186611d0f565b6126126020830185611d0f565b61261f6040830184611d37565b949350505050565b5f81519050919050565b5f81905092915050565b8281835e5f83830152505050565b5f61265382612627565b61265d8185612631565b935061266d81856020860161263b565b80840191505092915050565b5f6126848284612649565b91508190509291505056fea2646970667358221220ab0af790371d0e2a13593f209802eda18e352b29efad966b1e54962e08f689c264736f6c634300081e0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000d1fb56e6aee842708392f2c8ee948bdfabae3afe00000000000000000000000055d398326f99059ff775485246999027b319795500000000000000000000000016b9a82891338f9ba80e2d6970fdda79d1eb0dae0000000000000000000000000375bb5fbf106a392b4ef91335578c721b2fe46b
-----Decoded View---------------
Arg [0] : saleToken_ (address): 0xd1fB56e6aEe842708392f2c8ee948bDfABae3AFE
Arg [1] : addressUSDT_ (address): 0x55d398326f99059fF775485246999027B3197955
Arg [2] : uniswapETHUSDTPair_ (address): 0x16b9a82891338f9bA80E2D6970FddA79D1eb0daE
Arg [3] : marketingWallet1_ (address): 0x0375BB5fBF106a392b4ef91335578c721b2FE46B
-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 000000000000000000000000d1fb56e6aee842708392f2c8ee948bdfabae3afe
Arg [1] : 00000000000000000000000055d398326f99059ff775485246999027b3197955
Arg [2] : 00000000000000000000000016b9a82891338f9ba80e2d6970fdda79d1eb0dae
Arg [3] : 0000000000000000000000000375bb5fbf106a392b4ef91335578c721b2fe46b
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in BNB
Multichain Portfolio | 32 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.