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 | 18114437 | 322 days ago | IN | 0 ETH | 0.09231106 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
PresaleV5
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); } interface StakingManager { function depositByPresale(address _user, uint256 _amount) external; } interface IRouter { function getAmountOut(uint amountIn, uint reserveIn, uint reserveOut) external pure returns (uint amountOut); function getAmountIn(uint amountOut, uint reserveIn, uint reserveOut) external pure returns (uint amountIn); function getAmountsOut(uint amountIn, address[] calldata path) external view returns (uint[] memory amounts); function getAmountsIn(uint amountOut, address[] calldata path) external view returns (uint[] memory amounts); } contract PresaleV5 is Initializable, ReentrancyGuardUpgradeable, OwnableUpgradeable, PausableUpgradeable { uint256 public totalTokensSold; uint256 public startTime; uint256 public endTime; uint256 public claimStart; address public saleToken; uint256 public baseDecimals; uint256 public maxTokensToBuy; uint256 public currentStep; uint256[][3] public rounds; uint256 public checkPoint; uint256 public usdRaised; uint256[] public prevCheckpoints; uint256[] public remainingTokensTracker; uint256 public timeConstant; address public paymentWallet; bool public dynamicTimeFlag; bool public whitelistClaimOnly; address public admin; IERC20Upgradeable public USDTInterface; Aggregator public aggregatorInterface; mapping(address => uint256) public userDeposits; mapping(address => bool) public hasClaimed; mapping(address => bool) public isBlacklisted; mapping(address => bool) public isWhitelisted; mapping(address => bool) public wertWhitelisted; StakingManager public stakingManagerInterface; address public stakingContract; bool public stakeingWhitelistStatus; bool public dynamicSaleState; uint256 public percent; uint256 public directTotalTokensSold; uint256 public maxTokensToSell; IRouter public router; uint256 public staticTokenPrice; event SaleTimeSet(uint256 _start, uint256 _end, uint256 timestamp); event SaleTimeUpdated(bytes32 indexed key, uint256 prevValue, uint256 newValue, uint256 timestamp); event TokensBought(address indexed user, uint256 indexed tokensBought, address indexed purchaseToken, uint256 amountPaid, uint256 usdEq, uint256 timestamp); event TokensAdded(address indexed token, uint256 noOfTokens, uint256 timestamp); event TokensClaimed(address indexed user, uint256 amount, uint256 timestamp); event ClaimStartUpdated(uint256 prevValue, uint256 newValue, uint256 timestamp); event MaxTokensUpdated(uint256 prevValue, uint256 newValue, uint256 timestamp); event TokensClaimedAndStaked(address indexed user, uint256 amount, uint256 timestamp); /// @custom:oz-upgrades-unsafe-allow constructor constructor() initializer {} /** * @dev To pause the presale */ function pause() external onlyOwner { _pause(); } /** * @dev To unpause the presale */ function unpause() external onlyOwner { _unpause(); } /** * @dev To update the sale times * @param _startTime New start time * @param _endTime New end time */ function changeSaleTimes(uint256 _startTime, uint256 _endTime) external onlyOwner { require(_startTime > 0 || _endTime > 0, 'Invalid parameters'); if (_startTime > 0) { require(block.timestamp < startTime, 'Sale already started'); require(block.timestamp < _startTime, 'Sale time in past'); uint256 prevValue = startTime; startTime = _startTime; emit SaleTimeUpdated(bytes32('START'), prevValue, _startTime, block.timestamp); } if (_endTime > 0) { require(block.timestamp < endTime, 'Sale already ended'); require(_endTime > startTime, 'Invalid endTime'); uint256 prevValue = endTime; endTime = _endTime; emit SaleTimeUpdated(bytes32('END'), prevValue, _endTime, block.timestamp); } } modifier checkSaleState(uint256 amount) { require(block.timestamp >= startTime && block.timestamp <= endTime, 'Invalid time for buying'); require(amount > 0, 'Invalid sale amount'); _; } /** * @dev To set the claim start time and sale token address by the owner * @param _claimStart claim start time * @param noOfTokens no of tokens to add to the contract * @param _saleToken sale toke address */ function startClaim(uint256 _claimStart, uint256 noOfTokens, address _saleToken, address _stakingManagerAddress) external onlyOwner returns (bool) { require(noOfTokens >= (totalTokensSold * baseDecimals), 'Tokens less than sold'); require(_saleToken != address(0), 'Zero token address'); require(claimStart == 0, 'Claim already set'); claimStart = _claimStart; saleToken = _saleToken; stakingContract = _stakingManagerAddress; whitelistClaimOnly = true; stakeingWhitelistStatus = true; stakingManagerInterface = StakingManager(_stakingManagerAddress); IERC20Upgradeable(saleToken).approve(stakingContract, type(uint256).max); bool success = IERC20Upgradeable(_saleToken).transferFrom(_msgSender(), address(this), noOfTokens); require(success, 'Token transfer failed'); emit TokensAdded(saleToken, noOfTokens, block.timestamp); return true; } /** * @dev To change the claim start time by the owner * @param _claimStart new claim start time */ function changeClaimStart(uint256 _claimStart) external onlyOwner returns (bool) { require(claimStart > 0, 'Initial claim data not set'); require(_claimStart > endTime, 'Sale in progress'); require(_claimStart > block.timestamp, 'Claim start in past'); uint256 prevValue = claimStart; claimStart = _claimStart; emit ClaimStartUpdated(prevValue, _claimStart, block.timestamp); return true; } /** * @dev To claim tokens after claiming starts */ function claim() external whenNotPaused returns (bool) { require(saleToken != address(0), 'Sale token not added'); require(!isBlacklisted[_msgSender()], 'This Address is Blacklisted'); if (whitelistClaimOnly) { require(isWhitelisted[_msgSender()], 'User not whitelisted for claim'); } require(!hasClaimed[_msgSender()], 'Already claimed'); hasClaimed[_msgSender()] = true; uint256 amount = userDeposits[_msgSender()]; require(amount > 0, 'Nothing to claim'); delete userDeposits[_msgSender()]; bool success = IERC20Upgradeable(saleToken).transfer(_msgSender(), amount); require(success, 'Token transfer failed'); emit TokensClaimed(_msgSender(), amount, block.timestamp); return true; } function claimAndStake() external whenNotPaused returns (bool) { require(saleToken != address(0), 'Sale token not added'); require(!isBlacklisted[_msgSender()], 'This Address is Blacklisted'); if (stakeingWhitelistStatus) { require(isWhitelisted[_msgSender()], 'User not whitelisted for claim'); } require(!hasClaimed[_msgSender()], 'Already claimed'); hasClaimed[_msgSender()] = true; uint256 amount = userDeposits[_msgSender()]; require(amount > 0, 'Nothing to claim'); stakingManagerInterface.depositByPresale(_msgSender(), amount); delete userDeposits[_msgSender()]; emit TokensClaimedAndStaked(_msgSender(), amount, block.timestamp); return true; } /** * @dev To add users to blacklist which restricts blacklisted users from claiming * @param _usersToBlacklist addresses of the users */ function blacklistUsers(address[] calldata _usersToBlacklist) external onlyOwner { for (uint256 i = 0; i < _usersToBlacklist.length; i++) { isBlacklisted[_usersToBlacklist[i]] = true; } } /** * @dev To remove users from blacklist which restricts blacklisted users from claiming * @param _userToRemoveFromBlacklist addresses of the users */ function removeFromBlacklist(address[] calldata _userToRemoveFromBlacklist) external onlyOwner { for (uint256 i = 0; i < _userToRemoveFromBlacklist.length; i++) { isBlacklisted[_userToRemoveFromBlacklist[i]] = false; } } /** * @dev To add users to whitelist which restricts users from claiming if claimWhitelistStatus is true * @param _usersToWhitelist addresses of the users */ function whitelistUsers(address[] calldata _usersToWhitelist) external onlyOwner { for (uint256 i = 0; i < _usersToWhitelist.length; i++) { isWhitelisted[_usersToWhitelist[i]] = true; } } /** * @dev To remove users from whitelist which restricts users from claiming if claimWhitelistStatus is true * @param _userToRemoveFromWhitelist addresses of the users */ function removeFromWhitelist(address[] calldata _userToRemoveFromWhitelist) external onlyOwner { for (uint256 i = 0; i < _userToRemoveFromWhitelist.length; i++) { isWhitelisted[_userToRemoveFromWhitelist[i]] = false; } } /** * @dev To set status for claim whitelisting * @param _status bool value */ function setClaimWhitelistStatus(bool _status) external onlyOwner { whitelistClaimOnly = _status; } /** * @dev To set status for claim whitelisting * @param _status bool value */ function setStakeingWhitelistStatus(bool _status) external onlyOwner { stakeingWhitelistStatus = _status; } /** * @dev To get latest ETH price in 10**18 format */ function getLatestPrice() public view returns (uint256) { (, int256 price, , , ) = aggregatorInterface.latestRoundData(); price = (price * (10 ** 10)); return uint256(price); } function 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'); } /** * @dev to update userDeposits for purchases made on BSC * @param _users array of users * @param _userDeposits array of userDeposits associated with users */ function updateFromBSC(address[] calldata _users, uint256[] calldata _userDeposits) external onlyOwner { require(_users.length == _userDeposits.length, 'Length mismatch'); for (uint256 i = 0; i < _users.length; i++) { userDeposits[_users[i]] += _userDeposits[i]; } } /** * @dev to initialize staking manager with new addredd * @param _stakingManagerAddress address of the staking smartcontract */ function setStakingManager(address _stakingManagerAddress) external onlyOwner { stakingManagerInterface = StakingManager(_stakingManagerAddress); stakingContract = _stakingManagerAddress; } function buyWithEth(uint256 amount) external payable whenNotPaused nonReentrant returns (bool) { require(dynamicSaleState, 'dynamic sale not active'); require(amount <= maxTokensToSell - directTotalTokensSold, 'amount exceeds max tokens to be sold'); directTotalTokensSold += amount; uint256 usdPrice = fetchPrice(amount); uint256 ethAmount = (usdPrice * baseDecimals)/getLatestPrice(); require(msg.value >= ethAmount, 'Less payment'); uint256 excess = msg.value - ethAmount; stakingManagerInterface.depositByPresale(_msgSender(), amount * baseDecimals); emit TokensBought(_msgSender(), amount, address(0), ethAmount, 0, block.timestamp); sendValue(payable(paymentWallet), ethAmount); if (excess > 0) sendValue(payable(_msgSender()), excess); return true; } function buyWithUSDT(uint256 amount) external whenNotPaused returns (bool) { require(dynamicSaleState, 'dynamic sale not active'); require(amount <= maxTokensToSell - directTotalTokensSold, 'amount exceeds max tokens to be sold'); directTotalTokensSold += amount; uint256 usdPrice = fetchPrice(amount); uint256 price = usdPrice / (10 ** 12); (bool success, ) = address(USDTInterface).call(abi.encodeWithSignature('transferFrom(address,address,uint256)', _msgSender(), paymentWallet, price)); require(success, 'Token payment failed'); stakingManagerInterface.depositByPresale(_msgSender(), amount * baseDecimals); emit TokensBought(_msgSender(), amount, address(USDTInterface), price, usdPrice, block.timestamp); return true; } function buyWithEthDynamic(uint256 amount) external payable whenNotPaused nonReentrant returns (bool) { require(dynamicSaleState, 'dynamic sale not active'); require(amount <= maxTokensToSell - directTotalTokensSold, 'amount exceeds max tokens to be sold'); directTotalTokensSold += amount; uint256 usdPrice = fetchPrice(amount); uint256 ethAmount = (usdPrice * baseDecimals)/getLatestPrice(); require(msg.value >= ethAmount, 'Less payment'); uint256 excess = msg.value - ethAmount; sendValue(payable(paymentWallet), ethAmount); if (excess > 0) sendValue(payable(_msgSender()), excess); bool success = IERC20Upgradeable(saleToken).transfer(_msgSender(), (amount * baseDecimals)); require(success, 'Token transfer failed'); emit TokensBought(_msgSender(), amount, address(0), ethAmount, 0, block.timestamp); return true; } function buyWithUSDTDynamic(uint256 amount) external whenNotPaused returns (bool) { require(dynamicSaleState, 'dynamic sale not active'); require(amount <= maxTokensToSell - directTotalTokensSold, 'amount exceeds max tokens to be sold'); directTotalTokensSold += amount; uint256 usdPrice = fetchPrice(amount); uint256 price = usdPrice / (10 ** 12); (bool success, ) = address(USDTInterface).call(abi.encodeWithSignature('transferFrom(address,address,uint256)', _msgSender(), paymentWallet, price)); require(success, 'Token payment failed'); bool tokenTransferSuccess = IERC20Upgradeable(saleToken).transfer(_msgSender(), (amount * baseDecimals)); require(tokenTransferSuccess, 'Token transfer failed'); emit TokensBought(_msgSender(), amount, address(USDTInterface), price, usdPrice, block.timestamp); return true; } function setDynamicSaleState(bool _state) external onlyOwner { dynamicSaleState = _state; } function setMaxTokensToSell(uint256 _tokensToSell) external onlyOwner { maxTokensToSell = _tokensToSell; } function setRouter(address _router) external onlyOwner { router = IRouter(_router); } function fetchPrice(uint256 amount) public view returns (uint256) { return (staticTokenPrice * amount ) ; } function setPercent(uint256 _percent) external onlyOwner { percent = _percent; } function setStaticTokenPrice(uint256 _staticTokenPrice) external onlyOwner { staticTokenPrice = _staticTokenPrice; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/ContextUpgradeable.sol"; import "../proxy/utils/Initializable.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract OwnableUpgradeable is Initializable, ContextUpgradeable { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ function __Ownable_init() internal onlyInitializing { __Ownable_init_unchained(); } function __Ownable_init_unchained() internal onlyInitializing { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[49] private __gap; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.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.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 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 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; }
// 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); } } }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"prevValue","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newValue","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"ClaimStartUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint8","name":"version","type":"uint8"}],"name":"Initialized","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"prevValue","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newValue","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"MaxTokensUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_start","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_end","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"SaleTimeSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"key","type":"bytes32"},{"indexed":false,"internalType":"uint256","name":"prevValue","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newValue","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"SaleTimeUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"noOfTokens","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"TokensAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokensBought","type":"uint256"},{"indexed":true,"internalType":"address","name":"purchaseToken","type":"address"},{"indexed":false,"internalType":"uint256","name":"amountPaid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"usdEq","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"TokensBought","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"TokensClaimed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"TokensClaimedAndStaked","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"USDTInterface","outputs":[{"internalType":"contract IERC20Upgradeable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"admin","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"aggregatorInterface","outputs":[{"internalType":"contract Aggregator","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseDecimals","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_usersToBlacklist","type":"address[]"}],"name":"blacklistUsers","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"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":"buyWithEthDynamic","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":"buyWithUSDTDynamic","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_claimStart","type":"uint256"}],"name":"changeClaimStart","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_startTime","type":"uint256"},{"internalType":"uint256","name":"_endTime","type":"uint256"}],"name":"changeSaleTimes","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"checkPoint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claim","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claimAndStake","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claimStart","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"currentStep","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"directTotalTokensSold","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"dynamicSaleState","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"dynamicTimeFlag","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"endTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"fetchPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getLatestPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"hasClaimed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isBlacklisted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isWhitelisted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxTokensToBuy","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxTokensToSell","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paymentWallet","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"percent","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"prevCheckpoints","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"remainingTokensTracker","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_userToRemoveFromBlacklist","type":"address[]"}],"name":"removeFromBlacklist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_userToRemoveFromWhitelist","type":"address[]"}],"name":"removeFromWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"rounds","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"router","outputs":[{"internalType":"contract IRouter","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"saleToken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"_status","type":"bool"}],"name":"setClaimWhitelistStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"setDynamicSaleState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokensToSell","type":"uint256"}],"name":"setMaxTokensToSell","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_percent","type":"uint256"}],"name":"setPercent","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_router","type":"address"}],"name":"setRouter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_status","type":"bool"}],"name":"setStakeingWhitelistStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_stakingManagerAddress","type":"address"}],"name":"setStakingManager","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_staticTokenPrice","type":"uint256"}],"name":"setStaticTokenPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stakeingWhitelistStatus","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"stakingContract","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"stakingManagerInterface","outputs":[{"internalType":"contract StakingManager","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_claimStart","type":"uint256"},{"internalType":"uint256","name":"noOfTokens","type":"uint256"},{"internalType":"address","name":"_saleToken","type":"address"},{"internalType":"address","name":"_stakingManagerAddress","type":"address"}],"name":"startClaim","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"staticTokenPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"timeConstant","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"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":"address[]","name":"_users","type":"address[]"},{"internalType":"uint256[]","name":"_userDeposits","type":"uint256[]"}],"name":"updateFromBSC","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"usdRaised","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userDeposits","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"wertWhitelisted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"whitelistClaimOnly","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_usersToWhitelist","type":"address[]"}],"name":"whitelistUsers","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b50600054610100900460ff1615808015620000335750600054600160ff909116105b8062000063575062000050306200013d60201b620026ac1760201c565b15801562000063575060005460ff166001145b620000cb5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b606482015260840160405180910390fd5b6000805460ff191660011790558015620000ef576000805461ff0019166101001790555b801562000136576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b506200014c565b6001600160a01b03163b151590565b612e38806200015c6000396000f3fe6080604052600436106103c35760003560e01c80638ac08082116101f2578063db7dbf571161010d578063f04d688f116100a0578063f887ea401161006f578063f887ea4014610ae1578063fb9a4acd14610b01578063fe4cf22e14610b21578063fe575a8714610b3457600080fd5b8063f04d688f14610a6b578063f2fde38b14610a81578063f597573f14610aa1578063f851a44014610ac157600080fd5b8063e985e367116100dc578063e985e367146109f5578063eadd94ec14610a15578063edec5f2714610a2b578063ee99205c14610a4b57600080fd5b8063db7dbf5714610975578063e19648db14610995578063e32204dd146109b5578063e6da9213146109d557600080fd5b8063c0d7865511610185578063cff805ab11610154578063cff805ab14610908578063d0139bf71461091e578063d76abb9d14610934578063dad80e861461095457600080fd5b8063c0d7865514610893578063c23326f3146108b3578063c49cc645146108d3578063cb1a4fc0146108f357600080fd5b8063a7c60160116101c1578063a7c6016014610813578063b00bba6a14610833578063b8977d6d14610853578063bb3d676a1461087357600080fd5b80638ac08082146107aa5780638da5cb5b146107ca5780638e15f473146107e85780639cfa0f7c146107fd57600080fd5b806353d99207116102e2578063715018a61161027557806378e979251161024457806378e979251461073f5780637cb19b2f146107555780638456cb591461077557806389daf7991461078a57600080fd5b8063715018a6146106c75780637154b8b5146106dc57806373b2e80e146106fc5780637649b9571461072c57600080fd5b80635c975abb116102b15780635c975abb146106535780635df4f3531461066b57806363b201171461069b57806370ba1113146106b157600080fd5b806353d99207146105e6578063548db174146106075780635a03d679146106275780635bc34f711461063d57600080fd5b80633197cbb61161035a5780633dd31df2116103295780633dd31df2146105855780633f4ba83a146105a657806343568eae146105bb5780634e71d92d146105d157600080fd5b80633197cbb6146104f157806333f7617814610507578063386466081461051d5780633af32abf1461055557600080fd5b80631559f782116103965780631559f782146104705780631c3b7df9146104905780631ddc6091146104b05780631fa2bc92146104d057600080fd5b806307f18082146103c85780630ba36dcd146103fd5780630dc9c838146104385780631199193d1461045a575b600080fd5b3480156103d457600080fd5b506103e86103e336600461295b565b610b64565b60405190151581526020015b60405180910390f35b34801561040957600080fd5b5061042a61041836600461298b565b60dd6020526000908152604090205481565b6040519081526020016103f4565b34801561044457600080fd5b506104586104533660046129ad565b610ca0565b005b34801561046657600080fd5b5061042a60e55481565b34801561047c57600080fd5b5061042a61048b36600461295b565b610ec2565b34801561049c57600080fd5b506103e86104ab36600461295b565b610ed8565b3480156104bc57600080fd5b506104586104cb3660046129dd565b611185565b3480156104dc57600080fd5b5060d9546103e890600160a01b900460ff1681565b3480156104fd57600080fd5b5061042a60cb5481565b34801561051357600080fd5b5061042a60ce5481565b34801561052957600080fd5b5060e25461053d906001600160a01b031681565b6040516001600160a01b0390911681526020016103f4565b34801561056157600080fd5b506103e861057036600461298b565b60e06020526000908152604090205460ff1681565b34801561059157600080fd5b5060e3546103e890600160a81b900460ff1681565b3480156105b257600080fd5b506104586111ab565b3480156105c757600080fd5b5061042a60d85481565b3480156105dd57600080fd5b506103e86111bd565b3480156105f257600080fd5b5060d9546103e890600160a81b900460ff1681565b34801561061357600080fd5b50610458610622366004612a46565b61149f565b34801561063357600080fd5b5061042a60e65481565b34801561064957600080fd5b5061042a60d05481565b34801561065f57600080fd5b5060975460ff166103e8565b34801561067757600080fd5b506103e861068636600461298b565b60e16020526000908152604090205460ff1681565b3480156106a757600080fd5b5061042a60c95481565b3480156106bd57600080fd5b5061042a60e45481565b3480156106d357600080fd5b5061045861151e565b3480156106e857600080fd5b506104586106f736600461295b565b611530565b34801561070857600080fd5b506103e861071736600461298b565b60de6020526000908152604090205460ff1681565b6103e861073a36600461295b565b61153d565b34801561074b57600080fd5b5061042a60ca5481565b34801561076157600080fd5b5061045861077036600461295b565b611796565b34801561078157600080fd5b506104586117a3565b34801561079657600080fd5b506104586107a5366004612a46565b6117b3565b3480156107b657600080fd5b506103e86107c5366004612a88565b61182d565b3480156107d657600080fd5b506065546001600160a01b031661053d565b3480156107f457600080fd5b5061042a611b00565b34801561080957600080fd5b5061042a60cf5481565b34801561081f57600080fd5b506103e861082e36600461295b565b611ba0565b34801561083f57600080fd5b5061045861084e36600461298b565b611df9565b34801561085f57600080fd5b5061045861086e3660046129dd565b611e2d565b34801561087f57600080fd5b5061045861088e366004612a46565b611e53565b34801561089f57600080fd5b506104586108ae36600461298b565b611ecd565b3480156108bf57600080fd5b5061042a6108ce36600461295b565b611ef7565b3480156108df57600080fd5b5060dc5461053d906001600160a01b031681565b3480156108ff57600080fd5b506103e8611f18565b34801561091457600080fd5b5061042a60d45481565b34801561092a57600080fd5b5061042a60e85481565b34801561094057600080fd5b5061045861094f36600461295b565b6121e6565b34801561096057600080fd5b5060e3546103e890600160a01b900460ff1681565b34801561098157600080fd5b506104586109903660046129dd565b6121f3565b3480156109a157600080fd5b5061042a6109b036600461295b565b612219565b3480156109c157600080fd5b5060d95461053d906001600160a01b031681565b3480156109e157600080fd5b5061042a6109f03660046129ad565b612229565b348015610a0157600080fd5b5060cd5461053d906001600160a01b031681565b348015610a2157600080fd5b5061042a60d55481565b348015610a3757600080fd5b50610458610a46366004612a46565b61225d565b348015610a5757600080fd5b5060e35461053d906001600160a01b031681565b348015610a7757600080fd5b5061042a60cc5481565b348015610a8d57600080fd5b50610458610a9c36600461298b565b6122d7565b348015610aad57600080fd5b5060db5461053d906001600160a01b031681565b348015610acd57600080fd5b5060da5461053d906001600160a01b031681565b348015610aed57600080fd5b5060e75461053d906001600160a01b031681565b348015610b0d57600080fd5b50610458610b1c366004612ace565b612350565b6103e8610b2f36600461295b565b612436565b348015610b4057600080fd5b506103e8610b4f36600461298b565b60df6020526000908152604090205460ff1681565b6000610b6e6126bb565b600060cc5411610bc55760405162461bcd60e51b815260206004820152601a60248201527f496e697469616c20636c61696d2064617461206e6f742073657400000000000060448201526064015b60405180910390fd5b60cb548211610c095760405162461bcd60e51b815260206004820152601060248201526f53616c6520696e2070726f677265737360801b6044820152606401610bbc565b428211610c4e5760405162461bcd60e51b815260206004820152601360248201527210db185a5b481cdd185c9d081a5b881c185cdd606a1b6044820152606401610bbc565b60cc8054908390556040805182815260208101859052428183015290517f5f3a900c85949962b4cc192dd3714dae64071dc2e907049ec720b023270905a49181900360600190a160019150505b919050565b610ca86126bb565b6000821180610cb75750600081115b610cf85760405162461bcd60e51b8152602060048201526012602482015271496e76616c696420706172616d657465727360701b6044820152606401610bbc565b8115610ddd5760ca544210610d465760405162461bcd60e51b815260206004820152601460248201527314d85b1948185b1c9958591e481cdd185c9d195960621b6044820152606401610bbc565b814210610d895760405162461bcd60e51b815260206004820152601160248201527014d85b19481d1a5b59481a5b881c185cdd607a1b6044820152606401610bbc565b60ca8054908390556040805182815260208101859052428183015290516414d510549560da1b917fddd2ed237e6993c9380182683f2c8bec486aaaa429528852cd74dbdb96cea0b2919081900360600190a2505b8015610ebe5760cb544210610e295760405162461bcd60e51b815260206004820152601260248201527114d85b1948185b1c9958591e48195b99195960721b6044820152606401610bbc565b60ca548111610e6c5760405162461bcd60e51b815260206004820152600f60248201526e496e76616c696420656e6454696d6560881b6044820152606401610bbc565b60cb8054908290556040805182815260208101849052428183015290516211539160ea1b917fddd2ed237e6993c9380182683f2c8bec486aaaa429528852cd74dbdb96cea0b2919081900360600190a2505b5050565b60008160e854610ed29190612b50565b92915050565b6000610ee2612715565b60e354600160a81b900460ff16610f0b5760405162461bcd60e51b8152600401610bbc90612b6f565b60e55460e654610f1b9190612ba6565b821115610f3a5760405162461bcd60e51b8152600401610bbc90612bbd565b8160e56000828254610f4c9190612c01565b9091555060009050610f5d83610ec2565b90506000610f7064e8d4a5100083612c19565b60db549091506000906001600160a01b03163360d9546040516001600160a01b039283166024820152911660448201526064810184905260840160408051601f198184030181529181526020820180516001600160e01b03166323b872dd60e01b17905251610fdf9190612c3b565b6000604051808303816000865af19150503d806000811461101c576040519150601f19603f3d011682016040523d82523d6000602084013e611021565b606091505b50509050806110695760405162461bcd60e51b8152602060048201526014602482015273151bdad95b881c185e5b595b9d0819985a5b195960621b6044820152606401610bbc565b60cd546000906001600160a01b031663a9059cbb3360ce5461108b908a612b50565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401602060405180830381600087803b1580156110d157600080fd5b505af11580156110e5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111099190612c76565b9050806111285760405162461bcd60e51b8152600401610bbc90612c93565b60db546001600160a01b031686336001600160a01b0316600080516020612de3833981519152868842604051611171939291909283526020830191909152604082015260600190565b60405180910390a450600195945050505050565b61118d6126bb565b60d98054911515600160a81b0260ff60a81b19909216919091179055565b6111b36126bb565b6111bb61275b565b565b60006111c7612715565b60cd546001600160a01b03166112165760405162461bcd60e51b815260206004820152601460248201527314d85b19481d1bdad95b881b9bdd08185919195960621b6044820152606401610bbc565b33600090815260df602052604090205460ff16156112765760405162461bcd60e51b815260206004820152601b60248201527f54686973204164647265737320697320426c61636b6c697374656400000000006044820152606401610bbc565b60d954600160a81b900460ff16156112e75733600090815260e0602052604090205460ff166112e75760405162461bcd60e51b815260206004820152601e60248201527f55736572206e6f742077686974656c697374656420666f7220636c61696d00006044820152606401610bbc565b33600090815260de602052604090205460ff16156113395760405162461bcd60e51b815260206004820152600f60248201526e105b1c9958591e4818db185a5b5959608a1b6044820152606401610bbc565b33600090815260de60209081526040808320805460ff1916600117905560dd9091529020548061139e5760405162461bcd60e51b815260206004820152601060248201526f4e6f7468696e6720746f20636c61696d60801b6044820152606401610bbc565b33600081815260dd6020908152604080832083905560cd54815163a9059cbb60e01b8152600481019590955260248501869052905192936001600160a01b039091169263a9059cbb9260448084019391929182900301818787803b15801561140557600080fd5b505af1158015611419573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061143d9190612c76565b90508061145c5760405162461bcd60e51b8152600401610bbc90612c93565b6040805183815242602082015233917f9923b4306c6c030f2bdfbf156517d5983b87e15b96176da122cd4f2effa4ba7b910160405180910390a260019250505090565b6114a76126bb565b60005b8181101561151957600060e060008585858181106114ca576114ca612cc2565b90506020020160208101906114df919061298b565b6001600160a01b031681526020810191909152604001600020805460ff19169115159190911790558061151181612cd8565b9150506114aa565b505050565b6115266126bb565b6111bb60006127ad565b6115386126bb565b60e455565b6000611547612715565b6002600154141561159a5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610bbc565b600260015560e354600160a81b900460ff166115c85760405162461bcd60e51b8152600401610bbc90612b6f565b60e55460e6546115d89190612ba6565b8211156115f75760405162461bcd60e51b8152600401610bbc90612bbd565b8160e560008282546116099190612c01565b909155506000905061161a83610ec2565b90506000611626611b00565b60ce546116339084612b50565b61163d9190612c19565b90508034101561167e5760405162461bcd60e51b815260206004820152600c60248201526b13195cdcc81c185e5b595b9d60a21b6044820152606401610bbc565b600061168a8234612ba6565b60e2549091506001600160a01b03166391c619663360ce546116ac9089612b50565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b1580156116f257600080fd5b505af1158015611706573d6000803e3d6000fd5b5050505060006001600160a01b03168561171d3390565b6001600160a01b0316600080516020612de383398151915285600042604051611759939291909283526020830191909152604082015260600190565b60405180910390a460d954611777906001600160a01b0316836127ff565b801561178857611788335b826127ff565b505060018080559392505050565b61179e6126bb565b60e855565b6117ab6126bb565b6111bb6128d5565b6117bb6126bb565b60005b8181101561151957600060df60008585858181106117de576117de612cc2565b90506020020160208101906117f3919061298b565b6001600160a01b031681526020810191909152604001600020805460ff19169115159190911790558061182581612cd8565b9150506117be565b60006118376126bb565b60ce5460c9546118479190612b50565b84101561188e5760405162461bcd60e51b8152602060048201526015602482015274151bdad95b9cc81b195cdcc81d1a185b881cdbdb19605a1b6044820152606401610bbc565b6001600160a01b0383166118d95760405162461bcd60e51b81526020600482015260126024820152715a65726f20746f6b656e206164647265737360701b6044820152606401610bbc565b60cc541561191d5760405162461bcd60e51b815260206004820152601160248201527010db185a5b48185b1c9958591e481cd95d607a1b6044820152606401610bbc565b60cc85905560cd80546001600160a01b038581166001600160a01b0319928316811790935560e3805460d9805460ff60a81b1916600160a81b1790556001600160a81b031916868316908117600160a01b179182905560e280549094161790925560405163095ea7b360e01b815291166004820152600019602482015263095ea7b390604401602060405180830381600087803b1580156119bd57600080fd5b505af11580156119d1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119f59190612c76565b5060006001600160a01b0384166323b872dd336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015230602482015260448101889052606401602060405180830381600087803b158015611a5657600080fd5b505af1158015611a6a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a8e9190612c76565b905080611aad5760405162461bcd60e51b8152600401610bbc90612c93565b60cd54604080518781524260208201526001600160a01b03909216917fdc9670dbabdd488b372eb16ebe49a39b3124a12cdffdcefbc89834a408bf8ff8910160405180910390a250600195945050505050565b60008060dc60009054906101000a90046001600160a01b03166001600160a01b031663feaf968c6040518163ffffffff1660e01b815260040160a06040518083038186803b158015611b5157600080fd5b505afa158015611b65573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b899190612d0d565b505050915050806402540be400610ed29190612d5d565b6000611baa612715565b60e354600160a81b900460ff16611bd35760405162461bcd60e51b8152600401610bbc90612b6f565b60e55460e654611be39190612ba6565b821115611c025760405162461bcd60e51b8152600401610bbc90612bbd565b8160e56000828254611c149190612c01565b9091555060009050611c2583610ec2565b90506000611c3864e8d4a5100083612c19565b60db549091506000906001600160a01b03163360d9546040516001600160a01b039283166024820152911660448201526064810184905260840160408051601f198184030181529181526020820180516001600160e01b03166323b872dd60e01b17905251611ca79190612c3b565b6000604051808303816000865af19150503d8060008114611ce4576040519150601f19603f3d011682016040523d82523d6000602084013e611ce9565b606091505b5050905080611d315760405162461bcd60e51b8152602060048201526014602482015273151bdad95b881c185e5b595b9d0819985a5b195960621b6044820152606401610bbc565b60e2546001600160a01b03166391c619663360ce54611d509089612b50565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b158015611d9657600080fd5b505af1158015611daa573d6000803e3d6000fd5b505060db546040805186815260208101889052428183015290516001600160a01b0390921693508892503391600080516020612de38339815191529181900360600190a4506001949350505050565b611e016126bb565b60e280546001600160a01b039092166001600160a01b0319928316811790915560e38054909216179055565b611e356126bb565b60e38054911515600160a01b0260ff60a01b19909216919091179055565b611e5b6126bb565b60005b8181101561151957600160df6000858585818110611e7e57611e7e612cc2565b9050602002016020810190611e93919061298b565b6001600160a01b031681526020810191909152604001600020805460ff191691151591909117905580611ec581612cd8565b915050611e5e565b611ed56126bb565b60e780546001600160a01b0319166001600160a01b0392909216919091179055565b60d78181548110611f0757600080fd5b600091825260209091200154905081565b6000611f22612715565b60cd546001600160a01b0316611f715760405162461bcd60e51b815260206004820152601460248201527314d85b19481d1bdad95b881b9bdd08185919195960621b6044820152606401610bbc565b33600090815260df602052604090205460ff1615611fd15760405162461bcd60e51b815260206004820152601b60248201527f54686973204164647265737320697320426c61636b6c697374656400000000006044820152606401610bbc565b60e354600160a01b900460ff16156120425733600090815260e0602052604090205460ff166120425760405162461bcd60e51b815260206004820152601e60248201527f55736572206e6f742077686974656c697374656420666f7220636c61696d00006044820152606401610bbc565b33600090815260de602052604090205460ff16156120945760405162461bcd60e51b815260206004820152600f60248201526e105b1c9958591e4818db185a5b5959608a1b6044820152606401610bbc565b33600090815260de60209081526040808320805460ff1916600117905560dd909152902054806120f95760405162461bcd60e51b815260206004820152601060248201526f4e6f7468696e6720746f20636c61696d60801b6044820152606401610bbc565b60e2546001600160a01b03166391c61966336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260248101849052604401600060405180830381600087803b15801561215357600080fd5b505af1158015612167573d6000803e3d6000fd5b5050505060dd60006121763390565b6001600160a01b031681526020810191909152604001600090812055336001600160a01b03167ffa4ec67f9254455933eb145bae864b26f29dd0a7bbb76eb11e4d6b8b9b184c2b82426040516121d6929190918252602082015260400190565b60405180910390a2600191505090565b6121ee6126bb565b60e655565b6121fb6126bb565b60e38054911515600160a81b0260ff60a81b19909216919091179055565b60d68181548110611f0757600080fd5b60d1826003811061223957600080fd5b01818154811061224857600080fd5b90600052602060002001600091509150505481565b6122656126bb565b60005b8181101561151957600160e0600085858581811061228857612288612cc2565b905060200201602081019061229d919061298b565b6001600160a01b031681526020810191909152604001600020805460ff1916911515919091179055806122cf81612cd8565b915050612268565b6122df6126bb565b6001600160a01b0381166123445760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610bbc565b61234d816127ad565b50565b6123586126bb565b8281146123995760405162461bcd60e51b815260206004820152600f60248201526e098cadccee8d040dad2e6dac2e8c6d608b1b6044820152606401610bbc565b60005b8381101561242f578282828181106123b6576123b6612cc2565b9050602002013560dd60008787858181106123d3576123d3612cc2565b90506020020160208101906123e8919061298b565b6001600160a01b03166001600160a01b0316815260200190815260200160002060008282546124179190612c01565b9091555081905061242781612cd8565b91505061239c565b5050505050565b6000612440612715565b600260015414156124935760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610bbc565b600260015560e354600160a81b900460ff166124c15760405162461bcd60e51b8152600401610bbc90612b6f565b60e55460e6546124d19190612ba6565b8211156124f05760405162461bcd60e51b8152600401610bbc90612bbd565b8160e560008282546125029190612c01565b909155506000905061251383610ec2565b9050600061251f611b00565b60ce5461252c9084612b50565b6125369190612c19565b9050803410156125775760405162461bcd60e51b815260206004820152600c60248201526b13195cdcc81c185e5b595b9d60a21b6044820152606401610bbc565b60006125838234612ba6565b60d95490915061259c906001600160a01b0316836127ff565b80156125ab576125ab33611782565b60cd546000906001600160a01b031663a9059cbb3360ce546125cd908a612b50565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401602060405180830381600087803b15801561261357600080fd5b505af1158015612627573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061264b9190612c76565b90508061266a5760405162461bcd60e51b8152600401610bbc90612c93565b604080518481526000602082018190524282840152915188913391600080516020612de38339815191529181900360600190a450506001808055949350505050565b6001600160a01b03163b151590565b6065546001600160a01b031633146111bb5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610bbc565b60975460ff16156111bb5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610bbc565b612763612912565b6097805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b606580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8047101561283d5760405162461bcd60e51b815260206004820152600b60248201526a4c6f772062616c616e636560a81b6044820152606401610bbc565b6000826001600160a01b03168260405160006040518083038185875af1925050503d806000811461288a576040519150601f19603f3d011682016040523d82523d6000602084013e61288f565b606091505b50509050806115195760405162461bcd60e51b81526020600482015260126024820152711155120814185e5b595b9d0819985a5b195960721b6044820152606401610bbc565b6128dd612715565b6097805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586127903390565b60975460ff166111bb5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610bbc565b60006020828403121561296d57600080fd5b5035919050565b80356001600160a01b0381168114610c9b57600080fd5b60006020828403121561299d57600080fd5b6129a682612974565b9392505050565b600080604083850312156129c057600080fd5b50508035926020909101359150565b801515811461234d57600080fd5b6000602082840312156129ef57600080fd5b81356129a6816129cf565b60008083601f840112612a0c57600080fd5b50813567ffffffffffffffff811115612a2457600080fd5b6020830191508360208260051b8501011115612a3f57600080fd5b9250929050565b60008060208385031215612a5957600080fd5b823567ffffffffffffffff811115612a7057600080fd5b612a7c858286016129fa565b90969095509350505050565b60008060008060808587031215612a9e57600080fd5b8435935060208501359250612ab560408601612974565b9150612ac360608601612974565b905092959194509250565b60008060008060408587031215612ae457600080fd5b843567ffffffffffffffff80821115612afc57600080fd5b612b08888389016129fa565b90965094506020870135915080821115612b2157600080fd5b50612b2e878288016129fa565b95989497509550505050565b634e487b7160e01b600052601160045260246000fd5b6000816000190483118215151615612b6a57612b6a612b3a565b500290565b60208082526017908201527f64796e616d69632073616c65206e6f7420616374697665000000000000000000604082015260600190565b600082821015612bb857612bb8612b3a565b500390565b60208082526024908201527f616d6f756e742065786365656473206d617820746f6b656e7320746f206265206040820152631cdbdb1960e21b606082015260800190565b60008219821115612c1457612c14612b3a565b500190565b600082612c3657634e487b7160e01b600052601260045260246000fd5b500490565b6000825160005b81811015612c5c5760208186018101518583015201612c42565b81811115612c6b576000828501525b509190910192915050565b600060208284031215612c8857600080fd5b81516129a6816129cf565b602080825260159082015274151bdad95b881d1c985b9cd9995c8819985a5b1959605a1b604082015260600190565b634e487b7160e01b600052603260045260246000fd5b6000600019821415612cec57612cec612b3a565b5060010190565b805169ffffffffffffffffffff81168114610c9b57600080fd5b600080600080600060a08688031215612d2557600080fd5b612d2e86612cf3565b9450602086015193506040860151925060608601519150612d5160808701612cf3565b90509295509295909350565b60006001600160ff1b0381841382841380821686840486111615612d8357612d83612b3a565b600160ff1b6000871282811687830589121615612da257612da2612b3a565b60008712925087820587128484161615612dbe57612dbe612b3a565b87850587128184161615612dd457612dd4612b3a565b50505092909302939250505056fe4d8aead3491b7eba4b5c7a65fc17e493b9e63f9e433522fc5f6a85a168fc9d36a2646970667358221220eea5d487d6a116170e10423895ed47ed8dc5aecae3aaeaeed52123485c89fc5a64736f6c63430008090033
Deployed Bytecode
0x6080604052600436106103c35760003560e01c80638ac08082116101f2578063db7dbf571161010d578063f04d688f116100a0578063f887ea401161006f578063f887ea4014610ae1578063fb9a4acd14610b01578063fe4cf22e14610b21578063fe575a8714610b3457600080fd5b8063f04d688f14610a6b578063f2fde38b14610a81578063f597573f14610aa1578063f851a44014610ac157600080fd5b8063e985e367116100dc578063e985e367146109f5578063eadd94ec14610a15578063edec5f2714610a2b578063ee99205c14610a4b57600080fd5b8063db7dbf5714610975578063e19648db14610995578063e32204dd146109b5578063e6da9213146109d557600080fd5b8063c0d7865511610185578063cff805ab11610154578063cff805ab14610908578063d0139bf71461091e578063d76abb9d14610934578063dad80e861461095457600080fd5b8063c0d7865514610893578063c23326f3146108b3578063c49cc645146108d3578063cb1a4fc0146108f357600080fd5b8063a7c60160116101c1578063a7c6016014610813578063b00bba6a14610833578063b8977d6d14610853578063bb3d676a1461087357600080fd5b80638ac08082146107aa5780638da5cb5b146107ca5780638e15f473146107e85780639cfa0f7c146107fd57600080fd5b806353d99207116102e2578063715018a61161027557806378e979251161024457806378e979251461073f5780637cb19b2f146107555780638456cb591461077557806389daf7991461078a57600080fd5b8063715018a6146106c75780637154b8b5146106dc57806373b2e80e146106fc5780637649b9571461072c57600080fd5b80635c975abb116102b15780635c975abb146106535780635df4f3531461066b57806363b201171461069b57806370ba1113146106b157600080fd5b806353d99207146105e6578063548db174146106075780635a03d679146106275780635bc34f711461063d57600080fd5b80633197cbb61161035a5780633dd31df2116103295780633dd31df2146105855780633f4ba83a146105a657806343568eae146105bb5780634e71d92d146105d157600080fd5b80633197cbb6146104f157806333f7617814610507578063386466081461051d5780633af32abf1461055557600080fd5b80631559f782116103965780631559f782146104705780631c3b7df9146104905780631ddc6091146104b05780631fa2bc92146104d057600080fd5b806307f18082146103c85780630ba36dcd146103fd5780630dc9c838146104385780631199193d1461045a575b600080fd5b3480156103d457600080fd5b506103e86103e336600461295b565b610b64565b60405190151581526020015b60405180910390f35b34801561040957600080fd5b5061042a61041836600461298b565b60dd6020526000908152604090205481565b6040519081526020016103f4565b34801561044457600080fd5b506104586104533660046129ad565b610ca0565b005b34801561046657600080fd5b5061042a60e55481565b34801561047c57600080fd5b5061042a61048b36600461295b565b610ec2565b34801561049c57600080fd5b506103e86104ab36600461295b565b610ed8565b3480156104bc57600080fd5b506104586104cb3660046129dd565b611185565b3480156104dc57600080fd5b5060d9546103e890600160a01b900460ff1681565b3480156104fd57600080fd5b5061042a60cb5481565b34801561051357600080fd5b5061042a60ce5481565b34801561052957600080fd5b5060e25461053d906001600160a01b031681565b6040516001600160a01b0390911681526020016103f4565b34801561056157600080fd5b506103e861057036600461298b565b60e06020526000908152604090205460ff1681565b34801561059157600080fd5b5060e3546103e890600160a81b900460ff1681565b3480156105b257600080fd5b506104586111ab565b3480156105c757600080fd5b5061042a60d85481565b3480156105dd57600080fd5b506103e86111bd565b3480156105f257600080fd5b5060d9546103e890600160a81b900460ff1681565b34801561061357600080fd5b50610458610622366004612a46565b61149f565b34801561063357600080fd5b5061042a60e65481565b34801561064957600080fd5b5061042a60d05481565b34801561065f57600080fd5b5060975460ff166103e8565b34801561067757600080fd5b506103e861068636600461298b565b60e16020526000908152604090205460ff1681565b3480156106a757600080fd5b5061042a60c95481565b3480156106bd57600080fd5b5061042a60e45481565b3480156106d357600080fd5b5061045861151e565b3480156106e857600080fd5b506104586106f736600461295b565b611530565b34801561070857600080fd5b506103e861071736600461298b565b60de6020526000908152604090205460ff1681565b6103e861073a36600461295b565b61153d565b34801561074b57600080fd5b5061042a60ca5481565b34801561076157600080fd5b5061045861077036600461295b565b611796565b34801561078157600080fd5b506104586117a3565b34801561079657600080fd5b506104586107a5366004612a46565b6117b3565b3480156107b657600080fd5b506103e86107c5366004612a88565b61182d565b3480156107d657600080fd5b506065546001600160a01b031661053d565b3480156107f457600080fd5b5061042a611b00565b34801561080957600080fd5b5061042a60cf5481565b34801561081f57600080fd5b506103e861082e36600461295b565b611ba0565b34801561083f57600080fd5b5061045861084e36600461298b565b611df9565b34801561085f57600080fd5b5061045861086e3660046129dd565b611e2d565b34801561087f57600080fd5b5061045861088e366004612a46565b611e53565b34801561089f57600080fd5b506104586108ae36600461298b565b611ecd565b3480156108bf57600080fd5b5061042a6108ce36600461295b565b611ef7565b3480156108df57600080fd5b5060dc5461053d906001600160a01b031681565b3480156108ff57600080fd5b506103e8611f18565b34801561091457600080fd5b5061042a60d45481565b34801561092a57600080fd5b5061042a60e85481565b34801561094057600080fd5b5061045861094f36600461295b565b6121e6565b34801561096057600080fd5b5060e3546103e890600160a01b900460ff1681565b34801561098157600080fd5b506104586109903660046129dd565b6121f3565b3480156109a157600080fd5b5061042a6109b036600461295b565b612219565b3480156109c157600080fd5b5060d95461053d906001600160a01b031681565b3480156109e157600080fd5b5061042a6109f03660046129ad565b612229565b348015610a0157600080fd5b5060cd5461053d906001600160a01b031681565b348015610a2157600080fd5b5061042a60d55481565b348015610a3757600080fd5b50610458610a46366004612a46565b61225d565b348015610a5757600080fd5b5060e35461053d906001600160a01b031681565b348015610a7757600080fd5b5061042a60cc5481565b348015610a8d57600080fd5b50610458610a9c36600461298b565b6122d7565b348015610aad57600080fd5b5060db5461053d906001600160a01b031681565b348015610acd57600080fd5b5060da5461053d906001600160a01b031681565b348015610aed57600080fd5b5060e75461053d906001600160a01b031681565b348015610b0d57600080fd5b50610458610b1c366004612ace565b612350565b6103e8610b2f36600461295b565b612436565b348015610b4057600080fd5b506103e8610b4f36600461298b565b60df6020526000908152604090205460ff1681565b6000610b6e6126bb565b600060cc5411610bc55760405162461bcd60e51b815260206004820152601a60248201527f496e697469616c20636c61696d2064617461206e6f742073657400000000000060448201526064015b60405180910390fd5b60cb548211610c095760405162461bcd60e51b815260206004820152601060248201526f53616c6520696e2070726f677265737360801b6044820152606401610bbc565b428211610c4e5760405162461bcd60e51b815260206004820152601360248201527210db185a5b481cdd185c9d081a5b881c185cdd606a1b6044820152606401610bbc565b60cc8054908390556040805182815260208101859052428183015290517f5f3a900c85949962b4cc192dd3714dae64071dc2e907049ec720b023270905a49181900360600190a160019150505b919050565b610ca86126bb565b6000821180610cb75750600081115b610cf85760405162461bcd60e51b8152602060048201526012602482015271496e76616c696420706172616d657465727360701b6044820152606401610bbc565b8115610ddd5760ca544210610d465760405162461bcd60e51b815260206004820152601460248201527314d85b1948185b1c9958591e481cdd185c9d195960621b6044820152606401610bbc565b814210610d895760405162461bcd60e51b815260206004820152601160248201527014d85b19481d1a5b59481a5b881c185cdd607a1b6044820152606401610bbc565b60ca8054908390556040805182815260208101859052428183015290516414d510549560da1b917fddd2ed237e6993c9380182683f2c8bec486aaaa429528852cd74dbdb96cea0b2919081900360600190a2505b8015610ebe5760cb544210610e295760405162461bcd60e51b815260206004820152601260248201527114d85b1948185b1c9958591e48195b99195960721b6044820152606401610bbc565b60ca548111610e6c5760405162461bcd60e51b815260206004820152600f60248201526e496e76616c696420656e6454696d6560881b6044820152606401610bbc565b60cb8054908290556040805182815260208101849052428183015290516211539160ea1b917fddd2ed237e6993c9380182683f2c8bec486aaaa429528852cd74dbdb96cea0b2919081900360600190a2505b5050565b60008160e854610ed29190612b50565b92915050565b6000610ee2612715565b60e354600160a81b900460ff16610f0b5760405162461bcd60e51b8152600401610bbc90612b6f565b60e55460e654610f1b9190612ba6565b821115610f3a5760405162461bcd60e51b8152600401610bbc90612bbd565b8160e56000828254610f4c9190612c01565b9091555060009050610f5d83610ec2565b90506000610f7064e8d4a5100083612c19565b60db549091506000906001600160a01b03163360d9546040516001600160a01b039283166024820152911660448201526064810184905260840160408051601f198184030181529181526020820180516001600160e01b03166323b872dd60e01b17905251610fdf9190612c3b565b6000604051808303816000865af19150503d806000811461101c576040519150601f19603f3d011682016040523d82523d6000602084013e611021565b606091505b50509050806110695760405162461bcd60e51b8152602060048201526014602482015273151bdad95b881c185e5b595b9d0819985a5b195960621b6044820152606401610bbc565b60cd546000906001600160a01b031663a9059cbb3360ce5461108b908a612b50565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401602060405180830381600087803b1580156110d157600080fd5b505af11580156110e5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111099190612c76565b9050806111285760405162461bcd60e51b8152600401610bbc90612c93565b60db546001600160a01b031686336001600160a01b0316600080516020612de3833981519152868842604051611171939291909283526020830191909152604082015260600190565b60405180910390a450600195945050505050565b61118d6126bb565b60d98054911515600160a81b0260ff60a81b19909216919091179055565b6111b36126bb565b6111bb61275b565b565b60006111c7612715565b60cd546001600160a01b03166112165760405162461bcd60e51b815260206004820152601460248201527314d85b19481d1bdad95b881b9bdd08185919195960621b6044820152606401610bbc565b33600090815260df602052604090205460ff16156112765760405162461bcd60e51b815260206004820152601b60248201527f54686973204164647265737320697320426c61636b6c697374656400000000006044820152606401610bbc565b60d954600160a81b900460ff16156112e75733600090815260e0602052604090205460ff166112e75760405162461bcd60e51b815260206004820152601e60248201527f55736572206e6f742077686974656c697374656420666f7220636c61696d00006044820152606401610bbc565b33600090815260de602052604090205460ff16156113395760405162461bcd60e51b815260206004820152600f60248201526e105b1c9958591e4818db185a5b5959608a1b6044820152606401610bbc565b33600090815260de60209081526040808320805460ff1916600117905560dd9091529020548061139e5760405162461bcd60e51b815260206004820152601060248201526f4e6f7468696e6720746f20636c61696d60801b6044820152606401610bbc565b33600081815260dd6020908152604080832083905560cd54815163a9059cbb60e01b8152600481019590955260248501869052905192936001600160a01b039091169263a9059cbb9260448084019391929182900301818787803b15801561140557600080fd5b505af1158015611419573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061143d9190612c76565b90508061145c5760405162461bcd60e51b8152600401610bbc90612c93565b6040805183815242602082015233917f9923b4306c6c030f2bdfbf156517d5983b87e15b96176da122cd4f2effa4ba7b910160405180910390a260019250505090565b6114a76126bb565b60005b8181101561151957600060e060008585858181106114ca576114ca612cc2565b90506020020160208101906114df919061298b565b6001600160a01b031681526020810191909152604001600020805460ff19169115159190911790558061151181612cd8565b9150506114aa565b505050565b6115266126bb565b6111bb60006127ad565b6115386126bb565b60e455565b6000611547612715565b6002600154141561159a5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610bbc565b600260015560e354600160a81b900460ff166115c85760405162461bcd60e51b8152600401610bbc90612b6f565b60e55460e6546115d89190612ba6565b8211156115f75760405162461bcd60e51b8152600401610bbc90612bbd565b8160e560008282546116099190612c01565b909155506000905061161a83610ec2565b90506000611626611b00565b60ce546116339084612b50565b61163d9190612c19565b90508034101561167e5760405162461bcd60e51b815260206004820152600c60248201526b13195cdcc81c185e5b595b9d60a21b6044820152606401610bbc565b600061168a8234612ba6565b60e2549091506001600160a01b03166391c619663360ce546116ac9089612b50565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b1580156116f257600080fd5b505af1158015611706573d6000803e3d6000fd5b5050505060006001600160a01b03168561171d3390565b6001600160a01b0316600080516020612de383398151915285600042604051611759939291909283526020830191909152604082015260600190565b60405180910390a460d954611777906001600160a01b0316836127ff565b801561178857611788335b826127ff565b505060018080559392505050565b61179e6126bb565b60e855565b6117ab6126bb565b6111bb6128d5565b6117bb6126bb565b60005b8181101561151957600060df60008585858181106117de576117de612cc2565b90506020020160208101906117f3919061298b565b6001600160a01b031681526020810191909152604001600020805460ff19169115159190911790558061182581612cd8565b9150506117be565b60006118376126bb565b60ce5460c9546118479190612b50565b84101561188e5760405162461bcd60e51b8152602060048201526015602482015274151bdad95b9cc81b195cdcc81d1a185b881cdbdb19605a1b6044820152606401610bbc565b6001600160a01b0383166118d95760405162461bcd60e51b81526020600482015260126024820152715a65726f20746f6b656e206164647265737360701b6044820152606401610bbc565b60cc541561191d5760405162461bcd60e51b815260206004820152601160248201527010db185a5b48185b1c9958591e481cd95d607a1b6044820152606401610bbc565b60cc85905560cd80546001600160a01b038581166001600160a01b0319928316811790935560e3805460d9805460ff60a81b1916600160a81b1790556001600160a81b031916868316908117600160a01b179182905560e280549094161790925560405163095ea7b360e01b815291166004820152600019602482015263095ea7b390604401602060405180830381600087803b1580156119bd57600080fd5b505af11580156119d1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119f59190612c76565b5060006001600160a01b0384166323b872dd336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015230602482015260448101889052606401602060405180830381600087803b158015611a5657600080fd5b505af1158015611a6a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a8e9190612c76565b905080611aad5760405162461bcd60e51b8152600401610bbc90612c93565b60cd54604080518781524260208201526001600160a01b03909216917fdc9670dbabdd488b372eb16ebe49a39b3124a12cdffdcefbc89834a408bf8ff8910160405180910390a250600195945050505050565b60008060dc60009054906101000a90046001600160a01b03166001600160a01b031663feaf968c6040518163ffffffff1660e01b815260040160a06040518083038186803b158015611b5157600080fd5b505afa158015611b65573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b899190612d0d565b505050915050806402540be400610ed29190612d5d565b6000611baa612715565b60e354600160a81b900460ff16611bd35760405162461bcd60e51b8152600401610bbc90612b6f565b60e55460e654611be39190612ba6565b821115611c025760405162461bcd60e51b8152600401610bbc90612bbd565b8160e56000828254611c149190612c01565b9091555060009050611c2583610ec2565b90506000611c3864e8d4a5100083612c19565b60db549091506000906001600160a01b03163360d9546040516001600160a01b039283166024820152911660448201526064810184905260840160408051601f198184030181529181526020820180516001600160e01b03166323b872dd60e01b17905251611ca79190612c3b565b6000604051808303816000865af19150503d8060008114611ce4576040519150601f19603f3d011682016040523d82523d6000602084013e611ce9565b606091505b5050905080611d315760405162461bcd60e51b8152602060048201526014602482015273151bdad95b881c185e5b595b9d0819985a5b195960621b6044820152606401610bbc565b60e2546001600160a01b03166391c619663360ce54611d509089612b50565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b158015611d9657600080fd5b505af1158015611daa573d6000803e3d6000fd5b505060db546040805186815260208101889052428183015290516001600160a01b0390921693508892503391600080516020612de38339815191529181900360600190a4506001949350505050565b611e016126bb565b60e280546001600160a01b039092166001600160a01b0319928316811790915560e38054909216179055565b611e356126bb565b60e38054911515600160a01b0260ff60a01b19909216919091179055565b611e5b6126bb565b60005b8181101561151957600160df6000858585818110611e7e57611e7e612cc2565b9050602002016020810190611e93919061298b565b6001600160a01b031681526020810191909152604001600020805460ff191691151591909117905580611ec581612cd8565b915050611e5e565b611ed56126bb565b60e780546001600160a01b0319166001600160a01b0392909216919091179055565b60d78181548110611f0757600080fd5b600091825260209091200154905081565b6000611f22612715565b60cd546001600160a01b0316611f715760405162461bcd60e51b815260206004820152601460248201527314d85b19481d1bdad95b881b9bdd08185919195960621b6044820152606401610bbc565b33600090815260df602052604090205460ff1615611fd15760405162461bcd60e51b815260206004820152601b60248201527f54686973204164647265737320697320426c61636b6c697374656400000000006044820152606401610bbc565b60e354600160a01b900460ff16156120425733600090815260e0602052604090205460ff166120425760405162461bcd60e51b815260206004820152601e60248201527f55736572206e6f742077686974656c697374656420666f7220636c61696d00006044820152606401610bbc565b33600090815260de602052604090205460ff16156120945760405162461bcd60e51b815260206004820152600f60248201526e105b1c9958591e4818db185a5b5959608a1b6044820152606401610bbc565b33600090815260de60209081526040808320805460ff1916600117905560dd909152902054806120f95760405162461bcd60e51b815260206004820152601060248201526f4e6f7468696e6720746f20636c61696d60801b6044820152606401610bbc565b60e2546001600160a01b03166391c61966336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260248101849052604401600060405180830381600087803b15801561215357600080fd5b505af1158015612167573d6000803e3d6000fd5b5050505060dd60006121763390565b6001600160a01b031681526020810191909152604001600090812055336001600160a01b03167ffa4ec67f9254455933eb145bae864b26f29dd0a7bbb76eb11e4d6b8b9b184c2b82426040516121d6929190918252602082015260400190565b60405180910390a2600191505090565b6121ee6126bb565b60e655565b6121fb6126bb565b60e38054911515600160a81b0260ff60a81b19909216919091179055565b60d68181548110611f0757600080fd5b60d1826003811061223957600080fd5b01818154811061224857600080fd5b90600052602060002001600091509150505481565b6122656126bb565b60005b8181101561151957600160e0600085858581811061228857612288612cc2565b905060200201602081019061229d919061298b565b6001600160a01b031681526020810191909152604001600020805460ff1916911515919091179055806122cf81612cd8565b915050612268565b6122df6126bb565b6001600160a01b0381166123445760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610bbc565b61234d816127ad565b50565b6123586126bb565b8281146123995760405162461bcd60e51b815260206004820152600f60248201526e098cadccee8d040dad2e6dac2e8c6d608b1b6044820152606401610bbc565b60005b8381101561242f578282828181106123b6576123b6612cc2565b9050602002013560dd60008787858181106123d3576123d3612cc2565b90506020020160208101906123e8919061298b565b6001600160a01b03166001600160a01b0316815260200190815260200160002060008282546124179190612c01565b9091555081905061242781612cd8565b91505061239c565b5050505050565b6000612440612715565b600260015414156124935760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610bbc565b600260015560e354600160a81b900460ff166124c15760405162461bcd60e51b8152600401610bbc90612b6f565b60e55460e6546124d19190612ba6565b8211156124f05760405162461bcd60e51b8152600401610bbc90612bbd565b8160e560008282546125029190612c01565b909155506000905061251383610ec2565b9050600061251f611b00565b60ce5461252c9084612b50565b6125369190612c19565b9050803410156125775760405162461bcd60e51b815260206004820152600c60248201526b13195cdcc81c185e5b595b9d60a21b6044820152606401610bbc565b60006125838234612ba6565b60d95490915061259c906001600160a01b0316836127ff565b80156125ab576125ab33611782565b60cd546000906001600160a01b031663a9059cbb3360ce546125cd908a612b50565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401602060405180830381600087803b15801561261357600080fd5b505af1158015612627573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061264b9190612c76565b90508061266a5760405162461bcd60e51b8152600401610bbc90612c93565b604080518481526000602082018190524282840152915188913391600080516020612de38339815191529181900360600190a450506001808055949350505050565b6001600160a01b03163b151590565b6065546001600160a01b031633146111bb5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610bbc565b60975460ff16156111bb5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610bbc565b612763612912565b6097805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b606580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8047101561283d5760405162461bcd60e51b815260206004820152600b60248201526a4c6f772062616c616e636560a81b6044820152606401610bbc565b6000826001600160a01b03168260405160006040518083038185875af1925050503d806000811461288a576040519150601f19603f3d011682016040523d82523d6000602084013e61288f565b606091505b50509050806115195760405162461bcd60e51b81526020600482015260126024820152711155120814185e5b595b9d0819985a5b195960721b6044820152606401610bbc565b6128dd612715565b6097805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586127903390565b60975460ff166111bb5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610bbc565b60006020828403121561296d57600080fd5b5035919050565b80356001600160a01b0381168114610c9b57600080fd5b60006020828403121561299d57600080fd5b6129a682612974565b9392505050565b600080604083850312156129c057600080fd5b50508035926020909101359150565b801515811461234d57600080fd5b6000602082840312156129ef57600080fd5b81356129a6816129cf565b60008083601f840112612a0c57600080fd5b50813567ffffffffffffffff811115612a2457600080fd5b6020830191508360208260051b8501011115612a3f57600080fd5b9250929050565b60008060208385031215612a5957600080fd5b823567ffffffffffffffff811115612a7057600080fd5b612a7c858286016129fa565b90969095509350505050565b60008060008060808587031215612a9e57600080fd5b8435935060208501359250612ab560408601612974565b9150612ac360608601612974565b905092959194509250565b60008060008060408587031215612ae457600080fd5b843567ffffffffffffffff80821115612afc57600080fd5b612b08888389016129fa565b90965094506020870135915080821115612b2157600080fd5b50612b2e878288016129fa565b95989497509550505050565b634e487b7160e01b600052601160045260246000fd5b6000816000190483118215151615612b6a57612b6a612b3a565b500290565b60208082526017908201527f64796e616d69632073616c65206e6f7420616374697665000000000000000000604082015260600190565b600082821015612bb857612bb8612b3a565b500390565b60208082526024908201527f616d6f756e742065786365656473206d617820746f6b656e7320746f206265206040820152631cdbdb1960e21b606082015260800190565b60008219821115612c1457612c14612b3a565b500190565b600082612c3657634e487b7160e01b600052601260045260246000fd5b500490565b6000825160005b81811015612c5c5760208186018101518583015201612c42565b81811115612c6b576000828501525b509190910192915050565b600060208284031215612c8857600080fd5b81516129a6816129cf565b602080825260159082015274151bdad95b881d1c985b9cd9995c8819985a5b1959605a1b604082015260600190565b634e487b7160e01b600052603260045260246000fd5b6000600019821415612cec57612cec612b3a565b5060010190565b805169ffffffffffffffffffff81168114610c9b57600080fd5b600080600080600060a08688031215612d2557600080fd5b612d2e86612cf3565b9450602086015193506040860151925060608601519150612d5160808701612cf3565b90509295509295909350565b60006001600160ff1b0381841382841380821686840486111615612d8357612d83612b3a565b600160ff1b6000871282811687830589121615612da257612da2612b3a565b60008712925087820587128484161615612dbe57612dbe612b3a565b87850587128184161615612dd457612dd4612b3a565b50505092909302939250505056fe4d8aead3491b7eba4b5c7a65fc17e493b9e63f9e433522fc5f6a85a168fc9d36a2646970667358221220eea5d487d6a116170e10423895ed47ed8dc5aecae3aaeaeed52123485c89fc5a64736f6c63430008090033
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.