Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 1 from a total of 1 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
0x60806040 | 17878037 | 355 days ago | IN | 0 ETH | 0.1302128 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
PresaleEthV1
Compiler Version
v0.8.19+commit.7dd6d404
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
//SPDX-License-Identifier: MIT pragma solidity ^0.8.9; import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol"; import "@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.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 PresaleEthV1 is Initializable, ReentrancyGuardUpgradeable, PausableUpgradeable, OwnableUpgradeable { uint256 public totalTokensSold; uint256 public startTime; uint256 public endTime; uint256 public claimStart; address public saleToken; uint256 public baseDecimals; uint256 public maxTokensToBuy; uint256 public currentStep; uint256 public checkPoint; uint256 public usdRaised; uint256[] public prevCheckpoints; uint256[] public remainingTokensTracker; uint256 public timeConstant; address public paymentWallet; bool public dynamicTimeFlag; bool public whitelistClaimOnly; uint256[][3] public rounds; IERC20Upgradeable public USDTInterface; Aggregator public aggregatorInterface; mapping(address => uint256) public userDeposits; mapping(address => bool) public hasClaimed; mapping(address => bool) public isBlacklisted; mapping(address => bool) public isWhitelisted; mapping(address => bool) public wertWhitelisted; struct PromoCodeDetails { uint256 expiryDate; uint256 usageLimit; uint256 usageCount; uint256 discountPercentage; bool isValid; } mapping(string => PromoCodeDetails) private promoCodes; string[] private promoCodeKeys; mapping(address => string) public referralCodes; mapping(string => address) public referrers; event SaleTimeSet(uint256 _start, uint256 _end, uint256 timestamp); event SaleTimeUpdated( bytes32 indexed key, uint256 prevValue, uint256 newValue, uint256 timestamp ); event TokensBought( address indexed user, uint256 indexed tokensBought, address indexed purchaseToken, uint256 amountPaid, uint256 usdEq, uint256 timestamp ); event TokensAdded( address indexed token, uint256 noOfTokens, uint256 timestamp ); event TokensClaimed( address indexed user, uint256 amount, uint256 timestamp ); event ClaimStartUpdated( uint256 prevValue, uint256 newValue, uint256 timestamp ); event MaxTokensUpdated( uint256 prevValue, uint256 newValue, uint256 timestamp ); event PromoCodeCreated( string code, uint256 expiryDate, uint256 usageLimit, uint256 discountPercentage ); event PromoCodeDisabled(string code); event ReferralCodeSet(address indexed user, string referralCode); function initialize( address _oracle, address _usdt, uint256 _startTime, uint256 _endTime, uint256[][3] memory _rounds, uint256 _maxTokensToBuy, address _paymentWallet ) external initializer { require(_usdt != address(0), "0x123 USDT address"); require(_oracle != address(0), "0x123 aggregator address"); require(_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; timeConstant = 172800; emit SaleTimeSet(startTime, endTime, block.timestamp); } function pause() external onlyOwner { _pause(); } function unpause() external onlyOwner { _unpause(); } function calculatePrice(uint256 _amount) public view returns (uint256) { uint256 USDTAmount; uint256 total = checkPoint == 0 ? totalTokensSold : checkPoint; require(_amount <= maxTokensToBuy, "Amount exceeds max tokens to buy"); if ( _amount + total > rounds[0][currentStep] || block.timestamp >= rounds[2][currentStep] ) { require(currentStep < (rounds[0].length - 1), "Wrong params"); if (block.timestamp >= rounds[2][currentStep]) { require( rounds[0][currentStep] + _amount <= rounds[0][currentStep + 1], "Cant Purchase More in individual tx" ); USDTAmount = _amount * rounds[1][currentStep + 1]; } else { uint256 tokenAmountForCurrentPrice = rounds[0][currentStep] - total; USDTAmount = tokenAmountForCurrentPrice * rounds[1][currentStep] + (_amount - tokenAmountForCurrentPrice) * rounds[1][currentStep + 1]; } } else { USDTAmount = _amount * rounds[1][currentStep]; } return USDTAmount; } function changeSaleTimes( uint256 _startTime, uint256 _endTime ) external onlyOwner { if (_startTime > 0) { uint256 prevValue = startTime; startTime = _startTime; emit SaleTimeUpdated( bytes32("START"), prevValue, _startTime, block.timestamp ); } if (_endTime > 0) { uint256 prevValue = endTime; endTime = _endTime; emit SaleTimeUpdated( bytes32("END"), prevValue, _endTime, block.timestamp ); } } 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"); _; } function buyWithUSDT( uint256 amount, string memory promoCode, string memory referralCode ) external checkSaleState(amount) whenNotPaused returns (bool) { uint256 usdPrice = calculatePrice(amount); uint256 referralBonus = uint(amount * 8) / 100; // Check if a promo code is provided and apply discount if (bytes(promoCode).length > 0) { require(promoCodes[promoCode].isValid, "Invalid promo code"); require( promoCodes[promoCode].expiryDate >= block.timestamp, "Expired promo code" ); require( promoCodes[promoCode].usageCount < promoCodes[promoCode].usageLimit, "Promo code usage limit reached" ); uint256 discountedAmount = amount; // Apply discount from the promo code discountedAmount += (amount * promoCodes[promoCode].discountPercentage) / 100; amount = discountedAmount; } if (bytes(referralCodes[_msgSender()]).length == 0) { string memory code = generateReferralCode(); referralCodes[_msgSender()] = code; referrers[code] = _msgSender(); emit ReferralCodeSet(_msgSender(), referralCode); } 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; } if (bytes(referralCode).length > 0) { address referralAddress = referrers[referralCode]; if ( referralAddress != address(0) && referralAddress != _msgSender() ) { userDeposits[referralAddress] += (referralBonus * baseDecimals); } } 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; } function buyWithEth( uint256 amount, string memory promoCode, string memory referralCode ) external payable checkSaleState(amount) whenNotPaused nonReentrant returns (bool) { uint256 usdPrice = calculatePrice(amount); uint256 referralBonus = uint(amount * 8) / 100; // Check if a promo code is provided and apply discount if (bytes(promoCode).length > 0) { require(promoCodes[promoCode].isValid, "Invalid promo code"); require( promoCodes[promoCode].expiryDate >= block.timestamp, "Expired promo code" ); require( promoCodes[promoCode].usageCount < promoCodes[promoCode].usageLimit, "Promo code usage limit reached" ); uint256 discountedAmount = amount; // Apply discount from the promo code discountedAmount += (amount * promoCodes[promoCode].discountPercentage) / 100; amount = discountedAmount; } if (bytes(referralCodes[_msgSender()]).length == 0) { string memory code = generateReferralCode(); referralCodes[_msgSender()] = code; referrers[code] = _msgSender(); emit ReferralCodeSet(_msgSender(), referralCode); } 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; } if (bytes(referralCode).length > 0) { address referralAddress = referrers[referralCode]; if ( referralAddress != address(0) && referralAddress != _msgSender() ) { userDeposits[referralAddress] += (referralBonus * baseDecimals); } } 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; } function ethBuyHelper( uint256 amount ) external view returns (uint256 ethAmount) { uint256 usdPrice = calculatePrice(amount); ethAmount = (usdPrice * baseDecimals) / getLatestPrice(); } 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 startClaim( uint256 _claimStart, uint256 noOfTokens, address _saleToken ) external onlyOwner returns (bool) { require( _claimStart > endTime && _claimStart > block.timestamp, "Invalid claim start time" ); require( noOfTokens >= (totalTokensSold * baseDecimals), "Tokens less than sold" ); require(_saleToken != address(0), "0x000 token address"); require(claimStart == 0, "Claim already set"); claimStart = _claimStart; saleToken = _saleToken; bool success = IERC20Upgradeable(_saleToken).transferFrom( _msgSender(), address(this), noOfTokens ); require(success, "Token transfer failed"); emit TokensAdded(saleToken, noOfTokens, block.timestamp); return true; } function changeClaimStart( uint256 _claimStart ) external onlyOwner returns (bool) { require(claimStart > 0, "Initial claim data not set"); require(_claimStart > endTime, "Sale in progress"); require(_claimStart > block.timestamp, "Claim start in past"); uint256 prevValue = claimStart; claimStart = _claimStart; emit ClaimStartUpdated(prevValue, _claimStart, block.timestamp); return true; } function claim() external whenNotPaused returns (bool) { require(saleToken != address(0), "Sale token not added"); require(!isBlacklisted[_msgSender()], "This Address is Blacklisted"); if (whitelistClaimOnly) { require( isWhitelisted[_msgSender()], "User not whitelisted for claim" ); } require(block.timestamp >= claimStart, "Claim has not started yet"); require(!hasClaimed[_msgSender()], "Already claimed"); hasClaimed[_msgSender()] = true; uint256 amount = userDeposits[_msgSender()]; require(amount > 0, "Nothing to claim"); delete userDeposits[_msgSender()]; bool success = IERC20Upgradeable(saleToken).transfer( _msgSender(), amount ); require(success, "Token transfer failed"); emit TokensClaimed(_msgSender(), amount, block.timestamp); return true; } function changeMaxTokensToBuy(uint256 _maxTokensToBuy) external onlyOwner { require(_maxTokensToBuy > 0, "0 max tokens to buy value"); uint256 prevValue = maxTokensToBuy; maxTokensToBuy = _maxTokensToBuy; emit MaxTokensUpdated(prevValue, _maxTokensToBuy, block.timestamp); } function changeRoundsSaleTokens( uint256[] memory _rounds ) external onlyOwner { rounds[0] = _rounds; } function changeRoundsSalePrices( uint256[] memory _rounds ) external onlyOwner { rounds[1] = _rounds; } function changeRoundsSaleTimes( uint256[] memory _rounds ) external onlyOwner { rounds[2] = _rounds; } function blacklistUsers( address[] calldata _usersToBlacklist ) external onlyOwner { for (uint256 i = 0; i < _usersToBlacklist.length; i++) { isBlacklisted[_usersToBlacklist[i]] = true; } } function removeFromBlacklist( address[] calldata _userToRemoveFromBlacklist ) external onlyOwner { for (uint256 i = 0; i < _userToRemoveFromBlacklist.length; i++) { isBlacklisted[_userToRemoveFromBlacklist[i]] = false; } } function whitelistUsers( address[] calldata _usersToWhitelist ) external onlyOwner { for (uint256 i = 0; i < _usersToWhitelist.length; i++) { isWhitelisted[_usersToWhitelist[i]] = true; } } function removeFromWhitelist( address[] calldata _userToRemoveFromWhitelist ) external onlyOwner { for (uint256 i = 0; i < _userToRemoveFromWhitelist.length; i++) { isWhitelisted[_userToRemoveFromWhitelist[i]] = false; } } function setClaimWhitelistStatus(bool _status) external onlyOwner { whitelistClaimOnly = _status; } function changePaymentWallet(address _newPaymentWallet) external onlyOwner { require(_newPaymentWallet != address(0), "address cannot be zero"); paymentWallet = _newPaymentWallet; } function manageTimeDiff() internal { for (uint256 i; i < rounds[2].length - currentStep; i++) { rounds[2][currentStep + i] = block.timestamp + i * timeConstant; } } function setTimeConstant(uint256 _timeConstant) external onlyOwner { timeConstant = _timeConstant; } function roundDetails( uint256 _no ) external view returns (uint256[] memory) { return rounds[_no]; } function updateFromBSC( address[] calldata _users, uint256[] calldata _userDeposits ) external onlyOwner { require(_users.length == _userDeposits.length, "Length mismatch"); for (uint256 i = 0; i < _users.length; i++) { userDeposits[_users[i]] += _userDeposits[i]; } } function incrementCurrentStep() external onlyOwner { prevCheckpoints.push(checkPoint); if (dynamicTimeFlag) { manageTimeDiff(); } if (checkPoint < rounds[0][currentStep]) { remainingTokensTracker.push(rounds[0][currentStep] - checkPoint); checkPoint = rounds[0][currentStep]; } currentStep++; } function increaseUsdRaised(uint256 amount) external onlyOwner { usdRaised += amount; } function setCurrentStep( uint256 _step, uint256 _checkpoint ) external onlyOwner { currentStep = _step; checkPoint = _checkpoint; } function setDynamicTimeFlag(bool _dynamicTimeFlag) external onlyOwner { dynamicTimeFlag = _dynamicTimeFlag; } function trackRemainingTokens() external view returns (uint256[] memory) { return remainingTokensTracker; } function updatePromoCode( string calldata code, uint256 expiryDate, uint256 usageLimit, uint256 discountPercentage ) external onlyOwner { promoCodes[code] = PromoCodeDetails({ expiryDate: expiryDate, usageLimit: usageLimit, usageCount: 0, discountPercentage: discountPercentage, isValid: true }); } function createPromoCode( string memory code, uint256 expiryDate, uint256 usageLimit, uint256 discountPercentage ) external onlyOwner { require(!promoCodes[code].isValid, "Promo code already exists"); PromoCodeDetails memory promoCode = PromoCodeDetails({ expiryDate: expiryDate, usageLimit: usageLimit, usageCount: 0, discountPercentage: discountPercentage, isValid: true }); promoCodes[code] = promoCode; promoCodeKeys.push(code); emit PromoCodeCreated(code, expiryDate, usageLimit, discountPercentage); } function disablePromoCode(string memory code) external onlyOwner { require(promoCodes[code].isValid, "Promo code does not exist"); promoCodes[code].isValid = false; // Remove the promo code key from promoCodeKeys array for (uint256 i = 0; i < promoCodeKeys.length; i++) { if (keccak256(bytes(promoCodeKeys[i])) == keccak256(bytes(code))) { // Shift elements to the left to remove the key for (uint256 j = i; j < promoCodeKeys.length - 1; j++) { promoCodeKeys[j] = promoCodeKeys[j + 1]; } promoCodeKeys.pop(); break; } } emit PromoCodeDisabled(code); } function validatePromoCode( string memory code ) external view returns (bool) { return (promoCodes[code].isValid && promoCodes[code].expiryDate >= block.timestamp && promoCodes[code].usageCount < promoCodes[code].usageLimit); } function getPromoCode( string memory code ) public view returns (uint256, uint256, uint256, uint256, bool) { PromoCodeDetails storage details = promoCodes[code]; return ( details.expiryDate, details.usageLimit, details.usageCount, details.discountPercentage, details.isValid ); } function getPromoCodes() public view returns (string[] memory) { return promoCodeKeys; } function generateReferralCode() internal view returns (string memory) { bytes memory characters = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890"; uint256 length = 12; bytes memory code = new bytes(length); for (uint256 i = 0; i < length; i++) { code[i] = characters[random(i) % characters.length]; } string memory referralCode = string(code); return referralCode; } // Internal function to generate a random number function random(uint256 seed) internal view returns (uint256) { return uint256( keccak256(abi.encodePacked(_msgSender(), block.timestamp, seed)) ); } }
// 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
[{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"prevValue","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newValue","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"ClaimStartUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint8","name":"version","type":"uint8"}],"name":"Initialized","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"prevValue","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newValue","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"MaxTokensUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"code","type":"string"},{"indexed":false,"internalType":"uint256","name":"expiryDate","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"usageLimit","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"discountPercentage","type":"uint256"}],"name":"PromoCodeCreated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"code","type":"string"}],"name":"PromoCodeDisabled","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"string","name":"referralCode","type":"string"}],"name":"ReferralCodeSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_start","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_end","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"SaleTimeSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"key","type":"bytes32"},{"indexed":false,"internalType":"uint256","name":"prevValue","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newValue","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"SaleTimeUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"noOfTokens","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"TokensAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokensBought","type":"uint256"},{"indexed":true,"internalType":"address","name":"purchaseToken","type":"address"},{"indexed":false,"internalType":"uint256","name":"amountPaid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"usdEq","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"TokensBought","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"TokensClaimed","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"USDTInterface","outputs":[{"internalType":"contract IERC20Upgradeable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"aggregatorInterface","outputs":[{"internalType":"contract Aggregator","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseDecimals","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_usersToBlacklist","type":"address[]"}],"name":"blacklistUsers","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"string","name":"promoCode","type":"string"},{"internalType":"string","name":"referralCode","type":"string"}],"name":"buyWithEth","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"string","name":"promoCode","type":"string"},{"internalType":"string","name":"referralCode","type":"string"}],"name":"buyWithUSDT","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"calculatePrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_claimStart","type":"uint256"}],"name":"changeClaimStart","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxTokensToBuy","type":"uint256"}],"name":"changeMaxTokensToBuy","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newPaymentWallet","type":"address"}],"name":"changePaymentWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_rounds","type":"uint256[]"}],"name":"changeRoundsSalePrices","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_rounds","type":"uint256[]"}],"name":"changeRoundsSaleTimes","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_rounds","type":"uint256[]"}],"name":"changeRoundsSaleTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_startTime","type":"uint256"},{"internalType":"uint256","name":"_endTime","type":"uint256"}],"name":"changeSaleTimes","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"checkPoint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claim","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claimStart","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"code","type":"string"},{"internalType":"uint256","name":"expiryDate","type":"uint256"},{"internalType":"uint256","name":"usageLimit","type":"uint256"},{"internalType":"uint256","name":"discountPercentage","type":"uint256"}],"name":"createPromoCode","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"currentStep","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"code","type":"string"}],"name":"disablePromoCode","outputs":[],"stateMutability":"nonpayable","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":[{"internalType":"string","name":"code","type":"string"}],"name":"getPromoCode","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getPromoCodes","outputs":[{"internalType":"string[]","name":"","type":"string[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"hasClaimed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"increaseUsdRaised","outputs":[],"stateMutability":"nonpayable","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":[{"internalType":"address","name":"","type":"address"}],"name":"isBlacklisted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isWhitelisted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxTokensToBuy","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"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":"address","name":"","type":"address"}],"name":"referralCodes","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"","type":"string"}],"name":"referrers","outputs":[{"internalType":"address","name":"","type":"address"}],"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":"_userToRemoveFromBlacklist","type":"address[]"}],"name":"removeFromBlacklist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_userToRemoveFromWhitelist","type":"address[]"}],"name":"removeFromWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"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":[],"name":"saleToken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"_status","type":"bool"}],"name":"setClaimWhitelistStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_step","type":"uint256"},{"internalType":"uint256","name":"_checkpoint","type":"uint256"}],"name":"setCurrentStep","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"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":[{"internalType":"uint256","name":"_claimStart","type":"uint256"},{"internalType":"uint256","name":"noOfTokens","type":"uint256"},{"internalType":"address","name":"_saleToken","type":"address"}],"name":"startClaim","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"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":[{"internalType":"address[]","name":"_users","type":"address[]"},{"internalType":"uint256[]","name":"_userDeposits","type":"uint256[]"}],"name":"updateFromBSC","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"code","type":"string"},{"internalType":"uint256","name":"expiryDate","type":"uint256"},{"internalType":"uint256","name":"usageLimit","type":"uint256"},{"internalType":"uint256","name":"discountPercentage","type":"uint256"}],"name":"updatePromoCode","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":"string","name":"code","type":"string"}],"name":"validatePromoCode","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"wertWhitelisted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"whitelistClaimOnly","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_usersToWhitelist","type":"address[]"}],"name":"whitelistUsers","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060405234801561001057600080fd5b50614ac9806100206000396000f3fe6080604052600436106103e45760003560e01c806378e9792511610208578063bd45d3b311610118578063e6da9213116100ab578063f04d688f1161007a578063f04d688f14610bca578063f2fde38b14610be0578063f597573f14610c00578063fb9a4acd14610c20578063fe575a8714610c4057600080fd5b8063e6da921314610b54578063e985e36714610b74578063eadd94ec14610b94578063edec5f2714610baa57600080fd5b8063cad00556116100e7578063cad0055614610ade578063cff805ab14610afe578063e19648db14610b14578063e32204dd14610b3457600080fd5b8063bd45d3b314610a67578063c23326f314610a89578063c49cc64514610aa9578063c8adff0114610ac957600080fd5b8063950ba1fe1161019b5780639cfa0f7c1161016a5780639cfa0f7c146109c4578063ae104265146109da578063b2caaebd146109fa578063ba166a3914610a1a578063bb3d676a14610a4757600080fd5b8063950ba1fe146109165780639534dd3e146109575780639849aad6146109845780639a89c1fb146109a457600080fd5b80638632e7f7116101d75780638632e7f71461088f57806389daf799146108af5780638da5cb5b146108cf5780638e15f4731461090157600080fd5b806378e9792514610824578063795146ec1461083a5780638456cb591461085a57806385cc9d931461086f57600080fd5b80633f4ba83a116103035780635c975abb1161029657806363e408791161026557806363e4087914610760578063641046f41461078057806369fbd9a814610795578063715018a6146107df57806373b2e80e146107f457600080fd5b80635c975abb146106e25780635df4f353146106fa578063625ae3da1461072a57806363b201171461074a57600080fd5b806353d99207116102d257806353d992071461066b578063548db1741461068c57806357405d05146106ac5780635bc34f71146106cc57600080fd5b80633f4ba83a1461060b57806343568eae146106205780634e71d92d1461063657806350e8b85d1461064b57600080fd5b80631fa2bc921161037b57806329a5a0b61161034a57806329a5a0b61461058f5780633197cbb6146105af57806333f76178146105c55780633af32abf146105db57600080fd5b80631fa2bc921461050e57806323a04fc31461052f57806323a8f1c01461054f578063278c278b1461056f57600080fd5b80630dc9c838116103b75780630dc9c8381461049b5780630e5c1ddf146104bb5780631142dadb146104ce5780631ddc6091146104ee57600080fd5b806305738b48146103e957806307f180821461040b5780630a200fc7146104405780630ba36dcd14610460575b600080fd5b3480156103f557600080fd5b50610409610404366004613fa1565b610c70565b005b34801561041757600080fd5b5061042b610426366004613fdd565b610c96565b60405190151581526020015b60405180910390f35b34801561044c57600080fd5b5061040961045b366004614004565b610dd2565b34801561046c57600080fd5b5061048d61047b366004614038565b60dc6020526000908152604090205481565b604051908152602001610437565b3480156104a757600080fd5b506104096104b6366004614053565b610df8565b61042b6104c93660046140e4565b610eb5565b3480156104da57600080fd5b506104096104e9366004614150565b6115b9565b3480156104fa57600080fd5b50610409610509366004614004565b61173a565b34801561051a57600080fd5b5060d65461042b90600160a01b900460ff1681565b34801561053b57600080fd5b5061042b61054a3660046141a3565b611760565b34801561055b57600080fd5b5061040961056a366004613fdd565b611806565b34801561057b57600080fd5b5061040961058a366004613fdd565b611813565b34801561059b57600080fd5b5061048d6105aa366004613fdd565b6118b6565b3480156105bb57600080fd5b5061048d60cb5481565b3480156105d157600080fd5b5061048d60ce5481565b3480156105e757600080fd5b5061042b6105f6366004614038565b60df6020526000908152604090205460ff1681565b34801561061757600080fd5b506104096118ea565b34801561062c57600080fd5b5061048d60d55481565b34801561064257600080fd5b5061042b6118fc565b34801561065757600080fd5b506104096106663660046141a3565b611c49565b34801561067757600080fd5b5060d65461042b90600160a81b900460ff1681565b34801561069857600080fd5b506104096106a7366004614222565b611e41565b3480156106b857600080fd5b506104096106c7366004614263565b611ec0565b3480156106d857600080fd5b5061048d60d05481565b3480156106ee57600080fd5b5060655460ff1661042b565b34801561070657600080fd5b5061042b610715366004614038565b60e06020526000908152604090205460ff1681565b34801561073657600080fd5b5061042b6107453660046140e4565b612189565b34801561075657600080fd5b5061048d60c95481565b34801561076c57600080fd5b5061048d61077b366004613fdd565b6129ea565b34801561078c57600080fd5b50610409612a06565b3480156107a157600080fd5b506107b56107b03660046141a3565b612b0d565b6040805195865260208601949094529284019190915260608301521515608082015260a001610437565b3480156107eb57600080fd5b50610409612b61565b34801561080057600080fd5b5061042b61080f366004614038565b60dd6020526000908152604090205460ff1681565b34801561083057600080fd5b5061048d60ca5481565b34801561084657600080fd5b50610409610855366004613fa1565b612b73565b34801561086657600080fd5b50610409612b85565b34801561087b57600080fd5b5061040961088a366004613fdd565b612b95565b34801561089b57600080fd5b506104096108aa366004613fa1565b612bb7565b3480156108bb57600080fd5b506104096108ca366004614222565b612bc9565b3480156108db57600080fd5b506097546001600160a01b03165b6040516001600160a01b039091168152602001610437565b34801561090d57600080fd5b5061048d612c43565b34801561092257600080fd5b506108e96109313660046141a3565b805160208183018101805160e4825292820191909301209152546001600160a01b031681565b34801561096357600080fd5b50610977610972366004614038565b612cd4565b604051610437919061439a565b34801561099057600080fd5b5061040961099f3660046143ad565b612d6e565b3480156109b057600080fd5b506104096109bf366004614053565b612e04565b3480156109d057600080fd5b5061048d60cf5481565b3480156109e657600080fd5b5061048d6109f5366004613fdd565b612e17565b348015610a0657600080fd5b5061042b610a15366004614434565b61314d565b348015610a2657600080fd5b50610a3a610a35366004613fdd565b6133d6565b6040516104379190614469565b348015610a5357600080fd5b50610409610a62366004614222565b613442565b348015610a7357600080fd5b50610a7c6134bc565b60405161043791906144ad565b348015610a9557600080fd5b5061048d610aa4366004613fdd565b613595565b348015610ab557600080fd5b5060db546108e9906001600160a01b031681565b348015610ad557600080fd5b50610a3a6135b6565b348015610aea57600080fd5b50610409610af9366004614038565b61360e565b348015610b0a57600080fd5b5061048d60d15481565b348015610b2057600080fd5b5061048d610b2f366004613fdd565b613687565b348015610b4057600080fd5b5060d6546108e9906001600160a01b031681565b348015610b6057600080fd5b5061048d610b6f366004614053565b613697565b348015610b8057600080fd5b5060cd546108e9906001600160a01b031681565b348015610ba057600080fd5b5061048d60d25481565b348015610bb657600080fd5b50610409610bc5366004614222565b6136cb565b348015610bd657600080fd5b5061048d60cc5481565b348015610bec57600080fd5b50610409610bfb366004614038565b613745565b348015610c0c57600080fd5b5060da546108e9906001600160a01b031681565b348015610c2c57600080fd5b50610409610c3b36600461450f565b6137be565b348015610c4c57600080fd5b5061042b610c5b366004614038565b60de6020526000908152604090205460ff1681565b610c786138a4565b8060d760005b019080519060200190610c92929190613d93565b5050565b6000610ca06138a4565b600060cc5411610cf75760405162461bcd60e51b815260206004820152601a60248201527f496e697469616c20636c61696d2064617461206e6f742073657400000000000060448201526064015b60405180910390fd5b60cb548211610d3b5760405162461bcd60e51b815260206004820152601060248201526f53616c6520696e2070726f677265737360801b6044820152606401610cee565b428211610d805760405162461bcd60e51b815260206004820152601360248201527210db185a5b481cdd185c9d081a5b881c185cdd606a1b6044820152606401610cee565b60cc8054908390556040805182815260208101859052428183015290517f5f3a900c85949962b4cc192dd3714dae64071dc2e907049ec720b023270905a49181900360600190a160019150505b919050565b610dda6138a4565b60d68054911515600160a01b0260ff60a01b19909216919091179055565b610e006138a4565b8115610e5a5760ca8054908390556040805182815260208101859052428183015290516414d510549560da1b917fddd2ed237e6993c9380182683f2c8bec486aaaa429528852cd74dbdb96cea0b2919081900360600190a2505b8015610c925760cb8054908290556040805182815260208101849052428183015290516211539160ea1b917fddd2ed237e6993c9380182683f2c8bec486aaaa429528852cd74dbdb96cea0b2919081900360600190a2505050565b60008360ca544210158015610ecc575060cb544211155b610f125760405162461bcd60e51b8152602060048201526017602482015276496e76616c69642074696d6520666f7220627579696e6760481b6044820152606401610cee565b60008111610f585760405162461bcd60e51b8152602060048201526013602482015272125b9d985b1a59081cd85b1948185b5bdd5b9d606a1b6044820152606401610cee565b610f606138fe565b610f68613944565b6000610f7386612e17565b905060006064610f848860086145a6565b610f8e91906145d3565b8651909150156111405760e186604051610fa891906145e7565b9081526040519081900360200190206004015460ff16610fff5760405162461bcd60e51b8152602060048201526012602482015271496e76616c69642070726f6d6f20636f646560701b6044820152606401610cee565b4260e18760405161101091906145e7565b9081526040519081900360200190205410156110635760405162461bcd60e51b8152602060048201526012602482015271457870697265642070726f6d6f20636f646560701b6044820152606401610cee565b60e18660405161107391906145e7565b90815260200160405180910390206001015460e18760405161109591906145e7565b908152602001604051809103902060020154106110f45760405162461bcd60e51b815260206004820152601e60248201527f50726f6d6f20636f6465207573616765206c696d6974207265616368656400006044820152606401610cee565b6000879050606460e18860405161110b91906145e7565b9081526020016040518091039020600301548961112891906145a6565b61113291906145d3565b61113c9082614603565b9750505b33600090815260e360205260409020805461115a90614616565b905060000361121357600061116d61399d565b33600090815260e360205260409020909150611189828261469e565b503360e48260405161119b91906145e7565b90815260405190819003602001902080546001600160a01b03929092166001600160a01b03199092169190911790556111d13390565b6001600160a01b03167fb9e788fc28e69f876035840c2b162474437d35622a8cfa689a88c04403bf7ee687604051611209919061439a565b60405180910390a2505b600061121d612c43565b60ce5461122a90856145a6565b61123491906145d3565b9050803410156112755760405162461bcd60e51b815260206004820152600c60248201526b13195cdcc81c185e5b595b9d60a21b6044820152606401610cee565b6000611281823461475d565b90508860c960008282546112959190614603565b909155505060d154156112ba578860d160008282546112b49190614603565b90915550505b600060d15460c954116112cf5760d1546112d3565b60c9545b905060d760000160d054815481106112ed576112ed61457a565b9060005260206000200154811180611327575060d760020160d054815481106113185761131861457a565b90600052602060002001544210155b1561145a5760d760020160d054815481106113445761134461457a565b9060005260206000200154421061138b578960d760000160d0548154811061136e5761136e61457a565b90600052602060002001546113839190614603565b60d1556113a5565b60d654600160a01b900460ff16156113a5576113a5613a93565b600060d7810160d054815481106113be576113be61457a565b90600052602060002001548211611402578160d760000160d054815481106113e8576113e861457a565b90600052602060002001546113fd919061475d565b611405565b60005b60d480546001818101835560009283527f9780e26d96b1f2a9a18ef8fc72d589dbf03ef788137b64f43897e83a91e7feec90910183905560d080549394509092909190611453908490614603565b9091555050505b8751156114e857600060e48960405161147391906145e7565b908152604051908190036020019020546001600160a01b0316905080158015906114a657506001600160a01b0381163314155b156114e65760ce546114b890866145a6565b6001600160a01b038216600090815260dc6020526040812080549091906114e0908490614603565b90915550505b505b60ce546114f5908b6145a6565b33600090815260dc602052604081208054909190611514908490614603565b925050819055508460d2600082825461152d9190614603565b909155505060d654611548906001600160a01b031684613b03565b8115611558576115583383613b03565b6040805184815260208101879052428183015290516000918c9133917f4d8aead3491b7eba4b5c7a65fc17e493b9e63f9e433522fc5f6a85a168fc9d36919081900360600190a46001965050505050506115b160018055565b509392505050565b6115c16138a4565b60e1846040516115d191906145e7565b9081526040519081900360200190206004015460ff16156116345760405162461bcd60e51b815260206004820152601960248201527f50726f6d6f20636f646520616c726561647920657869737473000000000000006044820152606401610cee565b6040805160a0810182528481526020810184905260008183015260608101839052600160808201529051819060e19061166e9088906145e7565b90815260408051602092819003830190208351815591830151600180840191909155908301516002830155606083015160038301556080909201516004909101805460ff191691151591909117905560e2805491820181556000527f26a62d79192c78c3891f38189368673110b88734c09ed7453515def7525e07d8016116f5868261469e565b507f5dbb1a2c8bb1dd1848e9198452c16ad3409cc2aec5dfeab39b8075f5c8e16f6d8585858560405161172b9493929190614770565b60405180910390a15050505050565b6117426138a4565b60d68054911515600160a81b0260ff60a81b19909216919091179055565b600060e18260405161177291906145e7565b9081526040519081900360200190206004015460ff1680156117b357504260e1836040516117a091906145e7565b9081526040519081900360200190205410155b8015611800575060e1826040516117ca91906145e7565b90815260200160405180910390206001015460e1836040516117ec91906145e7565b908152602001604051809103902060020154105b92915050565b61180e6138a4565b60d555565b61181b6138a4565b6000811161186b5760405162461bcd60e51b815260206004820152601960248201527f30206d617820746f6b656e7320746f206275792076616c7565000000000000006044820152606401610cee565b60cf8054908290556040805182815260208101849052428183015290517f76f9e5e1f6af6a9f180708b77a5c99210fbf19b91f1f194f3918c262b8edf77c9181900360600190a15050565b6000806118c283612e17565b90506118cc612c43565b60ce546118d990836145a6565b6118e391906145d3565b9392505050565b6118f26138a4565b6118fa613bdf565b565b60006119066138fe565b60cd546001600160a01b03166119555760405162461bcd60e51b815260206004820152601460248201527314d85b19481d1bdad95b881b9bdd08185919195960621b6044820152606401610cee565b33600090815260de602052604090205460ff16156119b55760405162461bcd60e51b815260206004820152601b60248201527f54686973204164647265737320697320426c61636b6c697374656400000000006044820152606401610cee565b60d654600160a81b900460ff1615611a265733600090815260df602052604090205460ff16611a265760405162461bcd60e51b815260206004820152601e60248201527f55736572206e6f742077686974656c697374656420666f7220636c61696d00006044820152606401610cee565b60cc54421015611a785760405162461bcd60e51b815260206004820152601960248201527f436c61696d20686173206e6f74207374617274656420796574000000000000006044820152606401610cee565b33600090815260dd602052604090205460ff1615611aca5760405162461bcd60e51b815260206004820152600f60248201526e105b1c9958591e4818db185a5b5959608a1b6044820152606401610cee565b33600090815260dd60209081526040808320805460ff1916600117905560dc90915290205480611b2f5760405162461bcd60e51b815260206004820152601060248201526f4e6f7468696e6720746f20636c61696d60801b6044820152606401610cee565b33600081815260dc6020908152604080832083905560cd54815163a9059cbb60e01b8152600481019590955260248501869052905192936001600160a01b039091169263a9059cbb92604480840193919291829003018187875af1158015611b9b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611bbf919061479f565b905080611c065760405162461bcd60e51b8152602060048201526015602482015274151bdad95b881d1c985b9cd9995c8819985a5b1959605a1b6044820152606401610cee565b6040805183815242602082015233917f9923b4306c6c030f2bdfbf156517d5983b87e15b96176da122cd4f2effa4ba7b910160405180910390a260019250505090565b611c516138a4565b60e181604051611c6191906145e7565b9081526040519081900360200190206004015460ff16611cc35760405162461bcd60e51b815260206004820152601960248201527f50726f6d6f20636f646520646f6573206e6f74206578697374000000000000006044820152606401610cee565b600060e182604051611cd591906145e7565b908152604051908190036020019020600401805491151560ff1990921691909117905560005b60e254811015611e0657818051906020012060e28281548110611d2057611d2061457a565b90600052602060002001604051611d3791906147bc565b604051809103902003611df457805b60e254611d559060019061475d565b811015611dbf5760e2611d69826001614603565b81548110611d7957611d7961457a565b9060005260206000200160e28281548110611d9657611d9661457a565b906000526020600020019081611dac9190614832565b5080611db781614904565b915050611d46565b5060e2805480611dd157611dd161491d565b600190038181906000526020600020016000611ded9190613dde565b9055611e06565b80611dfe81614904565b915050611cfb565b507f0172ee71cdc467f0f86d1a24f4f688dcd0e8152c8bcf29653655cd6def30012381604051611e36919061439a565b60405180910390a150565b611e496138a4565b60005b81811015611ebb57600060df6000858585818110611e6c57611e6c61457a565b9050602002016020810190611e819190614038565b6001600160a01b031681526020810191909152604001600020805460ff191691151591909117905580611eb381614904565b915050611e4c565b505050565b600054610100900460ff1615808015611ee05750600054600160ff909116105b80611efa5750303b158015611efa575060005460ff166001145b611f5d5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401610cee565b6000805460ff191660011790558015611f80576000805461ff0019166101001790555b6001600160a01b038716611fcb5760405162461bcd60e51b815260206004820152601260248201527130783132332055534454206164647265737360701b6044820152606401610cee565b6001600160a01b0388166120215760405162461bcd60e51b815260206004820152601860248201527f30783132332061676772656761746f72206164647265737300000000000000006044820152606401610cee565b85851161205f5760405162461bcd60e51b815260206004820152600c60248201526b496e76616c69642074696d6560a01b6044820152606401610cee565b612067613c31565b61206f613c64565b612077613c94565b670de0b6b3a764000060ce5560db80546001600160a01b03808b166001600160a01b03199283161790925560da8054928a169290911691909117905560ca86905560cb8590556120ca60d7856003613e18565b5060cf83905560d680546001600160a01b0319166001600160a01b0384161790556202a30060d55560ca5460cb5460408051928352602083019190915242908201527f23f6ad8232d75562dd1c6b37dfc895af6bfc1ecd0fb3b88722c6a5e6b4dc9a209060600160405180910390a1801561217f576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b5050505050505050565b60008360ca5442101580156121a0575060cb544211155b6121e65760405162461bcd60e51b8152602060048201526017602482015276496e76616c69642074696d6520666f7220627579696e6760481b6044820152606401610cee565b6000811161222c5760405162461bcd60e51b8152602060048201526013602482015272125b9d985b1a59081cd85b1948185b5bdd5b9d606a1b6044820152606401610cee565b6122346138fe565b600061223f86612e17565b9050600060646122508860086145a6565b61225a91906145d3565b86519091501561240c5760e18660405161227491906145e7565b9081526040519081900360200190206004015460ff166122cb5760405162461bcd60e51b8152602060048201526012602482015271496e76616c69642070726f6d6f20636f646560701b6044820152606401610cee565b4260e1876040516122dc91906145e7565b90815260405190819003602001902054101561232f5760405162461bcd60e51b8152602060048201526012602482015271457870697265642070726f6d6f20636f646560701b6044820152606401610cee565b60e18660405161233f91906145e7565b90815260200160405180910390206001015460e18760405161236191906145e7565b908152602001604051809103902060020154106123c05760405162461bcd60e51b815260206004820152601e60248201527f50726f6d6f20636f6465207573616765206c696d6974207265616368656400006044820152606401610cee565b6000879050606460e1886040516123d791906145e7565b908152602001604051809103902060030154896123f491906145a6565b6123fe91906145d3565b6124089082614603565b9750505b33600090815260e360205260409020805461242690614616565b90506000036124df57600061243961399d565b33600090815260e360205260409020909150612455828261469e565b503360e48260405161246791906145e7565b90815260405190819003602001902080546001600160a01b03929092166001600160a01b031990921691909117905561249d3390565b6001600160a01b03167fb9e788fc28e69f876035840c2b162474437d35622a8cfa689a88c04403bf7ee6876040516124d5919061439a565b60405180910390a2505b8660c960008282546124f19190614603565b909155505060d15415612516578660d160008282546125109190614603565b90915550505b600060d15460c9541161252b5760d15461252f565b60c9545b905060d760000160d054815481106125495761254961457a565b9060005260206000200154811180612583575060d760020160d054815481106125745761257461457a565b90600052602060002001544210155b156126b65760d760020160d054815481106125a0576125a061457a565b906000526020600020015442106125e7578760d760000160d054815481106125ca576125ca61457a565b90600052602060002001546125df9190614603565b60d155612601565b60d654600160a01b900460ff161561260157612601613a93565b600060d7810160d0548154811061261a5761261a61457a565b9060005260206000200154821161265e578160d760000160d054815481106126445761264461457a565b9060005260206000200154612659919061475d565b612661565b60005b60d480546001818101835560009283527f9780e26d96b1f2a9a18ef8fc72d589dbf03ef788137b64f43897e83a91e7feec90910183905560d0805493945090929091906126af908490614603565b9091555050505b85511561274457600060e4876040516126cf91906145e7565b908152604051908190036020019020546001600160a01b03169050801580159061270257506001600160a01b0381163314155b156127425760ce5461271490846145a6565b6001600160a01b038216600090815260dc60205260408120805490919061273c908490614603565b90915550505b505b60ce5461275190896145a6565b33600090815260dc602052604081208054909190612770908490614603565b925050819055508260d260008282546127899190614603565b909155505060da546000906001600160a01b031663dd62ed3e336040516001600160e01b031960e084901b1681526001600160a01b039091166004820152306024820152604401602060405180830381865afa1580156127ed573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906128119190614933565b9050600061282464e8d4a51000866145d3565b9050818111156128805760405162461bcd60e51b815260206004820152602160248201527f4d616b65207375726520746f2061646420656e6f75676820616c6c6f77616e636044820152606560f81b6064820152608401610cee565b60da546000906001600160a01b03163360d6546040516001600160a01b039283166024820152911660448201526064810184905260840160408051601f198184030181529181526020820180516001600160e01b03166323b872dd60e01b179052516128ec91906145e7565b6000604051808303816000865af19150503d8060008114612929576040519150601f19603f3d011682016040523d82523d6000602084013e61292e565b606091505b50509050806129765760405162461bcd60e51b8152602060048201526014602482015273151bdad95b881c185e5b595b9d0819985a5b195960621b6044820152606401610cee565b60da546001600160a01b03168b336001600160a01b03167f4d8aead3491b7eba4b5c7a65fc17e493b9e63f9e433522fc5f6a85a168fc9d36858a426040516129d1939291909283526020830191909152604082015260600190565b60405180910390a45060019a9950505050505050505050565b60006129f582612e17565b905061180064e8d4a51000826145d3565b612a0e6138a4565b60d15460d380546001810182556000919091527f915c3eb987b20e1af620c1403197bf687fb7f18513b3a73fde6e78c7072c41a6015560d654600160a01b900460ff1615612a5e57612a5e613a93565b60d760000160d05481548110612a7657612a7661457a565b906000526020600020015460d1541015612af65760d15460d49060d760000160d05481548110612aa857612aa861457a565b9060005260206000200154612abd919061475d565b8154600181018355600092835260208320015560d70160d05481548110612ae657612ae661457a565b60009182526020909120015460d1555b60d08054906000612b0683614904565b9190505550565b60008060008060008060e187604051612b2691906145e7565b9081526040519081900360200190208054600182015460028301546003840154600490940154929b919a50985091965060ff16945092505050565b612b696138a4565b6118fa6000613cbb565b612b7b6138a4565b8060d76002610c7e565b612b8d6138a4565b6118fa613d0d565b612b9d6138a4565b8060d26000828254612baf9190614603565b909155505050565b612bbf6138a4565b8060d76001610c7e565b612bd16138a4565b60005b81811015611ebb57600060de6000858585818110612bf457612bf461457a565b9050602002016020810190612c099190614038565b6001600160a01b031681526020810191909152604001600020805460ff191691151591909117905580612c3b81614904565b915050612bd4565b60008060db60009054906101000a90046001600160a01b03166001600160a01b031663feaf968c6040518163ffffffff1660e01b815260040160a060405180830381865afa158015612c99573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612cbd9190614966565b505050915050806402540be40061180091906149b6565b60e36020526000908152604090208054612ced90614616565b80601f0160208091040260200160405190810160405280929190818152602001828054612d1990614616565b8015612d665780601f10612d3b57610100808354040283529160200191612d66565b820191906000526020600020905b815481529060010190602001808311612d4957829003601f168201915b505050505081565b612d766138a4565b6040518060a00160405280848152602001838152602001600081526020018281526020016001151581525060e18686604051612db39291906149e6565b9081526040805160209281900383019020835181559183015160018301558201516002820155606082015160038201556080909101516004909101805460ff19169115159190911790555050505050565b612e0c6138a4565b60d09190915560d155565b600080600060d154600014612e2e5760d154612e32565b60c9545b905060cf54841115612e865760405162461bcd60e51b815260206004820181905260248201527f416d6f756e742065786365656473206d617820746f6b656e7320746f206275796044820152606401610cee565b60d760000160d05481548110612e9e57612e9e61457a565b90600052602060002001548185612eb59190614603565b1180612ee3575060d760020160d05481548110612ed457612ed461457a565b90600052602060002001544210155b156131155760d754612ef79060019061475d565b60d05410612f365760405162461bcd60e51b815260206004820152600c60248201526b57726f6e6720706172616d7360a01b6044820152606401610cee565b60d760020160d05481548110612f4e57612f4e61457a565b906000526020600020015442106130615760d05460d790612f70906001614603565b81548110612f8057612f8061457a565b90600052602060002001548460d7600060038110612fa057612fa061457a565b0160d05481548110612fb457612fb461457a565b9060005260206000200154612fc99190614603565b11156130235760405162461bcd60e51b815260206004820152602360248201527f43616e74205075726368617365204d6f726520696e20696e646976696475616c604482015262040e8f60eb1b6064820152608401610cee565b60d05460d890613034906001614603565b815481106130445761304461457a565b90600052602060002001548461305a91906145a6565b9150613146565b60008160d7820160d0548154811061307b5761307b61457a565b9060005260206000200154613090919061475d565b60d05490915060d8906130a4906001614603565b815481106130b4576130b461457a565b906000526020600020015481866130cb919061475d565b6130d591906145a6565b60d760010160d054815481106130ed576130ed61457a565b90600052602060002001548261310391906145a6565b61310d9190614603565b925050613146565b60d760010160d0548154811061312d5761312d61457a565b90600052602060002001548461314391906145a6565b91505b5092915050565b60006131576138a4565b60cb548411801561316757504284115b6131b35760405162461bcd60e51b815260206004820152601860248201527f496e76616c696420636c61696d2073746172742074696d6500000000000000006044820152606401610cee565b60ce5460c9546131c391906145a6565b83101561320a5760405162461bcd60e51b8152602060048201526015602482015274151bdad95b9cc81b195cdcc81d1a185b881cdbdb19605a1b6044820152606401610cee565b6001600160a01b0382166132565760405162461bcd60e51b8152602060048201526013602482015272307830303020746f6b656e206164647265737360681b6044820152606401610cee565b60cc541561329a5760405162461bcd60e51b815260206004820152601160248201527010db185a5b48185b1c9958591e481cd95d607a1b6044820152606401610cee565b60cc84905560cd80546001600160a01b0319166001600160a01b0384169081179091556000906323b872dd336040516001600160e01b031960e084901b1681526001600160a01b039091166004820152306024820152604481018790526064016020604051808303816000875af1158015613319573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061333d919061479f565b9050806133845760405162461bcd60e51b8152602060048201526015602482015274151bdad95b881d1c985b9cd9995c8819985a5b1959605a1b6044820152606401610cee565b60cd54604080518681524260208201526001600160a01b03909216917fdc9670dbabdd488b372eb16ebe49a39b3124a12cdffdcefbc89834a408bf8ff8910160405180910390a2506001949350505050565b606060d782600381106133eb576133eb61457a565b0180548060200260200160405190810160405280929190818152602001828054801561343657602002820191906000526020600020905b815481526020019060010190808311613422575b50505050509050919050565b61344a6138a4565b60005b81811015611ebb57600160de600085858581811061346d5761346d61457a565b90506020020160208101906134829190614038565b6001600160a01b031681526020810191909152604001600020805460ff1916911515919091179055806134b481614904565b91505061344d565b606060e2805480602002602001604051908101604052809291908181526020016000905b8282101561358c5783829060005260206000200180546134ff90614616565b80601f016020809104026020016040519081016040528092919081815260200182805461352b90614616565b80156135785780601f1061354d57610100808354040283529160200191613578565b820191906000526020600020905b81548152906001019060200180831161355b57829003601f168201915b5050505050815260200190600101906134e0565b50505050905090565b60d481815481106135a557600080fd5b600091825260209091200154905081565b606060d480548060200260200160405190810160405280929190818152602001828054801561360457602002820191906000526020600020905b8154815260200190600101908083116135f0575b5050505050905090565b6136166138a4565b6001600160a01b0381166136655760405162461bcd60e51b8152602060048201526016602482015275616464726573732063616e6e6f74206265207a65726f60501b6044820152606401610cee565b60d680546001600160a01b0319166001600160a01b0392909216919091179055565b60d381815481106135a557600080fd5b60d782600381106136a757600080fd5b0181815481106136b657600080fd5b90600052602060002001600091509150505481565b6136d36138a4565b60005b81811015611ebb57600160df60008585858181106136f6576136f661457a565b905060200201602081019061370b9190614038565b6001600160a01b031681526020810191909152604001600020805460ff19169115159190911790558061373d81614904565b9150506136d6565b61374d6138a4565b6001600160a01b0381166137b25760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610cee565b6137bb81613cbb565b50565b6137c66138a4565b8281146138075760405162461bcd60e51b815260206004820152600f60248201526e098cadccee8d040dad2e6dac2e8c6d608b1b6044820152606401610cee565b60005b8381101561389d578282828181106138245761382461457a565b9050602002013560dc60008787858181106138415761384161457a565b90506020020160208101906138569190614038565b6001600160a01b03166001600160a01b0316815260200190815260200160002060008282546138859190614603565b9091555081905061389581614904565b91505061380a565b5050505050565b6097546001600160a01b031633146118fa5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610cee565b60655460ff16156118fa5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610cee565b6002600154036139965760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610cee565b6002600155565b606060006040518060600160405280603e8152602001614a56603e913960408051600c808252818301909252919250906000908260208201818036833701905050905060005b828110156115b1578351604080513360601b6bffffffffffffffffffffffff1916602080830191909152426034830152605480830186905283518084039091018152607490920190925280519101208591613a3d916149f6565b81518110613a4d57613a4d61457a565b602001015160f81c60f81b828281518110613a6a57613a6a61457a565b60200101906001600160f81b031916908160001a90535080613a8b81614904565b9150506139e3565b60005b60d05460d954613aa6919061475d565b8110156137bb5760d554613aba90826145a6565b613ac49042614603565b60d05460d990613ad5908490614603565b81548110613ae557613ae561457a565b60009182526020909120015580613afb81614904565b915050613a96565b80471015613b415760405162461bcd60e51b815260206004820152600b60248201526a4c6f772062616c616e636560a81b6044820152606401610cee565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114613b8e576040519150601f19603f3d011682016040523d82523d6000602084013e613b93565b606091505b5050905080611ebb5760405162461bcd60e51b81526020600482015260126024820152711155120814185e5b595b9d0819985a5b195960721b6044820152606401610cee565b60018055565b613be7613d4a565b6065805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b600054610100900460ff16613c585760405162461bcd60e51b8152600401610cee90614a0a565b6065805460ff19169055565b600054610100900460ff16613c8b5760405162461bcd60e51b8152600401610cee90614a0a565b6118fa33613cbb565b600054610100900460ff16613bd95760405162461bcd60e51b8152600401610cee90614a0a565b609780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b613d156138fe565b6065805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258613c143390565b60655460ff166118fa5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610cee565b828054828255906000526020600020908101928215613dce579160200282015b82811115613dce578251825591602001919060010190613db3565b50613dda929150613e64565b5090565b508054613dea90614616565b6000825580601f10613dfa575050565b601f0160209004906000526020600020908101906137bb9190613e64565b8260038101928215613e58579160200282015b82811115613e585782518051613e48918491602090910190613d93565b5091602001919060010190613e2b565b50613dda929150613e79565b5b80821115613dda5760008155600101613e65565b80821115613dda576000613e8d8282613e96565b50600101613e79565b50805460008255906000526020600020908101906137bb9190613e64565b634e487b7160e01b600052604160045260246000fd5b604051606081016001600160401b0381118282101715613eec57613eec613eb4565b60405290565b604051601f8201601f191681016001600160401b0381118282101715613f1a57613f1a613eb4565b604052919050565b600082601f830112613f3357600080fd5b813560206001600160401b03821115613f4e57613f4e613eb4565b8160051b613f5d828201613ef2565b9283528481018201928281019087851115613f7757600080fd5b83870192505b84831015613f9657823582529183019190830190613f7d565b979650505050505050565b600060208284031215613fb357600080fd5b81356001600160401b03811115613fc957600080fd5b613fd584828501613f22565b949350505050565b600060208284031215613fef57600080fd5b5035919050565b80151581146137bb57600080fd5b60006020828403121561401657600080fd5b81356118e381613ff6565b80356001600160a01b0381168114610dcd57600080fd5b60006020828403121561404a57600080fd5b6118e382614021565b6000806040838503121561406657600080fd5b50508035926020909101359150565b600082601f83011261408657600080fd5b81356001600160401b0381111561409f5761409f613eb4565b6140b2601f8201601f1916602001613ef2565b8181528460208386010111156140c757600080fd5b816020850160208301376000918101602001919091529392505050565b6000806000606084860312156140f957600080fd5b8335925060208401356001600160401b038082111561411757600080fd5b61412387838801614075565b9350604086013591508082111561413957600080fd5b5061414686828701614075565b9150509250925092565b6000806000806080858703121561416657600080fd5b84356001600160401b0381111561417c57600080fd5b61418887828801614075565b97602087013597506040870135966060013595509350505050565b6000602082840312156141b557600080fd5b81356001600160401b038111156141cb57600080fd5b613fd584828501614075565b60008083601f8401126141e957600080fd5b5081356001600160401b0381111561420057600080fd5b6020830191508360208260051b850101111561421b57600080fd5b9250929050565b6000806020838503121561423557600080fd5b82356001600160401b0381111561424b57600080fd5b614257858286016141d7565b90969095509350505050565b600080600080600080600060e0888a03121561427e57600080fd5b61428788614021565b965061429560208901614021565b9550604088013594506060880135935060808801356001600160401b03808211156142bf57600080fd5b818a0191508a601f8301126142d357600080fd5b6142db613eca565b80606084018d8111156142ed57600080fd5b845b8181101561432057848135111561430557600080fd5b6143128f82358801613f22565b8452602093840193016142ef565b50508096505050505060a0880135915061433c60c08901614021565b905092959891949750929550565b60005b8381101561436557818101518382015260200161434d565b50506000910152565b6000815180845261438681602086016020860161434a565b601f01601f19169290920160200192915050565b6020815260006118e3602083018461436e565b6000806000806000608086880312156143c557600080fd5b85356001600160401b03808211156143dc57600080fd5b818801915088601f8301126143f057600080fd5b8135818111156143ff57600080fd5b89602082850101111561441157600080fd5b60209283019a909950918801359760408101359750606001359550909350505050565b60008060006060848603121561444957600080fd5b833592506020840135915061446060408501614021565b90509250925092565b6020808252825182820181905260009190848201906040850190845b818110156144a157835183529284019291840191600101614485565b50909695505050505050565b6000602080830181845280855180835260408601915060408160051b870101925083870160005b8281101561450257603f198886030184526144f085835161436e565b945092850192908501906001016144d4565b5092979650505050505050565b6000806000806040858703121561452557600080fd5b84356001600160401b038082111561453c57600080fd5b614548888389016141d7565b9096509450602087013591508082111561456157600080fd5b5061456e878288016141d7565b95989497509550505050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b808202811582820484141761180057611800614590565b634e487b7160e01b600052601260045260246000fd5b6000826145e2576145e26145bd565b500490565b600082516145f981846020870161434a565b9190910192915050565b8082018082111561180057611800614590565b600181811c9082168061462a57607f821691505b60208210810361464a57634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115611ebb57600081815260208120601f850160051c810160208610156146775750805b601f850160051c820191505b8181101561469657828155600101614683565b505050505050565b81516001600160401b038111156146b7576146b7613eb4565b6146cb816146c58454614616565b84614650565b602080601f83116001811461470057600084156146e85750858301515b600019600386901b1c1916600185901b178555614696565b600085815260208120601f198616915b8281101561472f57888601518255948401946001909101908401614710565b508582101561474d5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b8181038181111561180057611800614590565b608081526000614783608083018761436e565b6020830195909552506040810192909252606090910152919050565b6000602082840312156147b157600080fd5b81516118e381613ff6565b60008083546147ca81614616565b600182811680156147e257600181146147f757614826565b60ff1984168752821515830287019450614826565b8760005260208060002060005b8581101561481d5781548a820152908401908201614804565b50505082870194505b50929695505050505050565b81810361483d575050565b6148478254614616565b6001600160401b0381111561485e5761485e613eb4565b61486c816146c58454614616565b6000601f8211600181146148a057600083156148885750848201545b600019600385901b1c1916600184901b17845561389d565b600085815260209020601f19841690600086815260209020845b838110156148da57828601548255600195860195909101906020016148ba565b508583101561474d5793015460001960f8600387901b161c19169092555050600190811b01905550565b60006001820161491657614916614590565b5060010190565b634e487b7160e01b600052603160045260246000fd5b60006020828403121561494557600080fd5b5051919050565b805169ffffffffffffffffffff81168114610dcd57600080fd5b600080600080600060a0868803121561497e57600080fd5b6149878661494c565b94506020860151935060408601519250606086015191506149aa6080870161494c565b90509295509295909350565b80820260008212600160ff1b841416156149d2576149d2614590565b818105831482151761180057611800614590565b8183823760009101908152919050565b600082614a0557614a056145bd565b500690565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b60608201526080019056fe6162636465666768696a6b6c6d6e6f707172737475767778797a4142434445464748494a4b4c4d4e4f505152535455565758595a31323334353637383930a26469706673582212203101c72bdcf5d4d5a2a570ce5a1af874b581488215dda23a96ac79018015ef5664736f6c63430008130033
Deployed Bytecode
0x6080604052600436106103e45760003560e01c806378e9792511610208578063bd45d3b311610118578063e6da9213116100ab578063f04d688f1161007a578063f04d688f14610bca578063f2fde38b14610be0578063f597573f14610c00578063fb9a4acd14610c20578063fe575a8714610c4057600080fd5b8063e6da921314610b54578063e985e36714610b74578063eadd94ec14610b94578063edec5f2714610baa57600080fd5b8063cad00556116100e7578063cad0055614610ade578063cff805ab14610afe578063e19648db14610b14578063e32204dd14610b3457600080fd5b8063bd45d3b314610a67578063c23326f314610a89578063c49cc64514610aa9578063c8adff0114610ac957600080fd5b8063950ba1fe1161019b5780639cfa0f7c1161016a5780639cfa0f7c146109c4578063ae104265146109da578063b2caaebd146109fa578063ba166a3914610a1a578063bb3d676a14610a4757600080fd5b8063950ba1fe146109165780639534dd3e146109575780639849aad6146109845780639a89c1fb146109a457600080fd5b80638632e7f7116101d75780638632e7f71461088f57806389daf799146108af5780638da5cb5b146108cf5780638e15f4731461090157600080fd5b806378e9792514610824578063795146ec1461083a5780638456cb591461085a57806385cc9d931461086f57600080fd5b80633f4ba83a116103035780635c975abb1161029657806363e408791161026557806363e4087914610760578063641046f41461078057806369fbd9a814610795578063715018a6146107df57806373b2e80e146107f457600080fd5b80635c975abb146106e25780635df4f353146106fa578063625ae3da1461072a57806363b201171461074a57600080fd5b806353d99207116102d257806353d992071461066b578063548db1741461068c57806357405d05146106ac5780635bc34f71146106cc57600080fd5b80633f4ba83a1461060b57806343568eae146106205780634e71d92d1461063657806350e8b85d1461064b57600080fd5b80631fa2bc921161037b57806329a5a0b61161034a57806329a5a0b61461058f5780633197cbb6146105af57806333f76178146105c55780633af32abf146105db57600080fd5b80631fa2bc921461050e57806323a04fc31461052f57806323a8f1c01461054f578063278c278b1461056f57600080fd5b80630dc9c838116103b75780630dc9c8381461049b5780630e5c1ddf146104bb5780631142dadb146104ce5780631ddc6091146104ee57600080fd5b806305738b48146103e957806307f180821461040b5780630a200fc7146104405780630ba36dcd14610460575b600080fd5b3480156103f557600080fd5b50610409610404366004613fa1565b610c70565b005b34801561041757600080fd5b5061042b610426366004613fdd565b610c96565b60405190151581526020015b60405180910390f35b34801561044c57600080fd5b5061040961045b366004614004565b610dd2565b34801561046c57600080fd5b5061048d61047b366004614038565b60dc6020526000908152604090205481565b604051908152602001610437565b3480156104a757600080fd5b506104096104b6366004614053565b610df8565b61042b6104c93660046140e4565b610eb5565b3480156104da57600080fd5b506104096104e9366004614150565b6115b9565b3480156104fa57600080fd5b50610409610509366004614004565b61173a565b34801561051a57600080fd5b5060d65461042b90600160a01b900460ff1681565b34801561053b57600080fd5b5061042b61054a3660046141a3565b611760565b34801561055b57600080fd5b5061040961056a366004613fdd565b611806565b34801561057b57600080fd5b5061040961058a366004613fdd565b611813565b34801561059b57600080fd5b5061048d6105aa366004613fdd565b6118b6565b3480156105bb57600080fd5b5061048d60cb5481565b3480156105d157600080fd5b5061048d60ce5481565b3480156105e757600080fd5b5061042b6105f6366004614038565b60df6020526000908152604090205460ff1681565b34801561061757600080fd5b506104096118ea565b34801561062c57600080fd5b5061048d60d55481565b34801561064257600080fd5b5061042b6118fc565b34801561065757600080fd5b506104096106663660046141a3565b611c49565b34801561067757600080fd5b5060d65461042b90600160a81b900460ff1681565b34801561069857600080fd5b506104096106a7366004614222565b611e41565b3480156106b857600080fd5b506104096106c7366004614263565b611ec0565b3480156106d857600080fd5b5061048d60d05481565b3480156106ee57600080fd5b5060655460ff1661042b565b34801561070657600080fd5b5061042b610715366004614038565b60e06020526000908152604090205460ff1681565b34801561073657600080fd5b5061042b6107453660046140e4565b612189565b34801561075657600080fd5b5061048d60c95481565b34801561076c57600080fd5b5061048d61077b366004613fdd565b6129ea565b34801561078c57600080fd5b50610409612a06565b3480156107a157600080fd5b506107b56107b03660046141a3565b612b0d565b6040805195865260208601949094529284019190915260608301521515608082015260a001610437565b3480156107eb57600080fd5b50610409612b61565b34801561080057600080fd5b5061042b61080f366004614038565b60dd6020526000908152604090205460ff1681565b34801561083057600080fd5b5061048d60ca5481565b34801561084657600080fd5b50610409610855366004613fa1565b612b73565b34801561086657600080fd5b50610409612b85565b34801561087b57600080fd5b5061040961088a366004613fdd565b612b95565b34801561089b57600080fd5b506104096108aa366004613fa1565b612bb7565b3480156108bb57600080fd5b506104096108ca366004614222565b612bc9565b3480156108db57600080fd5b506097546001600160a01b03165b6040516001600160a01b039091168152602001610437565b34801561090d57600080fd5b5061048d612c43565b34801561092257600080fd5b506108e96109313660046141a3565b805160208183018101805160e4825292820191909301209152546001600160a01b031681565b34801561096357600080fd5b50610977610972366004614038565b612cd4565b604051610437919061439a565b34801561099057600080fd5b5061040961099f3660046143ad565b612d6e565b3480156109b057600080fd5b506104096109bf366004614053565b612e04565b3480156109d057600080fd5b5061048d60cf5481565b3480156109e657600080fd5b5061048d6109f5366004613fdd565b612e17565b348015610a0657600080fd5b5061042b610a15366004614434565b61314d565b348015610a2657600080fd5b50610a3a610a35366004613fdd565b6133d6565b6040516104379190614469565b348015610a5357600080fd5b50610409610a62366004614222565b613442565b348015610a7357600080fd5b50610a7c6134bc565b60405161043791906144ad565b348015610a9557600080fd5b5061048d610aa4366004613fdd565b613595565b348015610ab557600080fd5b5060db546108e9906001600160a01b031681565b348015610ad557600080fd5b50610a3a6135b6565b348015610aea57600080fd5b50610409610af9366004614038565b61360e565b348015610b0a57600080fd5b5061048d60d15481565b348015610b2057600080fd5b5061048d610b2f366004613fdd565b613687565b348015610b4057600080fd5b5060d6546108e9906001600160a01b031681565b348015610b6057600080fd5b5061048d610b6f366004614053565b613697565b348015610b8057600080fd5b5060cd546108e9906001600160a01b031681565b348015610ba057600080fd5b5061048d60d25481565b348015610bb657600080fd5b50610409610bc5366004614222565b6136cb565b348015610bd657600080fd5b5061048d60cc5481565b348015610bec57600080fd5b50610409610bfb366004614038565b613745565b348015610c0c57600080fd5b5060da546108e9906001600160a01b031681565b348015610c2c57600080fd5b50610409610c3b36600461450f565b6137be565b348015610c4c57600080fd5b5061042b610c5b366004614038565b60de6020526000908152604090205460ff1681565b610c786138a4565b8060d760005b019080519060200190610c92929190613d93565b5050565b6000610ca06138a4565b600060cc5411610cf75760405162461bcd60e51b815260206004820152601a60248201527f496e697469616c20636c61696d2064617461206e6f742073657400000000000060448201526064015b60405180910390fd5b60cb548211610d3b5760405162461bcd60e51b815260206004820152601060248201526f53616c6520696e2070726f677265737360801b6044820152606401610cee565b428211610d805760405162461bcd60e51b815260206004820152601360248201527210db185a5b481cdd185c9d081a5b881c185cdd606a1b6044820152606401610cee565b60cc8054908390556040805182815260208101859052428183015290517f5f3a900c85949962b4cc192dd3714dae64071dc2e907049ec720b023270905a49181900360600190a160019150505b919050565b610dda6138a4565b60d68054911515600160a01b0260ff60a01b19909216919091179055565b610e006138a4565b8115610e5a5760ca8054908390556040805182815260208101859052428183015290516414d510549560da1b917fddd2ed237e6993c9380182683f2c8bec486aaaa429528852cd74dbdb96cea0b2919081900360600190a2505b8015610c925760cb8054908290556040805182815260208101849052428183015290516211539160ea1b917fddd2ed237e6993c9380182683f2c8bec486aaaa429528852cd74dbdb96cea0b2919081900360600190a2505050565b60008360ca544210158015610ecc575060cb544211155b610f125760405162461bcd60e51b8152602060048201526017602482015276496e76616c69642074696d6520666f7220627579696e6760481b6044820152606401610cee565b60008111610f585760405162461bcd60e51b8152602060048201526013602482015272125b9d985b1a59081cd85b1948185b5bdd5b9d606a1b6044820152606401610cee565b610f606138fe565b610f68613944565b6000610f7386612e17565b905060006064610f848860086145a6565b610f8e91906145d3565b8651909150156111405760e186604051610fa891906145e7565b9081526040519081900360200190206004015460ff16610fff5760405162461bcd60e51b8152602060048201526012602482015271496e76616c69642070726f6d6f20636f646560701b6044820152606401610cee565b4260e18760405161101091906145e7565b9081526040519081900360200190205410156110635760405162461bcd60e51b8152602060048201526012602482015271457870697265642070726f6d6f20636f646560701b6044820152606401610cee565b60e18660405161107391906145e7565b90815260200160405180910390206001015460e18760405161109591906145e7565b908152602001604051809103902060020154106110f45760405162461bcd60e51b815260206004820152601e60248201527f50726f6d6f20636f6465207573616765206c696d6974207265616368656400006044820152606401610cee565b6000879050606460e18860405161110b91906145e7565b9081526020016040518091039020600301548961112891906145a6565b61113291906145d3565b61113c9082614603565b9750505b33600090815260e360205260409020805461115a90614616565b905060000361121357600061116d61399d565b33600090815260e360205260409020909150611189828261469e565b503360e48260405161119b91906145e7565b90815260405190819003602001902080546001600160a01b03929092166001600160a01b03199092169190911790556111d13390565b6001600160a01b03167fb9e788fc28e69f876035840c2b162474437d35622a8cfa689a88c04403bf7ee687604051611209919061439a565b60405180910390a2505b600061121d612c43565b60ce5461122a90856145a6565b61123491906145d3565b9050803410156112755760405162461bcd60e51b815260206004820152600c60248201526b13195cdcc81c185e5b595b9d60a21b6044820152606401610cee565b6000611281823461475d565b90508860c960008282546112959190614603565b909155505060d154156112ba578860d160008282546112b49190614603565b90915550505b600060d15460c954116112cf5760d1546112d3565b60c9545b905060d760000160d054815481106112ed576112ed61457a565b9060005260206000200154811180611327575060d760020160d054815481106113185761131861457a565b90600052602060002001544210155b1561145a5760d760020160d054815481106113445761134461457a565b9060005260206000200154421061138b578960d760000160d0548154811061136e5761136e61457a565b90600052602060002001546113839190614603565b60d1556113a5565b60d654600160a01b900460ff16156113a5576113a5613a93565b600060d7810160d054815481106113be576113be61457a565b90600052602060002001548211611402578160d760000160d054815481106113e8576113e861457a565b90600052602060002001546113fd919061475d565b611405565b60005b60d480546001818101835560009283527f9780e26d96b1f2a9a18ef8fc72d589dbf03ef788137b64f43897e83a91e7feec90910183905560d080549394509092909190611453908490614603565b9091555050505b8751156114e857600060e48960405161147391906145e7565b908152604051908190036020019020546001600160a01b0316905080158015906114a657506001600160a01b0381163314155b156114e65760ce546114b890866145a6565b6001600160a01b038216600090815260dc6020526040812080549091906114e0908490614603565b90915550505b505b60ce546114f5908b6145a6565b33600090815260dc602052604081208054909190611514908490614603565b925050819055508460d2600082825461152d9190614603565b909155505060d654611548906001600160a01b031684613b03565b8115611558576115583383613b03565b6040805184815260208101879052428183015290516000918c9133917f4d8aead3491b7eba4b5c7a65fc17e493b9e63f9e433522fc5f6a85a168fc9d36919081900360600190a46001965050505050506115b160018055565b509392505050565b6115c16138a4565b60e1846040516115d191906145e7565b9081526040519081900360200190206004015460ff16156116345760405162461bcd60e51b815260206004820152601960248201527f50726f6d6f20636f646520616c726561647920657869737473000000000000006044820152606401610cee565b6040805160a0810182528481526020810184905260008183015260608101839052600160808201529051819060e19061166e9088906145e7565b90815260408051602092819003830190208351815591830151600180840191909155908301516002830155606083015160038301556080909201516004909101805460ff191691151591909117905560e2805491820181556000527f26a62d79192c78c3891f38189368673110b88734c09ed7453515def7525e07d8016116f5868261469e565b507f5dbb1a2c8bb1dd1848e9198452c16ad3409cc2aec5dfeab39b8075f5c8e16f6d8585858560405161172b9493929190614770565b60405180910390a15050505050565b6117426138a4565b60d68054911515600160a81b0260ff60a81b19909216919091179055565b600060e18260405161177291906145e7565b9081526040519081900360200190206004015460ff1680156117b357504260e1836040516117a091906145e7565b9081526040519081900360200190205410155b8015611800575060e1826040516117ca91906145e7565b90815260200160405180910390206001015460e1836040516117ec91906145e7565b908152602001604051809103902060020154105b92915050565b61180e6138a4565b60d555565b61181b6138a4565b6000811161186b5760405162461bcd60e51b815260206004820152601960248201527f30206d617820746f6b656e7320746f206275792076616c7565000000000000006044820152606401610cee565b60cf8054908290556040805182815260208101849052428183015290517f76f9e5e1f6af6a9f180708b77a5c99210fbf19b91f1f194f3918c262b8edf77c9181900360600190a15050565b6000806118c283612e17565b90506118cc612c43565b60ce546118d990836145a6565b6118e391906145d3565b9392505050565b6118f26138a4565b6118fa613bdf565b565b60006119066138fe565b60cd546001600160a01b03166119555760405162461bcd60e51b815260206004820152601460248201527314d85b19481d1bdad95b881b9bdd08185919195960621b6044820152606401610cee565b33600090815260de602052604090205460ff16156119b55760405162461bcd60e51b815260206004820152601b60248201527f54686973204164647265737320697320426c61636b6c697374656400000000006044820152606401610cee565b60d654600160a81b900460ff1615611a265733600090815260df602052604090205460ff16611a265760405162461bcd60e51b815260206004820152601e60248201527f55736572206e6f742077686974656c697374656420666f7220636c61696d00006044820152606401610cee565b60cc54421015611a785760405162461bcd60e51b815260206004820152601960248201527f436c61696d20686173206e6f74207374617274656420796574000000000000006044820152606401610cee565b33600090815260dd602052604090205460ff1615611aca5760405162461bcd60e51b815260206004820152600f60248201526e105b1c9958591e4818db185a5b5959608a1b6044820152606401610cee565b33600090815260dd60209081526040808320805460ff1916600117905560dc90915290205480611b2f5760405162461bcd60e51b815260206004820152601060248201526f4e6f7468696e6720746f20636c61696d60801b6044820152606401610cee565b33600081815260dc6020908152604080832083905560cd54815163a9059cbb60e01b8152600481019590955260248501869052905192936001600160a01b039091169263a9059cbb92604480840193919291829003018187875af1158015611b9b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611bbf919061479f565b905080611c065760405162461bcd60e51b8152602060048201526015602482015274151bdad95b881d1c985b9cd9995c8819985a5b1959605a1b6044820152606401610cee565b6040805183815242602082015233917f9923b4306c6c030f2bdfbf156517d5983b87e15b96176da122cd4f2effa4ba7b910160405180910390a260019250505090565b611c516138a4565b60e181604051611c6191906145e7565b9081526040519081900360200190206004015460ff16611cc35760405162461bcd60e51b815260206004820152601960248201527f50726f6d6f20636f646520646f6573206e6f74206578697374000000000000006044820152606401610cee565b600060e182604051611cd591906145e7565b908152604051908190036020019020600401805491151560ff1990921691909117905560005b60e254811015611e0657818051906020012060e28281548110611d2057611d2061457a565b90600052602060002001604051611d3791906147bc565b604051809103902003611df457805b60e254611d559060019061475d565b811015611dbf5760e2611d69826001614603565b81548110611d7957611d7961457a565b9060005260206000200160e28281548110611d9657611d9661457a565b906000526020600020019081611dac9190614832565b5080611db781614904565b915050611d46565b5060e2805480611dd157611dd161491d565b600190038181906000526020600020016000611ded9190613dde565b9055611e06565b80611dfe81614904565b915050611cfb565b507f0172ee71cdc467f0f86d1a24f4f688dcd0e8152c8bcf29653655cd6def30012381604051611e36919061439a565b60405180910390a150565b611e496138a4565b60005b81811015611ebb57600060df6000858585818110611e6c57611e6c61457a565b9050602002016020810190611e819190614038565b6001600160a01b031681526020810191909152604001600020805460ff191691151591909117905580611eb381614904565b915050611e4c565b505050565b600054610100900460ff1615808015611ee05750600054600160ff909116105b80611efa5750303b158015611efa575060005460ff166001145b611f5d5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401610cee565b6000805460ff191660011790558015611f80576000805461ff0019166101001790555b6001600160a01b038716611fcb5760405162461bcd60e51b815260206004820152601260248201527130783132332055534454206164647265737360701b6044820152606401610cee565b6001600160a01b0388166120215760405162461bcd60e51b815260206004820152601860248201527f30783132332061676772656761746f72206164647265737300000000000000006044820152606401610cee565b85851161205f5760405162461bcd60e51b815260206004820152600c60248201526b496e76616c69642074696d6560a01b6044820152606401610cee565b612067613c31565b61206f613c64565b612077613c94565b670de0b6b3a764000060ce5560db80546001600160a01b03808b166001600160a01b03199283161790925560da8054928a169290911691909117905560ca86905560cb8590556120ca60d7856003613e18565b5060cf83905560d680546001600160a01b0319166001600160a01b0384161790556202a30060d55560ca5460cb5460408051928352602083019190915242908201527f23f6ad8232d75562dd1c6b37dfc895af6bfc1ecd0fb3b88722c6a5e6b4dc9a209060600160405180910390a1801561217f576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b5050505050505050565b60008360ca5442101580156121a0575060cb544211155b6121e65760405162461bcd60e51b8152602060048201526017602482015276496e76616c69642074696d6520666f7220627579696e6760481b6044820152606401610cee565b6000811161222c5760405162461bcd60e51b8152602060048201526013602482015272125b9d985b1a59081cd85b1948185b5bdd5b9d606a1b6044820152606401610cee565b6122346138fe565b600061223f86612e17565b9050600060646122508860086145a6565b61225a91906145d3565b86519091501561240c5760e18660405161227491906145e7565b9081526040519081900360200190206004015460ff166122cb5760405162461bcd60e51b8152602060048201526012602482015271496e76616c69642070726f6d6f20636f646560701b6044820152606401610cee565b4260e1876040516122dc91906145e7565b90815260405190819003602001902054101561232f5760405162461bcd60e51b8152602060048201526012602482015271457870697265642070726f6d6f20636f646560701b6044820152606401610cee565b60e18660405161233f91906145e7565b90815260200160405180910390206001015460e18760405161236191906145e7565b908152602001604051809103902060020154106123c05760405162461bcd60e51b815260206004820152601e60248201527f50726f6d6f20636f6465207573616765206c696d6974207265616368656400006044820152606401610cee565b6000879050606460e1886040516123d791906145e7565b908152602001604051809103902060030154896123f491906145a6565b6123fe91906145d3565b6124089082614603565b9750505b33600090815260e360205260409020805461242690614616565b90506000036124df57600061243961399d565b33600090815260e360205260409020909150612455828261469e565b503360e48260405161246791906145e7565b90815260405190819003602001902080546001600160a01b03929092166001600160a01b031990921691909117905561249d3390565b6001600160a01b03167fb9e788fc28e69f876035840c2b162474437d35622a8cfa689a88c04403bf7ee6876040516124d5919061439a565b60405180910390a2505b8660c960008282546124f19190614603565b909155505060d15415612516578660d160008282546125109190614603565b90915550505b600060d15460c9541161252b5760d15461252f565b60c9545b905060d760000160d054815481106125495761254961457a565b9060005260206000200154811180612583575060d760020160d054815481106125745761257461457a565b90600052602060002001544210155b156126b65760d760020160d054815481106125a0576125a061457a565b906000526020600020015442106125e7578760d760000160d054815481106125ca576125ca61457a565b90600052602060002001546125df9190614603565b60d155612601565b60d654600160a01b900460ff161561260157612601613a93565b600060d7810160d0548154811061261a5761261a61457a565b9060005260206000200154821161265e578160d760000160d054815481106126445761264461457a565b9060005260206000200154612659919061475d565b612661565b60005b60d480546001818101835560009283527f9780e26d96b1f2a9a18ef8fc72d589dbf03ef788137b64f43897e83a91e7feec90910183905560d0805493945090929091906126af908490614603565b9091555050505b85511561274457600060e4876040516126cf91906145e7565b908152604051908190036020019020546001600160a01b03169050801580159061270257506001600160a01b0381163314155b156127425760ce5461271490846145a6565b6001600160a01b038216600090815260dc60205260408120805490919061273c908490614603565b90915550505b505b60ce5461275190896145a6565b33600090815260dc602052604081208054909190612770908490614603565b925050819055508260d260008282546127899190614603565b909155505060da546000906001600160a01b031663dd62ed3e336040516001600160e01b031960e084901b1681526001600160a01b039091166004820152306024820152604401602060405180830381865afa1580156127ed573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906128119190614933565b9050600061282464e8d4a51000866145d3565b9050818111156128805760405162461bcd60e51b815260206004820152602160248201527f4d616b65207375726520746f2061646420656e6f75676820616c6c6f77616e636044820152606560f81b6064820152608401610cee565b60da546000906001600160a01b03163360d6546040516001600160a01b039283166024820152911660448201526064810184905260840160408051601f198184030181529181526020820180516001600160e01b03166323b872dd60e01b179052516128ec91906145e7565b6000604051808303816000865af19150503d8060008114612929576040519150601f19603f3d011682016040523d82523d6000602084013e61292e565b606091505b50509050806129765760405162461bcd60e51b8152602060048201526014602482015273151bdad95b881c185e5b595b9d0819985a5b195960621b6044820152606401610cee565b60da546001600160a01b03168b336001600160a01b03167f4d8aead3491b7eba4b5c7a65fc17e493b9e63f9e433522fc5f6a85a168fc9d36858a426040516129d1939291909283526020830191909152604082015260600190565b60405180910390a45060019a9950505050505050505050565b60006129f582612e17565b905061180064e8d4a51000826145d3565b612a0e6138a4565b60d15460d380546001810182556000919091527f915c3eb987b20e1af620c1403197bf687fb7f18513b3a73fde6e78c7072c41a6015560d654600160a01b900460ff1615612a5e57612a5e613a93565b60d760000160d05481548110612a7657612a7661457a565b906000526020600020015460d1541015612af65760d15460d49060d760000160d05481548110612aa857612aa861457a565b9060005260206000200154612abd919061475d565b8154600181018355600092835260208320015560d70160d05481548110612ae657612ae661457a565b60009182526020909120015460d1555b60d08054906000612b0683614904565b9190505550565b60008060008060008060e187604051612b2691906145e7565b9081526040519081900360200190208054600182015460028301546003840154600490940154929b919a50985091965060ff16945092505050565b612b696138a4565b6118fa6000613cbb565b612b7b6138a4565b8060d76002610c7e565b612b8d6138a4565b6118fa613d0d565b612b9d6138a4565b8060d26000828254612baf9190614603565b909155505050565b612bbf6138a4565b8060d76001610c7e565b612bd16138a4565b60005b81811015611ebb57600060de6000858585818110612bf457612bf461457a565b9050602002016020810190612c099190614038565b6001600160a01b031681526020810191909152604001600020805460ff191691151591909117905580612c3b81614904565b915050612bd4565b60008060db60009054906101000a90046001600160a01b03166001600160a01b031663feaf968c6040518163ffffffff1660e01b815260040160a060405180830381865afa158015612c99573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612cbd9190614966565b505050915050806402540be40061180091906149b6565b60e36020526000908152604090208054612ced90614616565b80601f0160208091040260200160405190810160405280929190818152602001828054612d1990614616565b8015612d665780601f10612d3b57610100808354040283529160200191612d66565b820191906000526020600020905b815481529060010190602001808311612d4957829003601f168201915b505050505081565b612d766138a4565b6040518060a00160405280848152602001838152602001600081526020018281526020016001151581525060e18686604051612db39291906149e6565b9081526040805160209281900383019020835181559183015160018301558201516002820155606082015160038201556080909101516004909101805460ff19169115159190911790555050505050565b612e0c6138a4565b60d09190915560d155565b600080600060d154600014612e2e5760d154612e32565b60c9545b905060cf54841115612e865760405162461bcd60e51b815260206004820181905260248201527f416d6f756e742065786365656473206d617820746f6b656e7320746f206275796044820152606401610cee565b60d760000160d05481548110612e9e57612e9e61457a565b90600052602060002001548185612eb59190614603565b1180612ee3575060d760020160d05481548110612ed457612ed461457a565b90600052602060002001544210155b156131155760d754612ef79060019061475d565b60d05410612f365760405162461bcd60e51b815260206004820152600c60248201526b57726f6e6720706172616d7360a01b6044820152606401610cee565b60d760020160d05481548110612f4e57612f4e61457a565b906000526020600020015442106130615760d05460d790612f70906001614603565b81548110612f8057612f8061457a565b90600052602060002001548460d7600060038110612fa057612fa061457a565b0160d05481548110612fb457612fb461457a565b9060005260206000200154612fc99190614603565b11156130235760405162461bcd60e51b815260206004820152602360248201527f43616e74205075726368617365204d6f726520696e20696e646976696475616c604482015262040e8f60eb1b6064820152608401610cee565b60d05460d890613034906001614603565b815481106130445761304461457a565b90600052602060002001548461305a91906145a6565b9150613146565b60008160d7820160d0548154811061307b5761307b61457a565b9060005260206000200154613090919061475d565b60d05490915060d8906130a4906001614603565b815481106130b4576130b461457a565b906000526020600020015481866130cb919061475d565b6130d591906145a6565b60d760010160d054815481106130ed576130ed61457a565b90600052602060002001548261310391906145a6565b61310d9190614603565b925050613146565b60d760010160d0548154811061312d5761312d61457a565b90600052602060002001548461314391906145a6565b91505b5092915050565b60006131576138a4565b60cb548411801561316757504284115b6131b35760405162461bcd60e51b815260206004820152601860248201527f496e76616c696420636c61696d2073746172742074696d6500000000000000006044820152606401610cee565b60ce5460c9546131c391906145a6565b83101561320a5760405162461bcd60e51b8152602060048201526015602482015274151bdad95b9cc81b195cdcc81d1a185b881cdbdb19605a1b6044820152606401610cee565b6001600160a01b0382166132565760405162461bcd60e51b8152602060048201526013602482015272307830303020746f6b656e206164647265737360681b6044820152606401610cee565b60cc541561329a5760405162461bcd60e51b815260206004820152601160248201527010db185a5b48185b1c9958591e481cd95d607a1b6044820152606401610cee565b60cc84905560cd80546001600160a01b0319166001600160a01b0384169081179091556000906323b872dd336040516001600160e01b031960e084901b1681526001600160a01b039091166004820152306024820152604481018790526064016020604051808303816000875af1158015613319573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061333d919061479f565b9050806133845760405162461bcd60e51b8152602060048201526015602482015274151bdad95b881d1c985b9cd9995c8819985a5b1959605a1b6044820152606401610cee565b60cd54604080518681524260208201526001600160a01b03909216917fdc9670dbabdd488b372eb16ebe49a39b3124a12cdffdcefbc89834a408bf8ff8910160405180910390a2506001949350505050565b606060d782600381106133eb576133eb61457a565b0180548060200260200160405190810160405280929190818152602001828054801561343657602002820191906000526020600020905b815481526020019060010190808311613422575b50505050509050919050565b61344a6138a4565b60005b81811015611ebb57600160de600085858581811061346d5761346d61457a565b90506020020160208101906134829190614038565b6001600160a01b031681526020810191909152604001600020805460ff1916911515919091179055806134b481614904565b91505061344d565b606060e2805480602002602001604051908101604052809291908181526020016000905b8282101561358c5783829060005260206000200180546134ff90614616565b80601f016020809104026020016040519081016040528092919081815260200182805461352b90614616565b80156135785780601f1061354d57610100808354040283529160200191613578565b820191906000526020600020905b81548152906001019060200180831161355b57829003601f168201915b5050505050815260200190600101906134e0565b50505050905090565b60d481815481106135a557600080fd5b600091825260209091200154905081565b606060d480548060200260200160405190810160405280929190818152602001828054801561360457602002820191906000526020600020905b8154815260200190600101908083116135f0575b5050505050905090565b6136166138a4565b6001600160a01b0381166136655760405162461bcd60e51b8152602060048201526016602482015275616464726573732063616e6e6f74206265207a65726f60501b6044820152606401610cee565b60d680546001600160a01b0319166001600160a01b0392909216919091179055565b60d381815481106135a557600080fd5b60d782600381106136a757600080fd5b0181815481106136b657600080fd5b90600052602060002001600091509150505481565b6136d36138a4565b60005b81811015611ebb57600160df60008585858181106136f6576136f661457a565b905060200201602081019061370b9190614038565b6001600160a01b031681526020810191909152604001600020805460ff19169115159190911790558061373d81614904565b9150506136d6565b61374d6138a4565b6001600160a01b0381166137b25760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610cee565b6137bb81613cbb565b50565b6137c66138a4565b8281146138075760405162461bcd60e51b815260206004820152600f60248201526e098cadccee8d040dad2e6dac2e8c6d608b1b6044820152606401610cee565b60005b8381101561389d578282828181106138245761382461457a565b9050602002013560dc60008787858181106138415761384161457a565b90506020020160208101906138569190614038565b6001600160a01b03166001600160a01b0316815260200190815260200160002060008282546138859190614603565b9091555081905061389581614904565b91505061380a565b5050505050565b6097546001600160a01b031633146118fa5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610cee565b60655460ff16156118fa5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610cee565b6002600154036139965760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610cee565b6002600155565b606060006040518060600160405280603e8152602001614a56603e913960408051600c808252818301909252919250906000908260208201818036833701905050905060005b828110156115b1578351604080513360601b6bffffffffffffffffffffffff1916602080830191909152426034830152605480830186905283518084039091018152607490920190925280519101208591613a3d916149f6565b81518110613a4d57613a4d61457a565b602001015160f81c60f81b828281518110613a6a57613a6a61457a565b60200101906001600160f81b031916908160001a90535080613a8b81614904565b9150506139e3565b60005b60d05460d954613aa6919061475d565b8110156137bb5760d554613aba90826145a6565b613ac49042614603565b60d05460d990613ad5908490614603565b81548110613ae557613ae561457a565b60009182526020909120015580613afb81614904565b915050613a96565b80471015613b415760405162461bcd60e51b815260206004820152600b60248201526a4c6f772062616c616e636560a81b6044820152606401610cee565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114613b8e576040519150601f19603f3d011682016040523d82523d6000602084013e613b93565b606091505b5050905080611ebb5760405162461bcd60e51b81526020600482015260126024820152711155120814185e5b595b9d0819985a5b195960721b6044820152606401610cee565b60018055565b613be7613d4a565b6065805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b600054610100900460ff16613c585760405162461bcd60e51b8152600401610cee90614a0a565b6065805460ff19169055565b600054610100900460ff16613c8b5760405162461bcd60e51b8152600401610cee90614a0a565b6118fa33613cbb565b600054610100900460ff16613bd95760405162461bcd60e51b8152600401610cee90614a0a565b609780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b613d156138fe565b6065805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258613c143390565b60655460ff166118fa5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610cee565b828054828255906000526020600020908101928215613dce579160200282015b82811115613dce578251825591602001919060010190613db3565b50613dda929150613e64565b5090565b508054613dea90614616565b6000825580601f10613dfa575050565b601f0160209004906000526020600020908101906137bb9190613e64565b8260038101928215613e58579160200282015b82811115613e585782518051613e48918491602090910190613d93565b5091602001919060010190613e2b565b50613dda929150613e79565b5b80821115613dda5760008155600101613e65565b80821115613dda576000613e8d8282613e96565b50600101613e79565b50805460008255906000526020600020908101906137bb9190613e64565b634e487b7160e01b600052604160045260246000fd5b604051606081016001600160401b0381118282101715613eec57613eec613eb4565b60405290565b604051601f8201601f191681016001600160401b0381118282101715613f1a57613f1a613eb4565b604052919050565b600082601f830112613f3357600080fd5b813560206001600160401b03821115613f4e57613f4e613eb4565b8160051b613f5d828201613ef2565b9283528481018201928281019087851115613f7757600080fd5b83870192505b84831015613f9657823582529183019190830190613f7d565b979650505050505050565b600060208284031215613fb357600080fd5b81356001600160401b03811115613fc957600080fd5b613fd584828501613f22565b949350505050565b600060208284031215613fef57600080fd5b5035919050565b80151581146137bb57600080fd5b60006020828403121561401657600080fd5b81356118e381613ff6565b80356001600160a01b0381168114610dcd57600080fd5b60006020828403121561404a57600080fd5b6118e382614021565b6000806040838503121561406657600080fd5b50508035926020909101359150565b600082601f83011261408657600080fd5b81356001600160401b0381111561409f5761409f613eb4565b6140b2601f8201601f1916602001613ef2565b8181528460208386010111156140c757600080fd5b816020850160208301376000918101602001919091529392505050565b6000806000606084860312156140f957600080fd5b8335925060208401356001600160401b038082111561411757600080fd5b61412387838801614075565b9350604086013591508082111561413957600080fd5b5061414686828701614075565b9150509250925092565b6000806000806080858703121561416657600080fd5b84356001600160401b0381111561417c57600080fd5b61418887828801614075565b97602087013597506040870135966060013595509350505050565b6000602082840312156141b557600080fd5b81356001600160401b038111156141cb57600080fd5b613fd584828501614075565b60008083601f8401126141e957600080fd5b5081356001600160401b0381111561420057600080fd5b6020830191508360208260051b850101111561421b57600080fd5b9250929050565b6000806020838503121561423557600080fd5b82356001600160401b0381111561424b57600080fd5b614257858286016141d7565b90969095509350505050565b600080600080600080600060e0888a03121561427e57600080fd5b61428788614021565b965061429560208901614021565b9550604088013594506060880135935060808801356001600160401b03808211156142bf57600080fd5b818a0191508a601f8301126142d357600080fd5b6142db613eca565b80606084018d8111156142ed57600080fd5b845b8181101561432057848135111561430557600080fd5b6143128f82358801613f22565b8452602093840193016142ef565b50508096505050505060a0880135915061433c60c08901614021565b905092959891949750929550565b60005b8381101561436557818101518382015260200161434d565b50506000910152565b6000815180845261438681602086016020860161434a565b601f01601f19169290920160200192915050565b6020815260006118e3602083018461436e565b6000806000806000608086880312156143c557600080fd5b85356001600160401b03808211156143dc57600080fd5b818801915088601f8301126143f057600080fd5b8135818111156143ff57600080fd5b89602082850101111561441157600080fd5b60209283019a909950918801359760408101359750606001359550909350505050565b60008060006060848603121561444957600080fd5b833592506020840135915061446060408501614021565b90509250925092565b6020808252825182820181905260009190848201906040850190845b818110156144a157835183529284019291840191600101614485565b50909695505050505050565b6000602080830181845280855180835260408601915060408160051b870101925083870160005b8281101561450257603f198886030184526144f085835161436e565b945092850192908501906001016144d4565b5092979650505050505050565b6000806000806040858703121561452557600080fd5b84356001600160401b038082111561453c57600080fd5b614548888389016141d7565b9096509450602087013591508082111561456157600080fd5b5061456e878288016141d7565b95989497509550505050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b808202811582820484141761180057611800614590565b634e487b7160e01b600052601260045260246000fd5b6000826145e2576145e26145bd565b500490565b600082516145f981846020870161434a565b9190910192915050565b8082018082111561180057611800614590565b600181811c9082168061462a57607f821691505b60208210810361464a57634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115611ebb57600081815260208120601f850160051c810160208610156146775750805b601f850160051c820191505b8181101561469657828155600101614683565b505050505050565b81516001600160401b038111156146b7576146b7613eb4565b6146cb816146c58454614616565b84614650565b602080601f83116001811461470057600084156146e85750858301515b600019600386901b1c1916600185901b178555614696565b600085815260208120601f198616915b8281101561472f57888601518255948401946001909101908401614710565b508582101561474d5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b8181038181111561180057611800614590565b608081526000614783608083018761436e565b6020830195909552506040810192909252606090910152919050565b6000602082840312156147b157600080fd5b81516118e381613ff6565b60008083546147ca81614616565b600182811680156147e257600181146147f757614826565b60ff1984168752821515830287019450614826565b8760005260208060002060005b8581101561481d5781548a820152908401908201614804565b50505082870194505b50929695505050505050565b81810361483d575050565b6148478254614616565b6001600160401b0381111561485e5761485e613eb4565b61486c816146c58454614616565b6000601f8211600181146148a057600083156148885750848201545b600019600385901b1c1916600184901b17845561389d565b600085815260209020601f19841690600086815260209020845b838110156148da57828601548255600195860195909101906020016148ba565b508583101561474d5793015460001960f8600387901b161c19169092555050600190811b01905550565b60006001820161491657614916614590565b5060010190565b634e487b7160e01b600052603160045260246000fd5b60006020828403121561494557600080fd5b5051919050565b805169ffffffffffffffffffff81168114610dcd57600080fd5b600080600080600060a0868803121561497e57600080fd5b6149878661494c565b94506020860151935060408601519250606086015191506149aa6080870161494c565b90509295509295909350565b80820260008212600160ff1b841416156149d2576149d2614590565b818105831482151761180057611800614590565b8183823760009101908152919050565b600082614a0557614a056145bd565b500690565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b60608201526080019056fe6162636465666768696a6b6c6d6e6f707172737475767778797a4142434445464748494a4b4c4d4e4f505152535455565758595a31323334353637383930a26469706673582212203101c72bdcf5d4d5a2a570ce5a1af874b581488215dda23a96ac79018015ef5664736f6c63430008130033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 26 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.