Source Code
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
PresaleV2
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/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; } interface ISanctionsList { function isSanctioned(address addr) external view returns (bool); } contract PresaleV2 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 public checkPoint; uint256 public usdRaised; uint256 public timeConstant; uint256 public totalBoughtAndStaked; uint256[][3] public rounds; uint256[] public prevCheckpoints; uint256[] public remainingTokensTracker; uint256[] public percentages; address[] public wallets; address public paymentWallet; address public admin; 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; ISanctionsList public sanctionsList; bool public applySanctions; IERC20Upgradeable public USDCInterface; 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 ); /// @custom:oz-upgrades-unsafe-allow constructor constructor() initializer {} /** * @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); } function setSplits( address[] memory _wallets, uint256[] memory _percentages ) public onlyOwner { require(_wallets.length == _percentages.length, "Mismatched arrays"); delete wallets; delete percentages; uint256 totalPercentage = 0; for (uint256 i = 0; i < _wallets.length; i++) { require(_percentages[i] > 0, "Percentage must be greater than 0"); totalPercentage += _percentages[i]; wallets.push(_wallets[i]); percentages.push(_percentages[i]); } require(totalPercentage == 100, "Total percentage must equal 100"); } 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) checkSanction(_msgSender()) whenNotPaused returns (bool) { uint256 usdPrice = calculatePrice(amount); totalTokensSold += amount; uint256 price = usdPrice / (10 ** 12); 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 - amount; 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"); splitUSDTValue(price); return true; } /** * @dev To buy into a presale using USDC * @param amount No of tokens to buy * @param stake boolean flag for token staking */ function buyWithUSDC( uint256 amount, bool stake ) external checkSaleState(amount) checkSanction(_msgSender()) whenNotPaused returns (bool) { uint256 usdPrice = calculatePrice(amount); totalTokensSold += amount; uint256 price = usdPrice / (10 ** 12); 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 - amount; 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(USDCInterface), price, usdPrice, block.timestamp ); } else { userDeposits[_msgSender()] += (amount * baseDecimals); emit TokensBought( _msgSender(), amount, address(USDCInterface), price, usdPrice, block.timestamp ); } usdRaised += usdPrice; uint256 ourAllowance = USDCInterface.allowance( _msgSender(), address(this) ); require(price <= ourAllowance, "Make sure to add enough allowance"); splitUSDCValue(price); 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) checkSanction(_msgSender()) whenNotPaused nonReentrant returns (bool) { uint256 usdPrice = calculatePrice(amount); uint256 ethAmount = (usdPrice * baseDecimals) / getLatestPrice(); require(msg.value >= ethAmount, "Less payment"); uint256 excess = msg.value - ethAmount; totalTokensSold += amount; if (checkPoint != 0) checkPoint += amount; uint256 total = totalTokensSold > checkPoint ? totalTokensSold : checkPoint; if ( total > rounds[0][currentStep] || block.timestamp >= rounds[2][currentStep] ) { if (block.timestamp >= rounds[2][currentStep]) { checkPoint = rounds[0][currentStep] + amount; } if (dynamicTimeFlag) { manageTimeDiff(); } uint256 unsoldTokens = total > rounds[0][currentStep] ? 0 : rounds[0][currentStep] - total - amount; 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; splitETHValue(ethAmount); 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) checkSanction(_user) whenNotPaused nonReentrant returns (bool) { require( wertWhitelisted[_msgSender()], "User not whitelisted for this tx" ); uint256 usdPrice = calculatePrice(_amount); uint256 ethAmount = (usdPrice * baseDecimals) / getLatestPrice(); require(msg.value >= ethAmount, "Less payment"); uint256 excess = msg.value - ethAmount; totalTokensSold += _amount; if (checkPoint != 0) checkPoint += _amount; uint256 total = totalTokensSold > checkPoint ? totalTokensSold : checkPoint; if ( total > rounds[0][currentStep] || block.timestamp >= rounds[2][currentStep] ) { if (block.timestamp >= rounds[2][currentStep]) { checkPoint = rounds[0][currentStep] + _amount; } if (dynamicTimeFlag) { manageTimeDiff(); } uint256 unsoldTokens = total > rounds[0][currentStep] ? 0 : rounds[0][currentStep] - total - _amount; 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; splitETHValue(ethAmount); 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"); } function splitETHValue(uint256 _amount) internal { if (wallets.length == 0) { require(paymentWallet != address(0), "Payment wallet not set"); sendValue(payable(paymentWallet), _amount); } else { uint256 tempCalc; for (uint256 i = 0; i < wallets.length; i++) { uint256 amountToTransfer = (_amount * percentages[i]) / 100; sendValue(payable(wallets[i]), amountToTransfer); tempCalc += amountToTransfer; } if ((_amount - tempCalc) > 0) { sendValue( payable(wallets[wallets.length - 1]), _amount - tempCalc ); } } } function splitUSDTValue(uint256 _amount) internal { if (wallets.length == 0) { require(paymentWallet != address(0), "Payment wallet not set"); (bool success, ) = address(USDTInterface).call( abi.encodeWithSignature( "transferFrom(address,address,uint256)", _msgSender(), paymentWallet, _amount ) ); require(success, "Token payment failed"); } else { uint256 tempCalc; for (uint256 i = 0; i < wallets.length; i++) { uint256 amountToTransfer = (_amount * percentages[i]) / 100; (bool success, ) = address(USDTInterface).call( abi.encodeWithSignature( "transferFrom(address,address,uint256)", _msgSender(), wallets[i], amountToTransfer ) ); require(success, "Token payment failed"); tempCalc += amountToTransfer; } if ((_amount - tempCalc) > 0) { (bool success, ) = address(USDTInterface).call( abi.encodeWithSignature( "transferFrom(address,address,uint256)", _msgSender(), wallets[wallets.length - 1], _amount - tempCalc ) ); require(success, "Token payment failed"); } } } function splitUSDCValue(uint256 _amount) internal { if (wallets.length == 0) { require(paymentWallet != address(0), "Payment wallet not set"); (bool success, ) = address(USDCInterface).call( abi.encodeWithSignature( "transferFrom(address,address,uint256)", _msgSender(), paymentWallet, _amount ) ); require(success, "Token payment failed"); } else { uint256 tempCalc; for (uint256 i = 0; i < wallets.length; i++) { uint256 amountToTransfer = (_amount * percentages[i]) / 100; (bool success, ) = address(USDCInterface).call( abi.encodeWithSignature( "transferFrom(address,address,uint256)", _msgSender(), wallets[i], amountToTransfer ) ); require(success, "Token payment failed"); tempCalc += amountToTransfer; } if ((_amount - tempCalc) > 0) { (bool success, ) = address(USDCInterface).call( abi.encodeWithSignature( "transferFrom(address,address,uint256)", _msgSender(), wallets[wallets.length - 1], _amount - tempCalc ) ); require(success, "Token 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; } function setUSDCInterface(address _usdc) external onlyOwner { USDCInterface = IERC20Upgradeable(_usdc); } /** * @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]) { if (currentStep == 0) { remainingTokensTracker.push( rounds[0][currentStep] - totalTokensSold ); } else { 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; } /** * @dev Function to return remainingTokenTracker Array */ function trackRemainingTokens() external view returns (uint256[] memory) { return remainingTokensTracker; } /** * @dev To update remainingTokensTracker Array * @param _unsoldTokens input parameters in uint256 array format */ function setRemainingTokensArray(uint256[] memory _unsoldTokens) public { require( msg.sender == admin || msg.sender == owner(), "caller not admin or owner" ); require(_unsoldTokens.length != 0, "cannot update invalid values"); delete remainingTokensTracker; for (uint256 i; i < _unsoldTokens.length; i++) { remainingTokensTracker.push(_unsoldTokens[i]); } } /** * @dev Sets the sanction details * @param _sanctionContract addresses of the contract * @param _applySanction boolean on whether the contract has to consider sanction list or not */ function setSanctions( address _sanctionContract, bool _applySanction ) external onlyOwner { require(_sanctionContract != address(0)); sanctionsList = ISanctionsList(_sanctionContract); applySanctions = _applySanction; } /** * @dev Checks if sanction list is enabled and if user is in sanction list, reverts the transaction. * @param _user addresses of the user */ modifier checkSanction(address _user) { if (applySanctions) { require( !sanctionsList.isSanctioned(_user), "Address present in sanction list" ); } _; } }
// 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":"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":"USDCInterface","outputs":[{"internalType":"contract IERC20Upgradeable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"USDTInterface","outputs":[{"internalType":"contract IERC20Upgradeable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"admin","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"aggregatorInterface","outputs":[{"internalType":"contract Aggregator","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"applySanctions","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":"buyWithUSDC","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","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":"_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":"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":"","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":"percentages","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":[],"name":"sanctionsList","outputs":[{"internalType":"contract ISanctionsList","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_admin","type":"address"}],"name":"setAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_status","type":"bool"}],"name":"setClaimWhitelistStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_step","type":"uint256"},{"internalType":"uint256","name":"_checkpoint","type":"uint256"}],"name":"setCurrentStep","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_dynamicTimeFlag","type":"bool"}],"name":"setDynamicTimeFlag","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_unsoldTokens","type":"uint256[]"}],"name":"setRemainingTokensArray","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_sanctionContract","type":"address"},{"internalType":"bool","name":"_applySanction","type":"bool"}],"name":"setSanctions","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_wallets","type":"address[]"},{"internalType":"uint256[]","name":"_percentages","type":"uint256[]"}],"name":"setSplits","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":[{"internalType":"address","name":"_usdc","type":"address"}],"name":"setUSDCInterface","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":"uint256","name":"","type":"uint256"}],"name":"wallets","outputs":[{"internalType":"address","name":"","type":"address"}],"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
60806040523480156200001157600080fd5b50600054610100900460ff1615808015620000335750600054600160ff909116105b8062000063575062000050306200013d60201b6200407b1760201c565b15801562000063575060005460ff166001145b620000cb5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b606482015260840160405180910390fd5b6000805460ff191660011790558015620000ef576000805461ff0019166101001790555b801562000136576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b506200014c565b6001600160a01b03163b151590565b6154a6806200015c6000396000f3fe6080604052600436106104475760003560e01c80638456cb5911610234578063cad005561161012e578063ec571c6a116100b6578063f597573f1161007a578063f597573f14610ccd578063f851a44014610ced578063f885838614610d0d578063fb9a4acd14610d2d578063fe575a8714610d4d57600080fd5b8063ec571c6a14610c37578063edec5f2714610c57578063f04d688f14610c77578063f2fde38b14610c8d578063f446374314610cad57600080fd5b8063e19648db116100fd578063e19648db14610ba1578063e32204dd14610bc1578063e6da921314610be1578063e985e36714610c01578063eadd94ec14610c2157600080fd5b8063cad0055614610b35578063cb1a4fc014610b55578063cff805ab14610b6a578063dad80e8614610b8057600080fd5b8063ae104265116101bc578063bb3d676a11610180578063bb3d676a14610aa0578063bff1cbec14610ac0578063c23326f314610ae0578063c49cc64514610b00578063c8adff0114610b2057600080fd5b8063ae10426514610a00578063ae4e0a1814610a20578063b00bba6a14610a33578063b8977d6d14610a53578063ba166a3914610a7357600080fd5b80638da5cb5b116102035780638da5cb5b146109775780638e15f473146109955780639a89c1fb146109aa5780639cfa0f7c146109ca578063a6d42e4e146109e057600080fd5b80638456cb591461090257806389daf799146109175780638ac08082146109375780638b3fb1821461095757600080fd5b80633af32abf116103455780635df4f353116102cd578063715018a611610291578063715018a61461087157806373b2e80e1461088657806378e97925146108b65780637ad71f72146108cc5780637f6fb253146108ec57600080fd5b80635df4f353146107d657806363b201171461080657806363e408791461081c578063641046f41461083c578063704b6c021461085157600080fd5b806353d992071161031457806353d9920714610747578063548db174146107685780635bc34f71146107885780635c975abb1461079e5780635ddc5688146107b657600080fd5b80633af32abf146106d75780633f4ba83a1461070757806343568eae1461071c5780634e71d92d1461073257600080fd5b806325312e54116103d35780632dc358e8116103975780632dc358e81461064a57806330e74f081461066a5780633197cbb61461068b57806333f76178146106a157806338646608146106b757600080fd5b806325312e541461059f578063278c278b146105d757806329a5a0b6146105f75780632c65169e146106175780632c73304d1461062a57600080fd5b80630dc9c8381161041a5780630dc9c838146104fe578063136021d91461051e5780631ddc60911461053e5780631fa2bc921461055e57806323a8f1c01461057f57600080fd5b806303b9c5ad1461044c57806307f180821461046e5780630a200fc7146104a35780630ba36dcd146104c3575b600080fd5b34801561045857600080fd5b5061046c610467366004614b63565b610d7d565b005b34801561047a57600080fd5b5061048e610489366004614ba5565b610dfc565b60405190151581526020015b60405180910390f35b3480156104af57600080fd5b5061046c6104be366004614bcc565b610f38565b3480156104cf57600080fd5b506104f06104de366004614c00565b60e06020526000908152604090205481565b60405190815260200161049a565b34801561050a57600080fd5b5061046c610519366004614c1b565b610f5e565b34801561052a57600080fd5b5061048e610539366004614c3d565b61113a565b34801561054a57600080fd5b5061046c610559366004614bcc565b6116ca565b34801561056a57600080fd5b5060dd5461048e90600160a01b900460ff1681565b34801561058b57600080fd5b5061046c61059a366004614ba5565b6116f0565b3480156105ab57600080fd5b5060e7546105bf906001600160a01b031681565b6040516001600160a01b03909116815260200161049a565b3480156105e357600080fd5b5061046c6105f2366004614ba5565b6116fd565b34801561060357600080fd5b506104f0610612366004614ba5565b6117a0565b61048e610625366004614c3d565b6117d4565b34801561063657600080fd5b5061046c610645366004614c6d565b611ceb565b34801561065657600080fd5b5061046c610665366004614d98565b611d33565b34801561067657600080fd5b5060e65461048e90600160a01b900460ff1681565b34801561069757600080fd5b506104f060cb5481565b3480156106ad57600080fd5b506104f060ce5481565b3480156106c357600080fd5b5060e5546105bf906001600160a01b031681565b3480156106e357600080fd5b5061048e6106f2366004614c00565b60e36020526000908152604090205460ff1681565b34801561071357600080fd5b5061046c611e49565b34801561072857600080fd5b506104f060d35481565b34801561073e57600080fd5b5061048e611e5b565b34801561075357600080fd5b5060dd5461048e90600160a81b900460ff1681565b34801561077457600080fd5b5061046c610783366004614b63565b6121b7565b34801561079457600080fd5b506104f060d05481565b3480156107aa57600080fd5b5060975460ff1661048e565b3480156107c257600080fd5b5061046c6107d1366004614dd5565b612231565b3480156107e257600080fd5b5061048e6107f1366004614c00565b60e46020526000908152604090205460ff1681565b34801561081257600080fd5b506104f060c95481565b34801561082857600080fd5b506104f0610837366004614ba5565b612425565b34801561084857600080fd5b5061046c612447565b34801561085d57600080fd5b5061046c61086c366004614c00565b61260c565b34801561087d57600080fd5b5061046c612636565b34801561089257600080fd5b5061048e6108a1366004614c00565b60e16020526000908152604090205460ff1681565b3480156108c257600080fd5b506104f060ca5481565b3480156108d857600080fd5b506105bf6108e7366004614ba5565b612648565b3480156108f857600080fd5b506104f060d45481565b34801561090e57600080fd5b5061046c612672565b34801561092357600080fd5b5061046c610932366004614b63565b612682565b34801561094357600080fd5b5061048e610952366004614e95565b6126fc565b34801561096357600080fd5b5061046c610972366004614c00565b61292d565b34801561098357600080fd5b506065546001600160a01b03166105bf565b3480156109a157600080fd5b506104f0612957565b3480156109b657600080fd5b5061046c6109c5366004614c1b565b6129f7565b3480156109d657600080fd5b506104f060cf5481565b3480156109ec57600080fd5b5061046c6109fb366004614edb565b612a0a565b348015610a0c57600080fd5b506104f0610a1b366004614ba5565b612a1f565b61048e610a2e366004614f76565b612d55565b348015610a3f57600080fd5b5061046c610a4e366004614c00565b6132fe565b348015610a5f57600080fd5b5061046c610a6e366004614bcc565b613420565b348015610a7f57600080fd5b50610a93610a8e366004614ba5565b613446565b60405161049a9190614fb6565b348015610aac57600080fd5b5061046c610abb366004614b63565b6134b2565b348015610acc57600080fd5b5061048e610adb366004614c3d565b61352c565b348015610aec57600080fd5b506104f0610afb366004614ba5565b613aab565b348015610b0c57600080fd5b5060df546105bf906001600160a01b031681565b348015610b2c57600080fd5b50610a93613acc565b348015610b4157600080fd5b5061046c610b50366004614c00565b613b24565b348015610b6157600080fd5b5061048e613b9d565b348015610b7657600080fd5b506104f060d15481565b348015610b8c57600080fd5b5060dd5461048e90600160b01b900460ff1681565b348015610bad57600080fd5b506104f0610bbc366004614ba5565b613dd4565b348015610bcd57600080fd5b5060dc546105bf906001600160a01b031681565b348015610bed57600080fd5b506104f0610bfc366004614c1b565b613de4565b348015610c0d57600080fd5b5060cd546105bf906001600160a01b031681565b348015610c2d57600080fd5b506104f060d25481565b348015610c4357600080fd5b5060e6546105bf906001600160a01b031681565b348015610c6357600080fd5b5061046c610c72366004614b63565b613e18565b348015610c8357600080fd5b506104f060cc5481565b348015610c9957600080fd5b5061046c610ca8366004614c00565b613e92565b348015610cb957600080fd5b5061046c610cc8366004614b63565b613f0b565b348015610cd957600080fd5b5060de546105bf906001600160a01b031681565b348015610cf957600080fd5b5060dd546105bf906001600160a01b031681565b348015610d1957600080fd5b506104f0610d28366004614ba5565b613f85565b348015610d3957600080fd5b5061046c610d48366004614ffa565b613f95565b348015610d5957600080fd5b5061048e610d68366004614c00565b60e26020526000908152604090205460ff1681565b610d8561408a565b60005b81811015610df757600160e46000858585818110610da857610da8615066565b9050602002016020810190610dbd9190614c00565b6001600160a01b031681526020810191909152604001600020805460ff191691151591909117905580610def81615092565b915050610d88565b505050565b6000610e0661408a565b600060cc5411610e5d5760405162461bcd60e51b815260206004820152601a60248201527f496e697469616c20636c61696d2064617461206e6f742073657400000000000060448201526064015b60405180910390fd5b60cb548211610ea15760405162461bcd60e51b815260206004820152601060248201526f53616c6520696e2070726f677265737360801b6044820152606401610e54565b428211610ee65760405162461bcd60e51b815260206004820152601360248201527210db185a5b481cdd185c9d081a5b881c185cdd606a1b6044820152606401610e54565b60cc8054908390556040805182815260208101859052428183015290517f5f3a900c85949962b4cc192dd3714dae64071dc2e907049ec720b023270905a49181900360600190a160019150505b919050565b610f4061408a565b60dd8054911515600160a01b0260ff60a01b19909216919091179055565b610f6661408a565b6000821180610f755750600081115b610fb65760405162461bcd60e51b8152602060048201526012602482015271496e76616c696420706172616d657465727360701b6044820152606401610e54565b811561109b5760ca5442106110045760405162461bcd60e51b815260206004820152601460248201527314d85b1948185b1c9958591e481cdd185c9d195960621b6044820152606401610e54565b8142106110475760405162461bcd60e51b815260206004820152601160248201527014d85b19481d1a5b59481a5b881c185cdd607a1b6044820152606401610e54565b60ca8054908390556040805182815260208101859052428183015290516414d510549560da1b917fddd2ed237e6993c9380182683f2c8bec486aaaa429528852cd74dbdb96cea0b2919081900360600190a2505b80156111365760ca5481116110e45760405162461bcd60e51b815260206004820152600f60248201526e496e76616c696420656e6454696d6560881b6044820152606401610e54565b60cb8054908290556040805182815260208101849052428183015290516211539160ea1b917fddd2ed237e6993c9380182683f2c8bec486aaaa429528852cd74dbdb96cea0b2919081900360600190a2505b5050565b60008260ca544210158015611151575060cb544211155b61116d5760405162461bcd60e51b8152600401610e54906150ad565b6000811161118d5760405162461bcd60e51b8152600401610e54906150e4565b3360e654600160a01b900460ff161561123a5760e65460405163df592f7d60e01b81526001600160a01b0383811660048301529091169063df592f7d9060240160206040518083038186803b1580156111e557600080fd5b505afa1580156111f9573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061121d9190615111565b1561123a5760405162461bcd60e51b8152600401610e549061512e565b6112426140e4565b600061124d86612a1f565b90508560c960008282546112619190615163565b909155506000905061127864e8d4a510008361517b565b905060d15460001461129c578660d160008282546112969190615163565b90915550505b600060d15460c954116112b15760d1546112b5565b60c9545b905060d560000160d054815481106112cf576112cf615066565b9060005260206000200154811180611309575060d560020160d054815481106112fa576112fa615066565b90600052602060002001544210155b156114315760d560020160d0548154811061132657611326615066565b90600052602060002001544210611369578760d560000160d0548154811061135057611350615066565b90600052602060002001546113659190615163565b60d1555b60dd54600160a01b900460ff16156113835761138361412a565b600060d5810160d0548154811061139c5761139c615066565b906000526020600020015482116113eb57888260d560000160d054815481106113c7576113c7615066565b90600052602060002001546113dc919061519d565b6113e6919061519d565b6113ee565b60005b60d9805460018181018355600092835260008051602061545183398151915290910183905560d08054939450909290919061142a908490615163565b9091555050505b86156115625760dd54600160b01b900460ff16156114785733600090815260e3602052604090205460ff166114785760405162461bcd60e51b8152600401610e54906151b4565b60e5546001600160a01b03166391c619663360ce54611497908c6151eb565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b1580156114dd57600080fd5b505af11580156114f1573d6000803e3d6000fd5b505050508760d460008282546115079190615163565b909155505060de546001600160a01b031688336001600160a01b0316600080516020615411833981519152858742604051611555939291909283526020830191909152604082015260600190565b60405180910390a46115e5565b60ce5461156f90896151eb565b33600090815260e060205260408120805490919061158e908490615163565b909155505060de546001600160a01b031688336001600160a01b03166000805160206154318339815191528587426040516115dc939291909283526020830191909152604082015260600190565b60405180910390a45b8260d260008282546115f79190615163565b909155505060de546000906001600160a01b031663dd62ed3e336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015230602482015260440160206040518083038186803b15801561165657600080fd5b505afa15801561166a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061168e919061520a565b9050808311156116b05760405162461bcd60e51b8152600401610e5490615223565b6116b98361419a565b60019650505050505b505092915050565b6116d261408a565b60dd8054911515600160a81b0260ff60a81b19909216919091179055565b6116f861408a565b60d355565b61170561408a565b600081116117555760405162461bcd60e51b815260206004820152601c60248201527f5a65726f206d617820746f6b656e7320746f206275792076616c7565000000006044820152606401610e54565b60cf8054908290556040805182815260208101849052428183015290517f76f9e5e1f6af6a9f180708b77a5c99210fbf19b91f1f194f3918c262b8edf77c9181900360600190a15050565b6000806117ac83612a1f565b90506117b6612957565b60ce546117c390836151eb565b6117cd919061517b565b9392505050565b60008260ca5442101580156117eb575060cb544211155b6118075760405162461bcd60e51b8152600401610e54906150ad565b600081116118275760405162461bcd60e51b8152600401610e54906150e4565b3360e654600160a01b900460ff16156118d45760e65460405163df592f7d60e01b81526001600160a01b0383811660048301529091169063df592f7d9060240160206040518083038186803b15801561187f57600080fd5b505afa158015611893573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118b79190615111565b156118d45760405162461bcd60e51b8152600401610e549061512e565b6118dc6140e4565b6118e46144ea565b60006118ef86612a1f565b905060006118fb612957565b60ce5461190890846151eb565b611912919061517b565b9050803410156119535760405162461bcd60e51b815260206004820152600c60248201526b13195cdcc81c185e5b595b9d60a21b6044820152606401610e54565b600061195f823461519d565b90508760c960008282546119739190615163565b909155505060d15415611998578760d160008282546119929190615163565b90915550505b600060d15460c954116119ad5760d1546119b1565b60c9545b905060d560000160d054815481106119cb576119cb615066565b9060005260206000200154811180611a05575060d560020160d054815481106119f6576119f6615066565b90600052602060002001544210155b15611b2d5760d560020160d05481548110611a2257611a22615066565b90600052602060002001544210611a65578860d560000160d05481548110611a4c57611a4c615066565b9060005260206000200154611a619190615163565b60d1555b60dd54600160a01b900460ff1615611a7f57611a7f61412a565b600060d5810160d05481548110611a9857611a98615066565b90600052602060002001548211611ae757898260d560000160d05481548110611ac357611ac3615066565b9060005260206000200154611ad8919061519d565b611ae2919061519d565b611aea565b60005b60d9805460018181018355600092835260008051602061545183398151915290910183905560d080549394509092909190611b26908490615163565b9091555050505b8715611c425760dd54600160b01b900460ff1615611b745733600090815260e3602052604090205460ff16611b745760405162461bcd60e51b8152600401610e54906151b4565b60e5546001600160a01b03166391c619663360ce54611b93908d6151eb565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b158015611bd957600080fd5b505af1158015611bed573d6000803e3d6000fd5b505050508860d46000828254611c039190615163565b90915550506040805184815260208101869052428183015290516000918b913391600080516020615411833981519152919081900360600190a4611ca9565b60ce54611c4f908a6151eb565b33600090815260e0602052604081208054909190611c6e908490615163565b90915550506040805184815260208101869052428183015290516000918b913391600080516020615431833981519152919081900360600190a45b8360d26000828254611cbb9190615163565b90915550611cca905083614544565b8115611cda57611cda3383614678565b60019650505050506116c260018055565b611cf361408a565b6001600160a01b038216611d0657600080fd5b60e68054911515600160a01b026001600160a81b03199092166001600160a01b0390931692909217179055565b60dd546001600160a01b0316331480611d5657506065546001600160a01b031633145b611d9e5760405162461bcd60e51b815260206004820152601960248201527831b0b63632b9103737ba1030b236b4b71037b91037bbb732b960391b6044820152606401610e54565b8051611dec5760405162461bcd60e51b815260206004820152601c60248201527f63616e6e6f742075706461746520696e76616c69642076616c756573000000006044820152606401610e54565b611df860d96000614a30565b60005b81518110156111365760d9828281518110611e1857611e18615066565b6020908102919091018101518254600181018455600093845291909220015580611e4181615092565b915050611dfb565b611e5161408a565b611e5961474e565b565b6000611e656140e4565b60cd546001600160a01b0316611eb45760405162461bcd60e51b815260206004820152601460248201527314d85b19481d1bdad95b881b9bdd08185919195960621b6044820152606401610e54565b33600090815260e2602052604090205460ff1615611f145760405162461bcd60e51b815260206004820152601b60248201527f54686973204164647265737320697320426c61636b6c697374656400000000006044820152606401610e54565b60dd54600160a81b900460ff1615611f855733600090815260e3602052604090205460ff16611f855760405162461bcd60e51b815260206004820152601e60248201527f55736572206e6f742077686974656c697374656420666f7220636c61696d00006044820152606401610e54565b60cc54421015611fd75760405162461bcd60e51b815260206004820152601960248201527f436c61696d20686173206e6f74207374617274656420796574000000000000006044820152606401610e54565b33600090815260e1602052604090205460ff16156120295760405162461bcd60e51b815260206004820152600f60248201526e105b1c9958591e4818db185a5b5959608a1b6044820152606401610e54565b33600090815260e160209081526040808320805460ff1916600117905560e09091529020548061208e5760405162461bcd60e51b815260206004820152601060248201526f4e6f7468696e6720746f20636c61696d60801b6044820152606401610e54565b33600081815260e06020908152604080832083905560cd54815163a9059cbb60e01b8152600481019590955260248501869052905192936001600160a01b039091169263a9059cbb9260448084019391929182900301818787803b1580156120f557600080fd5b505af1158015612109573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061212d9190615111565b9050806121745760405162461bcd60e51b8152602060048201526015602482015274151bdad95b881d1c985b9cd9995c8819985a5b1959605a1b6044820152606401610e54565b6040805183815242602082015233917f9923b4306c6c030f2bdfbf156517d5983b87e15b96176da122cd4f2effa4ba7b910160405180910390a260019250505090565b6121bf61408a565b60005b81811015610df757600060e360008585858181106121e2576121e2615066565b90506020020160208101906121f79190614c00565b6001600160a01b031681526020810191909152604001600020805460ff19169115159190911790558061222981615092565b9150506121c2565b61223961408a565b805182511461227e5760405162461bcd60e51b81526020600482015260116024820152704d69736d6174636865642061727261797360781b6044820152606401610e54565b61228a60db6000614a30565b61229660da6000614a30565b6000805b83518110156123d45760008382815181106122b7576122b7615066565b6020026020010151116123165760405162461bcd60e51b815260206004820152602160248201527f50657263656e74616765206d7573742062652067726561746572207468616e206044820152600360fc1b6064820152608401610e54565b82818151811061232857612328615066565b60200260200101518261233b9190615163565b915060db84828151811061235157612351615066565b60209081029190910181015182546001810184556000938452919092200180546001600160a01b0319166001600160a01b03909216919091179055825160da908490839081106123a3576123a3615066565b60209081029190910181015182546001810184556000938452919092200155806123cc81615092565b91505061229a565b5080606414610df75760405162461bcd60e51b815260206004820152601f60248201527f546f74616c2070657263656e74616765206d75737420657175616c20313030006044820152606401610e54565b600061243082612a1f565b905061244164e8d4a510008261517b565b92915050565b60dd546001600160a01b031633148061246a57506065546001600160a01b031633145b6124b25760405162461bcd60e51b815260206004820152601960248201527831b0b63632b9103737ba1030b236b4b71037b91037bbb732b960391b6044820152606401610e54565b60d15460d880546001810182556000919091527f5320ad99a619a90804cd2efe3a5cf0ac1ac5c41ad9ff2c61cf699efdad771096015560dd54600160a01b900460ff16156125025761250261412a565b60d560000160d0548154811061251a5761251a615066565b906000526020600020015460d15410156125f55760d0546125835760c95460d99060d560000160d0548154811061255357612553615066565b9060005260206000200154612568919061519d565b815460018101835560009283526020909220909101556125cd565b60d15460d99060d560000160d054815481106125a1576125a1615066565b90600052602060002001546125b6919061519d565b815460018101835560009283526020909220909101555b60d560000160d054815481106125e5576125e5615066565b60009182526020909120015460d1555b60d0805490600061260583615092565b9190505550565b61261461408a565b60dd80546001600160a01b0319166001600160a01b0392909216919091179055565b61263e61408a565b611e5960006147a0565b60db818154811061265857600080fd5b6000918252602090912001546001600160a01b0316905081565b61267a61408a565b611e596147f2565b61268a61408a565b60005b81811015610df757600060e260008585858181106126ad576126ad615066565b90506020020160208101906126c29190614c00565b6001600160a01b031681526020810191909152604001600020805460ff1916911515919091179055806126f481615092565b91505061268d565b600061270661408a565b6001600160a01b0383166127515760405162461bcd60e51b81526020600482015260126024820152715a65726f20746f6b656e206164647265737360701b6044820152606401610e54565b60cc85905560cd80546001600160a01b038581166001600160a01b0319928316811790935560dd805460ff60a81b1916600160a81b17905560e5805491861691909216811790915560405163095ea7b360e01b81526004810191909152600019602482015263095ea7b390604401602060405180830381600087803b1580156127d957600080fd5b505af11580156127ed573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906128119190615111565b506040516323b872dd60e01b81526000906001600160a01b038516906323b872dd9061284590339030908a90600401615264565b602060405180830381600087803b15801561285f57600080fd5b505af1158015612873573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906128979190615111565b9050806128de5760405162461bcd60e51b8152602060048201526015602482015274151bdad95b881d1c985b9cd9995c8819985a5b1959605a1b6044820152606401610e54565b604080518681524260208201526001600160a01b038616917fdc9670dbabdd488b372eb16ebe49a39b3124a12cdffdcefbc89834a408bf8ff8910160405180910390a250600195945050505050565b61293561408a565b60e780546001600160a01b0319166001600160a01b0392909216919091179055565b60008060df60009054906101000a90046001600160a01b03166001600160a01b031663feaf968c6040518163ffffffff1660e01b815260040160a06040518083038186803b1580156129a857600080fd5b505afa1580156129bc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906129e091906152a2565b505050915050806402540be40061244191906152f2565b6129ff61408a565b60d09190915560d155565b612a1261408a565b61113660d5826003614a4e565b600080600060d154600014612a365760d154612a3a565b60c9545b905060cf54841115612a8e5760405162461bcd60e51b815260206004820181905260248201527f416d6f756e742065786365656473206d617820746f6b656e7320746f206275796044820152606401610e54565b60d560000160d05481548110612aa657612aa6615066565b90600052602060002001548185612abd9190615163565b1180612aeb575060d560020160d05481548110612adc57612adc615066565b90600052602060002001544210155b15612d1d5760d554612aff9060019061519d565b60d05410612b3e5760405162461bcd60e51b815260206004820152600c60248201526b57726f6e6720706172616d7360a01b6044820152606401610e54565b60d560020160d05481548110612b5657612b56615066565b90600052602060002001544210612c695760d05460d590612b78906001615163565b81548110612b8857612b88615066565b90600052602060002001548460d5600060038110612ba857612ba8615066565b0160d05481548110612bbc57612bbc615066565b9060005260206000200154612bd19190615163565b1115612c2b5760405162461bcd60e51b815260206004820152602360248201527f43616e74205075726368617365204d6f726520696e20696e646976696475616c604482015262040e8f60eb1b6064820152608401610e54565b60d05460d690612c3c906001615163565b81548110612c4c57612c4c615066565b906000526020600020015484612c6291906151eb565b9150612d4e565b60008160d5820160d05481548110612c8357612c83615066565b9060005260206000200154612c98919061519d565b60d05490915060d690612cac906001615163565b81548110612cbc57612cbc615066565b90600052602060002001548186612cd3919061519d565b612cdd91906151eb565b60d560010160d05481548110612cf557612cf5615066565b906000526020600020015482612d0b91906151eb565b612d159190615163565b925050612d4e565b60d560010160d05481548110612d3557612d35615066565b906000526020600020015484612d4b91906151eb565b91505b5092915050565b60008260ca544210158015612d6c575060cb544211155b612d885760405162461bcd60e51b8152600401610e54906150ad565b60008111612da85760405162461bcd60e51b8152600401610e54906150e4565b60e6548590600160a01b900460ff1615612e565760e65460405163df592f7d60e01b81526001600160a01b0383811660048301529091169063df592f7d9060240160206040518083038186803b158015612e0157600080fd5b505afa158015612e15573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612e399190615111565b15612e565760405162461bcd60e51b8152600401610e549061512e565b612e5e6140e4565b612e666144ea565b33600090815260e4602052604090205460ff16612ec55760405162461bcd60e51b815260206004820181905260248201527f55736572206e6f742077686974656c697374656420666f7220746869732074786044820152606401610e54565b6000612ed086612a1f565b90506000612edc612957565b60ce54612ee990846151eb565b612ef3919061517b565b905080341015612f345760405162461bcd60e51b815260206004820152600c60248201526b13195cdcc81c185e5b595b9d60a21b6044820152606401610e54565b6000612f40823461519d565b90508760c96000828254612f549190615163565b909155505060d15415612f79578760d16000828254612f739190615163565b90915550505b600060d15460c95411612f8e5760d154612f92565b60c9545b905060d560000160d05481548110612fac57612fac615066565b9060005260206000200154811180612fe6575060d560020160d05481548110612fd757612fd7615066565b90600052602060002001544210155b1561310e5760d560020160d0548154811061300357613003615066565b90600052602060002001544210613046578860d560000160d0548154811061302d5761302d615066565b90600052602060002001546130429190615163565b60d1555b60dd54600160a01b900460ff16156130605761306061412a565b600060d5810160d0548154811061307957613079615066565b906000526020600020015482116130c857898260d560000160d054815481106130a4576130a4615066565b90600052602060002001546130b9919061519d565b6130c3919061519d565b6130cb565b60005b60d9805460018181018355600092835260008051602061545183398151915290910183905560d080549394509092909190613107908490615163565b9091555050505b871561323a5760dd54600160b01b900460ff161561315e576001600160a01b038a16600090815260e3602052604090205460ff1661315e5760405162461bcd60e51b8152600401610e54906151b4565b60e55460ce546001600160a01b03909116906391c61966908c90613182908d6151eb565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b1580156131c857600080fd5b505af11580156131dc573d6000803e3d6000fd5b505050508860d460008282546131f29190615163565b90915550506040805184815260208101869052428183015290516000918b916001600160a01b038e1691600080516020615411833981519152919081900360600190a46132b3565b60ce54613247908a6151eb565b6001600160a01b038b16600090815260e060205260408120805490919061326f908490615163565b90915550506040805184815260208101869052428183015290516000918b916001600160a01b038e1691600080516020615431833981519152919081900360600190a45b8360d260008282546132c59190615163565b909155506132d4905083614544565b81156132e4576132e48a83614678565b60019650505050506132f560018055565b50509392505050565b61330661408a565b6001600160a01b0381166133825760405162461bcd60e51b815260206004820152603760248201527f7374616b696e67206d616e616765722063616e6e6f7420626520696e6174696160448201527f6c697a65642077697468207a65726f20616464726573730000000000000000006064820152608401610e54565b60e580546001600160a01b0319166001600160a01b0383811691821790925560cd5460405163095ea7b360e01b8152600481019290925260001960248301529091169063095ea7b390604401602060405180830381600087803b1580156133e857600080fd5b505af11580156133fc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111369190615111565b61342861408a565b60dd8054911515600160b01b0260ff60b01b19909216919091179055565b606060d5826003811061345b5761345b615066565b018054806020026020016040519081016040528092919081815260200182805480156134a657602002820191906000526020600020905b815481526020019060010190808311613492575b50505050509050919050565b6134ba61408a565b60005b81811015610df757600160e260008585858181106134dd576134dd615066565b90506020020160208101906134f29190614c00565b6001600160a01b031681526020810191909152604001600020805460ff19169115159190911790558061352481615092565b9150506134bd565b60008260ca544210158015613543575060cb544211155b61355f5760405162461bcd60e51b8152600401610e54906150ad565b6000811161357f5760405162461bcd60e51b8152600401610e54906150e4565b3360e654600160a01b900460ff161561362c5760e65460405163df592f7d60e01b81526001600160a01b0383811660048301529091169063df592f7d9060240160206040518083038186803b1580156135d757600080fd5b505afa1580156135eb573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061360f9190615111565b1561362c5760405162461bcd60e51b8152600401610e549061512e565b6136346140e4565b600061363f86612a1f565b90508560c960008282546136539190615163565b909155506000905061366a64e8d4a510008361517b565b905060d15460001461368e578660d160008282546136889190615163565b90915550505b600060d15460c954116136a35760d1546136a7565b60c9545b905060d560000160d054815481106136c1576136c1615066565b90600052602060002001548111806136fb575060d560020160d054815481106136ec576136ec615066565b90600052602060002001544210155b156138235760d560020160d0548154811061371857613718615066565b9060005260206000200154421061375b578760d560000160d0548154811061374257613742615066565b90600052602060002001546137579190615163565b60d1555b60dd54600160a01b900460ff16156137755761377561412a565b600060d5810160d0548154811061378e5761378e615066565b906000526020600020015482116137dd57888260d560000160d054815481106137b9576137b9615066565b90600052602060002001546137ce919061519d565b6137d8919061519d565b6137e0565b60005b60d9805460018181018355600092835260008051602061545183398151915290910183905560d08054939450909290919061381c908490615163565b9091555050505b86156139545760dd54600160b01b900460ff161561386a5733600090815260e3602052604090205460ff1661386a5760405162461bcd60e51b8152600401610e54906151b4565b60e5546001600160a01b03166391c619663360ce54613889908c6151eb565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b1580156138cf57600080fd5b505af11580156138e3573d6000803e3d6000fd5b505050508760d460008282546138f99190615163565b909155505060e7546001600160a01b031688336001600160a01b0316600080516020615411833981519152858742604051613947939291909283526020830191909152604082015260600190565b60405180910390a46139d7565b60ce5461396190896151eb565b33600090815260e0602052604081208054909190613980908490615163565b909155505060e7546001600160a01b031688336001600160a01b03166000805160206154318339815191528587426040516139ce939291909283526020830191909152604082015260600190565b60405180910390a45b8260d260008282546139e99190615163565b909155505060e7546000906001600160a01b031663dd62ed3e336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015230602482015260440160206040518083038186803b158015613a4857600080fd5b505afa158015613a5c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613a80919061520a565b905080831115613aa25760405162461bcd60e51b8152600401610e5490615223565b6116b98361482f565b60d98181548110613abb57600080fd5b600091825260209091200154905081565b606060d9805480602002602001604051908101604052809291908181526020018280548015613b1a57602002820191906000526020600020905b815481526020019060010190808311613b06575b5050505050905090565b613b2c61408a565b6001600160a01b038116613b7b5760405162461bcd60e51b8152602060048201526016602482015275616464726573732063616e6e6f74206265207a65726f60501b6044820152606401610e54565b60dc80546001600160a01b0319166001600160a01b0392909216919091179055565b6000613ba76140e4565b60cd546001600160a01b0316613bf65760405162461bcd60e51b815260206004820152601460248201527314d85b19481d1bdad95b881b9bdd08185919195960621b6044820152606401610e54565b33600090815260e2602052604090205460ff1615613c565760405162461bcd60e51b815260206004820152601b60248201527f54686973204164647265737320697320426c61636b6c697374656400000000006044820152606401610e54565b60dd54600160b01b900460ff1615613c975733600090815260e3602052604090205460ff16613c975760405162461bcd60e51b8152600401610e54906151b4565b33600090815260e0602052604090205480613ce75760405162461bcd60e51b815260206004820152601060248201526f4e6f7468696e6720746f207374616b6560801b6044820152606401610e54565b60e5546001600160a01b03166391c61966336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260248101849052604401600060405180830381600087803b158015613d4157600080fd5b505af1158015613d55573d6000803e3d6000fd5b5050505060e06000613d643390565b6001600160a01b031681526020810191909152604001600090812055336001600160a01b03167ffa4ec67f9254455933eb145bae864b26f29dd0a7bbb76eb11e4d6b8b9b184c2b8242604051613dc4929190918252602082015260400190565b60405180910390a2600191505090565b60d88181548110613abb57600080fd5b60d58260038110613df457600080fd5b018181548110613e0357600080fd5b90600052602060002001600091509150505481565b613e2061408a565b60005b81811015610df757600160e36000858585818110613e4357613e43615066565b9050602002016020810190613e589190614c00565b6001600160a01b031681526020810191909152604001600020805460ff191691151591909117905580613e8a81615092565b915050613e23565b613e9a61408a565b6001600160a01b038116613eff5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610e54565b613f08816147a0565b50565b613f1361408a565b60005b81811015610df757600060e46000858585818110613f3657613f36615066565b9050602002016020810190613f4b9190614c00565b6001600160a01b031681526020810191909152604001600020805460ff191691151591909117905580613f7d81615092565b915050613f16565b60da8181548110613abb57600080fd5b613f9d61408a565b828114613fde5760405162461bcd60e51b815260206004820152600f60248201526e098cadccee8d040dad2e6dac2e8c6d608b1b6044820152606401610e54565b60005b8381101561407457828282818110613ffb57613ffb615066565b9050602002013560e0600087878581811061401857614018615066565b905060200201602081019061402d9190614c00565b6001600160a01b03166001600160a01b03168152602001908152602001600020600082825461405c9190615163565b9091555081905061406c81615092565b915050613fe1565b5050505050565b6001600160a01b03163b151590565b6065546001600160a01b03163314611e595760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610e54565b60975460ff1615611e595760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610e54565b60005b60d05460d75461413d919061519d565b811015613f085760d35461415190826151eb565b61415b9042615163565b60d05460d79061416c908490615163565b8154811061417c5761417c615066565b6000918252602090912001558061419281615092565b91505061412d565b60db546142915760dc546001600160a01b03166141c95760405162461bcd60e51b8152600401610e5490615377565b60de546000906001600160a01b0316335b60dc546040516141f992916001600160a01b0316908690602401615264565b60408051601f198184030181529181526020820180516001600160e01b03166323b872dd60e01b1790525161422e91906153a7565b6000604051808303816000865af19150503d806000811461426b576040519150601f19603f3d011682016040523d82523d6000602084013e614270565b606091505b50509050806111365760405162461bcd60e51b8152600401610e54906153e2565b6000805b60db548110156143dd576000606460da83815481106142b6576142b6615066565b9060005260206000200154856142cc91906151eb565b6142d6919061517b565b60de549091506000906001600160a01b03163360db85815481106142fc576142fc615066565b60009182526020909120015460405161432492916001600160a01b0316908690602401615264565b60408051601f198184030181529181526020820180516001600160e01b03166323b872dd60e01b1790525161435991906153a7565b6000604051808303816000865af19150503d8060008114614396576040519150601f19603f3d011682016040523d82523d6000602084013e61439b565b606091505b50509050806143bc5760405162461bcd60e51b8152600401610e54906153e2565b6143c68285615163565b9350505080806143d590615092565b915050614295565b5060006143ea828461519d565b11156111365760de546000906001600160a01b0316335b60db80546144119060019061519d565b8154811061442157614421615066565b6000918252602090912001546001600160a01b0316614440858761519d565b60405160240161445293929190615264565b60408051601f198184030181529181526020820180516001600160e01b03166323b872dd60e01b1790525161448791906153a7565b6000604051808303816000865af19150503d80600081146144c4576040519150601f19603f3d011682016040523d82523d6000602084013e6144c9565b606091505b5050905080610df75760405162461bcd60e51b8152600401610e54906153e2565b6002600154141561453d5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610e54565b6002600155565b60db546145895760dc546001600160a01b03166145735760405162461bcd60e51b8152600401610e5490615377565b60dc54613f08906001600160a01b031682614678565b6000805b60db54811015614621576000606460da83815481106145ae576145ae615066565b9060005260206000200154856145c491906151eb565b6145ce919061517b565b905061460160db83815481106145e6576145e6615066565b6000918252602090912001546001600160a01b031682614678565b61460b8184615163565b925050808061461990615092565b91505061458d565b50600061462e828461519d565b11156111365760db805461113691906146499060019061519d565b8154811061465957614659615066565b6000918252602090912001546001600160a01b0316614678838561519d565b804710156146b65760405162461bcd60e51b815260206004820152600b60248201526a4c6f772062616c616e636560a81b6044820152606401610e54565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114614703576040519150601f19603f3d011682016040523d82523d6000602084013e614708565b606091505b5050905080610df75760405162461bcd60e51b81526020600482015260126024820152711155120814185e5b595b9d0819985a5b195960721b6044820152606401610e54565b6147566149e7565b6097805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b606580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6147fa6140e4565b6097805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586147833390565b60db546148735760dc546001600160a01b031661485e5760405162461bcd60e51b8152600401610e5490615377565b60e7546000906001600160a01b0316336141da565b6000805b60db548110156149bf576000606460da838154811061489857614898615066565b9060005260206000200154856148ae91906151eb565b6148b8919061517b565b60e7549091506000906001600160a01b03163360db85815481106148de576148de615066565b60009182526020909120015460405161490692916001600160a01b0316908690602401615264565b60408051601f198184030181529181526020820180516001600160e01b03166323b872dd60e01b1790525161493b91906153a7565b6000604051808303816000865af19150503d8060008114614978576040519150601f19603f3d011682016040523d82523d6000602084013e61497d565b606091505b505090508061499e5760405162461bcd60e51b8152600401610e54906153e2565b6149a88285615163565b9350505080806149b790615092565b915050614877565b5060006149cc828461519d565b11156111365760e7546000906001600160a01b031633614401565b60975460ff16611e595760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610e54565b5080546000825590600052602060002090810190613f089190614a9e565b8260038101928215614a8e579160200282015b82811115614a8e5782518051614a7e918491602090910190614ab3565b5091602001919060010190614a61565b50614a9a929150614afa565b5090565b5b80821115614a9a5760008155600101614a9f565b828054828255906000526020600020908101928215614aee579160200282015b82811115614aee578251825591602001919060010190614ad3565b50614a9a929150614a9e565b80821115614a9a576000614b0e8282614a30565b50600101614afa565b60008083601f840112614b2957600080fd5b50813567ffffffffffffffff811115614b4157600080fd5b6020830191508360208260051b8501011115614b5c57600080fd5b9250929050565b60008060208385031215614b7657600080fd5b823567ffffffffffffffff811115614b8d57600080fd5b614b9985828601614b17565b90969095509350505050565b600060208284031215614bb757600080fd5b5035919050565b8015158114613f0857600080fd5b600060208284031215614bde57600080fd5b81356117cd81614bbe565b80356001600160a01b0381168114610f3357600080fd5b600060208284031215614c1257600080fd5b6117cd82614be9565b60008060408385031215614c2e57600080fd5b50508035926020909101359150565b60008060408385031215614c5057600080fd5b823591506020830135614c6281614bbe565b809150509250929050565b60008060408385031215614c8057600080fd5b614c8983614be9565b91506020830135614c6281614bbe565b634e487b7160e01b600052604160045260246000fd5b6040516060810167ffffffffffffffff81118282101715614cd257614cd2614c99565b60405290565b604051601f8201601f1916810167ffffffffffffffff81118282101715614d0157614d01614c99565b604052919050565b600067ffffffffffffffff821115614d2357614d23614c99565b5060051b60200190565b600082601f830112614d3e57600080fd5b81356020614d53614d4e83614d09565b614cd8565b82815260059290921b84018101918181019086841115614d7257600080fd5b8286015b84811015614d8d5780358352918301918301614d76565b509695505050505050565b600060208284031215614daa57600080fd5b813567ffffffffffffffff811115614dc157600080fd5b614dcd84828501614d2d565b949350505050565b60008060408385031215614de857600080fd5b823567ffffffffffffffff80821115614e0057600080fd5b818501915085601f830112614e1457600080fd5b81356020614e24614d4e83614d09565b82815260059290921b84018101918181019089841115614e4357600080fd5b948201945b83861015614e6857614e5986614be9565b82529482019490820190614e48565b96505086013592505080821115614e7e57600080fd5b50614e8b85828601614d2d565b9150509250929050565b60008060008060808587031215614eab57600080fd5b8435935060208501359250614ec260408601614be9565b9150614ed060608601614be9565b905092959194509250565b60006020808385031215614eee57600080fd5b823567ffffffffffffffff80821115614f0657600080fd5b818501915085601f830112614f1a57600080fd5b614f22614caf565b806060840188811115614f3457600080fd5b845b81811015614f6857803585811115614f4e5760008081fd5b614f5a8b828901614d2d565b855250928601928601614f36565b509098975050505050505050565b600080600060608486031215614f8b57600080fd5b614f9484614be9565b9250602084013591506040840135614fab81614bbe565b809150509250925092565b6020808252825182820181905260009190848201906040850190845b81811015614fee57835183529284019291840191600101614fd2565b50909695505050505050565b6000806000806040858703121561501057600080fd5b843567ffffffffffffffff8082111561502857600080fd5b61503488838901614b17565b9096509450602087013591508082111561504d57600080fd5b5061505a87828801614b17565b95989497509550505050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60006000198214156150a6576150a661507c565b5060010190565b60208082526017908201527f496e76616c69642074696d6520666f7220627579696e67000000000000000000604082015260600190565b602080825260139082015272125b9d985b1a59081cd85b1948185b5bdd5b9d606a1b604082015260600190565b60006020828403121561512357600080fd5b81516117cd81614bbe565b6020808252818101527f416464726573732070726573656e7420696e2073616e6374696f6e206c697374604082015260600190565b600082198211156151765761517661507c565b500190565b60008261519857634e487b7160e01b600052601260045260246000fd5b500490565b6000828210156151af576151af61507c565b500390565b6020808252601e908201527f55736572206e6f742077686974656c697374656420666f72207374616b650000604082015260600190565b60008160001904831182151516156152055761520561507c565b500290565b60006020828403121561521c57600080fd5b5051919050565b60208082526021908201527f4d616b65207375726520746f2061646420656e6f75676820616c6c6f77616e636040820152606560f81b606082015260800190565b6001600160a01b039384168152919092166020820152604081019190915260600190565b805169ffffffffffffffffffff81168114610f3357600080fd5b600080600080600060a086880312156152ba57600080fd5b6152c386615288565b94506020860151935060408601519250606086015191506152e660808701615288565b90509295509295909350565b60006001600160ff1b03818413828413808216868404861116156153185761531861507c565b600160ff1b60008712828116878305891216156153375761533761507c565b600087129250878205871284841616156153535761535361507c565b878505871281841616156153695761536961507c565b505050929093029392505050565b60208082526016908201527514185e5b595b9d081dd85b1b195d081b9bdd081cd95d60521b604082015260600190565b6000825160005b818110156153c857602081860181015185830152016153ae565b818111156153d7576000828501525b509190910192915050565b602080825260149082015273151bdad95b881c185e5b595b9d0819985a5b195960621b60408201526060019056fe6f225532a9c33b023b8e48247ad8df9d98f132ae17c769b97ff22d2b278fa73a4d8aead3491b7eba4b5c7a65fc17e493b9e63f9e433522fc5f6a85a168fc9d36cc6782fd46dd71c5f512301ab049782450b4eaf79fdac5443d93d274d3916786a264697066735822122095a1d394c58b7b07ddf214a64cad2c2bed89567260f97b4915a291c6c9142b4964736f6c63430008090033
Deployed Bytecode
0x6080604052600436106104475760003560e01c80638456cb5911610234578063cad005561161012e578063ec571c6a116100b6578063f597573f1161007a578063f597573f14610ccd578063f851a44014610ced578063f885838614610d0d578063fb9a4acd14610d2d578063fe575a8714610d4d57600080fd5b8063ec571c6a14610c37578063edec5f2714610c57578063f04d688f14610c77578063f2fde38b14610c8d578063f446374314610cad57600080fd5b8063e19648db116100fd578063e19648db14610ba1578063e32204dd14610bc1578063e6da921314610be1578063e985e36714610c01578063eadd94ec14610c2157600080fd5b8063cad0055614610b35578063cb1a4fc014610b55578063cff805ab14610b6a578063dad80e8614610b8057600080fd5b8063ae104265116101bc578063bb3d676a11610180578063bb3d676a14610aa0578063bff1cbec14610ac0578063c23326f314610ae0578063c49cc64514610b00578063c8adff0114610b2057600080fd5b8063ae10426514610a00578063ae4e0a1814610a20578063b00bba6a14610a33578063b8977d6d14610a53578063ba166a3914610a7357600080fd5b80638da5cb5b116102035780638da5cb5b146109775780638e15f473146109955780639a89c1fb146109aa5780639cfa0f7c146109ca578063a6d42e4e146109e057600080fd5b80638456cb591461090257806389daf799146109175780638ac08082146109375780638b3fb1821461095757600080fd5b80633af32abf116103455780635df4f353116102cd578063715018a611610291578063715018a61461087157806373b2e80e1461088657806378e97925146108b65780637ad71f72146108cc5780637f6fb253146108ec57600080fd5b80635df4f353146107d657806363b201171461080657806363e408791461081c578063641046f41461083c578063704b6c021461085157600080fd5b806353d992071161031457806353d9920714610747578063548db174146107685780635bc34f71146107885780635c975abb1461079e5780635ddc5688146107b657600080fd5b80633af32abf146106d75780633f4ba83a1461070757806343568eae1461071c5780634e71d92d1461073257600080fd5b806325312e54116103d35780632dc358e8116103975780632dc358e81461064a57806330e74f081461066a5780633197cbb61461068b57806333f76178146106a157806338646608146106b757600080fd5b806325312e541461059f578063278c278b146105d757806329a5a0b6146105f75780632c65169e146106175780632c73304d1461062a57600080fd5b80630dc9c8381161041a5780630dc9c838146104fe578063136021d91461051e5780631ddc60911461053e5780631fa2bc921461055e57806323a8f1c01461057f57600080fd5b806303b9c5ad1461044c57806307f180821461046e5780630a200fc7146104a35780630ba36dcd146104c3575b600080fd5b34801561045857600080fd5b5061046c610467366004614b63565b610d7d565b005b34801561047a57600080fd5b5061048e610489366004614ba5565b610dfc565b60405190151581526020015b60405180910390f35b3480156104af57600080fd5b5061046c6104be366004614bcc565b610f38565b3480156104cf57600080fd5b506104f06104de366004614c00565b60e06020526000908152604090205481565b60405190815260200161049a565b34801561050a57600080fd5b5061046c610519366004614c1b565b610f5e565b34801561052a57600080fd5b5061048e610539366004614c3d565b61113a565b34801561054a57600080fd5b5061046c610559366004614bcc565b6116ca565b34801561056a57600080fd5b5060dd5461048e90600160a01b900460ff1681565b34801561058b57600080fd5b5061046c61059a366004614ba5565b6116f0565b3480156105ab57600080fd5b5060e7546105bf906001600160a01b031681565b6040516001600160a01b03909116815260200161049a565b3480156105e357600080fd5b5061046c6105f2366004614ba5565b6116fd565b34801561060357600080fd5b506104f0610612366004614ba5565b6117a0565b61048e610625366004614c3d565b6117d4565b34801561063657600080fd5b5061046c610645366004614c6d565b611ceb565b34801561065657600080fd5b5061046c610665366004614d98565b611d33565b34801561067657600080fd5b5060e65461048e90600160a01b900460ff1681565b34801561069757600080fd5b506104f060cb5481565b3480156106ad57600080fd5b506104f060ce5481565b3480156106c357600080fd5b5060e5546105bf906001600160a01b031681565b3480156106e357600080fd5b5061048e6106f2366004614c00565b60e36020526000908152604090205460ff1681565b34801561071357600080fd5b5061046c611e49565b34801561072857600080fd5b506104f060d35481565b34801561073e57600080fd5b5061048e611e5b565b34801561075357600080fd5b5060dd5461048e90600160a81b900460ff1681565b34801561077457600080fd5b5061046c610783366004614b63565b6121b7565b34801561079457600080fd5b506104f060d05481565b3480156107aa57600080fd5b5060975460ff1661048e565b3480156107c257600080fd5b5061046c6107d1366004614dd5565b612231565b3480156107e257600080fd5b5061048e6107f1366004614c00565b60e46020526000908152604090205460ff1681565b34801561081257600080fd5b506104f060c95481565b34801561082857600080fd5b506104f0610837366004614ba5565b612425565b34801561084857600080fd5b5061046c612447565b34801561085d57600080fd5b5061046c61086c366004614c00565b61260c565b34801561087d57600080fd5b5061046c612636565b34801561089257600080fd5b5061048e6108a1366004614c00565b60e16020526000908152604090205460ff1681565b3480156108c257600080fd5b506104f060ca5481565b3480156108d857600080fd5b506105bf6108e7366004614ba5565b612648565b3480156108f857600080fd5b506104f060d45481565b34801561090e57600080fd5b5061046c612672565b34801561092357600080fd5b5061046c610932366004614b63565b612682565b34801561094357600080fd5b5061048e610952366004614e95565b6126fc565b34801561096357600080fd5b5061046c610972366004614c00565b61292d565b34801561098357600080fd5b506065546001600160a01b03166105bf565b3480156109a157600080fd5b506104f0612957565b3480156109b657600080fd5b5061046c6109c5366004614c1b565b6129f7565b3480156109d657600080fd5b506104f060cf5481565b3480156109ec57600080fd5b5061046c6109fb366004614edb565b612a0a565b348015610a0c57600080fd5b506104f0610a1b366004614ba5565b612a1f565b61048e610a2e366004614f76565b612d55565b348015610a3f57600080fd5b5061046c610a4e366004614c00565b6132fe565b348015610a5f57600080fd5b5061046c610a6e366004614bcc565b613420565b348015610a7f57600080fd5b50610a93610a8e366004614ba5565b613446565b60405161049a9190614fb6565b348015610aac57600080fd5b5061046c610abb366004614b63565b6134b2565b348015610acc57600080fd5b5061048e610adb366004614c3d565b61352c565b348015610aec57600080fd5b506104f0610afb366004614ba5565b613aab565b348015610b0c57600080fd5b5060df546105bf906001600160a01b031681565b348015610b2c57600080fd5b50610a93613acc565b348015610b4157600080fd5b5061046c610b50366004614c00565b613b24565b348015610b6157600080fd5b5061048e613b9d565b348015610b7657600080fd5b506104f060d15481565b348015610b8c57600080fd5b5060dd5461048e90600160b01b900460ff1681565b348015610bad57600080fd5b506104f0610bbc366004614ba5565b613dd4565b348015610bcd57600080fd5b5060dc546105bf906001600160a01b031681565b348015610bed57600080fd5b506104f0610bfc366004614c1b565b613de4565b348015610c0d57600080fd5b5060cd546105bf906001600160a01b031681565b348015610c2d57600080fd5b506104f060d25481565b348015610c4357600080fd5b5060e6546105bf906001600160a01b031681565b348015610c6357600080fd5b5061046c610c72366004614b63565b613e18565b348015610c8357600080fd5b506104f060cc5481565b348015610c9957600080fd5b5061046c610ca8366004614c00565b613e92565b348015610cb957600080fd5b5061046c610cc8366004614b63565b613f0b565b348015610cd957600080fd5b5060de546105bf906001600160a01b031681565b348015610cf957600080fd5b5060dd546105bf906001600160a01b031681565b348015610d1957600080fd5b506104f0610d28366004614ba5565b613f85565b348015610d3957600080fd5b5061046c610d48366004614ffa565b613f95565b348015610d5957600080fd5b5061048e610d68366004614c00565b60e26020526000908152604090205460ff1681565b610d8561408a565b60005b81811015610df757600160e46000858585818110610da857610da8615066565b9050602002016020810190610dbd9190614c00565b6001600160a01b031681526020810191909152604001600020805460ff191691151591909117905580610def81615092565b915050610d88565b505050565b6000610e0661408a565b600060cc5411610e5d5760405162461bcd60e51b815260206004820152601a60248201527f496e697469616c20636c61696d2064617461206e6f742073657400000000000060448201526064015b60405180910390fd5b60cb548211610ea15760405162461bcd60e51b815260206004820152601060248201526f53616c6520696e2070726f677265737360801b6044820152606401610e54565b428211610ee65760405162461bcd60e51b815260206004820152601360248201527210db185a5b481cdd185c9d081a5b881c185cdd606a1b6044820152606401610e54565b60cc8054908390556040805182815260208101859052428183015290517f5f3a900c85949962b4cc192dd3714dae64071dc2e907049ec720b023270905a49181900360600190a160019150505b919050565b610f4061408a565b60dd8054911515600160a01b0260ff60a01b19909216919091179055565b610f6661408a565b6000821180610f755750600081115b610fb65760405162461bcd60e51b8152602060048201526012602482015271496e76616c696420706172616d657465727360701b6044820152606401610e54565b811561109b5760ca5442106110045760405162461bcd60e51b815260206004820152601460248201527314d85b1948185b1c9958591e481cdd185c9d195960621b6044820152606401610e54565b8142106110475760405162461bcd60e51b815260206004820152601160248201527014d85b19481d1a5b59481a5b881c185cdd607a1b6044820152606401610e54565b60ca8054908390556040805182815260208101859052428183015290516414d510549560da1b917fddd2ed237e6993c9380182683f2c8bec486aaaa429528852cd74dbdb96cea0b2919081900360600190a2505b80156111365760ca5481116110e45760405162461bcd60e51b815260206004820152600f60248201526e496e76616c696420656e6454696d6560881b6044820152606401610e54565b60cb8054908290556040805182815260208101849052428183015290516211539160ea1b917fddd2ed237e6993c9380182683f2c8bec486aaaa429528852cd74dbdb96cea0b2919081900360600190a2505b5050565b60008260ca544210158015611151575060cb544211155b61116d5760405162461bcd60e51b8152600401610e54906150ad565b6000811161118d5760405162461bcd60e51b8152600401610e54906150e4565b3360e654600160a01b900460ff161561123a5760e65460405163df592f7d60e01b81526001600160a01b0383811660048301529091169063df592f7d9060240160206040518083038186803b1580156111e557600080fd5b505afa1580156111f9573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061121d9190615111565b1561123a5760405162461bcd60e51b8152600401610e549061512e565b6112426140e4565b600061124d86612a1f565b90508560c960008282546112619190615163565b909155506000905061127864e8d4a510008361517b565b905060d15460001461129c578660d160008282546112969190615163565b90915550505b600060d15460c954116112b15760d1546112b5565b60c9545b905060d560000160d054815481106112cf576112cf615066565b9060005260206000200154811180611309575060d560020160d054815481106112fa576112fa615066565b90600052602060002001544210155b156114315760d560020160d0548154811061132657611326615066565b90600052602060002001544210611369578760d560000160d0548154811061135057611350615066565b90600052602060002001546113659190615163565b60d1555b60dd54600160a01b900460ff16156113835761138361412a565b600060d5810160d0548154811061139c5761139c615066565b906000526020600020015482116113eb57888260d560000160d054815481106113c7576113c7615066565b90600052602060002001546113dc919061519d565b6113e6919061519d565b6113ee565b60005b60d9805460018181018355600092835260008051602061545183398151915290910183905560d08054939450909290919061142a908490615163565b9091555050505b86156115625760dd54600160b01b900460ff16156114785733600090815260e3602052604090205460ff166114785760405162461bcd60e51b8152600401610e54906151b4565b60e5546001600160a01b03166391c619663360ce54611497908c6151eb565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b1580156114dd57600080fd5b505af11580156114f1573d6000803e3d6000fd5b505050508760d460008282546115079190615163565b909155505060de546001600160a01b031688336001600160a01b0316600080516020615411833981519152858742604051611555939291909283526020830191909152604082015260600190565b60405180910390a46115e5565b60ce5461156f90896151eb565b33600090815260e060205260408120805490919061158e908490615163565b909155505060de546001600160a01b031688336001600160a01b03166000805160206154318339815191528587426040516115dc939291909283526020830191909152604082015260600190565b60405180910390a45b8260d260008282546115f79190615163565b909155505060de546000906001600160a01b031663dd62ed3e336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015230602482015260440160206040518083038186803b15801561165657600080fd5b505afa15801561166a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061168e919061520a565b9050808311156116b05760405162461bcd60e51b8152600401610e5490615223565b6116b98361419a565b60019650505050505b505092915050565b6116d261408a565b60dd8054911515600160a81b0260ff60a81b19909216919091179055565b6116f861408a565b60d355565b61170561408a565b600081116117555760405162461bcd60e51b815260206004820152601c60248201527f5a65726f206d617820746f6b656e7320746f206275792076616c7565000000006044820152606401610e54565b60cf8054908290556040805182815260208101849052428183015290517f76f9e5e1f6af6a9f180708b77a5c99210fbf19b91f1f194f3918c262b8edf77c9181900360600190a15050565b6000806117ac83612a1f565b90506117b6612957565b60ce546117c390836151eb565b6117cd919061517b565b9392505050565b60008260ca5442101580156117eb575060cb544211155b6118075760405162461bcd60e51b8152600401610e54906150ad565b600081116118275760405162461bcd60e51b8152600401610e54906150e4565b3360e654600160a01b900460ff16156118d45760e65460405163df592f7d60e01b81526001600160a01b0383811660048301529091169063df592f7d9060240160206040518083038186803b15801561187f57600080fd5b505afa158015611893573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118b79190615111565b156118d45760405162461bcd60e51b8152600401610e549061512e565b6118dc6140e4565b6118e46144ea565b60006118ef86612a1f565b905060006118fb612957565b60ce5461190890846151eb565b611912919061517b565b9050803410156119535760405162461bcd60e51b815260206004820152600c60248201526b13195cdcc81c185e5b595b9d60a21b6044820152606401610e54565b600061195f823461519d565b90508760c960008282546119739190615163565b909155505060d15415611998578760d160008282546119929190615163565b90915550505b600060d15460c954116119ad5760d1546119b1565b60c9545b905060d560000160d054815481106119cb576119cb615066565b9060005260206000200154811180611a05575060d560020160d054815481106119f6576119f6615066565b90600052602060002001544210155b15611b2d5760d560020160d05481548110611a2257611a22615066565b90600052602060002001544210611a65578860d560000160d05481548110611a4c57611a4c615066565b9060005260206000200154611a619190615163565b60d1555b60dd54600160a01b900460ff1615611a7f57611a7f61412a565b600060d5810160d05481548110611a9857611a98615066565b90600052602060002001548211611ae757898260d560000160d05481548110611ac357611ac3615066565b9060005260206000200154611ad8919061519d565b611ae2919061519d565b611aea565b60005b60d9805460018181018355600092835260008051602061545183398151915290910183905560d080549394509092909190611b26908490615163565b9091555050505b8715611c425760dd54600160b01b900460ff1615611b745733600090815260e3602052604090205460ff16611b745760405162461bcd60e51b8152600401610e54906151b4565b60e5546001600160a01b03166391c619663360ce54611b93908d6151eb565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b158015611bd957600080fd5b505af1158015611bed573d6000803e3d6000fd5b505050508860d46000828254611c039190615163565b90915550506040805184815260208101869052428183015290516000918b913391600080516020615411833981519152919081900360600190a4611ca9565b60ce54611c4f908a6151eb565b33600090815260e0602052604081208054909190611c6e908490615163565b90915550506040805184815260208101869052428183015290516000918b913391600080516020615431833981519152919081900360600190a45b8360d26000828254611cbb9190615163565b90915550611cca905083614544565b8115611cda57611cda3383614678565b60019650505050506116c260018055565b611cf361408a565b6001600160a01b038216611d0657600080fd5b60e68054911515600160a01b026001600160a81b03199092166001600160a01b0390931692909217179055565b60dd546001600160a01b0316331480611d5657506065546001600160a01b031633145b611d9e5760405162461bcd60e51b815260206004820152601960248201527831b0b63632b9103737ba1030b236b4b71037b91037bbb732b960391b6044820152606401610e54565b8051611dec5760405162461bcd60e51b815260206004820152601c60248201527f63616e6e6f742075706461746520696e76616c69642076616c756573000000006044820152606401610e54565b611df860d96000614a30565b60005b81518110156111365760d9828281518110611e1857611e18615066565b6020908102919091018101518254600181018455600093845291909220015580611e4181615092565b915050611dfb565b611e5161408a565b611e5961474e565b565b6000611e656140e4565b60cd546001600160a01b0316611eb45760405162461bcd60e51b815260206004820152601460248201527314d85b19481d1bdad95b881b9bdd08185919195960621b6044820152606401610e54565b33600090815260e2602052604090205460ff1615611f145760405162461bcd60e51b815260206004820152601b60248201527f54686973204164647265737320697320426c61636b6c697374656400000000006044820152606401610e54565b60dd54600160a81b900460ff1615611f855733600090815260e3602052604090205460ff16611f855760405162461bcd60e51b815260206004820152601e60248201527f55736572206e6f742077686974656c697374656420666f7220636c61696d00006044820152606401610e54565b60cc54421015611fd75760405162461bcd60e51b815260206004820152601960248201527f436c61696d20686173206e6f74207374617274656420796574000000000000006044820152606401610e54565b33600090815260e1602052604090205460ff16156120295760405162461bcd60e51b815260206004820152600f60248201526e105b1c9958591e4818db185a5b5959608a1b6044820152606401610e54565b33600090815260e160209081526040808320805460ff1916600117905560e09091529020548061208e5760405162461bcd60e51b815260206004820152601060248201526f4e6f7468696e6720746f20636c61696d60801b6044820152606401610e54565b33600081815260e06020908152604080832083905560cd54815163a9059cbb60e01b8152600481019590955260248501869052905192936001600160a01b039091169263a9059cbb9260448084019391929182900301818787803b1580156120f557600080fd5b505af1158015612109573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061212d9190615111565b9050806121745760405162461bcd60e51b8152602060048201526015602482015274151bdad95b881d1c985b9cd9995c8819985a5b1959605a1b6044820152606401610e54565b6040805183815242602082015233917f9923b4306c6c030f2bdfbf156517d5983b87e15b96176da122cd4f2effa4ba7b910160405180910390a260019250505090565b6121bf61408a565b60005b81811015610df757600060e360008585858181106121e2576121e2615066565b90506020020160208101906121f79190614c00565b6001600160a01b031681526020810191909152604001600020805460ff19169115159190911790558061222981615092565b9150506121c2565b61223961408a565b805182511461227e5760405162461bcd60e51b81526020600482015260116024820152704d69736d6174636865642061727261797360781b6044820152606401610e54565b61228a60db6000614a30565b61229660da6000614a30565b6000805b83518110156123d45760008382815181106122b7576122b7615066565b6020026020010151116123165760405162461bcd60e51b815260206004820152602160248201527f50657263656e74616765206d7573742062652067726561746572207468616e206044820152600360fc1b6064820152608401610e54565b82818151811061232857612328615066565b60200260200101518261233b9190615163565b915060db84828151811061235157612351615066565b60209081029190910181015182546001810184556000938452919092200180546001600160a01b0319166001600160a01b03909216919091179055825160da908490839081106123a3576123a3615066565b60209081029190910181015182546001810184556000938452919092200155806123cc81615092565b91505061229a565b5080606414610df75760405162461bcd60e51b815260206004820152601f60248201527f546f74616c2070657263656e74616765206d75737420657175616c20313030006044820152606401610e54565b600061243082612a1f565b905061244164e8d4a510008261517b565b92915050565b60dd546001600160a01b031633148061246a57506065546001600160a01b031633145b6124b25760405162461bcd60e51b815260206004820152601960248201527831b0b63632b9103737ba1030b236b4b71037b91037bbb732b960391b6044820152606401610e54565b60d15460d880546001810182556000919091527f5320ad99a619a90804cd2efe3a5cf0ac1ac5c41ad9ff2c61cf699efdad771096015560dd54600160a01b900460ff16156125025761250261412a565b60d560000160d0548154811061251a5761251a615066565b906000526020600020015460d15410156125f55760d0546125835760c95460d99060d560000160d0548154811061255357612553615066565b9060005260206000200154612568919061519d565b815460018101835560009283526020909220909101556125cd565b60d15460d99060d560000160d054815481106125a1576125a1615066565b90600052602060002001546125b6919061519d565b815460018101835560009283526020909220909101555b60d560000160d054815481106125e5576125e5615066565b60009182526020909120015460d1555b60d0805490600061260583615092565b9190505550565b61261461408a565b60dd80546001600160a01b0319166001600160a01b0392909216919091179055565b61263e61408a565b611e5960006147a0565b60db818154811061265857600080fd5b6000918252602090912001546001600160a01b0316905081565b61267a61408a565b611e596147f2565b61268a61408a565b60005b81811015610df757600060e260008585858181106126ad576126ad615066565b90506020020160208101906126c29190614c00565b6001600160a01b031681526020810191909152604001600020805460ff1916911515919091179055806126f481615092565b91505061268d565b600061270661408a565b6001600160a01b0383166127515760405162461bcd60e51b81526020600482015260126024820152715a65726f20746f6b656e206164647265737360701b6044820152606401610e54565b60cc85905560cd80546001600160a01b038581166001600160a01b0319928316811790935560dd805460ff60a81b1916600160a81b17905560e5805491861691909216811790915560405163095ea7b360e01b81526004810191909152600019602482015263095ea7b390604401602060405180830381600087803b1580156127d957600080fd5b505af11580156127ed573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906128119190615111565b506040516323b872dd60e01b81526000906001600160a01b038516906323b872dd9061284590339030908a90600401615264565b602060405180830381600087803b15801561285f57600080fd5b505af1158015612873573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906128979190615111565b9050806128de5760405162461bcd60e51b8152602060048201526015602482015274151bdad95b881d1c985b9cd9995c8819985a5b1959605a1b6044820152606401610e54565b604080518681524260208201526001600160a01b038616917fdc9670dbabdd488b372eb16ebe49a39b3124a12cdffdcefbc89834a408bf8ff8910160405180910390a250600195945050505050565b61293561408a565b60e780546001600160a01b0319166001600160a01b0392909216919091179055565b60008060df60009054906101000a90046001600160a01b03166001600160a01b031663feaf968c6040518163ffffffff1660e01b815260040160a06040518083038186803b1580156129a857600080fd5b505afa1580156129bc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906129e091906152a2565b505050915050806402540be40061244191906152f2565b6129ff61408a565b60d09190915560d155565b612a1261408a565b61113660d5826003614a4e565b600080600060d154600014612a365760d154612a3a565b60c9545b905060cf54841115612a8e5760405162461bcd60e51b815260206004820181905260248201527f416d6f756e742065786365656473206d617820746f6b656e7320746f206275796044820152606401610e54565b60d560000160d05481548110612aa657612aa6615066565b90600052602060002001548185612abd9190615163565b1180612aeb575060d560020160d05481548110612adc57612adc615066565b90600052602060002001544210155b15612d1d5760d554612aff9060019061519d565b60d05410612b3e5760405162461bcd60e51b815260206004820152600c60248201526b57726f6e6720706172616d7360a01b6044820152606401610e54565b60d560020160d05481548110612b5657612b56615066565b90600052602060002001544210612c695760d05460d590612b78906001615163565b81548110612b8857612b88615066565b90600052602060002001548460d5600060038110612ba857612ba8615066565b0160d05481548110612bbc57612bbc615066565b9060005260206000200154612bd19190615163565b1115612c2b5760405162461bcd60e51b815260206004820152602360248201527f43616e74205075726368617365204d6f726520696e20696e646976696475616c604482015262040e8f60eb1b6064820152608401610e54565b60d05460d690612c3c906001615163565b81548110612c4c57612c4c615066565b906000526020600020015484612c6291906151eb565b9150612d4e565b60008160d5820160d05481548110612c8357612c83615066565b9060005260206000200154612c98919061519d565b60d05490915060d690612cac906001615163565b81548110612cbc57612cbc615066565b90600052602060002001548186612cd3919061519d565b612cdd91906151eb565b60d560010160d05481548110612cf557612cf5615066565b906000526020600020015482612d0b91906151eb565b612d159190615163565b925050612d4e565b60d560010160d05481548110612d3557612d35615066565b906000526020600020015484612d4b91906151eb565b91505b5092915050565b60008260ca544210158015612d6c575060cb544211155b612d885760405162461bcd60e51b8152600401610e54906150ad565b60008111612da85760405162461bcd60e51b8152600401610e54906150e4565b60e6548590600160a01b900460ff1615612e565760e65460405163df592f7d60e01b81526001600160a01b0383811660048301529091169063df592f7d9060240160206040518083038186803b158015612e0157600080fd5b505afa158015612e15573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612e399190615111565b15612e565760405162461bcd60e51b8152600401610e549061512e565b612e5e6140e4565b612e666144ea565b33600090815260e4602052604090205460ff16612ec55760405162461bcd60e51b815260206004820181905260248201527f55736572206e6f742077686974656c697374656420666f7220746869732074786044820152606401610e54565b6000612ed086612a1f565b90506000612edc612957565b60ce54612ee990846151eb565b612ef3919061517b565b905080341015612f345760405162461bcd60e51b815260206004820152600c60248201526b13195cdcc81c185e5b595b9d60a21b6044820152606401610e54565b6000612f40823461519d565b90508760c96000828254612f549190615163565b909155505060d15415612f79578760d16000828254612f739190615163565b90915550505b600060d15460c95411612f8e5760d154612f92565b60c9545b905060d560000160d05481548110612fac57612fac615066565b9060005260206000200154811180612fe6575060d560020160d05481548110612fd757612fd7615066565b90600052602060002001544210155b1561310e5760d560020160d0548154811061300357613003615066565b90600052602060002001544210613046578860d560000160d0548154811061302d5761302d615066565b90600052602060002001546130429190615163565b60d1555b60dd54600160a01b900460ff16156130605761306061412a565b600060d5810160d0548154811061307957613079615066565b906000526020600020015482116130c857898260d560000160d054815481106130a4576130a4615066565b90600052602060002001546130b9919061519d565b6130c3919061519d565b6130cb565b60005b60d9805460018181018355600092835260008051602061545183398151915290910183905560d080549394509092909190613107908490615163565b9091555050505b871561323a5760dd54600160b01b900460ff161561315e576001600160a01b038a16600090815260e3602052604090205460ff1661315e5760405162461bcd60e51b8152600401610e54906151b4565b60e55460ce546001600160a01b03909116906391c61966908c90613182908d6151eb565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b1580156131c857600080fd5b505af11580156131dc573d6000803e3d6000fd5b505050508860d460008282546131f29190615163565b90915550506040805184815260208101869052428183015290516000918b916001600160a01b038e1691600080516020615411833981519152919081900360600190a46132b3565b60ce54613247908a6151eb565b6001600160a01b038b16600090815260e060205260408120805490919061326f908490615163565b90915550506040805184815260208101869052428183015290516000918b916001600160a01b038e1691600080516020615431833981519152919081900360600190a45b8360d260008282546132c59190615163565b909155506132d4905083614544565b81156132e4576132e48a83614678565b60019650505050506132f560018055565b50509392505050565b61330661408a565b6001600160a01b0381166133825760405162461bcd60e51b815260206004820152603760248201527f7374616b696e67206d616e616765722063616e6e6f7420626520696e6174696160448201527f6c697a65642077697468207a65726f20616464726573730000000000000000006064820152608401610e54565b60e580546001600160a01b0319166001600160a01b0383811691821790925560cd5460405163095ea7b360e01b8152600481019290925260001960248301529091169063095ea7b390604401602060405180830381600087803b1580156133e857600080fd5b505af11580156133fc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111369190615111565b61342861408a565b60dd8054911515600160b01b0260ff60b01b19909216919091179055565b606060d5826003811061345b5761345b615066565b018054806020026020016040519081016040528092919081815260200182805480156134a657602002820191906000526020600020905b815481526020019060010190808311613492575b50505050509050919050565b6134ba61408a565b60005b81811015610df757600160e260008585858181106134dd576134dd615066565b90506020020160208101906134f29190614c00565b6001600160a01b031681526020810191909152604001600020805460ff19169115159190911790558061352481615092565b9150506134bd565b60008260ca544210158015613543575060cb544211155b61355f5760405162461bcd60e51b8152600401610e54906150ad565b6000811161357f5760405162461bcd60e51b8152600401610e54906150e4565b3360e654600160a01b900460ff161561362c5760e65460405163df592f7d60e01b81526001600160a01b0383811660048301529091169063df592f7d9060240160206040518083038186803b1580156135d757600080fd5b505afa1580156135eb573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061360f9190615111565b1561362c5760405162461bcd60e51b8152600401610e549061512e565b6136346140e4565b600061363f86612a1f565b90508560c960008282546136539190615163565b909155506000905061366a64e8d4a510008361517b565b905060d15460001461368e578660d160008282546136889190615163565b90915550505b600060d15460c954116136a35760d1546136a7565b60c9545b905060d560000160d054815481106136c1576136c1615066565b90600052602060002001548111806136fb575060d560020160d054815481106136ec576136ec615066565b90600052602060002001544210155b156138235760d560020160d0548154811061371857613718615066565b9060005260206000200154421061375b578760d560000160d0548154811061374257613742615066565b90600052602060002001546137579190615163565b60d1555b60dd54600160a01b900460ff16156137755761377561412a565b600060d5810160d0548154811061378e5761378e615066565b906000526020600020015482116137dd57888260d560000160d054815481106137b9576137b9615066565b90600052602060002001546137ce919061519d565b6137d8919061519d565b6137e0565b60005b60d9805460018181018355600092835260008051602061545183398151915290910183905560d08054939450909290919061381c908490615163565b9091555050505b86156139545760dd54600160b01b900460ff161561386a5733600090815260e3602052604090205460ff1661386a5760405162461bcd60e51b8152600401610e54906151b4565b60e5546001600160a01b03166391c619663360ce54613889908c6151eb565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b1580156138cf57600080fd5b505af11580156138e3573d6000803e3d6000fd5b505050508760d460008282546138f99190615163565b909155505060e7546001600160a01b031688336001600160a01b0316600080516020615411833981519152858742604051613947939291909283526020830191909152604082015260600190565b60405180910390a46139d7565b60ce5461396190896151eb565b33600090815260e0602052604081208054909190613980908490615163565b909155505060e7546001600160a01b031688336001600160a01b03166000805160206154318339815191528587426040516139ce939291909283526020830191909152604082015260600190565b60405180910390a45b8260d260008282546139e99190615163565b909155505060e7546000906001600160a01b031663dd62ed3e336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015230602482015260440160206040518083038186803b158015613a4857600080fd5b505afa158015613a5c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613a80919061520a565b905080831115613aa25760405162461bcd60e51b8152600401610e5490615223565b6116b98361482f565b60d98181548110613abb57600080fd5b600091825260209091200154905081565b606060d9805480602002602001604051908101604052809291908181526020018280548015613b1a57602002820191906000526020600020905b815481526020019060010190808311613b06575b5050505050905090565b613b2c61408a565b6001600160a01b038116613b7b5760405162461bcd60e51b8152602060048201526016602482015275616464726573732063616e6e6f74206265207a65726f60501b6044820152606401610e54565b60dc80546001600160a01b0319166001600160a01b0392909216919091179055565b6000613ba76140e4565b60cd546001600160a01b0316613bf65760405162461bcd60e51b815260206004820152601460248201527314d85b19481d1bdad95b881b9bdd08185919195960621b6044820152606401610e54565b33600090815260e2602052604090205460ff1615613c565760405162461bcd60e51b815260206004820152601b60248201527f54686973204164647265737320697320426c61636b6c697374656400000000006044820152606401610e54565b60dd54600160b01b900460ff1615613c975733600090815260e3602052604090205460ff16613c975760405162461bcd60e51b8152600401610e54906151b4565b33600090815260e0602052604090205480613ce75760405162461bcd60e51b815260206004820152601060248201526f4e6f7468696e6720746f207374616b6560801b6044820152606401610e54565b60e5546001600160a01b03166391c61966336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260248101849052604401600060405180830381600087803b158015613d4157600080fd5b505af1158015613d55573d6000803e3d6000fd5b5050505060e06000613d643390565b6001600160a01b031681526020810191909152604001600090812055336001600160a01b03167ffa4ec67f9254455933eb145bae864b26f29dd0a7bbb76eb11e4d6b8b9b184c2b8242604051613dc4929190918252602082015260400190565b60405180910390a2600191505090565b60d88181548110613abb57600080fd5b60d58260038110613df457600080fd5b018181548110613e0357600080fd5b90600052602060002001600091509150505481565b613e2061408a565b60005b81811015610df757600160e36000858585818110613e4357613e43615066565b9050602002016020810190613e589190614c00565b6001600160a01b031681526020810191909152604001600020805460ff191691151591909117905580613e8a81615092565b915050613e23565b613e9a61408a565b6001600160a01b038116613eff5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610e54565b613f08816147a0565b50565b613f1361408a565b60005b81811015610df757600060e46000858585818110613f3657613f36615066565b9050602002016020810190613f4b9190614c00565b6001600160a01b031681526020810191909152604001600020805460ff191691151591909117905580613f7d81615092565b915050613f16565b60da8181548110613abb57600080fd5b613f9d61408a565b828114613fde5760405162461bcd60e51b815260206004820152600f60248201526e098cadccee8d040dad2e6dac2e8c6d608b1b6044820152606401610e54565b60005b8381101561407457828282818110613ffb57613ffb615066565b9050602002013560e0600087878581811061401857614018615066565b905060200201602081019061402d9190614c00565b6001600160a01b03166001600160a01b03168152602001908152602001600020600082825461405c9190615163565b9091555081905061406c81615092565b915050613fe1565b5050505050565b6001600160a01b03163b151590565b6065546001600160a01b03163314611e595760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610e54565b60975460ff1615611e595760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610e54565b60005b60d05460d75461413d919061519d565b811015613f085760d35461415190826151eb565b61415b9042615163565b60d05460d79061416c908490615163565b8154811061417c5761417c615066565b6000918252602090912001558061419281615092565b91505061412d565b60db546142915760dc546001600160a01b03166141c95760405162461bcd60e51b8152600401610e5490615377565b60de546000906001600160a01b0316335b60dc546040516141f992916001600160a01b0316908690602401615264565b60408051601f198184030181529181526020820180516001600160e01b03166323b872dd60e01b1790525161422e91906153a7565b6000604051808303816000865af19150503d806000811461426b576040519150601f19603f3d011682016040523d82523d6000602084013e614270565b606091505b50509050806111365760405162461bcd60e51b8152600401610e54906153e2565b6000805b60db548110156143dd576000606460da83815481106142b6576142b6615066565b9060005260206000200154856142cc91906151eb565b6142d6919061517b565b60de549091506000906001600160a01b03163360db85815481106142fc576142fc615066565b60009182526020909120015460405161432492916001600160a01b0316908690602401615264565b60408051601f198184030181529181526020820180516001600160e01b03166323b872dd60e01b1790525161435991906153a7565b6000604051808303816000865af19150503d8060008114614396576040519150601f19603f3d011682016040523d82523d6000602084013e61439b565b606091505b50509050806143bc5760405162461bcd60e51b8152600401610e54906153e2565b6143c68285615163565b9350505080806143d590615092565b915050614295565b5060006143ea828461519d565b11156111365760de546000906001600160a01b0316335b60db80546144119060019061519d565b8154811061442157614421615066565b6000918252602090912001546001600160a01b0316614440858761519d565b60405160240161445293929190615264565b60408051601f198184030181529181526020820180516001600160e01b03166323b872dd60e01b1790525161448791906153a7565b6000604051808303816000865af19150503d80600081146144c4576040519150601f19603f3d011682016040523d82523d6000602084013e6144c9565b606091505b5050905080610df75760405162461bcd60e51b8152600401610e54906153e2565b6002600154141561453d5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610e54565b6002600155565b60db546145895760dc546001600160a01b03166145735760405162461bcd60e51b8152600401610e5490615377565b60dc54613f08906001600160a01b031682614678565b6000805b60db54811015614621576000606460da83815481106145ae576145ae615066565b9060005260206000200154856145c491906151eb565b6145ce919061517b565b905061460160db83815481106145e6576145e6615066565b6000918252602090912001546001600160a01b031682614678565b61460b8184615163565b925050808061461990615092565b91505061458d565b50600061462e828461519d565b11156111365760db805461113691906146499060019061519d565b8154811061465957614659615066565b6000918252602090912001546001600160a01b0316614678838561519d565b804710156146b65760405162461bcd60e51b815260206004820152600b60248201526a4c6f772062616c616e636560a81b6044820152606401610e54565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114614703576040519150601f19603f3d011682016040523d82523d6000602084013e614708565b606091505b5050905080610df75760405162461bcd60e51b81526020600482015260126024820152711155120814185e5b595b9d0819985a5b195960721b6044820152606401610e54565b6147566149e7565b6097805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b606580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6147fa6140e4565b6097805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586147833390565b60db546148735760dc546001600160a01b031661485e5760405162461bcd60e51b8152600401610e5490615377565b60e7546000906001600160a01b0316336141da565b6000805b60db548110156149bf576000606460da838154811061489857614898615066565b9060005260206000200154856148ae91906151eb565b6148b8919061517b565b60e7549091506000906001600160a01b03163360db85815481106148de576148de615066565b60009182526020909120015460405161490692916001600160a01b0316908690602401615264565b60408051601f198184030181529181526020820180516001600160e01b03166323b872dd60e01b1790525161493b91906153a7565b6000604051808303816000865af19150503d8060008114614978576040519150601f19603f3d011682016040523d82523d6000602084013e61497d565b606091505b505090508061499e5760405162461bcd60e51b8152600401610e54906153e2565b6149a88285615163565b9350505080806149b790615092565b915050614877565b5060006149cc828461519d565b11156111365760e7546000906001600160a01b031633614401565b60975460ff16611e595760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610e54565b5080546000825590600052602060002090810190613f089190614a9e565b8260038101928215614a8e579160200282015b82811115614a8e5782518051614a7e918491602090910190614ab3565b5091602001919060010190614a61565b50614a9a929150614afa565b5090565b5b80821115614a9a5760008155600101614a9f565b828054828255906000526020600020908101928215614aee579160200282015b82811115614aee578251825591602001919060010190614ad3565b50614a9a929150614a9e565b80821115614a9a576000614b0e8282614a30565b50600101614afa565b60008083601f840112614b2957600080fd5b50813567ffffffffffffffff811115614b4157600080fd5b6020830191508360208260051b8501011115614b5c57600080fd5b9250929050565b60008060208385031215614b7657600080fd5b823567ffffffffffffffff811115614b8d57600080fd5b614b9985828601614b17565b90969095509350505050565b600060208284031215614bb757600080fd5b5035919050565b8015158114613f0857600080fd5b600060208284031215614bde57600080fd5b81356117cd81614bbe565b80356001600160a01b0381168114610f3357600080fd5b600060208284031215614c1257600080fd5b6117cd82614be9565b60008060408385031215614c2e57600080fd5b50508035926020909101359150565b60008060408385031215614c5057600080fd5b823591506020830135614c6281614bbe565b809150509250929050565b60008060408385031215614c8057600080fd5b614c8983614be9565b91506020830135614c6281614bbe565b634e487b7160e01b600052604160045260246000fd5b6040516060810167ffffffffffffffff81118282101715614cd257614cd2614c99565b60405290565b604051601f8201601f1916810167ffffffffffffffff81118282101715614d0157614d01614c99565b604052919050565b600067ffffffffffffffff821115614d2357614d23614c99565b5060051b60200190565b600082601f830112614d3e57600080fd5b81356020614d53614d4e83614d09565b614cd8565b82815260059290921b84018101918181019086841115614d7257600080fd5b8286015b84811015614d8d5780358352918301918301614d76565b509695505050505050565b600060208284031215614daa57600080fd5b813567ffffffffffffffff811115614dc157600080fd5b614dcd84828501614d2d565b949350505050565b60008060408385031215614de857600080fd5b823567ffffffffffffffff80821115614e0057600080fd5b818501915085601f830112614e1457600080fd5b81356020614e24614d4e83614d09565b82815260059290921b84018101918181019089841115614e4357600080fd5b948201945b83861015614e6857614e5986614be9565b82529482019490820190614e48565b96505086013592505080821115614e7e57600080fd5b50614e8b85828601614d2d565b9150509250929050565b60008060008060808587031215614eab57600080fd5b8435935060208501359250614ec260408601614be9565b9150614ed060608601614be9565b905092959194509250565b60006020808385031215614eee57600080fd5b823567ffffffffffffffff80821115614f0657600080fd5b818501915085601f830112614f1a57600080fd5b614f22614caf565b806060840188811115614f3457600080fd5b845b81811015614f6857803585811115614f4e5760008081fd5b614f5a8b828901614d2d565b855250928601928601614f36565b509098975050505050505050565b600080600060608486031215614f8b57600080fd5b614f9484614be9565b9250602084013591506040840135614fab81614bbe565b809150509250925092565b6020808252825182820181905260009190848201906040850190845b81811015614fee57835183529284019291840191600101614fd2565b50909695505050505050565b6000806000806040858703121561501057600080fd5b843567ffffffffffffffff8082111561502857600080fd5b61503488838901614b17565b9096509450602087013591508082111561504d57600080fd5b5061505a87828801614b17565b95989497509550505050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60006000198214156150a6576150a661507c565b5060010190565b60208082526017908201527f496e76616c69642074696d6520666f7220627579696e67000000000000000000604082015260600190565b602080825260139082015272125b9d985b1a59081cd85b1948185b5bdd5b9d606a1b604082015260600190565b60006020828403121561512357600080fd5b81516117cd81614bbe565b6020808252818101527f416464726573732070726573656e7420696e2073616e6374696f6e206c697374604082015260600190565b600082198211156151765761517661507c565b500190565b60008261519857634e487b7160e01b600052601260045260246000fd5b500490565b6000828210156151af576151af61507c565b500390565b6020808252601e908201527f55736572206e6f742077686974656c697374656420666f72207374616b650000604082015260600190565b60008160001904831182151516156152055761520561507c565b500290565b60006020828403121561521c57600080fd5b5051919050565b60208082526021908201527f4d616b65207375726520746f2061646420656e6f75676820616c6c6f77616e636040820152606560f81b606082015260800190565b6001600160a01b039384168152919092166020820152604081019190915260600190565b805169ffffffffffffffffffff81168114610f3357600080fd5b600080600080600060a086880312156152ba57600080fd5b6152c386615288565b94506020860151935060408601519250606086015191506152e660808701615288565b90509295509295909350565b60006001600160ff1b03818413828413808216868404861116156153185761531861507c565b600160ff1b60008712828116878305891216156153375761533761507c565b600087129250878205871284841616156153535761535361507c565b878505871281841616156153695761536961507c565b505050929093029392505050565b60208082526016908201527514185e5b595b9d081dd85b1b195d081b9bdd081cd95d60521b604082015260600190565b6000825160005b818110156153c857602081860181015185830152016153ae565b818111156153d7576000828501525b509190910192915050565b602080825260149082015273151bdad95b881c185e5b595b9d0819985a5b195960621b60408201526060019056fe6f225532a9c33b023b8e48247ad8df9d98f132ae17c769b97ff22d2b278fa73a4d8aead3491b7eba4b5c7a65fc17e493b9e63f9e433522fc5f6a85a168fc9d36cc6782fd46dd71c5f512301ab049782450b4eaf79fdac5443d93d274d3916786a264697066735822122095a1d394c58b7b07ddf214a64cad2c2bed89567260f97b4915a291c6c9142b4964736f6c63430008090033
Loading...
Loading
Loading...
Loading
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.