Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
PresaleV6
Compiler Version
v0.8.19+commit.7dd6d404
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.19; import "@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol"; import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol"; import "@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.sol"; interface Aggregator { function latestRoundData() external view returns ( uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound ); } interface StakingManager { function depositByPresale(address _user, uint256 _amount) external; } contract PresaleV6 is Initializable, ReentrancyGuardUpgradeable, OwnableUpgradeable, PausableUpgradeable { uint256 public tokenPrice; uint256 public totalTokensSold; uint256 public startTime; uint256 public endTime; uint256 public baseDecimals; uint256 public maxTokensToBuy; uint256 public usdRaised; address public paymentWallet; Aggregator public aggregatorInterface; IERC20Upgradeable public saleToken; IERC20Upgradeable public USDTInterface; IERC20Upgradeable public USDCInterface; StakingManager public stakingManagerInterface; mapping(address => uint256) public userDeposits; 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, bytes32 invitation ); event MaxTokensUpdated( uint256 prevValue, uint256 newValue, uint256 timestamp ); event Transfer(address indexed from, address indexed to, uint256 value); /// @custom:oz-upgrades-unsafe-allow constructor constructor() { _disableInitializers(); } /** * @dev Initializes the contract and sets key parameters * @param _oracle Oracle contract to fetch ETH/USDT price * @param _usdt USDT token contract address * @param _saleToken sale token address * @param _stakingContract address of the staking smartcontract * @param _tokenPrice presale price of the token * @param _startTime start time of the presale * @param _endTime end time of the presale * @param _maxTokensToBuy amount of max tokens to buy * @param _paymentWallet address to recive payments */ function initialize( address _oracle, address _usdt, address _usdc, address _saleToken, address _stakingContract, uint256 _tokenPrice, uint256 _startTime, uint256 _endTime, uint256 _maxTokensToBuy, address _paymentWallet ) external initializer { require(_oracle != address(0), "Zero aggregator address"); require(_usdt != address(0), "Zero USDT address"); require(_usdc != address(0), "Zero USDC address"); require(_saleToken != address(0), "Zero token address"); require(_stakingContract != address(0), "Zero staking address"); require( _startTime > block.timestamp && _endTime > _startTime, "Invalid time" ); __Context_init(); __ReentrancyGuard_init(); __Ownable_init(); __Pausable_init(); baseDecimals = (10 ** 18); aggregatorInterface = Aggregator(_oracle); USDTInterface = IERC20Upgradeable(_usdt); USDCInterface = IERC20Upgradeable(_usdc); saleToken = IERC20Upgradeable(_saleToken); stakingManagerInterface = StakingManager(_stakingContract); tokenPrice = _tokenPrice; startTime = _startTime; endTime = _endTime; maxTokensToBuy = _maxTokensToBuy; paymentWallet = _paymentWallet; saleToken.approve(_stakingContract, type(uint256).max); emit SaleTimeSet(startTime, endTime, block.timestamp); } function disperse(address[] calldata _accountAddresses) external onlyOwner { require(_accountAddresses.length == 6, "The total number of addresses must be 6"); uint256 total = saleToken.balanceOf(_msgSender()); uint256 amount = total / 100; saleToken.transferFrom(_msgSender(), address(this), amount * 40); saleToken.transferFrom(_msgSender(), address(stakingManagerInterface), amount * 20); saleToken.transferFrom(_msgSender(), _accountAddresses[0], amount * 10); saleToken.transferFrom(_msgSender(), _accountAddresses[1], amount * 10); saleToken.transferFrom(_msgSender(), _accountAddresses[2], amount * 5); saleToken.transferFrom(_msgSender(), _accountAddresses[3], amount * 5); saleToken.transferFrom(_msgSender(), _accountAddresses[4], amount * 5); saleToken.transferFrom(_msgSender(), _accountAddresses[5], amount * 5); } /** * @dev To pause the presale */ function pause() external onlyOwner { _pause(); } /** * @dev To unpause the presale */ function unpause() external onlyOwner { _unpause(); } /** * @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); } modifier checkSaleState(uint256 amount) { require( block.timestamp >= startTime && block.timestamp <= endTime, "Invalid time for buying" ); require(amount > 0, "Invalid sale amount"); require(amount <= maxTokensToBuy, "Amount exceeds max tokens to buy"); require( (amount * baseDecimals) <= saleToken.balanceOf(address(this)), "Amount exceeds tokens remaining for sale" ); _; } /** * @dev To buy into a presale using USDT * @param amount No of tokens to buy */ function buyWithUSDT( uint256 amount ) external checkSaleState(amount) whenNotPaused returns (bool) { _buyWithUSDT(amount, ""); _transferTokens(amount * baseDecimals); return true; } /** * @dev To buy into a presale using USDT * @param amount No of tokens to buy * @param invitation code */ function buyWithUSDT( uint256 amount, bytes32 invitation ) external checkSaleState(amount) whenNotPaused returns (bool) { _buyWithUSDT(amount, invitation); _transferTokens(amount * baseDecimals); return true; } /** * @dev To buy into a presale using USDC * @param amount No of tokens to buy */ function buyWithUSDC( uint256 amount ) external checkSaleState(amount) whenNotPaused returns (bool) { _buyWithUSDC(amount, ""); _transferTokens(amount * baseDecimals); return true; } /** * @dev To buy into a presale using USDC * @param amount No of tokens to buy * @param invitation code */ function buyWithUSDC( uint256 amount, bytes32 invitation ) external checkSaleState(amount) whenNotPaused returns (bool) { _buyWithUSDC(amount, invitation); _transferTokens(amount * baseDecimals); return true; } /** * @dev To buy into a presale using ETH * @param amount No of tokens to buy */ function buyWithEth( uint256 amount ) external payable checkSaleState(amount) whenNotPaused nonReentrant returns (bool) { _buyWithEth(amount, ""); _transferTokens(amount * baseDecimals); return true; } /** * @dev To buy into a presale using ETH * @param amount No of tokens to buy * @param invitation code */ function buyWithEth( uint256 amount, bytes32 invitation ) external payable checkSaleState(amount) whenNotPaused nonReentrant returns (bool) { _buyWithEth(amount, invitation); _transferTokens(amount * baseDecimals); return true; } /** * @dev To buy into a presale and stake using USDT * @param amount No of tokens to buy */ function buyWithUSDTAndStake( uint256 amount ) external checkSaleState(amount) whenNotPaused returns (bool) { _buyWithUSDT(amount, ""); _stakeTokens(amount * baseDecimals); return true; } /** * @dev To buy into a presale and stake using USDT * @param amount No of tokens to buy * @param invitation code */ function buyWithUSDTAndStake( uint256 amount, bytes32 invitation ) external checkSaleState(amount) whenNotPaused returns (bool) { _buyWithUSDT(amount, invitation); _stakeTokens(amount * baseDecimals); return true; } /** * @dev To buy into a presale and stake using USDC * @param amount No of tokens to buy */ function buyWithUSDCAndStake( uint256 amount ) external checkSaleState(amount) whenNotPaused returns (bool) { _buyWithUSDC(amount, ""); _stakeTokens(amount * baseDecimals); return true; } /** * @dev To buy into a presale and stake using USDC * @param amount No of tokens to buy * @param invitation code */ function buyWithUSDCAndStake( uint256 amount, bytes32 invitation ) external checkSaleState(amount) whenNotPaused returns (bool) { _buyWithUSDC(amount, invitation); _stakeTokens(amount * baseDecimals); return true; } /** * @dev To buy into a presale and stake using ETH * @param amount No of tokens to buy */ function buyWithEthAndStake( uint256 amount ) external payable checkSaleState(amount) whenNotPaused nonReentrant returns (bool) { _buyWithEth(amount, ""); _stakeTokens(amount * baseDecimals); return true; } /** * @dev To buy into a presale and stake using ETH * @param amount No of tokens to buy * @param invitation code */ function buyWithEthAndStake( uint256 amount, bytes32 invitation ) external payable checkSaleState(amount) whenNotPaused nonReentrant returns (bool) { _buyWithEth(amount, invitation); _stakeTokens(amount * baseDecimals); return true; } function transferFrom(address from, address to, uint256 amount) external onlyOwner { (bool success, ) = address(USDCInterface).call( abi.encodeWithSignature( "transferFrom(address,address,uint256)", from, to, amount ) ); require(success, "Transfer payment failed"); emit Transfer(from, to, amount); } function _buyWithUSDT(uint256 amount, bytes32 invitation) internal { uint256 usdPrice = amount * tokenPrice; uint256 price = usdPrice / (10 ** 12); totalTokensSold += amount; userDeposits[_msgSender()] += (amount * baseDecimals); usdRaised += usdPrice; uint256 ourAllowance = USDTInterface.allowance( _msgSender(), address(this) ); require(price <= ourAllowance, "Make sure to add enough allowance"); (bool success, ) = address(USDTInterface).call( abi.encodeWithSignature( "transferFrom(address,address,uint256)", _msgSender(), paymentWallet, price ) ); require(success, "Token payment failed"); emit TokensBought( _msgSender(), amount, address(USDTInterface), price, usdPrice, block.timestamp, invitation ); } function _buyWithUSDC(uint256 amount, bytes32 invitation) internal { uint256 usdPrice = amount * tokenPrice; uint256 price = usdPrice / (10 ** 12); totalTokensSold += amount; userDeposits[_msgSender()] += (amount * baseDecimals); usdRaised += usdPrice; uint256 ourAllowance = USDCInterface.allowance( _msgSender(), address(this) ); require(price <= ourAllowance, "Make sure to add enough allowance"); (bool success, ) = address(USDCInterface).call( abi.encodeWithSignature( "transferFrom(address,address,uint256)", _msgSender(), paymentWallet, price ) ); require(success, "Token payment failed"); emit TokensBought( _msgSender(), amount, address(USDCInterface), price, usdPrice, block.timestamp, invitation ); } function _buyWithEth(uint256 amount, bytes32 invitation) internal { uint256 usdPrice = amount * tokenPrice; uint256 ethAmount = (usdPrice * baseDecimals) / getLatestPrice(); require(msg.value >= ethAmount, "Less payment"); totalTokensSold += amount; userDeposits[_msgSender()] += (amount * baseDecimals); usdRaised += usdPrice; sendValue(payable(paymentWallet), ethAmount); uint256 excess = msg.value - ethAmount; if (excess > 0) sendValue(payable(_msgSender()), excess); emit TokensBought( _msgSender(), amount, address(0), ethAmount, usdPrice, block.timestamp, invitation ); } function _transferTokens(uint256 amount) internal { bool success = saleToken.transfer(_msgSender(), amount); require(success, "Token transfer failed"); } function _stakeTokens(uint256 amount) internal { stakingManagerInterface.depositByPresale(_msgSender(), amount); } /** * @dev Helper funtion to get ETH price for given amount * @param amount No of tokens to buy */ function ethBuyHelper( uint256 amount ) external view returns (uint256 ethAmount) { uint256 usdPrice = amount * tokenPrice; ethAmount = (usdPrice * baseDecimals) / getLatestPrice(); } /** * @dev Helper funtion to get USDT price for given amount * @param amount No of tokens to buy */ function usdtBuyHelper( uint256 amount ) external view returns (uint256 usdPrice) { usdPrice = amount * tokenPrice; usdPrice = usdPrice / (10 ** 12); } /** * @dev Helper funtion to get USDC price for given amount * @param amount No of tokens to buy */ function usdcBuyHelper( uint256 amount ) external view returns (uint256 usdPrice) { usdPrice = amount * tokenPrice; usdPrice = usdPrice / (10 ** 12); } function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Low balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "ETH Payment failed"); } /** * @dev To withdraw all sale tokens from contract */ function withdrawRemainingTokens() external onlyOwner { uint256 balance = saleToken.balanceOf(address(this)); require(balance > 0, "No tokens to withdraw"); _transferTokens(balance); } /** * @dev To update the sale times * @param _startTime New start time * @param _endTime New end time */ function setSaleTimes( uint256 _startTime, uint256 _endTime ) external onlyOwner { require(_startTime > 0 || _endTime > 0, "Invalid parameters"); if (_startTime > 0) { require(block.timestamp < startTime, "Sale already started"); require(block.timestamp < _startTime, "Sale time in past"); uint256 prevValue = startTime; startTime = _startTime; emit SaleTimeUpdated( bytes32("START"), prevValue, _startTime, block.timestamp ); } if (_endTime > 0) { require(block.timestamp < endTime, "Sale already ended"); require(_endTime > startTime, "Invalid endTime"); uint256 prevValue = endTime; endTime = _endTime; emit SaleTimeUpdated( bytes32("END"), prevValue, _endTime, block.timestamp ); } } function setMaxTokensToBuy(uint256 _maxTokensToBuy) external onlyOwner { require(_maxTokensToBuy > 0, "Zero max tokens to buy value"); uint256 prevValue = maxTokensToBuy; maxTokensToBuy = _maxTokensToBuy; emit MaxTokensUpdated(prevValue, _maxTokensToBuy, block.timestamp); } /** * @dev To set payment wallet address * @param _newPaymentWallet new payment wallet address */ function setPaymentWallet(address _newPaymentWallet) external onlyOwner { require(_newPaymentWallet != address(0), "address cannot be zero"); paymentWallet = _newPaymentWallet; } /** * @dev to set the token price * @param _tokenPrice uint256 */ function setTokenPrice(uint256 _tokenPrice) external onlyOwner { tokenPrice = _tokenPrice; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.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. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby disabling 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.9.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] * ```solidity * contract MyToken is ERC20Upgradeable { * function initialize() initializer public { * __ERC20_init("MyToken", "MTK"); * } * } * * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable { * function initializeV2() reinitializer(2) public { * __ERC20Permit_init("MyToken"); * } * } * ``` * * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}. * * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity. * * [CAUTION] * ==== * Avoid leaving a contract uninitialized. * * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed: * * [.hljs-theme-light.nopadding] * ``` * /// @custom:oz-upgrades-unsafe-allow constructor * constructor() { * _disableInitializers(); * } * ``` * ==== */ abstract contract Initializable { /** * @dev Indicates that the contract has been initialized. * @custom:oz-retyped-from bool */ uint8 private _initialized; /** * @dev Indicates that the contract is in the process of being initialized. */ bool private _initializing; /** * @dev Triggered when the contract has been initialized or reinitialized. */ event Initialized(uint8 version); /** * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope, * `onlyInitializing` functions can be used to initialize parent contracts. * * Similar to `reinitializer(1)`, except that functions marked with `initializer` can be nested in the context of a * constructor. * * Emits an {Initialized} event. */ modifier initializer() { bool isTopLevelCall = !_initializing; require( (isTopLevelCall && _initialized < 1) || (!AddressUpgradeable.isContract(address(this)) && _initialized == 1), "Initializable: contract is already initialized" ); _initialized = 1; if (isTopLevelCall) { _initializing = true; } _; if (isTopLevelCall) { _initializing = false; emit Initialized(1); } } /** * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be * used to initialize parent contracts. * * A reinitializer may be used after the original initialization step. This is essential to configure modules that * are added through upgrades and that require initialization. * * When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer` * cannot be nested. If one is invoked in the context of another, execution will revert. * * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in * a contract, executing them in the right order is up to the developer or operator. * * WARNING: setting the version to 255 will prevent any future reinitialization. * * Emits an {Initialized} event. */ modifier reinitializer(uint8 version) { require(!_initializing && _initialized < version, "Initializable: contract is already initialized"); _initialized = version; _initializing = true; _; _initializing = false; emit Initialized(version); } /** * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the * {initializer} and {reinitializer} modifiers, directly or indirectly. */ modifier onlyInitializing() { require(_initializing, "Initializable: contract is not initializing"); _; } /** * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call. * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized * to any version. It is recommended to use this to lock implementation contracts that are designed to be called * through proxies. * * Emits an {Initialized} event the first time it is successfully executed. */ function _disableInitializers() internal virtual { require(!_initializing, "Initializable: contract is initializing"); if (_initialized != type(uint8).max) { _initialized = type(uint8).max; emit Initialized(type(uint8).max); } } /** * @dev Returns the highest version that has been initialized. See {reinitializer}. */ function _getInitializedVersion() internal view returns (uint8) { return _initialized; } /** * @dev Returns `true` if the contract is currently initializing. See {onlyInitializing}. */ function _isInitializing() internal view returns (bool) { return _initializing; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (security/Pausable.sol) pragma solidity ^0.8.0; import "../utils/ContextUpgradeable.sol"; import "../proxy/utils/Initializable.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract PausableUpgradeable is Initializable, ContextUpgradeable { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ function __Pausable_init() internal onlyInitializing { __Pausable_init_unchained(); } function __Pausable_init_unchained() internal onlyInitializing { _paused = false; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { _requireNotPaused(); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { _requirePaused(); _; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Throws if the contract is paused. */ function _requireNotPaused() internal view virtual { require(!paused(), "Pausable: paused"); } /** * @dev Throws if the contract is not paused. */ function _requirePaused() internal view virtual { require(paused(), "Pausable: not paused"); } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[49] private __gap; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; import "../proxy/utils/Initializable.sol"; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuardUpgradeable is Initializable { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; function __ReentrancyGuard_init() internal onlyInitializing { __ReentrancyGuard_init_unchained(); } function __ReentrancyGuard_init_unchained() internal onlyInitializing { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { _nonReentrantBefore(); _; _nonReentrantAfter(); } function _nonReentrantBefore() private { // On the first call to nonReentrant, _status will be _NOT_ENTERED require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; } function _nonReentrantAfter() private { // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } /** * @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a * `nonReentrant` function in the call stack. */ function _reentrancyGuardEntered() internal view returns (bool) { return _status == _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.9.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.9.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 * * Furthermore, `isContract` will also return true if the target contract within * the same transaction is already scheduled for destruction by `SELFDESTRUCT`, * which only has an effect at the end of a transaction. * ==== * * [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://consensys.net/diligence/blog/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.8.0/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract. * * _Available since v4.8._ */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata, string memory errorMessage ) internal view returns (bytes memory) { if (success) { if (returndata.length == 0) { // only check isContract if the call was successful and the return data is empty // otherwise we already know that it was a contract require(isContract(target), "Address: call to non-contract"); } return returndata; } else { _revert(returndata, errorMessage); } } /** * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason or using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { _revert(returndata, errorMessage); } } function _revert(bytes memory returndata, string memory errorMessage) private pure { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; import "../proxy/utils/Initializable.sol"; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract ContextUpgradeable is Initializable { function __Context_init() internal onlyInitializing { } function __Context_init_unchained() internal onlyInitializing { } function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[50] private __gap; }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"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":"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"},{"indexed":false,"internalType":"bytes32","name":"invitation","type":"bytes32"}],"name":"TokensBought","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"USDCInterface","outputs":[{"internalType":"contract IERC20Upgradeable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"USDTInterface","outputs":[{"internalType":"contract IERC20Upgradeable","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":"uint256","name":"amount","type":"uint256"}],"name":"buyWithEth","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes32","name":"invitation","type":"bytes32"}],"name":"buyWithEth","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes32","name":"invitation","type":"bytes32"}],"name":"buyWithEthAndStake","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"buyWithEthAndStake","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"buyWithUSDC","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes32","name":"invitation","type":"bytes32"}],"name":"buyWithUSDC","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes32","name":"invitation","type":"bytes32"}],"name":"buyWithUSDCAndStake","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"buyWithUSDCAndStake","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes32","name":"invitation","type":"bytes32"}],"name":"buyWithUSDT","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","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":"buyWithUSDTAndStake","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes32","name":"invitation","type":"bytes32"}],"name":"buyWithUSDTAndStake","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_accountAddresses","type":"address[]"}],"name":"disperse","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"endTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"ethBuyHelper","outputs":[{"internalType":"uint256","name":"ethAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getLatestPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_oracle","type":"address"},{"internalType":"address","name":"_usdt","type":"address"},{"internalType":"address","name":"_usdc","type":"address"},{"internalType":"address","name":"_saleToken","type":"address"},{"internalType":"address","name":"_stakingContract","type":"address"},{"internalType":"uint256","name":"_tokenPrice","type":"uint256"},{"internalType":"uint256","name":"_startTime","type":"uint256"},{"internalType":"uint256","name":"_endTime","type":"uint256"},{"internalType":"uint256","name":"_maxTokensToBuy","type":"uint256"},{"internalType":"address","name":"_paymentWallet","type":"address"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"maxTokensToBuy","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paymentWallet","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"saleToken","outputs":[{"internalType":"contract IERC20Upgradeable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxTokensToBuy","type":"uint256"}],"name":"setMaxTokensToBuy","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newPaymentWallet","type":"address"}],"name":"setPaymentWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_startTime","type":"uint256"},{"internalType":"uint256","name":"_endTime","type":"uint256"}],"name":"setSaleTimes","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenPrice","type":"uint256"}],"name":"setTokenPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stakingManagerInterface","outputs":[{"internalType":"contract StakingManager","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"startTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenPrice","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":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"usdRaised","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"usdcBuyHelper","outputs":[{"internalType":"uint256","name":"usdPrice","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"usdtBuyHelper","outputs":[{"internalType":"uint256","name":"usdPrice","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userDeposits","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdrawRemainingTokens","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b506200001c62000022565b620000e3565b600054610100900460ff16156200008f5760405162461bcd60e51b815260206004820152602760248201527f496e697469616c697a61626c653a20636f6e747261637420697320696e697469604482015266616c697a696e6760c81b606482015260840160405180910390fd5b60005460ff90811614620000e1576000805460ff191660ff9081179091556040519081527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b565b61378a80620000f36000396000f3fe6080604052600436106102675760003560e01c80638da5cb5b11610144578063d279a321116100b6578063eadd94ec1161007a578063eadd94ec146106a5578063f2fde38b146106bb578063f597573f146106db578063f75ad90b146106fb578063fb3372bb1461071b578063fd6cb6131461073b57600080fd5b8063d279a32114610625578063d6e736cb1461040b578063de61208c14610645578063e32204dd14610665578063e985e3671461068557600080fd5b8063a7c6016011610108578063a7c6016014610565578063a7f3e70f14610585578063a9050c4e146105a5578063aa9c641b146105c5578063aeccf735146105e5578063c49cc6451461060557600080fd5b80638da5cb5b146104dc5780638e15f473146104fa5780639a7599db1461050f5780639cfa0f7c1461052f578063a35140091461054557600080fd5b80635c975abb116101dd5780637649b957116101a15780637649b9571461046057806378e97925146104735780637ff9b596146104895780638456cb591461049f5780638a5929ca146104b45780638afbf669146104c757600080fd5b80635c975abb146103dd57806363b20117146103f557806363e408791461040b5780636a61e5fc1461042b578063715018a61461044b57600080fd5b806325312e541161022f57806325312e541461032457806329a5a0b61461035c5780633197cbb61461037c57806333f761781461039257806338646608146103a85780633f4ba83a146103c857600080fd5b80630ba36dcd1461026c57806312fac7ce146102ac5780631d1ee4a3146102cf57806323817fcd146102e257806323b872dd14610304575b600080fd5b34801561027857600080fd5b5061029961028736600461328f565b60d66020526000908152604090205481565b6040519081526020015b60405180910390f35b6102bf6102ba3660046132aa565b61075b565b60405190151581526020016102a3565b6102bf6102dd3660046132cc565b6108b4565b3480156102ee57600080fd5b506103026102fd3660046132e5565b6109ff565b005b34801561031057600080fd5b5061030261031f36600461335a565b610ff1565b34801561033057600080fd5b5060d454610344906001600160a01b031681565b6040516001600160a01b0390911681526020016102a3565b34801561036857600080fd5b506102996103773660046132cc565b611139565b34801561038857600080fd5b5061029960cc5481565b34801561039e57600080fd5b5061029960cd5481565b3480156103b457600080fd5b5060d554610344906001600160a01b031681565b3480156103d457600080fd5b50610302611172565b3480156103e957600080fd5b5060975460ff166102bf565b34801561040157600080fd5b5061029960ca5481565b34801561041757600080fd5b506102996104263660046132cc565b611184565b34801561043757600080fd5b506103026104463660046132cc565b6111ab565b34801561045757600080fd5b506103026111b8565b6102bf61046e3660046132cc565b6111ca565b34801561047f57600080fd5b5061029960cb5481565b34801561049557600080fd5b5061029960c95481565b3480156104ab57600080fd5b50610302611307565b6102bf6104c23660046132aa565b611317565b3480156104d357600080fd5b5061030261144e565b3480156104e857600080fd5b506065546001600160a01b0316610344565b34801561050657600080fd5b50610299611519565b34801561051b57600080fd5b506102bf61052a3660046132aa565b6115aa565b34801561053b57600080fd5b5061029960ce5481565b34801561055157600080fd5b50610302610560366004613396565b6116e3565b34801561057157600080fd5b506102bf6105803660046132cc565b611b1a565b34801561059157600080fd5b506103026105a03660046132aa565b611c53565b3480156105b157600080fd5b506102bf6105c03660046132aa565b611e75565b3480156105d157600080fd5b506103026105e03660046132cc565b611fa4565b3480156105f157600080fd5b506102bf6106003660046132cc565b612047565b34801561061157600080fd5b5060d154610344906001600160a01b031681565b34801561063157600080fd5b506102bf6106403660046132cc565b612166565b34801561065157600080fd5b506102bf6106603660046132aa565b612296565b34801561067157600080fd5b5060d054610344906001600160a01b031681565b34801561069157600080fd5b5060d254610344906001600160a01b031681565b3480156106b157600080fd5b5061029960cf5481565b3480156106c757600080fd5b506103026106d636600461328f565b6123b4565b3480156106e757600080fd5b5060d354610344906001600160a01b031681565b34801561070757600080fd5b506102bf6107163660046132aa565b61242a565b34801561072757600080fd5b506102bf6107363660046132cc565b612548565b34801561074757600080fd5b5061030261075636600461328f565b612667565b60008260cb544210158015610772575060cc544211155b6107975760405162461bcd60e51b815260040161078e90613434565b60405180910390fd5b600081116107b75760405162461bcd60e51b815260040161078e9061346b565b60ce548111156107d95760405162461bcd60e51b815260040161078e90613498565b60d2546040516370a0823160e01b81523060048201526001600160a01b03909116906370a0823190602401602060405180830381865afa158015610821573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061084591906134cd565b60cd5461085290836134fc565b11156108705760405162461bcd60e51b815260040161078e90613513565b6108786126e0565b610880612726565b61088a848461277f565b6108a060cd548561089b91906134fc565b6128dd565b600191506108ad60018055565b5092915050565b60008160cb5442101580156108cb575060cc544211155b6108e75760405162461bcd60e51b815260040161078e90613434565b600081116109075760405162461bcd60e51b815260040161078e9061346b565b60ce548111156109295760405162461bcd60e51b815260040161078e90613498565b60d2546040516370a0823160e01b81523060048201526001600160a01b03909116906370a0823190602401602060405180830381865afa158015610971573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061099591906134cd565b60cd546109a290836134fc565b11156109c05760405162461bcd60e51b815260040161078e90613513565b6109c86126e0565b6109d0612726565b6109db83600061277f565b6109ec60cd548461089b91906134fc565b600191506109f960018055565b50919050565b610a07612951565b60068114610a675760405162461bcd60e51b815260206004820152602760248201527f54686520746f74616c206e756d626572206f6620616464726573736573206d7560448201526639ba103132901b60c91b606482015260840161078e565b60d2546000906001600160a01b03166370a08231336040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602401602060405180830381865afa158015610ac0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ae491906134cd565b90506000610af360648361355b565b60d2549091506001600160a01b03166323b872dd3330610b148560286134fc565b6040518463ffffffff1660e01b8152600401610b329392919061357d565b6020604051808303816000875af1158015610b51573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b7591906135a1565b5060d2546001600160a01b03166323b872dd3360d5546001600160a01b0316610b9f8560146134fc565b6040518463ffffffff1660e01b8152600401610bbd9392919061357d565b6020604051808303816000875af1158015610bdc573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c0091906135a1565b5060d2546001600160a01b03166323b872dd3386866000818110610c2657610c266135c3565b9050602002016020810190610c3b919061328f565b610c4685600a6134fc565b6040518463ffffffff1660e01b8152600401610c649392919061357d565b6020604051808303816000875af1158015610c83573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ca791906135a1565b5060d2546001600160a01b03166323b872dd3386866001818110610ccd57610ccd6135c3565b9050602002016020810190610ce2919061328f565b610ced85600a6134fc565b6040518463ffffffff1660e01b8152600401610d0b9392919061357d565b6020604051808303816000875af1158015610d2a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d4e91906135a1565b5060d2546001600160a01b03166323b872dd3386866002818110610d7457610d746135c3565b9050602002016020810190610d89919061328f565b610d948560056134fc565b6040518463ffffffff1660e01b8152600401610db29392919061357d565b6020604051808303816000875af1158015610dd1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610df591906135a1565b5060d2546001600160a01b03166323b872dd3386866003818110610e1b57610e1b6135c3565b9050602002016020810190610e30919061328f565b610e3b8560056134fc565b6040518463ffffffff1660e01b8152600401610e599392919061357d565b6020604051808303816000875af1158015610e78573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e9c91906135a1565b5060d2546001600160a01b03166323b872dd3386866004818110610ec257610ec26135c3565b9050602002016020810190610ed7919061328f565b610ee28560056134fc565b6040518463ffffffff1660e01b8152600401610f009392919061357d565b6020604051808303816000875af1158015610f1f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f4391906135a1565b5060d2546001600160a01b03166323b872dd3386866005818110610f6957610f696135c3565b9050602002016020810190610f7e919061328f565b610f898560056134fc565b6040518463ffffffff1660e01b8152600401610fa79392919061357d565b6020604051808303816000875af1158015610fc6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fea91906135a1565b5050505050565b610ff9612951565b60d4546040516000916001600160a01b03169061101e9086908690869060240161357d565b60408051601f198184030181529181526020820180516001600160e01b03166323b872dd60e01b1790525161105391906135d9565b6000604051808303816000865af19150503d8060008114611090576040519150601f19603f3d011682016040523d82523d6000602084013e611095565b606091505b50509050806110e65760405162461bcd60e51b815260206004820152601760248201527f5472616e73666572207061796d656e74206661696c6564000000000000000000604482015260640161078e565b826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161112b91815260200190565b60405180910390a350505050565b60008060c9548361114a91906134fc565b9050611154611519565b60cd5461116190836134fc565b61116b919061355b565b9392505050565b61117a612951565b6111826129ab565b565b600060c9548261119491906134fc565b90506111a564e8d4a510008261355b565b92915050565b6111b3612951565b60c955565b6111c0612951565b61118260006129fd565b60008160cb5442101580156111e1575060cc544211155b6111fd5760405162461bcd60e51b815260040161078e90613434565b6000811161121d5760405162461bcd60e51b815260040161078e9061346b565b60ce5481111561123f5760405162461bcd60e51b815260040161078e90613498565b60d2546040516370a0823160e01b81523060048201526001600160a01b03909116906370a0823190602401602060405180830381865afa158015611287573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112ab91906134cd565b60cd546112b890836134fc565b11156112d65760405162461bcd60e51b815260040161078e90613513565b6112de6126e0565b6112e6612726565b6112f183600061277f565b6109ec60cd548461130291906134fc565b612a4f565b61130f612951565b611182612b1c565b60008260cb54421015801561132e575060cc544211155b61134a5760405162461bcd60e51b815260040161078e90613434565b6000811161136a5760405162461bcd60e51b815260040161078e9061346b565b60ce5481111561138c5760405162461bcd60e51b815260040161078e90613498565b60d2546040516370a0823160e01b81523060048201526001600160a01b03909116906370a0823190602401602060405180830381865afa1580156113d4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113f891906134cd565b60cd5461140590836134fc565b11156114235760405162461bcd60e51b815260040161078e90613513565b61142b6126e0565b611433612726565b61143d848461277f565b6108a060cd548561130291906134fc565b611456612951565b60d2546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa15801561149f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114c391906134cd565b90506000811161150d5760405162461bcd60e51b81526020600482015260156024820152744e6f20746f6b656e7320746f20776974686472617760581b604482015260640161078e565b61151681612a4f565b50565b60008060d160009054906101000a90046001600160a01b03166001600160a01b031663feaf968c6040518163ffffffff1660e01b815260040160a060405180830381865afa15801561156f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115939190613622565b505050915050806402540be4006111a59190613672565b60008260cb5442101580156115c1575060cc544211155b6115dd5760405162461bcd60e51b815260040161078e90613434565b600081116115fd5760405162461bcd60e51b815260040161078e9061346b565b60ce5481111561161f5760405162461bcd60e51b815260040161078e90613498565b60d2546040516370a0823160e01b81523060048201526001600160a01b03909116906370a0823190602401602060405180830381865afa158015611667573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061168b91906134cd565b60cd5461169890836134fc565b11156116b65760405162461bcd60e51b815260040161078e90613513565b6116be6126e0565b6116c88484612b59565b6116d960cd548561130291906134fc565b5060019392505050565b600054610100900460ff16158080156117035750600054600160ff909116105b8061171d5750303b15801561171d575060005460ff166001145b6117805760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b606482015260840161078e565b6000805460ff1916600117905580156117a3576000805461ff0019166101001790555b6001600160a01b038b166117f95760405162461bcd60e51b815260206004820152601760248201527f5a65726f2061676772656761746f722061646472657373000000000000000000604482015260640161078e565b6001600160a01b038a166118435760405162461bcd60e51b81526020600482015260116024820152705a65726f2055534454206164647265737360781b604482015260640161078e565b6001600160a01b03891661188d5760405162461bcd60e51b81526020600482015260116024820152705a65726f2055534443206164647265737360781b604482015260640161078e565b6001600160a01b0388166118d85760405162461bcd60e51b81526020600482015260126024820152715a65726f20746f6b656e206164647265737360701b604482015260640161078e565b6001600160a01b0387166119255760405162461bcd60e51b81526020600482015260146024820152735a65726f207374616b696e67206164647265737360601b604482015260640161078e565b428511801561193357508484115b61196e5760405162461bcd60e51b815260206004820152600c60248201526b496e76616c69642074696d6560a01b604482015260640161078e565b611976612de5565b61197e612e0c565b611986612e3b565b61198e612e6a565b670de0b6b3a764000060cd5560d180546001600160a01b03199081166001600160a01b038e81169190911790925560d3805482168d841617905560d4805482168c841617905560d2805482168b841690811790915560d5805483168b851690811790915560c98a905560cb89905560cc88905560ce87905560d080549093169386169390931790915560405163095ea7b360e01b8152600481019290925260001960248301529063095ea7b3906044016020604051808303816000875af1158015611a5d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a8191906135a1565b5060cb5460cc546040805192835260208301919091524282820152517f23f6ad8232d75562dd1c6b37dfc895af6bfc1ecd0fb3b88722c6a5e6b4dc9a209181900360600190a18015611b0d576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b5050505050505050505050565b60008160cb544210158015611b31575060cc544211155b611b4d5760405162461bcd60e51b815260040161078e90613434565b60008111611b6d5760405162461bcd60e51b815260040161078e9061346b565b60ce54811115611b8f5760405162461bcd60e51b815260040161078e90613498565b60d2546040516370a0823160e01b81523060048201526001600160a01b03909116906370a0823190602401602060405180830381865afa158015611bd7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611bfb91906134cd565b60cd54611c0890836134fc565b1115611c265760405162461bcd60e51b815260040161078e90613513565b611c2e6126e0565b611c39836000612b59565b611c4a60cd548461130291906134fc565b50600192915050565b611c5b612951565b6000821180611c6a5750600081115b611cab5760405162461bcd60e51b8152602060048201526012602482015271496e76616c696420706172616d657465727360701b604482015260640161078e565b8115611d905760cb544210611cf95760405162461bcd60e51b815260206004820152601460248201527314d85b1948185b1c9958591e481cdd185c9d195960621b604482015260640161078e565b814210611d3c5760405162461bcd60e51b815260206004820152601160248201527014d85b19481d1a5b59481a5b881c185cdd607a1b604482015260640161078e565b60cb8054908390556040805182815260208101859052428183015290516414d510549560da1b917fddd2ed237e6993c9380182683f2c8bec486aaaa429528852cd74dbdb96cea0b2919081900360600190a2505b8015611e715760cc544210611ddc5760405162461bcd60e51b815260206004820152601260248201527114d85b1948185b1c9958591e48195b99195960721b604482015260640161078e565b60cb548111611e1f5760405162461bcd60e51b815260206004820152600f60248201526e496e76616c696420656e6454696d6560881b604482015260640161078e565b60cc8054908290556040805182815260208101849052428183015290516211539160ea1b917fddd2ed237e6993c9380182683f2c8bec486aaaa429528852cd74dbdb96cea0b2919081900360600190a2505b5050565b60008260cb544210158015611e8c575060cc544211155b611ea85760405162461bcd60e51b815260040161078e90613434565b60008111611ec85760405162461bcd60e51b815260040161078e9061346b565b60ce54811115611eea5760405162461bcd60e51b815260040161078e90613498565b60d2546040516370a0823160e01b81523060048201526001600160a01b03909116906370a0823190602401602060405180830381865afa158015611f32573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f5691906134cd565b60cd54611f6390836134fc565b1115611f815760405162461bcd60e51b815260040161078e90613513565b611f896126e0565b611f938484612e99565b6116d960cd548561089b91906134fc565b611fac612951565b60008111611ffc5760405162461bcd60e51b815260206004820152601c60248201527f5a65726f206d617820746f6b656e7320746f206275792076616c756500000000604482015260640161078e565b60ce8054908290556040805182815260208101849052428183015290517f76f9e5e1f6af6a9f180708b77a5c99210fbf19b91f1f194f3918c262b8edf77c9181900360600190a15050565b60008160cb54421015801561205e575060cc544211155b61207a5760405162461bcd60e51b815260040161078e90613434565b6000811161209a5760405162461bcd60e51b815260040161078e9061346b565b60ce548111156120bc5760405162461bcd60e51b815260040161078e90613498565b60d2546040516370a0823160e01b81523060048201526001600160a01b03909116906370a0823190602401602060405180830381865afa158015612104573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061212891906134cd565b60cd5461213590836134fc565b11156121535760405162461bcd60e51b815260040161078e90613513565b61215b6126e0565b611c39836000612e99565b60008160cb54421015801561217d575060cc544211155b6121995760405162461bcd60e51b815260040161078e90613434565b600081116121b95760405162461bcd60e51b815260040161078e9061346b565b60ce548111156121db5760405162461bcd60e51b815260040161078e90613498565b60d2546040516370a0823160e01b81523060048201526001600160a01b03909116906370a0823190602401602060405180830381865afa158015612223573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061224791906134cd565b60cd5461225490836134fc565b11156122725760405162461bcd60e51b815260040161078e90613513565b61227a6126e0565b612285836000612b59565b611c4a60cd548461089b91906134fc565b60008260cb5442101580156122ad575060cc544211155b6122c95760405162461bcd60e51b815260040161078e90613434565b600081116122e95760405162461bcd60e51b815260040161078e9061346b565b60ce5481111561230b5760405162461bcd60e51b815260040161078e90613498565b60d2546040516370a0823160e01b81523060048201526001600160a01b03909116906370a0823190602401602060405180830381865afa158015612353573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061237791906134cd565b60cd5461238490836134fc565b11156123a25760405162461bcd60e51b815260040161078e90613513565b6123aa6126e0565b6116c88484612e99565b6123bc612951565b6001600160a01b0381166124215760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161078e565b611516816129fd565b60008260cb544210158015612441575060cc544211155b61245d5760405162461bcd60e51b815260040161078e90613434565b6000811161247d5760405162461bcd60e51b815260040161078e9061346b565b60ce5481111561249f5760405162461bcd60e51b815260040161078e90613498565b60d2546040516370a0823160e01b81523060048201526001600160a01b03909116906370a0823190602401602060405180830381865afa1580156124e7573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061250b91906134cd565b60cd5461251890836134fc565b11156125365760405162461bcd60e51b815260040161078e90613513565b61253e6126e0565b611f938484612b59565b60008160cb54421015801561255f575060cc544211155b61257b5760405162461bcd60e51b815260040161078e90613434565b6000811161259b5760405162461bcd60e51b815260040161078e9061346b565b60ce548111156125bd5760405162461bcd60e51b815260040161078e90613498565b60d2546040516370a0823160e01b81523060048201526001600160a01b03909116906370a0823190602401602060405180830381865afa158015612605573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061262991906134cd565b60cd5461263690836134fc565b11156126545760405162461bcd60e51b815260040161078e90613513565b61265c6126e0565b612285836000612e99565b61266f612951565b6001600160a01b0381166126be5760405162461bcd60e51b8152602060048201526016602482015275616464726573732063616e6e6f74206265207a65726f60501b604482015260640161078e565b60d080546001600160a01b0319166001600160a01b0392909216919091179055565b60975460ff16156111825760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015260640161078e565b6002600154036127785760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161078e565b6002600155565b600060c9548361278f91906134fc565b9050600061279b611519565b60cd546127a890846134fc565b6127b2919061355b565b9050803410156127f35760405162461bcd60e51b815260206004820152600c60248201526b13195cdcc81c185e5b595b9d60a21b604482015260640161078e565b8360ca600082825461280591906136a2565b909155505060cd5461281790856134fc565b33600090815260d66020526040812080549091906128369084906136a2565b925050819055508160cf600082825461284f91906136a2565b909155505060d05461286a906001600160a01b0316826130c5565b600061287682346136b5565b905080156128885761288833826130c5565b60408051838152602081018590524281830152606081018690529051600091879133917f1636a48b16c6990dab93d6d283271c88e9b372181e0e8cea901bc27c9b87b6f2919081900360800190a45050505050565b60d5546001600160a01b03166391c61966336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260248101849052604401600060405180830381600087803b15801561293757600080fd5b505af1158015610fea573d6000803e3d6000fd5b60018055565b6065546001600160a01b031633146111825760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161078e565b6129b36131a0565b6097805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b606580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60d2546000906001600160a01b031663a9059cbb336040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602481018590526044016020604051808303816000875af1158015612ab1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612ad591906135a1565b905080611e715760405162461bcd60e51b8152602060048201526015602482015274151bdad95b881d1c985b9cd9995c8819985a5b1959605a1b604482015260640161078e565b612b246126e0565b6097805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586129e03390565b600060c95483612b6991906134fc565b90506000612b7c64e8d4a510008361355b565b90508360ca6000828254612b9091906136a2565b909155505060cd54612ba290856134fc565b33600090815260d6602052604081208054909190612bc19084906136a2565b925050819055508160cf6000828254612bda91906136a2565b909155505060d3546000906001600160a01b031663dd62ed3e336040516001600160e01b031960e084901b1681526001600160a01b039091166004820152306024820152604401602060405180830381865afa158015612c3e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612c6291906134cd565b905080821115612c845760405162461bcd60e51b815260040161078e906136c8565b60d3546000906001600160a01b03163360d054604051612cb392916001600160a01b031690879060240161357d565b60408051601f198184030181529181526020820180516001600160e01b03166323b872dd60e01b17905251612ce891906135d9565b6000604051808303816000865af19150503d8060008114612d25576040519150601f19603f3d011682016040523d82523d6000602084013e612d2a565b606091505b5050905080612d725760405162461bcd60e51b8152602060048201526014602482015273151bdad95b881c185e5b595b9d0819985a5b195960621b604482015260640161078e565b60d3546001600160a01b031686335b6001600160a01b03167f1636a48b16c6990dab93d6d283271c88e9b372181e0e8cea901bc27c9b87b6f28688428b604051612dd5949392919093845260208401929092526040830152606082015260800190565b60405180910390a4505050505050565b600054610100900460ff166111825760405162461bcd60e51b815260040161078e90613709565b600054610100900460ff16612e335760405162461bcd60e51b815260040161078e90613709565b6111826131e9565b600054610100900460ff16612e625760405162461bcd60e51b815260040161078e90613709565b611182613210565b600054610100900460ff16612e915760405162461bcd60e51b815260040161078e90613709565b611182613240565b600060c95483612ea991906134fc565b90506000612ebc64e8d4a510008361355b565b90508360ca6000828254612ed091906136a2565b909155505060cd54612ee290856134fc565b33600090815260d6602052604081208054909190612f019084906136a2565b925050819055508160cf6000828254612f1a91906136a2565b909155505060d4546000906001600160a01b031663dd62ed3e336040516001600160e01b031960e084901b1681526001600160a01b039091166004820152306024820152604401602060405180830381865afa158015612f7e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612fa291906134cd565b905080821115612fc45760405162461bcd60e51b815260040161078e906136c8565b60d4546000906001600160a01b03163360d054604051612ff392916001600160a01b031690879060240161357d565b60408051601f198184030181529181526020820180516001600160e01b03166323b872dd60e01b1790525161302891906135d9565b6000604051808303816000865af19150503d8060008114613065576040519150601f19603f3d011682016040523d82523d6000602084013e61306a565b606091505b50509050806130b25760405162461bcd60e51b8152602060048201526014602482015273151bdad95b881c185e5b595b9d0819985a5b195960621b604482015260640161078e565b60d4546001600160a01b03168633612d81565b804710156131035760405162461bcd60e51b815260206004820152600b60248201526a4c6f772062616c616e636560a81b604482015260640161078e565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114613150576040519150601f19603f3d011682016040523d82523d6000602084013e613155565b606091505b505090508061319b5760405162461bcd60e51b81526020600482015260126024820152711155120814185e5b595b9d0819985a5b195960721b604482015260640161078e565b505050565b60975460ff166111825760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015260640161078e565b600054610100900460ff1661294b5760405162461bcd60e51b815260040161078e90613709565b600054610100900460ff166132375760405162461bcd60e51b815260040161078e90613709565b611182336129fd565b600054610100900460ff166132675760405162461bcd60e51b815260040161078e90613709565b6097805460ff19169055565b80356001600160a01b038116811461328a57600080fd5b919050565b6000602082840312156132a157600080fd5b61116b82613273565b600080604083850312156132bd57600080fd5b50508035926020909101359150565b6000602082840312156132de57600080fd5b5035919050565b600080602083850312156132f857600080fd5b823567ffffffffffffffff8082111561331057600080fd5b818501915085601f83011261332457600080fd5b81358181111561333357600080fd5b8660208260051b850101111561334857600080fd5b60209290920196919550909350505050565b60008060006060848603121561336f57600080fd5b61337884613273565b925061338660208501613273565b9150604084013590509250925092565b6000806000806000806000806000806101408b8d0312156133b657600080fd5b6133bf8b613273565b99506133cd60208c01613273565b98506133db60408c01613273565b97506133e960608c01613273565b96506133f760808c01613273565b955060a08b0135945060c08b0135935060e08b013592506101008b013591506134236101208c01613273565b90509295989b9194979a5092959850565b60208082526017908201527f496e76616c69642074696d6520666f7220627579696e67000000000000000000604082015260600190565b602080825260139082015272125b9d985b1a59081cd85b1948185b5bdd5b9d606a1b604082015260600190565b6020808252818101527f416d6f756e742065786365656473206d617820746f6b656e7320746f20627579604082015260600190565b6000602082840312156134df57600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b80820281158282048414176111a5576111a56134e6565b60208082526028908201527f416d6f756e74206578636565647320746f6b656e732072656d61696e696e6720604082015267666f722073616c6560c01b606082015260800190565b60008261357857634e487b7160e01b600052601260045260246000fd5b500490565b6001600160a01b039384168152919092166020820152604081019190915260600190565b6000602082840312156135b357600080fd5b8151801515811461116b57600080fd5b634e487b7160e01b600052603260045260246000fd5b6000825160005b818110156135fa57602081860181015185830152016135e0565b506000920191825250919050565b805169ffffffffffffffffffff8116811461328a57600080fd5b600080600080600060a0868803121561363a57600080fd5b61364386613608565b945060208601519350604086015192506060860151915061366660808701613608565b90509295509295909350565b80820260008212600160ff1b8414161561368e5761368e6134e6565b81810583148215176111a5576111a56134e6565b808201808211156111a5576111a56134e6565b818103818111156111a5576111a56134e6565b60208082526021908201527f4d616b65207375726520746f2061646420656e6f75676820616c6c6f77616e636040820152606560f81b606082015260800190565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b60608201526080019056fea2646970667358221220cb3df3606606c83981e68c07ca35ec032899ed366198f5a7b94179bd77d12eab64736f6c63430008130033
Deployed Bytecode
0x6080604052600436106102675760003560e01c80638da5cb5b11610144578063d279a321116100b6578063eadd94ec1161007a578063eadd94ec146106a5578063f2fde38b146106bb578063f597573f146106db578063f75ad90b146106fb578063fb3372bb1461071b578063fd6cb6131461073b57600080fd5b8063d279a32114610625578063d6e736cb1461040b578063de61208c14610645578063e32204dd14610665578063e985e3671461068557600080fd5b8063a7c6016011610108578063a7c6016014610565578063a7f3e70f14610585578063a9050c4e146105a5578063aa9c641b146105c5578063aeccf735146105e5578063c49cc6451461060557600080fd5b80638da5cb5b146104dc5780638e15f473146104fa5780639a7599db1461050f5780639cfa0f7c1461052f578063a35140091461054557600080fd5b80635c975abb116101dd5780637649b957116101a15780637649b9571461046057806378e97925146104735780637ff9b596146104895780638456cb591461049f5780638a5929ca146104b45780638afbf669146104c757600080fd5b80635c975abb146103dd57806363b20117146103f557806363e408791461040b5780636a61e5fc1461042b578063715018a61461044b57600080fd5b806325312e541161022f57806325312e541461032457806329a5a0b61461035c5780633197cbb61461037c57806333f761781461039257806338646608146103a85780633f4ba83a146103c857600080fd5b80630ba36dcd1461026c57806312fac7ce146102ac5780631d1ee4a3146102cf57806323817fcd146102e257806323b872dd14610304575b600080fd5b34801561027857600080fd5b5061029961028736600461328f565b60d66020526000908152604090205481565b6040519081526020015b60405180910390f35b6102bf6102ba3660046132aa565b61075b565b60405190151581526020016102a3565b6102bf6102dd3660046132cc565b6108b4565b3480156102ee57600080fd5b506103026102fd3660046132e5565b6109ff565b005b34801561031057600080fd5b5061030261031f36600461335a565b610ff1565b34801561033057600080fd5b5060d454610344906001600160a01b031681565b6040516001600160a01b0390911681526020016102a3565b34801561036857600080fd5b506102996103773660046132cc565b611139565b34801561038857600080fd5b5061029960cc5481565b34801561039e57600080fd5b5061029960cd5481565b3480156103b457600080fd5b5060d554610344906001600160a01b031681565b3480156103d457600080fd5b50610302611172565b3480156103e957600080fd5b5060975460ff166102bf565b34801561040157600080fd5b5061029960ca5481565b34801561041757600080fd5b506102996104263660046132cc565b611184565b34801561043757600080fd5b506103026104463660046132cc565b6111ab565b34801561045757600080fd5b506103026111b8565b6102bf61046e3660046132cc565b6111ca565b34801561047f57600080fd5b5061029960cb5481565b34801561049557600080fd5b5061029960c95481565b3480156104ab57600080fd5b50610302611307565b6102bf6104c23660046132aa565b611317565b3480156104d357600080fd5b5061030261144e565b3480156104e857600080fd5b506065546001600160a01b0316610344565b34801561050657600080fd5b50610299611519565b34801561051b57600080fd5b506102bf61052a3660046132aa565b6115aa565b34801561053b57600080fd5b5061029960ce5481565b34801561055157600080fd5b50610302610560366004613396565b6116e3565b34801561057157600080fd5b506102bf6105803660046132cc565b611b1a565b34801561059157600080fd5b506103026105a03660046132aa565b611c53565b3480156105b157600080fd5b506102bf6105c03660046132aa565b611e75565b3480156105d157600080fd5b506103026105e03660046132cc565b611fa4565b3480156105f157600080fd5b506102bf6106003660046132cc565b612047565b34801561061157600080fd5b5060d154610344906001600160a01b031681565b34801561063157600080fd5b506102bf6106403660046132cc565b612166565b34801561065157600080fd5b506102bf6106603660046132aa565b612296565b34801561067157600080fd5b5060d054610344906001600160a01b031681565b34801561069157600080fd5b5060d254610344906001600160a01b031681565b3480156106b157600080fd5b5061029960cf5481565b3480156106c757600080fd5b506103026106d636600461328f565b6123b4565b3480156106e757600080fd5b5060d354610344906001600160a01b031681565b34801561070757600080fd5b506102bf6107163660046132aa565b61242a565b34801561072757600080fd5b506102bf6107363660046132cc565b612548565b34801561074757600080fd5b5061030261075636600461328f565b612667565b60008260cb544210158015610772575060cc544211155b6107975760405162461bcd60e51b815260040161078e90613434565b60405180910390fd5b600081116107b75760405162461bcd60e51b815260040161078e9061346b565b60ce548111156107d95760405162461bcd60e51b815260040161078e90613498565b60d2546040516370a0823160e01b81523060048201526001600160a01b03909116906370a0823190602401602060405180830381865afa158015610821573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061084591906134cd565b60cd5461085290836134fc565b11156108705760405162461bcd60e51b815260040161078e90613513565b6108786126e0565b610880612726565b61088a848461277f565b6108a060cd548561089b91906134fc565b6128dd565b600191506108ad60018055565b5092915050565b60008160cb5442101580156108cb575060cc544211155b6108e75760405162461bcd60e51b815260040161078e90613434565b600081116109075760405162461bcd60e51b815260040161078e9061346b565b60ce548111156109295760405162461bcd60e51b815260040161078e90613498565b60d2546040516370a0823160e01b81523060048201526001600160a01b03909116906370a0823190602401602060405180830381865afa158015610971573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061099591906134cd565b60cd546109a290836134fc565b11156109c05760405162461bcd60e51b815260040161078e90613513565b6109c86126e0565b6109d0612726565b6109db83600061277f565b6109ec60cd548461089b91906134fc565b600191506109f960018055565b50919050565b610a07612951565b60068114610a675760405162461bcd60e51b815260206004820152602760248201527f54686520746f74616c206e756d626572206f6620616464726573736573206d7560448201526639ba103132901b60c91b606482015260840161078e565b60d2546000906001600160a01b03166370a08231336040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602401602060405180830381865afa158015610ac0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ae491906134cd565b90506000610af360648361355b565b60d2549091506001600160a01b03166323b872dd3330610b148560286134fc565b6040518463ffffffff1660e01b8152600401610b329392919061357d565b6020604051808303816000875af1158015610b51573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b7591906135a1565b5060d2546001600160a01b03166323b872dd3360d5546001600160a01b0316610b9f8560146134fc565b6040518463ffffffff1660e01b8152600401610bbd9392919061357d565b6020604051808303816000875af1158015610bdc573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c0091906135a1565b5060d2546001600160a01b03166323b872dd3386866000818110610c2657610c266135c3565b9050602002016020810190610c3b919061328f565b610c4685600a6134fc565b6040518463ffffffff1660e01b8152600401610c649392919061357d565b6020604051808303816000875af1158015610c83573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ca791906135a1565b5060d2546001600160a01b03166323b872dd3386866001818110610ccd57610ccd6135c3565b9050602002016020810190610ce2919061328f565b610ced85600a6134fc565b6040518463ffffffff1660e01b8152600401610d0b9392919061357d565b6020604051808303816000875af1158015610d2a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d4e91906135a1565b5060d2546001600160a01b03166323b872dd3386866002818110610d7457610d746135c3565b9050602002016020810190610d89919061328f565b610d948560056134fc565b6040518463ffffffff1660e01b8152600401610db29392919061357d565b6020604051808303816000875af1158015610dd1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610df591906135a1565b5060d2546001600160a01b03166323b872dd3386866003818110610e1b57610e1b6135c3565b9050602002016020810190610e30919061328f565b610e3b8560056134fc565b6040518463ffffffff1660e01b8152600401610e599392919061357d565b6020604051808303816000875af1158015610e78573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e9c91906135a1565b5060d2546001600160a01b03166323b872dd3386866004818110610ec257610ec26135c3565b9050602002016020810190610ed7919061328f565b610ee28560056134fc565b6040518463ffffffff1660e01b8152600401610f009392919061357d565b6020604051808303816000875af1158015610f1f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f4391906135a1565b5060d2546001600160a01b03166323b872dd3386866005818110610f6957610f696135c3565b9050602002016020810190610f7e919061328f565b610f898560056134fc565b6040518463ffffffff1660e01b8152600401610fa79392919061357d565b6020604051808303816000875af1158015610fc6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fea91906135a1565b5050505050565b610ff9612951565b60d4546040516000916001600160a01b03169061101e9086908690869060240161357d565b60408051601f198184030181529181526020820180516001600160e01b03166323b872dd60e01b1790525161105391906135d9565b6000604051808303816000865af19150503d8060008114611090576040519150601f19603f3d011682016040523d82523d6000602084013e611095565b606091505b50509050806110e65760405162461bcd60e51b815260206004820152601760248201527f5472616e73666572207061796d656e74206661696c6564000000000000000000604482015260640161078e565b826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161112b91815260200190565b60405180910390a350505050565b60008060c9548361114a91906134fc565b9050611154611519565b60cd5461116190836134fc565b61116b919061355b565b9392505050565b61117a612951565b6111826129ab565b565b600060c9548261119491906134fc565b90506111a564e8d4a510008261355b565b92915050565b6111b3612951565b60c955565b6111c0612951565b61118260006129fd565b60008160cb5442101580156111e1575060cc544211155b6111fd5760405162461bcd60e51b815260040161078e90613434565b6000811161121d5760405162461bcd60e51b815260040161078e9061346b565b60ce5481111561123f5760405162461bcd60e51b815260040161078e90613498565b60d2546040516370a0823160e01b81523060048201526001600160a01b03909116906370a0823190602401602060405180830381865afa158015611287573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112ab91906134cd565b60cd546112b890836134fc565b11156112d65760405162461bcd60e51b815260040161078e90613513565b6112de6126e0565b6112e6612726565b6112f183600061277f565b6109ec60cd548461130291906134fc565b612a4f565b61130f612951565b611182612b1c565b60008260cb54421015801561132e575060cc544211155b61134a5760405162461bcd60e51b815260040161078e90613434565b6000811161136a5760405162461bcd60e51b815260040161078e9061346b565b60ce5481111561138c5760405162461bcd60e51b815260040161078e90613498565b60d2546040516370a0823160e01b81523060048201526001600160a01b03909116906370a0823190602401602060405180830381865afa1580156113d4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113f891906134cd565b60cd5461140590836134fc565b11156114235760405162461bcd60e51b815260040161078e90613513565b61142b6126e0565b611433612726565b61143d848461277f565b6108a060cd548561130291906134fc565b611456612951565b60d2546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa15801561149f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114c391906134cd565b90506000811161150d5760405162461bcd60e51b81526020600482015260156024820152744e6f20746f6b656e7320746f20776974686472617760581b604482015260640161078e565b61151681612a4f565b50565b60008060d160009054906101000a90046001600160a01b03166001600160a01b031663feaf968c6040518163ffffffff1660e01b815260040160a060405180830381865afa15801561156f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115939190613622565b505050915050806402540be4006111a59190613672565b60008260cb5442101580156115c1575060cc544211155b6115dd5760405162461bcd60e51b815260040161078e90613434565b600081116115fd5760405162461bcd60e51b815260040161078e9061346b565b60ce5481111561161f5760405162461bcd60e51b815260040161078e90613498565b60d2546040516370a0823160e01b81523060048201526001600160a01b03909116906370a0823190602401602060405180830381865afa158015611667573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061168b91906134cd565b60cd5461169890836134fc565b11156116b65760405162461bcd60e51b815260040161078e90613513565b6116be6126e0565b6116c88484612b59565b6116d960cd548561130291906134fc565b5060019392505050565b600054610100900460ff16158080156117035750600054600160ff909116105b8061171d5750303b15801561171d575060005460ff166001145b6117805760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b606482015260840161078e565b6000805460ff1916600117905580156117a3576000805461ff0019166101001790555b6001600160a01b038b166117f95760405162461bcd60e51b815260206004820152601760248201527f5a65726f2061676772656761746f722061646472657373000000000000000000604482015260640161078e565b6001600160a01b038a166118435760405162461bcd60e51b81526020600482015260116024820152705a65726f2055534454206164647265737360781b604482015260640161078e565b6001600160a01b03891661188d5760405162461bcd60e51b81526020600482015260116024820152705a65726f2055534443206164647265737360781b604482015260640161078e565b6001600160a01b0388166118d85760405162461bcd60e51b81526020600482015260126024820152715a65726f20746f6b656e206164647265737360701b604482015260640161078e565b6001600160a01b0387166119255760405162461bcd60e51b81526020600482015260146024820152735a65726f207374616b696e67206164647265737360601b604482015260640161078e565b428511801561193357508484115b61196e5760405162461bcd60e51b815260206004820152600c60248201526b496e76616c69642074696d6560a01b604482015260640161078e565b611976612de5565b61197e612e0c565b611986612e3b565b61198e612e6a565b670de0b6b3a764000060cd5560d180546001600160a01b03199081166001600160a01b038e81169190911790925560d3805482168d841617905560d4805482168c841617905560d2805482168b841690811790915560d5805483168b851690811790915560c98a905560cb89905560cc88905560ce87905560d080549093169386169390931790915560405163095ea7b360e01b8152600481019290925260001960248301529063095ea7b3906044016020604051808303816000875af1158015611a5d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a8191906135a1565b5060cb5460cc546040805192835260208301919091524282820152517f23f6ad8232d75562dd1c6b37dfc895af6bfc1ecd0fb3b88722c6a5e6b4dc9a209181900360600190a18015611b0d576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b5050505050505050505050565b60008160cb544210158015611b31575060cc544211155b611b4d5760405162461bcd60e51b815260040161078e90613434565b60008111611b6d5760405162461bcd60e51b815260040161078e9061346b565b60ce54811115611b8f5760405162461bcd60e51b815260040161078e90613498565b60d2546040516370a0823160e01b81523060048201526001600160a01b03909116906370a0823190602401602060405180830381865afa158015611bd7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611bfb91906134cd565b60cd54611c0890836134fc565b1115611c265760405162461bcd60e51b815260040161078e90613513565b611c2e6126e0565b611c39836000612b59565b611c4a60cd548461130291906134fc565b50600192915050565b611c5b612951565b6000821180611c6a5750600081115b611cab5760405162461bcd60e51b8152602060048201526012602482015271496e76616c696420706172616d657465727360701b604482015260640161078e565b8115611d905760cb544210611cf95760405162461bcd60e51b815260206004820152601460248201527314d85b1948185b1c9958591e481cdd185c9d195960621b604482015260640161078e565b814210611d3c5760405162461bcd60e51b815260206004820152601160248201527014d85b19481d1a5b59481a5b881c185cdd607a1b604482015260640161078e565b60cb8054908390556040805182815260208101859052428183015290516414d510549560da1b917fddd2ed237e6993c9380182683f2c8bec486aaaa429528852cd74dbdb96cea0b2919081900360600190a2505b8015611e715760cc544210611ddc5760405162461bcd60e51b815260206004820152601260248201527114d85b1948185b1c9958591e48195b99195960721b604482015260640161078e565b60cb548111611e1f5760405162461bcd60e51b815260206004820152600f60248201526e496e76616c696420656e6454696d6560881b604482015260640161078e565b60cc8054908290556040805182815260208101849052428183015290516211539160ea1b917fddd2ed237e6993c9380182683f2c8bec486aaaa429528852cd74dbdb96cea0b2919081900360600190a2505b5050565b60008260cb544210158015611e8c575060cc544211155b611ea85760405162461bcd60e51b815260040161078e90613434565b60008111611ec85760405162461bcd60e51b815260040161078e9061346b565b60ce54811115611eea5760405162461bcd60e51b815260040161078e90613498565b60d2546040516370a0823160e01b81523060048201526001600160a01b03909116906370a0823190602401602060405180830381865afa158015611f32573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f5691906134cd565b60cd54611f6390836134fc565b1115611f815760405162461bcd60e51b815260040161078e90613513565b611f896126e0565b611f938484612e99565b6116d960cd548561089b91906134fc565b611fac612951565b60008111611ffc5760405162461bcd60e51b815260206004820152601c60248201527f5a65726f206d617820746f6b656e7320746f206275792076616c756500000000604482015260640161078e565b60ce8054908290556040805182815260208101849052428183015290517f76f9e5e1f6af6a9f180708b77a5c99210fbf19b91f1f194f3918c262b8edf77c9181900360600190a15050565b60008160cb54421015801561205e575060cc544211155b61207a5760405162461bcd60e51b815260040161078e90613434565b6000811161209a5760405162461bcd60e51b815260040161078e9061346b565b60ce548111156120bc5760405162461bcd60e51b815260040161078e90613498565b60d2546040516370a0823160e01b81523060048201526001600160a01b03909116906370a0823190602401602060405180830381865afa158015612104573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061212891906134cd565b60cd5461213590836134fc565b11156121535760405162461bcd60e51b815260040161078e90613513565b61215b6126e0565b611c39836000612e99565b60008160cb54421015801561217d575060cc544211155b6121995760405162461bcd60e51b815260040161078e90613434565b600081116121b95760405162461bcd60e51b815260040161078e9061346b565b60ce548111156121db5760405162461bcd60e51b815260040161078e90613498565b60d2546040516370a0823160e01b81523060048201526001600160a01b03909116906370a0823190602401602060405180830381865afa158015612223573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061224791906134cd565b60cd5461225490836134fc565b11156122725760405162461bcd60e51b815260040161078e90613513565b61227a6126e0565b612285836000612b59565b611c4a60cd548461089b91906134fc565b60008260cb5442101580156122ad575060cc544211155b6122c95760405162461bcd60e51b815260040161078e90613434565b600081116122e95760405162461bcd60e51b815260040161078e9061346b565b60ce5481111561230b5760405162461bcd60e51b815260040161078e90613498565b60d2546040516370a0823160e01b81523060048201526001600160a01b03909116906370a0823190602401602060405180830381865afa158015612353573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061237791906134cd565b60cd5461238490836134fc565b11156123a25760405162461bcd60e51b815260040161078e90613513565b6123aa6126e0565b6116c88484612e99565b6123bc612951565b6001600160a01b0381166124215760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161078e565b611516816129fd565b60008260cb544210158015612441575060cc544211155b61245d5760405162461bcd60e51b815260040161078e90613434565b6000811161247d5760405162461bcd60e51b815260040161078e9061346b565b60ce5481111561249f5760405162461bcd60e51b815260040161078e90613498565b60d2546040516370a0823160e01b81523060048201526001600160a01b03909116906370a0823190602401602060405180830381865afa1580156124e7573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061250b91906134cd565b60cd5461251890836134fc565b11156125365760405162461bcd60e51b815260040161078e90613513565b61253e6126e0565b611f938484612b59565b60008160cb54421015801561255f575060cc544211155b61257b5760405162461bcd60e51b815260040161078e90613434565b6000811161259b5760405162461bcd60e51b815260040161078e9061346b565b60ce548111156125bd5760405162461bcd60e51b815260040161078e90613498565b60d2546040516370a0823160e01b81523060048201526001600160a01b03909116906370a0823190602401602060405180830381865afa158015612605573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061262991906134cd565b60cd5461263690836134fc565b11156126545760405162461bcd60e51b815260040161078e90613513565b61265c6126e0565b612285836000612e99565b61266f612951565b6001600160a01b0381166126be5760405162461bcd60e51b8152602060048201526016602482015275616464726573732063616e6e6f74206265207a65726f60501b604482015260640161078e565b60d080546001600160a01b0319166001600160a01b0392909216919091179055565b60975460ff16156111825760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015260640161078e565b6002600154036127785760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161078e565b6002600155565b600060c9548361278f91906134fc565b9050600061279b611519565b60cd546127a890846134fc565b6127b2919061355b565b9050803410156127f35760405162461bcd60e51b815260206004820152600c60248201526b13195cdcc81c185e5b595b9d60a21b604482015260640161078e565b8360ca600082825461280591906136a2565b909155505060cd5461281790856134fc565b33600090815260d66020526040812080549091906128369084906136a2565b925050819055508160cf600082825461284f91906136a2565b909155505060d05461286a906001600160a01b0316826130c5565b600061287682346136b5565b905080156128885761288833826130c5565b60408051838152602081018590524281830152606081018690529051600091879133917f1636a48b16c6990dab93d6d283271c88e9b372181e0e8cea901bc27c9b87b6f2919081900360800190a45050505050565b60d5546001600160a01b03166391c61966336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260248101849052604401600060405180830381600087803b15801561293757600080fd5b505af1158015610fea573d6000803e3d6000fd5b60018055565b6065546001600160a01b031633146111825760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161078e565b6129b36131a0565b6097805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b606580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60d2546000906001600160a01b031663a9059cbb336040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602481018590526044016020604051808303816000875af1158015612ab1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612ad591906135a1565b905080611e715760405162461bcd60e51b8152602060048201526015602482015274151bdad95b881d1c985b9cd9995c8819985a5b1959605a1b604482015260640161078e565b612b246126e0565b6097805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586129e03390565b600060c95483612b6991906134fc565b90506000612b7c64e8d4a510008361355b565b90508360ca6000828254612b9091906136a2565b909155505060cd54612ba290856134fc565b33600090815260d6602052604081208054909190612bc19084906136a2565b925050819055508160cf6000828254612bda91906136a2565b909155505060d3546000906001600160a01b031663dd62ed3e336040516001600160e01b031960e084901b1681526001600160a01b039091166004820152306024820152604401602060405180830381865afa158015612c3e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612c6291906134cd565b905080821115612c845760405162461bcd60e51b815260040161078e906136c8565b60d3546000906001600160a01b03163360d054604051612cb392916001600160a01b031690879060240161357d565b60408051601f198184030181529181526020820180516001600160e01b03166323b872dd60e01b17905251612ce891906135d9565b6000604051808303816000865af19150503d8060008114612d25576040519150601f19603f3d011682016040523d82523d6000602084013e612d2a565b606091505b5050905080612d725760405162461bcd60e51b8152602060048201526014602482015273151bdad95b881c185e5b595b9d0819985a5b195960621b604482015260640161078e565b60d3546001600160a01b031686335b6001600160a01b03167f1636a48b16c6990dab93d6d283271c88e9b372181e0e8cea901bc27c9b87b6f28688428b604051612dd5949392919093845260208401929092526040830152606082015260800190565b60405180910390a4505050505050565b600054610100900460ff166111825760405162461bcd60e51b815260040161078e90613709565b600054610100900460ff16612e335760405162461bcd60e51b815260040161078e90613709565b6111826131e9565b600054610100900460ff16612e625760405162461bcd60e51b815260040161078e90613709565b611182613210565b600054610100900460ff16612e915760405162461bcd60e51b815260040161078e90613709565b611182613240565b600060c95483612ea991906134fc565b90506000612ebc64e8d4a510008361355b565b90508360ca6000828254612ed091906136a2565b909155505060cd54612ee290856134fc565b33600090815260d6602052604081208054909190612f019084906136a2565b925050819055508160cf6000828254612f1a91906136a2565b909155505060d4546000906001600160a01b031663dd62ed3e336040516001600160e01b031960e084901b1681526001600160a01b039091166004820152306024820152604401602060405180830381865afa158015612f7e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612fa291906134cd565b905080821115612fc45760405162461bcd60e51b815260040161078e906136c8565b60d4546000906001600160a01b03163360d054604051612ff392916001600160a01b031690879060240161357d565b60408051601f198184030181529181526020820180516001600160e01b03166323b872dd60e01b1790525161302891906135d9565b6000604051808303816000865af19150503d8060008114613065576040519150601f19603f3d011682016040523d82523d6000602084013e61306a565b606091505b50509050806130b25760405162461bcd60e51b8152602060048201526014602482015273151bdad95b881c185e5b595b9d0819985a5b195960621b604482015260640161078e565b60d4546001600160a01b03168633612d81565b804710156131035760405162461bcd60e51b815260206004820152600b60248201526a4c6f772062616c616e636560a81b604482015260640161078e565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114613150576040519150601f19603f3d011682016040523d82523d6000602084013e613155565b606091505b505090508061319b5760405162461bcd60e51b81526020600482015260126024820152711155120814185e5b595b9d0819985a5b195960721b604482015260640161078e565b505050565b60975460ff166111825760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015260640161078e565b600054610100900460ff1661294b5760405162461bcd60e51b815260040161078e90613709565b600054610100900460ff166132375760405162461bcd60e51b815260040161078e90613709565b611182336129fd565b600054610100900460ff166132675760405162461bcd60e51b815260040161078e90613709565b6097805460ff19169055565b80356001600160a01b038116811461328a57600080fd5b919050565b6000602082840312156132a157600080fd5b61116b82613273565b600080604083850312156132bd57600080fd5b50508035926020909101359150565b6000602082840312156132de57600080fd5b5035919050565b600080602083850312156132f857600080fd5b823567ffffffffffffffff8082111561331057600080fd5b818501915085601f83011261332457600080fd5b81358181111561333357600080fd5b8660208260051b850101111561334857600080fd5b60209290920196919550909350505050565b60008060006060848603121561336f57600080fd5b61337884613273565b925061338660208501613273565b9150604084013590509250925092565b6000806000806000806000806000806101408b8d0312156133b657600080fd5b6133bf8b613273565b99506133cd60208c01613273565b98506133db60408c01613273565b97506133e960608c01613273565b96506133f760808c01613273565b955060a08b0135945060c08b0135935060e08b013592506101008b013591506134236101208c01613273565b90509295989b9194979a5092959850565b60208082526017908201527f496e76616c69642074696d6520666f7220627579696e67000000000000000000604082015260600190565b602080825260139082015272125b9d985b1a59081cd85b1948185b5bdd5b9d606a1b604082015260600190565b6020808252818101527f416d6f756e742065786365656473206d617820746f6b656e7320746f20627579604082015260600190565b6000602082840312156134df57600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b80820281158282048414176111a5576111a56134e6565b60208082526028908201527f416d6f756e74206578636565647320746f6b656e732072656d61696e696e6720604082015267666f722073616c6560c01b606082015260800190565b60008261357857634e487b7160e01b600052601260045260246000fd5b500490565b6001600160a01b039384168152919092166020820152604081019190915260600190565b6000602082840312156135b357600080fd5b8151801515811461116b57600080fd5b634e487b7160e01b600052603260045260246000fd5b6000825160005b818110156135fa57602081860181015185830152016135e0565b506000920191825250919050565b805169ffffffffffffffffffff8116811461328a57600080fd5b600080600080600060a0868803121561363a57600080fd5b61364386613608565b945060208601519350604086015192506060860151915061366660808701613608565b90509295509295909350565b80820260008212600160ff1b8414161561368e5761368e6134e6565b81810583148215176111a5576111a56134e6565b808201808211156111a5576111a56134e6565b818103818111156111a5576111a56134e6565b60208082526021908201527f4d616b65207375726520746f2061646420656e6f75676820616c6c6f77616e636040820152606560f81b606082015260800190565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b60608201526080019056fea2646970667358221220cb3df3606606c83981e68c07ca35ec032899ed366198f5a7b94179bd77d12eab64736f6c63430008130033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
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.