Source Code
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions
Loading...
Loading
Contract Name:
PresaleV1
Compiler Version
v0.8.9+commit.e5eed63a
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
//SPDX-License-Identifier: MIT
// _ _____ _
// __ _____| |__|___ / _ __ __ _ _ _ _ __ ___ ___ _ __ | |_ ___
// \ \ /\ / / _ \ '_ \ |_ \| '_ \ / _` | | | | '_ ` _ \ / _ \ '_ \| __/ __|
// \ V V / __/ |_) |__) | |_) | (_| | |_| | | | | | | __/ | | | |_\__ \
// \_/\_/ \___|_.__/____/| .__/ \__,_|\__, |_| |_| |_|\___|_| |_|\__|___/
// |_| |___/
//
pragma solidity 0.8.9;
import '@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol';
import '@openzeppelin/contracts-upgradeable/utils/AddressUpgradeable.sol';
import '@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol';
import '@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol';
import '@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol';
import '@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol';
import '@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.sol';
interface Aggregator {
function latestRoundData() external view returns (uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound);
}
interface StakingManager {
function depositByPresale(address _user, uint256 _amount) external;
}
contract PresaleV1 is Initializable, ReentrancyGuardUpgradeable, OwnableUpgradeable, PausableUpgradeable {
uint256 public totalTokensSold;
uint256 public startTime;
uint256 public endTime;
uint256 public claimStart;
address public saleToken;
uint256 public baseDecimals;
uint256 public maxTokensToBuy;
uint256 public currentStep;
uint256[][3] public rounds;
uint256 public checkPoint;
uint256 public usdRaised;
uint256[] public prevCheckpoints;
uint256[] public remainingTokensTracker;
uint256 public timeConstant;
uint256 public totalBoughtAndStaked;
uint256 public commissionPercentage;
address public paymentWallet;
address public admin;
address public commissionWallet;
bool public dynamicTimeFlag;
bool public whitelistClaimOnly;
bool public stakeingWhitelistStatus;
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;
StakingManager public stakingManagerInterface;
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 TokensBoughtAndStaked(address indexed user, uint256 indexed tokensBought, address indexed purchaseToken, uint256 amountPaid, uint256 usdEq, uint256 timestamp);
event TokensClaimedAndStaked(address indexed user, uint256 amount, uint256 timestamp);
event CommissionWalletUpdated(address prevAddress, address newAddress, uint256 timestamp);
event CommissionPercentageUpdated(uint256 prevValue, uint256 newValue, uint256 timestamp);
/// @custom:oz-upgrades-unsafe-allow constructor
constructor() initializer {}
/**
* @dev Initializes the contract and sets key parameters
* @param _oracle Oracle contract to fetch ETH/USDT price
* @param _usdt USDT token contract address
* @param _startTime start time of the presale
* @param _endTime end time of the presale
* @param _rounds array of round details
* @param _maxTokensToBuy amount of max tokens to buy
* @param _paymentWallet address to recive payments
*/
function initialize(address _oracle, address _usdt, address _commissionWallet, uint256 _commissionPercentage, uint256 _startTime, uint256 _endTime, uint256[][3] memory _rounds, uint256 _maxTokensToBuy, address _paymentWallet) external initializer {
require(_oracle != address(0), 'Zero aggregator address');
require(_usdt != address(0), 'Zero USDT address');
require(_startTime > block.timestamp && _endTime > _startTime, 'Invalid time');
require(_commissionWallet != address(0), 'Invalid address');
require(_commissionPercentage <= 10000, 'Invalid commission percentage');
__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;
commissionWallet = _commissionWallet;
commissionPercentage = _commissionPercentage;
emit SaleTimeSet(startTime, endTime, block.timestamp);
}
/**
* @dev To pause the presale
*/
function pause() external onlyOwner {
_pause();
}
/**
* @dev To unpause the presale
*/
function unpause() external onlyOwner {
_unpause();
}
/**
* @dev To calculate the price in USD for given amount of tokens.
* @param _amount No of tokens
*/
function calculatePrice(uint256 _amount) public view returns (uint256) {
uint256 USDTAmount;
uint256 total = checkPoint == 0 ? totalTokensSold : checkPoint;
require(_amount <= maxTokensToBuy, 'Amount exceeds max tokens to buy');
if (_amount + total > rounds[0][currentStep] || block.timestamp >= rounds[2][currentStep]) {
require(currentStep < (rounds[0].length - 1), 'Wrong params');
if (block.timestamp >= rounds[2][currentStep]) {
require(rounds[0][currentStep] + _amount <= rounds[0][currentStep + 1], 'Cant Purchase More in individual tx');
USDTAmount = _amount * rounds[1][currentStep + 1];
} else {
uint256 tokenAmountForCurrentPrice = rounds[0][currentStep] - total;
USDTAmount = tokenAmountForCurrentPrice * rounds[1][currentStep] + (_amount - tokenAmountForCurrentPrice) * rounds[1][currentStep + 1];
}
} else USDTAmount = _amount * rounds[1][currentStep];
return USDTAmount;
}
/**
* @dev To update the sale times
* @param _startTime New start time
* @param _endTime New end time
*/
function changeSaleTimes(uint256 _startTime, uint256 _endTime) external onlyOwner {
require(_startTime > 0 || _endTime > 0, 'Invalid parameters');
if (_startTime > 0) {
require(block.timestamp < startTime, 'Sale already started');
require(block.timestamp < _startTime, 'Sale time in past');
uint256 prevValue = startTime;
startTime = _startTime;
emit SaleTimeUpdated(bytes32('START'), prevValue, _startTime, block.timestamp);
}
if (_endTime > 0) {
require(_endTime > startTime, 'Invalid endTime');
uint256 prevValue = endTime;
endTime = _endTime;
emit SaleTimeUpdated(bytes32('END'), prevValue, _endTime, block.timestamp);
}
}
/**
* @dev To get latest ETH price in 10**18 format
*/
function getLatestPrice() public view returns (uint256) {
(, int256 price, , , ) = aggregatorInterface.latestRoundData();
price = (price * (10 ** 10));
return uint256(price);
}
modifier checkSaleState(uint256 amount) {
require(block.timestamp >= startTime && block.timestamp <= endTime, 'Invalid time for buying');
require(amount > 0, 'Invalid sale amount');
_;
}
/**
* @dev To buy into a presale using USDT
* @param amount No of tokens to buy
* @param stake boolean flag for token staking
*/
function buyWithUSDT(uint256 amount, bool stake) external checkSaleState(amount) whenNotPaused returns (bool) {
uint256 usdPrice = calculatePrice(amount);
totalTokensSold += amount;
uint256 price = usdPrice / (10 ** 12);
uint256 commission = (price * commissionPercentage) / 10000;
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;
}
if (dynamicTimeFlag) {
manageTimeDiff();
}
uint256 unsoldTokens = total > rounds[0][currentStep] ? 0 : rounds[0][currentStep] - total;
remainingTokensTracker.push(unsoldTokens);
currentStep += 1;
}
if (stake) {
if (stakeingWhitelistStatus) {
require(isWhitelisted[_msgSender()], 'User not whitelisted for stake');
}
stakingManagerInterface.depositByPresale(_msgSender(), amount * baseDecimals);
totalBoughtAndStaked += amount;
emit TokensBoughtAndStaked(_msgSender(), amount, address(USDTInterface), price, usdPrice, block.timestamp);
} else {
userDeposits[_msgSender()] += (amount * baseDecimals);
emit TokensBought(_msgSender(), amount, address(USDTInterface), price, usdPrice, block.timestamp);
}
usdRaised += usdPrice;
uint256 ourAllowance = USDTInterface.allowance(_msgSender(), address(this));
require(price <= ourAllowance, 'Make sure to add enough allowance');
(bool success, ) = address(USDTInterface).call(abi.encodeWithSignature('transferFrom(address,address,uint256)', _msgSender(), paymentWallet, price - commission));
require(success, 'Token payment failed');
(bool commissionSuccess, ) = address(USDTInterface).call(abi.encodeWithSignature('transferFrom(address,address,uint256)', _msgSender(), commissionWallet, commission));
require(commissionSuccess, 'Commission Wallet Token payment failed');
return true;
}
/**
* @dev To buy into a presale using ETH
* @param amount No of tokens to buy
* @param stake boolean flag for token staking
*/
function buyWithEth(uint256 amount, bool stake) external payable checkSaleState(amount) whenNotPaused nonReentrant returns (bool) {
uint256 usdPrice = calculatePrice(amount);
uint256 ethAmount = (usdPrice * baseDecimals) / getLatestPrice();
uint256 commission = (ethAmount * commissionPercentage) / 10000;
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;
}
if (dynamicTimeFlag) {
manageTimeDiff();
}
uint256 unsoldTokens = total > rounds[0][currentStep] ? 0 : rounds[0][currentStep] - total;
remainingTokensTracker.push(unsoldTokens);
currentStep += 1;
}
if (stake) {
if (stakeingWhitelistStatus) {
require(isWhitelisted[_msgSender()], 'User not whitelisted for stake');
}
stakingManagerInterface.depositByPresale(_msgSender(), amount * baseDecimals);
totalBoughtAndStaked += amount;
emit TokensBoughtAndStaked(_msgSender(), amount, address(0), ethAmount, usdPrice, block.timestamp);
} else {
userDeposits[_msgSender()] += (amount * baseDecimals);
emit TokensBought(_msgSender(), amount, address(0), ethAmount, usdPrice, block.timestamp);
}
usdRaised += usdPrice;
sendValue(payable(paymentWallet), ethAmount - commission);
sendValue(payable(commissionWallet), commission);
if (excess > 0) sendValue(payable(_msgSender()), excess);
return true;
}
/**
* @dev To buy ETH directly from wert .*wert contract address should be whitelisted if wertBuyRestrictionStatus is set true
* @param _user address of the user
* @param _amount No of ETH to buy
* @param stake boolean flag for token staking
*/
function buyWithETHWert(address _user, uint256 _amount, bool stake) external payable checkSaleState(_amount) whenNotPaused nonReentrant returns (bool) {
require(wertWhitelisted[_msgSender()], 'User not whitelisted for this tx');
uint256 usdPrice = calculatePrice(_amount);
uint256 ethAmount = (usdPrice * baseDecimals) / getLatestPrice();
uint256 commission = (ethAmount * commissionPercentage) / 10000;
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;
}
if (dynamicTimeFlag) {
manageTimeDiff();
}
uint256 unsoldTokens = total > rounds[0][currentStep] ? 0 : rounds[0][currentStep] - total;
remainingTokensTracker.push(unsoldTokens);
currentStep += 1;
}
if (stake) {
if (stakeingWhitelistStatus) {
require(isWhitelisted[_user], 'User not whitelisted for stake');
}
stakingManagerInterface.depositByPresale(_user, _amount * baseDecimals);
totalBoughtAndStaked += _amount;
emit TokensBoughtAndStaked(_user, _amount, address(0), ethAmount, usdPrice, block.timestamp);
} else {
userDeposits[_user] += (_amount * baseDecimals);
emit TokensBought(_user, _amount, address(0), ethAmount, usdPrice, block.timestamp);
}
usdRaised += usdPrice;
sendValue(payable(paymentWallet), ethAmount - commission);
sendValue(payable(commissionWallet), commission);
if (excess > 0) sendValue(payable(_user), excess);
return true;
}
/**
* @dev Helper funtion to get ETH price for given amount
* @param amount No of tokens to buy
*/
function ethBuyHelper(uint256 amount) external view returns (uint256 ethAmount) {
uint256 usdPrice = calculatePrice(amount);
ethAmount = (usdPrice * baseDecimals) / getLatestPrice();
}
/**
* @dev Helper funtion to get USDT price for given amount
* @param amount No of tokens to buy
*/
function usdtBuyHelper(uint256 amount) external view returns (uint256 usdPrice) {
usdPrice = calculatePrice(amount);
usdPrice = usdPrice / (10 ** 12);
}
function sendValue(address payable recipient, uint256 amount) internal {
require(address(this).balance >= amount, 'Low balance');
(bool success, ) = recipient.call{value: amount}('');
require(success, 'ETH Payment failed');
}
/**
* @dev to initialize staking manager with new addredd
* @param _stakingManagerAddress address of the staking smartcontract
*/
function setStakingManager(address _stakingManagerAddress) external onlyOwner {
require(_stakingManagerAddress != address(0), 'staking manager cannot be inatialized with zero address');
stakingManagerInterface = StakingManager(_stakingManagerAddress);
IERC20Upgradeable(saleToken).approve(_stakingManagerAddress, type(uint256).max);
}
/**
* @dev To set the claim start time and sale token address by the owner
* @param _claimStart claim start time
* @param noOfTokens no of tokens to add to the contract
* @param _saleToken sale toke address
*/
function startClaim(uint256 _claimStart, uint256 noOfTokens, address _saleToken, address _stakingManagerAddress) external onlyOwner returns (bool) {
require(_saleToken != address(0), 'Zero token address');
require(claimStart == 0, 'Claim already set');
claimStart = _claimStart;
saleToken = _saleToken;
whitelistClaimOnly = true;
stakingManagerInterface = StakingManager(_stakingManagerAddress);
IERC20Upgradeable(_saleToken).approve(_stakingManagerAddress, type(uint256).max);
bool success = IERC20Upgradeable(_saleToken).transferFrom(_msgSender(), address(this), noOfTokens);
require(success, 'Token transfer failed');
emit TokensAdded(_saleToken, noOfTokens, block.timestamp);
return true;
}
/**
* @dev To set status for claim whitelisting
* @param _status bool value
*/
function setStakeingWhitelistStatus(bool _status) external onlyOwner {
stakeingWhitelistStatus = _status;
}
/**
* @dev To change the claim start time by the owner
* @param _claimStart new claim start time
*/
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;
}
/**
* @dev To claim tokens after claiming starts
*/
function claim() external whenNotPaused returns (bool) {
require(saleToken != address(0), 'Sale token not added');
require(!isBlacklisted[_msgSender()], 'This Address is Blacklisted');
if (whitelistClaimOnly) {
require(isWhitelisted[_msgSender()], 'User not whitelisted for claim');
}
require(block.timestamp >= claimStart, 'Claim has not started yet');
require(!hasClaimed[_msgSender()], 'Already claimed');
hasClaimed[_msgSender()] = true;
uint256 amount = userDeposits[_msgSender()];
require(amount > 0, 'Nothing to claim');
delete userDeposits[_msgSender()];
bool success = IERC20Upgradeable(saleToken).transfer(_msgSender(), amount);
require(success, 'Token transfer failed');
emit TokensClaimed(_msgSender(), amount, block.timestamp);
return true;
}
function claimAndStake() external whenNotPaused returns (bool) {
require(saleToken != address(0), 'Sale token not added');
require(!isBlacklisted[_msgSender()], 'This Address is Blacklisted');
if (stakeingWhitelistStatus) {
require(isWhitelisted[_msgSender()], 'User not whitelisted for stake');
}
uint256 amount = userDeposits[_msgSender()];
require(amount > 0, 'Nothing to stake');
stakingManagerInterface.depositByPresale(_msgSender(), amount);
delete userDeposits[_msgSender()];
emit TokensClaimedAndStaked(_msgSender(), amount, block.timestamp);
return true;
}
/**
* @dev To add wert contract addresses to whitelist
* @param _addressesToWhitelist addresses of the contract
*/
function whitelistUsersForWERT(address[] calldata _addressesToWhitelist) external onlyOwner {
for (uint256 i = 0; i < _addressesToWhitelist.length; i++) {
wertWhitelisted[_addressesToWhitelist[i]] = true;
}
}
/**
* @dev To remove wert contract addresses to whitelist
* @param _addressesToRemoveFromWhitelist addresses of the contracts
*/
function removeFromWhitelistForWERT(address[] calldata _addressesToRemoveFromWhitelist) external onlyOwner {
for (uint256 i = 0; i < _addressesToRemoveFromWhitelist.length; i++) {
wertWhitelisted[_addressesToRemoveFromWhitelist[i]] = false;
}
}
function changeMaxTokensToBuy(uint256 _maxTokensToBuy) external onlyOwner {
require(_maxTokensToBuy > 0, 'Zero max tokens to buy value');
uint256 prevValue = maxTokensToBuy;
maxTokensToBuy = _maxTokensToBuy;
emit MaxTokensUpdated(prevValue, _maxTokensToBuy, block.timestamp);
}
function changeRoundsData(uint256[][3] memory _rounds) external onlyOwner {
rounds = _rounds;
}
/**
* @dev To add users to blacklist which restricts blacklisted users from claiming
* @param _usersToBlacklist addresses of the users
*/
function blacklistUsers(address[] calldata _usersToBlacklist) external onlyOwner {
for (uint256 i = 0; i < _usersToBlacklist.length; i++) {
isBlacklisted[_usersToBlacklist[i]] = true;
}
}
/**
* @dev To remove users from blacklist which restricts blacklisted users from claiming
* @param _userToRemoveFromBlacklist addresses of the users
*/
function removeFromBlacklist(address[] calldata _userToRemoveFromBlacklist) external onlyOwner {
for (uint256 i = 0; i < _userToRemoveFromBlacklist.length; i++) {
isBlacklisted[_userToRemoveFromBlacklist[i]] = false;
}
}
/**
* @dev To add users to whitelist which restricts users from claiming if claimWhitelistStatus is true
* @param _usersToWhitelist addresses of the users
*/
function whitelistUsers(address[] calldata _usersToWhitelist) external onlyOwner {
for (uint256 i = 0; i < _usersToWhitelist.length; i++) {
isWhitelisted[_usersToWhitelist[i]] = true;
}
}
/**
* @dev To remove users from whitelist which restricts users from claiming if claimWhitelistStatus is true
* @param _userToRemoveFromWhitelist addresses of the users
*/
function removeFromWhitelist(address[] calldata _userToRemoveFromWhitelist) external onlyOwner {
for (uint256 i = 0; i < _userToRemoveFromWhitelist.length; i++) {
isWhitelisted[_userToRemoveFromWhitelist[i]] = false;
}
}
/**
* @dev To set status for claim whitelisting
* @param _status bool value
*/
function setClaimWhitelistStatus(bool _status) external onlyOwner {
whitelistClaimOnly = _status;
}
/**
* @dev To set payment wallet address
* @param _newPaymentWallet new payment wallet address
*/
function changePaymentWallet(address _newPaymentWallet) external onlyOwner {
require(_newPaymentWallet != address(0), 'address cannot be zero');
paymentWallet = _newPaymentWallet;
}
/**
* @dev To manage time gap between two rounds
*/
function manageTimeDiff() internal {
for (uint256 i; i < rounds[2].length - currentStep; i++) {
rounds[2][currentStep + i] = block.timestamp + i * timeConstant;
}
}
/**
* @dev To set time constant for manageTimeDiff()
* @param _timeConstant time in <days>*24*60*60 format
*/
function setTimeConstant(uint256 _timeConstant) external onlyOwner {
timeConstant = _timeConstant;
}
/**
* @dev To get array of round details at once
* @param _no array index
*/
function roundDetails(uint256 _no) external view returns (uint256[] memory) {
return rounds[_no];
}
/**
* @dev to update userDeposits for purchases made on BSC
* @param _users array of users
* @param _userDeposits array of userDeposits associated with users
*/
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];
}
}
/**
* @dev To increment the rounds from backend
*/
function incrementCurrentStep() external {
require(msg.sender == admin || msg.sender == owner(), 'caller not admin or owner');
prevCheckpoints.push(checkPoint);
if (dynamicTimeFlag) {
manageTimeDiff();
}
if (checkPoint < rounds[0][currentStep]) {
remainingTokensTracker.push(rounds[0][currentStep] - checkPoint);
checkPoint = rounds[0][currentStep];
}
currentStep++;
}
/**
* @dev To set admin
* @param _admin new admin wallet address
*/
function setAdmin(address _admin) external onlyOwner {
admin = _admin;
}
/**
* @dev To change details of the round
* @param _step round for which you want to change the details
* @param _checkpoint token tracker amount
*/
function setCurrentStep(uint256 _step, uint256 _checkpoint) external onlyOwner {
currentStep = _step;
checkPoint = _checkpoint;
}
/**
* @dev To set time shift functionality on/off
* @param _dynamicTimeFlag bool value
*/
function setDynamicTimeFlag(bool _dynamicTimeFlag) external onlyOwner {
dynamicTimeFlag = _dynamicTimeFlag;
}
function trackRemainingTokens() external view returns (uint256[] memory) {
return remainingTokensTracker;
}
/**
* @dev To set time shift functionality on/off
* @param _index index of the round we need to change
* @param _newNoOfTokens number of tokens to be sold
* @param _newPrice price for the round
* @param _newTime new end time
*/
function changeIndividualRoundData(uint256 _index, uint256 _newNoOfTokens, uint256 _newPrice, uint256 _newTime) external onlyOwner returns (bool) {
require(_index <= rounds[0].length, 'invalid index');
if (_newNoOfTokens > 0) {
rounds[0][_index] = _newNoOfTokens;
}
if (_newPrice > 0) {
rounds[1][_index] = _newPrice;
}
if (_newTime > 0) {
rounds[2][_index] = _newTime;
}
return true;
}
/**
* @dev To set time shift functionality on/off
* @param _newNoOfTokens number of tokens to be sold
* @param _newPrice price for the round
* @param _newTime new end time
*/
function addNewRound(uint256 _newNoOfTokens, uint256 _newPrice, uint256 _newTime) external onlyOwner returns (bool) {
require(_newNoOfTokens > 0, 'invalid no of tokens');
require(_newPrice > 0, 'invalid new price');
require(_newTime > 0, 'invalid new time');
rounds[0].push(_newNoOfTokens);
rounds[1].push(_newPrice);
rounds[2].push(_newTime);
return true;
}
/// @notice Update the address for commission collection.
/// @param _commissionWallet The new commission collection address.
function setCommissionWallet(address _commissionWallet) external onlyOwner {
// Ensure the new commission address is valid
require(_commissionWallet != address(0), 'Invalid address');
emit CommissionWalletUpdated(commissionWallet, _commissionWallet, block.timestamp);
commissionWallet = _commissionWallet;
}
/// @notice Update the percentage of commissions taken on each purchase.
/// @param _commissionPercentage The new commission percentage.
function setCommissionPercentage(uint256 _commissionPercentage) external onlyOwner {
// Ensure that the new commission percentage is valid
require(_commissionPercentage <= 10000, 'Invalid commission percentage');
emit CommissionPercentageUpdated(commissionPercentage, _commissionPercentage, block.timestamp);
commissionPercentage = _commissionPercentage;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)
pragma solidity ^0.8.0;
import "../utils/ContextUpgradeable.sol";
import "../proxy/utils/Initializable.sol";
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
*
* This module is used through inheritance. It will make available the modifier
* `onlyOwner`, which can be applied to your functions to restrict their use to
* the owner.
*/
abstract contract OwnableUpgradeable is Initializable, ContextUpgradeable {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
function __Ownable_init() internal onlyInitializing {
__Ownable_init_unchained();
}
function __Ownable_init_unchained() internal onlyInitializing {
_transferOwnership(_msgSender());
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
_checkOwner();
_;
}
/**
* @dev Returns the address of the current owner.
*/
function owner() public view virtual returns (address) {
return _owner;
}
/**
* @dev Throws if the sender is not the owner.
*/
function _checkOwner() internal view virtual {
require(owner() == _msgSender(), "Ownable: caller is not the owner");
}
/**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions anymore. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby removing any functionality that is only available to the owner.
*/
function renounceOwnership() public virtual onlyOwner {
_transferOwnership(address(0));
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/
function transferOwnership(address newOwner) public virtual onlyOwner {
require(newOwner != address(0), "Ownable: new owner is the zero address");
_transferOwnership(newOwner);
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Internal function without access restriction.
*/
function _transferOwnership(address newOwner) internal virtual {
address oldOwner = _owner;
_owner = newOwner;
emit OwnershipTransferred(oldOwner, newOwner);
}
/**
* @dev This empty reserved space is put in place to allow future versions to add new
* variables without shifting down storage in the inheritance chain.
* See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
*/
uint256[49] private __gap;
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.1) (proxy/utils/Initializable.sol)
pragma solidity ^0.8.2;
import "../../utils/AddressUpgradeable.sol";
/**
* @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed
* behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an
* external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer
* function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.
*
* The initialization functions use a version number. Once a version number is used, it is consumed and cannot be
* reused. This mechanism prevents re-execution of each "step" but allows the creation of new initialization steps in
* case an upgrade adds a module that needs to be initialized.
*
* For example:
*
* [.hljs-theme-light.nopadding]
* ```
* contract MyToken is ERC20Upgradeable {
* function initialize() initializer public {
* __ERC20_init("MyToken", "MTK");
* }
* }
* contract MyTokenV2 is MyToken, ERC20PermitUpgradeable {
* function initializeV2() reinitializer(2) public {
* __ERC20Permit_init("MyToken");
* }
* }
* ```
*
* TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as
* possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.
*
* CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure
* that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.
*
* [CAUTION]
* ====
* Avoid leaving a contract uninitialized.
*
* An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation
* contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke
* the {_disableInitializers} function in the constructor to automatically lock it when it is deployed:
*
* [.hljs-theme-light.nopadding]
* ```
* /// @custom:oz-upgrades-unsafe-allow constructor
* constructor() {
* _disableInitializers();
* }
* ```
* ====
*/
abstract contract Initializable {
/**
* @dev Indicates that the contract has been initialized.
* @custom:oz-retyped-from bool
*/
uint8 private _initialized;
/**
* @dev Indicates that the contract is in the process of being initialized.
*/
bool private _initializing;
/**
* @dev Triggered when the contract has been initialized or reinitialized.
*/
event Initialized(uint8 version);
/**
* @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope,
* `onlyInitializing` functions can be used to initialize parent contracts.
*
* 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.8.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 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.6.0) (token/ERC20/IERC20.sol)
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20Upgradeable {
/**
* @dev Emitted when `value` tokens are moved from one account (`from`) to
* another (`to`).
*
* Note that `value` may be zero.
*/
event Transfer(address indexed from, address indexed to, uint256 value);
/**
* @dev Emitted when the allowance of a `spender` for an `owner` is set by
* a call to {approve}. `value` is the new allowance.
*/
event Approval(address indexed owner, address indexed spender, uint256 value);
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves `amount` tokens from the caller's account to `to`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transfer(address to, uint256 amount) external returns (bool);
/**
* @dev Returns the remaining number of tokens that `spender` will be
* allowed to spend on behalf of `owner` through {transferFrom}. This is
* zero by default.
*
* This value changes when {approve} or {transferFrom} are called.
*/
function allowance(address owner, address spender) external view returns (uint256);
/**
* @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
* transaction ordering. One possible solution to mitigate this race
* condition is to first reduce the spender's allowance to 0 and set the
* desired value afterwards:
* https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
*
* Emits an {Approval} event.
*/
function approve(address spender, uint256 amount) external returns (bool);
/**
* @dev Moves `amount` tokens from `from` to `to` using the
* allowance mechanism. `amount` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transferFrom(
address from,
address to,
uint256 amount
) external returns (bool);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol)
pragma solidity ^0.8.1;
/**
* @dev Collection of functions related to the address type
*/
library AddressUpgradeable {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will return false for the following
* types of addresses:
*
* - an externally-owned account
* - a contract in construction
* - an address where a contract will be created
* - an address where a contract lived, but was destroyed
* ====
*
* [IMPORTANT]
* ====
* You shouldn't rely on `isContract` to protect against flash loan attacks!
*
* Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
* like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
* constructor.
* ====
*/
function isContract(address account) internal view returns (bool) {
// This method relies on extcodesize/address.code.length, which returns 0
// for contracts in construction, since the code is only stored at the end
// of the constructor execution.
return account.code.length > 0;
}
/**
* @dev Replacement for Solidity's `transfer`: sends `amount` wei to
* `recipient`, forwarding all available gas and reverting on errors.
*
* https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
* of certain opcodes, possibly making contracts go over the 2300 gas limit
* imposed by `transfer`, making them unable to receive funds via
* `transfer`. {sendValue} removes this limitation.
*
* https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
*
* IMPORTANT: because control is transferred to `recipient`, care must be
* taken to not create reentrancy vulnerabilities. Consider using
* {ReentrancyGuard} or the
* https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
*/
function sendValue(address payable recipient, uint256 amount) internal {
require(address(this).balance >= amount, "Address: insufficient balance");
(bool success, ) = recipient.call{value: amount}("");
require(success, "Address: unable to send value, recipient may have reverted");
}
/**
* @dev Performs a Solidity function call using a low level `call`. A
* plain `call` is an unsafe replacement for a function call: use this
* function instead.
*
* If `target` reverts with a revert reason, it is bubbled up by this
* function (like regular Solidity function calls).
*
* Returns the raw returned data. To convert to the expected return value,
* use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
*
* Requirements:
*
* - `target` must be a contract.
* - calling `target` with `data` must not revert.
*
* _Available since v3.1._
*/
function functionCall(address target, bytes memory data) internal returns (bytes memory) {
return 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 Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling
* the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.
*
* _Available since v4.8._
*/
function verifyCallResultFromTarget(
address target,
bool success,
bytes memory returndata,
string memory errorMessage
) internal view returns (bytes memory) {
if (success) {
if (returndata.length == 0) {
// only check isContract if the call was successful and the return data is empty
// otherwise we already know that it was a contract
require(isContract(target), "Address: call to non-contract");
}
return returndata;
} else {
_revert(returndata, errorMessage);
}
}
/**
* @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the
* revert reason or using the provided one.
*
* _Available since v4.3._
*/
function verifyCallResult(
bool success,
bytes memory returndata,
string memory errorMessage
) internal pure returns (bytes memory) {
if (success) {
return returndata;
} else {
_revert(returndata, errorMessage);
}
}
function _revert(bytes memory returndata, string memory errorMessage) private pure {
// Look for revert reason and bubble it up if present
if (returndata.length > 0) {
// The easiest way to bubble the revert reason is using memory via assembly
/// @solidity memory-safe-assembly
assembly {
let returndata_size := mload(returndata)
revert(add(32, returndata), returndata_size)
}
} else {
revert(errorMessage);
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)
pragma solidity ^0.8.0;
import "../proxy/utils/Initializable.sol";
/**
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since when dealing with meta-transactions the account sending and
* paying for execution may not be the actual sender (as far as an application
* is concerned).
*
* This contract is only required for intermediate, library-like contracts.
*/
abstract contract ContextUpgradeable is Initializable {
function __Context_init() internal onlyInitializing {
}
function __Context_init_unchained() internal onlyInitializing {
}
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
/**
* @dev This empty reserved space is put in place to allow future versions to add new
* variables without shifting down storage in the inheritance chain.
* See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
*/
uint256[50] private __gap;
}{
"optimizer": {
"enabled": true,
"runs": 200
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
},
"libraries": {}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"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":"uint256","name":"prevValue","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newValue","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"CommissionPercentageUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"prevAddress","type":"address"},{"indexed":false,"internalType":"address","name":"newAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"CommissionWalletUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint8","name":"version","type":"uint8"}],"name":"Initialized","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"prevValue","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newValue","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"MaxTokensUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_start","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_end","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"SaleTimeSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"key","type":"bytes32"},{"indexed":false,"internalType":"uint256","name":"prevValue","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newValue","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"SaleTimeUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"noOfTokens","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"TokensAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokensBought","type":"uint256"},{"indexed":true,"internalType":"address","name":"purchaseToken","type":"address"},{"indexed":false,"internalType":"uint256","name":"amountPaid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"usdEq","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"TokensBought","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":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":"TokensBoughtAndStaked","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":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"TokensClaimedAndStaked","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"USDTInterface","outputs":[{"internalType":"contract IERC20Upgradeable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newNoOfTokens","type":"uint256"},{"internalType":"uint256","name":"_newPrice","type":"uint256"},{"internalType":"uint256","name":"_newTime","type":"uint256"}],"name":"addNewRound","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"admin","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"aggregatorInterface","outputs":[{"internalType":"contract Aggregator","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseDecimals","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_usersToBlacklist","type":"address[]"}],"name":"blacklistUsers","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"bool","name":"stake","type":"bool"}],"name":"buyWithETHWert","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bool","name":"stake","type":"bool"}],"name":"buyWithEth","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bool","name":"stake","type":"bool"}],"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":"_index","type":"uint256"},{"internalType":"uint256","name":"_newNoOfTokens","type":"uint256"},{"internalType":"uint256","name":"_newPrice","type":"uint256"},{"internalType":"uint256","name":"_newTime","type":"uint256"}],"name":"changeIndividualRoundData","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxTokensToBuy","type":"uint256"}],"name":"changeMaxTokensToBuy","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newPaymentWallet","type":"address"}],"name":"changePaymentWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[][3]","name":"_rounds","type":"uint256[][3]"}],"name":"changeRoundsData","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_startTime","type":"uint256"},{"internalType":"uint256","name":"_endTime","type":"uint256"}],"name":"changeSaleTimes","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"checkPoint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claim","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claimAndStake","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claimStart","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"commissionPercentage","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"commissionWallet","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"currentStep","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"dynamicTimeFlag","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"endTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"ethBuyHelper","outputs":[{"internalType":"uint256","name":"ethAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getLatestPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"hasClaimed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"incrementCurrentStep","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_oracle","type":"address"},{"internalType":"address","name":"_usdt","type":"address"},{"internalType":"address","name":"_commissionWallet","type":"address"},{"internalType":"uint256","name":"_commissionPercentage","type":"uint256"},{"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":"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":[{"internalType":"address[]","name":"_addressesToRemoveFromWhitelist","type":"address[]"}],"name":"removeFromWhitelistForWERT","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_no","type":"uint256"}],"name":"roundDetails","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"rounds","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"saleToken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_admin","type":"address"}],"name":"setAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_status","type":"bool"}],"name":"setClaimWhitelistStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_commissionPercentage","type":"uint256"}],"name":"setCommissionPercentage","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_commissionWallet","type":"address"}],"name":"setCommissionWallet","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":"bool","name":"_status","type":"bool"}],"name":"setStakeingWhitelistStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_stakingManagerAddress","type":"address"}],"name":"setStakingManager","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_timeConstant","type":"uint256"}],"name":"setTimeConstant","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stakeingWhitelistStatus","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"stakingManagerInterface","outputs":[{"internalType":"contract StakingManager","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_claimStart","type":"uint256"},{"internalType":"uint256","name":"noOfTokens","type":"uint256"},{"internalType":"address","name":"_saleToken","type":"address"},{"internalType":"address","name":"_stakingManagerAddress","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":"totalBoughtAndStaked","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":[],"name":"usdRaised","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"usdtBuyHelper","outputs":[{"internalType":"uint256","name":"usdPrice","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userDeposits","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"wertWhitelisted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"whitelistClaimOnly","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_usersToWhitelist","type":"address[]"}],"name":"whitelistUsers","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_addressesToWhitelist","type":"address[]"}],"name":"whitelistUsersForWERT","outputs":[],"stateMutability":"nonpayable","type":"function"}]Contract Creation Code
60806040523480156200001157600080fd5b50600054610100900460ff1615808015620000335750600054600160ff909116105b8062000063575062000050306200013d60201b62003f1f1760201c565b15801562000063575060005460ff166001145b620000cb5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b606482015260840160405180910390fd5b6000805460ff191660011790558015620000ef576000805461ff0019166101001790555b801562000136576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b506200014c565b6001600160a01b03163b151590565b614c71806200015c6000396000f3fe6080604052600436106104265760003560e01c806389daf79911610229578063cad005561161012e578063e985e367116100b6578063f44637431161007a578063f446374314610c41578063f597573f14610c61578063f851a44014610c81578063fb9a4acd14610ca1578063fe575a8714610cc157600080fd5b8063e985e36714610bb5578063eadd94ec14610bd5578063edec5f2714610beb578063f04d688f14610c0b578063f2fde38b14610c2157600080fd5b8063d575fe64116100fd578063d575fe6414610b1e578063dad80e8614610b34578063e19648db14610b55578063e32204dd14610b75578063e6da921314610b9557600080fd5b8063cad0055614610ab3578063cb1a4fc014610ad3578063cff805ab14610ae8578063d37b8c1414610afe57600080fd5b8063ae4e0a18116101b1578063ba166a3911610180578063ba166a3914610a11578063bb3d676a14610a3e578063c23326f314610a5e578063c49cc64514610a7e578063c8adff0114610a9e57600080fd5b8063ae4e0a181461099e578063b00bba6a146109b1578063b0253847146109d1578063b8977d6d146109f157600080fd5b806397c0262a116101f857806397c0262a146109085780639a89c1fb146109285780639cfa0f7c14610948578063a6d42e4e1461095e578063ae1042651461097e57600080fd5b806389daf799146108955780638ac08082146108b55780638da5cb5b146108d55780638e15f473146108f357600080fd5b80633f4ba83a1161032f57806363e40879116102b757806373b2e80e1161028657806373b2e80e1461080457806378e97925146108345780637d60b6ce1461084a5780637f6fb2531461086a5780638456cb591461088057600080fd5b806363e408791461079a578063641046f4146107ba578063704b6c02146107cf578063715018a6146107ef57600080fd5b8063548db174116102fe578063548db174146107065780635bc34f71146107265780635c975abb1461073c5780635df4f3531461075457806363b201171461078457600080fd5b80633f4ba83a146106a557806343568eae146106ba5780634e71d92d146106d057806353d99207146106e557600080fd5b8063278c278b116103b257806333f761781161038157806333f76178146105e757806338646608146105fd57806339b87c8f146106355780633af32abf146106555780633d9c8d8b1461068557600080fd5b8063278c278b1461057e57806329a5a0b61461059e5780632c65169e146105be5780633197cbb6146105d157600080fd5b80630dc9c838116103f95780630dc9c838146104dd578063136021d9146104fd5780631ddc60911461051d5780631fa2bc921461053d57806323a8f1c01461055e57600080fd5b806303b9c5ad1461042b57806307f180821461044d5780630a200fc7146104825780630ba36dcd146104a2575b600080fd5b34801561043757600080fd5b5061044b61044636600461445b565b610cf1565b005b34801561045957600080fd5b5061046d61046836600461449d565b610d70565b60405190151581526020015b60405180910390f35b34801561048e57600080fd5b5061044b61049d3660046144c4565b610eac565b3480156104ae57600080fd5b506104cf6104bd3660046144f8565b60e06020526000908152604090205481565b604051908152602001610479565b3480156104e957600080fd5b5061044b6104f8366004614513565b610ed2565b34801561050957600080fd5b5061046d610518366004614535565b6110ae565b34801561052957600080fd5b5061044b6105383660046144c4565b61180b565b34801561054957600080fd5b5060dd5461046d90600160a01b900460ff1681565b34801561056a57600080fd5b5061044b61057936600461449d565b611831565b34801561058a57600080fd5b5061044b61059936600461449d565b61183e565b3480156105aa57600080fd5b506104cf6105b936600461449d565b6118e1565b61046d6105cc366004614535565b611915565b3480156105dd57600080fd5b506104cf60cb5481565b3480156105f357600080fd5b506104cf60ce5481565b34801561060957600080fd5b5060e55461061d906001600160a01b031681565b6040516001600160a01b039091168152602001610479565b34801561064157600080fd5b5061044b61065036600461449d565b611df5565b34801561066157600080fd5b5061046d6106703660046144f8565b60e36020526000908152604090205460ff1681565b34801561069157600080fd5b5061046d6106a0366004614565565b611e95565b3480156106b157600080fd5b5061044b611f6a565b3480156106c657600080fd5b506104cf60d85481565b3480156106dc57600080fd5b5061046d611f7c565b3480156106f157600080fd5b5060dd5461046d90600160a81b900460ff1681565b34801561071257600080fd5b5061044b61072136600461445b565b6122d8565b34801561073257600080fd5b506104cf60d05481565b34801561074857600080fd5b5060975460ff1661046d565b34801561076057600080fd5b5061046d61076f3660046144f8565b60e46020526000908152604090205460ff1681565b34801561079057600080fd5b506104cf60c95481565b3480156107a657600080fd5b506104cf6107b536600461449d565b612352565b3480156107c657600080fd5b5061044b612374565b3480156107db57600080fd5b5061044b6107ea3660046144f8565b6124e2565b3480156107fb57600080fd5b5061044b61250c565b34801561081057600080fd5b5061046d61081f3660046144f8565b60e16020526000908152604090205460ff1681565b34801561084057600080fd5b506104cf60ca5481565b34801561085657600080fd5b5061044b6108653660046144f8565b61251e565b34801561087657600080fd5b506104cf60d95481565b34801561088c57600080fd5b5061044b6125d9565b3480156108a157600080fd5b5061044b6108b036600461445b565b6125e9565b3480156108c157600080fd5b5061046d6108d0366004614597565b612663565b3480156108e157600080fd5b506065546001600160a01b031661061d565b3480156108ff57600080fd5b506104cf6128d8565b34801561091457600080fd5b5060dd5461061d906001600160a01b031681565b34801561093457600080fd5b5061044b610943366004614513565b612978565b34801561095457600080fd5b506104cf60cf5481565b34801561096a57600080fd5b5061044b61097936600461472e565b61298b565b34801561098a57600080fd5b506104cf61099936600461449d565b6129a0565b61046d6109ac366004614763565b612cd4565b3480156109bd57600080fd5b5061044b6109cc3660046144f8565b61323f565b3480156109dd57600080fd5b5061046d6109ec3660046147a3565b613361565b3480156109fd57600080fd5b5061044b610a0c3660046144c4565b6134d1565b348015610a1d57600080fd5b50610a31610a2c36600461449d565b6134f7565b60405161047991906147cf565b348015610a4a57600080fd5b5061044b610a5936600461445b565b613563565b348015610a6a57600080fd5b506104cf610a7936600461449d565b6135dd565b348015610a8a57600080fd5b5060df5461061d906001600160a01b031681565b348015610aaa57600080fd5b50610a316135fe565b348015610abf57600080fd5b5061044b610ace3660046144f8565b613656565b348015610adf57600080fd5b5061046d6136cf565b348015610af457600080fd5b506104cf60d45481565b348015610b0a57600080fd5b5061044b610b19366004614807565b613906565b348015610b2a57600080fd5b506104cf60da5481565b348015610b4057600080fd5b5060dd5461046d90600160b01b900460ff1681565b348015610b6157600080fd5b506104cf610b7036600461449d565b613c88565b348015610b8157600080fd5b5060db5461061d906001600160a01b031681565b348015610ba157600080fd5b506104cf610bb0366004614513565b613c98565b348015610bc157600080fd5b5060cd5461061d906001600160a01b031681565b348015610be157600080fd5b506104cf60d55481565b348015610bf757600080fd5b5061044b610c0636600461445b565b613ccc565b348015610c1757600080fd5b506104cf60cc5481565b348015610c2d57600080fd5b5061044b610c3c3660046144f8565b613d46565b348015610c4d57600080fd5b5061044b610c5c36600461445b565b613dbf565b348015610c6d57600080fd5b5060de5461061d906001600160a01b031681565b348015610c8d57600080fd5b5060dc5461061d906001600160a01b031681565b348015610cad57600080fd5b5061044b610cbc3660046148ae565b613e39565b348015610ccd57600080fd5b5061046d610cdc3660046144f8565b60e26020526000908152604090205460ff1681565b610cf9613f2e565b60005b81811015610d6b57600160e46000858585818110610d1c57610d1c61491a565b9050602002016020810190610d3191906144f8565b6001600160a01b031681526020810191909152604001600020805460ff191691151591909117905580610d6381614946565b915050610cfc565b505050565b6000610d7a613f2e565b600060cc5411610dd15760405162461bcd60e51b815260206004820152601a60248201527f496e697469616c20636c61696d2064617461206e6f742073657400000000000060448201526064015b60405180910390fd5b60cb548211610e155760405162461bcd60e51b815260206004820152601060248201526f53616c6520696e2070726f677265737360801b6044820152606401610dc8565b428211610e5a5760405162461bcd60e51b815260206004820152601360248201527210db185a5b481cdd185c9d081a5b881c185cdd606a1b6044820152606401610dc8565b60cc8054908390556040805182815260208101859052428183015290517f5f3a900c85949962b4cc192dd3714dae64071dc2e907049ec720b023270905a49181900360600190a160019150505b919050565b610eb4613f2e565b60dd8054911515600160a01b0260ff60a01b19909216919091179055565b610eda613f2e565b6000821180610ee95750600081115b610f2a5760405162461bcd60e51b8152602060048201526012602482015271496e76616c696420706172616d657465727360701b6044820152606401610dc8565b811561100f5760ca544210610f785760405162461bcd60e51b815260206004820152601460248201527314d85b1948185b1c9958591e481cdd185c9d195960621b6044820152606401610dc8565b814210610fbb5760405162461bcd60e51b815260206004820152601160248201527014d85b19481d1a5b59481a5b881c185cdd607a1b6044820152606401610dc8565b60ca8054908390556040805182815260208101859052428183015290516414d510549560da1b917fddd2ed237e6993c9380182683f2c8bec486aaaa429528852cd74dbdb96cea0b2919081900360600190a2505b80156110aa5760ca5481116110585760405162461bcd60e51b815260206004820152600f60248201526e496e76616c696420656e6454696d6560881b6044820152606401610dc8565b60cb8054908290556040805182815260208101849052428183015290516211539160ea1b917fddd2ed237e6993c9380182683f2c8bec486aaaa429528852cd74dbdb96cea0b2919081900360600190a2505b5050565b60008260ca5442101580156110c5575060cb544211155b6110e15760405162461bcd60e51b8152600401610dc890614961565b600081116111015760405162461bcd60e51b8152600401610dc890614998565b611109613f88565b6000611114856129a0565b90508460c9600082825461112891906149c5565b909155506000905061113f64e8d4a51000836149dd565b9050600061271060da548361115491906149ff565b61115e91906149dd565b905060d454600014611182578660d4600082825461117c91906149c5565b90915550505b600060d45460c954116111975760d45461119b565b60c9545b905060d160000160d054815481106111b5576111b561491a565b90600052602060002001548111806111ef575060d160020160d054815481106111e0576111e061491a565b90600052602060002001544210155b1561131e5760d160020160d0548154811061120c5761120c61491a565b9060005260206000200154421061124f578760d160000160d054815481106112365761123661491a565b906000526020600020015461124b91906149c5565b60d4555b60dd54600160a01b900460ff161561126957611269613fce565b600060d1810160d054815481106112825761128261491a565b906000526020600020015482116112c6578160d160000160d054815481106112ac576112ac61491a565b90600052602060002001546112c19190614a1e565b6112c9565b60005b60d780546001818101835560009283527f8a012a6de2943a5aa4d77acf5e695d4456760a3f1f30a5d6dc2079599187a07190910183905560d0805493945090929091906113179084906149c5565b9091555050505b86156114615760dd54600160b01b900460ff16156113655733600090815260e3602052604090205460ff166113655760405162461bcd60e51b8152600401610dc890614a35565b60e5546001600160a01b03166391c619663360ce54611384908c6149ff565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b1580156113ca57600080fd5b505af11580156113de573d6000803e3d6000fd5b505050508760d960008282546113f491906149c5565b909155505060de546001600160a01b031688336001600160a01b03167f6f225532a9c33b023b8e48247ad8df9d98f132ae17c769b97ff22d2b278fa73a868842604051611454939291909283526020830191909152604082015260600190565b60405180910390a46114f6565b60ce5461146e90896149ff565b33600090815260e060205260408120805490919061148d9084906149c5565b909155505060de546001600160a01b031688336001600160a01b03167f4d8aead3491b7eba4b5c7a65fc17e493b9e63f9e433522fc5f6a85a168fc9d368688426040516114ed939291909283526020830191909152604082015260600190565b60405180910390a45b8360d5600082825461150891906149c5565b909155505060de546000906001600160a01b031663dd62ed3e336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015230602482015260440160206040518083038186803b15801561156757600080fd5b505afa15801561157b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061159f9190614a6c565b9050808411156115fb5760405162461bcd60e51b815260206004820152602160248201527f4d616b65207375726520746f2061646420656e6f75676820616c6c6f77616e636044820152606560f81b6064820152608401610dc8565b60de546000906001600160a01b03163360db546001600160a01b03166116218789614a1e565b60405160240161163393929190614a85565b60408051601f198184030181529181526020820180516001600160e01b03166323b872dd60e01b179052516116689190614aa9565b6000604051808303816000865af19150503d80600081146116a5576040519150601f19603f3d011682016040523d82523d6000602084013e6116aa565b606091505b50509050806116f25760405162461bcd60e51b8152602060048201526014602482015273151bdad95b881c185e5b595b9d0819985a5b195960621b6044820152606401610dc8565b60de546000906001600160a01b03163360dd5460405161172192916001600160a01b0316908990602401614a85565b60408051601f198184030181529181526020820180516001600160e01b03166323b872dd60e01b179052516117569190614aa9565b6000604051808303816000865af19150503d8060008114611793576040519150601f19603f3d011682016040523d82523d6000602084013e611798565b606091505b50509050806117f85760405162461bcd60e51b815260206004820152602660248201527f436f6d6d697373696f6e2057616c6c657420546f6b656e207061796d656e742060448201526519985a5b195960d21b6064820152608401610dc8565b60019850505050505050505b5092915050565b611813613f2e565b60dd8054911515600160a81b0260ff60a81b19909216919091179055565b611839613f2e565b60d855565b611846613f2e565b600081116118965760405162461bcd60e51b815260206004820152601c60248201527f5a65726f206d617820746f6b656e7320746f206275792076616c7565000000006044820152606401610dc8565b60cf8054908290556040805182815260208101849052428183015290517f76f9e5e1f6af6a9f180708b77a5c99210fbf19b91f1f194f3918c262b8edf77c9181900360600190a15050565b6000806118ed836129a0565b90506118f76128d8565b60ce5461190490836149ff565b61190e91906149dd565b9392505050565b60008260ca54421015801561192c575060cb544211155b6119485760405162461bcd60e51b8152600401610dc890614961565b600081116119685760405162461bcd60e51b8152600401610dc890614998565b611970613f88565b61197861403e565b6000611983856129a0565b9050600061198f6128d8565b60ce5461199c90846149ff565b6119a691906149dd565b9050600061271060da54836119bb91906149ff565b6119c591906149dd565b905081341015611a065760405162461bcd60e51b815260206004820152600c60248201526b13195cdcc81c185e5b595b9d60a21b6044820152606401610dc8565b6000611a128334614a1e565b90508760c96000828254611a2691906149c5565b909155505060d45415611a4b578760d46000828254611a4591906149c5565b90915550505b600060d45460c95411611a605760d454611a64565b60c9545b905060d160000160d05481548110611a7e57611a7e61491a565b9060005260206000200154811180611ab8575060d160020160d05481548110611aa957611aa961491a565b90600052602060002001544210155b15611be75760d160020160d05481548110611ad557611ad561491a565b90600052602060002001544210611b18578860d160000160d05481548110611aff57611aff61491a565b9060005260206000200154611b1491906149c5565b60d4555b60dd54600160a01b900460ff1615611b3257611b32613fce565b600060d1810160d05481548110611b4b57611b4b61491a565b90600052602060002001548211611b8f578160d160000160d05481548110611b7557611b7561491a565b9060005260206000200154611b8a9190614a1e565b611b92565b60005b60d780546001818101835560009283527f8a012a6de2943a5aa4d77acf5e695d4456760a3f1f30a5d6dc2079599187a07190910183905560d080549394509092909190611be09084906149c5565b9091555050505b8715611d0e5760dd54600160b01b900460ff1615611c2e5733600090815260e3602052604090205460ff16611c2e5760405162461bcd60e51b8152600401610dc890614a35565b60e5546001600160a01b03166391c619663360ce54611c4d908d6149ff565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b158015611c9357600080fd5b505af1158015611ca7573d6000803e3d6000fd5b505050508860d96000828254611cbd91906149c5565b90915550506040805185815260208101879052428183015290516000918b9133917f6f225532a9c33b023b8e48247ad8df9d98f132ae17c769b97ff22d2b278fa73a919081900360600190a4611d87565b60ce54611d1b908a6149ff565b33600090815260e0602052604081208054909190611d3a9084906149c5565b90915550506040805185815260208101879052428183015290516000918b9133917f4d8aead3491b7eba4b5c7a65fc17e493b9e63f9e433522fc5f6a85a168fc9d36919081900360600190a45b8460d56000828254611d9991906149c5565b909155505060db54611dbd906001600160a01b0316611db88587614a1e565b614098565b60dd54611dd3906001600160a01b031684614098565b8115611de357611de33383614098565b60019650505050505061180460018055565b611dfd613f2e565b612710811115611e4f5760405162461bcd60e51b815260206004820152601d60248201527f496e76616c696420636f6d6d697373696f6e2070657263656e746167650000006044820152606401610dc8565b60da5460408051918252602082018390524282820152517fb86231c0dbdc515e7dcda7e714bbf1da856daf39bc184464a014e32f4436712a9181900360600190a160da55565b6000611e9f613f2e565b60d154851115611ee15760405162461bcd60e51b815260206004820152600d60248201526c0d2dcecc2d8d2c840d2dcc8caf609b1b6044820152606401610dc8565b8315611f0b578360d16000018681548110611efe57611efe61491a565b6000918252602090912001555b8215611f35578260d16001018681548110611f2857611f2861491a565b6000918252602090912001555b8115611f5f578160d16002018681548110611f5257611f5261491a565b6000918252602090912001555b506001949350505050565b611f72613f2e565b611f7a614174565b565b6000611f86613f88565b60cd546001600160a01b0316611fd55760405162461bcd60e51b815260206004820152601460248201527314d85b19481d1bdad95b881b9bdd08185919195960621b6044820152606401610dc8565b33600090815260e2602052604090205460ff16156120355760405162461bcd60e51b815260206004820152601b60248201527f54686973204164647265737320697320426c61636b6c697374656400000000006044820152606401610dc8565b60dd54600160a81b900460ff16156120a65733600090815260e3602052604090205460ff166120a65760405162461bcd60e51b815260206004820152601e60248201527f55736572206e6f742077686974656c697374656420666f7220636c61696d00006044820152606401610dc8565b60cc544210156120f85760405162461bcd60e51b815260206004820152601960248201527f436c61696d20686173206e6f74207374617274656420796574000000000000006044820152606401610dc8565b33600090815260e1602052604090205460ff161561214a5760405162461bcd60e51b815260206004820152600f60248201526e105b1c9958591e4818db185a5b5959608a1b6044820152606401610dc8565b33600090815260e160209081526040808320805460ff1916600117905560e0909152902054806121af5760405162461bcd60e51b815260206004820152601060248201526f4e6f7468696e6720746f20636c61696d60801b6044820152606401610dc8565b33600081815260e06020908152604080832083905560cd54815163a9059cbb60e01b8152600481019590955260248501869052905192936001600160a01b039091169263a9059cbb9260448084019391929182900301818787803b15801561221657600080fd5b505af115801561222a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061224e9190614ae4565b9050806122955760405162461bcd60e51b8152602060048201526015602482015274151bdad95b881d1c985b9cd9995c8819985a5b1959605a1b6044820152606401610dc8565b6040805183815242602082015233917f9923b4306c6c030f2bdfbf156517d5983b87e15b96176da122cd4f2effa4ba7b910160405180910390a260019250505090565b6122e0613f2e565b60005b81811015610d6b57600060e360008585858181106123035761230361491a565b905060200201602081019061231891906144f8565b6001600160a01b031681526020810191909152604001600020805460ff19169115159190911790558061234a81614946565b9150506122e3565b600061235d826129a0565b905061236e64e8d4a51000826149dd565b92915050565b60dc546001600160a01b031633148061239757506065546001600160a01b031633145b6123e35760405162461bcd60e51b815260206004820152601960248201527f63616c6c6572206e6f742061646d696e206f72206f776e6572000000000000006044820152606401610dc8565b60d45460d680546001810182556000919091527fe767803f8ecf1dee6bb0345811f7312cda556058b19db6389ad9ae3568643ddd015560dd54600160a01b900460ff161561243357612433613fce565b60d160000160d0548154811061244b5761244b61491a565b906000526020600020015460d45410156124cb5760d45460d79060d160000160d0548154811061247d5761247d61491a565b90600052602060002001546124929190614a1e565b8154600181018355600092835260208320015560d10160d054815481106124bb576124bb61491a565b60009182526020909120015460d4555b60d080549060006124db83614946565b9190505550565b6124ea613f2e565b60dc80546001600160a01b0319166001600160a01b0392909216919091179055565b612514613f2e565b611f7a60006141c6565b612526613f2e565b6001600160a01b03811661256e5760405162461bcd60e51b815260206004820152600f60248201526e496e76616c6964206164647265737360881b6044820152606401610dc8565b60dd546040517fc4b7656c9545febf36a472de3d76d4e42e431bf2952f9326e2d4bf255e607a3b916125af916001600160a01b039091169084904290614a85565b60405180910390a160dd80546001600160a01b0319166001600160a01b0392909216919091179055565b6125e1613f2e565b611f7a614218565b6125f1613f2e565b60005b81811015610d6b57600060e260008585858181106126145761261461491a565b905060200201602081019061262991906144f8565b6001600160a01b031681526020810191909152604001600020805460ff19169115159190911790558061265b81614946565b9150506125f4565b600061266d613f2e565b6001600160a01b0383166126b85760405162461bcd60e51b81526020600482015260126024820152715a65726f20746f6b656e206164647265737360701b6044820152606401610dc8565b60cc54156126fc5760405162461bcd60e51b815260206004820152601160248201527010db185a5b48185b1c9958591e481cd95d607a1b6044820152606401610dc8565b60cc85905560cd80546001600160a01b038581166001600160a01b0319928316811790935560dd805460ff60a81b1916600160a81b17905560e5805491861691909216811790915560405163095ea7b360e01b81526004810191909152600019602482015263095ea7b390604401602060405180830381600087803b15801561278457600080fd5b505af1158015612798573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906127bc9190614ae4565b506040516323b872dd60e01b81526000906001600160a01b038516906323b872dd906127f090339030908a90600401614a85565b602060405180830381600087803b15801561280a57600080fd5b505af115801561281e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906128429190614ae4565b9050806128895760405162461bcd60e51b8152602060048201526015602482015274151bdad95b881d1c985b9cd9995c8819985a5b1959605a1b6044820152606401610dc8565b604080518681524260208201526001600160a01b038616917fdc9670dbabdd488b372eb16ebe49a39b3124a12cdffdcefbc89834a408bf8ff8910160405180910390a250600195945050505050565b60008060df60009054906101000a90046001600160a01b03166001600160a01b031663feaf968c6040518163ffffffff1660e01b815260040160a06040518083038186803b15801561292957600080fd5b505afa15801561293d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906129619190614b1b565b505050915050806402540be40061236e9190614b6b565b612980613f2e565b60d09190915560d455565b612993613f2e565b6110aa60d1826003614328565b600080600060d4546000146129b75760d4546129bb565b60c9545b905060cf54841115612a0f5760405162461bcd60e51b815260206004820181905260248201527f416d6f756e742065786365656473206d617820746f6b656e7320746f206275796044820152606401610dc8565b60d160000160d05481548110612a2757612a2761491a565b90600052602060002001548185612a3e91906149c5565b1180612a6c575060d160020160d05481548110612a5d57612a5d61491a565b90600052602060002001544210155b15612c9e5760d154612a8090600190614a1e565b60d05410612abf5760405162461bcd60e51b815260206004820152600c60248201526b57726f6e6720706172616d7360a01b6044820152606401610dc8565b60d160020160d05481548110612ad757612ad761491a565b90600052602060002001544210612bea5760d05460d190612af99060016149c5565b81548110612b0957612b0961491a565b90600052602060002001548460d1600060038110612b2957612b2961491a565b0160d05481548110612b3d57612b3d61491a565b9060005260206000200154612b5291906149c5565b1115612bac5760405162461bcd60e51b815260206004820152602360248201527f43616e74205075726368617365204d6f726520696e20696e646976696475616c604482015262040e8f60eb1b6064820152608401610dc8565b60d05460d290612bbd9060016149c5565b81548110612bcd57612bcd61491a565b906000526020600020015484612be391906149ff565b9150611804565b60008160d1820160d05481548110612c0457612c0461491a565b9060005260206000200154612c199190614a1e565b60d05490915060d290612c2d9060016149c5565b81548110612c3d57612c3d61491a565b90600052602060002001548186612c549190614a1e565b612c5e91906149ff565b60d160010160d05481548110612c7657612c7661491a565b906000526020600020015482612c8c91906149ff565b612c9691906149c5565b925050611804565b60d160010160d05481548110612cb657612cb661491a565b906000526020600020015484612ccc91906149ff565b949350505050565b60008260ca544210158015612ceb575060cb544211155b612d075760405162461bcd60e51b8152600401610dc890614961565b60008111612d275760405162461bcd60e51b8152600401610dc890614998565b612d2f613f88565b612d3761403e565b33600090815260e4602052604090205460ff16612d965760405162461bcd60e51b815260206004820181905260248201527f55736572206e6f742077686974656c697374656420666f7220746869732074786044820152606401610dc8565b6000612da1856129a0565b90506000612dad6128d8565b60ce54612dba90846149ff565b612dc491906149dd565b9050600061271060da5483612dd991906149ff565b612de391906149dd565b905081341015612e245760405162461bcd60e51b815260206004820152600c60248201526b13195cdcc81c185e5b595b9d60a21b6044820152606401610dc8565b6000612e308334614a1e565b90508760c96000828254612e4491906149c5565b909155505060d45415612e69578760d46000828254612e6391906149c5565b90915550505b600060d45460c95411612e7e5760d454612e82565b60c9545b905060d160000160d05481548110612e9c57612e9c61491a565b9060005260206000200154811180612ed6575060d160020160d05481548110612ec757612ec761491a565b90600052602060002001544210155b156130055760d160020160d05481548110612ef357612ef361491a565b90600052602060002001544210612f36578860d160000160d05481548110612f1d57612f1d61491a565b9060005260206000200154612f3291906149c5565b60d4555b60dd54600160a01b900460ff1615612f5057612f50613fce565b600060d1810160d05481548110612f6957612f6961491a565b90600052602060002001548211612fad578160d160000160d05481548110612f9357612f9361491a565b9060005260206000200154612fa89190614a1e565b612fb0565b60005b60d780546001818101835560009283527f8a012a6de2943a5aa4d77acf5e695d4456760a3f1f30a5d6dc2079599187a07190910183905560d080549394509092909190612ffe9084906149c5565b9091555050505b87156131435760dd54600160b01b900460ff1615613055576001600160a01b038a16600090815260e3602052604090205460ff166130555760405162461bcd60e51b8152600401610dc890614a35565b60e55460ce546001600160a01b03909116906391c61966908c90613079908d6149ff565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b1580156130bf57600080fd5b505af11580156130d3573d6000803e3d6000fd5b505050508860d960008282546130e991906149c5565b90915550506040805185815260208101879052428183015290516000918b916001600160a01b038e16917f6f225532a9c33b023b8e48247ad8df9d98f132ae17c769b97ff22d2b278fa73a919081900360600190a46131ce565b60ce54613150908a6149ff565b6001600160a01b038b16600090815260e06020526040812080549091906131789084906149c5565b90915550506040805185815260208101879052428183015290516000918b916001600160a01b038e16917f4d8aead3491b7eba4b5c7a65fc17e493b9e63f9e433522fc5f6a85a168fc9d36919081900360600190a45b8460d560008282546131e091906149c5565b909155505060db546131ff906001600160a01b0316611db88587614a1e565b60dd54613215906001600160a01b031684614098565b8115613225576132258a83614098565b60019650505050505061323760018055565b509392505050565b613247613f2e565b6001600160a01b0381166132c35760405162461bcd60e51b815260206004820152603760248201527f7374616b696e67206d616e616765722063616e6e6f7420626520696e6174696160448201527f6c697a65642077697468207a65726f20616464726573730000000000000000006064820152608401610dc8565b60e580546001600160a01b0319166001600160a01b0383811691821790925560cd5460405163095ea7b360e01b8152600481019290925260001960248301529091169063095ea7b390604401602060405180830381600087803b15801561332957600080fd5b505af115801561333d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110aa9190614ae4565b600061336b613f2e565b600084116133b25760405162461bcd60e51b8152602060048201526014602482015273696e76616c6964206e6f206f6620746f6b656e7360601b6044820152606401610dc8565b600083116133f65760405162461bcd60e51b8152602060048201526011602482015270696e76616c6964206e657720707269636560781b6044820152606401610dc8565b600082116134395760405162461bcd60e51b815260206004820152601060248201526f696e76616c6964206e65772074696d6560801b6044820152606401610dc8565b5060d1805460018082019092557f695fb3134ad82c3b8022bc5464edd0bcc9424ef672b52245dcb6ab2374327ce3019390935560d280548085019091557ff2192e1030363415d7b4fb0406540a0060e8e2fc8982f3f32289379e11fa6546019190915560d3805480840182556000919091527f915c3eb987b20e1af620c1403197bf687fb7f18513b3a73fde6e78c7072c41a6015590565b6134d9613f2e565b60dd8054911515600160b01b0260ff60b01b19909216919091179055565b606060d1826003811061350c5761350c61491a565b0180548060200260200160405190810160405280929190818152602001828054801561355757602002820191906000526020600020905b815481526020019060010190808311613543575b50505050509050919050565b61356b613f2e565b60005b81811015610d6b57600160e2600085858581811061358e5761358e61491a565b90506020020160208101906135a391906144f8565b6001600160a01b031681526020810191909152604001600020805460ff1916911515919091179055806135d581614946565b91505061356e565b60d781815481106135ed57600080fd5b600091825260209091200154905081565b606060d780548060200260200160405190810160405280929190818152602001828054801561364c57602002820191906000526020600020905b815481526020019060010190808311613638575b5050505050905090565b61365e613f2e565b6001600160a01b0381166136ad5760405162461bcd60e51b8152602060048201526016602482015275616464726573732063616e6e6f74206265207a65726f60501b6044820152606401610dc8565b60db80546001600160a01b0319166001600160a01b0392909216919091179055565b60006136d9613f88565b60cd546001600160a01b03166137285760405162461bcd60e51b815260206004820152601460248201527314d85b19481d1bdad95b881b9bdd08185919195960621b6044820152606401610dc8565b33600090815260e2602052604090205460ff16156137885760405162461bcd60e51b815260206004820152601b60248201527f54686973204164647265737320697320426c61636b6c697374656400000000006044820152606401610dc8565b60dd54600160b01b900460ff16156137c95733600090815260e3602052604090205460ff166137c95760405162461bcd60e51b8152600401610dc890614a35565b33600090815260e06020526040902054806138195760405162461bcd60e51b815260206004820152601060248201526f4e6f7468696e6720746f207374616b6560801b6044820152606401610dc8565b60e5546001600160a01b03166391c61966336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260248101849052604401600060405180830381600087803b15801561387357600080fd5b505af1158015613887573d6000803e3d6000fd5b5050505060e060006138963390565b6001600160a01b031681526020810191909152604001600090812055336001600160a01b03167ffa4ec67f9254455933eb145bae864b26f29dd0a7bbb76eb11e4d6b8b9b184c2b82426040516138f6929190918252602082015260400190565b60405180910390a2600191505090565b600054610100900460ff16158080156139265750600054600160ff909116105b806139405750303b158015613940575060005460ff166001145b6139a35760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401610dc8565b6000805460ff1916600117905580156139c6576000805461ff0019166101001790555b6001600160a01b038a16613a1c5760405162461bcd60e51b815260206004820152601760248201527f5a65726f2061676772656761746f7220616464726573730000000000000000006044820152606401610dc8565b6001600160a01b038916613a665760405162461bcd60e51b81526020600482015260116024820152705a65726f2055534454206164647265737360781b6044820152606401610dc8565b4286118015613a7457508585115b613aaf5760405162461bcd60e51b815260206004820152600c60248201526b496e76616c69642074696d6560a01b6044820152606401610dc8565b6001600160a01b038816613af75760405162461bcd60e51b815260206004820152600f60248201526e496e76616c6964206164647265737360881b6044820152606401610dc8565b612710871115613b495760405162461bcd60e51b815260206004820152601d60248201527f496e76616c696420636f6d6d697373696f6e2070657263656e746167650000006044820152606401610dc8565b613b51614255565b613b59614288565b613b616142b8565b670de0b6b3a764000060ce5560df80546001600160a01b03808d166001600160a01b03199283161790925560de8054928c169290911691909117905560ca86905560cb859055613bb460d1856003614328565b5060cf83905560db80546001600160a01b038481166001600160a01b03199283161790925560dd8054928b169290911691909117905560da87905560ca5460cb5460408051928352602083019190915242908201527f23f6ad8232d75562dd1c6b37dfc895af6bfc1ecd0fb3b88722c6a5e6b4dc9a209060600160405180910390a18015613c7c576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b50505050505050505050565b60d681815481106135ed57600080fd5b60d18260038110613ca857600080fd5b018181548110613cb757600080fd5b90600052602060002001600091509150505481565b613cd4613f2e565b60005b81811015610d6b57600160e36000858585818110613cf757613cf761491a565b9050602002016020810190613d0c91906144f8565b6001600160a01b031681526020810191909152604001600020805460ff191691151591909117905580613d3e81614946565b915050613cd7565b613d4e613f2e565b6001600160a01b038116613db35760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610dc8565b613dbc816141c6565b50565b613dc7613f2e565b60005b81811015610d6b57600060e46000858585818110613dea57613dea61491a565b9050602002016020810190613dff91906144f8565b6001600160a01b031681526020810191909152604001600020805460ff191691151591909117905580613e3181614946565b915050613dca565b613e41613f2e565b828114613e825760405162461bcd60e51b815260206004820152600f60248201526e098cadccee8d040dad2e6dac2e8c6d608b1b6044820152606401610dc8565b60005b83811015613f1857828282818110613e9f57613e9f61491a565b9050602002013560e06000878785818110613ebc57613ebc61491a565b9050602002016020810190613ed191906144f8565b6001600160a01b03166001600160a01b031681526020019081526020016000206000828254613f0091906149c5565b90915550819050613f1081614946565b915050613e85565b5050505050565b6001600160a01b03163b151590565b6065546001600160a01b03163314611f7a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610dc8565b60975460ff1615611f7a5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610dc8565b60005b60d05460d354613fe19190614a1e565b811015613dbc5760d854613ff590826149ff565b613fff90426149c5565b60d05460d3906140109084906149c5565b815481106140205761402061491a565b6000918252602090912001558061403681614946565b915050613fd1565b600260015414156140915760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610dc8565b6002600155565b804710156140d65760405162461bcd60e51b815260206004820152600b60248201526a4c6f772062616c616e636560a81b6044820152606401610dc8565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114614123576040519150601f19603f3d011682016040523d82523d6000602084013e614128565b606091505b5050905080610d6b5760405162461bcd60e51b81526020600482015260126024820152711155120814185e5b595b9d0819985a5b195960721b6044820152606401610dc8565b60018055565b61417c6142df565b6097805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b606580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b614220613f88565b6097805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586141a93390565b600054610100900460ff1661427c5760405162461bcd60e51b8152600401610dc890614bf0565b6097805460ff19169055565b600054610100900460ff166142af5760405162461bcd60e51b8152600401610dc890614bf0565b611f7a336141c6565b600054610100900460ff1661416e5760405162461bcd60e51b8152600401610dc890614bf0565b60975460ff16611f7a5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610dc8565b8260038101928215614368579160200282015b828111156143685782518051614358918491602090910190614378565b509160200191906001019061433b565b506143749291506143bf565b5090565b8280548282559060005260206000209081019282156143b3579160200282015b828111156143b3578251825591602001919060010190614398565b506143749291506143dc565b808211156143745760006143d382826143f1565b506001016143bf565b5b8082111561437457600081556001016143dd565b5080546000825590600052602060002090810190613dbc91906143dc565b60008083601f84011261442157600080fd5b50813567ffffffffffffffff81111561443957600080fd5b6020830191508360208260051b850101111561445457600080fd5b9250929050565b6000806020838503121561446e57600080fd5b823567ffffffffffffffff81111561448557600080fd5b6144918582860161440f565b90969095509350505050565b6000602082840312156144af57600080fd5b5035919050565b8015158114613dbc57600080fd5b6000602082840312156144d657600080fd5b813561190e816144b6565b80356001600160a01b0381168114610ea757600080fd5b60006020828403121561450a57600080fd5b61190e826144e1565b6000806040838503121561452657600080fd5b50508035926020909101359150565b6000806040838503121561454857600080fd5b82359150602083013561455a816144b6565b809150509250929050565b6000806000806080858703121561457b57600080fd5b5050823594602084013594506040840135936060013592509050565b600080600080608085870312156145ad57600080fd5b84359350602085013592506145c4604086016144e1565b91506145d2606086016144e1565b905092959194509250565b634e487b7160e01b600052604160045260246000fd5b6040516060810167ffffffffffffffff81118282101715614616576146166145dd565b60405290565b604051601f8201601f1916810167ffffffffffffffff81118282101715614645576146456145dd565b604052919050565b6000601f838184011261465f57600080fd5b6146676145f3565b80606085018681111561467957600080fd5b855b8181101561472257803567ffffffffffffffff8082111561469c5760008081fd5b818901915089878301126146b05760008081fd5b81356020828211156146c4576146c46145dd565b8160051b92506146d581840161461c565b828152928401810192818101908d8511156146f257600093508384fd5b948201945b84861015614710578535825294820194908201906146f7565b8952509096019550505060200161467b565b50909695505050505050565b60006020828403121561474057600080fd5b813567ffffffffffffffff81111561475757600080fd5b612ccc8482850161464d565b60008060006060848603121561477857600080fd5b614781846144e1565b9250602084013591506040840135614798816144b6565b809150509250925092565b6000806000606084860312156147b857600080fd5b505081359360208301359350604090920135919050565b6020808252825182820181905260009190848201906040850190845b81811015614722578351835292840192918401916001016147eb565b60008060008060008060008060006101208a8c03121561482657600080fd5b61482f8a6144e1565b985061483d60208b016144e1565b975061484b60408b016144e1565b965060608a0135955060808a0135945060a08a0135935060c08a013567ffffffffffffffff81111561487c57600080fd5b6148888c828d0161464d565b93505060e08a0135915061489f6101008b016144e1565b90509295985092959850929598565b600080600080604085870312156148c457600080fd5b843567ffffffffffffffff808211156148dc57600080fd5b6148e88883890161440f565b9096509450602087013591508082111561490157600080fd5b5061490e8782880161440f565b95989497509550505050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600060001982141561495a5761495a614930565b5060010190565b60208082526017908201527f496e76616c69642074696d6520666f7220627579696e67000000000000000000604082015260600190565b602080825260139082015272125b9d985b1a59081cd85b1948185b5bdd5b9d606a1b604082015260600190565b600082198211156149d8576149d8614930565b500190565b6000826149fa57634e487b7160e01b600052601260045260246000fd5b500490565b6000816000190483118215151615614a1957614a19614930565b500290565b600082821015614a3057614a30614930565b500390565b6020808252601e908201527f55736572206e6f742077686974656c697374656420666f72207374616b650000604082015260600190565b600060208284031215614a7e57600080fd5b5051919050565b6001600160a01b039384168152919092166020820152604081019190915260600190565b6000825160005b81811015614aca5760208186018101518583015201614ab0565b81811115614ad9576000828501525b509190910192915050565b600060208284031215614af657600080fd5b815161190e816144b6565b805169ffffffffffffffffffff81168114610ea757600080fd5b600080600080600060a08688031215614b3357600080fd5b614b3c86614b01565b9450602086015193506040860151925060608601519150614b5f60808701614b01565b90509295509295909350565b60006001600160ff1b0381841382841380821686840486111615614b9157614b91614930565b600160ff1b6000871282811687830589121615614bb057614bb0614930565b60008712925087820587128484161615614bcc57614bcc614930565b87850587128184161615614be257614be2614930565b505050929093029392505050565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b60608201526080019056fea2646970667358221220eb2e0dd39399ce00b3dd5617c53ce560a28dd3ea8a2a750acbd7e55149c93fb564736f6c63430008090033
Deployed Bytecode
0x6080604052600436106104265760003560e01c806389daf79911610229578063cad005561161012e578063e985e367116100b6578063f44637431161007a578063f446374314610c41578063f597573f14610c61578063f851a44014610c81578063fb9a4acd14610ca1578063fe575a8714610cc157600080fd5b8063e985e36714610bb5578063eadd94ec14610bd5578063edec5f2714610beb578063f04d688f14610c0b578063f2fde38b14610c2157600080fd5b8063d575fe64116100fd578063d575fe6414610b1e578063dad80e8614610b34578063e19648db14610b55578063e32204dd14610b75578063e6da921314610b9557600080fd5b8063cad0055614610ab3578063cb1a4fc014610ad3578063cff805ab14610ae8578063d37b8c1414610afe57600080fd5b8063ae4e0a18116101b1578063ba166a3911610180578063ba166a3914610a11578063bb3d676a14610a3e578063c23326f314610a5e578063c49cc64514610a7e578063c8adff0114610a9e57600080fd5b8063ae4e0a181461099e578063b00bba6a146109b1578063b0253847146109d1578063b8977d6d146109f157600080fd5b806397c0262a116101f857806397c0262a146109085780639a89c1fb146109285780639cfa0f7c14610948578063a6d42e4e1461095e578063ae1042651461097e57600080fd5b806389daf799146108955780638ac08082146108b55780638da5cb5b146108d55780638e15f473146108f357600080fd5b80633f4ba83a1161032f57806363e40879116102b757806373b2e80e1161028657806373b2e80e1461080457806378e97925146108345780637d60b6ce1461084a5780637f6fb2531461086a5780638456cb591461088057600080fd5b806363e408791461079a578063641046f4146107ba578063704b6c02146107cf578063715018a6146107ef57600080fd5b8063548db174116102fe578063548db174146107065780635bc34f71146107265780635c975abb1461073c5780635df4f3531461075457806363b201171461078457600080fd5b80633f4ba83a146106a557806343568eae146106ba5780634e71d92d146106d057806353d99207146106e557600080fd5b8063278c278b116103b257806333f761781161038157806333f76178146105e757806338646608146105fd57806339b87c8f146106355780633af32abf146106555780633d9c8d8b1461068557600080fd5b8063278c278b1461057e57806329a5a0b61461059e5780632c65169e146105be5780633197cbb6146105d157600080fd5b80630dc9c838116103f95780630dc9c838146104dd578063136021d9146104fd5780631ddc60911461051d5780631fa2bc921461053d57806323a8f1c01461055e57600080fd5b806303b9c5ad1461042b57806307f180821461044d5780630a200fc7146104825780630ba36dcd146104a2575b600080fd5b34801561043757600080fd5b5061044b61044636600461445b565b610cf1565b005b34801561045957600080fd5b5061046d61046836600461449d565b610d70565b60405190151581526020015b60405180910390f35b34801561048e57600080fd5b5061044b61049d3660046144c4565b610eac565b3480156104ae57600080fd5b506104cf6104bd3660046144f8565b60e06020526000908152604090205481565b604051908152602001610479565b3480156104e957600080fd5b5061044b6104f8366004614513565b610ed2565b34801561050957600080fd5b5061046d610518366004614535565b6110ae565b34801561052957600080fd5b5061044b6105383660046144c4565b61180b565b34801561054957600080fd5b5060dd5461046d90600160a01b900460ff1681565b34801561056a57600080fd5b5061044b61057936600461449d565b611831565b34801561058a57600080fd5b5061044b61059936600461449d565b61183e565b3480156105aa57600080fd5b506104cf6105b936600461449d565b6118e1565b61046d6105cc366004614535565b611915565b3480156105dd57600080fd5b506104cf60cb5481565b3480156105f357600080fd5b506104cf60ce5481565b34801561060957600080fd5b5060e55461061d906001600160a01b031681565b6040516001600160a01b039091168152602001610479565b34801561064157600080fd5b5061044b61065036600461449d565b611df5565b34801561066157600080fd5b5061046d6106703660046144f8565b60e36020526000908152604090205460ff1681565b34801561069157600080fd5b5061046d6106a0366004614565565b611e95565b3480156106b157600080fd5b5061044b611f6a565b3480156106c657600080fd5b506104cf60d85481565b3480156106dc57600080fd5b5061046d611f7c565b3480156106f157600080fd5b5060dd5461046d90600160a81b900460ff1681565b34801561071257600080fd5b5061044b61072136600461445b565b6122d8565b34801561073257600080fd5b506104cf60d05481565b34801561074857600080fd5b5060975460ff1661046d565b34801561076057600080fd5b5061046d61076f3660046144f8565b60e46020526000908152604090205460ff1681565b34801561079057600080fd5b506104cf60c95481565b3480156107a657600080fd5b506104cf6107b536600461449d565b612352565b3480156107c657600080fd5b5061044b612374565b3480156107db57600080fd5b5061044b6107ea3660046144f8565b6124e2565b3480156107fb57600080fd5b5061044b61250c565b34801561081057600080fd5b5061046d61081f3660046144f8565b60e16020526000908152604090205460ff1681565b34801561084057600080fd5b506104cf60ca5481565b34801561085657600080fd5b5061044b6108653660046144f8565b61251e565b34801561087657600080fd5b506104cf60d95481565b34801561088c57600080fd5b5061044b6125d9565b3480156108a157600080fd5b5061044b6108b036600461445b565b6125e9565b3480156108c157600080fd5b5061046d6108d0366004614597565b612663565b3480156108e157600080fd5b506065546001600160a01b031661061d565b3480156108ff57600080fd5b506104cf6128d8565b34801561091457600080fd5b5060dd5461061d906001600160a01b031681565b34801561093457600080fd5b5061044b610943366004614513565b612978565b34801561095457600080fd5b506104cf60cf5481565b34801561096a57600080fd5b5061044b61097936600461472e565b61298b565b34801561098a57600080fd5b506104cf61099936600461449d565b6129a0565b61046d6109ac366004614763565b612cd4565b3480156109bd57600080fd5b5061044b6109cc3660046144f8565b61323f565b3480156109dd57600080fd5b5061046d6109ec3660046147a3565b613361565b3480156109fd57600080fd5b5061044b610a0c3660046144c4565b6134d1565b348015610a1d57600080fd5b50610a31610a2c36600461449d565b6134f7565b60405161047991906147cf565b348015610a4a57600080fd5b5061044b610a5936600461445b565b613563565b348015610a6a57600080fd5b506104cf610a7936600461449d565b6135dd565b348015610a8a57600080fd5b5060df5461061d906001600160a01b031681565b348015610aaa57600080fd5b50610a316135fe565b348015610abf57600080fd5b5061044b610ace3660046144f8565b613656565b348015610adf57600080fd5b5061046d6136cf565b348015610af457600080fd5b506104cf60d45481565b348015610b0a57600080fd5b5061044b610b19366004614807565b613906565b348015610b2a57600080fd5b506104cf60da5481565b348015610b4057600080fd5b5060dd5461046d90600160b01b900460ff1681565b348015610b6157600080fd5b506104cf610b7036600461449d565b613c88565b348015610b8157600080fd5b5060db5461061d906001600160a01b031681565b348015610ba157600080fd5b506104cf610bb0366004614513565b613c98565b348015610bc157600080fd5b5060cd5461061d906001600160a01b031681565b348015610be157600080fd5b506104cf60d55481565b348015610bf757600080fd5b5061044b610c0636600461445b565b613ccc565b348015610c1757600080fd5b506104cf60cc5481565b348015610c2d57600080fd5b5061044b610c3c3660046144f8565b613d46565b348015610c4d57600080fd5b5061044b610c5c36600461445b565b613dbf565b348015610c6d57600080fd5b5060de5461061d906001600160a01b031681565b348015610c8d57600080fd5b5060dc5461061d906001600160a01b031681565b348015610cad57600080fd5b5061044b610cbc3660046148ae565b613e39565b348015610ccd57600080fd5b5061046d610cdc3660046144f8565b60e26020526000908152604090205460ff1681565b610cf9613f2e565b60005b81811015610d6b57600160e46000858585818110610d1c57610d1c61491a565b9050602002016020810190610d3191906144f8565b6001600160a01b031681526020810191909152604001600020805460ff191691151591909117905580610d6381614946565b915050610cfc565b505050565b6000610d7a613f2e565b600060cc5411610dd15760405162461bcd60e51b815260206004820152601a60248201527f496e697469616c20636c61696d2064617461206e6f742073657400000000000060448201526064015b60405180910390fd5b60cb548211610e155760405162461bcd60e51b815260206004820152601060248201526f53616c6520696e2070726f677265737360801b6044820152606401610dc8565b428211610e5a5760405162461bcd60e51b815260206004820152601360248201527210db185a5b481cdd185c9d081a5b881c185cdd606a1b6044820152606401610dc8565b60cc8054908390556040805182815260208101859052428183015290517f5f3a900c85949962b4cc192dd3714dae64071dc2e907049ec720b023270905a49181900360600190a160019150505b919050565b610eb4613f2e565b60dd8054911515600160a01b0260ff60a01b19909216919091179055565b610eda613f2e565b6000821180610ee95750600081115b610f2a5760405162461bcd60e51b8152602060048201526012602482015271496e76616c696420706172616d657465727360701b6044820152606401610dc8565b811561100f5760ca544210610f785760405162461bcd60e51b815260206004820152601460248201527314d85b1948185b1c9958591e481cdd185c9d195960621b6044820152606401610dc8565b814210610fbb5760405162461bcd60e51b815260206004820152601160248201527014d85b19481d1a5b59481a5b881c185cdd607a1b6044820152606401610dc8565b60ca8054908390556040805182815260208101859052428183015290516414d510549560da1b917fddd2ed237e6993c9380182683f2c8bec486aaaa429528852cd74dbdb96cea0b2919081900360600190a2505b80156110aa5760ca5481116110585760405162461bcd60e51b815260206004820152600f60248201526e496e76616c696420656e6454696d6560881b6044820152606401610dc8565b60cb8054908290556040805182815260208101849052428183015290516211539160ea1b917fddd2ed237e6993c9380182683f2c8bec486aaaa429528852cd74dbdb96cea0b2919081900360600190a2505b5050565b60008260ca5442101580156110c5575060cb544211155b6110e15760405162461bcd60e51b8152600401610dc890614961565b600081116111015760405162461bcd60e51b8152600401610dc890614998565b611109613f88565b6000611114856129a0565b90508460c9600082825461112891906149c5565b909155506000905061113f64e8d4a51000836149dd565b9050600061271060da548361115491906149ff565b61115e91906149dd565b905060d454600014611182578660d4600082825461117c91906149c5565b90915550505b600060d45460c954116111975760d45461119b565b60c9545b905060d160000160d054815481106111b5576111b561491a565b90600052602060002001548111806111ef575060d160020160d054815481106111e0576111e061491a565b90600052602060002001544210155b1561131e5760d160020160d0548154811061120c5761120c61491a565b9060005260206000200154421061124f578760d160000160d054815481106112365761123661491a565b906000526020600020015461124b91906149c5565b60d4555b60dd54600160a01b900460ff161561126957611269613fce565b600060d1810160d054815481106112825761128261491a565b906000526020600020015482116112c6578160d160000160d054815481106112ac576112ac61491a565b90600052602060002001546112c19190614a1e565b6112c9565b60005b60d780546001818101835560009283527f8a012a6de2943a5aa4d77acf5e695d4456760a3f1f30a5d6dc2079599187a07190910183905560d0805493945090929091906113179084906149c5565b9091555050505b86156114615760dd54600160b01b900460ff16156113655733600090815260e3602052604090205460ff166113655760405162461bcd60e51b8152600401610dc890614a35565b60e5546001600160a01b03166391c619663360ce54611384908c6149ff565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b1580156113ca57600080fd5b505af11580156113de573d6000803e3d6000fd5b505050508760d960008282546113f491906149c5565b909155505060de546001600160a01b031688336001600160a01b03167f6f225532a9c33b023b8e48247ad8df9d98f132ae17c769b97ff22d2b278fa73a868842604051611454939291909283526020830191909152604082015260600190565b60405180910390a46114f6565b60ce5461146e90896149ff565b33600090815260e060205260408120805490919061148d9084906149c5565b909155505060de546001600160a01b031688336001600160a01b03167f4d8aead3491b7eba4b5c7a65fc17e493b9e63f9e433522fc5f6a85a168fc9d368688426040516114ed939291909283526020830191909152604082015260600190565b60405180910390a45b8360d5600082825461150891906149c5565b909155505060de546000906001600160a01b031663dd62ed3e336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015230602482015260440160206040518083038186803b15801561156757600080fd5b505afa15801561157b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061159f9190614a6c565b9050808411156115fb5760405162461bcd60e51b815260206004820152602160248201527f4d616b65207375726520746f2061646420656e6f75676820616c6c6f77616e636044820152606560f81b6064820152608401610dc8565b60de546000906001600160a01b03163360db546001600160a01b03166116218789614a1e565b60405160240161163393929190614a85565b60408051601f198184030181529181526020820180516001600160e01b03166323b872dd60e01b179052516116689190614aa9565b6000604051808303816000865af19150503d80600081146116a5576040519150601f19603f3d011682016040523d82523d6000602084013e6116aa565b606091505b50509050806116f25760405162461bcd60e51b8152602060048201526014602482015273151bdad95b881c185e5b595b9d0819985a5b195960621b6044820152606401610dc8565b60de546000906001600160a01b03163360dd5460405161172192916001600160a01b0316908990602401614a85565b60408051601f198184030181529181526020820180516001600160e01b03166323b872dd60e01b179052516117569190614aa9565b6000604051808303816000865af19150503d8060008114611793576040519150601f19603f3d011682016040523d82523d6000602084013e611798565b606091505b50509050806117f85760405162461bcd60e51b815260206004820152602660248201527f436f6d6d697373696f6e2057616c6c657420546f6b656e207061796d656e742060448201526519985a5b195960d21b6064820152608401610dc8565b60019850505050505050505b5092915050565b611813613f2e565b60dd8054911515600160a81b0260ff60a81b19909216919091179055565b611839613f2e565b60d855565b611846613f2e565b600081116118965760405162461bcd60e51b815260206004820152601c60248201527f5a65726f206d617820746f6b656e7320746f206275792076616c7565000000006044820152606401610dc8565b60cf8054908290556040805182815260208101849052428183015290517f76f9e5e1f6af6a9f180708b77a5c99210fbf19b91f1f194f3918c262b8edf77c9181900360600190a15050565b6000806118ed836129a0565b90506118f76128d8565b60ce5461190490836149ff565b61190e91906149dd565b9392505050565b60008260ca54421015801561192c575060cb544211155b6119485760405162461bcd60e51b8152600401610dc890614961565b600081116119685760405162461bcd60e51b8152600401610dc890614998565b611970613f88565b61197861403e565b6000611983856129a0565b9050600061198f6128d8565b60ce5461199c90846149ff565b6119a691906149dd565b9050600061271060da54836119bb91906149ff565b6119c591906149dd565b905081341015611a065760405162461bcd60e51b815260206004820152600c60248201526b13195cdcc81c185e5b595b9d60a21b6044820152606401610dc8565b6000611a128334614a1e565b90508760c96000828254611a2691906149c5565b909155505060d45415611a4b578760d46000828254611a4591906149c5565b90915550505b600060d45460c95411611a605760d454611a64565b60c9545b905060d160000160d05481548110611a7e57611a7e61491a565b9060005260206000200154811180611ab8575060d160020160d05481548110611aa957611aa961491a565b90600052602060002001544210155b15611be75760d160020160d05481548110611ad557611ad561491a565b90600052602060002001544210611b18578860d160000160d05481548110611aff57611aff61491a565b9060005260206000200154611b1491906149c5565b60d4555b60dd54600160a01b900460ff1615611b3257611b32613fce565b600060d1810160d05481548110611b4b57611b4b61491a565b90600052602060002001548211611b8f578160d160000160d05481548110611b7557611b7561491a565b9060005260206000200154611b8a9190614a1e565b611b92565b60005b60d780546001818101835560009283527f8a012a6de2943a5aa4d77acf5e695d4456760a3f1f30a5d6dc2079599187a07190910183905560d080549394509092909190611be09084906149c5565b9091555050505b8715611d0e5760dd54600160b01b900460ff1615611c2e5733600090815260e3602052604090205460ff16611c2e5760405162461bcd60e51b8152600401610dc890614a35565b60e5546001600160a01b03166391c619663360ce54611c4d908d6149ff565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b158015611c9357600080fd5b505af1158015611ca7573d6000803e3d6000fd5b505050508860d96000828254611cbd91906149c5565b90915550506040805185815260208101879052428183015290516000918b9133917f6f225532a9c33b023b8e48247ad8df9d98f132ae17c769b97ff22d2b278fa73a919081900360600190a4611d87565b60ce54611d1b908a6149ff565b33600090815260e0602052604081208054909190611d3a9084906149c5565b90915550506040805185815260208101879052428183015290516000918b9133917f4d8aead3491b7eba4b5c7a65fc17e493b9e63f9e433522fc5f6a85a168fc9d36919081900360600190a45b8460d56000828254611d9991906149c5565b909155505060db54611dbd906001600160a01b0316611db88587614a1e565b614098565b60dd54611dd3906001600160a01b031684614098565b8115611de357611de33383614098565b60019650505050505061180460018055565b611dfd613f2e565b612710811115611e4f5760405162461bcd60e51b815260206004820152601d60248201527f496e76616c696420636f6d6d697373696f6e2070657263656e746167650000006044820152606401610dc8565b60da5460408051918252602082018390524282820152517fb86231c0dbdc515e7dcda7e714bbf1da856daf39bc184464a014e32f4436712a9181900360600190a160da55565b6000611e9f613f2e565b60d154851115611ee15760405162461bcd60e51b815260206004820152600d60248201526c0d2dcecc2d8d2c840d2dcc8caf609b1b6044820152606401610dc8565b8315611f0b578360d16000018681548110611efe57611efe61491a565b6000918252602090912001555b8215611f35578260d16001018681548110611f2857611f2861491a565b6000918252602090912001555b8115611f5f578160d16002018681548110611f5257611f5261491a565b6000918252602090912001555b506001949350505050565b611f72613f2e565b611f7a614174565b565b6000611f86613f88565b60cd546001600160a01b0316611fd55760405162461bcd60e51b815260206004820152601460248201527314d85b19481d1bdad95b881b9bdd08185919195960621b6044820152606401610dc8565b33600090815260e2602052604090205460ff16156120355760405162461bcd60e51b815260206004820152601b60248201527f54686973204164647265737320697320426c61636b6c697374656400000000006044820152606401610dc8565b60dd54600160a81b900460ff16156120a65733600090815260e3602052604090205460ff166120a65760405162461bcd60e51b815260206004820152601e60248201527f55736572206e6f742077686974656c697374656420666f7220636c61696d00006044820152606401610dc8565b60cc544210156120f85760405162461bcd60e51b815260206004820152601960248201527f436c61696d20686173206e6f74207374617274656420796574000000000000006044820152606401610dc8565b33600090815260e1602052604090205460ff161561214a5760405162461bcd60e51b815260206004820152600f60248201526e105b1c9958591e4818db185a5b5959608a1b6044820152606401610dc8565b33600090815260e160209081526040808320805460ff1916600117905560e0909152902054806121af5760405162461bcd60e51b815260206004820152601060248201526f4e6f7468696e6720746f20636c61696d60801b6044820152606401610dc8565b33600081815260e06020908152604080832083905560cd54815163a9059cbb60e01b8152600481019590955260248501869052905192936001600160a01b039091169263a9059cbb9260448084019391929182900301818787803b15801561221657600080fd5b505af115801561222a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061224e9190614ae4565b9050806122955760405162461bcd60e51b8152602060048201526015602482015274151bdad95b881d1c985b9cd9995c8819985a5b1959605a1b6044820152606401610dc8565b6040805183815242602082015233917f9923b4306c6c030f2bdfbf156517d5983b87e15b96176da122cd4f2effa4ba7b910160405180910390a260019250505090565b6122e0613f2e565b60005b81811015610d6b57600060e360008585858181106123035761230361491a565b905060200201602081019061231891906144f8565b6001600160a01b031681526020810191909152604001600020805460ff19169115159190911790558061234a81614946565b9150506122e3565b600061235d826129a0565b905061236e64e8d4a51000826149dd565b92915050565b60dc546001600160a01b031633148061239757506065546001600160a01b031633145b6123e35760405162461bcd60e51b815260206004820152601960248201527f63616c6c6572206e6f742061646d696e206f72206f776e6572000000000000006044820152606401610dc8565b60d45460d680546001810182556000919091527fe767803f8ecf1dee6bb0345811f7312cda556058b19db6389ad9ae3568643ddd015560dd54600160a01b900460ff161561243357612433613fce565b60d160000160d0548154811061244b5761244b61491a565b906000526020600020015460d45410156124cb5760d45460d79060d160000160d0548154811061247d5761247d61491a565b90600052602060002001546124929190614a1e565b8154600181018355600092835260208320015560d10160d054815481106124bb576124bb61491a565b60009182526020909120015460d4555b60d080549060006124db83614946565b9190505550565b6124ea613f2e565b60dc80546001600160a01b0319166001600160a01b0392909216919091179055565b612514613f2e565b611f7a60006141c6565b612526613f2e565b6001600160a01b03811661256e5760405162461bcd60e51b815260206004820152600f60248201526e496e76616c6964206164647265737360881b6044820152606401610dc8565b60dd546040517fc4b7656c9545febf36a472de3d76d4e42e431bf2952f9326e2d4bf255e607a3b916125af916001600160a01b039091169084904290614a85565b60405180910390a160dd80546001600160a01b0319166001600160a01b0392909216919091179055565b6125e1613f2e565b611f7a614218565b6125f1613f2e565b60005b81811015610d6b57600060e260008585858181106126145761261461491a565b905060200201602081019061262991906144f8565b6001600160a01b031681526020810191909152604001600020805460ff19169115159190911790558061265b81614946565b9150506125f4565b600061266d613f2e565b6001600160a01b0383166126b85760405162461bcd60e51b81526020600482015260126024820152715a65726f20746f6b656e206164647265737360701b6044820152606401610dc8565b60cc54156126fc5760405162461bcd60e51b815260206004820152601160248201527010db185a5b48185b1c9958591e481cd95d607a1b6044820152606401610dc8565b60cc85905560cd80546001600160a01b038581166001600160a01b0319928316811790935560dd805460ff60a81b1916600160a81b17905560e5805491861691909216811790915560405163095ea7b360e01b81526004810191909152600019602482015263095ea7b390604401602060405180830381600087803b15801561278457600080fd5b505af1158015612798573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906127bc9190614ae4565b506040516323b872dd60e01b81526000906001600160a01b038516906323b872dd906127f090339030908a90600401614a85565b602060405180830381600087803b15801561280a57600080fd5b505af115801561281e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906128429190614ae4565b9050806128895760405162461bcd60e51b8152602060048201526015602482015274151bdad95b881d1c985b9cd9995c8819985a5b1959605a1b6044820152606401610dc8565b604080518681524260208201526001600160a01b038616917fdc9670dbabdd488b372eb16ebe49a39b3124a12cdffdcefbc89834a408bf8ff8910160405180910390a250600195945050505050565b60008060df60009054906101000a90046001600160a01b03166001600160a01b031663feaf968c6040518163ffffffff1660e01b815260040160a06040518083038186803b15801561292957600080fd5b505afa15801561293d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906129619190614b1b565b505050915050806402540be40061236e9190614b6b565b612980613f2e565b60d09190915560d455565b612993613f2e565b6110aa60d1826003614328565b600080600060d4546000146129b75760d4546129bb565b60c9545b905060cf54841115612a0f5760405162461bcd60e51b815260206004820181905260248201527f416d6f756e742065786365656473206d617820746f6b656e7320746f206275796044820152606401610dc8565b60d160000160d05481548110612a2757612a2761491a565b90600052602060002001548185612a3e91906149c5565b1180612a6c575060d160020160d05481548110612a5d57612a5d61491a565b90600052602060002001544210155b15612c9e5760d154612a8090600190614a1e565b60d05410612abf5760405162461bcd60e51b815260206004820152600c60248201526b57726f6e6720706172616d7360a01b6044820152606401610dc8565b60d160020160d05481548110612ad757612ad761491a565b90600052602060002001544210612bea5760d05460d190612af99060016149c5565b81548110612b0957612b0961491a565b90600052602060002001548460d1600060038110612b2957612b2961491a565b0160d05481548110612b3d57612b3d61491a565b9060005260206000200154612b5291906149c5565b1115612bac5760405162461bcd60e51b815260206004820152602360248201527f43616e74205075726368617365204d6f726520696e20696e646976696475616c604482015262040e8f60eb1b6064820152608401610dc8565b60d05460d290612bbd9060016149c5565b81548110612bcd57612bcd61491a565b906000526020600020015484612be391906149ff565b9150611804565b60008160d1820160d05481548110612c0457612c0461491a565b9060005260206000200154612c199190614a1e565b60d05490915060d290612c2d9060016149c5565b81548110612c3d57612c3d61491a565b90600052602060002001548186612c549190614a1e565b612c5e91906149ff565b60d160010160d05481548110612c7657612c7661491a565b906000526020600020015482612c8c91906149ff565b612c9691906149c5565b925050611804565b60d160010160d05481548110612cb657612cb661491a565b906000526020600020015484612ccc91906149ff565b949350505050565b60008260ca544210158015612ceb575060cb544211155b612d075760405162461bcd60e51b8152600401610dc890614961565b60008111612d275760405162461bcd60e51b8152600401610dc890614998565b612d2f613f88565b612d3761403e565b33600090815260e4602052604090205460ff16612d965760405162461bcd60e51b815260206004820181905260248201527f55736572206e6f742077686974656c697374656420666f7220746869732074786044820152606401610dc8565b6000612da1856129a0565b90506000612dad6128d8565b60ce54612dba90846149ff565b612dc491906149dd565b9050600061271060da5483612dd991906149ff565b612de391906149dd565b905081341015612e245760405162461bcd60e51b815260206004820152600c60248201526b13195cdcc81c185e5b595b9d60a21b6044820152606401610dc8565b6000612e308334614a1e565b90508760c96000828254612e4491906149c5565b909155505060d45415612e69578760d46000828254612e6391906149c5565b90915550505b600060d45460c95411612e7e5760d454612e82565b60c9545b905060d160000160d05481548110612e9c57612e9c61491a565b9060005260206000200154811180612ed6575060d160020160d05481548110612ec757612ec761491a565b90600052602060002001544210155b156130055760d160020160d05481548110612ef357612ef361491a565b90600052602060002001544210612f36578860d160000160d05481548110612f1d57612f1d61491a565b9060005260206000200154612f3291906149c5565b60d4555b60dd54600160a01b900460ff1615612f5057612f50613fce565b600060d1810160d05481548110612f6957612f6961491a565b90600052602060002001548211612fad578160d160000160d05481548110612f9357612f9361491a565b9060005260206000200154612fa89190614a1e565b612fb0565b60005b60d780546001818101835560009283527f8a012a6de2943a5aa4d77acf5e695d4456760a3f1f30a5d6dc2079599187a07190910183905560d080549394509092909190612ffe9084906149c5565b9091555050505b87156131435760dd54600160b01b900460ff1615613055576001600160a01b038a16600090815260e3602052604090205460ff166130555760405162461bcd60e51b8152600401610dc890614a35565b60e55460ce546001600160a01b03909116906391c61966908c90613079908d6149ff565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b1580156130bf57600080fd5b505af11580156130d3573d6000803e3d6000fd5b505050508860d960008282546130e991906149c5565b90915550506040805185815260208101879052428183015290516000918b916001600160a01b038e16917f6f225532a9c33b023b8e48247ad8df9d98f132ae17c769b97ff22d2b278fa73a919081900360600190a46131ce565b60ce54613150908a6149ff565b6001600160a01b038b16600090815260e06020526040812080549091906131789084906149c5565b90915550506040805185815260208101879052428183015290516000918b916001600160a01b038e16917f4d8aead3491b7eba4b5c7a65fc17e493b9e63f9e433522fc5f6a85a168fc9d36919081900360600190a45b8460d560008282546131e091906149c5565b909155505060db546131ff906001600160a01b0316611db88587614a1e565b60dd54613215906001600160a01b031684614098565b8115613225576132258a83614098565b60019650505050505061323760018055565b509392505050565b613247613f2e565b6001600160a01b0381166132c35760405162461bcd60e51b815260206004820152603760248201527f7374616b696e67206d616e616765722063616e6e6f7420626520696e6174696160448201527f6c697a65642077697468207a65726f20616464726573730000000000000000006064820152608401610dc8565b60e580546001600160a01b0319166001600160a01b0383811691821790925560cd5460405163095ea7b360e01b8152600481019290925260001960248301529091169063095ea7b390604401602060405180830381600087803b15801561332957600080fd5b505af115801561333d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110aa9190614ae4565b600061336b613f2e565b600084116133b25760405162461bcd60e51b8152602060048201526014602482015273696e76616c6964206e6f206f6620746f6b656e7360601b6044820152606401610dc8565b600083116133f65760405162461bcd60e51b8152602060048201526011602482015270696e76616c6964206e657720707269636560781b6044820152606401610dc8565b600082116134395760405162461bcd60e51b815260206004820152601060248201526f696e76616c6964206e65772074696d6560801b6044820152606401610dc8565b5060d1805460018082019092557f695fb3134ad82c3b8022bc5464edd0bcc9424ef672b52245dcb6ab2374327ce3019390935560d280548085019091557ff2192e1030363415d7b4fb0406540a0060e8e2fc8982f3f32289379e11fa6546019190915560d3805480840182556000919091527f915c3eb987b20e1af620c1403197bf687fb7f18513b3a73fde6e78c7072c41a6015590565b6134d9613f2e565b60dd8054911515600160b01b0260ff60b01b19909216919091179055565b606060d1826003811061350c5761350c61491a565b0180548060200260200160405190810160405280929190818152602001828054801561355757602002820191906000526020600020905b815481526020019060010190808311613543575b50505050509050919050565b61356b613f2e565b60005b81811015610d6b57600160e2600085858581811061358e5761358e61491a565b90506020020160208101906135a391906144f8565b6001600160a01b031681526020810191909152604001600020805460ff1916911515919091179055806135d581614946565b91505061356e565b60d781815481106135ed57600080fd5b600091825260209091200154905081565b606060d780548060200260200160405190810160405280929190818152602001828054801561364c57602002820191906000526020600020905b815481526020019060010190808311613638575b5050505050905090565b61365e613f2e565b6001600160a01b0381166136ad5760405162461bcd60e51b8152602060048201526016602482015275616464726573732063616e6e6f74206265207a65726f60501b6044820152606401610dc8565b60db80546001600160a01b0319166001600160a01b0392909216919091179055565b60006136d9613f88565b60cd546001600160a01b03166137285760405162461bcd60e51b815260206004820152601460248201527314d85b19481d1bdad95b881b9bdd08185919195960621b6044820152606401610dc8565b33600090815260e2602052604090205460ff16156137885760405162461bcd60e51b815260206004820152601b60248201527f54686973204164647265737320697320426c61636b6c697374656400000000006044820152606401610dc8565b60dd54600160b01b900460ff16156137c95733600090815260e3602052604090205460ff166137c95760405162461bcd60e51b8152600401610dc890614a35565b33600090815260e06020526040902054806138195760405162461bcd60e51b815260206004820152601060248201526f4e6f7468696e6720746f207374616b6560801b6044820152606401610dc8565b60e5546001600160a01b03166391c61966336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260248101849052604401600060405180830381600087803b15801561387357600080fd5b505af1158015613887573d6000803e3d6000fd5b5050505060e060006138963390565b6001600160a01b031681526020810191909152604001600090812055336001600160a01b03167ffa4ec67f9254455933eb145bae864b26f29dd0a7bbb76eb11e4d6b8b9b184c2b82426040516138f6929190918252602082015260400190565b60405180910390a2600191505090565b600054610100900460ff16158080156139265750600054600160ff909116105b806139405750303b158015613940575060005460ff166001145b6139a35760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401610dc8565b6000805460ff1916600117905580156139c6576000805461ff0019166101001790555b6001600160a01b038a16613a1c5760405162461bcd60e51b815260206004820152601760248201527f5a65726f2061676772656761746f7220616464726573730000000000000000006044820152606401610dc8565b6001600160a01b038916613a665760405162461bcd60e51b81526020600482015260116024820152705a65726f2055534454206164647265737360781b6044820152606401610dc8565b4286118015613a7457508585115b613aaf5760405162461bcd60e51b815260206004820152600c60248201526b496e76616c69642074696d6560a01b6044820152606401610dc8565b6001600160a01b038816613af75760405162461bcd60e51b815260206004820152600f60248201526e496e76616c6964206164647265737360881b6044820152606401610dc8565b612710871115613b495760405162461bcd60e51b815260206004820152601d60248201527f496e76616c696420636f6d6d697373696f6e2070657263656e746167650000006044820152606401610dc8565b613b51614255565b613b59614288565b613b616142b8565b670de0b6b3a764000060ce5560df80546001600160a01b03808d166001600160a01b03199283161790925560de8054928c169290911691909117905560ca86905560cb859055613bb460d1856003614328565b5060cf83905560db80546001600160a01b038481166001600160a01b03199283161790925560dd8054928b169290911691909117905560da87905560ca5460cb5460408051928352602083019190915242908201527f23f6ad8232d75562dd1c6b37dfc895af6bfc1ecd0fb3b88722c6a5e6b4dc9a209060600160405180910390a18015613c7c576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b50505050505050505050565b60d681815481106135ed57600080fd5b60d18260038110613ca857600080fd5b018181548110613cb757600080fd5b90600052602060002001600091509150505481565b613cd4613f2e565b60005b81811015610d6b57600160e36000858585818110613cf757613cf761491a565b9050602002016020810190613d0c91906144f8565b6001600160a01b031681526020810191909152604001600020805460ff191691151591909117905580613d3e81614946565b915050613cd7565b613d4e613f2e565b6001600160a01b038116613db35760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610dc8565b613dbc816141c6565b50565b613dc7613f2e565b60005b81811015610d6b57600060e46000858585818110613dea57613dea61491a565b9050602002016020810190613dff91906144f8565b6001600160a01b031681526020810191909152604001600020805460ff191691151591909117905580613e3181614946565b915050613dca565b613e41613f2e565b828114613e825760405162461bcd60e51b815260206004820152600f60248201526e098cadccee8d040dad2e6dac2e8c6d608b1b6044820152606401610dc8565b60005b83811015613f1857828282818110613e9f57613e9f61491a565b9050602002013560e06000878785818110613ebc57613ebc61491a565b9050602002016020810190613ed191906144f8565b6001600160a01b03166001600160a01b031681526020019081526020016000206000828254613f0091906149c5565b90915550819050613f1081614946565b915050613e85565b5050505050565b6001600160a01b03163b151590565b6065546001600160a01b03163314611f7a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610dc8565b60975460ff1615611f7a5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610dc8565b60005b60d05460d354613fe19190614a1e565b811015613dbc5760d854613ff590826149ff565b613fff90426149c5565b60d05460d3906140109084906149c5565b815481106140205761402061491a565b6000918252602090912001558061403681614946565b915050613fd1565b600260015414156140915760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610dc8565b6002600155565b804710156140d65760405162461bcd60e51b815260206004820152600b60248201526a4c6f772062616c616e636560a81b6044820152606401610dc8565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114614123576040519150601f19603f3d011682016040523d82523d6000602084013e614128565b606091505b5050905080610d6b5760405162461bcd60e51b81526020600482015260126024820152711155120814185e5b595b9d0819985a5b195960721b6044820152606401610dc8565b60018055565b61417c6142df565b6097805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b606580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b614220613f88565b6097805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586141a93390565b600054610100900460ff1661427c5760405162461bcd60e51b8152600401610dc890614bf0565b6097805460ff19169055565b600054610100900460ff166142af5760405162461bcd60e51b8152600401610dc890614bf0565b611f7a336141c6565b600054610100900460ff1661416e5760405162461bcd60e51b8152600401610dc890614bf0565b60975460ff16611f7a5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610dc8565b8260038101928215614368579160200282015b828111156143685782518051614358918491602090910190614378565b509160200191906001019061433b565b506143749291506143bf565b5090565b8280548282559060005260206000209081019282156143b3579160200282015b828111156143b3578251825591602001919060010190614398565b506143749291506143dc565b808211156143745760006143d382826143f1565b506001016143bf565b5b8082111561437457600081556001016143dd565b5080546000825590600052602060002090810190613dbc91906143dc565b60008083601f84011261442157600080fd5b50813567ffffffffffffffff81111561443957600080fd5b6020830191508360208260051b850101111561445457600080fd5b9250929050565b6000806020838503121561446e57600080fd5b823567ffffffffffffffff81111561448557600080fd5b6144918582860161440f565b90969095509350505050565b6000602082840312156144af57600080fd5b5035919050565b8015158114613dbc57600080fd5b6000602082840312156144d657600080fd5b813561190e816144b6565b80356001600160a01b0381168114610ea757600080fd5b60006020828403121561450a57600080fd5b61190e826144e1565b6000806040838503121561452657600080fd5b50508035926020909101359150565b6000806040838503121561454857600080fd5b82359150602083013561455a816144b6565b809150509250929050565b6000806000806080858703121561457b57600080fd5b5050823594602084013594506040840135936060013592509050565b600080600080608085870312156145ad57600080fd5b84359350602085013592506145c4604086016144e1565b91506145d2606086016144e1565b905092959194509250565b634e487b7160e01b600052604160045260246000fd5b6040516060810167ffffffffffffffff81118282101715614616576146166145dd565b60405290565b604051601f8201601f1916810167ffffffffffffffff81118282101715614645576146456145dd565b604052919050565b6000601f838184011261465f57600080fd5b6146676145f3565b80606085018681111561467957600080fd5b855b8181101561472257803567ffffffffffffffff8082111561469c5760008081fd5b818901915089878301126146b05760008081fd5b81356020828211156146c4576146c46145dd565b8160051b92506146d581840161461c565b828152928401810192818101908d8511156146f257600093508384fd5b948201945b84861015614710578535825294820194908201906146f7565b8952509096019550505060200161467b565b50909695505050505050565b60006020828403121561474057600080fd5b813567ffffffffffffffff81111561475757600080fd5b612ccc8482850161464d565b60008060006060848603121561477857600080fd5b614781846144e1565b9250602084013591506040840135614798816144b6565b809150509250925092565b6000806000606084860312156147b857600080fd5b505081359360208301359350604090920135919050565b6020808252825182820181905260009190848201906040850190845b81811015614722578351835292840192918401916001016147eb565b60008060008060008060008060006101208a8c03121561482657600080fd5b61482f8a6144e1565b985061483d60208b016144e1565b975061484b60408b016144e1565b965060608a0135955060808a0135945060a08a0135935060c08a013567ffffffffffffffff81111561487c57600080fd5b6148888c828d0161464d565b93505060e08a0135915061489f6101008b016144e1565b90509295985092959850929598565b600080600080604085870312156148c457600080fd5b843567ffffffffffffffff808211156148dc57600080fd5b6148e88883890161440f565b9096509450602087013591508082111561490157600080fd5b5061490e8782880161440f565b95989497509550505050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600060001982141561495a5761495a614930565b5060010190565b60208082526017908201527f496e76616c69642074696d6520666f7220627579696e67000000000000000000604082015260600190565b602080825260139082015272125b9d985b1a59081cd85b1948185b5bdd5b9d606a1b604082015260600190565b600082198211156149d8576149d8614930565b500190565b6000826149fa57634e487b7160e01b600052601260045260246000fd5b500490565b6000816000190483118215151615614a1957614a19614930565b500290565b600082821015614a3057614a30614930565b500390565b6020808252601e908201527f55736572206e6f742077686974656c697374656420666f72207374616b650000604082015260600190565b600060208284031215614a7e57600080fd5b5051919050565b6001600160a01b039384168152919092166020820152604081019190915260600190565b6000825160005b81811015614aca5760208186018101518583015201614ab0565b81811115614ad9576000828501525b509190910192915050565b600060208284031215614af657600080fd5b815161190e816144b6565b805169ffffffffffffffffffff81168114610ea757600080fd5b600080600080600060a08688031215614b3357600080fd5b614b3c86614b01565b9450602086015193506040860151925060608601519150614b5f60808701614b01565b90509295509295909350565b60006001600160ff1b0381841382841380821686840486111615614b9157614b91614930565b600160ff1b6000871282811687830589121615614bb057614bb0614930565b60008712925087820587128484161615614bcc57614bcc614930565b87850587128184161615614be257614be2614930565b505050929093029392505050565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b60608201526080019056fea2646970667358221220eb2e0dd39399ce00b3dd5617c53ce560a28dd3ea8a2a750acbd7e55149c93fb564736f6c63430008090033
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in ETH
0
Multichain Portfolio | 34 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
Loading...
Loading
Loading...
Loading
Loading...
Loading
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.