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 107 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Buy With Eth | 17473587 | 589 days ago | IN | 0.0092 ETH | 0.00181839 | ||||
Buy With Eth | 17457027 | 591 days ago | IN | 22.7 ETH | 0.00169206 | ||||
Buy With Eth | 17451854 | 592 days ago | IN | 0.023 ETH | 0.00194796 | ||||
Buy With Eth | 17433866 | 595 days ago | IN | 0.00001 ETH | 0.00211652 | ||||
Buy With Eth | 17429902 | 595 days ago | IN | 0.015 ETH | 0.00445406 | ||||
Buy With Eth | 17416493 | 597 days ago | IN | 22.6 ETH | 0.00418094 | ||||
Buy With Eth | 17416484 | 597 days ago | IN | 22.5 ETH | 0.00430478 | ||||
Buy With Eth | 17416474 | 597 days ago | IN | 1 ETH | 0.00416337 | ||||
Buy With USDT | 17365775 | 604 days ago | IN | 0 ETH | 0.00539314 | ||||
Buy With Eth | 17341529 | 608 days ago | IN | 0.066535 ETH | 0.00432452 | ||||
Buy With Eth | 17338041 | 608 days ago | IN | 0.005 ETH | 0.00349059 | ||||
Buy With Eth | 17338027 | 608 days ago | IN | 0.0019 ETH | 0.00427466 | ||||
Buy With Eth | 17314278 | 612 days ago | IN | 0.0058 ETH | 0.00376894 | ||||
Buy With Eth | 17296577 | 614 days ago | IN | 0.12354 ETH | 0.00467316 | ||||
Buy With Eth | 17287633 | 615 days ago | IN | 0.0045 ETH | 0.01286946 | ||||
Buy With Eth | 17284785 | 616 days ago | IN | 0.01165 ETH | 0.00495841 | ||||
Buy With Eth | 17280191 | 616 days ago | IN | 22.5 ETH | 0.00665609 | ||||
Buy With Eth | 17280169 | 616 days ago | IN | 22.5 ETH | 0.00745551 | ||||
Buy With Eth | 17276201 | 617 days ago | IN | 0.05 ETH | 0.00507085 | ||||
Buy With Eth | 17273709 | 617 days ago | IN | 22.45 ETH | 0.00896759 | ||||
Buy With Eth | 17271129 | 618 days ago | IN | 0.0178 ETH | 0.00518063 | ||||
Buy With Eth | 17266382 | 618 days ago | IN | 22.44 ETH | 0.00963359 | ||||
Buy With Eth | 17266345 | 618 days ago | IN | 22.46 ETH | 0.00918643 | ||||
Buy With Eth | 17266331 | 618 days ago | IN | 22.5 ETH | 0.01169644 | ||||
Buy With Eth | 17263947 | 619 days ago | IN | 0.02 ETH | 0.0051038 |
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block |
From
|
To
|
|||
---|---|---|---|---|---|---|
17473587 | 589 days ago | 0.00000734 ETH | ||||
17473587 | 589 days ago | 0.00919265 ETH | ||||
17457027 | 591 days ago | 22.7 ETH | ||||
17451854 | 592 days ago | 0.00000038 ETH | ||||
17451854 | 592 days ago | 0.02299961 ETH | ||||
17433866 | 595 days ago | 0.00000128 ETH | ||||
17433866 | 595 days ago | 0.00000871 ETH | ||||
17429902 | 595 days ago | 0.00000201 ETH | ||||
17429902 | 595 days ago | 0.01499798 ETH | ||||
17416493 | 597 days ago | 0.00000125 ETH | ||||
17416493 | 597 days ago | 22.59999874 ETH | ||||
17416484 | 597 days ago | 0.00000345 ETH | ||||
17416484 | 597 days ago | 22.49999654 ETH | ||||
17416474 | 597 days ago | 0.00000005 ETH | ||||
17416474 | 597 days ago | 0.99999994 ETH | ||||
17341529 | 608 days ago | 0.00000213 ETH | ||||
17341529 | 608 days ago | 0.06653286 ETH | ||||
17338041 | 608 days ago | 0.00000384 ETH | ||||
17338041 | 608 days ago | 0.00499615 ETH | ||||
17338027 | 608 days ago | 0.00000092 ETH | ||||
17338027 | 608 days ago | 0.00189907 ETH | ||||
17314278 | 612 days ago | 0.00000018 ETH | ||||
17314278 | 612 days ago | 0.00579981 ETH | ||||
17296577 | 614 days ago | 0.00000401 ETH | ||||
17296577 | 614 days ago | 0.12353598 ETH |
Loading...
Loading
Contract Name:
Presale
Compiler Version
v0.8.17+commit.8df45f5f
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.17; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import "@openzeppelin/contracts/security/Pausable.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "./interfaces/IPresale.sol"; import "./interfaces/IAggregator.sol"; contract Presale is IPresale, Pausable, Ownable, ReentrancyGuard { using SafeERC20 for IERC20; address public immutable saleToken; uint256 public totalTokensSold; uint256 public startTime; uint256 public endTime; uint256 public claimStart; uint256 public currentStep; uint256[9] public token_amount; uint256[9] public token_price; uint8 constant maxStepIndex = 8; IERC20 public USDTInterface; IAggregator public aggregatorInterface; mapping(address => uint256) _userDeposits; mapping(address => bool) public hasClaimed; mapping(address => bool) public blacklist; modifier checkSaleState(uint256 amount) { require( block.timestamp >= startTime && block.timestamp <= endTime, "Invalid time for buying" ); require(amount > 0, "Invalid sale amount"); require( amount + totalTokensSold <= token_amount[maxStepIndex], "Insufficient funds" ); _; } modifier notBlacklisted() { require(!blacklist[_msgSender()], "You are in blacklist"); _; } /** * @dev Creates the contract * @param _owner - Address of owner * @param _saleToken start - Address of Metacade token * @param _aggregatorInterface - Address of Chainlink ETH/USD price feed * @param _USDTInterface - Address of USDT token * @param _token_amount - Array of prices for each presale step * @param _token_price - Array of totalTokenSold limit for each step * @param _startTime - Sale start time * @param _endTime - Sale end time */ constructor( address _owner, address _saleToken, address _aggregatorInterface, address _USDTInterface, uint256[9] memory _token_amount, uint256[9] memory _token_price, uint256 _startTime, uint256 _endTime ) { _transferOwnership(_owner); require(_aggregatorInterface != address(0), "Zero aggregator address"); require(_USDTInterface != address(0), "Zero USDT address"); require(_saleToken != address(0), "Zero sale token address"); require(_endTime > _startTime, "Invalid time"); saleToken = _saleToken; aggregatorInterface = IAggregator(_aggregatorInterface); USDTInterface = IERC20(_USDTInterface); token_amount = _token_amount; token_price = _token_price; startTime = _startTime; endTime = _endTime; emit SaleTimeSet(_startTime, _endTime, block.timestamp); } /** * @dev To pause the presale */ function pause() external onlyOwner { _pause(); } /** * @dev To unpause the presale */ function unpause() external onlyOwner { _unpause(); } /** * @dev To update the sale times * @param _startTime - New sales start time * @param _endTime - New sales end time */ function changeSaleTimes( uint256 _startTime, uint256 _endTime ) external onlyOwner { if (startTime != _startTime) startTime = _startTime; if (endTime != _endTime) endTime = _endTime; emit SaleTimeSet(_startTime, _endTime, block.timestamp); } /** * @dev To set the claim * @param _claimStart - claim start time * @notice Function also makes sure that presale have enough sale token balance */ function configureClaim( uint256 _claimStart ) external onlyOwner returns (bool) { require( IERC20(saleToken).balanceOf(address(this)) >= totalTokensSold * 1e18, "Not enough balance" ); claimStart = _claimStart; return true; } /** * @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 price for current step */ function getCurrentPrice() external view returns (uint256) { return token_price[currentStep]; } /** * @dev Returns amount of tokens sold on current step */ function getSoldOnCurrentStage() external view returns (uint256 soldOnCurrentStage) { soldOnCurrentStage = totalTokensSold - ((currentStep == 0) ? 0 : token_amount[currentStep - 1]); } /** * @dev Returns presale last stage token amount limit */ function getTotalPresaleAmount() external view returns (uint256) { return token_amount[maxStepIndex]; } /** * @dev Returns total price of sold tokens * @notice Value may be inaccurate, since not all tokens were sold on the beta presale */ function totalSoldPrice() external view returns (uint256) { return _calculateInternalCost(totalTokensSold, 0, 0); } /** * @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 Returns tokens purchased by the user * @param _user - Address of user */ function userDeposits(address _user) public view returns (uint256) { if (hasClaimed[_user]) return 0; return _userDeposits[_user]; } /** * @dev To buy into a presale using ETH * @param _amount - Amount of tokens to buy */ function buyWithEth( uint256 _amount ) external payable checkSaleState(_amount) notBlacklisted whenNotPaused nonReentrant returns (bool) { uint256 ethAmount = ethBuyHelper(_amount); require(msg.value >= ethAmount, "Less payment"); _sendValue(payable(owner()), ethAmount); uint256 excess = msg.value - ethAmount; if (excess > 0) _sendValue(payable(_msgSender()), excess); totalTokensSold += _amount; _userDeposits[_msgSender()] += _amount * 1e18; uint8 stepAfterPurchase = _getStepByTotalSoldAmount(); if (stepAfterPurchase > currentStep) currentStep = stepAfterPurchase; emit TokensBought(_msgSender(), _amount, ethAmount, block.timestamp); return true; } /** * @dev To buy into a presale using USDT * @param _amount - Amount of tokens to buy */ function buyWithUSDT( uint256 _amount ) external checkSaleState(_amount) notBlacklisted whenNotPaused nonReentrant returns (bool) { uint256 usdtPrice = usdtBuyHelper(_amount); require( usdtPrice <= USDTInterface.allowance(_msgSender(), address(this)), "Not enough allowance" ); USDTInterface.safeTransferFrom(_msgSender(), owner(), usdtPrice); totalTokensSold += _amount; _userDeposits[_msgSender()] += _amount * 1e18; uint8 stepAfterPurchase = _getStepByTotalSoldAmount(); if (stepAfterPurchase > currentStep) currentStep = stepAfterPurchase; emit TokensBought(_msgSender(), _amount, usdtPrice, block.timestamp); return true; } /** * @dev To claim tokens after claiming starts */ function claim() external whenNotPaused nonReentrant { require( block.timestamp >= claimStart && claimStart > 0, "Claim has not started yet" ); require(!hasClaimed[_msgSender()], "Already claimed"); uint256 amount = userDeposits(_msgSender()); require(amount > 0, "Nothing to claim"); hasClaimed[_msgSender()] = true; IERC20(saleToken).safeTransfer(_msgSender(), amount); emit TokensClaimed(_msgSender(), amount, block.timestamp); } /** * @dev To get latest ETH/USD price * @notice Return result in 1e18 format */ function getLatestPrice() public view returns (uint256) { (, int256 price, , , ) = aggregatorInterface.latestRoundData(); return uint256(price * 1e10); } /** * @dev Calculate ETH price for given amount * @param _amount - Amount of tokens to calculate price * @notice Return result in 1e18 format */ function ethBuyHelper( uint256 _amount ) public view returns (uint256 ethAmount) { ethAmount = (calculatePrice(_amount) * 1e18) / getLatestPrice(); } /** * @dev Calculate USDT price for given amount * @param _amount - Amount of tokens to calculate price * @notice Return result in 1e6 format */ function usdtBuyHelper( uint256 _amount ) public view returns (uint256 usdtPrice) { usdtPrice = calculatePrice(_amount) / 1e12; } /** * @dev To calculate the price in USD for given amount of tokens * @param _amount - Amount of tokens to calculate price * @notice Return result in 1e18 format */ function calculatePrice(uint256 _amount) public view returns (uint256) { require( _amount + totalTokensSold <= token_amount[maxStepIndex], "Insufficient token amount." ); return _calculateInternalCost(_amount, currentStep, totalTokensSold); } /** * @dev For sending ETH from contract * @param _recipient - Recipient address * @param _weiAmount - Amount of ETH to send in wei */ function _sendValue( address payable _recipient, uint256 _weiAmount ) internal { require(address(this).balance >= _weiAmount, "Low balance"); (bool success, ) = _recipient.call{value: _weiAmount}(""); require(success, "ETH Payment failed"); } /** * @dev Recursively calculate cost for specified conditions * @param _amount - Amount of tokens to calculate price * @param _currentStep - Starting step to calculate price * @param _totalTokensSold - Starting total token sold amount to calculate price */ function _calculateInternalCost( uint256 _amount, uint256 _currentStep, uint256 _totalTokensSold ) internal view returns (uint256 cost) { uint256 currentPrice = token_price[_currentStep]; uint256 currentAmount = token_amount[_currentStep]; if (_totalTokensSold + _amount <= currentAmount) { cost = _amount * currentPrice; } else { uint256 currentStageAmount = currentAmount - _totalTokensSold; uint256 nextStageAmount = _amount - currentStageAmount; cost = currentStageAmount * currentPrice + _calculateInternalCost( nextStageAmount, _currentStep + 1, currentAmount ); } return cost; } /** * @dev Calculate current step amount from total tokens sold amount */ function _getStepByTotalSoldAmount() internal view returns (uint8) { uint8 stepIndex = maxStepIndex; while (stepIndex > 0) { if (token_amount[stepIndex - 1] < totalTokensSold) break; stepIndex -= 1; } return stepIndex; } }
// 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 v4.4.1 (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() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // 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 (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 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.7.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.7.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 functionCall(target, data, "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"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(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) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(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) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason 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 { // 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: MIT pragma solidity 0.8.17; interface IAggregator { function latestRoundData() external view returns ( uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound ); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.17; interface IPresale { event SaleTimeSet(uint256 _start, uint256 _end, uint256 timestamp); event TokensBought( address indexed user, uint256 indexed tokensBought, uint256 amountPaid, uint256 timestamp ); event TokensClaimed( address indexed user, uint256 amount, uint256 timestamp ); event ClaimStartUpdated( uint256 prevValue, uint256 newValue, uint256 timestamp ); }
{ "evmVersion": "london", "libraries": {}, "metadata": { "bytecodeHash": "ipfs", "useLiteralContent": true }, "optimizer": { "enabled": true, "runs": 200 }, "remappings": [], "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"address","name":"_saleToken","type":"address"},{"internalType":"address","name":"_aggregatorInterface","type":"address"},{"internalType":"address","name":"_USDTInterface","type":"address"},{"internalType":"uint256[9]","name":"_token_amount","type":"uint256[9]"},{"internalType":"uint256[9]","name":"_token_price","type":"uint256[9]"},{"internalType":"uint256","name":"_startTime","type":"uint256"},{"internalType":"uint256","name":"_endTime","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"prevValue","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newValue","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"ClaimStartUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_start","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_end","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"SaleTimeSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokensBought","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amountPaid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"TokensBought","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"TokensClaimed","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"USDTInterface","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_users","type":"address[]"}],"name":"addToBlacklist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"aggregatorInterface","outputs":[{"internalType":"contract IAggregator","name":"","type":"address"}],"stateMutability":"view","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":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"buyWithUSDT","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"calculatePrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_startTime","type":"uint256"},{"internalType":"uint256","name":"_endTime","type":"uint256"}],"name":"changeSaleTimes","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claimStart","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_claimStart","type":"uint256"}],"name":"configureClaim","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"currentStep","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"endTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"ethBuyHelper","outputs":[{"internalType":"uint256","name":"ethAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getCurrentPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getLatestPrice","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":"address","name":"","type":"address"}],"name":"hasClaimed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":"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":"saleToken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"startTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"token_amount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"token_price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"usdtBuyHelper","outputs":[{"internalType":"uint256","name":"usdtPrice","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"userDeposits","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
60a06040523480156200001157600080fd5b50604051620021aa380380620021aa833981016040819052620000349162000394565b6000805460ff19169055620000493362000244565b60018055620000588862000244565b6001600160a01b038616620000b45760405162461bcd60e51b815260206004820152601760248201527f5a65726f2061676772656761746f72206164647265737300000000000000000060448201526064015b60405180910390fd5b6001600160a01b038516620001005760405162461bcd60e51b81526020600482015260116024820152705a65726f2055534454206164647265737360781b6044820152606401620000ab565b6001600160a01b038716620001585760405162461bcd60e51b815260206004820152601760248201527f5a65726f2073616c6520746f6b656e20616464726573730000000000000000006044820152606401620000ab565b818111620001985760405162461bcd60e51b815260206004820152600c60248201526b496e76616c69642074696d6560a01b6044820152606401620000ab565b6001600160a01b03878116608052601a80546001600160a01b03199081168984161790915560198054909116918716919091179055620001dc60078560096200029d565b50620001ec60108460096200029d565b50600382905560048190556040805183815260208101839052428183015290517f23f6ad8232d75562dd1c6b37dfc895af6bfc1ecd0fb3b88722c6a5e6b4dc9a209181900360600190a150505050505050506200042e565b600080546001600160a01b03838116610100818102610100600160a81b0319851617855560405193049190911692909183917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a35050565b8260098101928215620002ce579160200282015b82811115620002ce578251825591602001919060010190620002b1565b50620002dc929150620002e0565b5090565b5b80821115620002dc5760008155600101620002e1565b80516001600160a01b03811681146200030f57600080fd5b919050565b600082601f8301126200032657600080fd5b6040516101208082016001600160401b03811183821017156200035957634e487b7160e01b600052604160045260246000fd5b604052830181858211156200036d57600080fd5b845b82811015620003895780518252602091820191016200036f565b509195945050505050565b600080600080600080600080610300898b031215620003b257600080fd5b620003bd89620002f7565b9750620003cd60208a01620002f7565b9650620003dd60408a01620002f7565b9550620003ed60608a01620002f7565b9450620003fe8a60808b0162000314565b9350620004108a6101a08b0162000314565b6102c08a01516102e0909a0151989b979a5095989497939692505050565b608051611d52620004586000396000818161056e015281816108f801526111de0152611d526000f3fe6080604052600436106102045760003560e01c80637649b95711610118578063c49cc645116100a0578063eb91d37e1161006f578063eb91d37e14610590578063f04d688f146105a5578063f2fde38b146105bb578063f597573f146105db578063f9f92be4146105fb57600080fd5b8063c49cc64514610507578063ca712e9b14610527578063cd9f188214610547578063e985e3671461055c57600080fd5b80638da5cb5b116100e75780638da5cb5b1461045b5780638e15f47314610492578063935eb35f146104a7578063a7c60160146104c7578063ae104265146104e757600080fd5b80637649b957146103fd57806378e97925146104105780638456cb591461042657806389daf7991461043b57600080fd5b80633f4ba83a1161019b5780635c975abb1161016a5780635c975abb1461035e57806363b201171461038257806363e4087914610398578063715018a6146103b857806373b2e80e146103cd57600080fd5b80633f4ba83a146102fe5780634e71d92d146103135780635bc34f71146103285780635c71b9aa1461033e57600080fd5b806324128ee4116101d757806324128ee4146102885780632818553f146102a857806329a5a0b6146102c85780633197cbb6146102e857600080fd5b80630aca575a146102095780630ba36dcd146102315780630dc9c838146102515780631ce0fa4314610273575b600080fd5b34801561021557600080fd5b5061021e61062b565b6040519081526020015b60405180910390f35b34801561023d57600080fd5b5061021e61024c3660046119eb565b610639565b34801561025d57600080fd5b5061027161026c366004611a06565b61067e565b005b34801561027f57600080fd5b5061021e6106e7565b34801561029457600080fd5b5061021e6102a3366004611a28565b610730565b3480156102b457600080fd5b5061021e6102c3366004611a28565b610747565b3480156102d457600080fd5b5061021e6102e3366004611a28565b610757565b3480156102f457600080fd5b5061021e60045481565b34801561030a57600080fd5b5061027161078c565b34801561031f57600080fd5b5061027161079e565b34801561033457600080fd5b5061021e60065481565b34801561034a57600080fd5b50610271610359366004611a41565b610968565b34801561036a57600080fd5b5060005460ff165b6040519015158152602001610228565b34801561038e57600080fd5b5061021e60025481565b3480156103a457600080fd5b5061021e6103b3366004611a28565b610988565b3480156103c457600080fd5b50610271610999565b3480156103d957600080fd5b506103726103e83660046119eb565b601c6020526000908152604090205460ff1681565b61037261040b366004611a28565b6109ab565b34801561041c57600080fd5b5061021e60035481565b34801561043257600080fd5b50610271610c67565b34801561044757600080fd5b50610271610456366004611a6b565b610c77565b34801561046757600080fd5b5060005461010090046001600160a01b03165b6040516001600160a01b039091168152602001610228565b34801561049e57600080fd5b5061021e610cf5565b3480156104b357600080fd5b506102716104c2366004611a6b565b610d8c565b3480156104d357600080fd5b506103726104e2366004611a28565b610e05565b3480156104f357600080fd5b5061021e610502366004611a28565b611138565b34801561051357600080fd5b50601a5461047a906001600160a01b031681565b34801561053357600080fd5b50610372610542366004611a28565b6111aa565b34801561055357600080fd5b5061021e6112a2565b34801561056857600080fd5b5061047a7f000000000000000000000000000000000000000000000000000000000000000081565b34801561059c57600080fd5b5061021e6112b2565b3480156105b157600080fd5b5061021e60055481565b3480156105c757600080fd5b506102716105d63660046119eb565b6112c9565b3480156105e757600080fd5b5060195461047a906001600160a01b031681565b34801561060757600080fd5b506103726106163660046119eb565b601d6020526000908152604090205460ff1681565b6000600760085b0154905090565b6001600160a01b0381166000908152601c602052604081205460ff161561066257506000919050565b506001600160a01b03166000908152601b602052604090205490565b610686611342565b81600354146106955760038290555b80600454146106a45760048190555b6040805183815260208101839052428183015290517f23f6ad8232d75562dd1c6b37dfc895af6bfc1ecd0fb3b88722c6a5e6b4dc9a209181900360600190a15050565b600060065460001461071b57600760016006546107049190611b0c565b6009811061071457610714611ae0565b015461071e565b60005b60025461072b9190611b0c565b905090565b6007816009811061074057600080fd5b0154905081565b6010816009811061074057600080fd5b6000610761610cf5565b61076a83611138565b61077c90670de0b6b3a7640000611b1f565b6107869190611b36565b92915050565b610794611342565b61079c6113a2565b565b6107a66113f4565b6002600154036107d15760405162461bcd60e51b81526004016107c890611b58565b60405180910390fd5b600260015560055442108015906107ea57506000600554115b6108365760405162461bcd60e51b815260206004820152601960248201527f436c61696d20686173206e6f742073746172746564207965740000000000000060448201526064016107c8565b336000908152601c602052604090205460ff16156108885760405162461bcd60e51b815260206004820152600f60248201526e105b1c9958591e4818db185a5b5959608a1b60448201526064016107c8565b600061089333610639565b9050600081116108d85760405162461bcd60e51b815260206004820152601060248201526f4e6f7468696e6720746f20636c61696d60801b60448201526064016107c8565b336000818152601c60205260409020805460ff19166001179055610927907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316908361143a565b6040805182815242602082015233917f9923b4306c6c030f2bdfbf156517d5983b87e15b96176da122cd4f2effa4ba7b910160405180910390a25060018055565b610970611342565b6109846001600160a01b038316338361143a565b5050565b600064e8d4a5100061077c83611138565b6109a1611342565b61079c60006114a2565b60008160035442101580156109c257506004544211155b610a085760405162461bcd60e51b8152602060048201526017602482015276496e76616c69642074696d6520666f7220627579696e6760481b60448201526064016107c8565b60008111610a4e5760405162461bcd60e51b8152602060048201526013602482015272125b9d985b1a59081cd85b1948185b5bdd5b9d606a1b60448201526064016107c8565b600f54600254610a5e9083611b8f565b1115610aa15760405162461bcd60e51b8152602060048201526012602482015271496e73756666696369656e742066756e647360701b60448201526064016107c8565b336000908152601d602052604090205460ff1615610af85760405162461bcd60e51b8152602060048201526014602482015273165bdd48185c99481a5b88189b1858dadb1a5cdd60621b60448201526064016107c8565b610b006113f4565b600260015403610b225760405162461bcd60e51b81526004016107c890611b58565b60026001556000610b3284610757565b905080341015610b735760405162461bcd60e51b815260206004820152600c60248201526b13195cdcc81c185e5b595b9d60a21b60448201526064016107c8565b600054610b8f9061010090046001600160a01b03165b826114fb565b6000610b9b8234611b0c565b90508015610bac57610bac33610b89565b8460026000828254610bbe9190611b8f565b90915550610bd6905085670de0b6b3a7640000611b1f565b336000908152601b602052604081208054909190610bf5908490611b8f565b9091555060009050610c056115d1565b90506006548160ff161115610c1c5760ff81166006555b60408051848152426020820152879133917f22f6af6e13430e3e7b6418d01e6a48c1fbce5e8cb1698901fc95134b4b1c58ad910160405180910390a350506001808055949350505050565b610c6f611342565b61079c61161b565b610c7f611342565b8060005b81811015610cef576000601d81868685610c9c81611ba2565b9650818110610cad57610cad611ae0565b9050602002016020810190610cc291906119eb565b6001600160a01b031681526020810191909152604001600020805460ff1916911515919091179055610c83565b50505050565b600080601a60009054906101000a90046001600160a01b03166001600160a01b031663feaf968c6040518163ffffffff1660e01b815260040160a060405180830381865afa158015610d4b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d6f9190611bd5565b505050915050806402540be400610d869190611c25565b91505090565b610d94611342565b8060005b81811015610cef576001601d6000868685610db281611ba2565b9650818110610dc357610dc3611ae0565b9050602002016020810190610dd891906119eb565b6001600160a01b031681526020810191909152604001600020805460ff1916911515919091179055610d98565b6000816003544210158015610e1c57506004544211155b610e625760405162461bcd60e51b8152602060048201526017602482015276496e76616c69642074696d6520666f7220627579696e6760481b60448201526064016107c8565b60008111610ea85760405162461bcd60e51b8152602060048201526013602482015272125b9d985b1a59081cd85b1948185b5bdd5b9d606a1b60448201526064016107c8565b600f54600254610eb89083611b8f565b1115610efb5760405162461bcd60e51b8152602060048201526012602482015271496e73756666696369656e742066756e647360701b60448201526064016107c8565b336000908152601d602052604090205460ff1615610f525760405162461bcd60e51b8152602060048201526014602482015273165bdd48185c99481a5b88189b1858dadb1a5cdd60621b60448201526064016107c8565b610f5a6113f4565b600260015403610f7c5760405162461bcd60e51b81526004016107c890611b58565b60026001556000610f8c84610988565b6019549091506001600160a01b031663dd62ed3e336040516001600160e01b031960e084901b1681526001600160a01b039091166004820152306024820152604401602060405180830381865afa158015610feb573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061100f9190611c55565b8111156110555760405162461bcd60e51b81526020600482015260146024820152734e6f7420656e6f75676820616c6c6f77616e636560601b60448201526064016107c8565b61107e3360005461010090046001600160a01b03166019546001600160a01b0316919084611658565b83600260008282546110909190611b8f565b909155506110a8905084670de0b6b3a7640000611b1f565b336000908152601b6020526040812080549091906110c7908490611b8f565b90915550600090506110d76115d1565b90506006548160ff1611156110ee5760ff81166006555b60408051838152426020820152869133917f22f6af6e13430e3e7b6418d01e6a48c1fbce5e8cb1698901fc95134b4b1c58ad910160405180910390a3505060018080559392505050565b600060076008015460025461114d9084611b8f565b111561119b5760405162461bcd60e51b815260206004820152601a60248201527f496e73756666696369656e7420746f6b656e20616d6f756e742e00000000000060448201526064016107c8565b61078682600654600254611690565b60006111b4611342565b6002546111c990670de0b6b3a7640000611b1f565b6040516370a0823160e01b81523060048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a0823190602401602060405180830381865afa15801561122d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112519190611c55565b10156112945760405162461bcd60e51b81526020600482015260126024820152714e6f7420656e6f7567682062616c616e636560701b60448201526064016107c8565b50600581905560015b919050565b600061072b600254600080611690565b600060106006546009811061063257610632611ae0565b6112d1611342565b6001600160a01b0381166113365760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016107c8565b61133f816114a2565b50565b6000546001600160a01b0361010090910416331461079c5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107c8565b6113aa611738565b6000805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b60005460ff161561079c5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b60448201526064016107c8565b6040516001600160a01b03831660248201526044810182905261149d90849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152611781565b505050565b600080546001600160a01b03838116610100818102610100600160a81b0319851617855560405193049190911692909183917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a35050565b804710156115395760405162461bcd60e51b815260206004820152600b60248201526a4c6f772062616c616e636560a81b60448201526064016107c8565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114611586576040519150601f19603f3d011682016040523d82523d6000602084013e61158b565b606091505b505090508061149d5760405162461bcd60e51b81526020600482015260126024820152711155120814185e5b595b9d0819985a5b195960721b60448201526064016107c8565b600060085b60ff81161561129d5760025460076115ef600184611c6e565b60ff166009811061160257611602611ae0565b01541061129d57611614600182611c6e565b90506115d6565b6116236113f4565b6000805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586113d73390565b6040516001600160a01b0380851660248301528316604482015260648101829052610cef9085906323b872dd60e01b90608401611466565b600080601084600981106116a6576116a6611ae0565b015490506000600785600981106116bf576116bf611ae0565b01549050806116ce8786611b8f565b116116e4576116dd8287611b1f565b925061172e565b60006116f08583611b0c565b905060006116fe8289611b0c565b90506117158161170f896001611b8f565b85611690565b61171f8584611b1f565b6117299190611b8f565b945050505b50505b9392505050565b60005460ff1661079c5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b60448201526064016107c8565b60006117d6826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166118539092919063ffffffff16565b80519091501561149d57808060200190518101906117f49190611c87565b61149d5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016107c8565b6060611862848460008561186a565b949350505050565b6060824710156118cb5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084016107c8565b6001600160a01b0385163b6119225760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016107c8565b600080866001600160a01b0316858760405161193e9190611ccd565b60006040518083038185875af1925050503d806000811461197b576040519150601f19603f3d011682016040523d82523d6000602084013e611980565b606091505b509150915061199082828661199b565b979650505050505050565b606083156119aa575081611731565b8251156119ba5782518084602001fd5b8160405162461bcd60e51b81526004016107c89190611ce9565b80356001600160a01b038116811461129d57600080fd5b6000602082840312156119fd57600080fd5b611731826119d4565b60008060408385031215611a1957600080fd5b50508035926020909101359150565b600060208284031215611a3a57600080fd5b5035919050565b60008060408385031215611a5457600080fd5b611a5d836119d4565b946020939093013593505050565b60008060208385031215611a7e57600080fd5b823567ffffffffffffffff80821115611a9657600080fd5b818501915085601f830112611aaa57600080fd5b813581811115611ab957600080fd5b8660208260051b8501011115611ace57600080fd5b60209290920196919550909350505050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b8181038181111561078657610786611af6565b808202811582820484141761078657610786611af6565b600082611b5357634e487b7160e01b600052601260045260246000fd5b500490565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b8082018082111561078657610786611af6565b600060018201611bb457611bb4611af6565b5060010190565b805169ffffffffffffffffffff8116811461129d57600080fd5b600080600080600060a08688031215611bed57600080fd5b611bf686611bbb565b9450602086015193506040860151925060608601519150611c1960808701611bbb565b90509295509295909350565b80820260008212600160ff1b84141615611c4157611c41611af6565b818105831482151761078657610786611af6565b600060208284031215611c6757600080fd5b5051919050565b60ff828116828216039081111561078657610786611af6565b600060208284031215611c9957600080fd5b8151801515811461173157600080fd5b60005b83811015611cc4578181015183820152602001611cac565b50506000910152565b60008251611cdf818460208701611ca9565b9190910192915050565b6020815260008251806020840152611d08816040850160208701611ca9565b601f01601f1916919091016040019291505056fea26469706673582212207b269bbc1a46dc3ea21624720b01710aa80c2edaacf76fdbb0ec0a1ea3773ea564736f6c634300081100330000000000000000000000002a305245e287311a73772d0601238857431edaae000000000000000000000000a44ad36c93a890ad07c5ac7e2c090b6c14d1dcf70000000000000000000000005f4ec3df9cbd43714fe2740f5e3616155c5b8419000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec70000000000000000000000000000000000000000000000000000000008583b000000000000000000000000000000000000000000000000000000000011bb7d60000000000000000000000000000000000000000000000000000000001b1ebfc0000000000000000000000000000000000000000000000000000000002114a0c000000000000000000000000000000000000000000000000000000000270a81c0000000000000000000000000000000000000000000000000000000002d0062c00000000000000000000000000000000000000000000000000000000032f643c00000000000000000000000000000000000000000000000000000000038ec24c00000000000000000000000000000000000000000000000000000000044d7e6c0000000000000000000000000000000000000000000000000001c6bf526340000000000000000000000000000000000000000000000000000002386f26fc10000000000000000000000000000000000000000000000000000002aa1efb94e0000000000000000000000000000000000000000000000000000002e2f6e5e1480000000000000000000000000000000000000000000000000000031bced02db000000000000000000000000000000000000000000000000000000354a6ba7a18000000000000000000000000000000000000000000000000000003c6568f12e8000000000000000000000000000000000000000000000000000003ff2e795f5000000000000000000000000000000000000000000000000000000470de4df8200000000000000000000000000000000000000000000000000000000000064444ad000000000000000000000000000000000000000000000000000000000648a2a50
Deployed Bytecode
0x6080604052600436106102045760003560e01c80637649b95711610118578063c49cc645116100a0578063eb91d37e1161006f578063eb91d37e14610590578063f04d688f146105a5578063f2fde38b146105bb578063f597573f146105db578063f9f92be4146105fb57600080fd5b8063c49cc64514610507578063ca712e9b14610527578063cd9f188214610547578063e985e3671461055c57600080fd5b80638da5cb5b116100e75780638da5cb5b1461045b5780638e15f47314610492578063935eb35f146104a7578063a7c60160146104c7578063ae104265146104e757600080fd5b80637649b957146103fd57806378e97925146104105780638456cb591461042657806389daf7991461043b57600080fd5b80633f4ba83a1161019b5780635c975abb1161016a5780635c975abb1461035e57806363b201171461038257806363e4087914610398578063715018a6146103b857806373b2e80e146103cd57600080fd5b80633f4ba83a146102fe5780634e71d92d146103135780635bc34f71146103285780635c71b9aa1461033e57600080fd5b806324128ee4116101d757806324128ee4146102885780632818553f146102a857806329a5a0b6146102c85780633197cbb6146102e857600080fd5b80630aca575a146102095780630ba36dcd146102315780630dc9c838146102515780631ce0fa4314610273575b600080fd5b34801561021557600080fd5b5061021e61062b565b6040519081526020015b60405180910390f35b34801561023d57600080fd5b5061021e61024c3660046119eb565b610639565b34801561025d57600080fd5b5061027161026c366004611a06565b61067e565b005b34801561027f57600080fd5b5061021e6106e7565b34801561029457600080fd5b5061021e6102a3366004611a28565b610730565b3480156102b457600080fd5b5061021e6102c3366004611a28565b610747565b3480156102d457600080fd5b5061021e6102e3366004611a28565b610757565b3480156102f457600080fd5b5061021e60045481565b34801561030a57600080fd5b5061027161078c565b34801561031f57600080fd5b5061027161079e565b34801561033457600080fd5b5061021e60065481565b34801561034a57600080fd5b50610271610359366004611a41565b610968565b34801561036a57600080fd5b5060005460ff165b6040519015158152602001610228565b34801561038e57600080fd5b5061021e60025481565b3480156103a457600080fd5b5061021e6103b3366004611a28565b610988565b3480156103c457600080fd5b50610271610999565b3480156103d957600080fd5b506103726103e83660046119eb565b601c6020526000908152604090205460ff1681565b61037261040b366004611a28565b6109ab565b34801561041c57600080fd5b5061021e60035481565b34801561043257600080fd5b50610271610c67565b34801561044757600080fd5b50610271610456366004611a6b565b610c77565b34801561046757600080fd5b5060005461010090046001600160a01b03165b6040516001600160a01b039091168152602001610228565b34801561049e57600080fd5b5061021e610cf5565b3480156104b357600080fd5b506102716104c2366004611a6b565b610d8c565b3480156104d357600080fd5b506103726104e2366004611a28565b610e05565b3480156104f357600080fd5b5061021e610502366004611a28565b611138565b34801561051357600080fd5b50601a5461047a906001600160a01b031681565b34801561053357600080fd5b50610372610542366004611a28565b6111aa565b34801561055357600080fd5b5061021e6112a2565b34801561056857600080fd5b5061047a7f000000000000000000000000a44ad36c93a890ad07c5ac7e2c090b6c14d1dcf781565b34801561059c57600080fd5b5061021e6112b2565b3480156105b157600080fd5b5061021e60055481565b3480156105c757600080fd5b506102716105d63660046119eb565b6112c9565b3480156105e757600080fd5b5060195461047a906001600160a01b031681565b34801561060757600080fd5b506103726106163660046119eb565b601d6020526000908152604090205460ff1681565b6000600760085b0154905090565b6001600160a01b0381166000908152601c602052604081205460ff161561066257506000919050565b506001600160a01b03166000908152601b602052604090205490565b610686611342565b81600354146106955760038290555b80600454146106a45760048190555b6040805183815260208101839052428183015290517f23f6ad8232d75562dd1c6b37dfc895af6bfc1ecd0fb3b88722c6a5e6b4dc9a209181900360600190a15050565b600060065460001461071b57600760016006546107049190611b0c565b6009811061071457610714611ae0565b015461071e565b60005b60025461072b9190611b0c565b905090565b6007816009811061074057600080fd5b0154905081565b6010816009811061074057600080fd5b6000610761610cf5565b61076a83611138565b61077c90670de0b6b3a7640000611b1f565b6107869190611b36565b92915050565b610794611342565b61079c6113a2565b565b6107a66113f4565b6002600154036107d15760405162461bcd60e51b81526004016107c890611b58565b60405180910390fd5b600260015560055442108015906107ea57506000600554115b6108365760405162461bcd60e51b815260206004820152601960248201527f436c61696d20686173206e6f742073746172746564207965740000000000000060448201526064016107c8565b336000908152601c602052604090205460ff16156108885760405162461bcd60e51b815260206004820152600f60248201526e105b1c9958591e4818db185a5b5959608a1b60448201526064016107c8565b600061089333610639565b9050600081116108d85760405162461bcd60e51b815260206004820152601060248201526f4e6f7468696e6720746f20636c61696d60801b60448201526064016107c8565b336000818152601c60205260409020805460ff19166001179055610927907f000000000000000000000000a44ad36c93a890ad07c5ac7e2c090b6c14d1dcf76001600160a01b0316908361143a565b6040805182815242602082015233917f9923b4306c6c030f2bdfbf156517d5983b87e15b96176da122cd4f2effa4ba7b910160405180910390a25060018055565b610970611342565b6109846001600160a01b038316338361143a565b5050565b600064e8d4a5100061077c83611138565b6109a1611342565b61079c60006114a2565b60008160035442101580156109c257506004544211155b610a085760405162461bcd60e51b8152602060048201526017602482015276496e76616c69642074696d6520666f7220627579696e6760481b60448201526064016107c8565b60008111610a4e5760405162461bcd60e51b8152602060048201526013602482015272125b9d985b1a59081cd85b1948185b5bdd5b9d606a1b60448201526064016107c8565b600f54600254610a5e9083611b8f565b1115610aa15760405162461bcd60e51b8152602060048201526012602482015271496e73756666696369656e742066756e647360701b60448201526064016107c8565b336000908152601d602052604090205460ff1615610af85760405162461bcd60e51b8152602060048201526014602482015273165bdd48185c99481a5b88189b1858dadb1a5cdd60621b60448201526064016107c8565b610b006113f4565b600260015403610b225760405162461bcd60e51b81526004016107c890611b58565b60026001556000610b3284610757565b905080341015610b735760405162461bcd60e51b815260206004820152600c60248201526b13195cdcc81c185e5b595b9d60a21b60448201526064016107c8565b600054610b8f9061010090046001600160a01b03165b826114fb565b6000610b9b8234611b0c565b90508015610bac57610bac33610b89565b8460026000828254610bbe9190611b8f565b90915550610bd6905085670de0b6b3a7640000611b1f565b336000908152601b602052604081208054909190610bf5908490611b8f565b9091555060009050610c056115d1565b90506006548160ff161115610c1c5760ff81166006555b60408051848152426020820152879133917f22f6af6e13430e3e7b6418d01e6a48c1fbce5e8cb1698901fc95134b4b1c58ad910160405180910390a350506001808055949350505050565b610c6f611342565b61079c61161b565b610c7f611342565b8060005b81811015610cef576000601d81868685610c9c81611ba2565b9650818110610cad57610cad611ae0565b9050602002016020810190610cc291906119eb565b6001600160a01b031681526020810191909152604001600020805460ff1916911515919091179055610c83565b50505050565b600080601a60009054906101000a90046001600160a01b03166001600160a01b031663feaf968c6040518163ffffffff1660e01b815260040160a060405180830381865afa158015610d4b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d6f9190611bd5565b505050915050806402540be400610d869190611c25565b91505090565b610d94611342565b8060005b81811015610cef576001601d6000868685610db281611ba2565b9650818110610dc357610dc3611ae0565b9050602002016020810190610dd891906119eb565b6001600160a01b031681526020810191909152604001600020805460ff1916911515919091179055610d98565b6000816003544210158015610e1c57506004544211155b610e625760405162461bcd60e51b8152602060048201526017602482015276496e76616c69642074696d6520666f7220627579696e6760481b60448201526064016107c8565b60008111610ea85760405162461bcd60e51b8152602060048201526013602482015272125b9d985b1a59081cd85b1948185b5bdd5b9d606a1b60448201526064016107c8565b600f54600254610eb89083611b8f565b1115610efb5760405162461bcd60e51b8152602060048201526012602482015271496e73756666696369656e742066756e647360701b60448201526064016107c8565b336000908152601d602052604090205460ff1615610f525760405162461bcd60e51b8152602060048201526014602482015273165bdd48185c99481a5b88189b1858dadb1a5cdd60621b60448201526064016107c8565b610f5a6113f4565b600260015403610f7c5760405162461bcd60e51b81526004016107c890611b58565b60026001556000610f8c84610988565b6019549091506001600160a01b031663dd62ed3e336040516001600160e01b031960e084901b1681526001600160a01b039091166004820152306024820152604401602060405180830381865afa158015610feb573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061100f9190611c55565b8111156110555760405162461bcd60e51b81526020600482015260146024820152734e6f7420656e6f75676820616c6c6f77616e636560601b60448201526064016107c8565b61107e3360005461010090046001600160a01b03166019546001600160a01b0316919084611658565b83600260008282546110909190611b8f565b909155506110a8905084670de0b6b3a7640000611b1f565b336000908152601b6020526040812080549091906110c7908490611b8f565b90915550600090506110d76115d1565b90506006548160ff1611156110ee5760ff81166006555b60408051838152426020820152869133917f22f6af6e13430e3e7b6418d01e6a48c1fbce5e8cb1698901fc95134b4b1c58ad910160405180910390a3505060018080559392505050565b600060076008015460025461114d9084611b8f565b111561119b5760405162461bcd60e51b815260206004820152601a60248201527f496e73756666696369656e7420746f6b656e20616d6f756e742e00000000000060448201526064016107c8565b61078682600654600254611690565b60006111b4611342565b6002546111c990670de0b6b3a7640000611b1f565b6040516370a0823160e01b81523060048201527f000000000000000000000000a44ad36c93a890ad07c5ac7e2c090b6c14d1dcf76001600160a01b0316906370a0823190602401602060405180830381865afa15801561122d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112519190611c55565b10156112945760405162461bcd60e51b81526020600482015260126024820152714e6f7420656e6f7567682062616c616e636560701b60448201526064016107c8565b50600581905560015b919050565b600061072b600254600080611690565b600060106006546009811061063257610632611ae0565b6112d1611342565b6001600160a01b0381166113365760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016107c8565b61133f816114a2565b50565b6000546001600160a01b0361010090910416331461079c5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107c8565b6113aa611738565b6000805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b60005460ff161561079c5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b60448201526064016107c8565b6040516001600160a01b03831660248201526044810182905261149d90849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152611781565b505050565b600080546001600160a01b03838116610100818102610100600160a81b0319851617855560405193049190911692909183917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a35050565b804710156115395760405162461bcd60e51b815260206004820152600b60248201526a4c6f772062616c616e636560a81b60448201526064016107c8565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114611586576040519150601f19603f3d011682016040523d82523d6000602084013e61158b565b606091505b505090508061149d5760405162461bcd60e51b81526020600482015260126024820152711155120814185e5b595b9d0819985a5b195960721b60448201526064016107c8565b600060085b60ff81161561129d5760025460076115ef600184611c6e565b60ff166009811061160257611602611ae0565b01541061129d57611614600182611c6e565b90506115d6565b6116236113f4565b6000805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586113d73390565b6040516001600160a01b0380851660248301528316604482015260648101829052610cef9085906323b872dd60e01b90608401611466565b600080601084600981106116a6576116a6611ae0565b015490506000600785600981106116bf576116bf611ae0565b01549050806116ce8786611b8f565b116116e4576116dd8287611b1f565b925061172e565b60006116f08583611b0c565b905060006116fe8289611b0c565b90506117158161170f896001611b8f565b85611690565b61171f8584611b1f565b6117299190611b8f565b945050505b50505b9392505050565b60005460ff1661079c5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b60448201526064016107c8565b60006117d6826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166118539092919063ffffffff16565b80519091501561149d57808060200190518101906117f49190611c87565b61149d5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016107c8565b6060611862848460008561186a565b949350505050565b6060824710156118cb5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084016107c8565b6001600160a01b0385163b6119225760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016107c8565b600080866001600160a01b0316858760405161193e9190611ccd565b60006040518083038185875af1925050503d806000811461197b576040519150601f19603f3d011682016040523d82523d6000602084013e611980565b606091505b509150915061199082828661199b565b979650505050505050565b606083156119aa575081611731565b8251156119ba5782518084602001fd5b8160405162461bcd60e51b81526004016107c89190611ce9565b80356001600160a01b038116811461129d57600080fd5b6000602082840312156119fd57600080fd5b611731826119d4565b60008060408385031215611a1957600080fd5b50508035926020909101359150565b600060208284031215611a3a57600080fd5b5035919050565b60008060408385031215611a5457600080fd5b611a5d836119d4565b946020939093013593505050565b60008060208385031215611a7e57600080fd5b823567ffffffffffffffff80821115611a9657600080fd5b818501915085601f830112611aaa57600080fd5b813581811115611ab957600080fd5b8660208260051b8501011115611ace57600080fd5b60209290920196919550909350505050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b8181038181111561078657610786611af6565b808202811582820484141761078657610786611af6565b600082611b5357634e487b7160e01b600052601260045260246000fd5b500490565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b8082018082111561078657610786611af6565b600060018201611bb457611bb4611af6565b5060010190565b805169ffffffffffffffffffff8116811461129d57600080fd5b600080600080600060a08688031215611bed57600080fd5b611bf686611bbb565b9450602086015193506040860151925060608601519150611c1960808701611bbb565b90509295509295909350565b80820260008212600160ff1b84141615611c4157611c41611af6565b818105831482151761078657610786611af6565b600060208284031215611c6757600080fd5b5051919050565b60ff828116828216039081111561078657610786611af6565b600060208284031215611c9957600080fd5b8151801515811461173157600080fd5b60005b83811015611cc4578181015183820152602001611cac565b50506000910152565b60008251611cdf818460208701611ca9565b9190910192915050565b6020815260008251806020840152611d08816040850160208701611ca9565b601f01601f1916919091016040019291505056fea26469706673582212207b269bbc1a46dc3ea21624720b01710aa80c2edaacf76fdbb0ec0a1ea3773ea564736f6c63430008110033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000002a305245e287311a73772d0601238857431edaae000000000000000000000000a44ad36c93a890ad07c5ac7e2c090b6c14d1dcf70000000000000000000000005f4ec3df9cbd43714fe2740f5e3616155c5b8419000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec70000000000000000000000000000000000000000000000000000000008583b000000000000000000000000000000000000000000000000000000000011bb7d60000000000000000000000000000000000000000000000000000000001b1ebfc0000000000000000000000000000000000000000000000000000000002114a0c000000000000000000000000000000000000000000000000000000000270a81c0000000000000000000000000000000000000000000000000000000002d0062c00000000000000000000000000000000000000000000000000000000032f643c00000000000000000000000000000000000000000000000000000000038ec24c00000000000000000000000000000000000000000000000000000000044d7e6c0000000000000000000000000000000000000000000000000001c6bf526340000000000000000000000000000000000000000000000000000002386f26fc10000000000000000000000000000000000000000000000000000002aa1efb94e0000000000000000000000000000000000000000000000000000002e2f6e5e1480000000000000000000000000000000000000000000000000000031bced02db000000000000000000000000000000000000000000000000000000354a6ba7a18000000000000000000000000000000000000000000000000000003c6568f12e8000000000000000000000000000000000000000000000000000003ff2e795f5000000000000000000000000000000000000000000000000000000470de4df8200000000000000000000000000000000000000000000000000000000000064444ad000000000000000000000000000000000000000000000000000000000648a2a50
-----Decoded View---------------
Arg [0] : _owner (address): 0x2A305245E287311A73772d0601238857431EDAAE
Arg [1] : _saleToken (address): 0xa44aD36C93a890AD07c5aC7E2c090b6c14D1dcF7
Arg [2] : _aggregatorInterface (address): 0x5f4eC3Df9cbd43714FE2740f5E3616155c5b8419
Arg [3] : _USDTInterface (address): 0xdAC17F958D2ee523a2206206994597C13D831ec7
Arg [4] : _token_amount (uint256[9]): 140000000,297500000,455000000,555000000,655000000,755000000,855000000,955000000,1155000000
Arg [5] : _token_price (uint256[9]): 8000000000000000,10000000000000000,12000000000000000,13000000000000000,14000000000000000,15000000000000000,17000000000000000,18000000000000000,20000000000000000
Arg [6] : _startTime (uint256): 1682197200
Arg [7] : _endTime (uint256): 1686776400
-----Encoded View---------------
24 Constructor Arguments found :
Arg [0] : 0000000000000000000000002a305245e287311a73772d0601238857431edaae
Arg [1] : 000000000000000000000000a44ad36c93a890ad07c5ac7e2c090b6c14d1dcf7
Arg [2] : 0000000000000000000000005f4ec3df9cbd43714fe2740f5e3616155c5b8419
Arg [3] : 000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec7
Arg [4] : 0000000000000000000000000000000000000000000000000000000008583b00
Arg [5] : 0000000000000000000000000000000000000000000000000000000011bb7d60
Arg [6] : 000000000000000000000000000000000000000000000000000000001b1ebfc0
Arg [7] : 000000000000000000000000000000000000000000000000000000002114a0c0
Arg [8] : 00000000000000000000000000000000000000000000000000000000270a81c0
Arg [9] : 000000000000000000000000000000000000000000000000000000002d0062c0
Arg [10] : 0000000000000000000000000000000000000000000000000000000032f643c0
Arg [11] : 0000000000000000000000000000000000000000000000000000000038ec24c0
Arg [12] : 0000000000000000000000000000000000000000000000000000000044d7e6c0
Arg [13] : 000000000000000000000000000000000000000000000000001c6bf526340000
Arg [14] : 000000000000000000000000000000000000000000000000002386f26fc10000
Arg [15] : 000000000000000000000000000000000000000000000000002aa1efb94e0000
Arg [16] : 000000000000000000000000000000000000000000000000002e2f6e5e148000
Arg [17] : 0000000000000000000000000000000000000000000000000031bced02db0000
Arg [18] : 00000000000000000000000000000000000000000000000000354a6ba7a18000
Arg [19] : 000000000000000000000000000000000000000000000000003c6568f12e8000
Arg [20] : 000000000000000000000000000000000000000000000000003ff2e795f50000
Arg [21] : 00000000000000000000000000000000000000000000000000470de4df820000
Arg [22] : 0000000000000000000000000000000000000000000000000000000064444ad0
Arg [23] : 00000000000000000000000000000000000000000000000000000000648a2a50
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
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.