Feature Tip: Add private address tag to any address under My Name Tag !
More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 4,395 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Claim | 21415890 | 10 days ago | IN | 0 ETH | 0.00170285 | ||||
Claim | 21382687 | 15 days ago | IN | 0 ETH | 0.00101172 | ||||
Claim | 21346741 | 20 days ago | IN | 0 ETH | 0.00117558 | ||||
Claim | 21343424 | 20 days ago | IN | 0 ETH | 0.00096815 | ||||
Claim | 21335628 | 21 days ago | IN | 0 ETH | 0.00135717 | ||||
Claim | 21317759 | 24 days ago | IN | 0 ETH | 0.00207246 | ||||
Claim | 21273862 | 30 days ago | IN | 0 ETH | 0.00085415 | ||||
Claim | 21157478 | 46 days ago | IN | 0 ETH | 0.00111232 | ||||
Claim | 21143949 | 48 days ago | IN | 0 ETH | 0.00161394 | ||||
Claim | 21115856 | 52 days ago | IN | 0 ETH | 0.00057746 | ||||
Claim | 21094245 | 55 days ago | IN | 0 ETH | 0.00094742 | ||||
Claim | 21009438 | 67 days ago | IN | 0 ETH | 0.00047905 | ||||
Claim | 20822953 | 93 days ago | IN | 0 ETH | 0.00135494 | ||||
Claim | 20642634 | 118 days ago | IN | 0 ETH | 0.00022224 | ||||
Claim | 20637994 | 119 days ago | IN | 0 ETH | 0.00008357 | ||||
Claim | 20621795 | 121 days ago | IN | 0 ETH | 0.00010012 | ||||
Claim | 20607037 | 123 days ago | IN | 0 ETH | 0.00009397 | ||||
Claim | 20604137 | 123 days ago | IN | 0 ETH | 0.00005995 | ||||
Claim | 20593659 | 125 days ago | IN | 0 ETH | 0.00018586 | ||||
Claim | 20541546 | 132 days ago | IN | 0 ETH | 0.00026274 | ||||
Claim | 20541356 | 132 days ago | IN | 0 ETH | 0.00021682 | ||||
Claim | 20540275 | 132 days ago | IN | 0 ETH | 0.00009463 | ||||
Claim | 20483395 | 140 days ago | IN | 0 ETH | 0.00048502 | ||||
Claim | 20412951 | 150 days ago | IN | 0 ETH | 0.00035249 | ||||
Claim | 20399697 | 152 days ago | IN | 0 ETH | 0.00016938 |
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block |
From
|
To
|
|||
---|---|---|---|---|---|---|
18900671 | 362 days ago | 0.00000815 ETH | ||||
18900267 | 362 days ago | 0.01222793 ETH | ||||
18900219 | 362 days ago | 0.02032889 ETH | ||||
18899750 | 362 days ago | 0.000063 ETH | ||||
18899750 | 362 days ago | 0.00973163 ETH | ||||
18898752 | 362 days ago | 0.00981547 ETH | ||||
18898479 | 362 days ago | 0.02453867 ETH | ||||
18897815 | 362 days ago | 0.00329095 ETH | ||||
18897111 | 362 days ago | 0.00817017 ETH | ||||
18896836 | 362 days ago | 0.00000813 ETH | ||||
18896686 | 362 days ago | 0.00162526 ETH | ||||
18896677 | 362 days ago | 0.00000812 ETH | ||||
18896604 | 362 days ago | 0.03250525 ETH | ||||
18896560 | 362 days ago | 0.0000108 ETH | ||||
18896560 | 362 days ago | 0.00406315 ETH | ||||
18896542 | 362 days ago | 0.0000108 ETH | ||||
18896542 | 362 days ago | 0.00406315 ETH | ||||
18896524 | 362 days ago | 0.00000432 ETH | ||||
18896524 | 362 days ago | 0.00162526 ETH | ||||
18896296 | 362 days ago | 0.00244437 ETH | ||||
18894550 | 363 days ago | 2.25190978 ETH | ||||
18894022 | 363 days ago | 0.05729003 ETH | ||||
18893904 | 363 days ago | 0.00813958 ETH | ||||
18893900 | 363 days ago | 0.20348962 ETH | ||||
18893839 | 363 days ago | 0.17093128 ETH |
Loading...
Loading
Contract Name:
ASIPresale
Compiler Version
v0.8.17+commit.8df45f5f
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.17; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/security/Pausable.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import "./interfaces/IChainlinkPriceFeed.sol"; import "./interfaces/IPresale.sol"; contract ASIPresale is IPresale, Pausable, Ownable, ReentrancyGuard { using SafeERC20 for IERC20; /** * @dev Address of token contract */ address public immutable saleToken; /** * @dev Total amount of purchased tokens */ uint256 public totalTokensSold; /** * @dev Timestamp when purchased tokens claim starts */ uint256 public claimStartTime; /** * @dev Timestamp when presale starts */ uint256 public saleStartTime; /** * @dev Timestamp when presale ends */ uint256 public saleEndTime; /** * @dev Last stage index */ uint8 constant MAX_STAGE_INDEX = 3; /** * @dev Amount of totalTokensSold limits for each stage */ uint256[4] public limitPerStage; /** * @dev Sale prices for each stage */ uint256[4] public pricePerStage; /** * @dev Index of current stage */ uint8 public currentStage; /** * @dev Address of USDT token */ IERC20 public USDTToken; /** * @dev Address of chainlink ETH/USD price feed */ IChainlinkPriceFeed public oracle; /** * @dev Stores the number of tokens purchased by each user that have not yet been claimed */ mapping(address => uint256) public purchasedTokens; /** * @dev Indicates whether the user is blacklisted or not */ mapping(address => bool) public blacklist; /** * @dev Checks that it is now possible to purchase passed amount tokens * @param amount - the number of tokens to verify the possibility of purchase */ modifier verifyPurchase(uint256 amount) { require( block.timestamp >= saleStartTime && block.timestamp <= saleEndTime, "Invalid time for buying" ); require(amount > 0, "Incorrect token amount"); require(amount + totalTokensSold <= limitPerStage[MAX_STAGE_INDEX], "Exceeded presale limit"); _; } /** * @dev Verifies that the sender isn't blacklisted */ modifier notBlacklisted() { require(!blacklist[_msgSender()], "You are in blacklist"); _; } /** * @dev Creates the contract * @param _saleToken - Address of presailing token * @param _oracle - Address of Chainlink ETH/USD price feed * @param _usdt - Address of USDT token * @param _limitPerStage - Array of prices for each presale stage * @param _pricePerStage - Array of totalTokenSold limit for each stage * @param _saleStartTime - Sale start time * @param _saleEndTime - Sale end time */ constructor( address _saleToken, address _oracle, address _usdt, uint256 _saleStartTime, uint256 _saleEndTime, uint256[4] memory _limitPerStage, uint256[4] memory _pricePerStage ) { require(_oracle != address(0), "Zero aggregator address"); require(_usdt != address(0), "Zero USDT address"); require(_saleToken != address(0), "Zero sale token address"); saleToken = _saleToken; oracle = IChainlinkPriceFeed(_oracle); USDTToken = IERC20(_usdt); limitPerStage = _limitPerStage; pricePerStage = _pricePerStage; saleStartTime = _saleStartTime; saleEndTime = _saleEndTime; emit SaleTimeUpdated( _saleStartTime, _saleEndTime, block.timestamp ); } /** * @dev To pause the presale */ function pause() external onlyOwner { _pause(); } /** * @dev To unpause the presale */ function unpause() external onlyOwner { _unpause(); } /** * @dev To add users to blacklist * @param _users - Array of addresses to add in blacklist */ function addToBlacklist(address[] calldata _users) external onlyOwner { uint256 usersAmount = _users.length; uint256 i = 0; while(i<usersAmount) blacklist[_users[i++]] = true; } /** * @dev To remove users from blacklist * @param _users - Array of addresses to remove from blacklist */ function removeFromBlacklist(address[] calldata _users) external onlyOwner { uint256 usersAmount = _users.length; uint256 i = 0; while(i<usersAmount) blacklist[_users[i++]] = false; } /** * @dev Returns total price of sold tokens * @param _tokenAddress - Address of token to resque * @param _amount - Amount of tokens to resque */ function resqueERC20(address _tokenAddress, uint256 _amount) external onlyOwner { IERC20(_tokenAddress).safeTransfer(_msgSender(), _amount); } /** * @dev To update the sale start and end times * @param _saleStartTime - New sales start time * @param _saleEndTime - New sales end time */ function configureSaleTimeframe(uint256 _saleStartTime, uint256 _saleEndTime) external onlyOwner { if(saleStartTime != _saleStartTime) saleStartTime = _saleStartTime; if(saleEndTime != _saleEndTime) saleEndTime = _saleEndTime; emit SaleTimeUpdated( _saleStartTime, _saleEndTime, block.timestamp ); } /** * @dev To set the claim start time * @param _claimStartTime - claim start time * @notice Function also makes sure that presale have enough sale token balance */ function configureClaim(uint256 _claimStartTime) external onlyOwner { require(IERC20(saleToken).balanceOf(address(this)) >= totalTokensSold * 1e18, "Not enough balance"); claimStartTime = _claimStartTime; emit ClaimStartTimeUpdated(_claimStartTime, block.timestamp); } /** * @dev To buy into a presale using ETH * @param _amount - Amount of tokens to buy */ function buyWithEth(uint256 _amount) external payable notBlacklisted verifyPurchase(_amount) whenNotPaused nonReentrant { uint256 priceInETH = getPriceInETH(_amount); uint256 priceInUsdt = getPriceInUSDT(_amount); require(msg.value >= priceInETH, "Not enough ETH"); _sendValue(payable(owner()), priceInETH); uint256 excess = msg.value - priceInETH; if (excess > 0) _sendValue(payable(_msgSender()), excess); totalTokensSold += _amount; purchasedTokens[_msgSender()] += _amount * 1e18; uint8 stageAfterPurchase = _getStageByTotalSoldAmount(); if (stageAfterPurchase>currentStage) currentStage = stageAfterPurchase; emit TokensBought( _msgSender(), "ETH", _amount, priceInUsdt, priceInETH, block.timestamp ); } /** * @dev To buy into a presale using USDT * @param _amount - Amount of tokens to buy */ function buyWithUSDT(uint256 _amount) external notBlacklisted verifyPurchase(_amount) whenNotPaused nonReentrant { uint256 priceInUsdt = getPriceInUSDT(_amount); uint256 priceInETH = getPriceInETH(_amount); uint256 allowance = USDTToken.allowance( _msgSender(), address(this) ); require(priceInUsdt <= allowance, "Make sure to add enough allowance"); USDTToken.safeTransferFrom( _msgSender(), owner(), priceInUsdt ); totalTokensSold += _amount; purchasedTokens[_msgSender()] += _amount * 1e18; uint8 stageAfterPurchase = _getStageByTotalSoldAmount(); if (stageAfterPurchase>currentStage) currentStage = stageAfterPurchase; emit TokensBought( _msgSender(), "USDT", _amount, priceInUsdt, priceInETH, block.timestamp ); } /** * @dev To claim tokens after claiming starts */ function claim() external whenNotPaused { require(block.timestamp >= claimStartTime && claimStartTime > 0, "Claim has not started yet"); uint256 amount = purchasedTokens[_msgSender()]; require(amount > 0, "Nothing to claim"); purchasedTokens[_msgSender()] -= amount; IERC20(saleToken).safeTransfer(_msgSender(), amount); emit TokensClaimed(_msgSender(), amount, block.timestamp); } /** * @dev Returns price for current stage */ function getCurrentPrice() external view returns (uint256) { return pricePerStage[currentStage]; } /** * @dev Returns amount of tokens sold on current stage */ function getSoldOnCurrentStage() external view returns (uint256 soldOnCurrentStage) { soldOnCurrentStage = totalTokensSold - ((currentStage == 0)? 0 : limitPerStage[currentStage]); } /** * @dev Returns presale last stage token amount limit */ function getTotalPresaleAmount() external view returns (uint256) { return limitPerStage[MAX_STAGE_INDEX]; } /** * @dev Returns total price of sold tokens */ function totalSoldPrice() external view returns (uint256) { return _calculatePriceInUSDTForConditions(totalTokensSold, 0, 0); } /** * @dev Helper function to calculate ETH price for given amount * @param _amount - Amount of tokens to buy * @notice Will return value in 1e18 format */ function getPriceInETH(uint256 _amount) public view returns (uint256 ethAmount) { (, int256 price, , ,) = oracle.latestRoundData();//Chainlink oracle is trusted source of truth, so price will always be positive ethAmount = getPriceInUSDT(_amount) * 1e20 / uint256(price);//We need 1e20 to get resulting value in wei(1e18) } /** * @dev Calculate price in USDT * @param _amount - Amount of tokens to calculate price * @notice Will return value in 1e6 format */ function getPriceInUSDT(uint256 _amount) public view returns (uint256) { require(_amount + totalTokensSold <= limitPerStage[MAX_STAGE_INDEX], "Insufficient funds"); return _calculatePriceInUSDTForConditions(_amount, currentStage, totalTokensSold); } /** * @dev For sending ETH from contract * @param _recipient - Recipient address * @param _ethAmount - Amount of ETH to send in wei */ function _sendValue(address payable _recipient, uint256 _ethAmount) internal { require(address(this).balance >= _ethAmount, "Low balance"); (bool success,) = _recipient.call{value : _ethAmount}(""); require(success, "ETH Payment failed"); } /** * @dev Recursively calculate USDT cost for specified conditions * @param _amount - Amount of tokens to calculate price * @param _currentStage - Starting stage to calculate price * @param _totalTokensSold - Starting total token sold amount to calculate price */ function _calculatePriceInUSDTForConditions(uint256 _amount, uint256 _currentStage, uint256 _totalTokensSold) internal view returns (uint256 cost){ if (_totalTokensSold + _amount <= limitPerStage[_currentStage]) { cost = _amount * pricePerStage[_currentStage]; } else { uint256 currentStageAmount = limitPerStage[_currentStage] - _totalTokensSold; uint256 nextStageAmount = _amount - currentStageAmount; cost = currentStageAmount * pricePerStage[_currentStage] + _calculatePriceInUSDTForConditions(nextStageAmount, _currentStage + 1, limitPerStage[_currentStage]); } return cost; } /** * @dev Calculate current stage amount from total tokens sold amount */ function _getStageByTotalSoldAmount() internal view returns (uint8) { uint8 stageIndex = MAX_STAGE_INDEX; while (stageIndex > 0) { if (limitPerStage[stageIndex - 1] < totalTokensSold) break; stageIndex -= 1; } return stageIndex; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.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 Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _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); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (security/Pausable.sol) pragma solidity ^0.8.0; import "../utils/Context.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 Pausable is Context { /** * @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. */ constructor() { _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()); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @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 ReentrancyGuard { // 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; constructor() { _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; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/draft-IERC20Permit.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612]. * * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't * need to send a transaction, and thus is not required to hold Ether at all. */ interface IERC20Permit { /** * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens, * given ``owner``'s signed approval. * * IMPORTANT: The same issues {IERC20-approve} has related to transaction * ordering also apply here. * * Emits an {Approval} event. * * Requirements: * * - `spender` cannot be the zero address. * - `deadline` must be a timestamp in the future. * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner` * over the EIP712-formatted function arguments. * - the signature must use ``owner``'s current nonce (see {nonces}). * * For more information on the signature format, see the * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP * section]. */ function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) external; /** * @dev Returns the current nonce for `owner`. This value must be * included whenever a signature is generated for {permit}. * * Every successful call to {permit} increases ``owner``'s nonce by one. This * prevents a signature from being used multiple times. */ function nonces(address owner) external view returns (uint256); /** * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}. */ // solhint-disable-next-line func-name-mixedcase function DOMAIN_SEPARATOR() external view returns (bytes32); }
// 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 IERC20 { /** * @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) (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; import "../extensions/draft-IERC20Permit.sol"; import "../../../utils/Address.sol"; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using Address for address; function safeTransfer( IERC20 token, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom( IERC20 token, address from, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove( IERC20 token, address spender, uint256 value ) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' require( (value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance( IERC20 token, address spender, uint256 value ) internal { uint256 newAllowance = token.allowance(address(this), spender) + value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance( IERC20 token, address spender, uint256 value ) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require(oldAllowance >= value, "SafeERC20: decreased allowance below zero"); uint256 newAllowance = oldAllowance - value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } } function safePermit( IERC20Permit token, address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) internal { uint256 nonceBefore = token.nonces(owner); token.permit(owner, spender, value, deadline, v, r, s); uint256 nonceAfter = token.nonces(owner); require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed"); } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address-functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } }
// 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 Address { /** * @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 Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract. * * _Available since v4.8._ */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata, string memory errorMessage ) internal view returns (bytes memory) { if (success) { if (returndata.length == 0) { // only check isContract if the call was successful and the return data is empty // otherwise we already know that it was a contract require(isContract(target), "Address: call to non-contract"); } return returndata; } else { _revert(returndata, errorMessage); } } /** * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason or using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { _revert(returndata, errorMessage); } } function _revert(bytes memory returndata, string memory errorMessage) private pure { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @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 Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.0; interface IChainlinkPriceFeed { function latestRoundData() external view returns ( uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound ); }
// SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.17; interface IPresale { event SaleTimeUpdated( uint256 saleStartTime, uint256 saleEndTime, uint256 timestamp ); event TokensClaimed( address indexed user, uint256 amount, uint256 timestamp ); event ClaimStartTimeUpdated( uint256 newValue, uint256 timestamp ); event TokensBought( address indexed user, bytes32 indexed currency, uint256 amount, uint256 totalCostInUsd, uint256 totalCostInCurrency, uint256 timestamp ); }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_saleToken","type":"address"},{"internalType":"address","name":"_oracle","type":"address"},{"internalType":"address","name":"_usdt","type":"address"},{"internalType":"uint256","name":"_saleStartTime","type":"uint256"},{"internalType":"uint256","name":"_saleEndTime","type":"uint256"},{"internalType":"uint256[4]","name":"_limitPerStage","type":"uint256[4]"},{"internalType":"uint256[4]","name":"_pricePerStage","type":"uint256[4]"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newValue","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"ClaimStartTimeUpdated","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":"saleStartTime","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"saleEndTime","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"SaleTimeUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"bytes32","name":"currency","type":"bytes32"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"totalCostInUsd","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"totalCostInCurrency","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"TokensBought","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"TokensClaimed","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"USDTToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_users","type":"address[]"}],"name":"addToBlacklist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"blacklist","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"buyWithEth","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"buyWithUSDT","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claimStartTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_claimStartTime","type":"uint256"}],"name":"configureClaim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_saleStartTime","type":"uint256"},{"internalType":"uint256","name":"_saleEndTime","type":"uint256"}],"name":"configureSaleTimeframe","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"currentStage","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getCurrentPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"getPriceInETH","outputs":[{"internalType":"uint256","name":"ethAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"getPriceInUSDT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getSoldOnCurrentStage","outputs":[{"internalType":"uint256","name":"soldOnCurrentStage","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTotalPresaleAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"limitPerStage","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"oracle","outputs":[{"internalType":"contract IChainlinkPriceFeed","name":"","type":"address"}],"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":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"pricePerStage","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"purchasedTokens","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_users","type":"address[]"}],"name":"removeFromBlacklist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_tokenAddress","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"resqueERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"saleEndTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"saleStartTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"saleToken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSoldPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalTokensSold","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"}]
Contract Creation Code
60a06040523480156200001157600080fd5b5060405162003d1238038062003d12833981810160405281019062000037919062000647565b60008060006101000a81548160ff02191690831515021790555062000071620000656200030460201b60201c565b6200030c60201b60201c565b60018081905550600073ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff1603620000ea576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620000e1906200075d565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16036200015c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200015390620007cf565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff1603620001ce576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620001c59062000841565b60405180910390fd5b8673ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff168152505085600f60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555084600e60016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555081600690600462000297929190620003d1565b5080600a906004620002ab929190620003d1565b5083600481905550826005819055507f36b2d544ce4c044c203ffa88e326ae03d0394d353a1755ebb4f7929a817ba76e848442604051620002ef9392919062000874565b60405180910390a150505050505050620008b1565b600033905090565b60008060019054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600060016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b826004810192821562000403579160200282015b8281111562000402578251825591602001919060010190620003e5565b5b50905062000412919062000416565b5090565b5b808211156200043157600081600090555060010162000417565b5090565b6000604051905090565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000620004718262000444565b9050919050565b620004838162000464565b81146200048f57600080fd5b50565b600081519050620004a38162000478565b92915050565b6000819050919050565b620004be81620004a9565b8114620004ca57600080fd5b50565b600081519050620004de81620004b3565b92915050565b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6200053482620004e9565b810181811067ffffffffffffffff82111715620005565762000555620004fa565b5b80604052505050565b60006200056b62000435565b905062000579828262000529565b919050565b600067ffffffffffffffff8211156200059c576200059b620004fa565b5b602082029050919050565b600080fd5b6000620005c3620005bd846200057e565b6200055f565b90508060208402830185811115620005e057620005df620005a7565b5b835b818110156200060d5780620005f88882620004cd565b845260208401935050602081019050620005e2565b5050509392505050565b600082601f8301126200062f576200062e620004e4565b5b60046200063e848285620005ac565b91505092915050565b60008060008060008060006101a0888a0312156200066a57620006696200043f565b5b60006200067a8a828b0162000492565b97505060206200068d8a828b0162000492565b9650506040620006a08a828b0162000492565b9550506060620006b38a828b01620004cd565b9450506080620006c68a828b01620004cd565b93505060a0620006d98a828b0162000617565b925050610120620006ed8a828b0162000617565b91505092959891949750929550565b600082825260208201905092915050565b7f5a65726f2061676772656761746f722061646472657373000000000000000000600082015250565b600062000745601783620006fc565b915062000752826200070d565b602082019050919050565b60006020820190508181036000830152620007788162000736565b9050919050565b7f5a65726f20555344542061646472657373000000000000000000000000000000600082015250565b6000620007b7601183620006fc565b9150620007c4826200077f565b602082019050919050565b60006020820190508181036000830152620007ea81620007a8565b9050919050565b7f5a65726f2073616c6520746f6b656e2061646472657373000000000000000000600082015250565b600062000829601783620006fc565b91506200083682620007f1565b602082019050919050565b600060208201905081810360008301526200085c816200081a565b9050919050565b6200086e81620004a9565b82525050565b60006060820190506200088b600083018662000863565b6200089a602083018562000863565b620008a9604083018462000863565b949350505050565b608051613437620008db60003960008181610a4901528181611600015261179c01526134376000f3fe6080604052600436106101e35760003560e01c80638456cb5911610102578063ca712e9b11610095578063eb91d37e11610064578063eb91d37e1461068b578063ed338ff1146106b6578063f2fde38b146106e1578063f9f92be41461070a576101e3565b8063ca712e9b146105e3578063cd9f18821461060c578063d68e2edf14610637578063e985e36714610660576101e3565b8063935eb35f116100d1578063935eb35f1461053b578063a6a11bb114610564578063a7c601601461058f578063ac4b457a146105b8576101e3565b80638456cb591461049357806389daf799146104aa5780638da5cb5b146104d3578063907f2383146104fe576101e3565b80634e71d92d1161017a57806363b201171161014957806363b201171461040a578063715018a6146104355780637649b9571461044c5780637dc0d1d014610468576101e3565b80634e71d92d146103745780635bf5d54c1461038b5780635c71b9aa146103b65780635c975abb146103df576101e3565b80631ce0fa43116101b65780631ce0fa43146102b85780633f4ba83a146102e357806344122244146102fa5780634bae6f3f14610337576101e3565b80630441b220146101e85780630aca575a146102255780631076a70c146102505780631cbaee2d1461028d575b600080fd5b3480156101f457600080fd5b5061020f600480360381019061020a91906121ac565b610747565b60405161021c91906121e8565b60405180910390f35b34801561023157600080fd5b5061023a610811565b60405161024791906121e8565b60405180910390f35b34801561025c57600080fd5b50610277600480360381019061027291906121ac565b610832565b60405161028491906121e8565b60405180910390f35b34801561029957600080fd5b506102a261084d565b6040516102af91906121e8565b60405180910390f35b3480156102c457600080fd5b506102cd610853565b6040516102da91906121e8565b60405180910390f35b3480156102ef57600080fd5b506102f86108b0565b005b34801561030657600080fd5b50610321600480360381019061031c91906121ac565b6108c2565b60405161032e91906121e8565b60405180910390f35b34801561034357600080fd5b5061035e60048036038101906103599190612261565b6108dd565b60405161036b91906121e8565b60405180910390f35b34801561038057600080fd5b506103896108f5565b005b34801561039757600080fd5b506103a0610ae7565b6040516103ad91906122aa565b60405180910390f35b3480156103c257600080fd5b506103dd60048036038101906103d891906122c5565b610afa565b005b3480156103eb57600080fd5b506103f4610b38565b6040516104019190612320565b60405180910390f35b34801561041657600080fd5b5061041f610b4e565b60405161042c91906121e8565b60405180910390f35b34801561044157600080fd5b5061044a610b54565b005b610466600480360381019061046191906121ac565b610b68565b005b34801561047457600080fd5b5061047d610eff565b60405161048a919061239a565b60405180910390f35b34801561049f57600080fd5b506104a8610f25565b005b3480156104b657600080fd5b506104d160048036038101906104cc919061241a565b610f37565b005b3480156104df57600080fd5b506104e8610fe8565b6040516104f59190612476565b60405180910390f35b34801561050a57600080fd5b50610525600480360381019061052091906121ac565b611011565b60405161053291906121e8565b60405180910390f35b34801561054757600080fd5b50610562600480360381019061055d919061241a565b6110a2565b005b34801561057057600080fd5b50610579611153565b60405161058691906121e8565b60405180910390f35b34801561059b57600080fd5b506105b660048036038101906105b191906121ac565b611159565b005b3480156105c457600080fd5b506105cd6115ba565b6040516105da91906124b2565b60405180910390f35b3480156105ef57600080fd5b5061060a600480360381019061060591906121ac565b6115e0565b005b34801561061857600080fd5b5061062161171c565b60405161062e91906121e8565b60405180910390f35b34801561064357600080fd5b5061065e600480360381019061065991906124cd565b611731565b005b34801561066c57600080fd5b5061067561179a565b6040516106829190612476565b60405180910390f35b34801561069757600080fd5b506106a06117be565b6040516106ad91906121e8565b60405180910390f35b3480156106c257600080fd5b506106cb6117ed565b6040516106d891906121e8565b60405180910390f35b3480156106ed57600080fd5b5061070860048036038101906107039190612261565b6117f3565b005b34801561071657600080fd5b50610731600480360381019061072c9190612261565b611876565b60405161073e9190612320565b60405180910390f35b600080600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663feaf968c6040518163ffffffff1660e01b815260040160a060405180830381865afa1580156107b7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107db919061259a565b5050509150508068056bc75e2d631000006107f585611011565b6107ff9190612644565b61080991906126b5565b915050919050565b60006006600360ff166004811061082b5761082a6126e6565b5b0154905090565b6006816004811061084257600080fd5b016000915090505481565b60045481565b600080600e60009054906101000a900460ff1660ff161461089b576006600e60009054906101000a900460ff1660ff1660048110610894576108936126e6565b5b015461089e565b60005b6002546108ab9190612715565b905090565b6108b8611896565b6108c0611914565b565b600a81600481106108d257600080fd5b016000915090505481565b60106020528060005260406000206000915090505481565b6108fd611976565b600354421015801561091157506000600354115b610950576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610947906127a6565b60405180910390fd5b60006010600061095e6119c0565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050600081116109de576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109d590612812565b60405180910390fd5b80601060006109eb6119c0565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254610a349190612715565b92505081905550610a8d610a466119c0565b827f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166119c89092919063ffffffff16565b610a956119c0565b73ffffffffffffffffffffffffffffffffffffffff167f9923b4306c6c030f2bdfbf156517d5983b87e15b96176da122cd4f2effa4ba7b8242604051610adc929190612832565b60405180910390a250565b600e60009054906101000a900460ff1681565b610b02611896565b610b34610b0d6119c0565b828473ffffffffffffffffffffffffffffffffffffffff166119c89092919063ffffffff16565b5050565b60008060009054906101000a900460ff16905090565b60025481565b610b5c611896565b610b666000611a4e565b565b60116000610b746119c0565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1615610bfc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bf3906128a7565b60405180910390fd5b806004544210158015610c1157506005544211155b610c50576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c4790612913565b60405180910390fd5b60008111610c93576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c8a9061297f565b60405180910390fd5b6006600360ff1660048110610cab57610caa6126e6565b5b015460025482610cbb919061299f565b1115610cfc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cf390612a1f565b60405180910390fd5b610d04611976565b610d0c611b13565b6000610d1783610747565b90506000610d2484611011565b905081341015610d69576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d6090612a8b565b60405180910390fd5b610d7a610d74610fe8565b83611b62565b60008234610d889190612715565b90506000811115610da557610da4610d9e6119c0565b82611b62565b5b8460026000828254610db7919061299f565b92505081905550670de0b6b3a764000085610dd29190612644565b60106000610dde6119c0565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254610e27919061299f565b925050819055506000610e38611c56565b9050600e60009054906101000a900460ff1660ff168160ff161115610e735780600e60006101000a81548160ff021916908360ff1602179055505b7f4554480000000000000000000000000000000000000000000000000000000000610e9c6119c0565b73ffffffffffffffffffffffffffffffffffffffff167fbfbfc79619e852c1e0805bed5972e68369b17855953a4da350b761cb190f86c988868842604051610ee79493929190612aab565b60405180910390a350505050610efb611cb2565b5050565b600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b610f2d611896565b610f35611cbb565b565b610f3f611896565b600082829050905060005b81811015610fe25760006011600086868580610f6590612af0565b9650818110610f7757610f766126e6565b5b9050602002016020810190610f8c9190612261565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550610f4a565b50505050565b60008060019054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60006006600360ff166004811061102b5761102a6126e6565b5b01546002548361103b919061299f565b111561107c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161107390612b84565b60405180910390fd5b61109b82600e60009054906101000a900460ff1660ff16600254611d1d565b9050919050565b6110aa611896565b600082829050905060005b8181101561114d57600160116000868685806110d090612af0565b96508181106110e2576110e16126e6565b5b90506020020160208101906110f79190612261565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506110b5565b50505050565b60035481565b601160006111656119c0565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16156111ed576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111e4906128a7565b60405180910390fd5b80600454421015801561120257506005544211155b611241576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161123890612913565b60405180910390fd5b60008111611284576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161127b9061297f565b60405180910390fd5b6006600360ff166004811061129c5761129b6126e6565b5b0154600254826112ac919061299f565b11156112ed576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112e490612a1f565b60405180910390fd5b6112f5611976565b6112fd611b13565b600061130883611011565b9050600061131584610747565b90506000600e60019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663dd62ed3e61135f6119c0565b306040518363ffffffff1660e01b815260040161137d929190612ba4565b602060405180830381865afa15801561139a573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113be9190612bcd565b905080831115611403576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113fa90612c6c565b60405180910390fd5b61146061140e6119c0565b611416610fe8565b85600e60019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16611e06909392919063ffffffff16565b8460026000828254611472919061299f565b92505081905550670de0b6b3a76400008561148d9190612644565b601060006114996119c0565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546114e2919061299f565b9250508190555060006114f3611c56565b9050600e60009054906101000a900460ff1660ff168160ff16111561152e5780600e60006101000a81548160ff021916908360ff1602179055505b7f55534454000000000000000000000000000000000000000000000000000000006115576119c0565b73ffffffffffffffffffffffffffffffffffffffff167fbfbfc79619e852c1e0805bed5972e68369b17855953a4da350b761cb190f86c9888787426040516115a29493929190612aab565b60405180910390a3505050506115b6611cb2565b5050565b600e60019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6115e8611896565b670de0b6b3a76400006002546115fe9190612644565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016116579190612476565b602060405180830381865afa158015611674573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116989190612bcd565b10156116d9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116d090612cd8565b60405180910390fd5b806003819055507f1d238073dcd652a4295cff85dd24735128d50f88b8e53e45231e10207ea2be188142604051611711929190612832565b60405180910390a150565b600061172c600254600080611d1d565b905090565b611739611896565b816004541461174a57816004819055505b806005541461175b57806005819055505b7f36b2d544ce4c044c203ffa88e326ae03d0394d353a1755ebb4f7929a817ba76e82824260405161178e93929190612cf8565b60405180910390a15050565b7f000000000000000000000000000000000000000000000000000000000000000081565b6000600a600e60009054906101000a900460ff1660ff16600481106117e6576117e56126e6565b5b0154905090565b60055481565b6117fb611896565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361186a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161186190612da1565b60405180910390fd5b61187381611a4e565b50565b60116020528060005260406000206000915054906101000a900460ff1681565b61189e6119c0565b73ffffffffffffffffffffffffffffffffffffffff166118bc610fe8565b73ffffffffffffffffffffffffffffffffffffffff1614611912576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161190990612e0d565b60405180910390fd5b565b61191c611e8f565b60008060006101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa61195f6119c0565b60405161196c9190612476565b60405180910390a1565b61197e610b38565b156119be576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119b590612e79565b60405180910390fd5b565b600033905090565b611a498363a9059cbb60e01b84846040516024016119e7929190612e99565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050611ed8565b505050565b60008060019054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600060016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600260015403611b58576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b4f90612f0e565b60405180910390fd5b6002600181905550565b80471015611ba5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b9c90612f7a565b60405180910390fd5b60008273ffffffffffffffffffffffffffffffffffffffff1682604051611bcb90612fcb565b60006040518083038185875af1925050503d8060008114611c08576040519150601f19603f3d011682016040523d82523d6000602084013e611c0d565b606091505b5050905080611c51576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c489061302c565b60405180910390fd5b505050565b600080600390505b60008160ff161115611cab576002546006600183611c7c919061304c565b60ff1660048110611c9057611c8f6126e6565b5b015410611cab57600181611ca4919061304c565b9050611c5e565b8091505090565b60018081905550565b611cc3611976565b60016000806101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611d066119c0565b604051611d139190612476565b60405180910390a1565b600060068360048110611d3357611d326126e6565b5b01548483611d41919061299f565b11611d6e57600a8360048110611d5a57611d596126e6565b5b015484611d679190612644565b9050611dff565b60008260068560048110611d8557611d846126e6565b5b0154611d919190612715565b905060008186611da19190612715565b9050611dcf81600187611db4919061299f565b60068860048110611dc857611dc76126e6565b5b0154611d1d565b600a8660048110611de357611de26126e6565b5b015483611df09190612644565b611dfa919061299f565b925050505b9392505050565b611e89846323b872dd60e01b858585604051602401611e2793929190613081565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050611ed8565b50505050565b611e97610b38565b611ed6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ecd90613104565b60405180910390fd5b565b6000611f3a826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16611f9f9092919063ffffffff16565b9050600081511115611f9a5780806020019051810190611f5a9190613150565b611f99576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f90906131ef565b60405180910390fd5b5b505050565b6060611fae8484600085611fb7565b90509392505050565b606082471015611ffc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ff390613281565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff1685876040516120259190613307565b60006040518083038185875af1925050503d8060008114612062576040519150601f19603f3d011682016040523d82523d6000602084013e612067565b606091505b509150915061207887838387612084565b92505050949350505050565b606083156120e65760008351036120de5761209e856120f9565b6120dd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120d49061336a565b60405180910390fd5b5b8290506120f1565b6120f0838361211c565b5b949350505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b60008251111561212f5781518083602001fd5b806040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161216391906133df565b60405180910390fd5b600080fd5b600080fd5b6000819050919050565b61218981612176565b811461219457600080fd5b50565b6000813590506121a681612180565b92915050565b6000602082840312156121c2576121c161216c565b5b60006121d084828501612197565b91505092915050565b6121e281612176565b82525050565b60006020820190506121fd60008301846121d9565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061222e82612203565b9050919050565b61223e81612223565b811461224957600080fd5b50565b60008135905061225b81612235565b92915050565b6000602082840312156122775761227661216c565b5b60006122858482850161224c565b91505092915050565b600060ff82169050919050565b6122a48161228e565b82525050565b60006020820190506122bf600083018461229b565b92915050565b600080604083850312156122dc576122db61216c565b5b60006122ea8582860161224c565b92505060206122fb85828601612197565b9150509250929050565b60008115159050919050565b61231a81612305565b82525050565b60006020820190506123356000830184612311565b92915050565b6000819050919050565b600061236061235b61235684612203565b61233b565b612203565b9050919050565b600061237282612345565b9050919050565b600061238482612367565b9050919050565b61239481612379565b82525050565b60006020820190506123af600083018461238b565b92915050565b600080fd5b600080fd5b600080fd5b60008083601f8401126123da576123d96123b5565b5b8235905067ffffffffffffffff8111156123f7576123f66123ba565b5b602083019150836020820283011115612413576124126123bf565b5b9250929050565b600080602083850312156124315761243061216c565b5b600083013567ffffffffffffffff81111561244f5761244e612171565b5b61245b858286016123c4565b92509250509250929050565b61247081612223565b82525050565b600060208201905061248b6000830184612467565b92915050565b600061249c82612367565b9050919050565b6124ac81612491565b82525050565b60006020820190506124c760008301846124a3565b92915050565b600080604083850312156124e4576124e361216c565b5b60006124f285828601612197565b925050602061250385828601612197565b9150509250929050565b600069ffffffffffffffffffff82169050919050565b61252c8161250d565b811461253757600080fd5b50565b60008151905061254981612523565b92915050565b6000819050919050565b6125628161254f565b811461256d57600080fd5b50565b60008151905061257f81612559565b92915050565b60008151905061259481612180565b92915050565b600080600080600060a086880312156125b6576125b561216c565b5b60006125c48882890161253a565b95505060206125d588828901612570565b94505060406125e688828901612585565b93505060606125f788828901612585565b92505060806126088882890161253a565b9150509295509295909350565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061264f82612176565b915061265a83612176565b925082820261266881612176565b9150828204841483151761267f5761267e612615565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006126c082612176565b91506126cb83612176565b9250826126db576126da612686565b5b828204905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600061272082612176565b915061272b83612176565b925082820390508181111561274357612742612615565b5b92915050565b600082825260208201905092915050565b7f436c61696d20686173206e6f7420737461727465642079657400000000000000600082015250565b6000612790601983612749565b915061279b8261275a565b602082019050919050565b600060208201905081810360008301526127bf81612783565b9050919050565b7f4e6f7468696e6720746f20636c61696d00000000000000000000000000000000600082015250565b60006127fc601083612749565b9150612807826127c6565b602082019050919050565b6000602082019050818103600083015261282b816127ef565b9050919050565b600060408201905061284760008301856121d9565b61285460208301846121d9565b9392505050565b7f596f752061726520696e20626c61636b6c697374000000000000000000000000600082015250565b6000612891601483612749565b915061289c8261285b565b602082019050919050565b600060208201905081810360008301526128c081612884565b9050919050565b7f496e76616c69642074696d6520666f7220627579696e67000000000000000000600082015250565b60006128fd601783612749565b9150612908826128c7565b602082019050919050565b6000602082019050818103600083015261292c816128f0565b9050919050565b7f496e636f727265637420746f6b656e20616d6f756e7400000000000000000000600082015250565b6000612969601683612749565b915061297482612933565b602082019050919050565b600060208201905081810360008301526129988161295c565b9050919050565b60006129aa82612176565b91506129b583612176565b92508282019050808211156129cd576129cc612615565b5b92915050565b7f45786365656465642070726573616c65206c696d697400000000000000000000600082015250565b6000612a09601683612749565b9150612a14826129d3565b602082019050919050565b60006020820190508181036000830152612a38816129fc565b9050919050565b7f4e6f7420656e6f75676820455448000000000000000000000000000000000000600082015250565b6000612a75600e83612749565b9150612a8082612a3f565b602082019050919050565b60006020820190508181036000830152612aa481612a68565b9050919050565b6000608082019050612ac060008301876121d9565b612acd60208301866121d9565b612ada60408301856121d9565b612ae760608301846121d9565b95945050505050565b6000612afb82612176565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203612b2d57612b2c612615565b5b600182019050919050565b7f496e73756666696369656e742066756e64730000000000000000000000000000600082015250565b6000612b6e601283612749565b9150612b7982612b38565b602082019050919050565b60006020820190508181036000830152612b9d81612b61565b9050919050565b6000604082019050612bb96000830185612467565b612bc66020830184612467565b9392505050565b600060208284031215612be357612be261216c565b5b6000612bf184828501612585565b91505092915050565b7f4d616b65207375726520746f2061646420656e6f75676820616c6c6f77616e6360008201527f6500000000000000000000000000000000000000000000000000000000000000602082015250565b6000612c56602183612749565b9150612c6182612bfa565b604082019050919050565b60006020820190508181036000830152612c8581612c49565b9050919050565b7f4e6f7420656e6f7567682062616c616e63650000000000000000000000000000600082015250565b6000612cc2601283612749565b9150612ccd82612c8c565b602082019050919050565b60006020820190508181036000830152612cf181612cb5565b9050919050565b6000606082019050612d0d60008301866121d9565b612d1a60208301856121d9565b612d2760408301846121d9565b949350505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000612d8b602683612749565b9150612d9682612d2f565b604082019050919050565b60006020820190508181036000830152612dba81612d7e565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000612df7602083612749565b9150612e0282612dc1565b602082019050919050565b60006020820190508181036000830152612e2681612dea565b9050919050565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b6000612e63601083612749565b9150612e6e82612e2d565b602082019050919050565b60006020820190508181036000830152612e9281612e56565b9050919050565b6000604082019050612eae6000830185612467565b612ebb60208301846121d9565b9392505050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000612ef8601f83612749565b9150612f0382612ec2565b602082019050919050565b60006020820190508181036000830152612f2781612eeb565b9050919050565b7f4c6f772062616c616e6365000000000000000000000000000000000000000000600082015250565b6000612f64600b83612749565b9150612f6f82612f2e565b602082019050919050565b60006020820190508181036000830152612f9381612f57565b9050919050565b600081905092915050565b50565b6000612fb5600083612f9a565b9150612fc082612fa5565b600082019050919050565b6000612fd682612fa8565b9150819050919050565b7f455448205061796d656e74206661696c65640000000000000000000000000000600082015250565b6000613016601283612749565b915061302182612fe0565b602082019050919050565b6000602082019050818103600083015261304581613009565b9050919050565b60006130578261228e565b91506130628361228e565b9250828203905060ff81111561307b5761307a612615565b5b92915050565b60006060820190506130966000830186612467565b6130a36020830185612467565b6130b060408301846121d9565b949350505050565b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b60006130ee601483612749565b91506130f9826130b8565b602082019050919050565b6000602082019050818103600083015261311d816130e1565b9050919050565b61312d81612305565b811461313857600080fd5b50565b60008151905061314a81613124565b92915050565b6000602082840312156131665761316561216c565b5b60006131748482850161313b565b91505092915050565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b60006131d9602a83612749565b91506131e48261317d565b604082019050919050565b60006020820190508181036000830152613208816131cc565b9050919050565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b600061326b602683612749565b91506132768261320f565b604082019050919050565b6000602082019050818103600083015261329a8161325e565b9050919050565b600081519050919050565b60005b838110156132ca5780820151818401526020810190506132af565b60008484015250505050565b60006132e1826132a1565b6132eb8185612f9a565b93506132fb8185602086016132ac565b80840191505092915050565b600061331382846132d6565b915081905092915050565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b6000613354601d83612749565b915061335f8261331e565b602082019050919050565b6000602082019050818103600083015261338381613347565b9050919050565b600081519050919050565b6000601f19601f8301169050919050565b60006133b18261338a565b6133bb8185612749565b93506133cb8185602086016132ac565b6133d481613395565b840191505092915050565b600060208201905081810360008301526133f981846133a6565b90509291505056fea2646970667358221220877ceb36fe9667703790ef43bce3eb4b6d855d17d4d57ea21e5953309263640e64736f6c634300081100330000000000000000000000005d942f9872863645bcb181aba66c7d9646a913780000000000000000000000005f4ec3df9cbd43714fe2740f5e3616155c5b8419000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec700000000000000000000000000000000000000000000000000000000642e0b8000000000000000000000000000000000000000000000000000000000649f50600000000000000000000000000000000000000000000000000000000002625a0000000000000000000000000000000000000000000000000000000000061c06a0000000000000000000000000000000000000000000000000000000000a6e49c0000000000000000000000000000000000000000000000000000000000ee6b2800000000000000000000000000000000000000000000000000000000000003a98000000000000000000000000000000000000000000000000000000000000493e000000000000000000000000000000000000000000000000000000000000521200000000000000000000000000000000000000000000000000000000000058d4
Deployed Bytecode
0x6080604052600436106101e35760003560e01c80638456cb5911610102578063ca712e9b11610095578063eb91d37e11610064578063eb91d37e1461068b578063ed338ff1146106b6578063f2fde38b146106e1578063f9f92be41461070a576101e3565b8063ca712e9b146105e3578063cd9f18821461060c578063d68e2edf14610637578063e985e36714610660576101e3565b8063935eb35f116100d1578063935eb35f1461053b578063a6a11bb114610564578063a7c601601461058f578063ac4b457a146105b8576101e3565b80638456cb591461049357806389daf799146104aa5780638da5cb5b146104d3578063907f2383146104fe576101e3565b80634e71d92d1161017a57806363b201171161014957806363b201171461040a578063715018a6146104355780637649b9571461044c5780637dc0d1d014610468576101e3565b80634e71d92d146103745780635bf5d54c1461038b5780635c71b9aa146103b65780635c975abb146103df576101e3565b80631ce0fa43116101b65780631ce0fa43146102b85780633f4ba83a146102e357806344122244146102fa5780634bae6f3f14610337576101e3565b80630441b220146101e85780630aca575a146102255780631076a70c146102505780631cbaee2d1461028d575b600080fd5b3480156101f457600080fd5b5061020f600480360381019061020a91906121ac565b610747565b60405161021c91906121e8565b60405180910390f35b34801561023157600080fd5b5061023a610811565b60405161024791906121e8565b60405180910390f35b34801561025c57600080fd5b50610277600480360381019061027291906121ac565b610832565b60405161028491906121e8565b60405180910390f35b34801561029957600080fd5b506102a261084d565b6040516102af91906121e8565b60405180910390f35b3480156102c457600080fd5b506102cd610853565b6040516102da91906121e8565b60405180910390f35b3480156102ef57600080fd5b506102f86108b0565b005b34801561030657600080fd5b50610321600480360381019061031c91906121ac565b6108c2565b60405161032e91906121e8565b60405180910390f35b34801561034357600080fd5b5061035e60048036038101906103599190612261565b6108dd565b60405161036b91906121e8565b60405180910390f35b34801561038057600080fd5b506103896108f5565b005b34801561039757600080fd5b506103a0610ae7565b6040516103ad91906122aa565b60405180910390f35b3480156103c257600080fd5b506103dd60048036038101906103d891906122c5565b610afa565b005b3480156103eb57600080fd5b506103f4610b38565b6040516104019190612320565b60405180910390f35b34801561041657600080fd5b5061041f610b4e565b60405161042c91906121e8565b60405180910390f35b34801561044157600080fd5b5061044a610b54565b005b610466600480360381019061046191906121ac565b610b68565b005b34801561047457600080fd5b5061047d610eff565b60405161048a919061239a565b60405180910390f35b34801561049f57600080fd5b506104a8610f25565b005b3480156104b657600080fd5b506104d160048036038101906104cc919061241a565b610f37565b005b3480156104df57600080fd5b506104e8610fe8565b6040516104f59190612476565b60405180910390f35b34801561050a57600080fd5b50610525600480360381019061052091906121ac565b611011565b60405161053291906121e8565b60405180910390f35b34801561054757600080fd5b50610562600480360381019061055d919061241a565b6110a2565b005b34801561057057600080fd5b50610579611153565b60405161058691906121e8565b60405180910390f35b34801561059b57600080fd5b506105b660048036038101906105b191906121ac565b611159565b005b3480156105c457600080fd5b506105cd6115ba565b6040516105da91906124b2565b60405180910390f35b3480156105ef57600080fd5b5061060a600480360381019061060591906121ac565b6115e0565b005b34801561061857600080fd5b5061062161171c565b60405161062e91906121e8565b60405180910390f35b34801561064357600080fd5b5061065e600480360381019061065991906124cd565b611731565b005b34801561066c57600080fd5b5061067561179a565b6040516106829190612476565b60405180910390f35b34801561069757600080fd5b506106a06117be565b6040516106ad91906121e8565b60405180910390f35b3480156106c257600080fd5b506106cb6117ed565b6040516106d891906121e8565b60405180910390f35b3480156106ed57600080fd5b5061070860048036038101906107039190612261565b6117f3565b005b34801561071657600080fd5b50610731600480360381019061072c9190612261565b611876565b60405161073e9190612320565b60405180910390f35b600080600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663feaf968c6040518163ffffffff1660e01b815260040160a060405180830381865afa1580156107b7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107db919061259a565b5050509150508068056bc75e2d631000006107f585611011565b6107ff9190612644565b61080991906126b5565b915050919050565b60006006600360ff166004811061082b5761082a6126e6565b5b0154905090565b6006816004811061084257600080fd5b016000915090505481565b60045481565b600080600e60009054906101000a900460ff1660ff161461089b576006600e60009054906101000a900460ff1660ff1660048110610894576108936126e6565b5b015461089e565b60005b6002546108ab9190612715565b905090565b6108b8611896565b6108c0611914565b565b600a81600481106108d257600080fd5b016000915090505481565b60106020528060005260406000206000915090505481565b6108fd611976565b600354421015801561091157506000600354115b610950576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610947906127a6565b60405180910390fd5b60006010600061095e6119c0565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050600081116109de576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109d590612812565b60405180910390fd5b80601060006109eb6119c0565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254610a349190612715565b92505081905550610a8d610a466119c0565b827f0000000000000000000000005d942f9872863645bcb181aba66c7d9646a9137873ffffffffffffffffffffffffffffffffffffffff166119c89092919063ffffffff16565b610a956119c0565b73ffffffffffffffffffffffffffffffffffffffff167f9923b4306c6c030f2bdfbf156517d5983b87e15b96176da122cd4f2effa4ba7b8242604051610adc929190612832565b60405180910390a250565b600e60009054906101000a900460ff1681565b610b02611896565b610b34610b0d6119c0565b828473ffffffffffffffffffffffffffffffffffffffff166119c89092919063ffffffff16565b5050565b60008060009054906101000a900460ff16905090565b60025481565b610b5c611896565b610b666000611a4e565b565b60116000610b746119c0565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1615610bfc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bf3906128a7565b60405180910390fd5b806004544210158015610c1157506005544211155b610c50576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c4790612913565b60405180910390fd5b60008111610c93576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c8a9061297f565b60405180910390fd5b6006600360ff1660048110610cab57610caa6126e6565b5b015460025482610cbb919061299f565b1115610cfc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cf390612a1f565b60405180910390fd5b610d04611976565b610d0c611b13565b6000610d1783610747565b90506000610d2484611011565b905081341015610d69576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d6090612a8b565b60405180910390fd5b610d7a610d74610fe8565b83611b62565b60008234610d889190612715565b90506000811115610da557610da4610d9e6119c0565b82611b62565b5b8460026000828254610db7919061299f565b92505081905550670de0b6b3a764000085610dd29190612644565b60106000610dde6119c0565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254610e27919061299f565b925050819055506000610e38611c56565b9050600e60009054906101000a900460ff1660ff168160ff161115610e735780600e60006101000a81548160ff021916908360ff1602179055505b7f4554480000000000000000000000000000000000000000000000000000000000610e9c6119c0565b73ffffffffffffffffffffffffffffffffffffffff167fbfbfc79619e852c1e0805bed5972e68369b17855953a4da350b761cb190f86c988868842604051610ee79493929190612aab565b60405180910390a350505050610efb611cb2565b5050565b600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b610f2d611896565b610f35611cbb565b565b610f3f611896565b600082829050905060005b81811015610fe25760006011600086868580610f6590612af0565b9650818110610f7757610f766126e6565b5b9050602002016020810190610f8c9190612261565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550610f4a565b50505050565b60008060019054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60006006600360ff166004811061102b5761102a6126e6565b5b01546002548361103b919061299f565b111561107c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161107390612b84565b60405180910390fd5b61109b82600e60009054906101000a900460ff1660ff16600254611d1d565b9050919050565b6110aa611896565b600082829050905060005b8181101561114d57600160116000868685806110d090612af0565b96508181106110e2576110e16126e6565b5b90506020020160208101906110f79190612261565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506110b5565b50505050565b60035481565b601160006111656119c0565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16156111ed576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111e4906128a7565b60405180910390fd5b80600454421015801561120257506005544211155b611241576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161123890612913565b60405180910390fd5b60008111611284576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161127b9061297f565b60405180910390fd5b6006600360ff166004811061129c5761129b6126e6565b5b0154600254826112ac919061299f565b11156112ed576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112e490612a1f565b60405180910390fd5b6112f5611976565b6112fd611b13565b600061130883611011565b9050600061131584610747565b90506000600e60019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663dd62ed3e61135f6119c0565b306040518363ffffffff1660e01b815260040161137d929190612ba4565b602060405180830381865afa15801561139a573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113be9190612bcd565b905080831115611403576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113fa90612c6c565b60405180910390fd5b61146061140e6119c0565b611416610fe8565b85600e60019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16611e06909392919063ffffffff16565b8460026000828254611472919061299f565b92505081905550670de0b6b3a76400008561148d9190612644565b601060006114996119c0565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546114e2919061299f565b9250508190555060006114f3611c56565b9050600e60009054906101000a900460ff1660ff168160ff16111561152e5780600e60006101000a81548160ff021916908360ff1602179055505b7f55534454000000000000000000000000000000000000000000000000000000006115576119c0565b73ffffffffffffffffffffffffffffffffffffffff167fbfbfc79619e852c1e0805bed5972e68369b17855953a4da350b761cb190f86c9888787426040516115a29493929190612aab565b60405180910390a3505050506115b6611cb2565b5050565b600e60019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6115e8611896565b670de0b6b3a76400006002546115fe9190612644565b7f0000000000000000000000005d942f9872863645bcb181aba66c7d9646a9137873ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016116579190612476565b602060405180830381865afa158015611674573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116989190612bcd565b10156116d9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116d090612cd8565b60405180910390fd5b806003819055507f1d238073dcd652a4295cff85dd24735128d50f88b8e53e45231e10207ea2be188142604051611711929190612832565b60405180910390a150565b600061172c600254600080611d1d565b905090565b611739611896565b816004541461174a57816004819055505b806005541461175b57806005819055505b7f36b2d544ce4c044c203ffa88e326ae03d0394d353a1755ebb4f7929a817ba76e82824260405161178e93929190612cf8565b60405180910390a15050565b7f0000000000000000000000005d942f9872863645bcb181aba66c7d9646a9137881565b6000600a600e60009054906101000a900460ff1660ff16600481106117e6576117e56126e6565b5b0154905090565b60055481565b6117fb611896565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361186a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161186190612da1565b60405180910390fd5b61187381611a4e565b50565b60116020528060005260406000206000915054906101000a900460ff1681565b61189e6119c0565b73ffffffffffffffffffffffffffffffffffffffff166118bc610fe8565b73ffffffffffffffffffffffffffffffffffffffff1614611912576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161190990612e0d565b60405180910390fd5b565b61191c611e8f565b60008060006101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa61195f6119c0565b60405161196c9190612476565b60405180910390a1565b61197e610b38565b156119be576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119b590612e79565b60405180910390fd5b565b600033905090565b611a498363a9059cbb60e01b84846040516024016119e7929190612e99565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050611ed8565b505050565b60008060019054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600060016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600260015403611b58576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b4f90612f0e565b60405180910390fd5b6002600181905550565b80471015611ba5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b9c90612f7a565b60405180910390fd5b60008273ffffffffffffffffffffffffffffffffffffffff1682604051611bcb90612fcb565b60006040518083038185875af1925050503d8060008114611c08576040519150601f19603f3d011682016040523d82523d6000602084013e611c0d565b606091505b5050905080611c51576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c489061302c565b60405180910390fd5b505050565b600080600390505b60008160ff161115611cab576002546006600183611c7c919061304c565b60ff1660048110611c9057611c8f6126e6565b5b015410611cab57600181611ca4919061304c565b9050611c5e565b8091505090565b60018081905550565b611cc3611976565b60016000806101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611d066119c0565b604051611d139190612476565b60405180910390a1565b600060068360048110611d3357611d326126e6565b5b01548483611d41919061299f565b11611d6e57600a8360048110611d5a57611d596126e6565b5b015484611d679190612644565b9050611dff565b60008260068560048110611d8557611d846126e6565b5b0154611d919190612715565b905060008186611da19190612715565b9050611dcf81600187611db4919061299f565b60068860048110611dc857611dc76126e6565b5b0154611d1d565b600a8660048110611de357611de26126e6565b5b015483611df09190612644565b611dfa919061299f565b925050505b9392505050565b611e89846323b872dd60e01b858585604051602401611e2793929190613081565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050611ed8565b50505050565b611e97610b38565b611ed6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ecd90613104565b60405180910390fd5b565b6000611f3a826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16611f9f9092919063ffffffff16565b9050600081511115611f9a5780806020019051810190611f5a9190613150565b611f99576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f90906131ef565b60405180910390fd5b5b505050565b6060611fae8484600085611fb7565b90509392505050565b606082471015611ffc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ff390613281565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff1685876040516120259190613307565b60006040518083038185875af1925050503d8060008114612062576040519150601f19603f3d011682016040523d82523d6000602084013e612067565b606091505b509150915061207887838387612084565b92505050949350505050565b606083156120e65760008351036120de5761209e856120f9565b6120dd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120d49061336a565b60405180910390fd5b5b8290506120f1565b6120f0838361211c565b5b949350505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b60008251111561212f5781518083602001fd5b806040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161216391906133df565b60405180910390fd5b600080fd5b600080fd5b6000819050919050565b61218981612176565b811461219457600080fd5b50565b6000813590506121a681612180565b92915050565b6000602082840312156121c2576121c161216c565b5b60006121d084828501612197565b91505092915050565b6121e281612176565b82525050565b60006020820190506121fd60008301846121d9565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061222e82612203565b9050919050565b61223e81612223565b811461224957600080fd5b50565b60008135905061225b81612235565b92915050565b6000602082840312156122775761227661216c565b5b60006122858482850161224c565b91505092915050565b600060ff82169050919050565b6122a48161228e565b82525050565b60006020820190506122bf600083018461229b565b92915050565b600080604083850312156122dc576122db61216c565b5b60006122ea8582860161224c565b92505060206122fb85828601612197565b9150509250929050565b60008115159050919050565b61231a81612305565b82525050565b60006020820190506123356000830184612311565b92915050565b6000819050919050565b600061236061235b61235684612203565b61233b565b612203565b9050919050565b600061237282612345565b9050919050565b600061238482612367565b9050919050565b61239481612379565b82525050565b60006020820190506123af600083018461238b565b92915050565b600080fd5b600080fd5b600080fd5b60008083601f8401126123da576123d96123b5565b5b8235905067ffffffffffffffff8111156123f7576123f66123ba565b5b602083019150836020820283011115612413576124126123bf565b5b9250929050565b600080602083850312156124315761243061216c565b5b600083013567ffffffffffffffff81111561244f5761244e612171565b5b61245b858286016123c4565b92509250509250929050565b61247081612223565b82525050565b600060208201905061248b6000830184612467565b92915050565b600061249c82612367565b9050919050565b6124ac81612491565b82525050565b60006020820190506124c760008301846124a3565b92915050565b600080604083850312156124e4576124e361216c565b5b60006124f285828601612197565b925050602061250385828601612197565b9150509250929050565b600069ffffffffffffffffffff82169050919050565b61252c8161250d565b811461253757600080fd5b50565b60008151905061254981612523565b92915050565b6000819050919050565b6125628161254f565b811461256d57600080fd5b50565b60008151905061257f81612559565b92915050565b60008151905061259481612180565b92915050565b600080600080600060a086880312156125b6576125b561216c565b5b60006125c48882890161253a565b95505060206125d588828901612570565b94505060406125e688828901612585565b93505060606125f788828901612585565b92505060806126088882890161253a565b9150509295509295909350565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061264f82612176565b915061265a83612176565b925082820261266881612176565b9150828204841483151761267f5761267e612615565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006126c082612176565b91506126cb83612176565b9250826126db576126da612686565b5b828204905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600061272082612176565b915061272b83612176565b925082820390508181111561274357612742612615565b5b92915050565b600082825260208201905092915050565b7f436c61696d20686173206e6f7420737461727465642079657400000000000000600082015250565b6000612790601983612749565b915061279b8261275a565b602082019050919050565b600060208201905081810360008301526127bf81612783565b9050919050565b7f4e6f7468696e6720746f20636c61696d00000000000000000000000000000000600082015250565b60006127fc601083612749565b9150612807826127c6565b602082019050919050565b6000602082019050818103600083015261282b816127ef565b9050919050565b600060408201905061284760008301856121d9565b61285460208301846121d9565b9392505050565b7f596f752061726520696e20626c61636b6c697374000000000000000000000000600082015250565b6000612891601483612749565b915061289c8261285b565b602082019050919050565b600060208201905081810360008301526128c081612884565b9050919050565b7f496e76616c69642074696d6520666f7220627579696e67000000000000000000600082015250565b60006128fd601783612749565b9150612908826128c7565b602082019050919050565b6000602082019050818103600083015261292c816128f0565b9050919050565b7f496e636f727265637420746f6b656e20616d6f756e7400000000000000000000600082015250565b6000612969601683612749565b915061297482612933565b602082019050919050565b600060208201905081810360008301526129988161295c565b9050919050565b60006129aa82612176565b91506129b583612176565b92508282019050808211156129cd576129cc612615565b5b92915050565b7f45786365656465642070726573616c65206c696d697400000000000000000000600082015250565b6000612a09601683612749565b9150612a14826129d3565b602082019050919050565b60006020820190508181036000830152612a38816129fc565b9050919050565b7f4e6f7420656e6f75676820455448000000000000000000000000000000000000600082015250565b6000612a75600e83612749565b9150612a8082612a3f565b602082019050919050565b60006020820190508181036000830152612aa481612a68565b9050919050565b6000608082019050612ac060008301876121d9565b612acd60208301866121d9565b612ada60408301856121d9565b612ae760608301846121d9565b95945050505050565b6000612afb82612176565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203612b2d57612b2c612615565b5b600182019050919050565b7f496e73756666696369656e742066756e64730000000000000000000000000000600082015250565b6000612b6e601283612749565b9150612b7982612b38565b602082019050919050565b60006020820190508181036000830152612b9d81612b61565b9050919050565b6000604082019050612bb96000830185612467565b612bc66020830184612467565b9392505050565b600060208284031215612be357612be261216c565b5b6000612bf184828501612585565b91505092915050565b7f4d616b65207375726520746f2061646420656e6f75676820616c6c6f77616e6360008201527f6500000000000000000000000000000000000000000000000000000000000000602082015250565b6000612c56602183612749565b9150612c6182612bfa565b604082019050919050565b60006020820190508181036000830152612c8581612c49565b9050919050565b7f4e6f7420656e6f7567682062616c616e63650000000000000000000000000000600082015250565b6000612cc2601283612749565b9150612ccd82612c8c565b602082019050919050565b60006020820190508181036000830152612cf181612cb5565b9050919050565b6000606082019050612d0d60008301866121d9565b612d1a60208301856121d9565b612d2760408301846121d9565b949350505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000612d8b602683612749565b9150612d9682612d2f565b604082019050919050565b60006020820190508181036000830152612dba81612d7e565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000612df7602083612749565b9150612e0282612dc1565b602082019050919050565b60006020820190508181036000830152612e2681612dea565b9050919050565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b6000612e63601083612749565b9150612e6e82612e2d565b602082019050919050565b60006020820190508181036000830152612e9281612e56565b9050919050565b6000604082019050612eae6000830185612467565b612ebb60208301846121d9565b9392505050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000612ef8601f83612749565b9150612f0382612ec2565b602082019050919050565b60006020820190508181036000830152612f2781612eeb565b9050919050565b7f4c6f772062616c616e6365000000000000000000000000000000000000000000600082015250565b6000612f64600b83612749565b9150612f6f82612f2e565b602082019050919050565b60006020820190508181036000830152612f9381612f57565b9050919050565b600081905092915050565b50565b6000612fb5600083612f9a565b9150612fc082612fa5565b600082019050919050565b6000612fd682612fa8565b9150819050919050565b7f455448205061796d656e74206661696c65640000000000000000000000000000600082015250565b6000613016601283612749565b915061302182612fe0565b602082019050919050565b6000602082019050818103600083015261304581613009565b9050919050565b60006130578261228e565b91506130628361228e565b9250828203905060ff81111561307b5761307a612615565b5b92915050565b60006060820190506130966000830186612467565b6130a36020830185612467565b6130b060408301846121d9565b949350505050565b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b60006130ee601483612749565b91506130f9826130b8565b602082019050919050565b6000602082019050818103600083015261311d816130e1565b9050919050565b61312d81612305565b811461313857600080fd5b50565b60008151905061314a81613124565b92915050565b6000602082840312156131665761316561216c565b5b60006131748482850161313b565b91505092915050565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b60006131d9602a83612749565b91506131e48261317d565b604082019050919050565b60006020820190508181036000830152613208816131cc565b9050919050565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b600061326b602683612749565b91506132768261320f565b604082019050919050565b6000602082019050818103600083015261329a8161325e565b9050919050565b600081519050919050565b60005b838110156132ca5780820151818401526020810190506132af565b60008484015250505050565b60006132e1826132a1565b6132eb8185612f9a565b93506132fb8185602086016132ac565b80840191505092915050565b600061331382846132d6565b915081905092915050565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b6000613354601d83612749565b915061335f8261331e565b602082019050919050565b6000602082019050818103600083015261338381613347565b9050919050565b600081519050919050565b6000601f19601f8301169050919050565b60006133b18261338a565b6133bb8185612749565b93506133cb8185602086016132ac565b6133d481613395565b840191505092915050565b600060208201905081810360008301526133f981846133a6565b90509291505056fea2646970667358221220877ceb36fe9667703790ef43bce3eb4b6d855d17d4d57ea21e5953309263640e64736f6c63430008110033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000005d942f9872863645bcb181aba66c7d9646a913780000000000000000000000005f4ec3df9cbd43714fe2740f5e3616155c5b8419000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec700000000000000000000000000000000000000000000000000000000642e0b8000000000000000000000000000000000000000000000000000000000649f50600000000000000000000000000000000000000000000000000000000002625a0000000000000000000000000000000000000000000000000000000000061c06a0000000000000000000000000000000000000000000000000000000000a6e49c0000000000000000000000000000000000000000000000000000000000ee6b2800000000000000000000000000000000000000000000000000000000000003a98000000000000000000000000000000000000000000000000000000000000493e000000000000000000000000000000000000000000000000000000000000521200000000000000000000000000000000000000000000000000000000000058d4
-----Decoded View---------------
Arg [0] : _saleToken (address): 0x5d942F9872863645bCb181ABa66c7D9646A91378
Arg [1] : _oracle (address): 0x5f4eC3Df9cbd43714FE2740f5E3616155c5b8419
Arg [2] : _usdt (address): 0xdAC17F958D2ee523a2206206994597C13D831ec7
Arg [3] : _saleStartTime (uint256): 1680739200
Arg [4] : _saleEndTime (uint256): 1688162400
Arg [5] : _limitPerStage (uint256[4]): 40000000,102500000,175000000,250000000
Arg [6] : _pricePerStage (uint256[4]): 15000,18750,21010,22740
-----Encoded View---------------
13 Constructor Arguments found :
Arg [0] : 0000000000000000000000005d942f9872863645bcb181aba66c7d9646a91378
Arg [1] : 0000000000000000000000005f4ec3df9cbd43714fe2740f5e3616155c5b8419
Arg [2] : 000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec7
Arg [3] : 00000000000000000000000000000000000000000000000000000000642e0b80
Arg [4] : 00000000000000000000000000000000000000000000000000000000649f5060
Arg [5] : 0000000000000000000000000000000000000000000000000000000002625a00
Arg [6] : 00000000000000000000000000000000000000000000000000000000061c06a0
Arg [7] : 000000000000000000000000000000000000000000000000000000000a6e49c0
Arg [8] : 000000000000000000000000000000000000000000000000000000000ee6b280
Arg [9] : 0000000000000000000000000000000000000000000000000000000000003a98
Arg [10] : 000000000000000000000000000000000000000000000000000000000000493e
Arg [11] : 0000000000000000000000000000000000000000000000000000000000005212
Arg [12] : 00000000000000000000000000000000000000000000000000000000000058d4
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ 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.