Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 1 from a total of 1 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
0x60806040 | 15925972 | 670 days ago | IN | 0 ETH | 0.05627295 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
Presale
Compiler Version
v0.8.9+commit.e5eed63a
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
//SPDX-License-Identifier: MIT pragma solidity 0.8.9; import "@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol"; import "@openzeppelin/contracts-upgradeable/utils/AddressUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol"; import "@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.sol"; interface Aggregator { function latestRoundData() external view returns ( uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound ); } contract Presale is Initializable, ReentrancyGuardUpgradeable, OwnableUpgradeable, PausableUpgradeable { uint256 public salePrice; uint256 public totalTokens; uint256 public inSale; uint256 public startTime; uint256 public endTime; uint256 public claimStart; address public saleToken; uint256 public baseDecimals; uint256 public usdRaised; uint256 public refPercent; uint public numberOfParticipants; IERC20Upgradeable public USDCInterface; Aggregator internal aggregatorInterface; // https://docs.chain.link/docs/ethereum-addresses/ => (ETH / USD) mapping(address => uint256) public userDeposits; mapping(address => bool) public hasClaimed; mapping(address => uint256) public userRefUSDCEarned; mapping(address => uint256) public userRefETHEarned; mapping(address => mapping(address => bool)) public invitedUsers; mapping(address => uint256) public countInvitedUsers; address public fundWallet; event SaleTimeSet(uint256 _start, uint256 _end, uint256 timestamp); event SaleTimeUpdated( bytes32 indexed key, uint256 prevValue, uint256 newValue, uint256 timestamp ); event TokensBought( address indexed user, uint256 indexed tokensBought, address indexed purchaseToken, uint256 amountPaid, uint256 timestamp, uint256 usdValue, address ref, uint256 refAmount ); event TokensAdded( address indexed token, uint256 noOfTokens, uint256 timestamp ); event TokensClaimed( address indexed user, uint256 amount, uint256 timestamp ); event ClaimStartUpdated( uint256 prevValue, uint256 newValue, uint256 timestamp ); /// @custom:oz-upgrades-unsafe-allow constructor constructor() initializer {} function initialize( address _oracle, address _usdc, uint256 _startTime, uint256 _endTime ) external initializer { require(_oracle != address(0), "Zero aggregator address"); require(_usdc != address(0), "Zero USDC address"); require( _startTime > block.timestamp && _endTime > _startTime, "Invalid time" ); __Pausable_init_unchained(); __Ownable_init_unchained(); __ReentrancyGuard_init_unchained(); salePrice = 0.001 * (10**18); //0.001 USD totalTokens = 9_667_000_000; inSale = totalTokens; baseDecimals = (10**18); aggregatorInterface = Aggregator(_oracle); USDCInterface = IERC20Upgradeable(_usdc); startTime = _startTime; endTime = _endTime; usdRaised = 0; refPercent = 5; fundWallet = owner(); emit SaleTimeSet(startTime, endTime, block.timestamp); } function pause() external onlyOwner { _pause(); } function unpause() external onlyOwner { _unpause(); } function calculatePrice(uint256 _amount) public view returns (uint256 totalValue) { uint256 totalSold = totalTokens - inSale; if (totalSold + _amount <= 1_000_000_000) { return (_amount * salePrice); } else { uint256 extra = (totalSold + _amount) - 1_000_000_000; uint256 _salePrice = salePrice; if (totalSold >= 1_000_000_000) { _salePrice = (_salePrice + (0.00025 * (10**18))) + (((totalSold - 1_000_000_000) / 1_000_000_000) * (0.0002 * (10**18))); uint256 period = _amount / 1_000_000_000; if (period == 0) { return (_amount * (_salePrice)); } else { while (period > 0) { totalValue = totalValue + (1_000_000_000 * _salePrice); _amount -= 1_000_000_000; _salePrice += (0.00025 * (10**18)); period--; } if (_amount > 0) { totalValue += (_amount * _salePrice); } } } else { totalValue = (_amount - extra) * _salePrice; if (extra <= 1_000_000_000) { return totalValue + (extra * ((_salePrice * 125) / 100)); } else { while (extra >= 1_000_000_000) { _salePrice += (0.00025 * (10**18)); totalValue = totalValue + (1_000_000_000 * _salePrice); extra -= 1_000_000_000; } if (extra > 0) { _salePrice += (0.00025 * (10**18)); totalValue += (extra * _salePrice); } return totalValue; } } } } function changeSaleTimes(uint256 _startTime, uint256 _endTime) external onlyOwner { require(_startTime > 0 || _endTime > 0, "Invalid parameters"); if (_startTime > 0) { require(block.timestamp < startTime, "Sale already started"); require(block.timestamp < _startTime, "Sale time in past"); uint256 prevValue = startTime; startTime = _startTime; emit SaleTimeUpdated( bytes32("START"), prevValue, _startTime, block.timestamp ); } if (_endTime > 0) { require(block.timestamp < endTime, "Sale already ended"); require(_endTime > startTime, "Invalid endTime"); uint256 prevValue = endTime; endTime = _endTime; emit SaleTimeUpdated( bytes32("END"), prevValue, _endTime, block.timestamp ); } } function getLatestPrice() public view returns (uint256) { (, int256 price, , , ) = aggregatorInterface.latestRoundData(); price = (price * (10**10)); return uint256(price); } modifier checkSaleState(uint256 amount) { require( block.timestamp >= startTime && block.timestamp <= endTime, "Invalid time for buying" ); require(amount > 0 && amount <= inSale, "Invalid sale amount"); _; } function buyWithUSDC(uint256 amount, address ref) external checkSaleState(amount) whenNotPaused returns (bool) { uint256 usdPrice = calculatePrice(amount); usdPrice = usdPrice / (10**12); inSale -= amount; if(userDeposits[_msgSender()] == 0){ numberOfParticipants += 1; } userDeposits[_msgSender()] += (amount * baseDecimals); uint256 ourAllowance = USDCInterface.allowance( _msgSender(), address(this) ); usdRaised = usdRaised + usdPrice; require(usdPrice <= ourAllowance, "Make sure to add enough allowance"); uint256 amountUsdForReferral = 0; if(ref != address(0)){ require(msg.sender != ref, "can't refer yourself"); amountUsdForReferral = usdPrice * refPercent / 100; uint256 amountUsdForPool = usdPrice - amountUsdForReferral; (bool successPool, ) = address(USDCInterface).call( abi.encodeWithSignature( "transferFrom(address,address,uint256)", _msgSender(), fundWallet, amountUsdForPool ) ); require(successPool, "Token payment failed"); (bool successReferral, ) = address(USDCInterface).call( abi.encodeWithSignature( "transferFrom(address,address,uint256)", _msgSender(), ref, amountUsdForReferral ) ); require(successReferral, "Token payment referral failed"); userRefUSDCEarned[ref] += amountUsdForReferral; if(invitedUsers[ref][msg.sender] == false) { invitedUsers[ref][msg.sender] = true; countInvitedUsers[ref] += 1; } }else{ (bool success, ) = address(USDCInterface).call( abi.encodeWithSignature( "transferFrom(address,address,uint256)", _msgSender(), fundWallet, usdPrice ) ); require(success, "Token payment failed"); } emit TokensBought( _msgSender(), amount, address(USDCInterface), usdPrice, block.timestamp, usdPrice, ref, amountUsdForReferral ); return true; } function buyWithEth(uint256 amount, address ref) external payable checkSaleState(amount) whenNotPaused nonReentrant returns (bool) { uint256 usdPrice = calculatePrice(amount); uint256 ethAmount = (usdPrice * baseDecimals) / getLatestPrice(); require(msg.value >= ethAmount, "Less payment"); uint256 excess = msg.value - ethAmount; inSale -= amount; if(userDeposits[_msgSender()] == 0){ numberOfParticipants += 1; } userDeposits[_msgSender()] += (amount * baseDecimals); uint256 usdPriceValue = usdPrice / (10**12); usdRaised = usdRaised + usdPriceValue; uint256 amountETHForReferral = 0; if(ref != address(0)){ require(msg.sender != ref, "can't refer yourself"); amountETHForReferral = ethAmount * refPercent / 100; uint256 amountETHForPool = ethAmount - amountETHForReferral; sendValue(payable(fundWallet), amountETHForPool); sendValue(payable(ref), amountETHForReferral); userRefETHEarned[ref] += amountETHForReferral; if(invitedUsers[ref][msg.sender] == false) { invitedUsers[ref][msg.sender] = true; countInvitedUsers[ref] += 1; } }else{ sendValue(payable(fundWallet), ethAmount); } if (excess > 0) sendValue(payable(_msgSender()), excess); emit TokensBought( _msgSender(), amount, address(0), ethAmount, block.timestamp, usdPriceValue, ref, amountETHForReferral ); return true; } function ethBuyHelper(uint256 amount) external view returns (uint256 ethAmount) { uint256 usdPrice = calculatePrice(amount); ethAmount = (usdPrice * baseDecimals) / getLatestPrice(); } function usdcBuyHelper(uint256 amount) external view returns (uint256 usdPrice) { usdPrice = calculatePrice(amount); usdPrice = usdPrice / (10**12); } function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Low balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "ETH Payment failed"); } function startClaim( uint256 _claimStart, uint256 noOfTokens, address _saleToken ) external onlyOwner returns (bool) { require( _claimStart > endTime && _claimStart > block.timestamp, "Invalid claim start time" ); require( noOfTokens >= ((totalTokens - inSale) * baseDecimals), "Tokens less than sold" ); require(_saleToken != address(0), "Zero token address"); require(claimStart == 0, "Claim already set"); claimStart = _claimStart; saleToken = _saleToken; IERC20Upgradeable(_saleToken).transferFrom( _msgSender(), address(this), noOfTokens ); emit TokensAdded(saleToken, noOfTokens, block.timestamp); return true; } function changeClaimStart(uint256 _claimStart) external onlyOwner returns (bool) { require(claimStart > 0, "Initial claim data not set"); require(_claimStart > endTime, "Sale in progress"); require(_claimStart > block.timestamp, "Claim start in past"); uint256 prevValue = claimStart; claimStart = _claimStart; emit ClaimStartUpdated(prevValue, _claimStart, block.timestamp); return true; } function claim() external whenNotPaused returns (bool) { require(saleToken != address(0), "Sale token not added"); require(block.timestamp >= claimStart, "Claim has not started yet"); require(!hasClaimed[_msgSender()], "Already claimed"); hasClaimed[_msgSender()] = true; uint256 amount = userDeposits[_msgSender()]; require(amount > 0, "Nothing to claim"); delete userDeposits[_msgSender()]; IERC20Upgradeable(saleToken).transfer(_msgSender(), amount); emit TokensClaimed(_msgSender(), amount, block.timestamp); return true; } function changeFundWallet(address _wallet) external onlyOwner returns (bool) { fundWallet = _wallet; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20Upgradeable { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 amount ) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library AddressUpgradeable { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return 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 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 (last updated v4.7.0) (proxy/utils/Initializable.sol) pragma solidity ^0.8.2; import "../../utils/AddressUpgradeable.sol"; /** * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect. * * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be * reused. This mechanism prevents re-execution of each "step" but allows the creation of new initialization steps in * case an upgrade adds a module that needs to be initialized. * * For example: * * [.hljs-theme-light.nopadding] * ``` * contract MyToken is ERC20Upgradeable { * function initialize() initializer public { * __ERC20_init("MyToken", "MTK"); * } * } * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable { * function initializeV2() reinitializer(2) public { * __ERC20Permit_init("MyToken"); * } * } * ``` * * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}. * * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity. * * [CAUTION] * ==== * Avoid leaving a contract uninitialized. * * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed: * * [.hljs-theme-light.nopadding] * ``` * /// @custom:oz-upgrades-unsafe-allow constructor * constructor() { * _disableInitializers(); * } * ``` * ==== */ abstract contract Initializable { /** * @dev Indicates that the contract has been initialized. * @custom:oz-retyped-from bool */ uint8 private _initialized; /** * @dev Indicates that the contract is in the process of being initialized. */ bool private _initializing; /** * @dev Triggered when the contract has been initialized or reinitialized. */ event Initialized(uint8 version); /** * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope, * `onlyInitializing` functions can be used to initialize parent contracts. Equivalent to `reinitializer(1)`. */ modifier initializer() { bool isTopLevelCall = !_initializing; require( (isTopLevelCall && _initialized < 1) || (!AddressUpgradeable.isContract(address(this)) && _initialized == 1), "Initializable: contract is already initialized" ); _initialized = 1; if (isTopLevelCall) { _initializing = true; } _; if (isTopLevelCall) { _initializing = false; emit Initialized(1); } } /** * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be * used to initialize parent contracts. * * `initializer` is equivalent to `reinitializer(1)`, so a reinitializer may be used after the original * initialization step. This is essential to configure modules that are added through upgrades and that require * initialization. * * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in * a contract, executing them in the right order is up to the developer or operator. */ modifier reinitializer(uint8 version) { require(!_initializing && _initialized < version, "Initializable: contract is already initialized"); _initialized = version; _initializing = true; _; _initializing = false; emit Initialized(version); } /** * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the * {initializer} and {reinitializer} modifiers, directly or indirectly. */ modifier onlyInitializing() { require(_initializing, "Initializable: contract is not initializing"); _; } /** * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call. * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized * to any version. It is recommended to use this to lock implementation contracts that are designed to be called * through proxies. */ function _disableInitializers() internal virtual { require(!_initializing, "Initializable: contract is initializing"); if (_initialized < type(uint8).max) { _initialized = type(uint8).max; emit Initialized(type(uint8).max); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; import "../proxy/utils/Initializable.sol"; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract ContextUpgradeable is Initializable { function __Context_init() internal onlyInitializing { } function __Context_init_unchained() internal onlyInitializing { } function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[50] private __gap; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (security/Pausable.sol) pragma solidity ^0.8.0; import "../utils/ContextUpgradeable.sol"; import "../proxy/utils/Initializable.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract PausableUpgradeable is Initializable, ContextUpgradeable { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ function __Pausable_init() internal onlyInitializing { __Pausable_init_unchained(); } function __Pausable_init_unchained() internal onlyInitializing { _paused = false; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { _requireNotPaused(); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { _requirePaused(); _; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Throws if the contract is paused. */ function _requireNotPaused() internal view virtual { require(!paused(), "Pausable: paused"); } /** * @dev Throws if the contract is not paused. */ function _requirePaused() internal view virtual { require(paused(), "Pausable: not paused"); } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[49] private __gap; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/ContextUpgradeable.sol"; import "../proxy/utils/Initializable.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract OwnableUpgradeable is Initializable, ContextUpgradeable { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ function __Ownable_init() internal onlyInitializing { __Ownable_init_unchained(); } function __Ownable_init_unchained() internal onlyInitializing { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[49] private __gap; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; import "../proxy/utils/Initializable.sol"; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuardUpgradeable is Initializable { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; function __ReentrancyGuard_init() internal onlyInitializing { __ReentrancyGuard_init_unchained(); } function __ReentrancyGuard_init_unchained() internal onlyInitializing { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { // 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; } /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[49] private __gap; }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"prevValue","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newValue","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"ClaimStartUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint8","name":"version","type":"uint8"}],"name":"Initialized","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_start","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_end","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"SaleTimeSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"key","type":"bytes32"},{"indexed":false,"internalType":"uint256","name":"prevValue","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newValue","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"SaleTimeUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"noOfTokens","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"TokensAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokensBought","type":"uint256"},{"indexed":true,"internalType":"address","name":"purchaseToken","type":"address"},{"indexed":false,"internalType":"uint256","name":"amountPaid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"usdValue","type":"uint256"},{"indexed":false,"internalType":"address","name":"ref","type":"address"},{"indexed":false,"internalType":"uint256","name":"refAmount","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":"USDCInterface","outputs":[{"internalType":"contract IERC20Upgradeable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseDecimals","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"ref","type":"address"}],"name":"buyWithEth","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"ref","type":"address"}],"name":"buyWithUSDC","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"calculatePrice","outputs":[{"internalType":"uint256","name":"totalValue","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_claimStart","type":"uint256"}],"name":"changeClaimStart","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_wallet","type":"address"}],"name":"changeFundWallet","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_startTime","type":"uint256"},{"internalType":"uint256","name":"_endTime","type":"uint256"}],"name":"changeSaleTimes","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claim","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claimStart","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"countInvitedUsers","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":"fundWallet","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getLatestPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"hasClaimed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"inSale","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_oracle","type":"address"},{"internalType":"address","name":"_usdc","type":"address"},{"internalType":"uint256","name":"_startTime","type":"uint256"},{"internalType":"uint256","name":"_endTime","type":"uint256"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"invitedUsers","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"numberOfParticipants","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"refPercent","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"salePrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"saleToken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_claimStart","type":"uint256"},{"internalType":"uint256","name":"noOfTokens","type":"uint256"},{"internalType":"address","name":"_saleToken","type":"address"}],"name":"startClaim","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalTokens","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":[],"name":"usdRaised","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"usdcBuyHelper","outputs":[{"internalType":"uint256","name":"usdPrice","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userDeposits","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userRefETHEarned","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userRefUSDCEarned","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b50600054610100900460ff1615808015620000335750600054600160ff909116105b8062000063575062000050306200013d60201b620020181760201c565b15801562000063575060005460ff166001145b620000cb5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b606482015260840160405180910390fd5b6000805460ff191660011790558015620000ef576000805461ff0019166101001790555b801562000136576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b506200014c565b6001600160a01b03163b151590565b61273d806200015c6000396000f3fe60806040526004361061021a5760003560e01c80637e1c0c0911610123578063b2caaebd116100ab578063eb990c591161006f578063eb990c5914610602578063f04d688f14610622578063f2fde38b14610638578063f51f96dd14610658578063f66877621461066e57600080fd5b8063b2caaebd1461055f578063ba37bed11461057f578063d6e736cb146105ac578063e985e367146105cc578063eadd94ec146105ec57600080fd5b80638a6d7361116100f25780638a6d7361146104bf5780638c28c31a146104ec5780638da5cb5b1461050c5780638e15f4731461052a578063ae1042651461053f57600080fd5b80637e1c0c09146104515780638008d5bc146104675780638456cb591461047d578063866ea6bf1461049257600080fd5b806359d5335b116101a6578063715018a611610175578063715018a6146103cd57806373b2e80e146103e25780637417040e1461041257806376c5fe731461042857806378e979251461043b57600080fd5b806359d5335b1461035f5780635c975abb14610375578063664a1ad61461038d5780636fb4adff146103ad57600080fd5b806329a5a0b6116101ed57806329a5a0b6146102e95780633197cbb61461030957806333f761781461031f5780633f4ba83a146103355780634e71d92d1461034a57600080fd5b806307f180821461021f5780630ba36dcd146102545780630dc9c8381461028f57806325312e54146102b1575b600080fd5b34801561022b57600080fd5b5061023f61023a36600461235c565b6106a9565b60405190151581526020015b60405180910390f35b34801561026057600080fd5b5061028161026f36600461238c565b60d66020526000908152604090205481565b60405190815260200161024b565b34801561029b57600080fd5b506102af6102aa3660046123a7565b6107e5565b005b3480156102bd57600080fd5b5060d4546102d1906001600160a01b031681565b6040516001600160a01b03909116815260200161024b565b3480156102f557600080fd5b5061028161030436600461235c565b610a07565b34801561031557600080fd5b5061028160cd5481565b34801561032b57600080fd5b5061028160d05481565b34801561034157600080fd5b506102af610a3b565b34801561035657600080fd5b5061023f610a4d565b34801561036b57600080fd5b5061028160d25481565b34801561038157600080fd5b5060975460ff1661023f565b34801561039957600080fd5b5060dc546102d1906001600160a01b031681565b3480156103b957600080fd5b5061023f6103c836600461238c565b610c8f565b3480156103d957600080fd5b506102af610cbd565b3480156103ee57600080fd5b5061023f6103fd36600461238c565b60d76020526000908152604090205460ff1681565b34801561041e57600080fd5b5061028160d35481565b61023f6104363660046123c9565b610ccf565b34801561044757600080fd5b5061028160cc5481565b34801561045d57600080fd5b5061028160ca5481565b34801561047357600080fd5b5061028160cb5481565b34801561048957600080fd5b506102af6110e7565b34801561049e57600080fd5b506102816104ad36600461238c565b60db6020526000908152604090205481565b3480156104cb57600080fd5b506102816104da36600461238c565b60d86020526000908152604090205481565b3480156104f857600080fd5b5061023f6105073660046123c9565b6110f7565b34801561051857600080fd5b506065546001600160a01b03166102d1565b34801561053657600080fd5b506102816117c0565b34801561054b57600080fd5b5061028161055a36600461235c565b611866565b34801561056b57600080fd5b5061023f61057a3660046123f5565b611a7b565b34801561058b57600080fd5b5061028161059a36600461238c565b60d96020526000908152604090205481565b3480156105b857600080fd5b506102816105c736600461235c565b611cc0565b3480156105d857600080fd5b5060cf546102d1906001600160a01b031681565b3480156105f857600080fd5b5061028160d15481565b34801561060e57600080fd5b506102af61061d36600461242a565b611cdc565b34801561062e57600080fd5b5061028160ce5481565b34801561064457600080fd5b506102af61065336600461238c565b611f9f565b34801561066457600080fd5b5061028160c95481565b34801561067a57600080fd5b5061023f61068936600461246c565b60da60209081526000928352604080842090915290825290205460ff1681565b60006106b3612027565b600060ce541161070a5760405162461bcd60e51b815260206004820152601a60248201527f496e697469616c20636c61696d2064617461206e6f742073657400000000000060448201526064015b60405180910390fd5b60cd54821161074e5760405162461bcd60e51b815260206004820152601060248201526f53616c6520696e2070726f677265737360801b6044820152606401610701565b4282116107935760405162461bcd60e51b815260206004820152601360248201527210db185a5b481cdd185c9d081a5b881c185cdd606a1b6044820152606401610701565b60ce8054908390556040805182815260208101859052428183015290517f5f3a900c85949962b4cc192dd3714dae64071dc2e907049ec720b023270905a49181900360600190a160019150505b919050565b6107ed612027565b60008211806107fc5750600081115b61083d5760405162461bcd60e51b8152602060048201526012602482015271496e76616c696420706172616d657465727360701b6044820152606401610701565b81156109225760cc54421061088b5760405162461bcd60e51b815260206004820152601460248201527314d85b1948185b1c9958591e481cdd185c9d195960621b6044820152606401610701565b8142106108ce5760405162461bcd60e51b815260206004820152601160248201527014d85b19481d1a5b59481a5b881c185cdd607a1b6044820152606401610701565b60cc8054908390556040805182815260208101859052428183015290516414d510549560da1b917fddd2ed237e6993c9380182683f2c8bec486aaaa429528852cd74dbdb96cea0b2919081900360600190a2505b8015610a035760cd54421061096e5760405162461bcd60e51b815260206004820152601260248201527114d85b1948185b1c9958591e48195b99195960721b6044820152606401610701565b60cc5481116109b15760405162461bcd60e51b815260206004820152600f60248201526e496e76616c696420656e6454696d6560881b6044820152606401610701565b60cd8054908290556040805182815260208101849052428183015290516211539160ea1b917fddd2ed237e6993c9380182683f2c8bec486aaaa429528852cd74dbdb96cea0b2919081900360600190a2505b5050565b600080610a1383611866565b9050610a1d6117c0565b60d054610a2a90836124ac565b610a3491906124cb565b9392505050565b610a43612027565b610a4b612081565b565b6000610a576120d3565b60cf546001600160a01b0316610aa65760405162461bcd60e51b815260206004820152601460248201527314d85b19481d1bdad95b881b9bdd08185919195960621b6044820152606401610701565b60ce54421015610af85760405162461bcd60e51b815260206004820152601960248201527f436c61696d20686173206e6f74207374617274656420796574000000000000006044820152606401610701565b33600090815260d7602052604090205460ff1615610b4a5760405162461bcd60e51b815260206004820152600f60248201526e105b1c9958591e4818db185a5b5959608a1b6044820152606401610701565b33600090815260d760209081526040808320805460ff1916600117905560d690915290205480610baf5760405162461bcd60e51b815260206004820152601060248201526f4e6f7468696e6720746f20636c61696d60801b6044820152606401610701565b33600081815260d66020908152604080832083905560cf54815163a9059cbb60e01b815260048101959095526024850186905290516001600160a01b039091169363a9059cbb9360448083019493928390030190829087803b158015610c1457600080fd5b505af1158015610c28573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c4c91906124ed565b506040805182815242602082015233917f9923b4306c6c030f2bdfbf156517d5983b87e15b96176da122cd4f2effa4ba7b910160405180910390a2600191505090565b6000610c99612027565b60dc80546001600160a01b0319166001600160a01b03939093169290921790915590565b610cc5612027565b610a4b6000612119565b60008260cc544210158015610ce6575060cd544211155b610d2c5760405162461bcd60e51b8152602060048201526017602482015276496e76616c69642074696d6520666f7220627579696e6760481b6044820152606401610701565b600081118015610d3e575060cb548111155b610d805760405162461bcd60e51b8152602060048201526013602482015272125b9d985b1a59081cd85b1948185b5bdd5b9d606a1b6044820152606401610701565b610d886120d3565b60026001541415610ddb5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610701565b60026001556000610deb85611866565b90506000610df76117c0565b60d054610e0490846124ac565b610e0e91906124cb565b905080341015610e4f5760405162461bcd60e51b815260206004820152600c60248201526b13195cdcc81c185e5b595b9d60a21b6044820152606401610701565b6000610e5b823461250f565b90508660cb6000828254610e6f919061250f565b909155505033600090815260d66020526040902054610ea157600160d36000828254610e9b9190612526565b90915550505b60d054610eae90886124ac565b33600090815260d6602052604081208054909190610ecd908490612526565b9091555060009050610ee464e8d4a51000856124cb565b90508060d154610ef49190612526565b60d15560006001600160a01b0388161561105257336001600160a01b0389161415610f585760405162461bcd60e51b815260206004820152601460248201527331b0b713ba103932b332b9103cb7bab939b2b63360611b6044820152606401610701565b606460d25485610f6891906124ac565b610f7291906124cb565b90506000610f80828661250f565b60dc54909150610f99906001600160a01b03168261216b565b610fa3898361216b565b6001600160a01b038916600090815260d9602052604081208054849290610fcb908490612526565b90915550506001600160a01b038916600090815260da6020908152604080832033845290915290205460ff1661104c576001600160a01b038916600081815260da602090815260408083203384528252808320805460ff1916600190811790915593835260db90915281208054909190611046908490612526565b90915550505b50611068565b60dc54611068906001600160a01b03168561216b565b821561107857611078338461216b565b604080518581524260208201528082018490526001600160a01b038a1660608201526080810183905290516000918b9133917fc42b54289a43a0bdfa8c210e52c4b51c945fa01a9a31992325c845d8eca29b6c919081900360a00190a450506001808055979650505050505050565b6110ef612027565b610a4b612246565b60008260cc54421015801561110e575060cd544211155b6111545760405162461bcd60e51b8152602060048201526017602482015276496e76616c69642074696d6520666f7220627579696e6760481b6044820152606401610701565b600081118015611166575060cb548111155b6111a85760405162461bcd60e51b8152602060048201526013602482015272125b9d985b1a59081cd85b1948185b5bdd5b9d606a1b6044820152606401610701565b6111b06120d3565b60006111bb85611866565b90506111cc64e8d4a51000826124cb565b90508460cb60008282546111e0919061250f565b909155505033600090815260d6602052604090205461121257600160d3600082825461120c9190612526565b90915550505b60d05461121f90866124ac565b33600090815260d660205260408120805490919061123e908490612526565b909155505060d4546000906001600160a01b031663dd62ed3e336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015230602482015260440160206040518083038186803b15801561129d57600080fd5b505afa1580156112b1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112d5919061253e565b90508160d1546112e59190612526565b60d155808211156113425760405162461bcd60e51b815260206004820152602160248201527f4d616b65207375726520746f2061646420656e6f75676820616c6c6f77616e636044820152606560f81b6064820152608401610701565b60006001600160a01b0386161561165957336001600160a01b03871614156113a35760405162461bcd60e51b815260206004820152601460248201527331b0b713ba103932b332b9103cb7bab939b2b63360611b6044820152606401610701565b606460d254846113b391906124ac565b6113bd91906124cb565b905060006113cb828561250f565b60d4549091506000906001600160a01b03163360dc546040516113fd92916001600160a01b0316908690602401612557565b60408051601f198184030181529181526020820180516001600160e01b03166323b872dd60e01b17905251611432919061257b565b6000604051808303816000865af19150503d806000811461146f576040519150601f19603f3d011682016040523d82523d6000602084013e611474565b606091505b50509050806114bc5760405162461bcd60e51b8152602060048201526014602482015273151bdad95b881c185e5b595b9d0819985a5b195960621b6044820152606401610701565b60d4546000906001600160a01b0316338a866040516024016114e093929190612557565b60408051601f198184030181529181526020820180516001600160e01b03166323b872dd60e01b17905251611515919061257b565b6000604051808303816000865af19150503d8060008114611552576040519150601f19603f3d011682016040523d82523d6000602084013e611557565b606091505b50509050806115a85760405162461bcd60e51b815260206004820152601d60248201527f546f6b656e207061796d656e7420726566657272616c206661696c65640000006044820152606401610701565b6001600160a01b038916600090815260d86020526040812080548692906115d0908490612526565b90915550506001600160a01b038916600090815260da6020908152604080832033845290915290205460ff16611651576001600160a01b038916600081815260da602090815260408083203384528252808320805460ff1916600190811790915593835260db9091528120805490919061164b908490612526565b90915550505b505050611749565b60d4546000906001600160a01b03163360dc5460405161168892916001600160a01b0316908890602401612557565b60408051601f198184030181529181526020820180516001600160e01b03166323b872dd60e01b179052516116bd919061257b565b6000604051808303816000865af19150503d80600081146116fa576040519150601f19603f3d011682016040523d82523d6000602084013e6116ff565b606091505b50509050806117475760405162461bcd60e51b8152602060048201526014602482015273151bdad95b881c185e5b595b9d0819985a5b195960621b6044820152606401610701565b505b60d4546001600160a01b03168733604080518781524260208201529081018790526001600160a01b038a811660608301526080820186905291909116907fc42b54289a43a0bdfa8c210e52c4b51c945fa01a9a31992325c845d8eca29b6c9060a00160405180910390a45060019695505050505050565b60008060d560009054906101000a90046001600160a01b03166001600160a01b031663feaf968c6040518163ffffffff1660e01b815260040160a06040518083038186803b15801561181157600080fd5b505afa158015611825573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061184991906125d0565b505050915050806402540be4006118609190612620565b92915050565b60008060cb5460ca54611879919061250f565b9050633b9aca0061188a8483612526565b1161189c5760c954610a3490846124ac565b6000633b9aca006118ad8584612526565b6118b7919061250f565b60c954909150633b9aca0083106119af57633b9aca006118d7818561250f565b6118e191906124cb565b6118f19065b5e620f480006124ac565b6119018265e35fa931a000612526565b61190b9190612526565b9050600061191d633b9aca00876124cb565b9050806119385761192e82876124ac565b9695505050505050565b801561198c5761194c82633b9aca006124ac565b6119569086612526565b9450611966633b9aca008761250f565b955061197865e35fa931a00083612526565b915080611984816126a5565b915050611938565b85156119a95761199c82876124ac565b6119a69086612526565b94505b50611a73565b806119ba838761250f565b6119c491906124ac565b9350633b9aca008211611a055760646119de82607d6124ac565b6119e891906124cb565b6119f290836124ac565b6119fc9085612526565b95945050505050565b633b9aca008210611a5157611a2065e35fa931a00082612526565b9050611a3081633b9aca006124ac565b611a3a9085612526565b9350611a4a633b9aca008361250f565b9150611a05565b8115611a7357611a6765e35fa931a00082612526565b90506119f281836124ac565b505050919050565b6000611a85612027565b60cd5484118015611a9557504284115b611ae15760405162461bcd60e51b815260206004820152601860248201527f496e76616c696420636c61696d2073746172742074696d6500000000000000006044820152606401610701565b60d05460cb5460ca54611af4919061250f565b611afe91906124ac565b831015611b455760405162461bcd60e51b8152602060048201526015602482015274151bdad95b9cc81b195cdcc81d1a185b881cdbdb19605a1b6044820152606401610701565b6001600160a01b038216611b905760405162461bcd60e51b81526020600482015260126024820152715a65726f20746f6b656e206164647265737360701b6044820152606401610701565b60ce5415611bd45760405162461bcd60e51b815260206004820152601160248201527010db185a5b48185b1c9958591e481cd95d607a1b6044820152606401610701565b60ce84905560cf80546001600160a01b0319166001600160a01b0384169081179091556040516323b872dd60e01b81526323b872dd90611c1c90339030908890600401612557565b602060405180830381600087803b158015611c3657600080fd5b505af1158015611c4a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c6e91906124ed565b5060cf54604080518581524260208201526001600160a01b03909216917fdc9670dbabdd488b372eb16ebe49a39b3124a12cdffdcefbc89834a408bf8ff8910160405180910390a25060019392505050565b6000611ccb82611866565b905061186064e8d4a51000826124cb565b600054610100900460ff1615808015611cfc5750600054600160ff909116105b80611d165750303b158015611d16575060005460ff166001145b611d795760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401610701565b6000805460ff191660011790558015611d9c576000805461ff0019166101001790555b6001600160a01b038516611df25760405162461bcd60e51b815260206004820152601760248201527f5a65726f2061676772656761746f7220616464726573730000000000000000006044820152606401610701565b6001600160a01b038416611e3c5760405162461bcd60e51b81526020600482015260116024820152705a65726f2055534443206164647265737360781b6044820152606401610701565b4283118015611e4a57508282115b611e855760405162461bcd60e51b815260206004820152600c60248201526b496e76616c69642074696d6560a01b6044820152606401610701565b611e8d612283565b611e956122b6565b611e9d6122e6565b66038d7ea4c6800060c95564024032b6c060ca81905560cb55670de0b6b3a764000060d05560d580546001600160a01b038781166001600160a01b03199283161790925560d4805487841690831617905560cc85905560cd849055600060d155600560d25560655460dc80549190931691161790556040805184815260208101849052428183015290517f23f6ad8232d75562dd1c6b37dfc895af6bfc1ecd0fb3b88722c6a5e6b4dc9a20916060908290030190a18015611f98576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b5050505050565b611fa7612027565b6001600160a01b03811661200c5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610701565b61201581612119565b50565b6001600160a01b03163b151590565b6065546001600160a01b03163314610a4b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610701565b612089612313565b6097805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b60975460ff1615610a4b5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610701565b606580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b804710156121a95760405162461bcd60e51b815260206004820152600b60248201526a4c6f772062616c616e636560a81b6044820152606401610701565b6000826001600160a01b03168260405160006040518083038185875af1925050503d80600081146121f6576040519150601f19603f3d011682016040523d82523d6000602084013e6121fb565b606091505b50509050806122415760405162461bcd60e51b81526020600482015260126024820152711155120814185e5b595b9d0819985a5b195960721b6044820152606401610701565b505050565b61224e6120d3565b6097805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586120b63390565b600054610100900460ff166122aa5760405162461bcd60e51b8152600401610701906126bc565b6097805460ff19169055565b600054610100900460ff166122dd5760405162461bcd60e51b8152600401610701906126bc565b610a4b33612119565b600054610100900460ff1661230d5760405162461bcd60e51b8152600401610701906126bc565b60018055565b60975460ff16610a4b5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610701565b60006020828403121561236e57600080fd5b5035919050565b80356001600160a01b03811681146107e057600080fd5b60006020828403121561239e57600080fd5b610a3482612375565b600080604083850312156123ba57600080fd5b50508035926020909101359150565b600080604083850312156123dc57600080fd5b823591506123ec60208401612375565b90509250929050565b60008060006060848603121561240a57600080fd5b833592506020840135915061242160408501612375565b90509250925092565b6000806000806080858703121561244057600080fd5b61244985612375565b935061245760208601612375565b93969395505050506040820135916060013590565b6000806040838503121561247f57600080fd5b61248883612375565b91506123ec60208401612375565b634e487b7160e01b600052601160045260246000fd5b60008160001904831182151516156124c6576124c6612496565b500290565b6000826124e857634e487b7160e01b600052601260045260246000fd5b500490565b6000602082840312156124ff57600080fd5b81518015158114610a3457600080fd5b60008282101561252157612521612496565b500390565b6000821982111561253957612539612496565b500190565b60006020828403121561255057600080fd5b5051919050565b6001600160a01b039384168152919092166020820152604081019190915260600190565b6000825160005b8181101561259c5760208186018101518583015201612582565b818111156125ab576000828501525b509190910192915050565b805169ffffffffffffffffffff811681146107e057600080fd5b600080600080600060a086880312156125e857600080fd5b6125f1866125b6565b9450602086015193506040860151925060608601519150612614608087016125b6565b90509295509295909350565b60006001600160ff1b038184138284138082168684048611161561264657612646612496565b600160ff1b600087128281168783058912161561266557612665612496565b6000871292508782058712848416161561268157612681612496565b8785058712818416161561269757612697612496565b505050929093029392505050565b6000816126b4576126b4612496565b506000190190565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b60608201526080019056fea26469706673582212209e2242c658fcdf4030164f7f71fe412a7120eb763aa88ee9b6741739c5f349bd64736f6c63430008090033
Deployed Bytecode
0x60806040526004361061021a5760003560e01c80637e1c0c0911610123578063b2caaebd116100ab578063eb990c591161006f578063eb990c5914610602578063f04d688f14610622578063f2fde38b14610638578063f51f96dd14610658578063f66877621461066e57600080fd5b8063b2caaebd1461055f578063ba37bed11461057f578063d6e736cb146105ac578063e985e367146105cc578063eadd94ec146105ec57600080fd5b80638a6d7361116100f25780638a6d7361146104bf5780638c28c31a146104ec5780638da5cb5b1461050c5780638e15f4731461052a578063ae1042651461053f57600080fd5b80637e1c0c09146104515780638008d5bc146104675780638456cb591461047d578063866ea6bf1461049257600080fd5b806359d5335b116101a6578063715018a611610175578063715018a6146103cd57806373b2e80e146103e25780637417040e1461041257806376c5fe731461042857806378e979251461043b57600080fd5b806359d5335b1461035f5780635c975abb14610375578063664a1ad61461038d5780636fb4adff146103ad57600080fd5b806329a5a0b6116101ed57806329a5a0b6146102e95780633197cbb61461030957806333f761781461031f5780633f4ba83a146103355780634e71d92d1461034a57600080fd5b806307f180821461021f5780630ba36dcd146102545780630dc9c8381461028f57806325312e54146102b1575b600080fd5b34801561022b57600080fd5b5061023f61023a36600461235c565b6106a9565b60405190151581526020015b60405180910390f35b34801561026057600080fd5b5061028161026f36600461238c565b60d66020526000908152604090205481565b60405190815260200161024b565b34801561029b57600080fd5b506102af6102aa3660046123a7565b6107e5565b005b3480156102bd57600080fd5b5060d4546102d1906001600160a01b031681565b6040516001600160a01b03909116815260200161024b565b3480156102f557600080fd5b5061028161030436600461235c565b610a07565b34801561031557600080fd5b5061028160cd5481565b34801561032b57600080fd5b5061028160d05481565b34801561034157600080fd5b506102af610a3b565b34801561035657600080fd5b5061023f610a4d565b34801561036b57600080fd5b5061028160d25481565b34801561038157600080fd5b5060975460ff1661023f565b34801561039957600080fd5b5060dc546102d1906001600160a01b031681565b3480156103b957600080fd5b5061023f6103c836600461238c565b610c8f565b3480156103d957600080fd5b506102af610cbd565b3480156103ee57600080fd5b5061023f6103fd36600461238c565b60d76020526000908152604090205460ff1681565b34801561041e57600080fd5b5061028160d35481565b61023f6104363660046123c9565b610ccf565b34801561044757600080fd5b5061028160cc5481565b34801561045d57600080fd5b5061028160ca5481565b34801561047357600080fd5b5061028160cb5481565b34801561048957600080fd5b506102af6110e7565b34801561049e57600080fd5b506102816104ad36600461238c565b60db6020526000908152604090205481565b3480156104cb57600080fd5b506102816104da36600461238c565b60d86020526000908152604090205481565b3480156104f857600080fd5b5061023f6105073660046123c9565b6110f7565b34801561051857600080fd5b506065546001600160a01b03166102d1565b34801561053657600080fd5b506102816117c0565b34801561054b57600080fd5b5061028161055a36600461235c565b611866565b34801561056b57600080fd5b5061023f61057a3660046123f5565b611a7b565b34801561058b57600080fd5b5061028161059a36600461238c565b60d96020526000908152604090205481565b3480156105b857600080fd5b506102816105c736600461235c565b611cc0565b3480156105d857600080fd5b5060cf546102d1906001600160a01b031681565b3480156105f857600080fd5b5061028160d15481565b34801561060e57600080fd5b506102af61061d36600461242a565b611cdc565b34801561062e57600080fd5b5061028160ce5481565b34801561064457600080fd5b506102af61065336600461238c565b611f9f565b34801561066457600080fd5b5061028160c95481565b34801561067a57600080fd5b5061023f61068936600461246c565b60da60209081526000928352604080842090915290825290205460ff1681565b60006106b3612027565b600060ce541161070a5760405162461bcd60e51b815260206004820152601a60248201527f496e697469616c20636c61696d2064617461206e6f742073657400000000000060448201526064015b60405180910390fd5b60cd54821161074e5760405162461bcd60e51b815260206004820152601060248201526f53616c6520696e2070726f677265737360801b6044820152606401610701565b4282116107935760405162461bcd60e51b815260206004820152601360248201527210db185a5b481cdd185c9d081a5b881c185cdd606a1b6044820152606401610701565b60ce8054908390556040805182815260208101859052428183015290517f5f3a900c85949962b4cc192dd3714dae64071dc2e907049ec720b023270905a49181900360600190a160019150505b919050565b6107ed612027565b60008211806107fc5750600081115b61083d5760405162461bcd60e51b8152602060048201526012602482015271496e76616c696420706172616d657465727360701b6044820152606401610701565b81156109225760cc54421061088b5760405162461bcd60e51b815260206004820152601460248201527314d85b1948185b1c9958591e481cdd185c9d195960621b6044820152606401610701565b8142106108ce5760405162461bcd60e51b815260206004820152601160248201527014d85b19481d1a5b59481a5b881c185cdd607a1b6044820152606401610701565b60cc8054908390556040805182815260208101859052428183015290516414d510549560da1b917fddd2ed237e6993c9380182683f2c8bec486aaaa429528852cd74dbdb96cea0b2919081900360600190a2505b8015610a035760cd54421061096e5760405162461bcd60e51b815260206004820152601260248201527114d85b1948185b1c9958591e48195b99195960721b6044820152606401610701565b60cc5481116109b15760405162461bcd60e51b815260206004820152600f60248201526e496e76616c696420656e6454696d6560881b6044820152606401610701565b60cd8054908290556040805182815260208101849052428183015290516211539160ea1b917fddd2ed237e6993c9380182683f2c8bec486aaaa429528852cd74dbdb96cea0b2919081900360600190a2505b5050565b600080610a1383611866565b9050610a1d6117c0565b60d054610a2a90836124ac565b610a3491906124cb565b9392505050565b610a43612027565b610a4b612081565b565b6000610a576120d3565b60cf546001600160a01b0316610aa65760405162461bcd60e51b815260206004820152601460248201527314d85b19481d1bdad95b881b9bdd08185919195960621b6044820152606401610701565b60ce54421015610af85760405162461bcd60e51b815260206004820152601960248201527f436c61696d20686173206e6f74207374617274656420796574000000000000006044820152606401610701565b33600090815260d7602052604090205460ff1615610b4a5760405162461bcd60e51b815260206004820152600f60248201526e105b1c9958591e4818db185a5b5959608a1b6044820152606401610701565b33600090815260d760209081526040808320805460ff1916600117905560d690915290205480610baf5760405162461bcd60e51b815260206004820152601060248201526f4e6f7468696e6720746f20636c61696d60801b6044820152606401610701565b33600081815260d66020908152604080832083905560cf54815163a9059cbb60e01b815260048101959095526024850186905290516001600160a01b039091169363a9059cbb9360448083019493928390030190829087803b158015610c1457600080fd5b505af1158015610c28573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c4c91906124ed565b506040805182815242602082015233917f9923b4306c6c030f2bdfbf156517d5983b87e15b96176da122cd4f2effa4ba7b910160405180910390a2600191505090565b6000610c99612027565b60dc80546001600160a01b0319166001600160a01b03939093169290921790915590565b610cc5612027565b610a4b6000612119565b60008260cc544210158015610ce6575060cd544211155b610d2c5760405162461bcd60e51b8152602060048201526017602482015276496e76616c69642074696d6520666f7220627579696e6760481b6044820152606401610701565b600081118015610d3e575060cb548111155b610d805760405162461bcd60e51b8152602060048201526013602482015272125b9d985b1a59081cd85b1948185b5bdd5b9d606a1b6044820152606401610701565b610d886120d3565b60026001541415610ddb5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610701565b60026001556000610deb85611866565b90506000610df76117c0565b60d054610e0490846124ac565b610e0e91906124cb565b905080341015610e4f5760405162461bcd60e51b815260206004820152600c60248201526b13195cdcc81c185e5b595b9d60a21b6044820152606401610701565b6000610e5b823461250f565b90508660cb6000828254610e6f919061250f565b909155505033600090815260d66020526040902054610ea157600160d36000828254610e9b9190612526565b90915550505b60d054610eae90886124ac565b33600090815260d6602052604081208054909190610ecd908490612526565b9091555060009050610ee464e8d4a51000856124cb565b90508060d154610ef49190612526565b60d15560006001600160a01b0388161561105257336001600160a01b0389161415610f585760405162461bcd60e51b815260206004820152601460248201527331b0b713ba103932b332b9103cb7bab939b2b63360611b6044820152606401610701565b606460d25485610f6891906124ac565b610f7291906124cb565b90506000610f80828661250f565b60dc54909150610f99906001600160a01b03168261216b565b610fa3898361216b565b6001600160a01b038916600090815260d9602052604081208054849290610fcb908490612526565b90915550506001600160a01b038916600090815260da6020908152604080832033845290915290205460ff1661104c576001600160a01b038916600081815260da602090815260408083203384528252808320805460ff1916600190811790915593835260db90915281208054909190611046908490612526565b90915550505b50611068565b60dc54611068906001600160a01b03168561216b565b821561107857611078338461216b565b604080518581524260208201528082018490526001600160a01b038a1660608201526080810183905290516000918b9133917fc42b54289a43a0bdfa8c210e52c4b51c945fa01a9a31992325c845d8eca29b6c919081900360a00190a450506001808055979650505050505050565b6110ef612027565b610a4b612246565b60008260cc54421015801561110e575060cd544211155b6111545760405162461bcd60e51b8152602060048201526017602482015276496e76616c69642074696d6520666f7220627579696e6760481b6044820152606401610701565b600081118015611166575060cb548111155b6111a85760405162461bcd60e51b8152602060048201526013602482015272125b9d985b1a59081cd85b1948185b5bdd5b9d606a1b6044820152606401610701565b6111b06120d3565b60006111bb85611866565b90506111cc64e8d4a51000826124cb565b90508460cb60008282546111e0919061250f565b909155505033600090815260d6602052604090205461121257600160d3600082825461120c9190612526565b90915550505b60d05461121f90866124ac565b33600090815260d660205260408120805490919061123e908490612526565b909155505060d4546000906001600160a01b031663dd62ed3e336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015230602482015260440160206040518083038186803b15801561129d57600080fd5b505afa1580156112b1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112d5919061253e565b90508160d1546112e59190612526565b60d155808211156113425760405162461bcd60e51b815260206004820152602160248201527f4d616b65207375726520746f2061646420656e6f75676820616c6c6f77616e636044820152606560f81b6064820152608401610701565b60006001600160a01b0386161561165957336001600160a01b03871614156113a35760405162461bcd60e51b815260206004820152601460248201527331b0b713ba103932b332b9103cb7bab939b2b63360611b6044820152606401610701565b606460d254846113b391906124ac565b6113bd91906124cb565b905060006113cb828561250f565b60d4549091506000906001600160a01b03163360dc546040516113fd92916001600160a01b0316908690602401612557565b60408051601f198184030181529181526020820180516001600160e01b03166323b872dd60e01b17905251611432919061257b565b6000604051808303816000865af19150503d806000811461146f576040519150601f19603f3d011682016040523d82523d6000602084013e611474565b606091505b50509050806114bc5760405162461bcd60e51b8152602060048201526014602482015273151bdad95b881c185e5b595b9d0819985a5b195960621b6044820152606401610701565b60d4546000906001600160a01b0316338a866040516024016114e093929190612557565b60408051601f198184030181529181526020820180516001600160e01b03166323b872dd60e01b17905251611515919061257b565b6000604051808303816000865af19150503d8060008114611552576040519150601f19603f3d011682016040523d82523d6000602084013e611557565b606091505b50509050806115a85760405162461bcd60e51b815260206004820152601d60248201527f546f6b656e207061796d656e7420726566657272616c206661696c65640000006044820152606401610701565b6001600160a01b038916600090815260d86020526040812080548692906115d0908490612526565b90915550506001600160a01b038916600090815260da6020908152604080832033845290915290205460ff16611651576001600160a01b038916600081815260da602090815260408083203384528252808320805460ff1916600190811790915593835260db9091528120805490919061164b908490612526565b90915550505b505050611749565b60d4546000906001600160a01b03163360dc5460405161168892916001600160a01b0316908890602401612557565b60408051601f198184030181529181526020820180516001600160e01b03166323b872dd60e01b179052516116bd919061257b565b6000604051808303816000865af19150503d80600081146116fa576040519150601f19603f3d011682016040523d82523d6000602084013e6116ff565b606091505b50509050806117475760405162461bcd60e51b8152602060048201526014602482015273151bdad95b881c185e5b595b9d0819985a5b195960621b6044820152606401610701565b505b60d4546001600160a01b03168733604080518781524260208201529081018790526001600160a01b038a811660608301526080820186905291909116907fc42b54289a43a0bdfa8c210e52c4b51c945fa01a9a31992325c845d8eca29b6c9060a00160405180910390a45060019695505050505050565b60008060d560009054906101000a90046001600160a01b03166001600160a01b031663feaf968c6040518163ffffffff1660e01b815260040160a06040518083038186803b15801561181157600080fd5b505afa158015611825573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061184991906125d0565b505050915050806402540be4006118609190612620565b92915050565b60008060cb5460ca54611879919061250f565b9050633b9aca0061188a8483612526565b1161189c5760c954610a3490846124ac565b6000633b9aca006118ad8584612526565b6118b7919061250f565b60c954909150633b9aca0083106119af57633b9aca006118d7818561250f565b6118e191906124cb565b6118f19065b5e620f480006124ac565b6119018265e35fa931a000612526565b61190b9190612526565b9050600061191d633b9aca00876124cb565b9050806119385761192e82876124ac565b9695505050505050565b801561198c5761194c82633b9aca006124ac565b6119569086612526565b9450611966633b9aca008761250f565b955061197865e35fa931a00083612526565b915080611984816126a5565b915050611938565b85156119a95761199c82876124ac565b6119a69086612526565b94505b50611a73565b806119ba838761250f565b6119c491906124ac565b9350633b9aca008211611a055760646119de82607d6124ac565b6119e891906124cb565b6119f290836124ac565b6119fc9085612526565b95945050505050565b633b9aca008210611a5157611a2065e35fa931a00082612526565b9050611a3081633b9aca006124ac565b611a3a9085612526565b9350611a4a633b9aca008361250f565b9150611a05565b8115611a7357611a6765e35fa931a00082612526565b90506119f281836124ac565b505050919050565b6000611a85612027565b60cd5484118015611a9557504284115b611ae15760405162461bcd60e51b815260206004820152601860248201527f496e76616c696420636c61696d2073746172742074696d6500000000000000006044820152606401610701565b60d05460cb5460ca54611af4919061250f565b611afe91906124ac565b831015611b455760405162461bcd60e51b8152602060048201526015602482015274151bdad95b9cc81b195cdcc81d1a185b881cdbdb19605a1b6044820152606401610701565b6001600160a01b038216611b905760405162461bcd60e51b81526020600482015260126024820152715a65726f20746f6b656e206164647265737360701b6044820152606401610701565b60ce5415611bd45760405162461bcd60e51b815260206004820152601160248201527010db185a5b48185b1c9958591e481cd95d607a1b6044820152606401610701565b60ce84905560cf80546001600160a01b0319166001600160a01b0384169081179091556040516323b872dd60e01b81526323b872dd90611c1c90339030908890600401612557565b602060405180830381600087803b158015611c3657600080fd5b505af1158015611c4a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c6e91906124ed565b5060cf54604080518581524260208201526001600160a01b03909216917fdc9670dbabdd488b372eb16ebe49a39b3124a12cdffdcefbc89834a408bf8ff8910160405180910390a25060019392505050565b6000611ccb82611866565b905061186064e8d4a51000826124cb565b600054610100900460ff1615808015611cfc5750600054600160ff909116105b80611d165750303b158015611d16575060005460ff166001145b611d795760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401610701565b6000805460ff191660011790558015611d9c576000805461ff0019166101001790555b6001600160a01b038516611df25760405162461bcd60e51b815260206004820152601760248201527f5a65726f2061676772656761746f7220616464726573730000000000000000006044820152606401610701565b6001600160a01b038416611e3c5760405162461bcd60e51b81526020600482015260116024820152705a65726f2055534443206164647265737360781b6044820152606401610701565b4283118015611e4a57508282115b611e855760405162461bcd60e51b815260206004820152600c60248201526b496e76616c69642074696d6560a01b6044820152606401610701565b611e8d612283565b611e956122b6565b611e9d6122e6565b66038d7ea4c6800060c95564024032b6c060ca81905560cb55670de0b6b3a764000060d05560d580546001600160a01b038781166001600160a01b03199283161790925560d4805487841690831617905560cc85905560cd849055600060d155600560d25560655460dc80549190931691161790556040805184815260208101849052428183015290517f23f6ad8232d75562dd1c6b37dfc895af6bfc1ecd0fb3b88722c6a5e6b4dc9a20916060908290030190a18015611f98576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b5050505050565b611fa7612027565b6001600160a01b03811661200c5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610701565b61201581612119565b50565b6001600160a01b03163b151590565b6065546001600160a01b03163314610a4b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610701565b612089612313565b6097805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b60975460ff1615610a4b5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610701565b606580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b804710156121a95760405162461bcd60e51b815260206004820152600b60248201526a4c6f772062616c616e636560a81b6044820152606401610701565b6000826001600160a01b03168260405160006040518083038185875af1925050503d80600081146121f6576040519150601f19603f3d011682016040523d82523d6000602084013e6121fb565b606091505b50509050806122415760405162461bcd60e51b81526020600482015260126024820152711155120814185e5b595b9d0819985a5b195960721b6044820152606401610701565b505050565b61224e6120d3565b6097805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586120b63390565b600054610100900460ff166122aa5760405162461bcd60e51b8152600401610701906126bc565b6097805460ff19169055565b600054610100900460ff166122dd5760405162461bcd60e51b8152600401610701906126bc565b610a4b33612119565b600054610100900460ff1661230d5760405162461bcd60e51b8152600401610701906126bc565b60018055565b60975460ff16610a4b5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610701565b60006020828403121561236e57600080fd5b5035919050565b80356001600160a01b03811681146107e057600080fd5b60006020828403121561239e57600080fd5b610a3482612375565b600080604083850312156123ba57600080fd5b50508035926020909101359150565b600080604083850312156123dc57600080fd5b823591506123ec60208401612375565b90509250929050565b60008060006060848603121561240a57600080fd5b833592506020840135915061242160408501612375565b90509250925092565b6000806000806080858703121561244057600080fd5b61244985612375565b935061245760208601612375565b93969395505050506040820135916060013590565b6000806040838503121561247f57600080fd5b61248883612375565b91506123ec60208401612375565b634e487b7160e01b600052601160045260246000fd5b60008160001904831182151516156124c6576124c6612496565b500290565b6000826124e857634e487b7160e01b600052601260045260246000fd5b500490565b6000602082840312156124ff57600080fd5b81518015158114610a3457600080fd5b60008282101561252157612521612496565b500390565b6000821982111561253957612539612496565b500190565b60006020828403121561255057600080fd5b5051919050565b6001600160a01b039384168152919092166020820152604081019190915260600190565b6000825160005b8181101561259c5760208186018101518583015201612582565b818111156125ab576000828501525b509190910192915050565b805169ffffffffffffffffffff811681146107e057600080fd5b600080600080600060a086880312156125e857600080fd5b6125f1866125b6565b9450602086015193506040860151925060608601519150612614608087016125b6565b90509295509295909350565b60006001600160ff1b038184138284138082168684048611161561264657612646612496565b600160ff1b600087128281168783058912161561266557612665612496565b6000871292508782058712848416161561268157612681612496565b8785058712818416161561269757612697612496565b505050929093029392505050565b6000816126b4576126b4612496565b506000190190565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b60608201526080019056fea26469706673582212209e2242c658fcdf4030164f7f71fe412a7120eb763aa88ee9b6741739c5f349bd64736f6c63430008090033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 26 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.