Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 230 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Withdraw Stakes | 14366524 | 970 days ago | IN | 0 ETH | 0.00252137 | ||||
Withdraw Stakes | 14366514 | 970 days ago | IN | 0 ETH | 0.00288741 | ||||
Withdraw Stakes | 14366502 | 970 days ago | IN | 0 ETH | 0.00247817 | ||||
Distribute Share... | 14366493 | 970 days ago | IN | 0 ETH | 0.08312799 | ||||
Distribute Share... | 14366485 | 970 days ago | IN | 0 ETH | 0.17609582 | ||||
Calculate Shares... | 14366481 | 970 days ago | IN | 0 ETH | 0.04903446 | ||||
Distribute Share... | 14366468 | 970 days ago | IN | 0 ETH | 0.0010075 | ||||
Calculate Shares... | 14366456 | 970 days ago | IN | 0 ETH | 0.1968396 | ||||
Lock | 14366451 | 970 days ago | IN | 0 ETH | 0.00237917 | ||||
Stake | 14366309 | 970 days ago | IN | 0 ETH | 0.00424457 | ||||
Stake | 14366215 | 970 days ago | IN | 0 ETH | 0.00584579 | ||||
Stake | 14364682 | 971 days ago | IN | 0 ETH | 0.00423184 | ||||
Stake | 14363658 | 971 days ago | IN | 0 ETH | 0.00490883 | ||||
Stake | 14362671 | 971 days ago | IN | 0 ETH | 0.00647283 | ||||
Stake | 14362277 | 971 days ago | IN | 0 ETH | 0.00296892 | ||||
Stake | 14360351 | 971 days ago | IN | 0 ETH | 0.00606276 | ||||
Stake | 14355338 | 972 days ago | IN | 0 ETH | 0.00711516 | ||||
Stake | 14352787 | 972 days ago | IN | 0 ETH | 0.00384261 | ||||
Stake | 14342464 | 974 days ago | IN | 0 ETH | 0.00620668 | ||||
Stake | 14341843 | 974 days ago | IN | 0 ETH | 0.02569101 | ||||
Stake | 14341479 | 974 days ago | IN | 0 ETH | 0.00455905 | ||||
Unstake | 14332597 | 976 days ago | IN | 0 ETH | 0.00169905 | ||||
Unstake | 14332000 | 976 days ago | IN | 0 ETH | 0.00155865 | ||||
Unstake | 14326600 | 977 days ago | IN | 0 ETH | 0.00226954 | ||||
Unstake | 14319071 | 978 days ago | IN | 0 ETH | 0.00187693 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
LaunchPool
Compiler Version
v0.8.4+commit.c7e474f2
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.4; import "../node_modules/@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol"; import "../node_modules/@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import "../node_modules/@openzeppelin/contracts/token/ERC20/IERC20.sol"; interface ITokenDecimals { function decimals() external view returns (uint8); } interface InterfaceCurve { function getShares( uint256 supply, uint256 pool, uint256 stake, uint256 reducer, uint256 minPrice ) external view returns (uint256); function getUnitPrice( uint256 supply, uint256 pool, uint256 reducer, uint256 minPrice ) external view returns (uint256); } contract LaunchPool is Initializable { using SafeERC20 for IERC20; // Address of the sponsor that controls launch pools and token shares address private _sponsor; // IPFS hash containing JSON informations about the project string public metadata; /* * Address of the token that was previously deployed by sponsor * _stakeMax must never surpass total token supply */ address private _token; // Price curve distribution contract address address private _curve; // Reducer used by curve dustribution uint256 private _curveReducer; // Reducer used by curve dustribution uint256 private _curveMinPrice; // Defines start timestamp for Pool opens uint256 private _startTimestamp; // Defines timestamp for Pool closes uint256 private _endTimestamp; // The total amount to be staked by investors uint256 private _stakesMax; // The minimum amount to be staken to approve launch pool uint256 private _stakesMin; // The total amount current staken at launch pool uint256 private _stakesTotal; // Prevent access elements bigger then stake size uint256 private _stakesCount; // The minimum amount for a unique stake uint256 private _stakeAmountMin; // The maximum amount a single stake could have uint256 private _stakeClamp; // 0 - Not Initialized - Not even set variables yet // 1 - Initialized // Before Start Timestamp => Warm Up // After Start Timestamp => Staking/Unstaking // Before End Timestamp => Staking/Unstaking // After End Timestamp => Only Staking // 2 - Paused - Staking stopped // 3 - Calculating - Bonus calculation finished, start distribution // 4 - Distributing - Finished distribution, start sponsor withdraw // 5 - Finalized - Allow sponsor withdraw // 6 - Aborted enum Stages { NotInitialized, Initialized, Paused, Calculating, Distributing, Finalized, Aborted } // Define current stage of launch pool Stages public stage = Stages.NotInitialized; // Token list to show on frontend address[] private _tokenList; mapping(address => bool) private _allowedTokens; mapping(address => uint8) private _tokenDecimals; struct TokenStake { address investor; address token; uint256 amount; // Result bonus calculated based on curve and reducer uint256 shares; } // Stakes struct mapping mapping(uint256 => TokenStake) private _stakes; // Points to respective stake on _stakes mapping(address => uint256[]) private _stakesByAccount; // Storing calculation index and balance uint256 private _stakesCalculated = 0; uint256 private _stakesCalculatedBalance = 0; // Storing token distribution index uint256 private _stakesDistributed = 0; // **** EVENTS **** event Staked( uint256 index, address indexed investor, address indexed token, uint256 amount ); event Unstaked( uint256 index, address indexed investor, address indexed token, uint256 amount ); event Distributed( uint256 index, address indexed investor, uint256 amount, uint256 shares ); event MetadataUpdated(string newHash); // **** CONSTRUCTOR **** function initialize( address[] memory allowedTokens, uint256[] memory uintArgs, string memory _metadata, address _owner, address _sharesAddress, address _curveAddress ) public initializer { // Allow at most 3 coins require( allowedTokens.length >= 1 && allowedTokens.length <= 3, "There must be at least 1 and at most 3 tokens" ); _stakesMin = uintArgs[0]; _stakesMax = uintArgs[1]; _startTimestamp = uintArgs[2]; _endTimestamp = uintArgs[3]; _curveReducer = uintArgs[4]; _stakeAmountMin = uintArgs[5]; _curveMinPrice = uintArgs[6]; _stakeClamp = uintArgs[7]; // Prevent stakes max never surpass Shares total supply require( IERC20(_sharesAddress).totalSupply() >= InterfaceCurve(_curveAddress).getShares( _stakesMax, 0, _stakesMax, _curveReducer, _curveMinPrice ), "Shares token has not enough supply for staking distribution" ); // Store token allowance and treir decimals to easy normalize for (uint256 i = 0; i < allowedTokens.length; i++) { require( ITokenDecimals(allowedTokens[i]).decimals() <= 18, "Token allowed has more than 18 decimals" ); _tokenDecimals[allowedTokens[i]] = ITokenDecimals(allowedTokens[i]) .decimals(); _allowedTokens[allowedTokens[i]] = true; _tokenList.push(allowedTokens[i]); } _curve = _curveAddress; _sponsor = _owner; _token = _sharesAddress; metadata = _metadata; stage = Stages.Initialized; } // **** MODIFIERS **** modifier isTokenAllowed(address _tokenAddr) { require(_allowedTokens[_tokenAddr], "Cannot deposit that token"); _; } modifier isStaking() { require( block.timestamp > _startTimestamp, "Launch Pool has not started" ); require(stage == Stages.Initialized, "Launch Pool is not staking"); _; } modifier isPaused() { require(stage == Stages.Paused, "LaunchPool is not paused"); _; } modifier isConcluded() { require( block.timestamp >= _endTimestamp, "LaunchPool end timestamp not reached" ); require( _stakesTotal >= _stakesMin, "LaunchPool not reached minimum stake" ); _; } modifier isCalculating() { require( stage == Stages.Calculating, "Tokens are not yet ready to calculate" ); _; } modifier isDistributing() { require( stage == Stages.Distributing, "Tokens are not yet ready to distribute" ); _; } modifier isFinalized() { require(stage == Stages.Finalized, "Launch pool not finalized yet"); _; } modifier hasStakeClamped(uint256 amount, address token) { // The multiplications allow prevent that tokens with less than 18 decimals pass through require( amount * (10**(18 - _tokenDecimals[token])) <= _stakeClamp, "Stake maximum amount exceeded" ); _; } modifier hasMaxStakeReached(uint256 amount, address token) { // The multiplications allow prevent that tokens with less than 18 decimals pass through require( _stakesTotal + amount * (10**(18 - _tokenDecimals[token])) <= _stakesMax, "Maximum staked amount exceeded" ); _; } modifier onlySponsor() { require(sponsor() == msg.sender, "Sponsor: caller is not the sponsor"); _; } // **** VIEWS **** // Returns the sponsor address, owner of the contract function sponsor() public view virtual returns (address) { return _sponsor; } // Return the token list alllowed on launch pool function tokenList() public view returns (address[] memory) { return _tokenList; } // Return token shares address function sharesAddress() public view returns (address) { return _token; } /** * @dev Returns detailed stakes from an investor. * Stakes are returned as single dimension array. * [0] Amount of token decimals for first investor stake * [1] Stake amount of first stake * and so on... */ function stakesDetailedOf(address investor_) public view returns (uint256[] memory) { uint256[] memory stakes = new uint256[](_stakesByAccount[investor_].length * 2); for (uint256 i = 0; i < _stakesByAccount[investor_].length; i++) { stakes[i * 2] = _tokenDecimals[ _stakes[_stakesByAccount[investor_][i]].token ]; stakes[i * 2 + 1] = _stakes[_stakesByAccount[investor_][i]].amount; } return stakes; } /** * @dev Return global stake indexes for a specific investor. */ function stakesOf(address investor_) public view returns (uint256[] memory) { return _stakesByAccount[investor_]; } function stakesList() public view returns (uint256[] memory) { uint256[] memory stakes = new uint256[](_stakesCount); for (uint256 i = 0; i < _stakesCount; i++) { stakes[i] = _stakes[i].amount; } return stakes; } /** * @dev Get Stake shares for interface calculation. */ function getStakeShares(uint256 amount, uint256 balance) public view returns (uint256) { return InterfaceCurve(_curve).getShares( _stakesMax, balance, amount, _curveReducer, _curveMinPrice ); } /** * @dev Get general info about launch pool. Return Uint values * 0 - Pool start timestamp * 1 - Pool end timestamp * 2 - Minimum stakes for pool approval * 3 - Total stake allowed by launch pool * 4 - Sum of all stakes * 5 - Stakes Count * 6 - Curve Reducer value * 7 - Current stage of launch pool * 8 - Minimum amount allowed to stake * 9 - Minimum price paid for a share * 10 - Maximum price that investors will pay for a share */ function getGeneralInfos() public view returns (uint256[] memory values) { values = new uint256[](11); values[0] = _startTimestamp; values[1] = _endTimestamp; values[2] = _stakesMin; values[3] = _stakesMax; values[4] = _stakesTotal; values[5] = _stakesCount; values[6] = _curveReducer; values[7] = uint256(stage); values[8] = _stakeAmountMin; values[9] = _curveMinPrice; values[10] = _stakeClamp; return values; } // **** INITIALIZED ***** /** @dev Update metadata informations for launch pool **/ function updateMetadata(string memory _hash) external onlySponsor { metadata = _hash; emit MetadataUpdated(_hash); } // **** STAKING ***** /** @dev This allows investor to stake some ERC20 token. Make sure * You `ERC20.approve` to this contract before you stake. * * Requirements: * * - `token` Address of token contract to be staked * - `amount` The amount of tokens to stake */ function stake(address token, uint256 amount) external isStaking isTokenAllowed(token) hasMaxStakeReached(amount, token) hasStakeClamped(amount, token) { uint256 normalizedAmount = amount * (10**(18 - _tokenDecimals[token])); require( normalizedAmount >= _stakeAmountMin, "Stake below minimum amount" ); uint256 prevBalance = IERC20(token).balanceOf(address(this)); // If the transfer fails, we revert and don't record the amount. IERC20(token).safeTransferFrom(msg.sender,address(this),amount); uint256 resultAmount = IERC20(token).balanceOf(address(this))-prevBalance; normalizedAmount = resultAmount * (10**(18 - _tokenDecimals[token])); // Store stake id after insert it to the queue TokenStake storage s = _stakes[_stakesCount]; s.investor = msg.sender; s.token = token; // Convert any token amount that has less than 18 decimals to 18 s.amount = normalizedAmount; _stakesTotal += s.amount; _stakesByAccount[msg.sender].push(_stakesCount); emit Staked(_stakesCount, msg.sender, token, resultAmount); _stakesCount += 1; } /** @dev This allows investor to unstake a previously stake. A investor stakeID * must be passed as parameter. The investor stakes are created sequentially and could * be listed using stakesOf(). * * Requirements: * * - `stakeId` The index of stake from a sender investor. Initiating at 0. */ function unstake(uint256 stakeId) external { require( stage == Stages.Initialized || stage == Stages.Aborted || stage == Stages.Paused, "No Staking/Paused/Aborted stage." ); if (stage == Stages.Initialized) { require(block.timestamp <= _endTimestamp, "Launch Pool is closed"); } require( _stakesByAccount[msg.sender].length > stakeId, "Stake index out of bounds" ); uint256 globalId = _stakesByAccount[msg.sender][stakeId]; TokenStake memory _stake = _stakes[globalId]; require(_stake.amount > 0, "Stake already unstaked"); // In case of 6 decimals (USDC, USDC, etc.) tokens need to be converted back. IERC20(_stake.token).safeTransfer( msg.sender, _stake.amount / (10**(18 - _tokenDecimals[_stake.token])) ); _stakesTotal -= _stake.amount; _stakes[globalId].amount = 0; emit Unstaked(globalId, msg.sender, _stake.token, _stake.amount); } /** @dev This allows sponsor pause staking preventing investor to stake. * Only called by sponsor. **/ function pause() external onlySponsor isStaking { stage = Stages.Paused; } /** @dev Unpause launch pool returning back to staking/unstaking stage. * Only called by sponsor. **/ function unpause() external onlySponsor isPaused { stage = Stages.Initialized; } /** @dev Extend staking period of the launch pool. **/ function extendEndTimestamp(uint256 extension) external onlySponsor isStaking { // Prevent extension to be bigger than 1 year, to not allow overflows require(extension < 365 days, "Extensions must be small than 1 year"); _endTimestamp += extension; } /** @dev Lock stakes and proceed to Calculating phase of launch pool. * Only called by sponsor. **/ function lock() external onlySponsor isConcluded { stage = Stages.Calculating; } // ***** CALCULATING ****** /** @dev Calculate how much shares each investor will receive accordingly to their stakes. * Shares are calculated in order and skipped in case of has amount 0(unstaked). * In case of low gas, the calculation stops at the current stake index. * Only called by sponsor. **/ function calculateSharesChunk() external onlySponsor isCalculating { InterfaceCurve curve = InterfaceCurve(_curve); while (_stakesCalculated < _stakesCount) { // Break while loop in case of lack of gas if (gasleft() < 100000) break; // In case that stake has amount 0, it could be skipped if (_stakes[_stakesCalculated].amount > 0) { _stakes[_stakesCalculated].shares = curve.getShares( _stakesMax, _stakesCalculatedBalance, _stakes[_stakesCalculated].amount, _curveReducer, _curveMinPrice ); _stakesCalculatedBalance += _stakes[_stakesCalculated].amount; } _stakesCalculated++; } if (_stakesCalculated >= _stakesCount) { stage = Stages.Distributing; } } // ***** DISTRIBUTING ***** /** @dev Distribute all shares calculated for each investor. * Shares are distributed in order and skipped in case of has amount 0(unstaked). * In case of low gas, the distribution stops at the current stake index. * Only called by sponsor. **/ function distributeSharesChunk() external onlySponsor isDistributing { IERC20 token = IERC20(_token); TokenStake memory _stake; while (_stakesDistributed < _stakesCount) { // Break while loop in case of lack of gas if (gasleft() < 100000) break; // In case that stake has amount 0, it could be skipped _stake = _stakes[_stakesDistributed]; if (_stake.amount > 0) { token.safeTransferFrom(_sponsor, _stake.investor, _stake.shares); // Zero amount and shares to not be distribute again same stake emit Distributed( _stakesDistributed, _stake.investor, _stake.amount, _stake.shares ); //_stakes[_stakesDistributed].amount = 0; _stakes[_stakesDistributed].shares = 0; } _stakesDistributed++; } if (_stakesDistributed >= _stakesCount) { stage = Stages.Finalized; } } // **** FINALIZED ***** /** @dev Sponsor withdraw stakes after finalized pool. * This could also be used to withdraw remain not used shared **/ function withdrawStakes(address token) external onlySponsor isFinalized { IERC20 instance = IERC20(token); uint256 tokenBalance = instance.balanceOf(address(this)); instance.safeTransfer(msg.sender, tokenBalance); } // **** ABORTING **** /** @dev Abort launch pool and allow all investors to unstake their tokens. * Only called by sponsor. **/ function abort() external onlySponsor { // TODO Define rules to allow abort pool stage = Stages.Aborted; } }
// SPDX-License-Identifier: MIT // solhint-disable-next-line compiler-version pragma solidity ^0.8.0; /** * @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 a proxied contract can't have 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. * * 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. */ abstract contract Initializable { /** * @dev Indicates that the contract has been initialized. */ bool private _initialized; /** * @dev Indicates that the contract is in the process of being initialized. */ bool private _initializing; /** * @dev Modifier to protect an initializer function from being invoked twice. */ modifier initializer() { require(_initializing || !_initialized, "Initializable: contract is already initialized"); bool isTopLevelCall = !_initializing; if (isTopLevelCall) { _initializing = true; _initialized = true; } _; if (isTopLevelCall) { _initializing = false; } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @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 `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, 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 `sender` to `recipient` 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 sender, address recipient, uint256 amount) external returns (bool); /** * @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); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../IERC20.sol"; import "../../../utils/Address.sol"; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using Address for address; function safeTransfer(IERC20 token, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove(IERC20 token, address spender, uint256 value) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' // solhint-disable-next-line max-line-length require((value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 newAllowance = token.allowance(address(this), spender) + value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require(oldAllowance >= value, "SafeERC20: decreased allowance below zero"); uint256 newAllowance = oldAllowance - value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional // solhint-disable-next-line max-line-length require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; // solhint-disable-next-line no-inline-assembly assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); // solhint-disable-next-line avoid-low-level-calls, avoid-call-value (bool success, ) = recipient.call{ value: amount }(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain`call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.call{ value: value }(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data, string memory errorMessage) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.staticcall(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.delegatecall(data); return _verifyCallResult(success, returndata, errorMessage); } function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private pure returns(bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly // solhint-disable-next-line no-inline-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
{ "remappings": [], "optimizer": { "enabled": true, "runs": 200 }, "evmVersion": "istanbul", "libraries": {}, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"index","type":"uint256"},{"indexed":true,"internalType":"address","name":"investor","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"shares","type":"uint256"}],"name":"Distributed","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"newHash","type":"string"}],"name":"MetadataUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"index","type":"uint256"},{"indexed":true,"internalType":"address","name":"investor","type":"address"},{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Staked","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"index","type":"uint256"},{"indexed":true,"internalType":"address","name":"investor","type":"address"},{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Unstaked","type":"event"},{"inputs":[],"name":"abort","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"calculateSharesChunk","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"distributeSharesChunk","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"extension","type":"uint256"}],"name":"extendEndTimestamp","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getGeneralInfos","outputs":[{"internalType":"uint256[]","name":"values","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"balance","type":"uint256"}],"name":"getStakeShares","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"allowedTokens","type":"address[]"},{"internalType":"uint256[]","name":"uintArgs","type":"uint256[]"},{"internalType":"string","name":"_metadata","type":"string"},{"internalType":"address","name":"_owner","type":"address"},{"internalType":"address","name":"_sharesAddress","type":"address"},{"internalType":"address","name":"_curveAddress","type":"address"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"lock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"metadata","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"sharesAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"sponsor","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"stage","outputs":[{"internalType":"enum LaunchPool.Stages","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"stake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"investor_","type":"address"}],"name":"stakesDetailedOf","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"stakesList","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"investor_","type":"address"}],"name":"stakesOf","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenList","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"stakeId","type":"uint256"}],"name":"unstake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_hash","type":"string"}],"name":"updateMetadata","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"withdrawStakes","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6080604052600e805460ff1916905560006014819055601581905560165534801561002957600080fd5b50612e9e806100396000396000f3fe608060405234801561001057600080fd5b50600436106101425760003560e01c80638e420dbc116100b8578063c040e6b81161007c578063c040e6b814610277578063c4b4132614610291578063e233c3f914610299578063edab8283146102ac578063f33670aa146102bf578063f83d08ba146102d057600080fd5b80638e420dbc1461022c578063918b5be1146102345780639e2c58ca14610247578063ad8ac16a1461025c578063adc9772e1461026457600080fd5b80633f4ba83a1161010a5780633f4ba83a146101b5578063639408d5146101bd5780636fc93189146101de57806377c93662146101f15780637a76813d1461021c5780638456cb591461022457600080fd5b80632e17de781461014757806333b69c4c1461015c578063344a5bcc1461018557806335a063b414610198578063392f37e9146101a0575b600080fd5b61015a6101553660046129ce565b6102d8565b005b61016f61016a36600461281b565b61062f565b60405161017c9190612aa9565b60405180910390f35b61016f61019336600461281b565b61069b565b61015a6108b6565b6101a86108fe565b60405161017c9190612b09565b61015a61098c565b6101d06101cb3660046129fe565b610a44565b60405190815260200161017c565b61015a6101ec36600461281b565b610aef565b6000546201000090046001600160a01b03165b6040516001600160a01b03909116815260200161017c565b61015a610c2b565b61015a610e51565b61015a610efb565b61015a610242366004612993565b61111d565b61024f61119c565b60405161017c9190612a5c565b61016f6111fe565b61015a610272366004612835565b6112bb565b600e546102849060ff1681565b60405161017c9190612ae1565b61016f6117c5565b61015a6102a73660046129ce565b611a1e565b61015a6102ba36600461285e565b611b2d565b6002546001600160a01b0316610204565b61015a61229c565b6001600e5460ff1660068111156102ff57634e487b7160e01b600052602160045260246000fd5b148061032f57506006600e5460ff16600681111561032d57634e487b7160e01b600052602160045260246000fd5b145b8061035e57506002600e5460ff16600681111561035c57634e487b7160e01b600052602160045260246000fd5b145b6103af5760405162461bcd60e51b815260206004820181905260248201527f4e6f205374616b696e672f5061757365642f41626f727465642073746167652e60448201526064015b60405180910390fd5b6001600e5460ff1660068111156103d657634e487b7160e01b600052602160045260246000fd5b1415610426576007544211156104265760405162461bcd60e51b815260206004820152601560248201527413185d5b98da08141bdbdb081a5cc818db1bdcd959605a1b60448201526064016103a6565b3360009081526013602052604090205481106104845760405162461bcd60e51b815260206004820152601960248201527f5374616b6520696e646578206f7574206f6620626f756e64730000000000000060448201526064016103a6565b3360009081526013602052604081208054839081106104b357634e487b7160e01b600052603260045260246000fd5b600091825260208083209091015480835260128252604092839020835160808101855281546001600160a01b03908116825260018301541693810193909352600281015493830184905260030154606083015292509061054e5760405162461bcd60e51b815260206004820152601660248201527514dd185ad948185b1c9958591e481d5b9cdd185ad95960521b60448201526064016103a6565b6020808201516001600160a01b03166000908152601190915260409020546105af9033906105809060ff166012612d9d565b61058b90600a612cbc565b836040015161059a9190612c59565b60208401516001600160a01b0316919061239f565b8060400151600a60008282546105c59190612d86565b909155505060008281526012602090815260408083206002019290925582810151838301518351868152928301526001600160a01b03169133917f88567e6595ad345e5250569a2c8d8a50ed9db24198350fa907e42d73faf012d5910160405180910390a3505050565b6001600160a01b03811660009081526013602090815260409182902080548351818402810184019094528084526060939283018282801561068f57602002820191906000526020600020905b81548152602001906001019080831161067b575b50505050509050919050565b6001600160a01b038116600090815260136020526040812054606091906106c3906002612d67565b67ffffffffffffffff8111156106e957634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015610712578160200160208202803683370190505b50905060005b6001600160a01b0384166000908152601360205260409020548110156108af57601160006012600060136000896001600160a01b03166001600160a01b03168152602001908152602001600020858154811061078457634e487b7160e01b600052603260045260246000fd5b600091825260208083209091015483528281019390935260409182018120600101546001600160a01b0316845291830193909352910190205460ff16826107cc836002612d67565b815181106107ea57634e487b7160e01b600052603260045260246000fd5b6020026020010181815250506012600060136000876001600160a01b03166001600160a01b03168152602001908152602001600020838154811061083e57634e487b7160e01b600052603260045260246000fd5b9060005260206000200154815260200190815260200160002060020154828260026108699190612d67565b610874906001612c41565b8151811061089257634e487b7160e01b600052603260045260246000fd5b6020908102919091010152806108a781612e21565b915050610718565b5092915050565b6000546001600160a01b03620100009091041633146108e75760405162461bcd60e51b81526004016103a690612b73565b600e80546006919060ff19166001835b0217905550565b6001805461090b90612dec565b80601f016020809104026020016040519081016040528092919081815260200182805461093790612dec565b80156109845780601f1061095957610100808354040283529160200191610984565b820191906000526020600020905b81548152906001019060200180831161096757829003601f168201915b505050505081565b6000546001600160a01b03620100009091041633146109bd5760405162461bcd60e51b81526004016103a690612b73565b6002600e5460ff1660068111156109e457634e487b7160e01b600052602160045260246000fd5b14610a315760405162461bcd60e51b815260206004820152601860248201527f4c61756e6368506f6f6c206973206e6f7420706175736564000000000000000060448201526064016103a6565b600e80546001919060ff191682806108f7565b6003546008546004805460055460405163f8a4ad5b60e01b8152928301939093526024820185905260448201869052606482015260848101919091526000916001600160a01b03169063f8a4ad5b9060a40160206040518083038186803b158015610aae57600080fd5b505afa158015610ac2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ae691906129e6565b90505b92915050565b6000546001600160a01b0362010000909104163314610b205760405162461bcd60e51b81526004016103a690612b73565b6005600e5460ff166006811115610b4757634e487b7160e01b600052602160045260246000fd5b14610b945760405162461bcd60e51b815260206004820152601d60248201527f4c61756e636820706f6f6c206e6f742066696e616c697a65642079657400000060448201526064016103a6565b6040516370a0823160e01b815230600482015281906000906001600160a01b038316906370a082319060240160206040518083038186803b158015610bd857600080fd5b505afa158015610bec573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c1091906129e6565b9050610c266001600160a01b038316338361239f565b505050565b6000546001600160a01b0362010000909104163314610c5c5760405162461bcd60e51b81526004016103a690612b73565b6004600e5460ff166006811115610c8357634e487b7160e01b600052602160045260246000fd5b14610cdf5760405162461bcd60e51b815260206004820152602660248201527f546f6b656e7320617265206e6f742079657420726561647920746f206469737460448201526572696275746560d01b60648201526084016103a6565b6002546040805160808101825260008082526020820181905291810182905260608101919091526001600160a01b03909116905b600b546016541015610e3457620186a05a1015610d2f57610e34565b50601654600090815260126020908152604091829020825160808101845281546001600160a01b0390811682526001830154169281019290925260028101549282018390526003015460608201529015610e1a5760005481516060830151610dab926001600160a01b0386811693620100009092041691612402565b805160165460408084015160608086015183519485526020850192909252918301526001600160a01b03909216917febfe46b2b9627430364d1cff67d061f2e2f59dfedbd307f28a227b9ba08ad807910160405180910390a26016546000908152601260205260408120600301555b60168054906000610e2a83612e21565b9190505550610d13565b600b5460165410610e4d57600e805460ff191660051790555b5050565b6000546001600160a01b0362010000909104163314610e825760405162461bcd60e51b81526004016103a690612b73565b6006544211610ea35760405162461bcd60e51b81526004016103a690612bb5565b6001600e5460ff166006811115610eca57634e487b7160e01b600052602160045260246000fd5b14610ee75760405162461bcd60e51b81526004016103a690612b3c565b600e80546002919060ff19166001836108f7565b6000546001600160a01b0362010000909104163314610f2c5760405162461bcd60e51b81526004016103a690612b73565b6003600e5460ff166006811115610f5357634e487b7160e01b600052602160045260246000fd5b14610fae5760405162461bcd60e51b815260206004820152602560248201527f546f6b656e7320617265206e6f742079657420726561647920746f2063616c63604482015264756c61746560d81b60648201526084016103a6565b6003546001600160a01b03165b600b54601454101561110157620186a05a1015610fd757611101565b601454600090815260126020526040902060020154156110e757600854601554601454600090815260126020526040908190206002015460048054600554935163f8a4ad5b60e01b81529182019590955260248101939093526044830152606482019290925260848101919091526001600160a01b0382169063f8a4ad5b9060a40160206040518083038186803b15801561107157600080fd5b505afa158015611085573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110a991906129e6565b6014805460009081526012602052604080822060030193909355905481529081206002015460158054919290916110e1908490612c41565b90915550505b601480549060006110f783612e21565b9190505550610fbb565b600b546014541061111a57600e805460ff191660041790555b50565b6000546001600160a01b036201000090910416331461114e5760405162461bcd60e51b81526004016103a690612b73565b805161116190600190602084019061268c565b507f1c306e70c05992619e2128ad1ef88df75f36c9476282e59f51401b2abaa42e4e816040516111919190612b09565b60405180910390a150565b6060600f8054806020026020016040519081016040528092919081815260200182805480156111f457602002820191906000526020600020905b81546001600160a01b031681526001909101906020018083116111d6575b5050505050905090565b60606000600b5467ffffffffffffffff81111561122b57634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015611254578160200160208202803683370190505b50905060005b600b548110156112b557600081815260126020526040902060020154825183908390811061129857634e487b7160e01b600052603260045260246000fd5b6020908102919091010152806112ad81612e21565b91505061125a565b50919050565b60065442116112dc5760405162461bcd60e51b81526004016103a690612bb5565b6001600e5460ff16600681111561130357634e487b7160e01b600052602160045260246000fd5b146113205760405162461bcd60e51b81526004016103a690612b3c565b6001600160a01b038216600090815260106020526040902054829060ff1661138a5760405162461bcd60e51b815260206004820152601960248201527f43616e6e6f74206465706f736974207468617420746f6b656e0000000000000060448201526064016103a6565b6008546001600160a01b038416600090815260116020526040902054839185916113b89060ff166012612d9d565b6113c390600a612cbc565b6113cd9084612d67565b600a546113da9190612c41565b11156114285760405162461bcd60e51b815260206004820152601e60248201527f4d6178696d756d207374616b656420616d6f756e74206578636565646564000060448201526064016103a6565b600d546001600160a01b038616600090815260116020526040902054859187916114569060ff166012612d9d565b61146190600a612cbc565b61146b9084612d67565b11156114b95760405162461bcd60e51b815260206004820152601d60248201527f5374616b65206d6178696d756d20616d6f756e7420657863656564656400000060448201526064016103a6565b6001600160a01b0387166000908152601160205260408120546114e09060ff166012612d9d565b6114eb90600a612cbc565b6114f59088612d67565b9050600c548110156115495760405162461bcd60e51b815260206004820152601a60248201527f5374616b652062656c6f77206d696e696d756d20616d6f756e7400000000000060448201526064016103a6565b6040516370a0823160e01b81523060048201526000906001600160a01b038a16906370a082319060240160206040518083038186803b15801561158b57600080fd5b505afa15801561159f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115c391906129e6565b90506115da6001600160a01b038a1633308b612402565b6040516370a0823160e01b815230600482015260009082906001600160a01b038c16906370a082319060240160206040518083038186803b15801561161e57600080fd5b505afa158015611632573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061165691906129e6565b6116609190612d86565b6001600160a01b038b1660009081526011602052604090205490915061168a9060ff166012612d9d565b61169590600a612cbc565b61169f9082612d67565b9250600060126000600b5481526020019081526020016000209050338160000160006101000a8154816001600160a01b0302191690836001600160a01b031602179055508a8160010160006101000a8154816001600160a01b0302191690836001600160a01b031602179055508381600201819055508060020154600a600082825461172b9190612c41565b9091555050336000818152601360209081526040808320600b805482546001810184559286529484902090910193909355915482519081529081018590526001600160a01b038e1692917f7edb7e181699d1db1f6e3ac27fb17e1db8ac69aeb22eec366e72528c0886726a910160405180910390a36001600b60008282546117b39190612c41565b90915550505050505050505050505050565b60408051600b808252610180820190925260609160208201610160803683370190505090506006548160008151811061180e57634e487b7160e01b600052603260045260246000fd5b6020026020010181815250506007548160018151811061183e57634e487b7160e01b600052603260045260246000fd5b6020026020010181815250506009548160028151811061186e57634e487b7160e01b600052603260045260246000fd5b6020026020010181815250506008548160038151811061189e57634e487b7160e01b600052603260045260246000fd5b602002602001018181525050600a54816004815181106118ce57634e487b7160e01b600052603260045260246000fd5b602002602001018181525050600b54816005815181106118fe57634e487b7160e01b600052603260045260246000fd5b6020026020010181815250506004548160068151811061192e57634e487b7160e01b600052603260045260246000fd5b6020908102919091010152600e5460ff16600681111561195e57634e487b7160e01b600052602160045260246000fd5b8160078151811061197f57634e487b7160e01b600052603260045260246000fd5b602002602001018181525050600c54816008815181106119af57634e487b7160e01b600052603260045260246000fd5b602002602001018181525050600554816009815181106119df57634e487b7160e01b600052603260045260246000fd5b602002602001018181525050600d5481600a81518110611a0f57634e487b7160e01b600052603260045260246000fd5b60200260200101818152505090565b6000546001600160a01b0362010000909104163314611a4f5760405162461bcd60e51b81526004016103a690612b73565b6006544211611a705760405162461bcd60e51b81526004016103a690612bb5565b6001600e5460ff166006811115611a9757634e487b7160e01b600052602160045260246000fd5b14611ab45760405162461bcd60e51b81526004016103a690612b3c565b6301e133808110611b135760405162461bcd60e51b8152602060048201526024808201527f457874656e73696f6e73206d75737420626520736d616c6c207468616e2031206044820152633cb2b0b960e11b60648201526084016103a6565b8060076000828254611b259190612c41565b909155505050565b600054610100900460ff1680611b46575060005460ff16155b611ba95760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b60648201526084016103a6565b600054610100900460ff16158015611bcb576000805461ffff19166101011790555b6001875110158015611bdf57506003875111155b611c415760405162461bcd60e51b815260206004820152602d60248201527f5468657265206d757374206265206174206c65617374203120616e642061742060448201526c6d6f7374203320746f6b656e7360981b60648201526084016103a6565b85600081518110611c6257634e487b7160e01b600052603260045260246000fd5b602002602001015160098190555085600181518110611c9157634e487b7160e01b600052603260045260246000fd5b602002602001015160088190555085600281518110611cc057634e487b7160e01b600052603260045260246000fd5b602002602001015160068190555085600381518110611cef57634e487b7160e01b600052603260045260246000fd5b602002602001015160078190555085600481518110611d1e57634e487b7160e01b600052603260045260246000fd5b602002602001015160048190555085600581518110611d4d57634e487b7160e01b600052603260045260246000fd5b6020026020010151600c8190555085600681518110611d7c57634e487b7160e01b600052603260045260246000fd5b602002602001015160058190555085600781518110611dab57634e487b7160e01b600052603260045260246000fd5b6020908102919091010151600d556008546004805460055460405163f8a4ad5b60e01b8152928301849052600060248401526044830193909352606482015260848101919091526001600160a01b0383169063f8a4ad5b9060a40160206040518083038186803b158015611e1e57600080fd5b505afa158015611e32573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e5691906129e6565b836001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b158015611e8f57600080fd5b505afa158015611ea3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ec791906129e6565b1015611f3b5760405162461bcd60e51b815260206004820152603b60248201527f53686172657320746f6b656e20686173206e6f7420656e6f756768207375707060448201527f6c7920666f72207374616b696e6720646973747269627574696f6e000000000060648201526084016103a6565b60005b8751811015612212576012888281518110611f6957634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b031663313ce5676040518163ffffffff1660e01b815260040160206040518083038186803b158015611fa957600080fd5b505afa158015611fbd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611fe19190612a1f565b60ff1611156120425760405162461bcd60e51b815260206004820152602760248201527f546f6b656e20616c6c6f77656420686173206d6f7265207468616e20313820646044820152666563696d616c7360c81b60648201526084016103a6565b87818151811061206257634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b031663313ce5676040518163ffffffff1660e01b815260040160206040518083038186803b1580156120a257600080fd5b505afa1580156120b6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120da9190612a1f565b601160008a84815181106120fe57634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060006101000a81548160ff021916908360ff1602179055506001601060008a848151811061216457634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060006101000a81548160ff021916908315150217905550600f8882815181106121c557634e487b7160e01b600052603260045260246000fd5b60209081029190910181015182546001810184556000938452919092200180546001600160a01b0319166001600160a01b039092169190911790558061220a81612e21565b915050611f3e565b50600380546001600160a01b038085166001600160a01b03199283161790925560008054878416620100000262010000600160b01b03199091161790556002805492861692909116919091179055845161227390600190602088019061268c565b50600e805460ff191660011790558015612293576000805461ff00191690555b50505050505050565b6000546001600160a01b03620100009091041633146122cd5760405162461bcd60e51b81526004016103a690612b73565b60075442101561232b5760405162461bcd60e51b8152602060048201526024808201527f4c61756e6368506f6f6c20656e642074696d657374616d70206e6f742072656160448201526318da195960e21b60648201526084016103a6565b600954600a54101561238b5760405162461bcd60e51b8152602060048201526024808201527f4c61756e6368506f6f6c206e6f742072656163686564206d696e696d756d207360448201526374616b6560e01b60648201526084016103a6565b600e80546003919060ff19166001836108f7565b6040516001600160a01b038316602482015260448101829052610c2690849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152612440565b6040516001600160a01b038085166024830152831660448201526064810182905261243a9085906323b872dd60e01b906084016123cb565b50505050565b6000612495826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166125129092919063ffffffff16565b805190915015610c2657808060200190518101906124b39190612973565b610c265760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016103a6565b6060612521848460008561252b565b90505b9392505050565b60608247101561258c5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084016103a6565b843b6125da5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016103a6565b600080866001600160a01b031685876040516125f69190612a40565b60006040518083038185875af1925050503d8060008114612633576040519150601f19603f3d011682016040523d82523d6000602084013e612638565b606091505b5091509150612648828286612653565b979650505050505050565b60608315612662575081612524565b8251156126725782518084602001fd5b8160405162461bcd60e51b81526004016103a69190612b09565b82805461269890612dec565b90600052602060002090601f0160209004810192826126ba5760008555612700565b82601f106126d357805160ff1916838001178555612700565b82800160010185558215612700579182015b828111156127005782518255916020019190600101906126e5565b5061270c929150612710565b5090565b5b8082111561270c5760008155600101612711565b80356001600160a01b038116811461273c57600080fd5b919050565b600082601f830112612751578081fd5b8135602061276661276183612c1d565b612bec565b80838252828201915082860187848660051b8901011115612785578586fd5b855b858110156127a357813584529284019290840190600101612787565b5090979650505050505050565b600082601f8301126127c0578081fd5b813567ffffffffffffffff8111156127da576127da612e52565b6127ed601f8201601f1916602001612bec565b818152846020838601011115612801578283fd5b816020850160208301379081016020019190915292915050565b60006020828403121561282c578081fd5b610ae682612725565b60008060408385031215612847578081fd5b61285083612725565b946020939093013593505050565b60008060008060008060c08789031215612876578182fd5b863567ffffffffffffffff8082111561288d578384fd5b818901915089601f8301126128a0578384fd5b813560206128b061276183612c1d565b8083825282820191508286018e848660051b89010111156128cf578889fd5b8896505b848710156128f8576128e481612725565b8352600196909601959183019183016128d3565b509a50508a01359250508082111561290e578384fd5b61291a8a838b01612741565b9650604089013591508082111561292f578384fd5b5061293c89828a016127b0565b94505061294b60608801612725565b925061295960808801612725565b915061296760a08801612725565b90509295509295509295565b600060208284031215612984578081fd5b81518015158114612524578182fd5b6000602082840312156129a4578081fd5b813567ffffffffffffffff8111156129ba578182fd5b6129c6848285016127b0565b949350505050565b6000602082840312156129df578081fd5b5035919050565b6000602082840312156129f7578081fd5b5051919050565b60008060408385031215612a10578182fd5b50508035926020909101359150565b600060208284031215612a30578081fd5b815160ff81168114612524578182fd5b60008251612a52818460208701612dc0565b9190910192915050565b6020808252825182820181905260009190848201906040850190845b81811015612a9d5783516001600160a01b031683529284019291840191600101612a78565b50909695505050505050565b6020808252825182820181905260009190848201906040850190845b81811015612a9d57835183529284019291840191600101612ac5565b6020810160078310612b0357634e487b7160e01b600052602160045260246000fd5b91905290565b6020815260008251806020840152612b28816040850160208701612dc0565b601f01601f19169190910160400192915050565b6020808252601a908201527f4c61756e636820506f6f6c206973206e6f74207374616b696e67000000000000604082015260600190565b60208082526022908201527f53706f6e736f723a2063616c6c6572206973206e6f74207468652073706f6e7360408201526137b960f11b606082015260800190565b6020808252601b908201527f4c61756e636820506f6f6c20686173206e6f7420737461727465640000000000604082015260600190565b604051601f8201601f1916810167ffffffffffffffff81118282101715612c1557612c15612e52565b604052919050565b600067ffffffffffffffff821115612c3757612c37612e52565b5060051b60200190565b60008219821115612c5457612c54612e3c565b500190565b600082612c7457634e487b7160e01b81526012600452602481fd5b500490565b600181815b80851115612cb4578160001904821115612c9a57612c9a612e3c565b80851615612ca757918102915b93841c9390800290612c7e565b509250929050565b6000610ae660ff841683600082612cd557506001610ae9565b81612ce257506000610ae9565b8160018114612cf85760028114612d0257612d1e565b6001915050610ae9565b60ff841115612d1357612d13612e3c565b50506001821b610ae9565b5060208310610133831016604e8410600b8410161715612d41575081810a610ae9565b612d4b8383612c79565b8060001904821115612d5f57612d5f612e3c565b029392505050565b6000816000190483118215151615612d8157612d81612e3c565b500290565b600082821015612d9857612d98612e3c565b500390565b600060ff821660ff841680821015612db757612db7612e3c565b90039392505050565b60005b83811015612ddb578181015183820152602001612dc3565b8381111561243a5750506000910152565b600181811c90821680612e0057607f821691505b602082108114156112b557634e487b7160e01b600052602260045260246000fd5b6000600019821415612e3557612e35612e3c565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fdfea2646970667358221220eeb65527432f6ba9b6de2671e1e2a2e6f0e2f7d69574780925eb2f591d099c0a64736f6c63430008040033
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101425760003560e01c80638e420dbc116100b8578063c040e6b81161007c578063c040e6b814610277578063c4b4132614610291578063e233c3f914610299578063edab8283146102ac578063f33670aa146102bf578063f83d08ba146102d057600080fd5b80638e420dbc1461022c578063918b5be1146102345780639e2c58ca14610247578063ad8ac16a1461025c578063adc9772e1461026457600080fd5b80633f4ba83a1161010a5780633f4ba83a146101b5578063639408d5146101bd5780636fc93189146101de57806377c93662146101f15780637a76813d1461021c5780638456cb591461022457600080fd5b80632e17de781461014757806333b69c4c1461015c578063344a5bcc1461018557806335a063b414610198578063392f37e9146101a0575b600080fd5b61015a6101553660046129ce565b6102d8565b005b61016f61016a36600461281b565b61062f565b60405161017c9190612aa9565b60405180910390f35b61016f61019336600461281b565b61069b565b61015a6108b6565b6101a86108fe565b60405161017c9190612b09565b61015a61098c565b6101d06101cb3660046129fe565b610a44565b60405190815260200161017c565b61015a6101ec36600461281b565b610aef565b6000546201000090046001600160a01b03165b6040516001600160a01b03909116815260200161017c565b61015a610c2b565b61015a610e51565b61015a610efb565b61015a610242366004612993565b61111d565b61024f61119c565b60405161017c9190612a5c565b61016f6111fe565b61015a610272366004612835565b6112bb565b600e546102849060ff1681565b60405161017c9190612ae1565b61016f6117c5565b61015a6102a73660046129ce565b611a1e565b61015a6102ba36600461285e565b611b2d565b6002546001600160a01b0316610204565b61015a61229c565b6001600e5460ff1660068111156102ff57634e487b7160e01b600052602160045260246000fd5b148061032f57506006600e5460ff16600681111561032d57634e487b7160e01b600052602160045260246000fd5b145b8061035e57506002600e5460ff16600681111561035c57634e487b7160e01b600052602160045260246000fd5b145b6103af5760405162461bcd60e51b815260206004820181905260248201527f4e6f205374616b696e672f5061757365642f41626f727465642073746167652e60448201526064015b60405180910390fd5b6001600e5460ff1660068111156103d657634e487b7160e01b600052602160045260246000fd5b1415610426576007544211156104265760405162461bcd60e51b815260206004820152601560248201527413185d5b98da08141bdbdb081a5cc818db1bdcd959605a1b60448201526064016103a6565b3360009081526013602052604090205481106104845760405162461bcd60e51b815260206004820152601960248201527f5374616b6520696e646578206f7574206f6620626f756e64730000000000000060448201526064016103a6565b3360009081526013602052604081208054839081106104b357634e487b7160e01b600052603260045260246000fd5b600091825260208083209091015480835260128252604092839020835160808101855281546001600160a01b03908116825260018301541693810193909352600281015493830184905260030154606083015292509061054e5760405162461bcd60e51b815260206004820152601660248201527514dd185ad948185b1c9958591e481d5b9cdd185ad95960521b60448201526064016103a6565b6020808201516001600160a01b03166000908152601190915260409020546105af9033906105809060ff166012612d9d565b61058b90600a612cbc565b836040015161059a9190612c59565b60208401516001600160a01b0316919061239f565b8060400151600a60008282546105c59190612d86565b909155505060008281526012602090815260408083206002019290925582810151838301518351868152928301526001600160a01b03169133917f88567e6595ad345e5250569a2c8d8a50ed9db24198350fa907e42d73faf012d5910160405180910390a3505050565b6001600160a01b03811660009081526013602090815260409182902080548351818402810184019094528084526060939283018282801561068f57602002820191906000526020600020905b81548152602001906001019080831161067b575b50505050509050919050565b6001600160a01b038116600090815260136020526040812054606091906106c3906002612d67565b67ffffffffffffffff8111156106e957634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015610712578160200160208202803683370190505b50905060005b6001600160a01b0384166000908152601360205260409020548110156108af57601160006012600060136000896001600160a01b03166001600160a01b03168152602001908152602001600020858154811061078457634e487b7160e01b600052603260045260246000fd5b600091825260208083209091015483528281019390935260409182018120600101546001600160a01b0316845291830193909352910190205460ff16826107cc836002612d67565b815181106107ea57634e487b7160e01b600052603260045260246000fd5b6020026020010181815250506012600060136000876001600160a01b03166001600160a01b03168152602001908152602001600020838154811061083e57634e487b7160e01b600052603260045260246000fd5b9060005260206000200154815260200190815260200160002060020154828260026108699190612d67565b610874906001612c41565b8151811061089257634e487b7160e01b600052603260045260246000fd5b6020908102919091010152806108a781612e21565b915050610718565b5092915050565b6000546001600160a01b03620100009091041633146108e75760405162461bcd60e51b81526004016103a690612b73565b600e80546006919060ff19166001835b0217905550565b6001805461090b90612dec565b80601f016020809104026020016040519081016040528092919081815260200182805461093790612dec565b80156109845780601f1061095957610100808354040283529160200191610984565b820191906000526020600020905b81548152906001019060200180831161096757829003601f168201915b505050505081565b6000546001600160a01b03620100009091041633146109bd5760405162461bcd60e51b81526004016103a690612b73565b6002600e5460ff1660068111156109e457634e487b7160e01b600052602160045260246000fd5b14610a315760405162461bcd60e51b815260206004820152601860248201527f4c61756e6368506f6f6c206973206e6f7420706175736564000000000000000060448201526064016103a6565b600e80546001919060ff191682806108f7565b6003546008546004805460055460405163f8a4ad5b60e01b8152928301939093526024820185905260448201869052606482015260848101919091526000916001600160a01b03169063f8a4ad5b9060a40160206040518083038186803b158015610aae57600080fd5b505afa158015610ac2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ae691906129e6565b90505b92915050565b6000546001600160a01b0362010000909104163314610b205760405162461bcd60e51b81526004016103a690612b73565b6005600e5460ff166006811115610b4757634e487b7160e01b600052602160045260246000fd5b14610b945760405162461bcd60e51b815260206004820152601d60248201527f4c61756e636820706f6f6c206e6f742066696e616c697a65642079657400000060448201526064016103a6565b6040516370a0823160e01b815230600482015281906000906001600160a01b038316906370a082319060240160206040518083038186803b158015610bd857600080fd5b505afa158015610bec573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c1091906129e6565b9050610c266001600160a01b038316338361239f565b505050565b6000546001600160a01b0362010000909104163314610c5c5760405162461bcd60e51b81526004016103a690612b73565b6004600e5460ff166006811115610c8357634e487b7160e01b600052602160045260246000fd5b14610cdf5760405162461bcd60e51b815260206004820152602660248201527f546f6b656e7320617265206e6f742079657420726561647920746f206469737460448201526572696275746560d01b60648201526084016103a6565b6002546040805160808101825260008082526020820181905291810182905260608101919091526001600160a01b03909116905b600b546016541015610e3457620186a05a1015610d2f57610e34565b50601654600090815260126020908152604091829020825160808101845281546001600160a01b0390811682526001830154169281019290925260028101549282018390526003015460608201529015610e1a5760005481516060830151610dab926001600160a01b0386811693620100009092041691612402565b805160165460408084015160608086015183519485526020850192909252918301526001600160a01b03909216917febfe46b2b9627430364d1cff67d061f2e2f59dfedbd307f28a227b9ba08ad807910160405180910390a26016546000908152601260205260408120600301555b60168054906000610e2a83612e21565b9190505550610d13565b600b5460165410610e4d57600e805460ff191660051790555b5050565b6000546001600160a01b0362010000909104163314610e825760405162461bcd60e51b81526004016103a690612b73565b6006544211610ea35760405162461bcd60e51b81526004016103a690612bb5565b6001600e5460ff166006811115610eca57634e487b7160e01b600052602160045260246000fd5b14610ee75760405162461bcd60e51b81526004016103a690612b3c565b600e80546002919060ff19166001836108f7565b6000546001600160a01b0362010000909104163314610f2c5760405162461bcd60e51b81526004016103a690612b73565b6003600e5460ff166006811115610f5357634e487b7160e01b600052602160045260246000fd5b14610fae5760405162461bcd60e51b815260206004820152602560248201527f546f6b656e7320617265206e6f742079657420726561647920746f2063616c63604482015264756c61746560d81b60648201526084016103a6565b6003546001600160a01b03165b600b54601454101561110157620186a05a1015610fd757611101565b601454600090815260126020526040902060020154156110e757600854601554601454600090815260126020526040908190206002015460048054600554935163f8a4ad5b60e01b81529182019590955260248101939093526044830152606482019290925260848101919091526001600160a01b0382169063f8a4ad5b9060a40160206040518083038186803b15801561107157600080fd5b505afa158015611085573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110a991906129e6565b6014805460009081526012602052604080822060030193909355905481529081206002015460158054919290916110e1908490612c41565b90915550505b601480549060006110f783612e21565b9190505550610fbb565b600b546014541061111a57600e805460ff191660041790555b50565b6000546001600160a01b036201000090910416331461114e5760405162461bcd60e51b81526004016103a690612b73565b805161116190600190602084019061268c565b507f1c306e70c05992619e2128ad1ef88df75f36c9476282e59f51401b2abaa42e4e816040516111919190612b09565b60405180910390a150565b6060600f8054806020026020016040519081016040528092919081815260200182805480156111f457602002820191906000526020600020905b81546001600160a01b031681526001909101906020018083116111d6575b5050505050905090565b60606000600b5467ffffffffffffffff81111561122b57634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015611254578160200160208202803683370190505b50905060005b600b548110156112b557600081815260126020526040902060020154825183908390811061129857634e487b7160e01b600052603260045260246000fd5b6020908102919091010152806112ad81612e21565b91505061125a565b50919050565b60065442116112dc5760405162461bcd60e51b81526004016103a690612bb5565b6001600e5460ff16600681111561130357634e487b7160e01b600052602160045260246000fd5b146113205760405162461bcd60e51b81526004016103a690612b3c565b6001600160a01b038216600090815260106020526040902054829060ff1661138a5760405162461bcd60e51b815260206004820152601960248201527f43616e6e6f74206465706f736974207468617420746f6b656e0000000000000060448201526064016103a6565b6008546001600160a01b038416600090815260116020526040902054839185916113b89060ff166012612d9d565b6113c390600a612cbc565b6113cd9084612d67565b600a546113da9190612c41565b11156114285760405162461bcd60e51b815260206004820152601e60248201527f4d6178696d756d207374616b656420616d6f756e74206578636565646564000060448201526064016103a6565b600d546001600160a01b038616600090815260116020526040902054859187916114569060ff166012612d9d565b61146190600a612cbc565b61146b9084612d67565b11156114b95760405162461bcd60e51b815260206004820152601d60248201527f5374616b65206d6178696d756d20616d6f756e7420657863656564656400000060448201526064016103a6565b6001600160a01b0387166000908152601160205260408120546114e09060ff166012612d9d565b6114eb90600a612cbc565b6114f59088612d67565b9050600c548110156115495760405162461bcd60e51b815260206004820152601a60248201527f5374616b652062656c6f77206d696e696d756d20616d6f756e7400000000000060448201526064016103a6565b6040516370a0823160e01b81523060048201526000906001600160a01b038a16906370a082319060240160206040518083038186803b15801561158b57600080fd5b505afa15801561159f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115c391906129e6565b90506115da6001600160a01b038a1633308b612402565b6040516370a0823160e01b815230600482015260009082906001600160a01b038c16906370a082319060240160206040518083038186803b15801561161e57600080fd5b505afa158015611632573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061165691906129e6565b6116609190612d86565b6001600160a01b038b1660009081526011602052604090205490915061168a9060ff166012612d9d565b61169590600a612cbc565b61169f9082612d67565b9250600060126000600b5481526020019081526020016000209050338160000160006101000a8154816001600160a01b0302191690836001600160a01b031602179055508a8160010160006101000a8154816001600160a01b0302191690836001600160a01b031602179055508381600201819055508060020154600a600082825461172b9190612c41565b9091555050336000818152601360209081526040808320600b805482546001810184559286529484902090910193909355915482519081529081018590526001600160a01b038e1692917f7edb7e181699d1db1f6e3ac27fb17e1db8ac69aeb22eec366e72528c0886726a910160405180910390a36001600b60008282546117b39190612c41565b90915550505050505050505050505050565b60408051600b808252610180820190925260609160208201610160803683370190505090506006548160008151811061180e57634e487b7160e01b600052603260045260246000fd5b6020026020010181815250506007548160018151811061183e57634e487b7160e01b600052603260045260246000fd5b6020026020010181815250506009548160028151811061186e57634e487b7160e01b600052603260045260246000fd5b6020026020010181815250506008548160038151811061189e57634e487b7160e01b600052603260045260246000fd5b602002602001018181525050600a54816004815181106118ce57634e487b7160e01b600052603260045260246000fd5b602002602001018181525050600b54816005815181106118fe57634e487b7160e01b600052603260045260246000fd5b6020026020010181815250506004548160068151811061192e57634e487b7160e01b600052603260045260246000fd5b6020908102919091010152600e5460ff16600681111561195e57634e487b7160e01b600052602160045260246000fd5b8160078151811061197f57634e487b7160e01b600052603260045260246000fd5b602002602001018181525050600c54816008815181106119af57634e487b7160e01b600052603260045260246000fd5b602002602001018181525050600554816009815181106119df57634e487b7160e01b600052603260045260246000fd5b602002602001018181525050600d5481600a81518110611a0f57634e487b7160e01b600052603260045260246000fd5b60200260200101818152505090565b6000546001600160a01b0362010000909104163314611a4f5760405162461bcd60e51b81526004016103a690612b73565b6006544211611a705760405162461bcd60e51b81526004016103a690612bb5565b6001600e5460ff166006811115611a9757634e487b7160e01b600052602160045260246000fd5b14611ab45760405162461bcd60e51b81526004016103a690612b3c565b6301e133808110611b135760405162461bcd60e51b8152602060048201526024808201527f457874656e73696f6e73206d75737420626520736d616c6c207468616e2031206044820152633cb2b0b960e11b60648201526084016103a6565b8060076000828254611b259190612c41565b909155505050565b600054610100900460ff1680611b46575060005460ff16155b611ba95760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b60648201526084016103a6565b600054610100900460ff16158015611bcb576000805461ffff19166101011790555b6001875110158015611bdf57506003875111155b611c415760405162461bcd60e51b815260206004820152602d60248201527f5468657265206d757374206265206174206c65617374203120616e642061742060448201526c6d6f7374203320746f6b656e7360981b60648201526084016103a6565b85600081518110611c6257634e487b7160e01b600052603260045260246000fd5b602002602001015160098190555085600181518110611c9157634e487b7160e01b600052603260045260246000fd5b602002602001015160088190555085600281518110611cc057634e487b7160e01b600052603260045260246000fd5b602002602001015160068190555085600381518110611cef57634e487b7160e01b600052603260045260246000fd5b602002602001015160078190555085600481518110611d1e57634e487b7160e01b600052603260045260246000fd5b602002602001015160048190555085600581518110611d4d57634e487b7160e01b600052603260045260246000fd5b6020026020010151600c8190555085600681518110611d7c57634e487b7160e01b600052603260045260246000fd5b602002602001015160058190555085600781518110611dab57634e487b7160e01b600052603260045260246000fd5b6020908102919091010151600d556008546004805460055460405163f8a4ad5b60e01b8152928301849052600060248401526044830193909352606482015260848101919091526001600160a01b0383169063f8a4ad5b9060a40160206040518083038186803b158015611e1e57600080fd5b505afa158015611e32573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e5691906129e6565b836001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b158015611e8f57600080fd5b505afa158015611ea3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ec791906129e6565b1015611f3b5760405162461bcd60e51b815260206004820152603b60248201527f53686172657320746f6b656e20686173206e6f7420656e6f756768207375707060448201527f6c7920666f72207374616b696e6720646973747269627574696f6e000000000060648201526084016103a6565b60005b8751811015612212576012888281518110611f6957634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b031663313ce5676040518163ffffffff1660e01b815260040160206040518083038186803b158015611fa957600080fd5b505afa158015611fbd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611fe19190612a1f565b60ff1611156120425760405162461bcd60e51b815260206004820152602760248201527f546f6b656e20616c6c6f77656420686173206d6f7265207468616e20313820646044820152666563696d616c7360c81b60648201526084016103a6565b87818151811061206257634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b031663313ce5676040518163ffffffff1660e01b815260040160206040518083038186803b1580156120a257600080fd5b505afa1580156120b6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120da9190612a1f565b601160008a84815181106120fe57634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060006101000a81548160ff021916908360ff1602179055506001601060008a848151811061216457634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060006101000a81548160ff021916908315150217905550600f8882815181106121c557634e487b7160e01b600052603260045260246000fd5b60209081029190910181015182546001810184556000938452919092200180546001600160a01b0319166001600160a01b039092169190911790558061220a81612e21565b915050611f3e565b50600380546001600160a01b038085166001600160a01b03199283161790925560008054878416620100000262010000600160b01b03199091161790556002805492861692909116919091179055845161227390600190602088019061268c565b50600e805460ff191660011790558015612293576000805461ff00191690555b50505050505050565b6000546001600160a01b03620100009091041633146122cd5760405162461bcd60e51b81526004016103a690612b73565b60075442101561232b5760405162461bcd60e51b8152602060048201526024808201527f4c61756e6368506f6f6c20656e642074696d657374616d70206e6f742072656160448201526318da195960e21b60648201526084016103a6565b600954600a54101561238b5760405162461bcd60e51b8152602060048201526024808201527f4c61756e6368506f6f6c206e6f742072656163686564206d696e696d756d207360448201526374616b6560e01b60648201526084016103a6565b600e80546003919060ff19166001836108f7565b6040516001600160a01b038316602482015260448101829052610c2690849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152612440565b6040516001600160a01b038085166024830152831660448201526064810182905261243a9085906323b872dd60e01b906084016123cb565b50505050565b6000612495826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166125129092919063ffffffff16565b805190915015610c2657808060200190518101906124b39190612973565b610c265760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016103a6565b6060612521848460008561252b565b90505b9392505050565b60608247101561258c5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084016103a6565b843b6125da5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016103a6565b600080866001600160a01b031685876040516125f69190612a40565b60006040518083038185875af1925050503d8060008114612633576040519150601f19603f3d011682016040523d82523d6000602084013e612638565b606091505b5091509150612648828286612653565b979650505050505050565b60608315612662575081612524565b8251156126725782518084602001fd5b8160405162461bcd60e51b81526004016103a69190612b09565b82805461269890612dec565b90600052602060002090601f0160209004810192826126ba5760008555612700565b82601f106126d357805160ff1916838001178555612700565b82800160010185558215612700579182015b828111156127005782518255916020019190600101906126e5565b5061270c929150612710565b5090565b5b8082111561270c5760008155600101612711565b80356001600160a01b038116811461273c57600080fd5b919050565b600082601f830112612751578081fd5b8135602061276661276183612c1d565b612bec565b80838252828201915082860187848660051b8901011115612785578586fd5b855b858110156127a357813584529284019290840190600101612787565b5090979650505050505050565b600082601f8301126127c0578081fd5b813567ffffffffffffffff8111156127da576127da612e52565b6127ed601f8201601f1916602001612bec565b818152846020838601011115612801578283fd5b816020850160208301379081016020019190915292915050565b60006020828403121561282c578081fd5b610ae682612725565b60008060408385031215612847578081fd5b61285083612725565b946020939093013593505050565b60008060008060008060c08789031215612876578182fd5b863567ffffffffffffffff8082111561288d578384fd5b818901915089601f8301126128a0578384fd5b813560206128b061276183612c1d565b8083825282820191508286018e848660051b89010111156128cf578889fd5b8896505b848710156128f8576128e481612725565b8352600196909601959183019183016128d3565b509a50508a01359250508082111561290e578384fd5b61291a8a838b01612741565b9650604089013591508082111561292f578384fd5b5061293c89828a016127b0565b94505061294b60608801612725565b925061295960808801612725565b915061296760a08801612725565b90509295509295509295565b600060208284031215612984578081fd5b81518015158114612524578182fd5b6000602082840312156129a4578081fd5b813567ffffffffffffffff8111156129ba578182fd5b6129c6848285016127b0565b949350505050565b6000602082840312156129df578081fd5b5035919050565b6000602082840312156129f7578081fd5b5051919050565b60008060408385031215612a10578182fd5b50508035926020909101359150565b600060208284031215612a30578081fd5b815160ff81168114612524578182fd5b60008251612a52818460208701612dc0565b9190910192915050565b6020808252825182820181905260009190848201906040850190845b81811015612a9d5783516001600160a01b031683529284019291840191600101612a78565b50909695505050505050565b6020808252825182820181905260009190848201906040850190845b81811015612a9d57835183529284019291840191600101612ac5565b6020810160078310612b0357634e487b7160e01b600052602160045260246000fd5b91905290565b6020815260008251806020840152612b28816040850160208701612dc0565b601f01601f19169190910160400192915050565b6020808252601a908201527f4c61756e636820506f6f6c206973206e6f74207374616b696e67000000000000604082015260600190565b60208082526022908201527f53706f6e736f723a2063616c6c6572206973206e6f74207468652073706f6e7360408201526137b960f11b606082015260800190565b6020808252601b908201527f4c61756e636820506f6f6c20686173206e6f7420737461727465640000000000604082015260600190565b604051601f8201601f1916810167ffffffffffffffff81118282101715612c1557612c15612e52565b604052919050565b600067ffffffffffffffff821115612c3757612c37612e52565b5060051b60200190565b60008219821115612c5457612c54612e3c565b500190565b600082612c7457634e487b7160e01b81526012600452602481fd5b500490565b600181815b80851115612cb4578160001904821115612c9a57612c9a612e3c565b80851615612ca757918102915b93841c9390800290612c7e565b509250929050565b6000610ae660ff841683600082612cd557506001610ae9565b81612ce257506000610ae9565b8160018114612cf85760028114612d0257612d1e565b6001915050610ae9565b60ff841115612d1357612d13612e3c565b50506001821b610ae9565b5060208310610133831016604e8410600b8410161715612d41575081810a610ae9565b612d4b8383612c79565b8060001904821115612d5f57612d5f612e3c565b029392505050565b6000816000190483118215151615612d8157612d81612e3c565b500290565b600082821015612d9857612d98612e3c565b500390565b600060ff821660ff841680821015612db757612db7612e3c565b90039392505050565b60005b83811015612ddb578181015183820152602001612dc3565b8381111561243a5750506000910152565b600181811c90821680612e0057607f821691505b602082108114156112b557634e487b7160e01b600052602260045260246000fd5b6000600019821415612e3557612e35612e3c565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fdfea2646970667358221220eeb65527432f6ba9b6de2671e1e2a2e6f0e2f7d69574780925eb2f591d099c0a64736f6c63430008040033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.