Feature Tip: Add private address tag to any address under My Name Tag !
Source Code
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions
Loading...
Loading
Contract Name:
PresaleV3
Compiler Version
v0.8.9+commit.e5eed63a
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
//SPDX-License-Identifier: MIT
pragma solidity 0.8.9;
import '@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol';
import '@openzeppelin/contracts-upgradeable/utils/AddressUpgradeable.sol';
import '@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol';
import '@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol';
import '@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol';
import '@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol';
import '@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.sol';
interface Aggregator {
function latestRoundData() external view returns (uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound);
}
contract PresaleV3 is Initializable, ReentrancyGuardUpgradeable, OwnableUpgradeable, PausableUpgradeable {
uint256 public totalTokensSold;
uint256 public startTime;
uint256 public endTime;
uint256 public claimStart;
address public saleToken;
uint256 public baseDecimals;
uint256 public maxTokensToBuy;
uint256 public currentStep;
IERC20Upgradeable public USDTInterface;
Aggregator public aggregatorInterface;
mapping(address => uint256) public userDeposits;
mapping(address => bool) public hasClaimed;
mapping(address => bool) public isBlacklisted;
mapping(address => bool) public isWhitelisted;
mapping(address => bool) public wertWhitelisted;
bool public whitelistClaimOnly;
uint256[][3] public rounds;
uint256 public checkPoint;
uint256 public usdRaised;
address public admin;
bool public initAdmin;
uint256[] public prevCheckpoints;
event SaleTimeSet(uint256 _start, uint256 _end, uint256 timestamp);
event SaleTimeUpdated(bytes32 indexed key, uint256 prevValue, uint256 newValue, uint256 timestamp);
event TokensBought(address indexed user, uint256 indexed tokensBought, address indexed purchaseToken, uint256 amountPaid, uint256 usdEq, uint256 timestamp);
event TokensAdded(address indexed token, uint256 noOfTokens, uint256 timestamp);
event TokensClaimed(address indexed user, uint256 amount, uint256 timestamp);
event ClaimStartUpdated(uint256 prevValue, uint256 newValue, uint256 timestamp);
event MaxTokensUpdated(uint256 prevValue, uint256 newValue, uint256 timestamp);
/// @custom:oz-upgrades-unsafe-allow constructor
constructor() initializer {}
/**
* @dev Initializes the contract and sets key parameters
* @param _oracle Oracle contract to fetch ETH/USDT price
* @param _usdt USDT token contract address
* @param _startTime start time of the presale
* @param _endTime end time of the presale
* @param _rounds array of round details
* @param _maxTokensToBuy amount of max tokens to buy
*/
function initialize(address _oracle, address _usdt, uint256 _startTime, uint256 _endTime, uint256[][3] memory _rounds, uint256 _maxTokensToBuy) external initializer {
require(_oracle != address(0), 'Zero aggregator address');
require(_usdt != address(0), 'Zero USDT address');
require(_startTime > block.timestamp && _endTime > _startTime, 'Invalid time');
__Pausable_init_unchained();
__Ownable_init_unchained();
__ReentrancyGuard_init_unchained();
maxTokensToBuy = _maxTokensToBuy;
baseDecimals = (10 ** 18);
rounds = _rounds;
aggregatorInterface = Aggregator(_oracle);
USDTInterface = IERC20Upgradeable(_usdt);
startTime = _startTime;
endTime = _endTime;
checkPoint = rounds[0][2];
currentStep = 2;
emit SaleTimeSet(startTime, endTime, block.timestamp);
}
/**
* @dev To pause the presale
*/
function pause() external onlyAdmin {
_pause();
}
/**
* @dev To unpause the presale
*/
function unpause() external onlyAdmin {
_unpause();
}
/**
* @dev To calculate the price in USD for given amount of tokens.
* @param _amount No of tokens
*/
function calculatePrice(uint256 _amount) public view returns (uint256) {
uint256 USDTAmount;
uint256 total = checkPoint == 0 ? totalTokensSold : checkPoint;
require(_amount <= maxTokensToBuy, 'Amount exceeds max tokens to buy');
if (_amount + total > rounds[0][currentStep] || block.timestamp >= rounds[2][currentStep]) {
require(currentStep < (rounds[0].length - 1), 'Wrong params');
if (block.timestamp >= rounds[2][currentStep]) {
require(rounds[0][currentStep] + _amount <= rounds[0][currentStep + 1], 'Cant Purchase More in individual tx');
USDTAmount = _amount * rounds[1][currentStep + 1];
} else {
uint256 tokenAmountForCurrentPrice = rounds[0][currentStep] - total;
USDTAmount = tokenAmountForCurrentPrice * rounds[1][currentStep] + (_amount - tokenAmountForCurrentPrice) * rounds[1][currentStep + 1];
}
} else USDTAmount = _amount * rounds[1][currentStep];
return USDTAmount;
}
/**
* @dev To update the sale times
* @param _startTime New start time
* @param _endTime New end time
*/
function changeSaleTimes(uint256 _startTime, uint256 _endTime) external onlyAdmin {
require(_startTime > 0 || _endTime > 0, 'Invalid parameters');
if (_startTime > 0) {
require(block.timestamp < startTime, 'Sale already started');
require(block.timestamp < _startTime, 'Sale time in past');
uint256 prevValue = startTime;
startTime = _startTime;
emit SaleTimeUpdated(bytes32('START'), prevValue, _startTime, block.timestamp);
}
if (_endTime > 0) {
require(block.timestamp < endTime, 'Sale already ended');
require(_endTime > startTime, 'Invalid endTime');
uint256 prevValue = endTime;
endTime = _endTime;
emit SaleTimeUpdated(bytes32('END'), prevValue, _endTime, block.timestamp);
}
}
/**
* @dev To get latest ETH price in 10**18 format
*/
function getLatestPrice() public view returns (uint256) {
(, int256 price, , , ) = aggregatorInterface.latestRoundData();
price = (price * (10 ** 10));
return uint256(price);
}
modifier checkSaleState(uint256 amount) {
require(block.timestamp >= startTime && block.timestamp <= endTime, 'Invalid time for buying');
require(amount > 0, 'Invalid sale amount');
_;
}
/**
* @dev To buy into a presale using USDT
* @param amount No of tokens to buy
*/
function buyWithUSDT(uint256 amount) external checkSaleState(amount) whenNotPaused returns (bool) {
uint256 usdPrice = calculatePrice(amount);
totalTokensSold += amount;
if (checkPoint != 0) checkPoint += amount;
uint256 total = totalTokensSold > checkPoint ? totalTokensSold : checkPoint;
if (total > rounds[0][currentStep] || block.timestamp >= rounds[2][currentStep]) {
if (block.timestamp >= rounds[2][currentStep]) {
checkPoint = rounds[0][currentStep] + amount;
}
currentStep += 1;
}
userDeposits[_msgSender()] += (amount * baseDecimals);
usdRaised += usdPrice;
uint256 ourAllowance = USDTInterface.allowance(_msgSender(), address(this));
uint256 price = usdPrice / (10 ** 12);
require(price <= ourAllowance, 'Make sure to add enough allowance');
(bool success, ) = address(USDTInterface).call(abi.encodeWithSignature('transferFrom(address,address,uint256)', _msgSender(), owner(), price));
require(success, 'Token payment failed');
emit TokensBought(_msgSender(), amount, address(USDTInterface), price, usdPrice, block.timestamp);
return true;
}
/**
* @dev To buy into a presale using ETH
* @param amount No of tokens to buy
*/
function buyWithEth(uint256 amount) external payable checkSaleState(amount) whenNotPaused nonReentrant returns (bool) {
uint256 usdPrice = calculatePrice(amount);
uint256 ethAmount = (usdPrice * baseDecimals) / getLatestPrice();
require(msg.value >= ethAmount, 'Less payment');
uint256 excess = msg.value - ethAmount;
totalTokensSold += amount;
if (checkPoint != 0) checkPoint += amount;
uint256 total = totalTokensSold > checkPoint ? totalTokensSold : checkPoint;
if (total > rounds[0][currentStep] || block.timestamp >= rounds[2][currentStep]) {
if (block.timestamp >= rounds[2][currentStep]) {
checkPoint = rounds[0][currentStep] + amount;
}
currentStep += 1;
}
userDeposits[_msgSender()] += (amount * baseDecimals);
usdRaised += usdPrice;
sendValue(payable(owner()), ethAmount);
if (excess > 0) sendValue(payable(_msgSender()), excess);
emit TokensBought(_msgSender(), amount, address(0), ethAmount, usdPrice, block.timestamp);
return true;
}
/**
* @dev To buy ETH directly from wert .*wert contract address should be whitelisted if wertBuyRestrictionStatus is set true
* @param _user address of the user
* @param _amount No of ETH to buy
*/
function buyWithETHWert(address _user, uint256 _amount) external payable checkSaleState(_amount) whenNotPaused nonReentrant returns (bool) {
require(wertWhitelisted[_msgSender()], 'User not whitelisted for this tx');
uint256 usdPrice = calculatePrice(_amount);
uint256 ethAmount = (usdPrice * baseDecimals) / getLatestPrice();
require(msg.value >= ethAmount, 'Less payment');
uint256 excess = msg.value - ethAmount;
totalTokensSold += _amount;
if (checkPoint != 0) checkPoint += _amount;
uint256 total = totalTokensSold > checkPoint ? totalTokensSold : checkPoint;
if (total > rounds[0][currentStep] || block.timestamp >= rounds[2][currentStep]) {
if (block.timestamp >= rounds[2][currentStep]) {
checkPoint = rounds[0][currentStep] + _amount;
}
currentStep += 1;
}
userDeposits[_user] += (_amount * baseDecimals);
usdRaised += usdPrice;
sendValue(payable(owner()), ethAmount);
if (excess > 0) sendValue(payable(_user), excess);
emit TokensBought(_user, _amount, address(0), ethAmount, usdPrice, block.timestamp);
return true;
}
/**
* @dev Helper funtion to get ETH price for given amount
* @param amount No of tokens to buy
*/
function ethBuyHelper(uint256 amount) external view returns (uint256 ethAmount) {
uint256 usdPrice = calculatePrice(amount);
ethAmount = (usdPrice * baseDecimals) / getLatestPrice();
}
/**
* @dev Helper funtion to get USDT price for given amount
* @param amount No of tokens to buy
*/
function usdtBuyHelper(uint256 amount) external view returns (uint256 usdPrice) {
usdPrice = calculatePrice(amount);
usdPrice = usdPrice / (10 ** 12);
}
function sendValue(address payable recipient, uint256 amount) internal {
require(address(this).balance >= amount, 'Low balance');
(bool success, ) = recipient.call{value: amount}('');
require(success, 'ETH Payment failed');
}
/**
* @dev To set the claim start time and sale token address by the owner
* @param _claimStart claim start time
* @param noOfTokens no of tokens to add to the contract
* @param _saleToken sale toke address
*/
function startClaim(uint256 _claimStart, uint256 noOfTokens, address _saleToken) external onlyAdmin returns (bool) {
require(_claimStart > endTime && _claimStart > block.timestamp, 'Invalid claim start time');
require(noOfTokens >= (totalTokensSold * baseDecimals), 'Tokens less than sold');
require(_saleToken != address(0), 'Zero token address');
require(claimStart == 0, 'Claim already set');
claimStart = _claimStart;
saleToken = _saleToken;
bool success = IERC20Upgradeable(_saleToken).transferFrom(_msgSender(), address(this), noOfTokens);
require(success, 'Token transfer failed');
emit TokensAdded(saleToken, noOfTokens, block.timestamp);
return true;
}
/**
* @dev To change the claim start time by the owner
* @param _claimStart new claim start time
*/
function changeClaimStart(uint256 _claimStart) external onlyAdmin returns (bool) {
require(claimStart > 0, 'Initial claim data not set');
require(_claimStart > endTime, 'Sale in progress');
require(_claimStart > block.timestamp, 'Claim start in past');
uint256 prevValue = claimStart;
claimStart = _claimStart;
emit ClaimStartUpdated(prevValue, _claimStart, block.timestamp);
return true;
}
/**
* @dev To claim tokens after claiming starts
*/
function claim() external whenNotPaused returns (bool) {
require(saleToken != address(0), 'Sale token not added');
require(!isBlacklisted[_msgSender()], 'This Address is Blacklisted');
if (whitelistClaimOnly) {
require(isWhitelisted[_msgSender()], 'User not whitelisted for claim');
}
require(block.timestamp >= claimStart, 'Claim has not started yet');
require(!hasClaimed[_msgSender()], 'Already claimed');
hasClaimed[_msgSender()] = true;
uint256 amount = userDeposits[_msgSender()];
require(amount > 0, 'Nothing to claim');
delete userDeposits[_msgSender()];
bool success = IERC20Upgradeable(saleToken).transfer(_msgSender(), amount);
require(success, 'Token transfer failed');
emit TokensClaimed(_msgSender(), amount, block.timestamp);
return true;
}
function changeMaxTokensToBuy(uint256 _maxTokensToBuy) external onlyAdmin {
require(_maxTokensToBuy > 0, 'Zero max tokens to buy value');
uint256 prevValue = maxTokensToBuy;
maxTokensToBuy = _maxTokensToBuy;
emit MaxTokensUpdated(prevValue, _maxTokensToBuy, block.timestamp);
}
function changeRoundsData(uint256[][3] memory _rounds) external onlyAdmin {
rounds = _rounds;
}
/**
* @dev To add wert contract addresses to whitelist
* @param _addressesToWhitelist addresses of the contract
*/
function whitelistUsersForWERT(address[] calldata _addressesToWhitelist) external onlyAdmin {
for (uint256 i = 0; i < _addressesToWhitelist.length; i++) {
wertWhitelisted[_addressesToWhitelist[i]] = true;
}
}
/**
* @dev To remove wert contract addresses to whitelist
* @param _addressesToRemoveFromWhitelist addresses of the contracts
*/
function removeFromWhitelistForWERT(address[] calldata _addressesToRemoveFromWhitelist) external onlyAdmin {
for (uint256 i = 0; i < _addressesToRemoveFromWhitelist.length; i++) {
wertWhitelisted[_addressesToRemoveFromWhitelist[i]] = false;
}
}
/**
* @dev To add users to blacklist which restricts blacklisted users from claiming
* @param _usersToBlacklist addresses of the users
*/
function blacklistUsers(address[] calldata _usersToBlacklist) external onlyAdmin {
for (uint256 i = 0; i < _usersToBlacklist.length; i++) {
isBlacklisted[_usersToBlacklist[i]] = true;
}
}
/**
* @dev To remove users from blacklist which restricts blacklisted users from claiming
* @param _userToRemoveFromBlacklist addresses of the users
*/
function removeFromBlacklist(address[] calldata _userToRemoveFromBlacklist) external onlyAdmin {
for (uint256 i = 0; i < _userToRemoveFromBlacklist.length; i++) {
isBlacklisted[_userToRemoveFromBlacklist[i]] = false;
}
}
/**
* @dev To add users to whitelist which restricts users from claiming if claimWhitelistStatus is true
* @param _usersToWhitelist addresses of the users
*/
function whitelistUsers(address[] calldata _usersToWhitelist) external onlyAdmin {
for (uint256 i = 0; i < _usersToWhitelist.length; i++) {
isWhitelisted[_usersToWhitelist[i]] = true;
}
}
/**
* @dev To remove users from whitelist which restricts users from claiming if claimWhitelistStatus is true
* @param _userToRemoveFromWhitelist addresses of the users
*/
function removeFromWhitelist(address[] calldata _userToRemoveFromWhitelist) external onlyAdmin {
for (uint256 i = 0; i < _userToRemoveFromWhitelist.length; i++) {
isWhitelisted[_userToRemoveFromWhitelist[i]] = false;
}
}
/**
* @dev To set status for claim whitelisting
* @param _status bool value
*/
function setClaimWhitelistStatus(bool _status) external onlyAdmin {
whitelistClaimOnly = _status;
}
/**
* @dev To set admin wallet
* @param _admin new admin address
*/
function setAdmin(address _admin) external {
require(!initAdmin, 'admin already set');
admin = _admin;
initAdmin = true;
}
modifier onlyAdmin() {
require(_msgSender() == admin, 'caller is not admin');
_;
}
function incrementCurrentStep() external onlyAdmin {
prevCheckpoints.push(checkPoint);
if (checkPoint < rounds[0][currentStep]) {
checkPoint = rounds[0][currentStep];
}
currentStep++;
}
function setCurrentStep(uint256 _step, uint256 _checkpoint) external onlyAdmin {
currentStep = _step;
checkPoint = _checkpoint;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Address.sol)
pragma solidity ^0.8.1;
/**
* @dev Collection of functions related to the address type
*/
library AddressUpgradeable {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will return false for the following
* types of addresses:
*
* - an externally-owned account
* - a contract in construction
* - an address where a contract will be created
* - an address where a contract lived, but was destroyed
* ====
*
* [IMPORTANT]
* ====
* You shouldn't rely on `isContract` to protect against flash loan attacks!
*
* Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
* like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
* constructor.
* ====
*/
function isContract(address account) internal view returns (bool) {
// This method relies on extcodesize/address.code.length, which returns 0
// for contracts in construction, since the code is only stored at the end
// of the constructor execution.
return account.code.length > 0;
}
/**
* @dev Replacement for Solidity's `transfer`: sends `amount` wei to
* `recipient`, forwarding all available gas and reverting on errors.
*
* https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
* of certain opcodes, possibly making contracts go over the 2300 gas limit
* imposed by `transfer`, making them unable to receive funds via
* `transfer`. {sendValue} removes this limitation.
*
* https://diligence.consensys.net/posts/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.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
*/
function sendValue(address payable recipient, uint256 amount) internal {
require(address(this).balance >= amount, "Address: insufficient balance");
(bool success, ) = recipient.call{value: amount}("");
require(success, "Address: unable to send value, recipient may have reverted");
}
/**
* @dev Performs a Solidity function call using a low level `call`. A
* plain `call` is an unsafe replacement for a function call: use this
* function instead.
*
* If `target` reverts with a revert reason, it is bubbled up by this
* function (like regular Solidity function calls).
*
* Returns the raw returned data. To convert to the expected return value,
* use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
*
* Requirements:
*
* - `target` must be a contract.
* - calling `target` with `data` must not revert.
*
* _Available since v3.1._
*/
function functionCall(address target, bytes memory data) internal returns (bytes memory) {
return functionCall(target, data, "Address: low-level call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
* `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
return functionCallWithValue(target, data, 0, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but also transferring `value` wei to `target`.
*
* Requirements:
*
* - the calling contract must have an ETH balance of at least `value`.
* - the called Solidity function must be `payable`.
*
* _Available since v3.1._
*/
function functionCallWithValue(
address target,
bytes memory data,
uint256 value
) internal returns (bytes memory) {
return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
}
/**
* @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
* with `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCallWithValue(
address target,
bytes memory data,
uint256 value,
string memory errorMessage
) internal returns (bytes memory) {
require(address(this).balance >= value, "Address: insufficient balance for call");
require(isContract(target), "Address: call to non-contract");
(bool success, bytes memory returndata) = target.call{value: value}(data);
return verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
return functionStaticCall(target, data, "Address: low-level static call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(
address target,
bytes memory data,
string memory errorMessage
) internal view returns (bytes memory) {
require(isContract(target), "Address: static call to non-contract");
(bool success, bytes memory returndata) = target.staticcall(data);
return verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
* revert reason using the provided one.
*
* _Available since v4.3._
*/
function verifyCallResult(
bool success,
bytes memory returndata,
string memory errorMessage
) internal pure returns (bytes memory) {
if (success) {
return returndata;
} else {
// Look for revert reason and bubble it up if present
if (returndata.length > 0) {
// The easiest way to bubble the revert reason is using memory via assembly
/// @solidity memory-safe-assembly
assembly {
let returndata_size := mload(returndata)
revert(add(32, returndata), returndata_size)
}
} else {
revert(errorMessage);
}
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (security/Pausable.sol)
pragma solidity ^0.8.0;
import "../utils/ContextUpgradeable.sol";
import "../proxy/utils/Initializable.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 PausableUpgradeable is Initializable, ContextUpgradeable {
/**
* @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.
*/
function __Pausable_init() internal onlyInitializing {
__Pausable_init_unchained();
}
function __Pausable_init_unchained() internal onlyInitializing {
_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());
}
/**
* @dev This empty reserved space is put in place to allow future versions to add new
* variables without shifting down storage in the inheritance chain.
* See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
*/
uint256[49] private __gap;
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)
pragma solidity ^0.8.0;
import "../utils/ContextUpgradeable.sol";
import "../proxy/utils/Initializable.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.
*
* By default, the owner account will be the one that deploys the contract. 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 OwnableUpgradeable is Initializable, ContextUpgradeable {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
function __Ownable_init() internal onlyInitializing {
__Ownable_init_unchained();
}
function __Ownable_init_unchained() internal onlyInitializing {
_transferOwnership(_msgSender());
}
/**
* @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 {
require(owner() == _msgSender(), "Ownable: caller is not the owner");
}
/**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions anymore. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby removing 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 {
require(newOwner != address(0), "Ownable: new owner is the zero address");
_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);
}
/**
* @dev This empty reserved space is put in place to allow future versions to add new
* variables without shifting down storage in the inheritance chain.
* See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
*/
uint256[49] private __gap;
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)
pragma solidity ^0.8.0;
import "../proxy/utils/Initializable.sol";
/**
* @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 ContextUpgradeable is Initializable {
function __Context_init() internal onlyInitializing {
}
function __Context_init_unchained() internal onlyInitializing {
}
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
/**
* @dev This empty reserved space is put in place to allow future versions to add new
* variables without shifting down storage in the inheritance chain.
* See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
*/
uint256[50] private __gap;
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20Upgradeable {
/**
* @dev Emitted when `value` tokens are moved from one account (`from`) to
* another (`to`).
*
* Note that `value` may be zero.
*/
event Transfer(address indexed from, address indexed to, uint256 value);
/**
* @dev Emitted when the allowance of a `spender` for an `owner` is set by
* a call to {approve}. `value` is the new allowance.
*/
event Approval(address indexed owner, address indexed spender, uint256 value);
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves `amount` tokens from the caller's account to `to`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transfer(address to, uint256 amount) external returns (bool);
/**
* @dev Returns the remaining number of tokens that `spender` will be
* allowed to spend on behalf of `owner` through {transferFrom}. This is
* zero by default.
*
* This value changes when {approve} or {transferFrom} are called.
*/
function allowance(address owner, address spender) external view returns (uint256);
/**
* @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
* transaction ordering. One possible solution to mitigate this race
* condition is to first reduce the spender's allowance to 0 and set the
* desired value afterwards:
* https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
*
* Emits an {Approval} event.
*/
function approve(address spender, uint256 amount) external returns (bool);
/**
* @dev Moves `amount` tokens from `from` to `to` using the
* allowance mechanism. `amount` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transferFrom(
address from,
address to,
uint256 amount
) external returns (bool);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)
pragma solidity ^0.8.0;
import "../proxy/utils/Initializable.sol";
/**
* @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 ReentrancyGuardUpgradeable is Initializable {
// 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;
function __ReentrancyGuard_init() internal onlyInitializing {
__ReentrancyGuard_init_unchained();
}
function __ReentrancyGuard_init_unchained() internal onlyInitializing {
_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() {
// On the first call to nonReentrant, _notEntered will be true
require(_status != _ENTERED, "ReentrancyGuard: reentrant call");
// Any calls to nonReentrant after this point will fail
_status = _ENTERED;
_;
// By storing the original value once again, a refund is triggered (see
// https://eips.ethereum.org/EIPS/eip-2200)
_status = _NOT_ENTERED;
}
/**
* @dev This empty reserved space is put in place to allow future versions to add new
* variables without shifting down storage in the inheritance chain.
* See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
*/
uint256[49] private __gap;
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (proxy/utils/Initializable.sol)
pragma solidity ^0.8.2;
import "../../utils/AddressUpgradeable.sol";
/**
* @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed
* behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an
* external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer
* function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.
*
* The initialization functions use a version number. Once a version number is used, it is consumed and cannot be
* reused. This mechanism prevents re-execution of each "step" but allows the creation of new initialization steps in
* case an upgrade adds a module that needs to be initialized.
*
* For example:
*
* [.hljs-theme-light.nopadding]
* ```
* contract MyToken is ERC20Upgradeable {
* function initialize() initializer public {
* __ERC20_init("MyToken", "MTK");
* }
* }
* contract MyTokenV2 is MyToken, ERC20PermitUpgradeable {
* function initializeV2() reinitializer(2) public {
* __ERC20Permit_init("MyToken");
* }
* }
* ```
*
* TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as
* possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.
*
* CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure
* that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.
*
* [CAUTION]
* ====
* Avoid leaving a contract uninitialized.
*
* An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation
* contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke
* the {_disableInitializers} function in the constructor to automatically lock it when it is deployed:
*
* [.hljs-theme-light.nopadding]
* ```
* /// @custom:oz-upgrades-unsafe-allow constructor
* constructor() {
* _disableInitializers();
* }
* ```
* ====
*/
abstract contract Initializable {
/**
* @dev Indicates that the contract has been initialized.
* @custom:oz-retyped-from bool
*/
uint8 private _initialized;
/**
* @dev Indicates that the contract is in the process of being initialized.
*/
bool private _initializing;
/**
* @dev Triggered when the contract has been initialized or reinitialized.
*/
event Initialized(uint8 version);
/**
* @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope,
* `onlyInitializing` functions can be used to initialize parent contracts. Equivalent to `reinitializer(1)`.
*/
modifier initializer() {
bool isTopLevelCall = !_initializing;
require(
(isTopLevelCall && _initialized < 1) || (!AddressUpgradeable.isContract(address(this)) && _initialized == 1),
"Initializable: contract is already initialized"
);
_initialized = 1;
if (isTopLevelCall) {
_initializing = true;
}
_;
if (isTopLevelCall) {
_initializing = false;
emit Initialized(1);
}
}
/**
* @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the
* contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be
* used to initialize parent contracts.
*
* `initializer` is equivalent to `reinitializer(1)`, so a reinitializer may be used after the original
* initialization step. This is essential to configure modules that are added through upgrades and that require
* initialization.
*
* Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in
* a contract, executing them in the right order is up to the developer or operator.
*/
modifier reinitializer(uint8 version) {
require(!_initializing && _initialized < version, "Initializable: contract is already initialized");
_initialized = version;
_initializing = true;
_;
_initializing = false;
emit Initialized(version);
}
/**
* @dev Modifier to protect an initialization function so that it can only be invoked by functions with the
* {initializer} and {reinitializer} modifiers, directly or indirectly.
*/
modifier onlyInitializing() {
require(_initializing, "Initializable: contract is not initializing");
_;
}
/**
* @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call.
* Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized
* to any version. It is recommended to use this to lock implementation contracts that are designed to be called
* through proxies.
*/
function _disableInitializers() internal virtual {
require(!_initializing, "Initializable: contract is initializing");
if (_initialized < type(uint8).max) {
_initialized = type(uint8).max;
emit Initialized(type(uint8).max);
}
}
}{
"optimizer": {
"enabled": true,
"runs": 200
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
},
"libraries": {}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"prevValue","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newValue","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"ClaimStartUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint8","name":"version","type":"uint8"}],"name":"Initialized","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"prevValue","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newValue","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"MaxTokensUpdated","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":"uint256","name":"_start","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_end","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"SaleTimeSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"key","type":"bytes32"},{"indexed":false,"internalType":"uint256","name":"prevValue","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newValue","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"SaleTimeUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"noOfTokens","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"TokensAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokensBought","type":"uint256"},{"indexed":true,"internalType":"address","name":"purchaseToken","type":"address"},{"indexed":false,"internalType":"uint256","name":"amountPaid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"usdEq","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"TokensBought","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"TokensClaimed","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"USDTInterface","outputs":[{"internalType":"contract IERC20Upgradeable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"admin","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"aggregatorInterface","outputs":[{"internalType":"contract Aggregator","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseDecimals","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_usersToBlacklist","type":"address[]"}],"name":"blacklistUsers","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"buyWithETHWert","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"buyWithEth","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"buyWithUSDT","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"calculatePrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_claimStart","type":"uint256"}],"name":"changeClaimStart","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxTokensToBuy","type":"uint256"}],"name":"changeMaxTokensToBuy","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[][3]","name":"_rounds","type":"uint256[][3]"}],"name":"changeRoundsData","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_startTime","type":"uint256"},{"internalType":"uint256","name":"_endTime","type":"uint256"}],"name":"changeSaleTimes","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"checkPoint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claim","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claimStart","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"currentStep","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"endTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"ethBuyHelper","outputs":[{"internalType":"uint256","name":"ethAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getLatestPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"hasClaimed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"incrementCurrentStep","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"initAdmin","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_oracle","type":"address"},{"internalType":"address","name":"_usdt","type":"address"},{"internalType":"uint256","name":"_startTime","type":"uint256"},{"internalType":"uint256","name":"_endTime","type":"uint256"},{"internalType":"uint256[][3]","name":"_rounds","type":"uint256[][3]"},{"internalType":"uint256","name":"_maxTokensToBuy","type":"uint256"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isBlacklisted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isWhitelisted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxTokensToBuy","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"prevCheckpoints","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_userToRemoveFromBlacklist","type":"address[]"}],"name":"removeFromBlacklist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_userToRemoveFromWhitelist","type":"address[]"}],"name":"removeFromWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_addressesToRemoveFromWhitelist","type":"address[]"}],"name":"removeFromWhitelistForWERT","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"rounds","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"saleToken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_admin","type":"address"}],"name":"setAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_status","type":"bool"}],"name":"setClaimWhitelistStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_step","type":"uint256"},{"internalType":"uint256","name":"_checkpoint","type":"uint256"}],"name":"setCurrentStep","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_claimStart","type":"uint256"},{"internalType":"uint256","name":"noOfTokens","type":"uint256"},{"internalType":"address","name":"_saleToken","type":"address"}],"name":"startClaim","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalTokensSold","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":[],"name":"usdRaised","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"usdtBuyHelper","outputs":[{"internalType":"uint256","name":"usdPrice","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userDeposits","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"wertWhitelisted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"whitelistClaimOnly","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_usersToWhitelist","type":"address[]"}],"name":"whitelistUsers","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_addressesToWhitelist","type":"address[]"}],"name":"whitelistUsersForWERT","outputs":[],"stateMutability":"nonpayable","type":"function"}]Contract Creation Code
60806040523480156200001157600080fd5b50600054610100900460ff1615808015620000335750600054600160ff909116105b8062000063575062000050306200013d60201b62002d091760201c565b15801562000063575060005460ff166001145b620000cb5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b606482015260840160405180910390fd5b6000805460ff191660011790558015620000ef576000805461ff0019166101001790555b801562000136576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b506200014c565b6001600160a01b03163b151590565b6137cc806200015c6000396000f3fe6080604052600436106102ff5760003560e01c80638456cb5911610190578063cff805ab116100dc578063edec5f2711610095578063f44637431161006f578063f4463743146108b5578063f597573f146108d5578063f851a440146108f5578063fe575a871461091557600080fd5b8063edec5f271461085f578063f04d688f1461087f578063f2fde38b1461089557600080fd5b8063cff805ab146107b3578063de8fc743146107c9578063e19648db146107e9578063e6da921314610809578063e985e36714610829578063eadd94ec1461084957600080fd5b8063a6d42e4e11610149578063ae10426511610123578063ae10426514610733578063b2caaebd14610753578063bb3d676a14610773578063c49cc6451461079357600080fd5b8063a6d42e4e146106d2578063a7c60160146106f2578063ad2c41bb1461071257600080fd5b80638456cb591461062057806389daf799146106355780638da5cb5b146106555780638e15f473146106875780639a89c1fb1461069c5780639cfa0f7c146106bc57600080fd5b806353d992071161024f57806363e4087911610208578063715018a6116101e2578063715018a6146105b257806373b2e80e146105c75780637649b957146105f757806378e979251461060a57600080fd5b806363e408791461055d578063641046f41461057d578063704b6c021461059257600080fd5b806353d99207146104af578063548db174146104c95780635bc34f71146104e95780635c975abb146104ff5780635df4f3531461051757806363b201171461054757600080fd5b806329a5a0b6116102bc5780633af32abf116102965780633af32abf146104425780633f4ba83a146104725780634e71d92d146104875780635173ffaa1461049c57600080fd5b806329a5a0b6146103f65780633197cbb61461041657806333f761781461042c57600080fd5b806303b9c5ad1461030457806307f18082146103265780630ba36dcd1461035b5780630dc9c838146103965780631ddc6091146103b6578063278c278b146103d6575b600080fd5b34801561031057600080fd5b5061032461031f36600461312f565b610945565b005b34801561033257600080fd5b506103466103413660046131a4565b6109f8565b60405190151581526020015b60405180910390f35b34801561036757600080fd5b506103886103763660046131d4565b60d36020526000908152604090205481565b604051908152602001610352565b3480156103a257600080fd5b506103246103b13660046131ef565b610b5b565b3480156103c257600080fd5b506103246103d136600461321f565b610da8565b3480156103e257600080fd5b506103246103f13660046131a4565b610dee565b34801561040257600080fd5b506103886104113660046131a4565b610ebc565b34801561042257600080fd5b5061038860cb5481565b34801561043857600080fd5b5061038860ce5481565b34801561044e57600080fd5b5061034661045d3660046131d4565b60d66020526000908152604090205460ff1681565b34801561047e57600080fd5b50610324610ef0565b34801561049357600080fd5b50610346610f2d565b6103466104aa36600461323c565b611282565b3480156104bb57600080fd5b5060d8546103469060ff1681565b3480156104d557600080fd5b506103246104e436600461312f565b611609565b3480156104f557600080fd5b5061038860d05481565b34801561050b57600080fd5b5060975460ff16610346565b34801561052357600080fd5b506103466105323660046131d4565b60d76020526000908152604090205460ff1681565b34801561055357600080fd5b5061038860c95481565b34801561056957600080fd5b506103886105783660046131a4565b6116ae565b34801561058957600080fd5b506103246116d0565b34801561059e57600080fd5b506103246105ad3660046131d4565b6117a4565b3480156105be57600080fd5b50610324611819565b3480156105d357600080fd5b506103466105e23660046131d4565b60d46020526000908152604090205460ff1681565b6103466106053660046131a4565b61182b565b34801561061657600080fd5b5061038860ca5481565b34801561062c57600080fd5b50610324611b3e565b34801561064157600080fd5b5061032461065036600461312f565b611b79565b34801561066157600080fd5b506065546001600160a01b03165b6040516001600160a01b039091168152602001610352565b34801561069357600080fd5b50610388611c1e565b3480156106a857600080fd5b506103246106b73660046131ef565b611cbe565b3480156106c857600080fd5b5061038860cf5481565b3480156106de57600080fd5b506103246106ed3660046133b7565b611cfc565b3480156106fe57600080fd5b5061034661070d3660046131a4565b611d3c565b34801561071e57600080fd5b5060de5461034690600160a01b900460ff1681565b34801561073f57600080fd5b5061038861074e3660046131a4565b61217c565b34801561075f57600080fd5b5061034661076e3660046133f4565b6124b2565b34801561077f57600080fd5b5061032461078e36600461312f565b612775565b34801561079f57600080fd5b5060d25461066f906001600160a01b031681565b3480156107bf57600080fd5b5061038860dc5481565b3480156107d557600080fd5b506103246107e4366004613429565b61281a565b3480156107f557600080fd5b506103886108043660046131a4565b612af1565b34801561081557600080fd5b506103886108243660046131ef565b612b12565b34801561083557600080fd5b5060cd5461066f906001600160a01b031681565b34801561085557600080fd5b5061038860dd5481565b34801561086b57600080fd5b5061032461087a36600461312f565b612b46565b34801561088b57600080fd5b5061038860cc5481565b3480156108a157600080fd5b506103246108b03660046131d4565b612beb565b3480156108c157600080fd5b506103246108d036600461312f565b612c64565b3480156108e157600080fd5b5060d15461066f906001600160a01b031681565b34801561090157600080fd5b5060de5461066f906001600160a01b031681565b34801561092157600080fd5b506103466109303660046131d4565b60d56020526000908152604090205460ff1681565b60de546001600160a01b0316336001600160a01b0316146109815760405162461bcd60e51b8152600401610978906134a3565b60405180910390fd5b60005b818110156109f357600160d760008585858181106109a4576109a46134d0565b90506020020160208101906109b991906131d4565b6001600160a01b031681526020810191909152604001600020805460ff1916911515919091179055806109eb816134fc565b915050610984565b505050565b60de546000906001600160a01b0316336001600160a01b031614610a2e5760405162461bcd60e51b8152600401610978906134a3565b600060cc5411610a805760405162461bcd60e51b815260206004820152601a60248201527f496e697469616c20636c61696d2064617461206e6f74207365740000000000006044820152606401610978565b60cb548211610ac45760405162461bcd60e51b815260206004820152601060248201526f53616c6520696e2070726f677265737360801b6044820152606401610978565b428211610b095760405162461bcd60e51b815260206004820152601360248201527210db185a5b481cdd185c9d081a5b881c185cdd606a1b6044820152606401610978565b60cc8054908390556040805182815260208101859052428183015290517f5f3a900c85949962b4cc192dd3714dae64071dc2e907049ec720b023270905a49181900360600190a160019150505b919050565b60de546001600160a01b0316336001600160a01b031614610b8e5760405162461bcd60e51b8152600401610978906134a3565b6000821180610b9d5750600081115b610bde5760405162461bcd60e51b8152602060048201526012602482015271496e76616c696420706172616d657465727360701b6044820152606401610978565b8115610cc35760ca544210610c2c5760405162461bcd60e51b815260206004820152601460248201527314d85b1948185b1c9958591e481cdd185c9d195960621b6044820152606401610978565b814210610c6f5760405162461bcd60e51b815260206004820152601160248201527014d85b19481d1a5b59481a5b881c185cdd607a1b6044820152606401610978565b60ca8054908390556040805182815260208101859052428183015290516414d510549560da1b917fddd2ed237e6993c9380182683f2c8bec486aaaa429528852cd74dbdb96cea0b2919081900360600190a2505b8015610da45760cb544210610d0f5760405162461bcd60e51b815260206004820152601260248201527114d85b1948185b1c9958591e48195b99195960721b6044820152606401610978565b60ca548111610d525760405162461bcd60e51b815260206004820152600f60248201526e496e76616c696420656e6454696d6560881b6044820152606401610978565b60cb8054908290556040805182815260208101849052428183015290516211539160ea1b917fddd2ed237e6993c9380182683f2c8bec486aaaa429528852cd74dbdb96cea0b2919081900360600190a2505b5050565b60de546001600160a01b0316336001600160a01b031614610ddb5760405162461bcd60e51b8152600401610978906134a3565b60d8805460ff1916911515919091179055565b60de546001600160a01b0316336001600160a01b031614610e215760405162461bcd60e51b8152600401610978906134a3565b60008111610e715760405162461bcd60e51b815260206004820152601c60248201527f5a65726f206d617820746f6b656e7320746f206275792076616c7565000000006044820152606401610978565b60cf8054908290556040805182815260208101849052428183015290517f76f9e5e1f6af6a9f180708b77a5c99210fbf19b91f1f194f3918c262b8edf77c9181900360600190a15050565b600080610ec88361217c565b9050610ed2611c1e565b60ce54610edf9083613517565b610ee99190613536565b9392505050565b60de546001600160a01b0316336001600160a01b031614610f235760405162461bcd60e51b8152600401610978906134a3565b610f2b612d18565b565b6000610f37612d6a565b60cd546001600160a01b0316610f865760405162461bcd60e51b815260206004820152601460248201527314d85b19481d1bdad95b881b9bdd08185919195960621b6044820152606401610978565b33600090815260d5602052604090205460ff1615610fe65760405162461bcd60e51b815260206004820152601b60248201527f54686973204164647265737320697320426c61636b6c697374656400000000006044820152606401610978565b60d85460ff16156110505733600090815260d6602052604090205460ff166110505760405162461bcd60e51b815260206004820152601e60248201527f55736572206e6f742077686974656c697374656420666f7220636c61696d00006044820152606401610978565b60cc544210156110a25760405162461bcd60e51b815260206004820152601960248201527f436c61696d20686173206e6f74207374617274656420796574000000000000006044820152606401610978565b33600090815260d4602052604090205460ff16156110f45760405162461bcd60e51b815260206004820152600f60248201526e105b1c9958591e4818db185a5b5959608a1b6044820152606401610978565b33600090815260d460209081526040808320805460ff1916600117905560d3909152902054806111595760405162461bcd60e51b815260206004820152601060248201526f4e6f7468696e6720746f20636c61696d60801b6044820152606401610978565b33600081815260d36020908152604080832083905560cd54815163a9059cbb60e01b8152600481019590955260248501869052905192936001600160a01b039091169263a9059cbb9260448084019391929182900301818787803b1580156111c057600080fd5b505af11580156111d4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111f89190613558565b90508061123f5760405162461bcd60e51b8152602060048201526015602482015274151bdad95b881d1c985b9cd9995c8819985a5b1959605a1b6044820152606401610978565b6040805183815242602082015233917f9923b4306c6c030f2bdfbf156517d5983b87e15b96176da122cd4f2effa4ba7b910160405180910390a260019250505090565b60008160ca544210158015611299575060cb544211155b6112b55760405162461bcd60e51b815260040161097890613575565b600081116112d55760405162461bcd60e51b8152600401610978906135ac565b6112dd612d6a565b600260015414156113305760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610978565b600260015533600090815260d7602052604090205460ff166113945760405162461bcd60e51b815260206004820181905260248201527f55736572206e6f742077686974656c697374656420666f7220746869732074786044820152606401610978565b600061139f8461217c565b905060006113ab611c1e565b60ce546113b89084613517565b6113c29190613536565b9050803410156114035760405162461bcd60e51b815260206004820152600c60248201526b13195cdcc81c185e5b595b9d60a21b6044820152606401610978565b600061140f82346135d9565b90508560c9600082825461142391906135f0565b909155505060dc5415611448578560dc600082825461144291906135f0565b90915550505b600060dc5460c9541161145d5760dc54611461565b60c9545b905060d960000160d0548154811061147b5761147b6134d0565b90600052602060002001548111806114b5575060d960020160d054815481106114a6576114a66134d0565b90600052602060002001544210155b1561152e5760d960020160d054815481106114d2576114d26134d0565b90600052602060002001544210611515578660d960000160d054815481106114fc576114fc6134d0565b906000526020600020015461151191906135f0565b60dc555b600160d0600082825461152891906135f0565b90915550505b60ce5461153b9088613517565b6001600160a01b038916600090815260d36020526040812080549091906115639084906135f0565b925050819055508360dd600082825461157c91906135f0565b9091555050606554611598906001600160a01b03165b84612db0565b81156115a8576115a88883612db0565b60408051848152602081018690524281830152905160009189916001600160a01b038c16917f4d8aead3491b7eba4b5c7a65fc17e493b9e63f9e433522fc5f6a85a168fc9d36919081900360600190a4505060018080559695505050505050565b60de546001600160a01b0316336001600160a01b03161461163c5760405162461bcd60e51b8152600401610978906134a3565b60005b818110156109f357600060d6600085858581811061165f5761165f6134d0565b905060200201602081019061167491906131d4565b6001600160a01b031681526020810191909152604001600020805460ff1916911515919091179055806116a6816134fc565b91505061163f565b60006116b98261217c565b90506116ca64e8d4a5100082613536565b92915050565b60de546001600160a01b0316336001600160a01b0316146117035760405162461bcd60e51b8152600401610978906134a3565b60dc5460df805460018101825560009182527f65e3d48fa860a761b461ce1274f0d562f3db9a6a57cf04d8c90d68f5670b6aea019190915560d90160d05481548110611751576117516134d0565b906000526020600020015460dc54101561178d5760d960000160d0548154811061177d5761177d6134d0565b60009182526020909120015460dc555b60d0805490600061179d836134fc565b9190505550565b60de54600160a01b900460ff16156117f25760405162461bcd60e51b815260206004820152601160248201527018591b5a5b88185b1c9958591e481cd95d607a1b6044820152606401610978565b60de80546001600160a81b0319166001600160a01b0390921691909117600160a01b179055565b611821612e86565b610f2b6000612ee0565b60008160ca544210158015611842575060cb544211155b61185e5760405162461bcd60e51b815260040161097890613575565b6000811161187e5760405162461bcd60e51b8152600401610978906135ac565b611886612d6a565b600260015414156118d95760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610978565b600260015560006118e98461217c565b905060006118f5611c1e565b60ce546119029084613517565b61190c9190613536565b90508034101561194d5760405162461bcd60e51b815260206004820152600c60248201526b13195cdcc81c185e5b595b9d60a21b6044820152606401610978565b600061195982346135d9565b90508560c9600082825461196d91906135f0565b909155505060dc5415611992578560dc600082825461198c91906135f0565b90915550505b600060dc5460c954116119a75760dc546119ab565b60c9545b905060d960000160d054815481106119c5576119c56134d0565b90600052602060002001548111806119ff575060d960020160d054815481106119f0576119f06134d0565b90600052602060002001544210155b15611a785760d960020160d05481548110611a1c57611a1c6134d0565b90600052602060002001544210611a5f578660d960000160d05481548110611a4657611a466134d0565b9060005260206000200154611a5b91906135f0565b60dc555b600160d06000828254611a7291906135f0565b90915550505b60ce54611a859088613517565b33600090815260d3602052604081208054909190611aa49084906135f0565b925050819055508360dd6000828254611abd91906135f0565b9091555050606554611ad7906001600160a01b0316611592565b8115611ae757611ae73383612db0565b604080518481526020810186905242818301529051600091899133917f4d8aead3491b7eba4b5c7a65fc17e493b9e63f9e433522fc5f6a85a168fc9d36919081900360600190a45050600180805595945050505050565b60de546001600160a01b0316336001600160a01b031614611b715760405162461bcd60e51b8152600401610978906134a3565b610f2b612f32565b60de546001600160a01b0316336001600160a01b031614611bac5760405162461bcd60e51b8152600401610978906134a3565b60005b818110156109f357600060d56000858585818110611bcf57611bcf6134d0565b9050602002016020810190611be491906131d4565b6001600160a01b031681526020810191909152604001600020805460ff191691151591909117905580611c16816134fc565b915050611baf565b60008060d260009054906101000a90046001600160a01b03166001600160a01b031663feaf968c6040518163ffffffff1660e01b815260040160a06040518083038186803b158015611c6f57600080fd5b505afa158015611c83573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ca79190613622565b505050915050806402540be4006116ca9190613672565b60de546001600160a01b0316336001600160a01b031614611cf15760405162461bcd60e51b8152600401610978906134a3565b60d09190915560dc55565b60de546001600160a01b0316336001600160a01b031614611d2f5760405162461bcd60e51b8152600401610978906134a3565b610da460d9826003613048565b60008160ca544210158015611d53575060cb544211155b611d6f5760405162461bcd60e51b815260040161097890613575565b60008111611d8f5760405162461bcd60e51b8152600401610978906135ac565b611d97612d6a565b6000611da28461217c565b90508360c96000828254611db691906135f0565b909155505060dc5415611ddb578360dc6000828254611dd591906135f0565b90915550505b600060dc5460c95411611df05760dc54611df4565b60c9545b905060d960000160d05481548110611e0e57611e0e6134d0565b9060005260206000200154811180611e48575060d960020160d05481548110611e3957611e396134d0565b90600052602060002001544210155b15611ec15760d960020160d05481548110611e6557611e656134d0565b90600052602060002001544210611ea8578460d960000160d05481548110611e8f57611e8f6134d0565b9060005260206000200154611ea491906135f0565b60dc555b600160d06000828254611ebb91906135f0565b90915550505b60ce54611ece9086613517565b33600090815260d3602052604081208054909190611eed9084906135f0565b925050819055508160dd6000828254611f0691906135f0565b909155505060d1546000906001600160a01b031663dd62ed3e336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015230602482015260440160206040518083038186803b158015611f6557600080fd5b505afa158015611f79573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f9d91906136f7565b90506000611fb064e8d4a5100085613536565b90508181111561200c5760405162461bcd60e51b815260206004820152602160248201527f4d616b65207375726520746f2061646420656e6f75676820616c6c6f77616e636044820152606560f81b6064820152608401610978565b60d1546000906001600160a01b0316336065546001600160a01b03166040516001600160a01b039283166024820152911660448201526064810184905260840160408051601f198184030181529181526020820180516001600160e01b03166323b872dd60e01b179052516120819190613710565b6000604051808303816000865af19150503d80600081146120be576040519150601f19603f3d011682016040523d82523d6000602084013e6120c3565b606091505b505090508061210b5760405162461bcd60e51b8152602060048201526014602482015273151bdad95b881c185e5b595b9d0819985a5b195960621b6044820152606401610978565b60d1546001600160a01b031688336001600160a01b03167f4d8aead3491b7eba4b5c7a65fc17e493b9e63f9e433522fc5f6a85a168fc9d36858942604051612166939291909283526020830191909152604082015260600190565b60405180910390a4506001979650505050505050565b600080600060dc546000146121935760dc54612197565b60c9545b905060cf548411156121eb5760405162461bcd60e51b815260206004820181905260248201527f416d6f756e742065786365656473206d617820746f6b656e7320746f206275796044820152606401610978565b60d960000160d05481548110612203576122036134d0565b9060005260206000200154818561221a91906135f0565b1180612248575060d960020160d05481548110612239576122396134d0565b90600052602060002001544210155b1561247a5760d95461225c906001906135d9565b60d0541061229b5760405162461bcd60e51b815260206004820152600c60248201526b57726f6e6720706172616d7360a01b6044820152606401610978565b60d960020160d054815481106122b3576122b36134d0565b906000526020600020015442106123c65760d05460d9906122d59060016135f0565b815481106122e5576122e56134d0565b90600052602060002001548460d9600060038110612305576123056134d0565b0160d05481548110612319576123196134d0565b906000526020600020015461232e91906135f0565b11156123885760405162461bcd60e51b815260206004820152602360248201527f43616e74205075726368617365204d6f726520696e20696e646976696475616c604482015262040e8f60eb1b6064820152608401610978565b60d05460da906123999060016135f0565b815481106123a9576123a96134d0565b9060005260206000200154846123bf9190613517565b91506124ab565b60008160d9820160d054815481106123e0576123e06134d0565b90600052602060002001546123f591906135d9565b60d05490915060da906124099060016135f0565b81548110612419576124196134d0565b9060005260206000200154818661243091906135d9565b61243a9190613517565b60d960010160d05481548110612452576124526134d0565b9060005260206000200154826124689190613517565b61247291906135f0565b9250506124ab565b60d960010160d05481548110612492576124926134d0565b9060005260206000200154846124a89190613517565b91505b5092915050565b60de546000906001600160a01b0316336001600160a01b0316146124e85760405162461bcd60e51b8152600401610978906134a3565b60cb54841180156124f857504284115b6125445760405162461bcd60e51b815260206004820152601860248201527f496e76616c696420636c61696d2073746172742074696d6500000000000000006044820152606401610978565b60ce5460c9546125549190613517565b83101561259b5760405162461bcd60e51b8152602060048201526015602482015274151bdad95b9cc81b195cdcc81d1a185b881cdbdb19605a1b6044820152606401610978565b6001600160a01b0382166125e65760405162461bcd60e51b81526020600482015260126024820152715a65726f20746f6b656e206164647265737360701b6044820152606401610978565b60cc541561262a5760405162461bcd60e51b815260206004820152601160248201527010db185a5b48185b1c9958591e481cd95d607a1b6044820152606401610978565b60cc84905560cd80546001600160a01b0319166001600160a01b0384169081179091556000906323b872dd336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015230602482015260448101879052606401602060405180830381600087803b1580156126a457600080fd5b505af11580156126b8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906126dc9190613558565b9050806127235760405162461bcd60e51b8152602060048201526015602482015274151bdad95b881d1c985b9cd9995c8819985a5b1959605a1b6044820152606401610978565b60cd54604080518681524260208201526001600160a01b03909216917fdc9670dbabdd488b372eb16ebe49a39b3124a12cdffdcefbc89834a408bf8ff8910160405180910390a2506001949350505050565b60de546001600160a01b0316336001600160a01b0316146127a85760405162461bcd60e51b8152600401610978906134a3565b60005b818110156109f357600160d560008585858181106127cb576127cb6134d0565b90506020020160208101906127e091906131d4565b6001600160a01b031681526020810191909152604001600020805460ff191691151591909117905580612812816134fc565b9150506127ab565b600054610100900460ff161580801561283a5750600054600160ff909116105b806128545750303b158015612854575060005460ff166001145b6128b75760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401610978565b6000805460ff1916600117905580156128da576000805461ff0019166101001790555b6001600160a01b0387166129305760405162461bcd60e51b815260206004820152601760248201527f5a65726f2061676772656761746f7220616464726573730000000000000000006044820152606401610978565b6001600160a01b03861661297a5760405162461bcd60e51b81526020600482015260116024820152705a65726f2055534454206164647265737360781b6044820152606401610978565b428511801561298857508484115b6129c35760405162461bcd60e51b815260206004820152600c60248201526b496e76616c69642074696d6560a01b6044820152606401610978565b6129cb612f6f565b6129d3612fa2565b6129db612fd2565b60cf829055670de0b6b3a764000060ce556129f960d9846003613048565b5060d280546001600160a01b03808a166001600160a01b03199283161790925560d180549289169290911691909117905560ca85905560cb84905560d9600001600281548110612a4b57612a4b6134d0565b6000918252602091829020015460dc55600260d05560ca5460cb546040805192835292820152428183015290517f23f6ad8232d75562dd1c6b37dfc895af6bfc1ecd0fb3b88722c6a5e6b4dc9a209181900360600190a18015612ae8576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b50505050505050565b60df8181548110612b0157600080fd5b600091825260209091200154905081565b60d98260038110612b2257600080fd5b018181548110612b3157600080fd5b90600052602060002001600091509150505481565b60de546001600160a01b0316336001600160a01b031614612b795760405162461bcd60e51b8152600401610978906134a3565b60005b818110156109f357600160d66000858585818110612b9c57612b9c6134d0565b9050602002016020810190612bb191906131d4565b6001600160a01b031681526020810191909152604001600020805460ff191691151591909117905580612be3816134fc565b915050612b7c565b612bf3612e86565b6001600160a01b038116612c585760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610978565b612c6181612ee0565b50565b60de546001600160a01b0316336001600160a01b031614612c975760405162461bcd60e51b8152600401610978906134a3565b60005b818110156109f357600060d76000858585818110612cba57612cba6134d0565b9050602002016020810190612ccf91906131d4565b6001600160a01b031681526020810191909152604001600020805460ff191691151591909117905580612d01816134fc565b915050612c9a565b6001600160a01b03163b151590565b612d20612fff565b6097805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b60975460ff1615610f2b5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610978565b80471015612dee5760405162461bcd60e51b815260206004820152600b60248201526a4c6f772062616c616e636560a81b6044820152606401610978565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114612e3b576040519150601f19603f3d011682016040523d82523d6000602084013e612e40565b606091505b50509050806109f35760405162461bcd60e51b81526020600482015260126024820152711155120814185e5b595b9d0819985a5b195960721b6044820152606401610978565b6065546001600160a01b03163314610f2b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610978565b606580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b612f3a612d6a565b6097805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258612d4d3390565b600054610100900460ff16612f965760405162461bcd60e51b81526004016109789061374b565b6097805460ff19169055565b600054610100900460ff16612fc95760405162461bcd60e51b81526004016109789061374b565b610f2b33612ee0565b600054610100900460ff16612ff95760405162461bcd60e51b81526004016109789061374b565b60018055565b60975460ff16610f2b5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610978565b8260038101928215613088579160200282015b828111156130885782518051613078918491602090910190613098565b509160200191906001019061305b565b506130949291506130df565b5090565b8280548282559060005260206000209081019282156130d3579160200282015b828111156130d35782518255916020019190600101906130b8565b506130949291506130fc565b808211156130945760006130f38282613111565b506001016130df565b5b8082111561309457600081556001016130fd565b5080546000825590600052602060002090810190612c6191906130fc565b6000806020838503121561314257600080fd5b823567ffffffffffffffff8082111561315a57600080fd5b818501915085601f83011261316e57600080fd5b81358181111561317d57600080fd5b8660208260051b850101111561319257600080fd5b60209290920196919550909350505050565b6000602082840312156131b657600080fd5b5035919050565b80356001600160a01b0381168114610b5657600080fd5b6000602082840312156131e657600080fd5b610ee9826131bd565b6000806040838503121561320257600080fd5b50508035926020909101359150565b8015158114612c6157600080fd5b60006020828403121561323157600080fd5b8135610ee981613211565b6000806040838503121561324f57600080fd5b613258836131bd565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b6040516060810167ffffffffffffffff8111828210171561329f5761329f613266565b60405290565b604051601f8201601f1916810167ffffffffffffffff811182821017156132ce576132ce613266565b604052919050565b6000601f83818401126132e857600080fd5b6132f061327c565b80606085018681111561330257600080fd5b855b818110156133ab57803567ffffffffffffffff808211156133255760008081fd5b818901915089878301126133395760008081fd5b813560208282111561334d5761334d613266565b8160051b925061335e8184016132a5565b828152928401810192818101908d85111561337b57600093508384fd5b948201945b8486101561339957853582529482019490820190613380565b89525090960195505050602001613304565b50909695505050505050565b6000602082840312156133c957600080fd5b813567ffffffffffffffff8111156133e057600080fd5b6133ec848285016132d6565b949350505050565b60008060006060848603121561340957600080fd5b8335925060208401359150613420604085016131bd565b90509250925092565b60008060008060008060c0878903121561344257600080fd5b61344b876131bd565b9550613459602088016131bd565b94506040870135935060608701359250608087013567ffffffffffffffff81111561348357600080fd5b61348f89828a016132d6565b92505060a087013590509295509295509295565b60208082526013908201527231b0b63632b91034b9903737ba1030b236b4b760691b604082015260600190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000600019821415613510576135106134e6565b5060010190565b6000816000190483118215151615613531576135316134e6565b500290565b60008261355357634e487b7160e01b600052601260045260246000fd5b500490565b60006020828403121561356a57600080fd5b8151610ee981613211565b60208082526017908201527f496e76616c69642074696d6520666f7220627579696e67000000000000000000604082015260600190565b602080825260139082015272125b9d985b1a59081cd85b1948185b5bdd5b9d606a1b604082015260600190565b6000828210156135eb576135eb6134e6565b500390565b60008219821115613603576136036134e6565b500190565b805169ffffffffffffffffffff81168114610b5657600080fd5b600080600080600060a0868803121561363a57600080fd5b61364386613608565b945060208601519350604086015192506060860151915061366660808701613608565b90509295509295909350565b60006001600160ff1b0381841382841380821686840486111615613698576136986134e6565b600160ff1b60008712828116878305891216156136b7576136b76134e6565b600087129250878205871284841616156136d3576136d36134e6565b878505871281841616156136e9576136e96134e6565b505050929093029392505050565b60006020828403121561370957600080fd5b5051919050565b6000825160005b818110156137315760208186018101518583015201613717565b81811115613740576000828501525b509190910192915050565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b60608201526080019056fea264697066735822122039c3b4690bd3259d16aedfe9ef562585bbc67b0db8d237c46351fbb260d95bda64736f6c63430008090033
Deployed Bytecode
0x6080604052600436106102ff5760003560e01c80638456cb5911610190578063cff805ab116100dc578063edec5f2711610095578063f44637431161006f578063f4463743146108b5578063f597573f146108d5578063f851a440146108f5578063fe575a871461091557600080fd5b8063edec5f271461085f578063f04d688f1461087f578063f2fde38b1461089557600080fd5b8063cff805ab146107b3578063de8fc743146107c9578063e19648db146107e9578063e6da921314610809578063e985e36714610829578063eadd94ec1461084957600080fd5b8063a6d42e4e11610149578063ae10426511610123578063ae10426514610733578063b2caaebd14610753578063bb3d676a14610773578063c49cc6451461079357600080fd5b8063a6d42e4e146106d2578063a7c60160146106f2578063ad2c41bb1461071257600080fd5b80638456cb591461062057806389daf799146106355780638da5cb5b146106555780638e15f473146106875780639a89c1fb1461069c5780639cfa0f7c146106bc57600080fd5b806353d992071161024f57806363e4087911610208578063715018a6116101e2578063715018a6146105b257806373b2e80e146105c75780637649b957146105f757806378e979251461060a57600080fd5b806363e408791461055d578063641046f41461057d578063704b6c021461059257600080fd5b806353d99207146104af578063548db174146104c95780635bc34f71146104e95780635c975abb146104ff5780635df4f3531461051757806363b201171461054757600080fd5b806329a5a0b6116102bc5780633af32abf116102965780633af32abf146104425780633f4ba83a146104725780634e71d92d146104875780635173ffaa1461049c57600080fd5b806329a5a0b6146103f65780633197cbb61461041657806333f761781461042c57600080fd5b806303b9c5ad1461030457806307f18082146103265780630ba36dcd1461035b5780630dc9c838146103965780631ddc6091146103b6578063278c278b146103d6575b600080fd5b34801561031057600080fd5b5061032461031f36600461312f565b610945565b005b34801561033257600080fd5b506103466103413660046131a4565b6109f8565b60405190151581526020015b60405180910390f35b34801561036757600080fd5b506103886103763660046131d4565b60d36020526000908152604090205481565b604051908152602001610352565b3480156103a257600080fd5b506103246103b13660046131ef565b610b5b565b3480156103c257600080fd5b506103246103d136600461321f565b610da8565b3480156103e257600080fd5b506103246103f13660046131a4565b610dee565b34801561040257600080fd5b506103886104113660046131a4565b610ebc565b34801561042257600080fd5b5061038860cb5481565b34801561043857600080fd5b5061038860ce5481565b34801561044e57600080fd5b5061034661045d3660046131d4565b60d66020526000908152604090205460ff1681565b34801561047e57600080fd5b50610324610ef0565b34801561049357600080fd5b50610346610f2d565b6103466104aa36600461323c565b611282565b3480156104bb57600080fd5b5060d8546103469060ff1681565b3480156104d557600080fd5b506103246104e436600461312f565b611609565b3480156104f557600080fd5b5061038860d05481565b34801561050b57600080fd5b5060975460ff16610346565b34801561052357600080fd5b506103466105323660046131d4565b60d76020526000908152604090205460ff1681565b34801561055357600080fd5b5061038860c95481565b34801561056957600080fd5b506103886105783660046131a4565b6116ae565b34801561058957600080fd5b506103246116d0565b34801561059e57600080fd5b506103246105ad3660046131d4565b6117a4565b3480156105be57600080fd5b50610324611819565b3480156105d357600080fd5b506103466105e23660046131d4565b60d46020526000908152604090205460ff1681565b6103466106053660046131a4565b61182b565b34801561061657600080fd5b5061038860ca5481565b34801561062c57600080fd5b50610324611b3e565b34801561064157600080fd5b5061032461065036600461312f565b611b79565b34801561066157600080fd5b506065546001600160a01b03165b6040516001600160a01b039091168152602001610352565b34801561069357600080fd5b50610388611c1e565b3480156106a857600080fd5b506103246106b73660046131ef565b611cbe565b3480156106c857600080fd5b5061038860cf5481565b3480156106de57600080fd5b506103246106ed3660046133b7565b611cfc565b3480156106fe57600080fd5b5061034661070d3660046131a4565b611d3c565b34801561071e57600080fd5b5060de5461034690600160a01b900460ff1681565b34801561073f57600080fd5b5061038861074e3660046131a4565b61217c565b34801561075f57600080fd5b5061034661076e3660046133f4565b6124b2565b34801561077f57600080fd5b5061032461078e36600461312f565b612775565b34801561079f57600080fd5b5060d25461066f906001600160a01b031681565b3480156107bf57600080fd5b5061038860dc5481565b3480156107d557600080fd5b506103246107e4366004613429565b61281a565b3480156107f557600080fd5b506103886108043660046131a4565b612af1565b34801561081557600080fd5b506103886108243660046131ef565b612b12565b34801561083557600080fd5b5060cd5461066f906001600160a01b031681565b34801561085557600080fd5b5061038860dd5481565b34801561086b57600080fd5b5061032461087a36600461312f565b612b46565b34801561088b57600080fd5b5061038860cc5481565b3480156108a157600080fd5b506103246108b03660046131d4565b612beb565b3480156108c157600080fd5b506103246108d036600461312f565b612c64565b3480156108e157600080fd5b5060d15461066f906001600160a01b031681565b34801561090157600080fd5b5060de5461066f906001600160a01b031681565b34801561092157600080fd5b506103466109303660046131d4565b60d56020526000908152604090205460ff1681565b60de546001600160a01b0316336001600160a01b0316146109815760405162461bcd60e51b8152600401610978906134a3565b60405180910390fd5b60005b818110156109f357600160d760008585858181106109a4576109a46134d0565b90506020020160208101906109b991906131d4565b6001600160a01b031681526020810191909152604001600020805460ff1916911515919091179055806109eb816134fc565b915050610984565b505050565b60de546000906001600160a01b0316336001600160a01b031614610a2e5760405162461bcd60e51b8152600401610978906134a3565b600060cc5411610a805760405162461bcd60e51b815260206004820152601a60248201527f496e697469616c20636c61696d2064617461206e6f74207365740000000000006044820152606401610978565b60cb548211610ac45760405162461bcd60e51b815260206004820152601060248201526f53616c6520696e2070726f677265737360801b6044820152606401610978565b428211610b095760405162461bcd60e51b815260206004820152601360248201527210db185a5b481cdd185c9d081a5b881c185cdd606a1b6044820152606401610978565b60cc8054908390556040805182815260208101859052428183015290517f5f3a900c85949962b4cc192dd3714dae64071dc2e907049ec720b023270905a49181900360600190a160019150505b919050565b60de546001600160a01b0316336001600160a01b031614610b8e5760405162461bcd60e51b8152600401610978906134a3565b6000821180610b9d5750600081115b610bde5760405162461bcd60e51b8152602060048201526012602482015271496e76616c696420706172616d657465727360701b6044820152606401610978565b8115610cc35760ca544210610c2c5760405162461bcd60e51b815260206004820152601460248201527314d85b1948185b1c9958591e481cdd185c9d195960621b6044820152606401610978565b814210610c6f5760405162461bcd60e51b815260206004820152601160248201527014d85b19481d1a5b59481a5b881c185cdd607a1b6044820152606401610978565b60ca8054908390556040805182815260208101859052428183015290516414d510549560da1b917fddd2ed237e6993c9380182683f2c8bec486aaaa429528852cd74dbdb96cea0b2919081900360600190a2505b8015610da45760cb544210610d0f5760405162461bcd60e51b815260206004820152601260248201527114d85b1948185b1c9958591e48195b99195960721b6044820152606401610978565b60ca548111610d525760405162461bcd60e51b815260206004820152600f60248201526e496e76616c696420656e6454696d6560881b6044820152606401610978565b60cb8054908290556040805182815260208101849052428183015290516211539160ea1b917fddd2ed237e6993c9380182683f2c8bec486aaaa429528852cd74dbdb96cea0b2919081900360600190a2505b5050565b60de546001600160a01b0316336001600160a01b031614610ddb5760405162461bcd60e51b8152600401610978906134a3565b60d8805460ff1916911515919091179055565b60de546001600160a01b0316336001600160a01b031614610e215760405162461bcd60e51b8152600401610978906134a3565b60008111610e715760405162461bcd60e51b815260206004820152601c60248201527f5a65726f206d617820746f6b656e7320746f206275792076616c7565000000006044820152606401610978565b60cf8054908290556040805182815260208101849052428183015290517f76f9e5e1f6af6a9f180708b77a5c99210fbf19b91f1f194f3918c262b8edf77c9181900360600190a15050565b600080610ec88361217c565b9050610ed2611c1e565b60ce54610edf9083613517565b610ee99190613536565b9392505050565b60de546001600160a01b0316336001600160a01b031614610f235760405162461bcd60e51b8152600401610978906134a3565b610f2b612d18565b565b6000610f37612d6a565b60cd546001600160a01b0316610f865760405162461bcd60e51b815260206004820152601460248201527314d85b19481d1bdad95b881b9bdd08185919195960621b6044820152606401610978565b33600090815260d5602052604090205460ff1615610fe65760405162461bcd60e51b815260206004820152601b60248201527f54686973204164647265737320697320426c61636b6c697374656400000000006044820152606401610978565b60d85460ff16156110505733600090815260d6602052604090205460ff166110505760405162461bcd60e51b815260206004820152601e60248201527f55736572206e6f742077686974656c697374656420666f7220636c61696d00006044820152606401610978565b60cc544210156110a25760405162461bcd60e51b815260206004820152601960248201527f436c61696d20686173206e6f74207374617274656420796574000000000000006044820152606401610978565b33600090815260d4602052604090205460ff16156110f45760405162461bcd60e51b815260206004820152600f60248201526e105b1c9958591e4818db185a5b5959608a1b6044820152606401610978565b33600090815260d460209081526040808320805460ff1916600117905560d3909152902054806111595760405162461bcd60e51b815260206004820152601060248201526f4e6f7468696e6720746f20636c61696d60801b6044820152606401610978565b33600081815260d36020908152604080832083905560cd54815163a9059cbb60e01b8152600481019590955260248501869052905192936001600160a01b039091169263a9059cbb9260448084019391929182900301818787803b1580156111c057600080fd5b505af11580156111d4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111f89190613558565b90508061123f5760405162461bcd60e51b8152602060048201526015602482015274151bdad95b881d1c985b9cd9995c8819985a5b1959605a1b6044820152606401610978565b6040805183815242602082015233917f9923b4306c6c030f2bdfbf156517d5983b87e15b96176da122cd4f2effa4ba7b910160405180910390a260019250505090565b60008160ca544210158015611299575060cb544211155b6112b55760405162461bcd60e51b815260040161097890613575565b600081116112d55760405162461bcd60e51b8152600401610978906135ac565b6112dd612d6a565b600260015414156113305760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610978565b600260015533600090815260d7602052604090205460ff166113945760405162461bcd60e51b815260206004820181905260248201527f55736572206e6f742077686974656c697374656420666f7220746869732074786044820152606401610978565b600061139f8461217c565b905060006113ab611c1e565b60ce546113b89084613517565b6113c29190613536565b9050803410156114035760405162461bcd60e51b815260206004820152600c60248201526b13195cdcc81c185e5b595b9d60a21b6044820152606401610978565b600061140f82346135d9565b90508560c9600082825461142391906135f0565b909155505060dc5415611448578560dc600082825461144291906135f0565b90915550505b600060dc5460c9541161145d5760dc54611461565b60c9545b905060d960000160d0548154811061147b5761147b6134d0565b90600052602060002001548111806114b5575060d960020160d054815481106114a6576114a66134d0565b90600052602060002001544210155b1561152e5760d960020160d054815481106114d2576114d26134d0565b90600052602060002001544210611515578660d960000160d054815481106114fc576114fc6134d0565b906000526020600020015461151191906135f0565b60dc555b600160d0600082825461152891906135f0565b90915550505b60ce5461153b9088613517565b6001600160a01b038916600090815260d36020526040812080549091906115639084906135f0565b925050819055508360dd600082825461157c91906135f0565b9091555050606554611598906001600160a01b03165b84612db0565b81156115a8576115a88883612db0565b60408051848152602081018690524281830152905160009189916001600160a01b038c16917f4d8aead3491b7eba4b5c7a65fc17e493b9e63f9e433522fc5f6a85a168fc9d36919081900360600190a4505060018080559695505050505050565b60de546001600160a01b0316336001600160a01b03161461163c5760405162461bcd60e51b8152600401610978906134a3565b60005b818110156109f357600060d6600085858581811061165f5761165f6134d0565b905060200201602081019061167491906131d4565b6001600160a01b031681526020810191909152604001600020805460ff1916911515919091179055806116a6816134fc565b91505061163f565b60006116b98261217c565b90506116ca64e8d4a5100082613536565b92915050565b60de546001600160a01b0316336001600160a01b0316146117035760405162461bcd60e51b8152600401610978906134a3565b60dc5460df805460018101825560009182527f65e3d48fa860a761b461ce1274f0d562f3db9a6a57cf04d8c90d68f5670b6aea019190915560d90160d05481548110611751576117516134d0565b906000526020600020015460dc54101561178d5760d960000160d0548154811061177d5761177d6134d0565b60009182526020909120015460dc555b60d0805490600061179d836134fc565b9190505550565b60de54600160a01b900460ff16156117f25760405162461bcd60e51b815260206004820152601160248201527018591b5a5b88185b1c9958591e481cd95d607a1b6044820152606401610978565b60de80546001600160a81b0319166001600160a01b0390921691909117600160a01b179055565b611821612e86565b610f2b6000612ee0565b60008160ca544210158015611842575060cb544211155b61185e5760405162461bcd60e51b815260040161097890613575565b6000811161187e5760405162461bcd60e51b8152600401610978906135ac565b611886612d6a565b600260015414156118d95760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610978565b600260015560006118e98461217c565b905060006118f5611c1e565b60ce546119029084613517565b61190c9190613536565b90508034101561194d5760405162461bcd60e51b815260206004820152600c60248201526b13195cdcc81c185e5b595b9d60a21b6044820152606401610978565b600061195982346135d9565b90508560c9600082825461196d91906135f0565b909155505060dc5415611992578560dc600082825461198c91906135f0565b90915550505b600060dc5460c954116119a75760dc546119ab565b60c9545b905060d960000160d054815481106119c5576119c56134d0565b90600052602060002001548111806119ff575060d960020160d054815481106119f0576119f06134d0565b90600052602060002001544210155b15611a785760d960020160d05481548110611a1c57611a1c6134d0565b90600052602060002001544210611a5f578660d960000160d05481548110611a4657611a466134d0565b9060005260206000200154611a5b91906135f0565b60dc555b600160d06000828254611a7291906135f0565b90915550505b60ce54611a859088613517565b33600090815260d3602052604081208054909190611aa49084906135f0565b925050819055508360dd6000828254611abd91906135f0565b9091555050606554611ad7906001600160a01b0316611592565b8115611ae757611ae73383612db0565b604080518481526020810186905242818301529051600091899133917f4d8aead3491b7eba4b5c7a65fc17e493b9e63f9e433522fc5f6a85a168fc9d36919081900360600190a45050600180805595945050505050565b60de546001600160a01b0316336001600160a01b031614611b715760405162461bcd60e51b8152600401610978906134a3565b610f2b612f32565b60de546001600160a01b0316336001600160a01b031614611bac5760405162461bcd60e51b8152600401610978906134a3565b60005b818110156109f357600060d56000858585818110611bcf57611bcf6134d0565b9050602002016020810190611be491906131d4565b6001600160a01b031681526020810191909152604001600020805460ff191691151591909117905580611c16816134fc565b915050611baf565b60008060d260009054906101000a90046001600160a01b03166001600160a01b031663feaf968c6040518163ffffffff1660e01b815260040160a06040518083038186803b158015611c6f57600080fd5b505afa158015611c83573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ca79190613622565b505050915050806402540be4006116ca9190613672565b60de546001600160a01b0316336001600160a01b031614611cf15760405162461bcd60e51b8152600401610978906134a3565b60d09190915560dc55565b60de546001600160a01b0316336001600160a01b031614611d2f5760405162461bcd60e51b8152600401610978906134a3565b610da460d9826003613048565b60008160ca544210158015611d53575060cb544211155b611d6f5760405162461bcd60e51b815260040161097890613575565b60008111611d8f5760405162461bcd60e51b8152600401610978906135ac565b611d97612d6a565b6000611da28461217c565b90508360c96000828254611db691906135f0565b909155505060dc5415611ddb578360dc6000828254611dd591906135f0565b90915550505b600060dc5460c95411611df05760dc54611df4565b60c9545b905060d960000160d05481548110611e0e57611e0e6134d0565b9060005260206000200154811180611e48575060d960020160d05481548110611e3957611e396134d0565b90600052602060002001544210155b15611ec15760d960020160d05481548110611e6557611e656134d0565b90600052602060002001544210611ea8578460d960000160d05481548110611e8f57611e8f6134d0565b9060005260206000200154611ea491906135f0565b60dc555b600160d06000828254611ebb91906135f0565b90915550505b60ce54611ece9086613517565b33600090815260d3602052604081208054909190611eed9084906135f0565b925050819055508160dd6000828254611f0691906135f0565b909155505060d1546000906001600160a01b031663dd62ed3e336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015230602482015260440160206040518083038186803b158015611f6557600080fd5b505afa158015611f79573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f9d91906136f7565b90506000611fb064e8d4a5100085613536565b90508181111561200c5760405162461bcd60e51b815260206004820152602160248201527f4d616b65207375726520746f2061646420656e6f75676820616c6c6f77616e636044820152606560f81b6064820152608401610978565b60d1546000906001600160a01b0316336065546001600160a01b03166040516001600160a01b039283166024820152911660448201526064810184905260840160408051601f198184030181529181526020820180516001600160e01b03166323b872dd60e01b179052516120819190613710565b6000604051808303816000865af19150503d80600081146120be576040519150601f19603f3d011682016040523d82523d6000602084013e6120c3565b606091505b505090508061210b5760405162461bcd60e51b8152602060048201526014602482015273151bdad95b881c185e5b595b9d0819985a5b195960621b6044820152606401610978565b60d1546001600160a01b031688336001600160a01b03167f4d8aead3491b7eba4b5c7a65fc17e493b9e63f9e433522fc5f6a85a168fc9d36858942604051612166939291909283526020830191909152604082015260600190565b60405180910390a4506001979650505050505050565b600080600060dc546000146121935760dc54612197565b60c9545b905060cf548411156121eb5760405162461bcd60e51b815260206004820181905260248201527f416d6f756e742065786365656473206d617820746f6b656e7320746f206275796044820152606401610978565b60d960000160d05481548110612203576122036134d0565b9060005260206000200154818561221a91906135f0565b1180612248575060d960020160d05481548110612239576122396134d0565b90600052602060002001544210155b1561247a5760d95461225c906001906135d9565b60d0541061229b5760405162461bcd60e51b815260206004820152600c60248201526b57726f6e6720706172616d7360a01b6044820152606401610978565b60d960020160d054815481106122b3576122b36134d0565b906000526020600020015442106123c65760d05460d9906122d59060016135f0565b815481106122e5576122e56134d0565b90600052602060002001548460d9600060038110612305576123056134d0565b0160d05481548110612319576123196134d0565b906000526020600020015461232e91906135f0565b11156123885760405162461bcd60e51b815260206004820152602360248201527f43616e74205075726368617365204d6f726520696e20696e646976696475616c604482015262040e8f60eb1b6064820152608401610978565b60d05460da906123999060016135f0565b815481106123a9576123a96134d0565b9060005260206000200154846123bf9190613517565b91506124ab565b60008160d9820160d054815481106123e0576123e06134d0565b90600052602060002001546123f591906135d9565b60d05490915060da906124099060016135f0565b81548110612419576124196134d0565b9060005260206000200154818661243091906135d9565b61243a9190613517565b60d960010160d05481548110612452576124526134d0565b9060005260206000200154826124689190613517565b61247291906135f0565b9250506124ab565b60d960010160d05481548110612492576124926134d0565b9060005260206000200154846124a89190613517565b91505b5092915050565b60de546000906001600160a01b0316336001600160a01b0316146124e85760405162461bcd60e51b8152600401610978906134a3565b60cb54841180156124f857504284115b6125445760405162461bcd60e51b815260206004820152601860248201527f496e76616c696420636c61696d2073746172742074696d6500000000000000006044820152606401610978565b60ce5460c9546125549190613517565b83101561259b5760405162461bcd60e51b8152602060048201526015602482015274151bdad95b9cc81b195cdcc81d1a185b881cdbdb19605a1b6044820152606401610978565b6001600160a01b0382166125e65760405162461bcd60e51b81526020600482015260126024820152715a65726f20746f6b656e206164647265737360701b6044820152606401610978565b60cc541561262a5760405162461bcd60e51b815260206004820152601160248201527010db185a5b48185b1c9958591e481cd95d607a1b6044820152606401610978565b60cc84905560cd80546001600160a01b0319166001600160a01b0384169081179091556000906323b872dd336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015230602482015260448101879052606401602060405180830381600087803b1580156126a457600080fd5b505af11580156126b8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906126dc9190613558565b9050806127235760405162461bcd60e51b8152602060048201526015602482015274151bdad95b881d1c985b9cd9995c8819985a5b1959605a1b6044820152606401610978565b60cd54604080518681524260208201526001600160a01b03909216917fdc9670dbabdd488b372eb16ebe49a39b3124a12cdffdcefbc89834a408bf8ff8910160405180910390a2506001949350505050565b60de546001600160a01b0316336001600160a01b0316146127a85760405162461bcd60e51b8152600401610978906134a3565b60005b818110156109f357600160d560008585858181106127cb576127cb6134d0565b90506020020160208101906127e091906131d4565b6001600160a01b031681526020810191909152604001600020805460ff191691151591909117905580612812816134fc565b9150506127ab565b600054610100900460ff161580801561283a5750600054600160ff909116105b806128545750303b158015612854575060005460ff166001145b6128b75760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401610978565b6000805460ff1916600117905580156128da576000805461ff0019166101001790555b6001600160a01b0387166129305760405162461bcd60e51b815260206004820152601760248201527f5a65726f2061676772656761746f7220616464726573730000000000000000006044820152606401610978565b6001600160a01b03861661297a5760405162461bcd60e51b81526020600482015260116024820152705a65726f2055534454206164647265737360781b6044820152606401610978565b428511801561298857508484115b6129c35760405162461bcd60e51b815260206004820152600c60248201526b496e76616c69642074696d6560a01b6044820152606401610978565b6129cb612f6f565b6129d3612fa2565b6129db612fd2565b60cf829055670de0b6b3a764000060ce556129f960d9846003613048565b5060d280546001600160a01b03808a166001600160a01b03199283161790925560d180549289169290911691909117905560ca85905560cb84905560d9600001600281548110612a4b57612a4b6134d0565b6000918252602091829020015460dc55600260d05560ca5460cb546040805192835292820152428183015290517f23f6ad8232d75562dd1c6b37dfc895af6bfc1ecd0fb3b88722c6a5e6b4dc9a209181900360600190a18015612ae8576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b50505050505050565b60df8181548110612b0157600080fd5b600091825260209091200154905081565b60d98260038110612b2257600080fd5b018181548110612b3157600080fd5b90600052602060002001600091509150505481565b60de546001600160a01b0316336001600160a01b031614612b795760405162461bcd60e51b8152600401610978906134a3565b60005b818110156109f357600160d66000858585818110612b9c57612b9c6134d0565b9050602002016020810190612bb191906131d4565b6001600160a01b031681526020810191909152604001600020805460ff191691151591909117905580612be3816134fc565b915050612b7c565b612bf3612e86565b6001600160a01b038116612c585760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610978565b612c6181612ee0565b50565b60de546001600160a01b0316336001600160a01b031614612c975760405162461bcd60e51b8152600401610978906134a3565b60005b818110156109f357600060d76000858585818110612cba57612cba6134d0565b9050602002016020810190612ccf91906131d4565b6001600160a01b031681526020810191909152604001600020805460ff191691151591909117905580612d01816134fc565b915050612c9a565b6001600160a01b03163b151590565b612d20612fff565b6097805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b60975460ff1615610f2b5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610978565b80471015612dee5760405162461bcd60e51b815260206004820152600b60248201526a4c6f772062616c616e636560a81b6044820152606401610978565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114612e3b576040519150601f19603f3d011682016040523d82523d6000602084013e612e40565b606091505b50509050806109f35760405162461bcd60e51b81526020600482015260126024820152711155120814185e5b595b9d0819985a5b195960721b6044820152606401610978565b6065546001600160a01b03163314610f2b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610978565b606580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b612f3a612d6a565b6097805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258612d4d3390565b600054610100900460ff16612f965760405162461bcd60e51b81526004016109789061374b565b6097805460ff19169055565b600054610100900460ff16612fc95760405162461bcd60e51b81526004016109789061374b565b610f2b33612ee0565b600054610100900460ff16612ff95760405162461bcd60e51b81526004016109789061374b565b60018055565b60975460ff16610f2b5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610978565b8260038101928215613088579160200282015b828111156130885782518051613078918491602090910190613098565b509160200191906001019061305b565b506130949291506130df565b5090565b8280548282559060005260206000209081019282156130d3579160200282015b828111156130d35782518255916020019190600101906130b8565b506130949291506130fc565b808211156130945760006130f38282613111565b506001016130df565b5b8082111561309457600081556001016130fd565b5080546000825590600052602060002090810190612c6191906130fc565b6000806020838503121561314257600080fd5b823567ffffffffffffffff8082111561315a57600080fd5b818501915085601f83011261316e57600080fd5b81358181111561317d57600080fd5b8660208260051b850101111561319257600080fd5b60209290920196919550909350505050565b6000602082840312156131b657600080fd5b5035919050565b80356001600160a01b0381168114610b5657600080fd5b6000602082840312156131e657600080fd5b610ee9826131bd565b6000806040838503121561320257600080fd5b50508035926020909101359150565b8015158114612c6157600080fd5b60006020828403121561323157600080fd5b8135610ee981613211565b6000806040838503121561324f57600080fd5b613258836131bd565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b6040516060810167ffffffffffffffff8111828210171561329f5761329f613266565b60405290565b604051601f8201601f1916810167ffffffffffffffff811182821017156132ce576132ce613266565b604052919050565b6000601f83818401126132e857600080fd5b6132f061327c565b80606085018681111561330257600080fd5b855b818110156133ab57803567ffffffffffffffff808211156133255760008081fd5b818901915089878301126133395760008081fd5b813560208282111561334d5761334d613266565b8160051b925061335e8184016132a5565b828152928401810192818101908d85111561337b57600093508384fd5b948201945b8486101561339957853582529482019490820190613380565b89525090960195505050602001613304565b50909695505050505050565b6000602082840312156133c957600080fd5b813567ffffffffffffffff8111156133e057600080fd5b6133ec848285016132d6565b949350505050565b60008060006060848603121561340957600080fd5b8335925060208401359150613420604085016131bd565b90509250925092565b60008060008060008060c0878903121561344257600080fd5b61344b876131bd565b9550613459602088016131bd565b94506040870135935060608701359250608087013567ffffffffffffffff81111561348357600080fd5b61348f89828a016132d6565b92505060a087013590509295509295509295565b60208082526013908201527231b0b63632b91034b9903737ba1030b236b4b760691b604082015260600190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000600019821415613510576135106134e6565b5060010190565b6000816000190483118215151615613531576135316134e6565b500290565b60008261355357634e487b7160e01b600052601260045260246000fd5b500490565b60006020828403121561356a57600080fd5b8151610ee981613211565b60208082526017908201527f496e76616c69642074696d6520666f7220627579696e67000000000000000000604082015260600190565b602080825260139082015272125b9d985b1a59081cd85b1948185b5bdd5b9d606a1b604082015260600190565b6000828210156135eb576135eb6134e6565b500390565b60008219821115613603576136036134e6565b500190565b805169ffffffffffffffffffff81168114610b5657600080fd5b600080600080600060a0868803121561363a57600080fd5b61364386613608565b945060208601519350604086015192506060860151915061366660808701613608565b90509295509295909350565b60006001600160ff1b0381841382841380821686840486111615613698576136986134e6565b600160ff1b60008712828116878305891216156136b7576136b76134e6565b600087129250878205871284841616156136d3576136d36134e6565b878505871281841616156136e9576136e96134e6565b505050929093029392505050565b60006020828403121561370957600080fd5b5051919050565b6000825160005b818110156137315760208186018101518583015201613717565b81811115613740576000828501525b509190910192915050565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b60608201526080019056fea264697066735822122039c3b4690bd3259d16aedfe9ef562585bbc67b0db8d237c46351fbb260d95bda64736f6c63430008090033
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
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.