Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 1 from a total of 1 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
0x60806040 | 20010897 | 89 days ago | IN | 0 ETH | 0.05698744 |
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; } 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; 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 */ function buyWithUSDT(uint256 amount) external checkSaleState(amount) 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 (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); 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 ETH * @param amount No of tokens to buy */ function buyWithEth(uint256 amount) external payable checkSaleState(amount) whenNotPaused nonReentrant returns (bool) { uint256 usdPrice = calculatePrice(amount); uint256 ethAmount = (usdPrice * baseDecimals) / getLatestPrice(); require(msg.value >= ethAmount, "Less payment"); uint256 excess = msg.value - ethAmount; totalTokensSold += amount; if (checkPoint != 0) checkPoint += amount; uint256 total = totalTokensSold > checkPoint ? totalTokensSold : checkPoint; if (total > rounds[0][currentStep] || block.timestamp >= rounds[2][currentStep]) { if (block.timestamp >= rounds[2][currentStep]) { checkPoint = rounds[0][currentStep] + amount; } if (dynamicTimeFlag) { manageTimeDiff(); } uint256 unsoldTokens = total > rounds[0][currentStep] ? 0 : rounds[0][currentStep] - total - amount; remainingTokensTracker.push(unsoldTokens); currentStep += 1; } 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); 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 */ function buyWithETHWert(address _user, uint256 _amount) external payable checkSaleState(_amount) whenNotPaused nonReentrant returns (bool) { require(wertWhitelisted[_msgSender()], "User not whitelisted for this tx"); uint256 usdPrice = calculatePrice(_amount); uint256 ethAmount = (usdPrice * baseDecimals) / getLatestPrice(); require(msg.value >= ethAmount, "Less payment"); uint256 excess = msg.value - ethAmount; totalTokensSold += _amount; if (checkPoint != 0) checkPoint += _amount; uint256 total = totalTokensSold > checkPoint ? totalTokensSold : checkPoint; if (total > rounds[0][currentStep] || block.timestamp >= rounds[2][currentStep]) { if (block.timestamp >= rounds[2][currentStep]) { checkPoint = rounds[0][currentStep] + _amount; } if (dynamicTimeFlag) { manageTimeDiff(); } uint256 unsoldTokens = total > rounds[0][currentStep] ? 0 : rounds[0][currentStep] - total - _amount; remainingTokensTracker.push(unsoldTokens); currentStep += 1; } 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); 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"); } } } /** * @dev to initialize staking manager with new addredd * @param _stakingManagerAddress address of the staking smartcontract */ function setStakingManager(address _stakingManagerAddress) external onlyOwner { require(_stakingManagerAddress != address(0), "staking manager cannot be inatialized with zero address"); stakingManagerInterface = StakingManager(_stakingManagerAddress); IERC20Upgradeable(saleToken).approve(_stakingManagerAddress, type(uint256).max); } /** * @dev To set the claim start time and sale token address by the owner * @param _claimStart claim start time * @param noOfTokens no of tokens to add to the contract * @param _saleToken sale toke address */ function startClaim(uint256 _claimStart, uint256 noOfTokens, address _saleToken, address _stakingManagerAddress) external onlyOwner returns (bool) { require(_saleToken != address(0), "Zero token address"); require(claimStart == 0, "Claim already set"); claimStart = _claimStart; saleToken = _saleToken; whitelistClaimOnly = true; stakingManagerInterface = StakingManager(_stakingManagerAddress); IERC20Upgradeable(_saleToken).approve(_stakingManagerAddress, type(uint256).max); bool success = IERC20Upgradeable(_saleToken).transferFrom(_msgSender(), address(this), noOfTokens); require(success, "Token transfer failed"); emit TokensAdded(_saleToken, noOfTokens, block.timestamp); return true; } /** * @dev To set status for claim whitelisting * @param _status bool value */ function setStakeingWhitelistStatus(bool _status) external onlyOwner { stakeingWhitelistStatus = _status; } /** * @dev To change the claim start time by the owner * @param _claimStart new claim start time */ function changeClaimStart(uint256 _claimStart) external onlyOwner returns (bool) { require(claimStart > 0, "Initial claim data not set"); require(_claimStart > endTime, "Sale in progress"); require(_claimStart > block.timestamp, "Claim start in past"); uint256 prevValue = claimStart; claimStart = _claimStart; emit ClaimStartUpdated(prevValue, _claimStart, block.timestamp); return true; } /** * @dev To claim tokens after claiming starts */ function claim() external whenNotPaused returns (bool) { require(saleToken != address(0), "Sale token not added"); require(!isBlacklisted[_msgSender()], "This Address is Blacklisted"); if (whitelistClaimOnly) { require(isWhitelisted[_msgSender()], "User not whitelisted for claim"); } require(block.timestamp >= claimStart, "Claim has not started yet"); require(!hasClaimed[_msgSender()], "Already claimed"); hasClaimed[_msgSender()] = true; uint256 amount = userDeposits[_msgSender()]; require(amount > 0, "Nothing to claim"); delete userDeposits[_msgSender()]; bool success = IERC20Upgradeable(saleToken).transfer(_msgSender(), amount); require(success, "Token transfer failed"); emit TokensClaimed(_msgSender(), amount, block.timestamp); return true; } function claimAndStake() external whenNotPaused returns (bool) { require(saleToken != address(0), "Sale token not added"); require(!isBlacklisted[_msgSender()], "This Address is Blacklisted"); if (stakeingWhitelistStatus) { require(isWhitelisted[_msgSender()], "User not whitelisted for stake"); } uint256 amount = userDeposits[_msgSender()]; require(amount > 0, "Nothing to stake"); stakingManagerInterface.depositByPresale(_msgSender(), amount); delete userDeposits[_msgSender()]; emit TokensClaimedAndStaked(_msgSender(), amount, block.timestamp); return true; } /** * @dev To add wert contract addresses to whitelist * @param _addressesToWhitelist addresses of the contract */ function whitelistUsersForWERT(address[] calldata _addressesToWhitelist) external onlyOwner { for (uint256 i = 0; i < _addressesToWhitelist.length; i++) { wertWhitelisted[_addressesToWhitelist[i]] = true; } } /** * @dev To remove wert contract addresses to whitelist * @param _addressesToRemoveFromWhitelist addresses of the contracts */ function removeFromWhitelistForWERT(address[] calldata _addressesToRemoveFromWhitelist) external onlyOwner { for (uint256 i = 0; i < _addressesToRemoveFromWhitelist.length; i++) { wertWhitelisted[_addressesToRemoveFromWhitelist[i]] = false; } } function changeMaxTokensToBuy(uint256 _maxTokensToBuy) external onlyOwner { require(_maxTokensToBuy > 0, "Zero max tokens to buy value"); uint256 prevValue = maxTokensToBuy; maxTokensToBuy = _maxTokensToBuy; emit MaxTokensUpdated(prevValue, _maxTokensToBuy, block.timestamp); } function changeRoundsData(uint256[][3] memory _rounds) external onlyOwner { rounds = _rounds; } /** * @dev To add users to blacklist which restricts blacklisted users from claiming * @param _usersToBlacklist addresses of the users */ function blacklistUsers(address[] calldata _usersToBlacklist) external onlyOwner { for (uint256 i = 0; i < _usersToBlacklist.length; i++) { isBlacklisted[_usersToBlacklist[i]] = true; } } /** * @dev To remove users from blacklist which restricts blacklisted users from claiming * @param _userToRemoveFromBlacklist addresses of the users */ function removeFromBlacklist(address[] calldata _userToRemoveFromBlacklist) external onlyOwner { for (uint256 i = 0; i < _userToRemoveFromBlacklist.length; i++) { isBlacklisted[_userToRemoveFromBlacklist[i]] = false; } } /** * @dev To add users to whitelist which restricts users from claiming if claimWhitelistStatus is true * @param _usersToWhitelist addresses of the users */ function whitelistUsers(address[] calldata _usersToWhitelist) external onlyOwner { for (uint256 i = 0; i < _usersToWhitelist.length; i++) { isWhitelisted[_usersToWhitelist[i]] = true; } } /** * @dev To remove users from whitelist which restricts users from claiming if claimWhitelistStatus is true * @param _userToRemoveFromWhitelist addresses of the users */ function removeFromWhitelist(address[] calldata _userToRemoveFromWhitelist) external onlyOwner { for (uint256 i = 0; i < _userToRemoveFromWhitelist.length; i++) { isWhitelisted[_userToRemoveFromWhitelist[i]] = false; } } /** * @dev To set status for claim whitelisting * @param _status bool value */ function setClaimWhitelistStatus(bool _status) external onlyOwner { whitelistClaimOnly = _status; } /** * @dev To set payment wallet address * @param _newPaymentWallet new payment wallet address */ function changePaymentWallet(address _newPaymentWallet) external onlyOwner { require(_newPaymentWallet != address(0), "address cannot be zero"); paymentWallet = _newPaymentWallet; } /** * @dev To manage time gap between two rounds */ function manageTimeDiff() internal { for (uint256 i; i < rounds[2].length - currentStep; i++) { rounds[2][currentStep + i] = block.timestamp + i * timeConstant; } } /** * @dev To set time constant for manageTimeDiff() * @param _timeConstant time in <days>*24*60*60 format */ function setTimeConstant(uint256 _timeConstant) external onlyOwner { timeConstant = _timeConstant; } /** * @dev To get array of round details at once * @param _no array index */ function roundDetails(uint256 _no) external view returns (uint256[] memory) { return rounds[_no]; } /** * @dev to update userDeposits for purchases made on BSC * @param _users array of users * @param _userDeposits array of userDeposits associated with users */ function updateFromBSC(address[] calldata _users, uint256[] calldata _userDeposits) external onlyOwner { require(_users.length == _userDeposits.length, "Length mismatch"); for (uint256 i = 0; i < _users.length; i++) { userDeposits[_users[i]] += _userDeposits[i]; } } /** * @dev To increment the rounds from backend */ function incrementCurrentStep() external { require(msg.sender == admin || msg.sender == owner(), "caller not admin or owner"); prevCheckpoints.push(checkPoint); if (dynamicTimeFlag) { manageTimeDiff(); } if (checkPoint < rounds[0][currentStep]) { 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]); } } }
// 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
[{"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":"USDTInterface","outputs":[{"internalType":"contract IERC20Upgradeable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"admin","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"aggregatorInterface","outputs":[{"internalType":"contract Aggregator","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseDecimals","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_usersToBlacklist","type":"address[]"}],"name":"blacklistUsers","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"buyWithETHWert","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"buyWithEth","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"buyWithUSDT","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"calculatePrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_claimStart","type":"uint256"}],"name":"changeClaimStart","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxTokensToBuy","type":"uint256"}],"name":"changeMaxTokensToBuy","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"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":[{"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":"_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":[],"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
60806040523480156200001157600080fd5b50600054610100900460ff1615808015620000335750600054600160ff909116105b8062000063575062000050306200013d60201b620036e31760201c565b15801562000063575060005460ff166001145b620000cb5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b606482015260840160405180910390fd5b6000805460ff191660011790558015620000ef576000805461ff0019166101001790555b801562000136576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b506200014c565b6001600160a01b03163b151590565b614826806200015c6000396000f3fe6080604052600436106104055760003560e01c80638456cb5911610213578063cad0055611610123578063edec5f27116100ab578063f597573f1161007a578063f597573f14610bca578063f851a44014610bea578063f885838614610c0a578063fb9a4acd14610c2a578063fe575a8714610c4a57600080fd5b8063edec5f2714610b54578063f04d688f14610b74578063f2fde38b14610b8a578063f446374314610baa57600080fd5b8063e19648db116100f2578063e19648db14610abe578063e32204dd14610ade578063e6da921314610afe578063e985e36714610b1e578063eadd94ec14610b3e57600080fd5b8063cad0055614610a52578063cb1a4fc014610a72578063cff805ab14610a87578063dad80e8614610a9d57600080fd5b8063a7c60160116101a6578063ba166a3911610175578063ba166a39146109b0578063bb3d676a146109dd578063c23326f3146109fd578063c49cc64514610a1d578063c8adff0114610a3d57600080fd5b8063a7c6016014610930578063ae10426514610950578063b00bba6a14610970578063b8977d6d1461099057600080fd5b80638e15f473116101e25780638e15f473146108c55780639a89c1fb146108da5780639cfa0f7c146108fa578063a6d42e4e1461091057600080fd5b80638456cb591461085257806389daf799146108675780638ac08082146108875780638da5cb5b146108a757600080fd5b80634e71d92d1161031957806363e40879116102a157806373b2e80e1161027057806373b2e80e146107c35780637649b957146107f357806378e97925146108065780637ad71f721461081c5780637f6fb2531461083c57600080fd5b806363e4087914610759578063641046f414610779578063704b6c021461078e578063715018a6146107ae57600080fd5b80635bc34f71116102e85780635bc34f71146106c55780635c975abb146106db5780635ddc5688146106f35780635df4f3531461071357806363b201171461074357600080fd5b80634e71d92d1461065c5780635173ffaa1461067157806353d9920714610684578063548db174146106a557600080fd5b8063278c278b1161039c57806333f761781161036b57806333f76178146105b357806338646608146105c95780633af32abf146106015780633f4ba83a1461063157806343568eae1461064657600080fd5b8063278c278b1461053d57806329a5a0b61461055d5780632dc358e81461057d5780633197cbb61461059d57600080fd5b80630dc9c838116103d85780630dc9c838146104bc5780631ddc6091146104dc5780631fa2bc92146104fc57806323a8f1c01461051d57600080fd5b806303b9c5ad1461040a57806307f180821461042c5780630a200fc7146104615780630ba36dcd14610481575b600080fd5b34801561041657600080fd5b5061042a610425366004614063565b610c7a565b005b34801561043857600080fd5b5061044c6104473660046140a5565b610cf9565b60405190151581526020015b60405180910390f35b34801561046d57600080fd5b5061042a61047c3660046140cc565b610e35565b34801561048d57600080fd5b506104ae61049c366004614100565b60e06020526000908152604090205481565b604051908152602001610458565b3480156104c857600080fd5b5061042a6104d736600461411b565b610e5b565b3480156104e857600080fd5b5061042a6104f73660046140cc565b611037565b34801561050857600080fd5b5060dd5461044c90600160a01b900460ff1681565b34801561052957600080fd5b5061042a6105383660046140a5565b61105d565b34801561054957600080fd5b5061042a6105583660046140a5565b61106a565b34801561056957600080fd5b506104ae6105783660046140a5565b61110d565b34801561058957600080fd5b5061042a61059836600461423c565b611141565b3480156105a957600080fd5b506104ae60cb5481565b3480156105bf57600080fd5b506104ae60ce5481565b3480156105d557600080fd5b5060e5546105e9906001600160a01b031681565b6040516001600160a01b039091168152602001610458565b34801561060d57600080fd5b5061044c61061c366004614100565b60e36020526000908152604090205460ff1681565b34801561063d57600080fd5b5061042a611257565b34801561065257600080fd5b506104ae60d35481565b34801561066857600080fd5b5061044c611269565b61044c61067f366004614271565b6115c5565b34801561069057600080fd5b5060dd5461044c90600160a81b900460ff1681565b3480156106b157600080fd5b5061042a6106c0366004614063565b611a5e565b3480156106d157600080fd5b506104ae60d05481565b3480156106e757600080fd5b5060975460ff1661044c565b3480156106ff57600080fd5b5061042a61070e36600461429b565b611ad8565b34801561071f57600080fd5b5061044c61072e366004614100565b60e46020526000908152604090205460ff1681565b34801561074f57600080fd5b506104ae60c95481565b34801561076557600080fd5b506104ae6107743660046140a5565b611ccc565b34801561078557600080fd5b5061042a611cee565b34801561079a57600080fd5b5061042a6107a9366004614100565b611eb3565b3480156107ba57600080fd5b5061042a611edd565b3480156107cf57600080fd5b5061044c6107de366004614100565b60e16020526000908152604090205460ff1681565b61044c6108013660046140a5565b611eef565b34801561081257600080fd5b506104ae60ca5481565b34801561082857600080fd5b506105e96108373660046140a5565b612311565b34801561084857600080fd5b506104ae60d45481565b34801561085e57600080fd5b5061042a61233b565b34801561087357600080fd5b5061042a610882366004614063565b61234b565b34801561089357600080fd5b5061044c6108a236600461435b565b6123c5565b3480156108b357600080fd5b506065546001600160a01b03166105e9565b3480156108d157600080fd5b506104ae61263a565b3480156108e657600080fd5b5061042a6108f536600461411b565b6126da565b34801561090657600080fd5b506104ae60cf5481565b34801561091c57600080fd5b5061042a61092b3660046143a1565b6126ed565b34801561093c57600080fd5b5061044c61094b3660046140a5565b612702565b34801561095c57600080fd5b506104ae61096b3660046140a5565b612bb1565b34801561097c57600080fd5b5061042a61098b366004614100565b612ee5565b34801561099c57600080fd5b5061042a6109ab3660046140cc565b613007565b3480156109bc57600080fd5b506109d06109cb3660046140a5565b61302d565b604051610458919061443c565b3480156109e957600080fd5b5061042a6109f8366004614063565b613099565b348015610a0957600080fd5b506104ae610a183660046140a5565b613113565b348015610a2957600080fd5b5060df546105e9906001600160a01b031681565b348015610a4957600080fd5b506109d0613134565b348015610a5e57600080fd5b5061042a610a6d366004614100565b61318c565b348015610a7e57600080fd5b5061044c613205565b348015610a9357600080fd5b506104ae60d15481565b348015610aa957600080fd5b5060dd5461044c90600160b01b900460ff1681565b348015610aca57600080fd5b506104ae610ad93660046140a5565b61343c565b348015610aea57600080fd5b5060dc546105e9906001600160a01b031681565b348015610b0a57600080fd5b506104ae610b1936600461411b565b61344c565b348015610b2a57600080fd5b5060cd546105e9906001600160a01b031681565b348015610b4a57600080fd5b506104ae60d25481565b348015610b6057600080fd5b5061042a610b6f366004614063565b613480565b348015610b8057600080fd5b506104ae60cc5481565b348015610b9657600080fd5b5061042a610ba5366004614100565b6134fa565b348015610bb657600080fd5b5061042a610bc5366004614063565b613573565b348015610bd657600080fd5b5060de546105e9906001600160a01b031681565b348015610bf657600080fd5b5060dd546105e9906001600160a01b031681565b348015610c1657600080fd5b506104ae610c253660046140a5565b6135ed565b348015610c3657600080fd5b5061042a610c45366004614480565b6135fd565b348015610c5657600080fd5b5061044c610c65366004614100565b60e26020526000908152604090205460ff1681565b610c826136f2565b60005b81811015610cf457600160e46000858585818110610ca557610ca56144ec565b9050602002016020810190610cba9190614100565b6001600160a01b031681526020810191909152604001600020805460ff191691151591909117905580610cec81614518565b915050610c85565b505050565b6000610d036136f2565b600060cc5411610d5a5760405162461bcd60e51b815260206004820152601a60248201527f496e697469616c20636c61696d2064617461206e6f742073657400000000000060448201526064015b60405180910390fd5b60cb548211610d9e5760405162461bcd60e51b815260206004820152601060248201526f53616c6520696e2070726f677265737360801b6044820152606401610d51565b428211610de35760405162461bcd60e51b815260206004820152601360248201527210db185a5b481cdd185c9d081a5b881c185cdd606a1b6044820152606401610d51565b60cc8054908390556040805182815260208101859052428183015290517f5f3a900c85949962b4cc192dd3714dae64071dc2e907049ec720b023270905a49181900360600190a160019150505b919050565b610e3d6136f2565b60dd8054911515600160a01b0260ff60a01b19909216919091179055565b610e636136f2565b6000821180610e725750600081115b610eb35760405162461bcd60e51b8152602060048201526012602482015271496e76616c696420706172616d657465727360701b6044820152606401610d51565b8115610f985760ca544210610f015760405162461bcd60e51b815260206004820152601460248201527314d85b1948185b1c9958591e481cdd185c9d195960621b6044820152606401610d51565b814210610f445760405162461bcd60e51b815260206004820152601160248201527014d85b19481d1a5b59481a5b881c185cdd607a1b6044820152606401610d51565b60ca8054908390556040805182815260208101859052428183015290516414d510549560da1b917fddd2ed237e6993c9380182683f2c8bec486aaaa429528852cd74dbdb96cea0b2919081900360600190a2505b80156110335760ca548111610fe15760405162461bcd60e51b815260206004820152600f60248201526e496e76616c696420656e6454696d6560881b6044820152606401610d51565b60cb8054908290556040805182815260208101849052428183015290516211539160ea1b917fddd2ed237e6993c9380182683f2c8bec486aaaa429528852cd74dbdb96cea0b2919081900360600190a2505b5050565b61103f6136f2565b60dd8054911515600160a81b0260ff60a81b19909216919091179055565b6110656136f2565b60d355565b6110726136f2565b600081116110c25760405162461bcd60e51b815260206004820152601c60248201527f5a65726f206d617820746f6b656e7320746f206275792076616c7565000000006044820152606401610d51565b60cf8054908290556040805182815260208101849052428183015290517f76f9e5e1f6af6a9f180708b77a5c99210fbf19b91f1f194f3918c262b8edf77c9181900360600190a15050565b60008061111983612bb1565b905061112361263a565b60ce546111309083614533565b61113a9190614552565b9392505050565b60dd546001600160a01b031633148061116457506065546001600160a01b031633145b6111ac5760405162461bcd60e51b815260206004820152601960248201527831b0b63632b9103737ba1030b236b4b71037b91037bbb732b960391b6044820152606401610d51565b80516111fa5760405162461bcd60e51b815260206004820152601c60248201527f63616e6e6f742075706461746520696e76616c69642076616c756573000000006044820152606401610d51565b61120660d96000613f30565b60005b81518110156110335760d9828281518110611226576112266144ec565b602090810291909101810151825460018101845560009384529190922001558061124f81614518565b915050611209565b61125f6136f2565b61126761374c565b565b600061127361379e565b60cd546001600160a01b03166112c25760405162461bcd60e51b815260206004820152601460248201527314d85b19481d1bdad95b881b9bdd08185919195960621b6044820152606401610d51565b33600090815260e2602052604090205460ff16156113225760405162461bcd60e51b815260206004820152601b60248201527f54686973204164647265737320697320426c61636b6c697374656400000000006044820152606401610d51565b60dd54600160a81b900460ff16156113935733600090815260e3602052604090205460ff166113935760405162461bcd60e51b815260206004820152601e60248201527f55736572206e6f742077686974656c697374656420666f7220636c61696d00006044820152606401610d51565b60cc544210156113e55760405162461bcd60e51b815260206004820152601960248201527f436c61696d20686173206e6f74207374617274656420796574000000000000006044820152606401610d51565b33600090815260e1602052604090205460ff16156114375760405162461bcd60e51b815260206004820152600f60248201526e105b1c9958591e4818db185a5b5959608a1b6044820152606401610d51565b33600090815260e160209081526040808320805460ff1916600117905560e09091529020548061149c5760405162461bcd60e51b815260206004820152601060248201526f4e6f7468696e6720746f20636c61696d60801b6044820152606401610d51565b33600081815260e06020908152604080832083905560cd54815163a9059cbb60e01b8152600481019590955260248501869052905192936001600160a01b039091169263a9059cbb9260448084019391929182900301818787803b15801561150357600080fd5b505af1158015611517573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061153b9190614574565b9050806115825760405162461bcd60e51b8152602060048201526015602482015274151bdad95b881d1c985b9cd9995c8819985a5b1959605a1b6044820152606401610d51565b6040805183815242602082015233917f9923b4306c6c030f2bdfbf156517d5983b87e15b96176da122cd4f2effa4ba7b910160405180910390a260019250505090565b60008160ca5442101580156115dc575060cb544211155b6115f85760405162461bcd60e51b8152600401610d5190614591565b600081116116185760405162461bcd60e51b8152600401610d51906145c8565b61162061379e565b6116286137e4565b33600090815260e4602052604090205460ff166116875760405162461bcd60e51b815260206004820181905260248201527f55736572206e6f742077686974656c697374656420666f7220746869732074786044820152606401610d51565b600061169284612bb1565b9050600061169e61263a565b60ce546116ab9084614533565b6116b59190614552565b9050803410156116f65760405162461bcd60e51b815260206004820152600c60248201526b13195cdcc81c185e5b595b9d60a21b6044820152606401610d51565b600061170282346145f5565b90508560c96000828254611716919061460c565b909155505060d1541561173b578560d16000828254611735919061460c565b90915550505b600060d15460c954116117505760d154611754565b60c9545b905060d560000160d0548154811061176e5761176e6144ec565b90600052602060002001548111806117a8575060d560020160d05481548110611799576117996144ec565b90600052602060002001544210155b156118e25760d560020160d054815481106117c5576117c56144ec565b90600052602060002001544210611808578660d560000160d054815481106117ef576117ef6144ec565b9060005260206000200154611804919061460c565b60d1555b60dd54600160a01b900460ff16156118225761182261383e565b600060d5810160d0548154811061183b5761183b6144ec565b9060005260206000200154821161188a57878260d560000160d05481548110611866576118666144ec565b906000526020600020015461187b91906145f5565b61188591906145f5565b61188d565b60005b60d980546001818101835560009283527fcc6782fd46dd71c5f512301ab049782450b4eaf79fdac5443d93d274d391678690910183905560d0805493945090929091906118db90849061460c565b9091555050505b60dd54600160b01b900460ff161561192c576001600160a01b038816600090815260e3602052604090205460ff1661192c5760405162461bcd60e51b8152600401610d5190614624565b60e55460ce546001600160a01b03909116906391c61966908a90611950908b614533565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b15801561199657600080fd5b505af11580156119aa573d6000803e3d6000fd5b505050508660d460008282546119c0919061460c565b909155505060408051848152602081018690524281830152905160009189916001600160a01b038c16917f6f225532a9c33b023b8e48247ad8df9d98f132ae17c769b97ff22d2b278fa73a919081900360600190a48360d26000828254611a27919061460c565b90915550611a369050836138ae565b8115611a4657611a468883613a0b565b6001955050505050611a5760018055565b5092915050565b611a666136f2565b60005b81811015610cf457600060e36000858585818110611a8957611a896144ec565b9050602002016020810190611a9e9190614100565b6001600160a01b031681526020810191909152604001600020805460ff191691151591909117905580611ad081614518565b915050611a69565b611ae06136f2565b8051825114611b255760405162461bcd60e51b81526020600482015260116024820152704d69736d6174636865642061727261797360781b6044820152606401610d51565b611b3160db6000613f30565b611b3d60da6000613f30565b6000805b8351811015611c7b576000838281518110611b5e57611b5e6144ec565b602002602001015111611bbd5760405162461bcd60e51b815260206004820152602160248201527f50657263656e74616765206d7573742062652067726561746572207468616e206044820152600360fc1b6064820152608401610d51565b828181518110611bcf57611bcf6144ec565b602002602001015182611be2919061460c565b915060db848281518110611bf857611bf86144ec565b60209081029190910181015182546001810184556000938452919092200180546001600160a01b0319166001600160a01b03909216919091179055825160da90849083908110611c4a57611c4a6144ec565b6020908102919091018101518254600181018455600093845291909220015580611c7381614518565b915050611b41565b5080606414610cf45760405162461bcd60e51b815260206004820152601f60248201527f546f74616c2070657263656e74616765206d75737420657175616c20313030006044820152606401610d51565b6000611cd782612bb1565b9050611ce864e8d4a5100082614552565b92915050565b60dd546001600160a01b0316331480611d1157506065546001600160a01b031633145b611d595760405162461bcd60e51b815260206004820152601960248201527831b0b63632b9103737ba1030b236b4b71037b91037bbb732b960391b6044820152606401610d51565b60d15460d880546001810182556000919091527f5320ad99a619a90804cd2efe3a5cf0ac1ac5c41ad9ff2c61cf699efdad771096015560dd54600160a01b900460ff1615611da957611da961383e565b60d560000160d05481548110611dc157611dc16144ec565b906000526020600020015460d1541015611e9c5760d054611e2a5760c95460d99060d560000160d05481548110611dfa57611dfa6144ec565b9060005260206000200154611e0f91906145f5565b81546001810183556000928352602090922090910155611e74565b60d15460d99060d560000160d05481548110611e4857611e486144ec565b9060005260206000200154611e5d91906145f5565b815460018101835560009283526020909220909101555b60d560000160d05481548110611e8c57611e8c6144ec565b60009182526020909120015460d1555b60d08054906000611eac83614518565b9190505550565b611ebb6136f2565b60dd80546001600160a01b0319166001600160a01b0392909216919091179055565b611ee56136f2565b6112676000613ae1565b60008160ca544210158015611f06575060cb544211155b611f225760405162461bcd60e51b8152600401610d5190614591565b60008111611f425760405162461bcd60e51b8152600401610d51906145c8565b611f4a61379e565b611f526137e4565b6000611f5d84612bb1565b90506000611f6961263a565b60ce54611f769084614533565b611f809190614552565b905080341015611fc15760405162461bcd60e51b815260206004820152600c60248201526b13195cdcc81c185e5b595b9d60a21b6044820152606401610d51565b6000611fcd82346145f5565b90508560c96000828254611fe1919061460c565b909155505060d15415612006578560d16000828254612000919061460c565b90915550505b600060d15460c9541161201b5760d15461201f565b60c9545b905060d560000160d05481548110612039576120396144ec565b9060005260206000200154811180612073575060d560020160d05481548110612064576120646144ec565b90600052602060002001544210155b156121ad5760d560020160d05481548110612090576120906144ec565b906000526020600020015442106120d3578660d560000160d054815481106120ba576120ba6144ec565b90600052602060002001546120cf919061460c565b60d1555b60dd54600160a01b900460ff16156120ed576120ed61383e565b600060d5810160d05481548110612106576121066144ec565b9060005260206000200154821161215557878260d560000160d05481548110612131576121316144ec565b906000526020600020015461214691906145f5565b61215091906145f5565b612158565b60005b60d980546001818101835560009283527fcc6782fd46dd71c5f512301ab049782450b4eaf79fdac5443d93d274d391678690910183905560d0805493945090929091906121a690849061460c565b9091555050505b60dd54600160b01b900460ff16156121ee5733600090815260e3602052604090205460ff166121ee5760405162461bcd60e51b8152600401610d5190614624565b60e5546001600160a01b03166391c619663360ce5461220d908b614533565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b15801561225357600080fd5b505af1158015612267573d6000803e3d6000fd5b505050508660d4600082825461227d919061460c565b9091555050604080518481526020810186905242818301529051600091899133917f6f225532a9c33b023b8e48247ad8df9d98f132ae17c769b97ff22d2b278fa73a919081900360600190a48360d260008282546122db919061460c565b909155506122ea9050836138ae565b81156122fa576122fa3383613a0b565b600195505050505061230b60018055565b50919050565b60db818154811061232157600080fd5b6000918252602090912001546001600160a01b0316905081565b6123436136f2565b611267613b33565b6123536136f2565b60005b81811015610cf457600060e26000858585818110612376576123766144ec565b905060200201602081019061238b9190614100565b6001600160a01b031681526020810191909152604001600020805460ff1916911515919091179055806123bd81614518565b915050612356565b60006123cf6136f2565b6001600160a01b03831661241a5760405162461bcd60e51b81526020600482015260126024820152715a65726f20746f6b656e206164647265737360701b6044820152606401610d51565b60cc541561245e5760405162461bcd60e51b815260206004820152601160248201527010db185a5b48185b1c9958591e481cd95d607a1b6044820152606401610d51565b60cc85905560cd80546001600160a01b038581166001600160a01b0319928316811790935560dd805460ff60a81b1916600160a81b17905560e5805491861691909216811790915560405163095ea7b360e01b81526004810191909152600019602482015263095ea7b390604401602060405180830381600087803b1580156124e657600080fd5b505af11580156124fa573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061251e9190614574565b506040516323b872dd60e01b81526000906001600160a01b038516906323b872dd9061255290339030908a9060040161465b565b602060405180830381600087803b15801561256c57600080fd5b505af1158015612580573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125a49190614574565b9050806125eb5760405162461bcd60e51b8152602060048201526015602482015274151bdad95b881d1c985b9cd9995c8819985a5b1959605a1b6044820152606401610d51565b604080518681524260208201526001600160a01b038616917fdc9670dbabdd488b372eb16ebe49a39b3124a12cdffdcefbc89834a408bf8ff8910160405180910390a250600195945050505050565b60008060df60009054906101000a90046001600160a01b03166001600160a01b031663feaf968c6040518163ffffffff1660e01b815260040160a06040518083038186803b15801561268b57600080fd5b505afa15801561269f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906126c39190614699565b505050915050806402540be400611ce891906146e9565b6126e26136f2565b60d09190915560d155565b6126f56136f2565b61103360d5826003613f4e565b60008160ca544210158015612719575060cb544211155b6127355760405162461bcd60e51b8152600401610d5190614591565b600081116127555760405162461bcd60e51b8152600401610d51906145c8565b61275d61379e565b600061276884612bb1565b90508360c9600082825461277c919061460c565b909155506000905061279364e8d4a5100083614552565b905060d1546000146127b7578460d160008282546127b1919061460c565b90915550505b600060d15460c954116127cc5760d1546127d0565b60c9545b905060d560000160d054815481106127ea576127ea6144ec565b9060005260206000200154811180612824575060d560020160d05481548110612815576128156144ec565b90600052602060002001544210155b1561295e5760d560020160d05481548110612841576128416144ec565b90600052602060002001544210612884578560d560000160d0548154811061286b5761286b6144ec565b9060005260206000200154612880919061460c565b60d1555b60dd54600160a01b900460ff161561289e5761289e61383e565b600060d5810160d054815481106128b7576128b76144ec565b9060005260206000200154821161290657868260d560000160d054815481106128e2576128e26144ec565b90600052602060002001546128f791906145f5565b61290191906145f5565b612909565b60005b60d980546001818101835560009283527fcc6782fd46dd71c5f512301ab049782450b4eaf79fdac5443d93d274d391678690910183905560d08054939450909290919061295790849061460c565b9091555050505b60dd54600160b01b900460ff161561299f5733600090815260e3602052604090205460ff1661299f5760405162461bcd60e51b8152600401610d5190614624565b60e5546001600160a01b03166391c619663360ce546129be908a614533565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b158015612a0457600080fd5b505af1158015612a18573d6000803e3d6000fd5b505050508560d46000828254612a2e919061460c565b909155505060de546001600160a01b031686336001600160a01b03167f6f225532a9c33b023b8e48247ad8df9d98f132ae17c769b97ff22d2b278fa73a858742604051612a8e939291909283526020830191909152604082015260600190565b60405180910390a48260d26000828254612aa8919061460c565b909155505060de546000906001600160a01b031663dd62ed3e336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015230602482015260440160206040518083038186803b158015612b0757600080fd5b505afa158015612b1b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612b3f919061476e565b905080831115612b9b5760405162461bcd60e51b815260206004820152602160248201527f4d616b65207375726520746f2061646420656e6f75676820616c6c6f77616e636044820152606560f81b6064820152608401610d51565b612ba483613b70565b5060019695505050505050565b600080600060d154600014612bc85760d154612bcc565b60c9545b905060cf54841115612c205760405162461bcd60e51b815260206004820181905260248201527f416d6f756e742065786365656473206d617820746f6b656e7320746f206275796044820152606401610d51565b60d560000160d05481548110612c3857612c386144ec565b90600052602060002001548185612c4f919061460c565b1180612c7d575060d560020160d05481548110612c6e57612c6e6144ec565b90600052602060002001544210155b15612eaf5760d554612c91906001906145f5565b60d05410612cd05760405162461bcd60e51b815260206004820152600c60248201526b57726f6e6720706172616d7360a01b6044820152606401610d51565b60d560020160d05481548110612ce857612ce86144ec565b90600052602060002001544210612dfb5760d05460d590612d0a90600161460c565b81548110612d1a57612d1a6144ec565b90600052602060002001548460d5600060038110612d3a57612d3a6144ec565b0160d05481548110612d4e57612d4e6144ec565b9060005260206000200154612d63919061460c565b1115612dbd5760405162461bcd60e51b815260206004820152602360248201527f43616e74205075726368617365204d6f726520696e20696e646976696475616c604482015262040e8f60eb1b6064820152608401610d51565b60d05460d690612dce90600161460c565b81548110612dde57612dde6144ec565b906000526020600020015484612df49190614533565b9150611a57565b60008160d5820160d05481548110612e1557612e156144ec565b9060005260206000200154612e2a91906145f5565b60d05490915060d690612e3e90600161460c565b81548110612e4e57612e4e6144ec565b90600052602060002001548186612e6591906145f5565b612e6f9190614533565b60d560010160d05481548110612e8757612e876144ec565b906000526020600020015482612e9d9190614533565b612ea7919061460c565b925050611a57565b60d560010160d05481548110612ec757612ec76144ec565b906000526020600020015484612edd9190614533565b949350505050565b612eed6136f2565b6001600160a01b038116612f695760405162461bcd60e51b815260206004820152603760248201527f7374616b696e67206d616e616765722063616e6e6f7420626520696e6174696160448201527f6c697a65642077697468207a65726f20616464726573730000000000000000006064820152608401610d51565b60e580546001600160a01b0319166001600160a01b0383811691821790925560cd5460405163095ea7b360e01b8152600481019290925260001960248301529091169063095ea7b390604401602060405180830381600087803b158015612fcf57600080fd5b505af1158015612fe3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110339190614574565b61300f6136f2565b60dd8054911515600160b01b0260ff60b01b19909216919091179055565b606060d58260038110613042576130426144ec565b0180548060200260200160405190810160405280929190818152602001828054801561308d57602002820191906000526020600020905b815481526020019060010190808311613079575b50505050509050919050565b6130a16136f2565b60005b81811015610cf457600160e260008585858181106130c4576130c46144ec565b90506020020160208101906130d99190614100565b6001600160a01b031681526020810191909152604001600020805460ff19169115159190911790558061310b81614518565b9150506130a4565b60d9818154811061312357600080fd5b600091825260209091200154905081565b606060d980548060200260200160405190810160405280929190818152602001828054801561318257602002820191906000526020600020905b81548152602001906001019080831161316e575b5050505050905090565b6131946136f2565b6001600160a01b0381166131e35760405162461bcd60e51b8152602060048201526016602482015275616464726573732063616e6e6f74206265207a65726f60501b6044820152606401610d51565b60dc80546001600160a01b0319166001600160a01b0392909216919091179055565b600061320f61379e565b60cd546001600160a01b031661325e5760405162461bcd60e51b815260206004820152601460248201527314d85b19481d1bdad95b881b9bdd08185919195960621b6044820152606401610d51565b33600090815260e2602052604090205460ff16156132be5760405162461bcd60e51b815260206004820152601b60248201527f54686973204164647265737320697320426c61636b6c697374656400000000006044820152606401610d51565b60dd54600160b01b900460ff16156132ff5733600090815260e3602052604090205460ff166132ff5760405162461bcd60e51b8152600401610d5190614624565b33600090815260e060205260409020548061334f5760405162461bcd60e51b815260206004820152601060248201526f4e6f7468696e6720746f207374616b6560801b6044820152606401610d51565b60e5546001600160a01b03166391c61966336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260248101849052604401600060405180830381600087803b1580156133a957600080fd5b505af11580156133bd573d6000803e3d6000fd5b5050505060e060006133cc3390565b6001600160a01b031681526020810191909152604001600090812055336001600160a01b03167ffa4ec67f9254455933eb145bae864b26f29dd0a7bbb76eb11e4d6b8b9b184c2b824260405161342c929190918252602082015260400190565b60405180910390a2600191505090565b60d8818154811061312357600080fd5b60d5826003811061345c57600080fd5b01818154811061346b57600080fd5b90600052602060002001600091509150505481565b6134886136f2565b60005b81811015610cf457600160e360008585858181106134ab576134ab6144ec565b90506020020160208101906134c09190614100565b6001600160a01b031681526020810191909152604001600020805460ff1916911515919091179055806134f281614518565b91505061348b565b6135026136f2565b6001600160a01b0381166135675760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610d51565b61357081613ae1565b50565b61357b6136f2565b60005b81811015610cf457600060e4600085858581811061359e5761359e6144ec565b90506020020160208101906135b39190614100565b6001600160a01b031681526020810191909152604001600020805460ff1916911515919091179055806135e581614518565b91505061357e565b60da818154811061312357600080fd5b6136056136f2565b8281146136465760405162461bcd60e51b815260206004820152600f60248201526e098cadccee8d040dad2e6dac2e8c6d608b1b6044820152606401610d51565b60005b838110156136dc57828282818110613663576136636144ec565b9050602002013560e06000878785818110613680576136806144ec565b90506020020160208101906136959190614100565b6001600160a01b03166001600160a01b0316815260200190815260200160002060008282546136c4919061460c565b909155508190506136d481614518565b915050613649565b5050505050565b6001600160a01b03163b151590565b6065546001600160a01b031633146112675760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d51565b613754613ee7565b6097805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b60975460ff16156112675760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610d51565b600260015414156138375760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610d51565b6002600155565b60005b60d05460d75461385191906145f5565b8110156135705760d3546138659082614533565b61386f904261460c565b60d05460d79061388090849061460c565b81548110613890576138906144ec565b600091825260209091200155806138a681614518565b915050613841565b60db5461391c5760dc546001600160a01b03166139065760405162461bcd60e51b815260206004820152601660248201527514185e5b595b9d081dd85b1b195d081b9bdd081cd95d60521b6044820152606401610d51565b60dc54613570906001600160a01b031682613a0b565b6000805b60db548110156139b4576000606460da8381548110613941576139416144ec565b9060005260206000200154856139579190614533565b6139619190614552565b905061399460db8381548110613979576139796144ec565b6000918252602090912001546001600160a01b031682613a0b565b61399e818461460c565b92505080806139ac90614518565b915050613920565b5060006139c182846145f5565b11156110335760db805461103391906139dc906001906145f5565b815481106139ec576139ec6144ec565b6000918252602090912001546001600160a01b0316613a0b83856145f5565b80471015613a495760405162461bcd60e51b815260206004820152600b60248201526a4c6f772062616c616e636560a81b6044820152606401610d51565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114613a96576040519150601f19603f3d011682016040523d82523d6000602084013e613a9b565b606091505b5050905080610cf45760405162461bcd60e51b81526020600482015260126024820152711155120814185e5b595b9d0819985a5b195960721b6044820152606401610d51565b606580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b613b3b61379e565b6097805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586137813390565b60db54613c8f5760dc546001600160a01b0316613bc85760405162461bcd60e51b815260206004820152601660248201527514185e5b595b9d081dd85b1b195d081b9bdd081cd95d60521b6044820152606401610d51565b60de546000906001600160a01b03163360dc54604051613bf792916001600160a01b031690869060240161465b565b60408051601f198184030181529181526020820180516001600160e01b03166323b872dd60e01b17905251613c2c9190614787565b6000604051808303816000865af19150503d8060008114613c69576040519150601f19603f3d011682016040523d82523d6000602084013e613c6e565b606091505b50509050806110335760405162461bcd60e51b8152600401610d51906147c2565b6000805b60db54811015613ddb576000606460da8381548110613cb457613cb46144ec565b906000526020600020015485613cca9190614533565b613cd49190614552565b60de549091506000906001600160a01b03163360db8581548110613cfa57613cfa6144ec565b600091825260209091200154604051613d2292916001600160a01b031690869060240161465b565b60408051601f198184030181529181526020820180516001600160e01b03166323b872dd60e01b17905251613d579190614787565b6000604051808303816000865af19150503d8060008114613d94576040519150601f19603f3d011682016040523d82523d6000602084013e613d99565b606091505b5050905080613dba5760405162461bcd60e51b8152600401610d51906147c2565b613dc4828561460c565b935050508080613dd390614518565b915050613c93565b506000613de882846145f5565b11156110335760de546000906001600160a01b03163360db8054613e0e906001906145f5565b81548110613e1e57613e1e6144ec565b6000918252602090912001546001600160a01b0316613e3d85876145f5565b604051602401613e4f9392919061465b565b60408051601f198184030181529181526020820180516001600160e01b03166323b872dd60e01b17905251613e849190614787565b6000604051808303816000865af19150503d8060008114613ec1576040519150601f19603f3d011682016040523d82523d6000602084013e613ec6565b606091505b5050905080610cf45760405162461bcd60e51b8152600401610d51906147c2565b60975460ff166112675760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610d51565b50805460008255906000526020600020908101906135709190613f9e565b8260038101928215613f8e579160200282015b82811115613f8e5782518051613f7e918491602090910190613fb3565b5091602001919060010190613f61565b50613f9a929150613ffa565b5090565b5b80821115613f9a5760008155600101613f9f565b828054828255906000526020600020908101928215613fee579160200282015b82811115613fee578251825591602001919060010190613fd3565b50613f9a929150613f9e565b80821115613f9a57600061400e8282613f30565b50600101613ffa565b60008083601f84011261402957600080fd5b50813567ffffffffffffffff81111561404157600080fd5b6020830191508360208260051b850101111561405c57600080fd5b9250929050565b6000806020838503121561407657600080fd5b823567ffffffffffffffff81111561408d57600080fd5b61409985828601614017565b90969095509350505050565b6000602082840312156140b757600080fd5b5035919050565b801515811461357057600080fd5b6000602082840312156140de57600080fd5b813561113a816140be565b80356001600160a01b0381168114610e3057600080fd5b60006020828403121561411257600080fd5b61113a826140e9565b6000806040838503121561412e57600080fd5b50508035926020909101359150565b634e487b7160e01b600052604160045260246000fd5b6040516060810167ffffffffffffffff811182821017156141765761417661413d565b60405290565b604051601f8201601f1916810167ffffffffffffffff811182821017156141a5576141a561413d565b604052919050565b600067ffffffffffffffff8211156141c7576141c761413d565b5060051b60200190565b600082601f8301126141e257600080fd5b813560206141f76141f2836141ad565b61417c565b82815260059290921b8401810191818101908684111561421657600080fd5b8286015b84811015614231578035835291830191830161421a565b509695505050505050565b60006020828403121561424e57600080fd5b813567ffffffffffffffff81111561426557600080fd5b612edd848285016141d1565b6000806040838503121561428457600080fd5b61428d836140e9565b946020939093013593505050565b600080604083850312156142ae57600080fd5b823567ffffffffffffffff808211156142c657600080fd5b818501915085601f8301126142da57600080fd5b813560206142ea6141f2836141ad565b82815260059290921b8401810191818101908984111561430957600080fd5b948201945b8386101561432e5761431f866140e9565b8252948201949082019061430e565b9650508601359250508082111561434457600080fd5b50614351858286016141d1565b9150509250929050565b6000806000806080858703121561437157600080fd5b8435935060208501359250614388604086016140e9565b9150614396606086016140e9565b905092959194509250565b600060208083850312156143b457600080fd5b823567ffffffffffffffff808211156143cc57600080fd5b818501915085601f8301126143e057600080fd5b6143e8614153565b8060608401888111156143fa57600080fd5b845b8181101561442e578035858111156144145760008081fd5b6144208b8289016141d1565b8552509286019286016143fc565b509098975050505050505050565b6020808252825182820181905260009190848201906040850190845b8181101561447457835183529284019291840191600101614458565b50909695505050505050565b6000806000806040858703121561449657600080fd5b843567ffffffffffffffff808211156144ae57600080fd5b6144ba88838901614017565b909650945060208701359150808211156144d357600080fd5b506144e087828801614017565b95989497509550505050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600060001982141561452c5761452c614502565b5060010190565b600081600019048311821515161561454d5761454d614502565b500290565b60008261456f57634e487b7160e01b600052601260045260246000fd5b500490565b60006020828403121561458657600080fd5b815161113a816140be565b60208082526017908201527f496e76616c69642074696d6520666f7220627579696e67000000000000000000604082015260600190565b602080825260139082015272125b9d985b1a59081cd85b1948185b5bdd5b9d606a1b604082015260600190565b60008282101561460757614607614502565b500390565b6000821982111561461f5761461f614502565b500190565b6020808252601e908201527f55736572206e6f742077686974656c697374656420666f72207374616b650000604082015260600190565b6001600160a01b039384168152919092166020820152604081019190915260600190565b805169ffffffffffffffffffff81168114610e3057600080fd5b600080600080600060a086880312156146b157600080fd5b6146ba8661467f565b94506020860151935060408601519250606086015191506146dd6080870161467f565b90509295509295909350565b60006001600160ff1b038184138284138082168684048611161561470f5761470f614502565b600160ff1b600087128281168783058912161561472e5761472e614502565b6000871292508782058712848416161561474a5761474a614502565b8785058712818416161561476057614760614502565b505050929093029392505050565b60006020828403121561478057600080fd5b5051919050565b6000825160005b818110156147a8576020818601810151858301520161478e565b818111156147b7576000828501525b509190910192915050565b602080825260149082015273151bdad95b881c185e5b595b9d0819985a5b195960621b60408201526060019056fea2646970667358221220b639c40f25ae1da7d27ea3d269cb45872d369444b8d7f7ce255f7a32aa8e4bd064736f6c63430008090033
Deployed Bytecode
0x6080604052600436106104055760003560e01c80638456cb5911610213578063cad0055611610123578063edec5f27116100ab578063f597573f1161007a578063f597573f14610bca578063f851a44014610bea578063f885838614610c0a578063fb9a4acd14610c2a578063fe575a8714610c4a57600080fd5b8063edec5f2714610b54578063f04d688f14610b74578063f2fde38b14610b8a578063f446374314610baa57600080fd5b8063e19648db116100f2578063e19648db14610abe578063e32204dd14610ade578063e6da921314610afe578063e985e36714610b1e578063eadd94ec14610b3e57600080fd5b8063cad0055614610a52578063cb1a4fc014610a72578063cff805ab14610a87578063dad80e8614610a9d57600080fd5b8063a7c60160116101a6578063ba166a3911610175578063ba166a39146109b0578063bb3d676a146109dd578063c23326f3146109fd578063c49cc64514610a1d578063c8adff0114610a3d57600080fd5b8063a7c6016014610930578063ae10426514610950578063b00bba6a14610970578063b8977d6d1461099057600080fd5b80638e15f473116101e25780638e15f473146108c55780639a89c1fb146108da5780639cfa0f7c146108fa578063a6d42e4e1461091057600080fd5b80638456cb591461085257806389daf799146108675780638ac08082146108875780638da5cb5b146108a757600080fd5b80634e71d92d1161031957806363e40879116102a157806373b2e80e1161027057806373b2e80e146107c35780637649b957146107f357806378e97925146108065780637ad71f721461081c5780637f6fb2531461083c57600080fd5b806363e4087914610759578063641046f414610779578063704b6c021461078e578063715018a6146107ae57600080fd5b80635bc34f71116102e85780635bc34f71146106c55780635c975abb146106db5780635ddc5688146106f35780635df4f3531461071357806363b201171461074357600080fd5b80634e71d92d1461065c5780635173ffaa1461067157806353d9920714610684578063548db174146106a557600080fd5b8063278c278b1161039c57806333f761781161036b57806333f76178146105b357806338646608146105c95780633af32abf146106015780633f4ba83a1461063157806343568eae1461064657600080fd5b8063278c278b1461053d57806329a5a0b61461055d5780632dc358e81461057d5780633197cbb61461059d57600080fd5b80630dc9c838116103d85780630dc9c838146104bc5780631ddc6091146104dc5780631fa2bc92146104fc57806323a8f1c01461051d57600080fd5b806303b9c5ad1461040a57806307f180821461042c5780630a200fc7146104615780630ba36dcd14610481575b600080fd5b34801561041657600080fd5b5061042a610425366004614063565b610c7a565b005b34801561043857600080fd5b5061044c6104473660046140a5565b610cf9565b60405190151581526020015b60405180910390f35b34801561046d57600080fd5b5061042a61047c3660046140cc565b610e35565b34801561048d57600080fd5b506104ae61049c366004614100565b60e06020526000908152604090205481565b604051908152602001610458565b3480156104c857600080fd5b5061042a6104d736600461411b565b610e5b565b3480156104e857600080fd5b5061042a6104f73660046140cc565b611037565b34801561050857600080fd5b5060dd5461044c90600160a01b900460ff1681565b34801561052957600080fd5b5061042a6105383660046140a5565b61105d565b34801561054957600080fd5b5061042a6105583660046140a5565b61106a565b34801561056957600080fd5b506104ae6105783660046140a5565b61110d565b34801561058957600080fd5b5061042a61059836600461423c565b611141565b3480156105a957600080fd5b506104ae60cb5481565b3480156105bf57600080fd5b506104ae60ce5481565b3480156105d557600080fd5b5060e5546105e9906001600160a01b031681565b6040516001600160a01b039091168152602001610458565b34801561060d57600080fd5b5061044c61061c366004614100565b60e36020526000908152604090205460ff1681565b34801561063d57600080fd5b5061042a611257565b34801561065257600080fd5b506104ae60d35481565b34801561066857600080fd5b5061044c611269565b61044c61067f366004614271565b6115c5565b34801561069057600080fd5b5060dd5461044c90600160a81b900460ff1681565b3480156106b157600080fd5b5061042a6106c0366004614063565b611a5e565b3480156106d157600080fd5b506104ae60d05481565b3480156106e757600080fd5b5060975460ff1661044c565b3480156106ff57600080fd5b5061042a61070e36600461429b565b611ad8565b34801561071f57600080fd5b5061044c61072e366004614100565b60e46020526000908152604090205460ff1681565b34801561074f57600080fd5b506104ae60c95481565b34801561076557600080fd5b506104ae6107743660046140a5565b611ccc565b34801561078557600080fd5b5061042a611cee565b34801561079a57600080fd5b5061042a6107a9366004614100565b611eb3565b3480156107ba57600080fd5b5061042a611edd565b3480156107cf57600080fd5b5061044c6107de366004614100565b60e16020526000908152604090205460ff1681565b61044c6108013660046140a5565b611eef565b34801561081257600080fd5b506104ae60ca5481565b34801561082857600080fd5b506105e96108373660046140a5565b612311565b34801561084857600080fd5b506104ae60d45481565b34801561085e57600080fd5b5061042a61233b565b34801561087357600080fd5b5061042a610882366004614063565b61234b565b34801561089357600080fd5b5061044c6108a236600461435b565b6123c5565b3480156108b357600080fd5b506065546001600160a01b03166105e9565b3480156108d157600080fd5b506104ae61263a565b3480156108e657600080fd5b5061042a6108f536600461411b565b6126da565b34801561090657600080fd5b506104ae60cf5481565b34801561091c57600080fd5b5061042a61092b3660046143a1565b6126ed565b34801561093c57600080fd5b5061044c61094b3660046140a5565b612702565b34801561095c57600080fd5b506104ae61096b3660046140a5565b612bb1565b34801561097c57600080fd5b5061042a61098b366004614100565b612ee5565b34801561099c57600080fd5b5061042a6109ab3660046140cc565b613007565b3480156109bc57600080fd5b506109d06109cb3660046140a5565b61302d565b604051610458919061443c565b3480156109e957600080fd5b5061042a6109f8366004614063565b613099565b348015610a0957600080fd5b506104ae610a183660046140a5565b613113565b348015610a2957600080fd5b5060df546105e9906001600160a01b031681565b348015610a4957600080fd5b506109d0613134565b348015610a5e57600080fd5b5061042a610a6d366004614100565b61318c565b348015610a7e57600080fd5b5061044c613205565b348015610a9357600080fd5b506104ae60d15481565b348015610aa957600080fd5b5060dd5461044c90600160b01b900460ff1681565b348015610aca57600080fd5b506104ae610ad93660046140a5565b61343c565b348015610aea57600080fd5b5060dc546105e9906001600160a01b031681565b348015610b0a57600080fd5b506104ae610b1936600461411b565b61344c565b348015610b2a57600080fd5b5060cd546105e9906001600160a01b031681565b348015610b4a57600080fd5b506104ae60d25481565b348015610b6057600080fd5b5061042a610b6f366004614063565b613480565b348015610b8057600080fd5b506104ae60cc5481565b348015610b9657600080fd5b5061042a610ba5366004614100565b6134fa565b348015610bb657600080fd5b5061042a610bc5366004614063565b613573565b348015610bd657600080fd5b5060de546105e9906001600160a01b031681565b348015610bf657600080fd5b5060dd546105e9906001600160a01b031681565b348015610c1657600080fd5b506104ae610c253660046140a5565b6135ed565b348015610c3657600080fd5b5061042a610c45366004614480565b6135fd565b348015610c5657600080fd5b5061044c610c65366004614100565b60e26020526000908152604090205460ff1681565b610c826136f2565b60005b81811015610cf457600160e46000858585818110610ca557610ca56144ec565b9050602002016020810190610cba9190614100565b6001600160a01b031681526020810191909152604001600020805460ff191691151591909117905580610cec81614518565b915050610c85565b505050565b6000610d036136f2565b600060cc5411610d5a5760405162461bcd60e51b815260206004820152601a60248201527f496e697469616c20636c61696d2064617461206e6f742073657400000000000060448201526064015b60405180910390fd5b60cb548211610d9e5760405162461bcd60e51b815260206004820152601060248201526f53616c6520696e2070726f677265737360801b6044820152606401610d51565b428211610de35760405162461bcd60e51b815260206004820152601360248201527210db185a5b481cdd185c9d081a5b881c185cdd606a1b6044820152606401610d51565b60cc8054908390556040805182815260208101859052428183015290517f5f3a900c85949962b4cc192dd3714dae64071dc2e907049ec720b023270905a49181900360600190a160019150505b919050565b610e3d6136f2565b60dd8054911515600160a01b0260ff60a01b19909216919091179055565b610e636136f2565b6000821180610e725750600081115b610eb35760405162461bcd60e51b8152602060048201526012602482015271496e76616c696420706172616d657465727360701b6044820152606401610d51565b8115610f985760ca544210610f015760405162461bcd60e51b815260206004820152601460248201527314d85b1948185b1c9958591e481cdd185c9d195960621b6044820152606401610d51565b814210610f445760405162461bcd60e51b815260206004820152601160248201527014d85b19481d1a5b59481a5b881c185cdd607a1b6044820152606401610d51565b60ca8054908390556040805182815260208101859052428183015290516414d510549560da1b917fddd2ed237e6993c9380182683f2c8bec486aaaa429528852cd74dbdb96cea0b2919081900360600190a2505b80156110335760ca548111610fe15760405162461bcd60e51b815260206004820152600f60248201526e496e76616c696420656e6454696d6560881b6044820152606401610d51565b60cb8054908290556040805182815260208101849052428183015290516211539160ea1b917fddd2ed237e6993c9380182683f2c8bec486aaaa429528852cd74dbdb96cea0b2919081900360600190a2505b5050565b61103f6136f2565b60dd8054911515600160a81b0260ff60a81b19909216919091179055565b6110656136f2565b60d355565b6110726136f2565b600081116110c25760405162461bcd60e51b815260206004820152601c60248201527f5a65726f206d617820746f6b656e7320746f206275792076616c7565000000006044820152606401610d51565b60cf8054908290556040805182815260208101849052428183015290517f76f9e5e1f6af6a9f180708b77a5c99210fbf19b91f1f194f3918c262b8edf77c9181900360600190a15050565b60008061111983612bb1565b905061112361263a565b60ce546111309083614533565b61113a9190614552565b9392505050565b60dd546001600160a01b031633148061116457506065546001600160a01b031633145b6111ac5760405162461bcd60e51b815260206004820152601960248201527831b0b63632b9103737ba1030b236b4b71037b91037bbb732b960391b6044820152606401610d51565b80516111fa5760405162461bcd60e51b815260206004820152601c60248201527f63616e6e6f742075706461746520696e76616c69642076616c756573000000006044820152606401610d51565b61120660d96000613f30565b60005b81518110156110335760d9828281518110611226576112266144ec565b602090810291909101810151825460018101845560009384529190922001558061124f81614518565b915050611209565b61125f6136f2565b61126761374c565b565b600061127361379e565b60cd546001600160a01b03166112c25760405162461bcd60e51b815260206004820152601460248201527314d85b19481d1bdad95b881b9bdd08185919195960621b6044820152606401610d51565b33600090815260e2602052604090205460ff16156113225760405162461bcd60e51b815260206004820152601b60248201527f54686973204164647265737320697320426c61636b6c697374656400000000006044820152606401610d51565b60dd54600160a81b900460ff16156113935733600090815260e3602052604090205460ff166113935760405162461bcd60e51b815260206004820152601e60248201527f55736572206e6f742077686974656c697374656420666f7220636c61696d00006044820152606401610d51565b60cc544210156113e55760405162461bcd60e51b815260206004820152601960248201527f436c61696d20686173206e6f74207374617274656420796574000000000000006044820152606401610d51565b33600090815260e1602052604090205460ff16156114375760405162461bcd60e51b815260206004820152600f60248201526e105b1c9958591e4818db185a5b5959608a1b6044820152606401610d51565b33600090815260e160209081526040808320805460ff1916600117905560e09091529020548061149c5760405162461bcd60e51b815260206004820152601060248201526f4e6f7468696e6720746f20636c61696d60801b6044820152606401610d51565b33600081815260e06020908152604080832083905560cd54815163a9059cbb60e01b8152600481019590955260248501869052905192936001600160a01b039091169263a9059cbb9260448084019391929182900301818787803b15801561150357600080fd5b505af1158015611517573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061153b9190614574565b9050806115825760405162461bcd60e51b8152602060048201526015602482015274151bdad95b881d1c985b9cd9995c8819985a5b1959605a1b6044820152606401610d51565b6040805183815242602082015233917f9923b4306c6c030f2bdfbf156517d5983b87e15b96176da122cd4f2effa4ba7b910160405180910390a260019250505090565b60008160ca5442101580156115dc575060cb544211155b6115f85760405162461bcd60e51b8152600401610d5190614591565b600081116116185760405162461bcd60e51b8152600401610d51906145c8565b61162061379e565b6116286137e4565b33600090815260e4602052604090205460ff166116875760405162461bcd60e51b815260206004820181905260248201527f55736572206e6f742077686974656c697374656420666f7220746869732074786044820152606401610d51565b600061169284612bb1565b9050600061169e61263a565b60ce546116ab9084614533565b6116b59190614552565b9050803410156116f65760405162461bcd60e51b815260206004820152600c60248201526b13195cdcc81c185e5b595b9d60a21b6044820152606401610d51565b600061170282346145f5565b90508560c96000828254611716919061460c565b909155505060d1541561173b578560d16000828254611735919061460c565b90915550505b600060d15460c954116117505760d154611754565b60c9545b905060d560000160d0548154811061176e5761176e6144ec565b90600052602060002001548111806117a8575060d560020160d05481548110611799576117996144ec565b90600052602060002001544210155b156118e25760d560020160d054815481106117c5576117c56144ec565b90600052602060002001544210611808578660d560000160d054815481106117ef576117ef6144ec565b9060005260206000200154611804919061460c565b60d1555b60dd54600160a01b900460ff16156118225761182261383e565b600060d5810160d0548154811061183b5761183b6144ec565b9060005260206000200154821161188a57878260d560000160d05481548110611866576118666144ec565b906000526020600020015461187b91906145f5565b61188591906145f5565b61188d565b60005b60d980546001818101835560009283527fcc6782fd46dd71c5f512301ab049782450b4eaf79fdac5443d93d274d391678690910183905560d0805493945090929091906118db90849061460c565b9091555050505b60dd54600160b01b900460ff161561192c576001600160a01b038816600090815260e3602052604090205460ff1661192c5760405162461bcd60e51b8152600401610d5190614624565b60e55460ce546001600160a01b03909116906391c61966908a90611950908b614533565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b15801561199657600080fd5b505af11580156119aa573d6000803e3d6000fd5b505050508660d460008282546119c0919061460c565b909155505060408051848152602081018690524281830152905160009189916001600160a01b038c16917f6f225532a9c33b023b8e48247ad8df9d98f132ae17c769b97ff22d2b278fa73a919081900360600190a48360d26000828254611a27919061460c565b90915550611a369050836138ae565b8115611a4657611a468883613a0b565b6001955050505050611a5760018055565b5092915050565b611a666136f2565b60005b81811015610cf457600060e36000858585818110611a8957611a896144ec565b9050602002016020810190611a9e9190614100565b6001600160a01b031681526020810191909152604001600020805460ff191691151591909117905580611ad081614518565b915050611a69565b611ae06136f2565b8051825114611b255760405162461bcd60e51b81526020600482015260116024820152704d69736d6174636865642061727261797360781b6044820152606401610d51565b611b3160db6000613f30565b611b3d60da6000613f30565b6000805b8351811015611c7b576000838281518110611b5e57611b5e6144ec565b602002602001015111611bbd5760405162461bcd60e51b815260206004820152602160248201527f50657263656e74616765206d7573742062652067726561746572207468616e206044820152600360fc1b6064820152608401610d51565b828181518110611bcf57611bcf6144ec565b602002602001015182611be2919061460c565b915060db848281518110611bf857611bf86144ec565b60209081029190910181015182546001810184556000938452919092200180546001600160a01b0319166001600160a01b03909216919091179055825160da90849083908110611c4a57611c4a6144ec565b6020908102919091018101518254600181018455600093845291909220015580611c7381614518565b915050611b41565b5080606414610cf45760405162461bcd60e51b815260206004820152601f60248201527f546f74616c2070657263656e74616765206d75737420657175616c20313030006044820152606401610d51565b6000611cd782612bb1565b9050611ce864e8d4a5100082614552565b92915050565b60dd546001600160a01b0316331480611d1157506065546001600160a01b031633145b611d595760405162461bcd60e51b815260206004820152601960248201527831b0b63632b9103737ba1030b236b4b71037b91037bbb732b960391b6044820152606401610d51565b60d15460d880546001810182556000919091527f5320ad99a619a90804cd2efe3a5cf0ac1ac5c41ad9ff2c61cf699efdad771096015560dd54600160a01b900460ff1615611da957611da961383e565b60d560000160d05481548110611dc157611dc16144ec565b906000526020600020015460d1541015611e9c5760d054611e2a5760c95460d99060d560000160d05481548110611dfa57611dfa6144ec565b9060005260206000200154611e0f91906145f5565b81546001810183556000928352602090922090910155611e74565b60d15460d99060d560000160d05481548110611e4857611e486144ec565b9060005260206000200154611e5d91906145f5565b815460018101835560009283526020909220909101555b60d560000160d05481548110611e8c57611e8c6144ec565b60009182526020909120015460d1555b60d08054906000611eac83614518565b9190505550565b611ebb6136f2565b60dd80546001600160a01b0319166001600160a01b0392909216919091179055565b611ee56136f2565b6112676000613ae1565b60008160ca544210158015611f06575060cb544211155b611f225760405162461bcd60e51b8152600401610d5190614591565b60008111611f425760405162461bcd60e51b8152600401610d51906145c8565b611f4a61379e565b611f526137e4565b6000611f5d84612bb1565b90506000611f6961263a565b60ce54611f769084614533565b611f809190614552565b905080341015611fc15760405162461bcd60e51b815260206004820152600c60248201526b13195cdcc81c185e5b595b9d60a21b6044820152606401610d51565b6000611fcd82346145f5565b90508560c96000828254611fe1919061460c565b909155505060d15415612006578560d16000828254612000919061460c565b90915550505b600060d15460c9541161201b5760d15461201f565b60c9545b905060d560000160d05481548110612039576120396144ec565b9060005260206000200154811180612073575060d560020160d05481548110612064576120646144ec565b90600052602060002001544210155b156121ad5760d560020160d05481548110612090576120906144ec565b906000526020600020015442106120d3578660d560000160d054815481106120ba576120ba6144ec565b90600052602060002001546120cf919061460c565b60d1555b60dd54600160a01b900460ff16156120ed576120ed61383e565b600060d5810160d05481548110612106576121066144ec565b9060005260206000200154821161215557878260d560000160d05481548110612131576121316144ec565b906000526020600020015461214691906145f5565b61215091906145f5565b612158565b60005b60d980546001818101835560009283527fcc6782fd46dd71c5f512301ab049782450b4eaf79fdac5443d93d274d391678690910183905560d0805493945090929091906121a690849061460c565b9091555050505b60dd54600160b01b900460ff16156121ee5733600090815260e3602052604090205460ff166121ee5760405162461bcd60e51b8152600401610d5190614624565b60e5546001600160a01b03166391c619663360ce5461220d908b614533565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b15801561225357600080fd5b505af1158015612267573d6000803e3d6000fd5b505050508660d4600082825461227d919061460c565b9091555050604080518481526020810186905242818301529051600091899133917f6f225532a9c33b023b8e48247ad8df9d98f132ae17c769b97ff22d2b278fa73a919081900360600190a48360d260008282546122db919061460c565b909155506122ea9050836138ae565b81156122fa576122fa3383613a0b565b600195505050505061230b60018055565b50919050565b60db818154811061232157600080fd5b6000918252602090912001546001600160a01b0316905081565b6123436136f2565b611267613b33565b6123536136f2565b60005b81811015610cf457600060e26000858585818110612376576123766144ec565b905060200201602081019061238b9190614100565b6001600160a01b031681526020810191909152604001600020805460ff1916911515919091179055806123bd81614518565b915050612356565b60006123cf6136f2565b6001600160a01b03831661241a5760405162461bcd60e51b81526020600482015260126024820152715a65726f20746f6b656e206164647265737360701b6044820152606401610d51565b60cc541561245e5760405162461bcd60e51b815260206004820152601160248201527010db185a5b48185b1c9958591e481cd95d607a1b6044820152606401610d51565b60cc85905560cd80546001600160a01b038581166001600160a01b0319928316811790935560dd805460ff60a81b1916600160a81b17905560e5805491861691909216811790915560405163095ea7b360e01b81526004810191909152600019602482015263095ea7b390604401602060405180830381600087803b1580156124e657600080fd5b505af11580156124fa573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061251e9190614574565b506040516323b872dd60e01b81526000906001600160a01b038516906323b872dd9061255290339030908a9060040161465b565b602060405180830381600087803b15801561256c57600080fd5b505af1158015612580573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125a49190614574565b9050806125eb5760405162461bcd60e51b8152602060048201526015602482015274151bdad95b881d1c985b9cd9995c8819985a5b1959605a1b6044820152606401610d51565b604080518681524260208201526001600160a01b038616917fdc9670dbabdd488b372eb16ebe49a39b3124a12cdffdcefbc89834a408bf8ff8910160405180910390a250600195945050505050565b60008060df60009054906101000a90046001600160a01b03166001600160a01b031663feaf968c6040518163ffffffff1660e01b815260040160a06040518083038186803b15801561268b57600080fd5b505afa15801561269f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906126c39190614699565b505050915050806402540be400611ce891906146e9565b6126e26136f2565b60d09190915560d155565b6126f56136f2565b61103360d5826003613f4e565b60008160ca544210158015612719575060cb544211155b6127355760405162461bcd60e51b8152600401610d5190614591565b600081116127555760405162461bcd60e51b8152600401610d51906145c8565b61275d61379e565b600061276884612bb1565b90508360c9600082825461277c919061460c565b909155506000905061279364e8d4a5100083614552565b905060d1546000146127b7578460d160008282546127b1919061460c565b90915550505b600060d15460c954116127cc5760d1546127d0565b60c9545b905060d560000160d054815481106127ea576127ea6144ec565b9060005260206000200154811180612824575060d560020160d05481548110612815576128156144ec565b90600052602060002001544210155b1561295e5760d560020160d05481548110612841576128416144ec565b90600052602060002001544210612884578560d560000160d0548154811061286b5761286b6144ec565b9060005260206000200154612880919061460c565b60d1555b60dd54600160a01b900460ff161561289e5761289e61383e565b600060d5810160d054815481106128b7576128b76144ec565b9060005260206000200154821161290657868260d560000160d054815481106128e2576128e26144ec565b90600052602060002001546128f791906145f5565b61290191906145f5565b612909565b60005b60d980546001818101835560009283527fcc6782fd46dd71c5f512301ab049782450b4eaf79fdac5443d93d274d391678690910183905560d08054939450909290919061295790849061460c565b9091555050505b60dd54600160b01b900460ff161561299f5733600090815260e3602052604090205460ff1661299f5760405162461bcd60e51b8152600401610d5190614624565b60e5546001600160a01b03166391c619663360ce546129be908a614533565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b158015612a0457600080fd5b505af1158015612a18573d6000803e3d6000fd5b505050508560d46000828254612a2e919061460c565b909155505060de546001600160a01b031686336001600160a01b03167f6f225532a9c33b023b8e48247ad8df9d98f132ae17c769b97ff22d2b278fa73a858742604051612a8e939291909283526020830191909152604082015260600190565b60405180910390a48260d26000828254612aa8919061460c565b909155505060de546000906001600160a01b031663dd62ed3e336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015230602482015260440160206040518083038186803b158015612b0757600080fd5b505afa158015612b1b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612b3f919061476e565b905080831115612b9b5760405162461bcd60e51b815260206004820152602160248201527f4d616b65207375726520746f2061646420656e6f75676820616c6c6f77616e636044820152606560f81b6064820152608401610d51565b612ba483613b70565b5060019695505050505050565b600080600060d154600014612bc85760d154612bcc565b60c9545b905060cf54841115612c205760405162461bcd60e51b815260206004820181905260248201527f416d6f756e742065786365656473206d617820746f6b656e7320746f206275796044820152606401610d51565b60d560000160d05481548110612c3857612c386144ec565b90600052602060002001548185612c4f919061460c565b1180612c7d575060d560020160d05481548110612c6e57612c6e6144ec565b90600052602060002001544210155b15612eaf5760d554612c91906001906145f5565b60d05410612cd05760405162461bcd60e51b815260206004820152600c60248201526b57726f6e6720706172616d7360a01b6044820152606401610d51565b60d560020160d05481548110612ce857612ce86144ec565b90600052602060002001544210612dfb5760d05460d590612d0a90600161460c565b81548110612d1a57612d1a6144ec565b90600052602060002001548460d5600060038110612d3a57612d3a6144ec565b0160d05481548110612d4e57612d4e6144ec565b9060005260206000200154612d63919061460c565b1115612dbd5760405162461bcd60e51b815260206004820152602360248201527f43616e74205075726368617365204d6f726520696e20696e646976696475616c604482015262040e8f60eb1b6064820152608401610d51565b60d05460d690612dce90600161460c565b81548110612dde57612dde6144ec565b906000526020600020015484612df49190614533565b9150611a57565b60008160d5820160d05481548110612e1557612e156144ec565b9060005260206000200154612e2a91906145f5565b60d05490915060d690612e3e90600161460c565b81548110612e4e57612e4e6144ec565b90600052602060002001548186612e6591906145f5565b612e6f9190614533565b60d560010160d05481548110612e8757612e876144ec565b906000526020600020015482612e9d9190614533565b612ea7919061460c565b925050611a57565b60d560010160d05481548110612ec757612ec76144ec565b906000526020600020015484612edd9190614533565b949350505050565b612eed6136f2565b6001600160a01b038116612f695760405162461bcd60e51b815260206004820152603760248201527f7374616b696e67206d616e616765722063616e6e6f7420626520696e6174696160448201527f6c697a65642077697468207a65726f20616464726573730000000000000000006064820152608401610d51565b60e580546001600160a01b0319166001600160a01b0383811691821790925560cd5460405163095ea7b360e01b8152600481019290925260001960248301529091169063095ea7b390604401602060405180830381600087803b158015612fcf57600080fd5b505af1158015612fe3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110339190614574565b61300f6136f2565b60dd8054911515600160b01b0260ff60b01b19909216919091179055565b606060d58260038110613042576130426144ec565b0180548060200260200160405190810160405280929190818152602001828054801561308d57602002820191906000526020600020905b815481526020019060010190808311613079575b50505050509050919050565b6130a16136f2565b60005b81811015610cf457600160e260008585858181106130c4576130c46144ec565b90506020020160208101906130d99190614100565b6001600160a01b031681526020810191909152604001600020805460ff19169115159190911790558061310b81614518565b9150506130a4565b60d9818154811061312357600080fd5b600091825260209091200154905081565b606060d980548060200260200160405190810160405280929190818152602001828054801561318257602002820191906000526020600020905b81548152602001906001019080831161316e575b5050505050905090565b6131946136f2565b6001600160a01b0381166131e35760405162461bcd60e51b8152602060048201526016602482015275616464726573732063616e6e6f74206265207a65726f60501b6044820152606401610d51565b60dc80546001600160a01b0319166001600160a01b0392909216919091179055565b600061320f61379e565b60cd546001600160a01b031661325e5760405162461bcd60e51b815260206004820152601460248201527314d85b19481d1bdad95b881b9bdd08185919195960621b6044820152606401610d51565b33600090815260e2602052604090205460ff16156132be5760405162461bcd60e51b815260206004820152601b60248201527f54686973204164647265737320697320426c61636b6c697374656400000000006044820152606401610d51565b60dd54600160b01b900460ff16156132ff5733600090815260e3602052604090205460ff166132ff5760405162461bcd60e51b8152600401610d5190614624565b33600090815260e060205260409020548061334f5760405162461bcd60e51b815260206004820152601060248201526f4e6f7468696e6720746f207374616b6560801b6044820152606401610d51565b60e5546001600160a01b03166391c61966336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260248101849052604401600060405180830381600087803b1580156133a957600080fd5b505af11580156133bd573d6000803e3d6000fd5b5050505060e060006133cc3390565b6001600160a01b031681526020810191909152604001600090812055336001600160a01b03167ffa4ec67f9254455933eb145bae864b26f29dd0a7bbb76eb11e4d6b8b9b184c2b824260405161342c929190918252602082015260400190565b60405180910390a2600191505090565b60d8818154811061312357600080fd5b60d5826003811061345c57600080fd5b01818154811061346b57600080fd5b90600052602060002001600091509150505481565b6134886136f2565b60005b81811015610cf457600160e360008585858181106134ab576134ab6144ec565b90506020020160208101906134c09190614100565b6001600160a01b031681526020810191909152604001600020805460ff1916911515919091179055806134f281614518565b91505061348b565b6135026136f2565b6001600160a01b0381166135675760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610d51565b61357081613ae1565b50565b61357b6136f2565b60005b81811015610cf457600060e4600085858581811061359e5761359e6144ec565b90506020020160208101906135b39190614100565b6001600160a01b031681526020810191909152604001600020805460ff1916911515919091179055806135e581614518565b91505061357e565b60da818154811061312357600080fd5b6136056136f2565b8281146136465760405162461bcd60e51b815260206004820152600f60248201526e098cadccee8d040dad2e6dac2e8c6d608b1b6044820152606401610d51565b60005b838110156136dc57828282818110613663576136636144ec565b9050602002013560e06000878785818110613680576136806144ec565b90506020020160208101906136959190614100565b6001600160a01b03166001600160a01b0316815260200190815260200160002060008282546136c4919061460c565b909155508190506136d481614518565b915050613649565b5050505050565b6001600160a01b03163b151590565b6065546001600160a01b031633146112675760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d51565b613754613ee7565b6097805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b60975460ff16156112675760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610d51565b600260015414156138375760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610d51565b6002600155565b60005b60d05460d75461385191906145f5565b8110156135705760d3546138659082614533565b61386f904261460c565b60d05460d79061388090849061460c565b81548110613890576138906144ec565b600091825260209091200155806138a681614518565b915050613841565b60db5461391c5760dc546001600160a01b03166139065760405162461bcd60e51b815260206004820152601660248201527514185e5b595b9d081dd85b1b195d081b9bdd081cd95d60521b6044820152606401610d51565b60dc54613570906001600160a01b031682613a0b565b6000805b60db548110156139b4576000606460da8381548110613941576139416144ec565b9060005260206000200154856139579190614533565b6139619190614552565b905061399460db8381548110613979576139796144ec565b6000918252602090912001546001600160a01b031682613a0b565b61399e818461460c565b92505080806139ac90614518565b915050613920565b5060006139c182846145f5565b11156110335760db805461103391906139dc906001906145f5565b815481106139ec576139ec6144ec565b6000918252602090912001546001600160a01b0316613a0b83856145f5565b80471015613a495760405162461bcd60e51b815260206004820152600b60248201526a4c6f772062616c616e636560a81b6044820152606401610d51565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114613a96576040519150601f19603f3d011682016040523d82523d6000602084013e613a9b565b606091505b5050905080610cf45760405162461bcd60e51b81526020600482015260126024820152711155120814185e5b595b9d0819985a5b195960721b6044820152606401610d51565b606580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b613b3b61379e565b6097805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586137813390565b60db54613c8f5760dc546001600160a01b0316613bc85760405162461bcd60e51b815260206004820152601660248201527514185e5b595b9d081dd85b1b195d081b9bdd081cd95d60521b6044820152606401610d51565b60de546000906001600160a01b03163360dc54604051613bf792916001600160a01b031690869060240161465b565b60408051601f198184030181529181526020820180516001600160e01b03166323b872dd60e01b17905251613c2c9190614787565b6000604051808303816000865af19150503d8060008114613c69576040519150601f19603f3d011682016040523d82523d6000602084013e613c6e565b606091505b50509050806110335760405162461bcd60e51b8152600401610d51906147c2565b6000805b60db54811015613ddb576000606460da8381548110613cb457613cb46144ec565b906000526020600020015485613cca9190614533565b613cd49190614552565b60de549091506000906001600160a01b03163360db8581548110613cfa57613cfa6144ec565b600091825260209091200154604051613d2292916001600160a01b031690869060240161465b565b60408051601f198184030181529181526020820180516001600160e01b03166323b872dd60e01b17905251613d579190614787565b6000604051808303816000865af19150503d8060008114613d94576040519150601f19603f3d011682016040523d82523d6000602084013e613d99565b606091505b5050905080613dba5760405162461bcd60e51b8152600401610d51906147c2565b613dc4828561460c565b935050508080613dd390614518565b915050613c93565b506000613de882846145f5565b11156110335760de546000906001600160a01b03163360db8054613e0e906001906145f5565b81548110613e1e57613e1e6144ec565b6000918252602090912001546001600160a01b0316613e3d85876145f5565b604051602401613e4f9392919061465b565b60408051601f198184030181529181526020820180516001600160e01b03166323b872dd60e01b17905251613e849190614787565b6000604051808303816000865af19150503d8060008114613ec1576040519150601f19603f3d011682016040523d82523d6000602084013e613ec6565b606091505b5050905080610cf45760405162461bcd60e51b8152600401610d51906147c2565b60975460ff166112675760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610d51565b50805460008255906000526020600020908101906135709190613f9e565b8260038101928215613f8e579160200282015b82811115613f8e5782518051613f7e918491602090910190613fb3565b5091602001919060010190613f61565b50613f9a929150613ffa565b5090565b5b80821115613f9a5760008155600101613f9f565b828054828255906000526020600020908101928215613fee579160200282015b82811115613fee578251825591602001919060010190613fd3565b50613f9a929150613f9e565b80821115613f9a57600061400e8282613f30565b50600101613ffa565b60008083601f84011261402957600080fd5b50813567ffffffffffffffff81111561404157600080fd5b6020830191508360208260051b850101111561405c57600080fd5b9250929050565b6000806020838503121561407657600080fd5b823567ffffffffffffffff81111561408d57600080fd5b61409985828601614017565b90969095509350505050565b6000602082840312156140b757600080fd5b5035919050565b801515811461357057600080fd5b6000602082840312156140de57600080fd5b813561113a816140be565b80356001600160a01b0381168114610e3057600080fd5b60006020828403121561411257600080fd5b61113a826140e9565b6000806040838503121561412e57600080fd5b50508035926020909101359150565b634e487b7160e01b600052604160045260246000fd5b6040516060810167ffffffffffffffff811182821017156141765761417661413d565b60405290565b604051601f8201601f1916810167ffffffffffffffff811182821017156141a5576141a561413d565b604052919050565b600067ffffffffffffffff8211156141c7576141c761413d565b5060051b60200190565b600082601f8301126141e257600080fd5b813560206141f76141f2836141ad565b61417c565b82815260059290921b8401810191818101908684111561421657600080fd5b8286015b84811015614231578035835291830191830161421a565b509695505050505050565b60006020828403121561424e57600080fd5b813567ffffffffffffffff81111561426557600080fd5b612edd848285016141d1565b6000806040838503121561428457600080fd5b61428d836140e9565b946020939093013593505050565b600080604083850312156142ae57600080fd5b823567ffffffffffffffff808211156142c657600080fd5b818501915085601f8301126142da57600080fd5b813560206142ea6141f2836141ad565b82815260059290921b8401810191818101908984111561430957600080fd5b948201945b8386101561432e5761431f866140e9565b8252948201949082019061430e565b9650508601359250508082111561434457600080fd5b50614351858286016141d1565b9150509250929050565b6000806000806080858703121561437157600080fd5b8435935060208501359250614388604086016140e9565b9150614396606086016140e9565b905092959194509250565b600060208083850312156143b457600080fd5b823567ffffffffffffffff808211156143cc57600080fd5b818501915085601f8301126143e057600080fd5b6143e8614153565b8060608401888111156143fa57600080fd5b845b8181101561442e578035858111156144145760008081fd5b6144208b8289016141d1565b8552509286019286016143fc565b509098975050505050505050565b6020808252825182820181905260009190848201906040850190845b8181101561447457835183529284019291840191600101614458565b50909695505050505050565b6000806000806040858703121561449657600080fd5b843567ffffffffffffffff808211156144ae57600080fd5b6144ba88838901614017565b909650945060208701359150808211156144d357600080fd5b506144e087828801614017565b95989497509550505050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600060001982141561452c5761452c614502565b5060010190565b600081600019048311821515161561454d5761454d614502565b500290565b60008261456f57634e487b7160e01b600052601260045260246000fd5b500490565b60006020828403121561458657600080fd5b815161113a816140be565b60208082526017908201527f496e76616c69642074696d6520666f7220627579696e67000000000000000000604082015260600190565b602080825260139082015272125b9d985b1a59081cd85b1948185b5bdd5b9d606a1b604082015260600190565b60008282101561460757614607614502565b500390565b6000821982111561461f5761461f614502565b500190565b6020808252601e908201527f55736572206e6f742077686974656c697374656420666f72207374616b650000604082015260600190565b6001600160a01b039384168152919092166020820152604081019190915260600190565b805169ffffffffffffffffffff81168114610e3057600080fd5b600080600080600060a086880312156146b157600080fd5b6146ba8661467f565b94506020860151935060408601519250606086015191506146dd6080870161467f565b90509295509295909350565b60006001600160ff1b038184138284138082168684048611161561470f5761470f614502565b600160ff1b600087128281168783058912161561472e5761472e614502565b6000871292508782058712848416161561474a5761474a614502565b8785058712818416161561476057614760614502565b505050929093029392505050565b60006020828403121561478057600080fd5b5051919050565b6000825160005b818110156147a8576020818601810151858301520161478e565b818111156147b7576000828501525b509190910192915050565b602080825260149082015273151bdad95b881c185e5b595b9d0819985a5b195960621b60408201526060019056fea2646970667358221220b639c40f25ae1da7d27ea3d269cb45872d369444b8d7f7ce255f7a32aa8e4bd064736f6c63430008090033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 26 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.