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:
PresaleV1
Compiler Version
v0.8.21+commit.d9974bed
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.21;
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 PresaleV1 is Initializable, ReentrancyGuardUpgradeable, OwnableUpgradeable, PausableUpgradeable {
uint256 public totalTokensSold;
uint256 public startTime;
uint256 public endTime;
uint256 public baseDecimals;
uint256 public maxTokensToBuy;
uint256 public currentStep;
uint256[][3] public rounds;
uint256 public checkPoint;
uint256 public usdRaised;
uint256[] public prevCheckpoints;
uint256[] public remainingTokensTracker;
uint256 public timeConstant;
address public paymentWallet;
bool public dynamicTimeFlag;
address public admin;
IERC20Upgradeable public USDTInterface;
Aggregator public aggregatorInterface;
mapping(address => uint256) public userDeposits;
mapping(address => bool) public wertWhitelisted;
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 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
* @param _paymentWallet address to recive payments
*/
function initialize(address _oracle, address _usdt, uint256 _startTime, uint256 _endTime, uint256[][3] memory _rounds, uint256 _maxTokensToBuy, address _paymentWallet) 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();
baseDecimals = (10 ** 18);
aggregatorInterface = Aggregator(_oracle);
USDTInterface = IERC20Upgradeable(_usdt);
startTime = _startTime;
endTime = _endTime;
rounds = _rounds;
maxTokensToBuy = _maxTokensToBuy;
paymentWallet = _paymentWallet;
emit SaleTimeSet(startTime, endTime, block.timestamp);
}
/**
* @dev To pause the presale
*/
function pause() external onlyOwner {
_pause();
}
/**
* @dev To unpause the presale
*/
function unpause() external onlyOwner {
_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 {
require(total + _amount <= rounds[0][currentStep + 1], 'Cant Purchase More in individual tx');
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 onlyOwner {
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;
} else {
if (dynamicTimeFlag) {
manageTimeDiff();
}
}
uint256 unsoldTokens = total > rounds[0][currentStep] ? 0 : rounds[0][currentStep] - total;
remainingTokensTracker.push(unsoldTokens);
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(), paymentWallet, 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;
} else {
if (dynamicTimeFlag) {
manageTimeDiff();
}
}
uint256 unsoldTokens = total > rounds[0][currentStep] ? 0 : rounds[0][currentStep] - total;
remainingTokensTracker.push(unsoldTokens);
currentStep += 1;
}
userDeposits[_msgSender()] += (amount * baseDecimals);
usdRaised += usdPrice;
sendValue(payable(paymentWallet), 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;
} else {
if (dynamicTimeFlag) {
manageTimeDiff();
}
}
uint256 unsoldTokens = total > rounds[0][currentStep] ? 0 : rounds[0][currentStep] - total;
remainingTokensTracker.push(unsoldTokens);
currentStep += 1;
}
userDeposits[_user] += (_amount * baseDecimals);
usdRaised += usdPrice;
sendValue(payable(paymentWallet), 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');
}
function changeMaxTokensToBuy(uint256 _maxTokensToBuy) external onlyOwner {
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 onlyOwner {
rounds = _rounds;
}
/**
* @dev To add wert contract addresses to whitelist
* @param _addressesToWhitelist addresses of the contract
*/
function whitelistUsersForWERT(address[] calldata _addressesToWhitelist) external onlyOwner {
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 onlyOwner {
for (uint256 i = 0; i < _addressesToRemoveFromWhitelist.length; i++) {
wertWhitelisted[_addressesToRemoveFromWhitelist[i]] = false;
}
}
/**
* @dev To set payment wallet address
* @param _newPaymentWallet new payment wallet address
*/
function changePaymentWallet(address _newPaymentWallet) external onlyOwner {
require(_newPaymentWallet != address(0), 'address cannot be zero');
paymentWallet = _newPaymentWallet;
}
/**
* @dev To manage time gap between two rounds
*/
function manageTimeDiff() internal {
for (uint256 i; i < rounds[2].length - currentStep; i++) {
rounds[2][currentStep + i] = block.timestamp + i * timeConstant;
}
}
/**
* @dev To set time constant for manageTimeDiff()
* @param _timeConstant time in <days>*24*60*60 format
*/
function setTimeConstant(uint256 _timeConstant) external onlyOwner {
timeConstant = _timeConstant;
}
/**
* @dev To get array of round details at once
* @param _no array index
*/
function roundDetails(uint256 _no) external view returns (uint256[] memory) {
return rounds[_no];
}
/**
* @dev To increment the rounds from backend
*/
function incrementCurrentStep() external {
require(msg.sender == admin || msg.sender == owner(), 'caller not admin or owner');
prevCheckpoints.push(checkPoint);
if (dynamicTimeFlag) {
manageTimeDiff();
}
if (checkPoint < rounds[0][currentStep]) {
remainingTokensTracker.push(rounds[0][currentStep] - checkPoint);
checkPoint = rounds[0][currentStep];
}
currentStep++;
}
/**
* @dev To change details of the round
* @param _step round for which you want to change the details
* @param _checkpoint token tracker amount
*/
function setCurrentStep(uint256 _step, uint256 _checkpoint) external onlyOwner {
currentStep = _step;
checkPoint = _checkpoint;
}
/**
* @dev To set time shift functionality on/off
* @param _dynamicTimeFlag bool value
*/
function setDynamicTimeFlag(bool _dynamicTimeFlag) external onlyOwner {
dynamicTimeFlag = _dynamicTimeFlag;
}
function trackRemainingTokens() external view returns (uint256[] memory) {
return remainingTokensTracker;
}
/**
* @dev To set time shift functionality on/off
* @param _index index of the round we need to change
* @param _newNoOfTokens number of tokens to be sold
* @param _newPrice price for the round
* @param _newTime new end time
*/
function changeIndividualRoundData(uint256 _index, uint256 _newNoOfTokens, uint256 _newPrice, uint256 _newTime) external onlyOwner returns (bool) {
require(_index < rounds[0].length, 'invalid index');
if (_newNoOfTokens > 0) {
rounds[0][_index] = _newNoOfTokens;
}
if (_newPrice > 0) {
rounds[1][_index] = _newPrice;
}
if (_newTime > 0) {
rounds[2][_index] = _newTime;
}
return true;
}
/**
* @dev To set time shift functionality on/off
* @param _newNoOfTokens number of tokens to be sold
* @param _newPrice price for the round
* @param _newTime new end time
*/
function addNewRound(uint256 _newNoOfTokens, uint256 _newPrice, uint256 _newTime) external onlyOwner returns (bool) {
require(_newNoOfTokens > 0, 'invalid no of tokens');
require(_newPrice > 0, 'invalid new price');
require(_newTime > 0, 'invalid new time');
rounds[0].push(_newNoOfTokens);
rounds[1].push(_newPrice);
rounds[2].push(_newTime);
return true;
}
/**
* @dev To set admin
* @param _admin new admin wallet address
*/
function setAdmin(address _admin) external onlyOwner {
admin = _admin;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.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. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby disabling any functionality that is only available to the owner.
*/
function renounceOwnership() public virtual onlyOwner {
_transferOwnership(address(0));
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/
function transferOwnership(address newOwner) public virtual onlyOwner {
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 (last updated v4.9.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]
* ```solidity
* 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.
*
* Similar to `reinitializer(1)`, except that functions marked with `initializer` can be nested in the context of a
* constructor.
*
* Emits an {Initialized} event.
*/
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.
*
* 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.
*
* When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer`
* cannot be nested. If one is invoked in the context of another, execution will revert.
*
* 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.
*
* WARNING: setting the version to 255 will prevent any future reinitialization.
*
* Emits an {Initialized} event.
*/
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.
*
* Emits an {Initialized} event the first time it is successfully executed.
*/
function _disableInitializers() internal virtual {
require(!_initializing, "Initializable: contract is initializing");
if (_initialized != type(uint8).max) {
_initialized = type(uint8).max;
emit Initialized(type(uint8).max);
}
}
/**
* @dev Returns the highest version that has been initialized. See {reinitializer}.
*/
function _getInitializedVersion() internal view returns (uint8) {
return _initialized;
}
/**
* @dev Returns `true` if the contract is currently initializing. See {onlyInitializing}.
*/
function _isInitializing() internal view returns (bool) {
return _initializing;
}
}// 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.9.0) (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() {
_nonReentrantBefore();
_;
_nonReentrantAfter();
}
function _nonReentrantBefore() private {
// On the first call to nonReentrant, _status will be _NOT_ENTERED
require(_status != _ENTERED, "ReentrancyGuard: reentrant call");
// Any calls to nonReentrant after this point will fail
_status = _ENTERED;
}
function _nonReentrantAfter() private {
// By storing the original value once again, a refund is triggered (see
// https://eips.ethereum.org/EIPS/eip-2200)
_status = _NOT_ENTERED;
}
/**
* @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a
* `nonReentrant` function in the call stack.
*/
function _reentrancyGuardEntered() internal view returns (bool) {
return _status == _ENTERED;
}
/**
* @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.9.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 (last updated v4.9.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
*
* Furthermore, `isContract` will also return true if the target contract within
* the same transaction is already scheduled for destruction by `SELFDESTRUCT`,
* which only has an effect at the end of a transaction.
* ====
*
* [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://consensys.net/diligence/blog/2019/09/stop-using-soliditys-transfer-now/[Learn more].
*
* IMPORTANT: because control is transferred to `recipient`, care must be
* taken to not create reentrancy vulnerabilities. Consider using
* {ReentrancyGuard} or the
* https://solidity.readthedocs.io/en/v0.8.0/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 functionCallWithValue(target, data, 0, "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");
(bool success, bytes memory returndata) = target.call{value: value}(data);
return verifyCallResultFromTarget(target, 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) {
(bool success, bytes memory returndata) = target.staticcall(data);
return verifyCallResultFromTarget(target, success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/
function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
return functionDelegateCall(target, data, "Address: low-level delegate call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/
function functionDelegateCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
(bool success, bytes memory returndata) = target.delegatecall(data);
return verifyCallResultFromTarget(target, success, returndata, errorMessage);
}
/**
* @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling
* the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.
*
* _Available since v4.8._
*/
function verifyCallResultFromTarget(
address target,
bool success,
bytes memory returndata,
string memory errorMessage
) internal view returns (bytes memory) {
if (success) {
if (returndata.length == 0) {
// only check isContract if the call was successful and the return data is empty
// otherwise we already know that it was a contract
require(isContract(target), "Address: call to non-contract");
}
return returndata;
} else {
_revert(returndata, errorMessage);
}
}
/**
* @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the
* revert reason or 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 {
_revert(returndata, errorMessage);
}
}
function _revert(bytes memory returndata, string memory errorMessage) private pure {
// Look for revert reason and bubble it up if present
if (returndata.length > 0) {
// The easiest way to bubble the revert reason is using memory via assembly
/// @solidity memory-safe-assembly
assembly {
let returndata_size := mload(returndata)
revert(add(32, returndata), returndata_size)
}
} else {
revert(errorMessage);
}
}
}// 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;
}{
"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":"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":"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":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":[{"internalType":"uint256","name":"_newNoOfTokens","type":"uint256"},{"internalType":"uint256","name":"_newPrice","type":"uint256"},{"internalType":"uint256","name":"_newTime","type":"uint256"}],"name":"addNewRound","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","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":"_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":"_index","type":"uint256"},{"internalType":"uint256","name":"_newNoOfTokens","type":"uint256"},{"internalType":"uint256","name":"_newPrice","type":"uint256"},{"internalType":"uint256","name":"_newTime","type":"uint256"}],"name":"changeIndividualRoundData","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":"address","name":"_newPaymentWallet","type":"address"}],"name":"changePaymentWallet","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":"currentStep","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"dynamicTimeFlag","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":[],"name":"incrementCurrentStep","outputs":[],"stateMutability":"nonpayable","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"},{"internalType":"address","name":"_paymentWallet","type":"address"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","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":[],"name":"paymentWallet","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"prevCheckpoints","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"remainingTokensTracker","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":"_no","type":"uint256"}],"name":"roundDetails","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","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":[{"internalType":"address","name":"_admin","type":"address"}],"name":"setAdmin","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":"bool","name":"_dynamicTimeFlag","type":"bool"}],"name":"setDynamicTimeFlag","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_timeConstant","type":"uint256"}],"name":"setTimeConstant","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"timeConstant","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalTokensSold","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"trackRemainingTokens","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":[{"internalType":"address[]","name":"_addressesToWhitelist","type":"address[]"}],"name":"whitelistUsersForWERT","outputs":[],"stateMutability":"nonpayable","type":"function"}]Contract Creation Code
608060405234801562000010575f80fd5b505f54610100900460ff16158080156200003057505f54600160ff909116105b806200004b5750303b1580156200004b57505f5460ff166001145b620000b35760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b606482015260840160405180910390fd5b5f805460ff191660011790558015620000d5575f805461ff0019166101001790555b80156200011b575f805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b50613015806200012a5f395ff3fe60806040526004361061028b575f3560e01c806378e9792511610155578063c49cc645116100be578063e6da921311610078578063e6da921314610753578063eadd94ec14610772578063f2fde38b14610787578063f4463743146107a6578063f597573f146107c5578063f851a440146107e4575f80fd5b8063c49cc645146106ae578063c8adff01146106cd578063cad00556146106e1578063cff805ab14610700578063e19648db14610715578063e32204dd14610734575f80fd5b8063a6d42e4e1161010f578063a6d42e4e146105e7578063a7c6016014610606578063ae10426514610625578063b025384714610644578063ba166a3914610663578063c23326f31461068f575f80fd5b806378e97925146105455780638456cb591461055a5780638da5cb5b1461056e5780638e15f4731461059f5780639a89c1fb146105b35780639cfa0f7c146105d2575f80fd5b806343568eae116101f757806363b20117116101b157806363b20117146104b757806363e40879146104cc578063641046f4146104eb578063704b6c02146104ff578063715018a61461051e5780637649b95714610532575f80fd5b806343568eae146104165780635173ffaa1461042b57806357405d051461043e5780635bc34f711461045d5780635c975abb146104725780635df4f35314610489575f80fd5b8063278c278b11610248578063278c278b1461037b57806329a5a0b61461039a5780633197cbb6146103b957806333f76178146103ce5780633d9c8d8b146103e35780633f4ba83a14610402575f80fd5b806303b9c5ad1461028f5780630a200fc7146102b05780630ba36dcd146102cf5780630dc9c8381461030d5780631fa2bc921461032c57806323a8f1c01461035c575b5f80fd5b34801561029a575f80fd5b506102ae6102a93660046129c9565b610803565b005b3480156102bb575f80fd5b506102ae6102ca366004612a38565b61087f565b3480156102da575f80fd5b506102fa6102e9366004612a72565b60db6020525f908152604090205481565b6040519081526020015b60405180910390f35b348015610318575f80fd5b506102ae610327366004612a8b565b6108a5565b348015610337575f80fd5b5060d75461034c90600160a01b900460ff1681565b6040519015158152602001610304565b348015610367575f80fd5b506102ae610376366004612aab565b610aca565b348015610386575f80fd5b506102ae610395366004612aab565b610ad7565b3480156103a5575f80fd5b506102fa6103b4366004612aab565b610b79565b3480156103c4575f80fd5b506102fa60cb5481565b3480156103d9575f80fd5b506102fa60cc5481565b3480156103ee575f80fd5b5061034c6103fd366004612ac2565b610bac565b34801561040d575f80fd5b506102ae610c7b565b348015610421575f80fd5b506102fa60d65481565b61034c610439366004612af1565b610c8d565b348015610449575f80fd5b506102ae610458366004612c62565b611066565b348015610468575f80fd5b506102fa60ce5481565b34801561047d575f80fd5b5060975460ff1661034c565b348015610494575f80fd5b5061034c6104a3366004612a72565b60dc6020525f908152604090205460ff1681565b3480156104c2575f80fd5b506102fa60c95481565b3480156104d7575f80fd5b506102fa6104e6366004612aab565b61132c565b3480156104f6575f80fd5b506102ae61134d565b34801561050a575f80fd5b506102ae610519366004612a72565b6114b1565b348015610529575f80fd5b506102ae6114db565b61034c610540366004612aab565b6114ec565b348015610550575f80fd5b506102fa60ca5481565b348015610565575f80fd5b506102ae611854565b348015610579575f80fd5b506065546001600160a01b03165b6040516001600160a01b039091168152602001610304565b3480156105aa575f80fd5b506102fa611864565b3480156105be575f80fd5b506102ae6105cd366004612a8b565b6118f1565b3480156105dd575f80fd5b506102fa60cd5481565b3480156105f2575f80fd5b506102ae610601366004612ce8565b611904565b348015610611575f80fd5b5061034c610620366004612aab565b611919565b348015610630575f80fd5b506102fa61063f366004612aab565b611dd8565b34801561064f575f80fd5b5061034c61065e366004612d1a565b61210a565b34801561066e575f80fd5b5061068261067d366004612aab565b612275565b6040516103049190612d43565b34801561069a575f80fd5b506102fa6106a9366004612aab565b6122df565b3480156106b9575f80fd5b5060da54610587906001600160a01b031681565b3480156106d8575f80fd5b506106826122fe565b3480156106ec575f80fd5b506102ae6106fb366004612a72565b612354565b34801561070b575f80fd5b506102fa60d25481565b348015610720575f80fd5b506102fa61072f366004612aab565b6123cd565b34801561073f575f80fd5b5060d754610587906001600160a01b031681565b34801561075e575f80fd5b506102fa61076d366004612a8b565b6123dc565b34801561077d575f80fd5b506102fa60d35481565b348015610792575f80fd5b506102ae6107a1366004612a72565b61240b565b3480156107b1575f80fd5b506102ae6107c03660046129c9565b612484565b3480156107d0575f80fd5b5060d954610587906001600160a01b031681565b3480156107ef575f80fd5b5060d854610587906001600160a01b031681565b61080b6124fa565b5f5b8181101561087a57600160dc5f85858581811061082c5761082c612d7a565b90506020020160208101906108419190612a72565b6001600160a01b0316815260208101919091526040015f20805460ff19169115159190911790558061087281612da2565b91505061080d565b505050565b6108876124fa565b60d78054911515600160a01b0260ff60a01b19909216919091179055565b6108ad6124fa565b5f8211806108ba57505f81115b6109005760405162461bcd60e51b8152602060048201526012602482015271496e76616c696420706172616d657465727360701b60448201526064015b60405180910390fd5b81156109e55760ca54421061094e5760405162461bcd60e51b815260206004820152601460248201527314d85b1948185b1c9958591e481cdd185c9d195960621b60448201526064016108f7565b8142106109915760405162461bcd60e51b815260206004820152601160248201527014d85b19481d1a5b59481a5b881c185cdd607a1b60448201526064016108f7565b60ca8054908390556040805182815260208101859052428183015290516414d510549560da1b917fddd2ed237e6993c9380182683f2c8bec486aaaa429528852cd74dbdb96cea0b2919081900360600190a2505b8015610ac65760cb544210610a315760405162461bcd60e51b815260206004820152601260248201527114d85b1948185b1c9958591e48195b99195960721b60448201526064016108f7565b60ca548111610a745760405162461bcd60e51b815260206004820152600f60248201526e496e76616c696420656e6454696d6560881b60448201526064016108f7565b60cb8054908290556040805182815260208101849052428183015290516211539160ea1b917fddd2ed237e6993c9380182683f2c8bec486aaaa429528852cd74dbdb96cea0b2919081900360600190a2505b5050565b610ad26124fa565b60d655565b610adf6124fa565b5f8111610b2e5760405162461bcd60e51b815260206004820152601c60248201527f5a65726f206d617820746f6b656e7320746f206275792076616c75650000000060448201526064016108f7565b60cd8054908290556040805182815260208101849052428183015290517f76f9e5e1f6af6a9f180708b77a5c99210fbf19b91f1f194f3918c262b8edf77c9181900360600190a15050565b5f80610b8483611dd8565b9050610b8e611864565b60cc54610b9b9083612dba565b610ba59190612dd1565b9392505050565b5f610bb56124fa565b60cf548510610bf65760405162461bcd60e51b815260206004820152600d60248201526c0d2dcecc2d8d2c840d2dcc8caf609b1b60448201526064016108f7565b8315610c1e578360cf5f018681548110610c1257610c12612d7a565b5f918252602090912001555b8215610c47578260cf6001018681548110610c3b57610c3b612d7a565b5f918252602090912001555b8115610c70578160cf6002018681548110610c6457610c64612d7a565b5f918252602090912001555b506001949350505050565b610c836124fa565b610c8b612554565b565b5f8160ca544210158015610ca3575060cb544211155b610cbf5760405162461bcd60e51b81526004016108f790612df0565b5f8111610cde5760405162461bcd60e51b81526004016108f790612e27565b610ce66125a6565b610cee6125ec565b335f90815260dc602052604090205460ff16610d4c5760405162461bcd60e51b815260206004820181905260248201527f55736572206e6f742077686974656c697374656420666f72207468697320747860448201526064016108f7565b5f610d5684611dd8565b90505f610d61611864565b60cc54610d6e9084612dba565b610d789190612dd1565b905080341015610db95760405162461bcd60e51b815260206004820152600c60248201526b13195cdcc81c185e5b595b9d60a21b60448201526064016108f7565b5f610dc48234612e54565b90508560c95f828254610dd79190612e67565b909155505060d25415610dfb578560d25f828254610df59190612e67565b90915550505b5f60d25460c95411610e0f5760d254610e13565b60c9545b905060cf5f0160ce5481548110610e2c57610e2c612d7a565b905f5260205f200154811180610e62575060cf60020160ce5481548110610e5557610e55612d7a565b905f5260205f2001544210155b15610f885760cf60020160ce5481548110610e7f57610e7f612d7a565b905f5260205f2001544210610ec1578660cf5f0160ce5481548110610ea657610ea6612d7a565b905f5260205f200154610eb99190612e67565b60d255610edb565b60d754600160a01b900460ff1615610edb57610edb612645565b5f60cf810160ce5481548110610ef357610ef3612d7a565b905f5260205f2001548211610f32578160cf5f0160ce5481548110610f1a57610f1a612d7a565b905f5260205f200154610f2d9190612e54565b610f34565b5f5b60d58054600181810183555f9283527f51858de9989bf7441865ebdadbf7382c8838edbf830f5d86a9a51ac773676dd690910183905560ce80549394509092909190610f81908490612e67565b9091555050505b60cc54610f959088612dba565b6001600160a01b0389165f90815260db602052604081208054909190610fbc908490612e67565b925050819055508360d35f828254610fd49190612e67565b909155505060d754610fef906001600160a01b0316846126b3565b8115610fff57610fff88836126b3565b6040805184815260208101869052428183015290515f9189916001600160a01b038c16917f4d8aead3491b7eba4b5c7a65fc17e493b9e63f9e433522fc5f6a85a168fc9d36919081900360600190a4600195505050505061105f60018055565b5092915050565b5f54610100900460ff161580801561108457505f54600160ff909116105b8061109d5750303b15801561109d57505f5460ff166001145b6111005760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b60648201526084016108f7565b5f805460ff191660011790558015611121575f805461ff0019166101001790555b6001600160a01b0388166111775760405162461bcd60e51b815260206004820152601760248201527f5a65726f2061676772656761746f72206164647265737300000000000000000060448201526064016108f7565b6001600160a01b0387166111c15760405162461bcd60e51b81526020600482015260116024820152705a65726f2055534454206164647265737360781b60448201526064016108f7565b42861180156111cf57508585115b61120a5760405162461bcd60e51b815260206004820152600c60248201526b496e76616c69642074696d6560a01b60448201526064016108f7565b61121261278b565b61121a6127bd565b6112226127ec565b670de0b6b3a764000060cc5560da80546001600160a01b03808b166001600160a01b03199283161790925560d98054928a169290911691909117905560ca86905560cb85905561127560cf8560036128e9565b5060cd83905560d780546001600160a01b0319166001600160a01b03841617905560ca5460cb5460408051928352602083019190915242908201527f23f6ad8232d75562dd1c6b37dfc895af6bfc1ecd0fb3b88722c6a5e6b4dc9a209060600160405180910390a18015611322575f805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b5050505050505050565b5f61133682611dd8565b905061134764e8d4a5100082612dd1565b92915050565b60d8546001600160a01b031633148061137057506065546001600160a01b031633145b6113bc5760405162461bcd60e51b815260206004820152601960248201527f63616c6c6572206e6f742061646d696e206f72206f776e65720000000000000060448201526064016108f7565b60d25460d480546001810182555f919091527f9780e26d96b1f2a9a18ef8fc72d589dbf03ef788137b64f43897e83a91e7feec015560d754600160a01b900460ff161561140b5761140b612645565b60cf5f0160ce548154811061142257611422612d7a565b905f5260205f20015460d254101561149b5760d25460d59060cf5f0160ce548154811061145157611451612d7a565b905f5260205f2001546114649190612e54565b81546001810183555f92835260208320015560cf0160ce548154811061148c5761148c612d7a565b5f9182526020909120015460d2555b60ce8054905f6114aa83612da2565b9190505550565b6114b96124fa565b60d880546001600160a01b0319166001600160a01b0392909216919091179055565b6114e36124fa565b610c8b5f612812565b5f8160ca544210158015611502575060cb544211155b61151e5760405162461bcd60e51b81526004016108f790612df0565b5f811161153d5760405162461bcd60e51b81526004016108f790612e27565b6115456125a6565b61154d6125ec565b5f61155784611dd8565b90505f611562611864565b60cc5461156f9084612dba565b6115799190612dd1565b9050803410156115ba5760405162461bcd60e51b815260206004820152600c60248201526b13195cdcc81c185e5b595b9d60a21b60448201526064016108f7565b5f6115c58234612e54565b90508560c95f8282546115d89190612e67565b909155505060d254156115fc578560d25f8282546115f69190612e67565b90915550505b5f60d25460c954116116105760d254611614565b60c9545b905060cf5f0160ce548154811061162d5761162d612d7a565b905f5260205f200154811180611663575060cf60020160ce548154811061165657611656612d7a565b905f5260205f2001544210155b156117895760cf60020160ce548154811061168057611680612d7a565b905f5260205f20015442106116c2578660cf5f0160ce54815481106116a7576116a7612d7a565b905f5260205f2001546116ba9190612e67565b60d2556116dc565b60d754600160a01b900460ff16156116dc576116dc612645565b5f60cf810160ce54815481106116f4576116f4612d7a565b905f5260205f2001548211611733578160cf5f0160ce548154811061171b5761171b612d7a565b905f5260205f20015461172e9190612e54565b611735565b5f5b60d58054600181810183555f9283527f51858de9989bf7441865ebdadbf7382c8838edbf830f5d86a9a51ac773676dd690910183905560ce80549394509092909190611782908490612e67565b9091555050505b60cc546117969088612dba565b335f90815260db6020526040812080549091906117b4908490612e67565b925050819055508360d35f8282546117cc9190612e67565b909155505060d7546117e7906001600160a01b0316846126b3565b81156117f7576117f733836126b3565b6040805184815260208101869052428183015290515f91899133917f4d8aead3491b7eba4b5c7a65fc17e493b9e63f9e433522fc5f6a85a168fc9d36919081900360600190a4600195505050505061184e60018055565b50919050565b61185c6124fa565b610c8b612863565b5f8060da5f9054906101000a90046001600160a01b03166001600160a01b031663feaf968c6040518163ffffffff1660e01b815260040160a060405180830381865afa1580156118b6573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906118da9190612e93565b505050915050806402540be4006113479190612edf565b6118f96124fa565b60ce9190915560d255565b61190c6124fa565b610ac660cf8260036128e9565b5f8160ca54421015801561192f575060cb544211155b61194b5760405162461bcd60e51b81526004016108f790612df0565b5f811161196a5760405162461bcd60e51b81526004016108f790612e27565b6119726125a6565b5f61197c84611dd8565b90508360c95f82825461198f9190612e67565b909155505060d254156119b3578360d25f8282546119ad9190612e67565b90915550505b5f60d25460c954116119c75760d2546119cb565b60c9545b905060cf5f0160ce54815481106119e4576119e4612d7a565b905f5260205f200154811180611a1a575060cf60020160ce5481548110611a0d57611a0d612d7a565b905f5260205f2001544210155b15611b405760cf60020160ce5481548110611a3757611a37612d7a565b905f5260205f2001544210611a79578460cf5f0160ce5481548110611a5e57611a5e612d7a565b905f5260205f200154611a719190612e67565b60d255611a93565b60d754600160a01b900460ff1615611a9357611a93612645565b5f60cf810160ce5481548110611aab57611aab612d7a565b905f5260205f2001548211611aea578160cf5f0160ce5481548110611ad257611ad2612d7a565b905f5260205f200154611ae59190612e54565b611aec565b5f5b60d58054600181810183555f9283527f51858de9989bf7441865ebdadbf7382c8838edbf830f5d86a9a51ac773676dd690910183905560ce80549394509092909190611b39908490612e67565b9091555050505b60cc54611b4d9086612dba565b335f90815260db602052604081208054909190611b6b908490612e67565b925050819055508160d35f828254611b839190612e67565b909155505060d9545f906001600160a01b031663dd62ed3e336040516001600160e01b031960e084901b1681526001600160a01b039091166004820152306024820152604401602060405180830381865afa158015611be4573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611c089190612f0e565b90505f611c1a64e8d4a5100085612dd1565b905081811115611c765760405162461bcd60e51b815260206004820152602160248201527f4d616b65207375726520746f2061646420656e6f75676820616c6c6f77616e636044820152606560f81b60648201526084016108f7565b60d9545f906001600160a01b03163360d7546040516001600160a01b039283166024820152911660448201526064810184905260840160408051601f198184030181529181526020820180516001600160e01b03166323b872dd60e01b17905251611ce19190612f25565b5f604051808303815f865af19150503d805f8114611d1a576040519150601f19603f3d011682016040523d82523d5f602084013e611d1f565b606091505b5050905080611d675760405162461bcd60e51b8152602060048201526014602482015273151bdad95b881c185e5b595b9d0819985a5b195960621b60448201526064016108f7565b60d9546001600160a01b031688336001600160a01b03167f4d8aead3491b7eba4b5c7a65fc17e493b9e63f9e433522fc5f6a85a168fc9d36858942604051611dc2939291909283526020830191909152604082015260600190565b60405180910390a4506001979650505050505050565b5f805f60d2545f14611dec5760d254611df0565b60c9545b905060cd54841115611e445760405162461bcd60e51b815260206004820181905260248201527f416d6f756e742065786365656473206d617820746f6b656e7320746f2062757960448201526064016108f7565b60cf5f0160ce5481548110611e5b57611e5b612d7a565b905f5260205f2001548185611e709190612e67565b1180611e9c575060cf60020160ce5481548110611e8f57611e8f612d7a565b905f5260205f2001544210155b156120d65760cf54611eb090600190612e54565b60ce5410611eef5760405162461bcd60e51b815260206004820152600c60248201526b57726f6e6720706172616d7360a01b60448201526064016108f7565b60cf60020160ce5481548110611f0757611f07612d7a565b905f5260205f2001544210611fd55760ce5460cf90611f27906001612e67565b81548110611f3757611f37612d7a565b905f5260205f2001548460cf5f60038110611f5457611f54612d7a565b0160ce5481548110611f6857611f68612d7a565b905f5260205f200154611f7b9190612e67565b1115611f995760405162461bcd60e51b81526004016108f790612f51565b60ce5460d090611faa906001612e67565b81548110611fba57611fba612d7a565b905f5260205f20015484611fce9190612dba565b915061105f565b60ce5460cf90611fe6906001612e67565b81548110611ff657611ff6612d7a565b905f5260205f200154848261200b9190612e67565b11156120295760405162461bcd60e51b81526004016108f790612f51565b5f8160cf820160ce548154811061204257612042612d7a565b905f5260205f2001546120559190612e54565b60ce5490915060d090612069906001612e67565b8154811061207957612079612d7a565b905f5260205f200154818661208e9190612e54565b6120989190612dba565b60cf60010160ce54815481106120b0576120b0612d7a565b905f5260205f200154826120c49190612dba565b6120ce9190612e67565b92505061105f565b60cf60010160ce54815481106120ee576120ee612d7a565b905f5260205f200154846121029190612dba565b949350505050565b5f6121136124fa565b5f84116121595760405162461bcd60e51b8152602060048201526014602482015273696e76616c6964206e6f206f6620746f6b656e7360601b60448201526064016108f7565b5f831161219c5760405162461bcd60e51b8152602060048201526011602482015270696e76616c6964206e657720707269636560781b60448201526064016108f7565b5f82116121de5760405162461bcd60e51b815260206004820152601060248201526f696e76616c6964206e65772074696d6560801b60448201526064016108f7565b5060cf805460018082019092557facb8d954e2cfef495862221e91bd7523613cf8808827cb33edfe4904cc51bf29019390935560d080548085019091557fe89d44c8fd6a9bac8af33ce47f56337617d449bf7ff3956b618c646de829cbcb019190915560d1805480840182555f919091527f695fb3134ad82c3b8022bc5464edd0bcc9424ef672b52245dcb6ab2374327ce3015590565b606060cf826003811061228a5761228a612d7a565b018054806020026020016040519081016040528092919081815260200182805480156122d357602002820191905f5260205f20905b8154815260200190600101908083116122bf575b50505050509050919050565b60d581815481106122ee575f80fd5b5f91825260209091200154905081565b606060d580548060200260200160405190810160405280929190818152602001828054801561234a57602002820191905f5260205f20905b815481526020019060010190808311612336575b5050505050905090565b61235c6124fa565b6001600160a01b0381166123ab5760405162461bcd60e51b8152602060048201526016602482015275616464726573732063616e6e6f74206265207a65726f60501b60448201526064016108f7565b60d780546001600160a01b0319166001600160a01b0392909216919091179055565b60d481815481106122ee575f80fd5b60cf82600381106123eb575f80fd5b0181815481106123f9575f80fd5b905f5260205f20015f91509150505481565b6124136124fa565b6001600160a01b0381166124785760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016108f7565b61248181612812565b50565b61248c6124fa565b5f5b8181101561087a575f60dc5f8585858181106124ac576124ac612d7a565b90506020020160208101906124c19190612a72565b6001600160a01b0316815260208101919091526040015f20805460ff1916911515919091179055806124f281612da2565b91505061248e565b6065546001600160a01b03163314610c8b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016108f7565b61255c6128a0565b6097805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b60975460ff1615610c8b5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b60448201526064016108f7565b60026001540361263e5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016108f7565b6002600155565b5f5b60ce5460d1546126579190612e54565b8110156124815760d65461266b9082612dba565b6126759042612e67565b60ce5460d190612686908490612e67565b8154811061269657612696612d7a565b5f91825260209091200155806126ab81612da2565b915050612647565b804710156126f15760405162461bcd60e51b815260206004820152600b60248201526a4c6f772062616c616e636560a81b60448201526064016108f7565b5f826001600160a01b0316826040515f6040518083038185875af1925050503d805f811461273a576040519150601f19603f3d011682016040523d82523d5f602084013e61273f565b606091505b505090508061087a5760405162461bcd60e51b81526020600482015260126024820152711155120814185e5b595b9d0819985a5b195960721b60448201526064016108f7565b60018055565b5f54610100900460ff166127b15760405162461bcd60e51b81526004016108f790612f94565b6097805460ff19169055565b5f54610100900460ff166127e35760405162461bcd60e51b81526004016108f790612f94565b610c8b33612812565b5f54610100900460ff166127855760405162461bcd60e51b81526004016108f790612f94565b606580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b61286b6125a6565b6097805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586125893390565b60975460ff16610c8b5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b60448201526064016108f7565b8260038101928215612929579160200282015b828111156129295782518051612919918491602090910190612939565b50916020019190600101906128fc565b5061293592915061297e565b5090565b828054828255905f5260205f20908101928215612972579160200282015b82811115612972578251825591602001919060010190612957565b5061293592915061299a565b80821115612935575f61299182826129ae565b5060010161297e565b5b80821115612935575f815560010161299b565b5080545f8255905f5260205f2090810190612481919061299a565b5f80602083850312156129da575f80fd5b823567ffffffffffffffff808211156129f1575f80fd5b818501915085601f830112612a04575f80fd5b813581811115612a12575f80fd5b8660208260051b8501011115612a26575f80fd5b60209290920196919550909350505050565b5f60208284031215612a48575f80fd5b81358015158114610ba5575f80fd5b80356001600160a01b0381168114612a6d575f80fd5b919050565b5f60208284031215612a82575f80fd5b610ba582612a57565b5f8060408385031215612a9c575f80fd5b50508035926020909101359150565b5f60208284031215612abb575f80fd5b5035919050565b5f805f8060808587031215612ad5575f80fd5b5050823594602084013594506040840135936060013592509050565b5f8060408385031215612b02575f80fd5b612b0b83612a57565b946020939093013593505050565b634e487b7160e01b5f52604160045260245ffd5b6040516060810167ffffffffffffffff81118282101715612b5057612b50612b19565b60405290565b604051601f8201601f1916810167ffffffffffffffff81118282101715612b7f57612b7f612b19565b604052919050565b5f601f8381840112612b97575f80fd5b612b9f612b2d565b806060850186811115612bb0575f80fd5b855b81811015612c5657803567ffffffffffffffff80821115612bd2575f8081fd5b81890191508987830112612be5575f8081fd5b8135602082821115612bf957612bf9612b19565b8160051b9250612c0a818401612b56565b828152928401810192818101908d851115612c26575f93508384fd5b948201945b84861015612c4457853582529482019490820190612c2b565b89525090960195505050602001612bb2565b50909695505050505050565b5f805f805f805f60e0888a031215612c78575f80fd5b612c8188612a57565b9650612c8f60208901612a57565b95506040880135945060608801359350608088013567ffffffffffffffff811115612cb8575f80fd5b612cc48a828b01612b87565b93505060a08801359150612cda60c08901612a57565b905092959891949750929550565b5f60208284031215612cf8575f80fd5b813567ffffffffffffffff811115612d0e575f80fd5b61210284828501612b87565b5f805f60608486031215612d2c575f80fd5b505081359360208301359350604090920135919050565b602080825282518282018190525f9190848201906040850190845b81811015612c5657835183529284019291840191600101612d5e565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52601160045260245ffd5b5f60018201612db357612db3612d8e565b5060010190565b808202811582820484141761134757611347612d8e565b5f82612deb57634e487b7160e01b5f52601260045260245ffd5b500490565b60208082526017908201527f496e76616c69642074696d6520666f7220627579696e67000000000000000000604082015260600190565b602080825260139082015272125b9d985b1a59081cd85b1948185b5bdd5b9d606a1b604082015260600190565b8181038181111561134757611347612d8e565b8082018082111561134757611347612d8e565b805169ffffffffffffffffffff81168114612a6d575f80fd5b5f805f805f60a08688031215612ea7575f80fd5b612eb086612e7a565b9450602086015193506040860151925060608601519150612ed360808701612e7a565b90509295509295909350565b8082025f8212600160ff1b84141615612efa57612efa612d8e565b818105831482151761134757611347612d8e565b5f60208284031215612f1e575f80fd5b5051919050565b5f82515f5b81811015612f445760208186018101518583015201612f2a565b505f920191825250919050565b60208082526023908201527f43616e74205075726368617365204d6f726520696e20696e646976696475616c604082015262040e8f60eb1b606082015260800190565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b60608201526080019056fea2646970667358221220cafbccabd3fe77e7a40b9fb2b70d354dd32ee21d32ccb66b80b51ddf74ff664264736f6c63430008150033
Deployed Bytecode
0x60806040526004361061028b575f3560e01c806378e9792511610155578063c49cc645116100be578063e6da921311610078578063e6da921314610753578063eadd94ec14610772578063f2fde38b14610787578063f4463743146107a6578063f597573f146107c5578063f851a440146107e4575f80fd5b8063c49cc645146106ae578063c8adff01146106cd578063cad00556146106e1578063cff805ab14610700578063e19648db14610715578063e32204dd14610734575f80fd5b8063a6d42e4e1161010f578063a6d42e4e146105e7578063a7c6016014610606578063ae10426514610625578063b025384714610644578063ba166a3914610663578063c23326f31461068f575f80fd5b806378e97925146105455780638456cb591461055a5780638da5cb5b1461056e5780638e15f4731461059f5780639a89c1fb146105b35780639cfa0f7c146105d2575f80fd5b806343568eae116101f757806363b20117116101b157806363b20117146104b757806363e40879146104cc578063641046f4146104eb578063704b6c02146104ff578063715018a61461051e5780637649b95714610532575f80fd5b806343568eae146104165780635173ffaa1461042b57806357405d051461043e5780635bc34f711461045d5780635c975abb146104725780635df4f35314610489575f80fd5b8063278c278b11610248578063278c278b1461037b57806329a5a0b61461039a5780633197cbb6146103b957806333f76178146103ce5780633d9c8d8b146103e35780633f4ba83a14610402575f80fd5b806303b9c5ad1461028f5780630a200fc7146102b05780630ba36dcd146102cf5780630dc9c8381461030d5780631fa2bc921461032c57806323a8f1c01461035c575b5f80fd5b34801561029a575f80fd5b506102ae6102a93660046129c9565b610803565b005b3480156102bb575f80fd5b506102ae6102ca366004612a38565b61087f565b3480156102da575f80fd5b506102fa6102e9366004612a72565b60db6020525f908152604090205481565b6040519081526020015b60405180910390f35b348015610318575f80fd5b506102ae610327366004612a8b565b6108a5565b348015610337575f80fd5b5060d75461034c90600160a01b900460ff1681565b6040519015158152602001610304565b348015610367575f80fd5b506102ae610376366004612aab565b610aca565b348015610386575f80fd5b506102ae610395366004612aab565b610ad7565b3480156103a5575f80fd5b506102fa6103b4366004612aab565b610b79565b3480156103c4575f80fd5b506102fa60cb5481565b3480156103d9575f80fd5b506102fa60cc5481565b3480156103ee575f80fd5b5061034c6103fd366004612ac2565b610bac565b34801561040d575f80fd5b506102ae610c7b565b348015610421575f80fd5b506102fa60d65481565b61034c610439366004612af1565b610c8d565b348015610449575f80fd5b506102ae610458366004612c62565b611066565b348015610468575f80fd5b506102fa60ce5481565b34801561047d575f80fd5b5060975460ff1661034c565b348015610494575f80fd5b5061034c6104a3366004612a72565b60dc6020525f908152604090205460ff1681565b3480156104c2575f80fd5b506102fa60c95481565b3480156104d7575f80fd5b506102fa6104e6366004612aab565b61132c565b3480156104f6575f80fd5b506102ae61134d565b34801561050a575f80fd5b506102ae610519366004612a72565b6114b1565b348015610529575f80fd5b506102ae6114db565b61034c610540366004612aab565b6114ec565b348015610550575f80fd5b506102fa60ca5481565b348015610565575f80fd5b506102ae611854565b348015610579575f80fd5b506065546001600160a01b03165b6040516001600160a01b039091168152602001610304565b3480156105aa575f80fd5b506102fa611864565b3480156105be575f80fd5b506102ae6105cd366004612a8b565b6118f1565b3480156105dd575f80fd5b506102fa60cd5481565b3480156105f2575f80fd5b506102ae610601366004612ce8565b611904565b348015610611575f80fd5b5061034c610620366004612aab565b611919565b348015610630575f80fd5b506102fa61063f366004612aab565b611dd8565b34801561064f575f80fd5b5061034c61065e366004612d1a565b61210a565b34801561066e575f80fd5b5061068261067d366004612aab565b612275565b6040516103049190612d43565b34801561069a575f80fd5b506102fa6106a9366004612aab565b6122df565b3480156106b9575f80fd5b5060da54610587906001600160a01b031681565b3480156106d8575f80fd5b506106826122fe565b3480156106ec575f80fd5b506102ae6106fb366004612a72565b612354565b34801561070b575f80fd5b506102fa60d25481565b348015610720575f80fd5b506102fa61072f366004612aab565b6123cd565b34801561073f575f80fd5b5060d754610587906001600160a01b031681565b34801561075e575f80fd5b506102fa61076d366004612a8b565b6123dc565b34801561077d575f80fd5b506102fa60d35481565b348015610792575f80fd5b506102ae6107a1366004612a72565b61240b565b3480156107b1575f80fd5b506102ae6107c03660046129c9565b612484565b3480156107d0575f80fd5b5060d954610587906001600160a01b031681565b3480156107ef575f80fd5b5060d854610587906001600160a01b031681565b61080b6124fa565b5f5b8181101561087a57600160dc5f85858581811061082c5761082c612d7a565b90506020020160208101906108419190612a72565b6001600160a01b0316815260208101919091526040015f20805460ff19169115159190911790558061087281612da2565b91505061080d565b505050565b6108876124fa565b60d78054911515600160a01b0260ff60a01b19909216919091179055565b6108ad6124fa565b5f8211806108ba57505f81115b6109005760405162461bcd60e51b8152602060048201526012602482015271496e76616c696420706172616d657465727360701b60448201526064015b60405180910390fd5b81156109e55760ca54421061094e5760405162461bcd60e51b815260206004820152601460248201527314d85b1948185b1c9958591e481cdd185c9d195960621b60448201526064016108f7565b8142106109915760405162461bcd60e51b815260206004820152601160248201527014d85b19481d1a5b59481a5b881c185cdd607a1b60448201526064016108f7565b60ca8054908390556040805182815260208101859052428183015290516414d510549560da1b917fddd2ed237e6993c9380182683f2c8bec486aaaa429528852cd74dbdb96cea0b2919081900360600190a2505b8015610ac65760cb544210610a315760405162461bcd60e51b815260206004820152601260248201527114d85b1948185b1c9958591e48195b99195960721b60448201526064016108f7565b60ca548111610a745760405162461bcd60e51b815260206004820152600f60248201526e496e76616c696420656e6454696d6560881b60448201526064016108f7565b60cb8054908290556040805182815260208101849052428183015290516211539160ea1b917fddd2ed237e6993c9380182683f2c8bec486aaaa429528852cd74dbdb96cea0b2919081900360600190a2505b5050565b610ad26124fa565b60d655565b610adf6124fa565b5f8111610b2e5760405162461bcd60e51b815260206004820152601c60248201527f5a65726f206d617820746f6b656e7320746f206275792076616c75650000000060448201526064016108f7565b60cd8054908290556040805182815260208101849052428183015290517f76f9e5e1f6af6a9f180708b77a5c99210fbf19b91f1f194f3918c262b8edf77c9181900360600190a15050565b5f80610b8483611dd8565b9050610b8e611864565b60cc54610b9b9083612dba565b610ba59190612dd1565b9392505050565b5f610bb56124fa565b60cf548510610bf65760405162461bcd60e51b815260206004820152600d60248201526c0d2dcecc2d8d2c840d2dcc8caf609b1b60448201526064016108f7565b8315610c1e578360cf5f018681548110610c1257610c12612d7a565b5f918252602090912001555b8215610c47578260cf6001018681548110610c3b57610c3b612d7a565b5f918252602090912001555b8115610c70578160cf6002018681548110610c6457610c64612d7a565b5f918252602090912001555b506001949350505050565b610c836124fa565b610c8b612554565b565b5f8160ca544210158015610ca3575060cb544211155b610cbf5760405162461bcd60e51b81526004016108f790612df0565b5f8111610cde5760405162461bcd60e51b81526004016108f790612e27565b610ce66125a6565b610cee6125ec565b335f90815260dc602052604090205460ff16610d4c5760405162461bcd60e51b815260206004820181905260248201527f55736572206e6f742077686974656c697374656420666f72207468697320747860448201526064016108f7565b5f610d5684611dd8565b90505f610d61611864565b60cc54610d6e9084612dba565b610d789190612dd1565b905080341015610db95760405162461bcd60e51b815260206004820152600c60248201526b13195cdcc81c185e5b595b9d60a21b60448201526064016108f7565b5f610dc48234612e54565b90508560c95f828254610dd79190612e67565b909155505060d25415610dfb578560d25f828254610df59190612e67565b90915550505b5f60d25460c95411610e0f5760d254610e13565b60c9545b905060cf5f0160ce5481548110610e2c57610e2c612d7a565b905f5260205f200154811180610e62575060cf60020160ce5481548110610e5557610e55612d7a565b905f5260205f2001544210155b15610f885760cf60020160ce5481548110610e7f57610e7f612d7a565b905f5260205f2001544210610ec1578660cf5f0160ce5481548110610ea657610ea6612d7a565b905f5260205f200154610eb99190612e67565b60d255610edb565b60d754600160a01b900460ff1615610edb57610edb612645565b5f60cf810160ce5481548110610ef357610ef3612d7a565b905f5260205f2001548211610f32578160cf5f0160ce5481548110610f1a57610f1a612d7a565b905f5260205f200154610f2d9190612e54565b610f34565b5f5b60d58054600181810183555f9283527f51858de9989bf7441865ebdadbf7382c8838edbf830f5d86a9a51ac773676dd690910183905560ce80549394509092909190610f81908490612e67565b9091555050505b60cc54610f959088612dba565b6001600160a01b0389165f90815260db602052604081208054909190610fbc908490612e67565b925050819055508360d35f828254610fd49190612e67565b909155505060d754610fef906001600160a01b0316846126b3565b8115610fff57610fff88836126b3565b6040805184815260208101869052428183015290515f9189916001600160a01b038c16917f4d8aead3491b7eba4b5c7a65fc17e493b9e63f9e433522fc5f6a85a168fc9d36919081900360600190a4600195505050505061105f60018055565b5092915050565b5f54610100900460ff161580801561108457505f54600160ff909116105b8061109d5750303b15801561109d57505f5460ff166001145b6111005760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b60648201526084016108f7565b5f805460ff191660011790558015611121575f805461ff0019166101001790555b6001600160a01b0388166111775760405162461bcd60e51b815260206004820152601760248201527f5a65726f2061676772656761746f72206164647265737300000000000000000060448201526064016108f7565b6001600160a01b0387166111c15760405162461bcd60e51b81526020600482015260116024820152705a65726f2055534454206164647265737360781b60448201526064016108f7565b42861180156111cf57508585115b61120a5760405162461bcd60e51b815260206004820152600c60248201526b496e76616c69642074696d6560a01b60448201526064016108f7565b61121261278b565b61121a6127bd565b6112226127ec565b670de0b6b3a764000060cc5560da80546001600160a01b03808b166001600160a01b03199283161790925560d98054928a169290911691909117905560ca86905560cb85905561127560cf8560036128e9565b5060cd83905560d780546001600160a01b0319166001600160a01b03841617905560ca5460cb5460408051928352602083019190915242908201527f23f6ad8232d75562dd1c6b37dfc895af6bfc1ecd0fb3b88722c6a5e6b4dc9a209060600160405180910390a18015611322575f805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b5050505050505050565b5f61133682611dd8565b905061134764e8d4a5100082612dd1565b92915050565b60d8546001600160a01b031633148061137057506065546001600160a01b031633145b6113bc5760405162461bcd60e51b815260206004820152601960248201527f63616c6c6572206e6f742061646d696e206f72206f776e65720000000000000060448201526064016108f7565b60d25460d480546001810182555f919091527f9780e26d96b1f2a9a18ef8fc72d589dbf03ef788137b64f43897e83a91e7feec015560d754600160a01b900460ff161561140b5761140b612645565b60cf5f0160ce548154811061142257611422612d7a565b905f5260205f20015460d254101561149b5760d25460d59060cf5f0160ce548154811061145157611451612d7a565b905f5260205f2001546114649190612e54565b81546001810183555f92835260208320015560cf0160ce548154811061148c5761148c612d7a565b5f9182526020909120015460d2555b60ce8054905f6114aa83612da2565b9190505550565b6114b96124fa565b60d880546001600160a01b0319166001600160a01b0392909216919091179055565b6114e36124fa565b610c8b5f612812565b5f8160ca544210158015611502575060cb544211155b61151e5760405162461bcd60e51b81526004016108f790612df0565b5f811161153d5760405162461bcd60e51b81526004016108f790612e27565b6115456125a6565b61154d6125ec565b5f61155784611dd8565b90505f611562611864565b60cc5461156f9084612dba565b6115799190612dd1565b9050803410156115ba5760405162461bcd60e51b815260206004820152600c60248201526b13195cdcc81c185e5b595b9d60a21b60448201526064016108f7565b5f6115c58234612e54565b90508560c95f8282546115d89190612e67565b909155505060d254156115fc578560d25f8282546115f69190612e67565b90915550505b5f60d25460c954116116105760d254611614565b60c9545b905060cf5f0160ce548154811061162d5761162d612d7a565b905f5260205f200154811180611663575060cf60020160ce548154811061165657611656612d7a565b905f5260205f2001544210155b156117895760cf60020160ce548154811061168057611680612d7a565b905f5260205f20015442106116c2578660cf5f0160ce54815481106116a7576116a7612d7a565b905f5260205f2001546116ba9190612e67565b60d2556116dc565b60d754600160a01b900460ff16156116dc576116dc612645565b5f60cf810160ce54815481106116f4576116f4612d7a565b905f5260205f2001548211611733578160cf5f0160ce548154811061171b5761171b612d7a565b905f5260205f20015461172e9190612e54565b611735565b5f5b60d58054600181810183555f9283527f51858de9989bf7441865ebdadbf7382c8838edbf830f5d86a9a51ac773676dd690910183905560ce80549394509092909190611782908490612e67565b9091555050505b60cc546117969088612dba565b335f90815260db6020526040812080549091906117b4908490612e67565b925050819055508360d35f8282546117cc9190612e67565b909155505060d7546117e7906001600160a01b0316846126b3565b81156117f7576117f733836126b3565b6040805184815260208101869052428183015290515f91899133917f4d8aead3491b7eba4b5c7a65fc17e493b9e63f9e433522fc5f6a85a168fc9d36919081900360600190a4600195505050505061184e60018055565b50919050565b61185c6124fa565b610c8b612863565b5f8060da5f9054906101000a90046001600160a01b03166001600160a01b031663feaf968c6040518163ffffffff1660e01b815260040160a060405180830381865afa1580156118b6573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906118da9190612e93565b505050915050806402540be4006113479190612edf565b6118f96124fa565b60ce9190915560d255565b61190c6124fa565b610ac660cf8260036128e9565b5f8160ca54421015801561192f575060cb544211155b61194b5760405162461bcd60e51b81526004016108f790612df0565b5f811161196a5760405162461bcd60e51b81526004016108f790612e27565b6119726125a6565b5f61197c84611dd8565b90508360c95f82825461198f9190612e67565b909155505060d254156119b3578360d25f8282546119ad9190612e67565b90915550505b5f60d25460c954116119c75760d2546119cb565b60c9545b905060cf5f0160ce54815481106119e4576119e4612d7a565b905f5260205f200154811180611a1a575060cf60020160ce5481548110611a0d57611a0d612d7a565b905f5260205f2001544210155b15611b405760cf60020160ce5481548110611a3757611a37612d7a565b905f5260205f2001544210611a79578460cf5f0160ce5481548110611a5e57611a5e612d7a565b905f5260205f200154611a719190612e67565b60d255611a93565b60d754600160a01b900460ff1615611a9357611a93612645565b5f60cf810160ce5481548110611aab57611aab612d7a565b905f5260205f2001548211611aea578160cf5f0160ce5481548110611ad257611ad2612d7a565b905f5260205f200154611ae59190612e54565b611aec565b5f5b60d58054600181810183555f9283527f51858de9989bf7441865ebdadbf7382c8838edbf830f5d86a9a51ac773676dd690910183905560ce80549394509092909190611b39908490612e67565b9091555050505b60cc54611b4d9086612dba565b335f90815260db602052604081208054909190611b6b908490612e67565b925050819055508160d35f828254611b839190612e67565b909155505060d9545f906001600160a01b031663dd62ed3e336040516001600160e01b031960e084901b1681526001600160a01b039091166004820152306024820152604401602060405180830381865afa158015611be4573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611c089190612f0e565b90505f611c1a64e8d4a5100085612dd1565b905081811115611c765760405162461bcd60e51b815260206004820152602160248201527f4d616b65207375726520746f2061646420656e6f75676820616c6c6f77616e636044820152606560f81b60648201526084016108f7565b60d9545f906001600160a01b03163360d7546040516001600160a01b039283166024820152911660448201526064810184905260840160408051601f198184030181529181526020820180516001600160e01b03166323b872dd60e01b17905251611ce19190612f25565b5f604051808303815f865af19150503d805f8114611d1a576040519150601f19603f3d011682016040523d82523d5f602084013e611d1f565b606091505b5050905080611d675760405162461bcd60e51b8152602060048201526014602482015273151bdad95b881c185e5b595b9d0819985a5b195960621b60448201526064016108f7565b60d9546001600160a01b031688336001600160a01b03167f4d8aead3491b7eba4b5c7a65fc17e493b9e63f9e433522fc5f6a85a168fc9d36858942604051611dc2939291909283526020830191909152604082015260600190565b60405180910390a4506001979650505050505050565b5f805f60d2545f14611dec5760d254611df0565b60c9545b905060cd54841115611e445760405162461bcd60e51b815260206004820181905260248201527f416d6f756e742065786365656473206d617820746f6b656e7320746f2062757960448201526064016108f7565b60cf5f0160ce5481548110611e5b57611e5b612d7a565b905f5260205f2001548185611e709190612e67565b1180611e9c575060cf60020160ce5481548110611e8f57611e8f612d7a565b905f5260205f2001544210155b156120d65760cf54611eb090600190612e54565b60ce5410611eef5760405162461bcd60e51b815260206004820152600c60248201526b57726f6e6720706172616d7360a01b60448201526064016108f7565b60cf60020160ce5481548110611f0757611f07612d7a565b905f5260205f2001544210611fd55760ce5460cf90611f27906001612e67565b81548110611f3757611f37612d7a565b905f5260205f2001548460cf5f60038110611f5457611f54612d7a565b0160ce5481548110611f6857611f68612d7a565b905f5260205f200154611f7b9190612e67565b1115611f995760405162461bcd60e51b81526004016108f790612f51565b60ce5460d090611faa906001612e67565b81548110611fba57611fba612d7a565b905f5260205f20015484611fce9190612dba565b915061105f565b60ce5460cf90611fe6906001612e67565b81548110611ff657611ff6612d7a565b905f5260205f200154848261200b9190612e67565b11156120295760405162461bcd60e51b81526004016108f790612f51565b5f8160cf820160ce548154811061204257612042612d7a565b905f5260205f2001546120559190612e54565b60ce5490915060d090612069906001612e67565b8154811061207957612079612d7a565b905f5260205f200154818661208e9190612e54565b6120989190612dba565b60cf60010160ce54815481106120b0576120b0612d7a565b905f5260205f200154826120c49190612dba565b6120ce9190612e67565b92505061105f565b60cf60010160ce54815481106120ee576120ee612d7a565b905f5260205f200154846121029190612dba565b949350505050565b5f6121136124fa565b5f84116121595760405162461bcd60e51b8152602060048201526014602482015273696e76616c6964206e6f206f6620746f6b656e7360601b60448201526064016108f7565b5f831161219c5760405162461bcd60e51b8152602060048201526011602482015270696e76616c6964206e657720707269636560781b60448201526064016108f7565b5f82116121de5760405162461bcd60e51b815260206004820152601060248201526f696e76616c6964206e65772074696d6560801b60448201526064016108f7565b5060cf805460018082019092557facb8d954e2cfef495862221e91bd7523613cf8808827cb33edfe4904cc51bf29019390935560d080548085019091557fe89d44c8fd6a9bac8af33ce47f56337617d449bf7ff3956b618c646de829cbcb019190915560d1805480840182555f919091527f695fb3134ad82c3b8022bc5464edd0bcc9424ef672b52245dcb6ab2374327ce3015590565b606060cf826003811061228a5761228a612d7a565b018054806020026020016040519081016040528092919081815260200182805480156122d357602002820191905f5260205f20905b8154815260200190600101908083116122bf575b50505050509050919050565b60d581815481106122ee575f80fd5b5f91825260209091200154905081565b606060d580548060200260200160405190810160405280929190818152602001828054801561234a57602002820191905f5260205f20905b815481526020019060010190808311612336575b5050505050905090565b61235c6124fa565b6001600160a01b0381166123ab5760405162461bcd60e51b8152602060048201526016602482015275616464726573732063616e6e6f74206265207a65726f60501b60448201526064016108f7565b60d780546001600160a01b0319166001600160a01b0392909216919091179055565b60d481815481106122ee575f80fd5b60cf82600381106123eb575f80fd5b0181815481106123f9575f80fd5b905f5260205f20015f91509150505481565b6124136124fa565b6001600160a01b0381166124785760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016108f7565b61248181612812565b50565b61248c6124fa565b5f5b8181101561087a575f60dc5f8585858181106124ac576124ac612d7a565b90506020020160208101906124c19190612a72565b6001600160a01b0316815260208101919091526040015f20805460ff1916911515919091179055806124f281612da2565b91505061248e565b6065546001600160a01b03163314610c8b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016108f7565b61255c6128a0565b6097805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b60975460ff1615610c8b5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b60448201526064016108f7565b60026001540361263e5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016108f7565b6002600155565b5f5b60ce5460d1546126579190612e54565b8110156124815760d65461266b9082612dba565b6126759042612e67565b60ce5460d190612686908490612e67565b8154811061269657612696612d7a565b5f91825260209091200155806126ab81612da2565b915050612647565b804710156126f15760405162461bcd60e51b815260206004820152600b60248201526a4c6f772062616c616e636560a81b60448201526064016108f7565b5f826001600160a01b0316826040515f6040518083038185875af1925050503d805f811461273a576040519150601f19603f3d011682016040523d82523d5f602084013e61273f565b606091505b505090508061087a5760405162461bcd60e51b81526020600482015260126024820152711155120814185e5b595b9d0819985a5b195960721b60448201526064016108f7565b60018055565b5f54610100900460ff166127b15760405162461bcd60e51b81526004016108f790612f94565b6097805460ff19169055565b5f54610100900460ff166127e35760405162461bcd60e51b81526004016108f790612f94565b610c8b33612812565b5f54610100900460ff166127855760405162461bcd60e51b81526004016108f790612f94565b606580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b61286b6125a6565b6097805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586125893390565b60975460ff16610c8b5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b60448201526064016108f7565b8260038101928215612929579160200282015b828111156129295782518051612919918491602090910190612939565b50916020019190600101906128fc565b5061293592915061297e565b5090565b828054828255905f5260205f20908101928215612972579160200282015b82811115612972578251825591602001919060010190612957565b5061293592915061299a565b80821115612935575f61299182826129ae565b5060010161297e565b5b80821115612935575f815560010161299b565b5080545f8255905f5260205f2090810190612481919061299a565b5f80602083850312156129da575f80fd5b823567ffffffffffffffff808211156129f1575f80fd5b818501915085601f830112612a04575f80fd5b813581811115612a12575f80fd5b8660208260051b8501011115612a26575f80fd5b60209290920196919550909350505050565b5f60208284031215612a48575f80fd5b81358015158114610ba5575f80fd5b80356001600160a01b0381168114612a6d575f80fd5b919050565b5f60208284031215612a82575f80fd5b610ba582612a57565b5f8060408385031215612a9c575f80fd5b50508035926020909101359150565b5f60208284031215612abb575f80fd5b5035919050565b5f805f8060808587031215612ad5575f80fd5b5050823594602084013594506040840135936060013592509050565b5f8060408385031215612b02575f80fd5b612b0b83612a57565b946020939093013593505050565b634e487b7160e01b5f52604160045260245ffd5b6040516060810167ffffffffffffffff81118282101715612b5057612b50612b19565b60405290565b604051601f8201601f1916810167ffffffffffffffff81118282101715612b7f57612b7f612b19565b604052919050565b5f601f8381840112612b97575f80fd5b612b9f612b2d565b806060850186811115612bb0575f80fd5b855b81811015612c5657803567ffffffffffffffff80821115612bd2575f8081fd5b81890191508987830112612be5575f8081fd5b8135602082821115612bf957612bf9612b19565b8160051b9250612c0a818401612b56565b828152928401810192818101908d851115612c26575f93508384fd5b948201945b84861015612c4457853582529482019490820190612c2b565b89525090960195505050602001612bb2565b50909695505050505050565b5f805f805f805f60e0888a031215612c78575f80fd5b612c8188612a57565b9650612c8f60208901612a57565b95506040880135945060608801359350608088013567ffffffffffffffff811115612cb8575f80fd5b612cc48a828b01612b87565b93505060a08801359150612cda60c08901612a57565b905092959891949750929550565b5f60208284031215612cf8575f80fd5b813567ffffffffffffffff811115612d0e575f80fd5b61210284828501612b87565b5f805f60608486031215612d2c575f80fd5b505081359360208301359350604090920135919050565b602080825282518282018190525f9190848201906040850190845b81811015612c5657835183529284019291840191600101612d5e565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52601160045260245ffd5b5f60018201612db357612db3612d8e565b5060010190565b808202811582820484141761134757611347612d8e565b5f82612deb57634e487b7160e01b5f52601260045260245ffd5b500490565b60208082526017908201527f496e76616c69642074696d6520666f7220627579696e67000000000000000000604082015260600190565b602080825260139082015272125b9d985b1a59081cd85b1948185b5bdd5b9d606a1b604082015260600190565b8181038181111561134757611347612d8e565b8082018082111561134757611347612d8e565b805169ffffffffffffffffffff81168114612a6d575f80fd5b5f805f805f60a08688031215612ea7575f80fd5b612eb086612e7a565b9450602086015193506040860151925060608601519150612ed360808701612e7a565b90509295509295909350565b8082025f8212600160ff1b84141615612efa57612efa612d8e565b818105831482151761134757611347612d8e565b5f60208284031215612f1e575f80fd5b5051919050565b5f82515f5b81811015612f445760208186018101518583015201612f2a565b505f920191825250919050565b60208082526023908201527f43616e74205075726368617365204d6f726520696e20696e646976696475616c604082015262040e8f60eb1b606082015260800190565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b60608201526080019056fea2646970667358221220cafbccabd3fe77e7a40b9fb2b70d354dd32ee21d32ccb66b80b51ddf74ff664264736f6c63430008150033
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.