Feature Tip: Add private address tag to any address under My Name Tag !
Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 1 from a total of 1 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
0x60806040 | 19010533 | 197 days ago | IN | 0 ETH | 0.0312212 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
StakingManager
Compiler Version
v0.8.17+commit.8df45f5f
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.17; import '@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol'; import '@openzeppelin/contracts-upgradeable/token/ERC721/utils/ERC721HolderUpgradeable.sol'; import '@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol'; import '@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.sol'; import '@chocolate-factory/contracts/admin-manager/AdminManagerUpgradable.sol'; import 'erc721a-upgradeable/contracts/interfaces/IERC721AUpgradeable.sol'; import './interfaces/IEternals.sol'; contract StakingManager is Initializable, ERC721HolderUpgradeable, PausableUpgradeable, ReentrancyGuardUpgradeable, AdminManagerUpgradable { IERC721AUpgradeable public titans; IERC721AUpgradeable public legends; IEternals public eternals; uint256 public remainingLegendsEternals; mapping(uint256 => address) public titanOwners; mapping(uint256 => uint256) public titanUnlockTimestamps; mapping(uint256 => address) public legendOwners; mapping(uint256 => uint256) public legendUnlockTimestamps; mapping(uint256 => uint256) public lockDurations; event TitanStaked( address indexed staker, uint256 id, uint256 stakeTimestamp, uint256 unlockTimestamp ); event LegendStaked( address indexed staker, uint256 id, uint256 stakeTimestamp, uint256 unlockTimestamp ); event TitanWithdrawn(address indexed staker, uint256 id); event LegendWithdrawn(address indexed staker, uint256 id); struct StakeRequest { uint256[] titanIds; uint256[] titanLockIds; uint256[] legendIds; uint256[] legendLockIds; } struct WithdrawRequest { uint256[] titanIds; uint256[] legendIds; } struct AdminStakeTitansRequest { uint256[] ids; address[] owners; uint256[] lockTimestamps; uint256[] unlockTimestamps; } uint256 public constant LEGENDS_ETERNALS_ID = 2; function initialize( address titansAddress_, address legendsAddress_, address eternalsAddress_ ) external initializer { __ERC721Holder_init_unchained(); __Pausable_init(); __ReentrancyGuard_init(); __AdminManager_init_unchained(); setTitans(titansAddress_); setLegends(legendsAddress_); setEternals(eternalsAddress_); remainingLegendsEternals = 777; _pause(); } function stake( StakeRequest calldata request_ ) external nonReentrant whenNotPaused { uint256 titanIdsLength = request_.titanIds.length; uint256 legendIdsLength = request_.legendIds.length; require(titanIdsLength == request_.titanLockIds.length, 'Invalid request'); require( legendIdsLength == request_.legendLockIds.length, 'Invalid request' ); if (titanIdsLength > 0) { for (uint256 i = 0; i < titanIdsLength; i++) { uint256 titanId = request_.titanIds[i]; uint256 lockId = request_.titanLockIds[i]; uint256 lockDuration = lockDurations[lockId]; uint256 unlockTimestamp = block.timestamp + lockDuration; require(lockDuration > 0, 'Invalid lock ID'); titanOwners[titanId] = msg.sender; titanUnlockTimestamps[titanId] = unlockTimestamp; titans.transferFrom(msg.sender, address(this), titanId); emit TitanStaked(msg.sender, titanId, block.timestamp, unlockTimestamp); } } if (legendIdsLength > 0) { bool isEternalsEligible = false; for (uint256 i = 0; i < legendIdsLength; i++) { uint256 legendId = request_.legendIds[i]; uint256 lockId = request_.legendLockIds[i]; uint256 lockDuration = lockDurations[lockId]; uint256 unlockTimestamp = block.timestamp + lockDuration; require(lockDuration > 0, 'Invalid lock ID'); legendOwners[legendId] = msg.sender; legendUnlockTimestamps[legendId] = unlockTimestamp; legends.transferFrom(msg.sender, address(this), legendId); if (lockDuration >= 365 days) { isEternalsEligible = true; } emit LegendStaked( msg.sender, legendId, block.timestamp, unlockTimestamp ); } if ( isEternalsEligible && remainingLegendsEternals > 0 && eternals.balanceOf(msg.sender, LEGENDS_ETERNALS_ID) == 0 ) { uint256[] memory ids = new uint256[](1); ids[0] = LEGENDS_ETERNALS_ID; uint256[] memory amounts = new uint256[](1); amounts[0] = 1; remainingLegendsEternals = remainingLegendsEternals - 1; eternals.adminMint(msg.sender, ids, amounts); } } } function reStake( StakeRequest calldata request_ ) external nonReentrant whenNotPaused { uint256 titanIdsLength = request_.titanIds.length; uint256 legendIdsLength = request_.legendIds.length; require(titanIdsLength == request_.titanLockIds.length, 'Invalid request'); require( legendIdsLength == request_.legendLockIds.length, 'Invalid request' ); if (titanIdsLength > 0) { for (uint256 i = 0; i < titanIdsLength; i++) { uint256 titanId = request_.titanIds[i]; require(titanOwners[titanId] == msg.sender, 'Invalid owner'); require( block.timestamp > titanUnlockTimestamps[titanId], 'Lock period is not completed' ); uint256 lockId = request_.titanLockIds[i]; uint256 lockDuration = lockDurations[lockId]; uint256 unlockTimestamp = block.timestamp + lockDuration; require(lockDuration > 0, 'Invalid lock ID'); titanUnlockTimestamps[titanId] = unlockTimestamp; emit TitanWithdrawn(msg.sender, titanId); emit TitanStaked(msg.sender, titanId, block.timestamp, unlockTimestamp); } } if (legendIdsLength > 0) { for (uint256 i = 0; i < legendIdsLength; i++) { uint256 legendId = request_.legendIds[i]; require(legendOwners[legendId] == msg.sender, 'Invalid owner'); require( block.timestamp > legendUnlockTimestamps[legendId], 'Lock period is not completed' ); uint256 lockId = request_.legendLockIds[i]; uint256 lockDuration = lockDurations[lockId]; uint256 unlockTimestamp = block.timestamp + lockDuration; require(lockDuration > 0, 'Invalid lock ID'); legendUnlockTimestamps[legendId] = unlockTimestamp; emit LegendWithdrawn(msg.sender, legendId); emit LegendStaked( msg.sender, legendId, block.timestamp, unlockTimestamp ); } } } function withdraw( WithdrawRequest calldata request_ ) external nonReentrant whenNotPaused { uint256 titanIdsLength = request_.titanIds.length; uint256 legendIdsLength = request_.legendIds.length; if (titanIdsLength > 0) { for (uint256 i = 0; i < titanIdsLength; i++) { uint256 titanId = request_.titanIds[i]; require(titanOwners[titanId] == msg.sender, 'Invalid owner'); require( block.timestamp > titanUnlockTimestamps[titanId], 'Lock period is not completed' ); delete titanOwners[titanId]; titans.safeTransferFrom(address(this), msg.sender, titanId); emit TitanWithdrawn(msg.sender, titanId); } } if (legendIdsLength > 0) { for (uint256 i = 0; i < legendIdsLength; i++) { uint256 legendId = request_.legendIds[i]; require(legendOwners[legendId] == msg.sender, 'Invalid owner'); require( block.timestamp > legendUnlockTimestamps[legendId], 'Lock period is not completed' ); delete legendOwners[legendId]; legends.safeTransferFrom(address(this), msg.sender, legendId); emit LegendWithdrawn(msg.sender, legendId); } } } function adminStakeTitans( AdminStakeTitansRequest calldata request_ ) external onlyAdmin { uint256 idsLength = request_.ids.length; require(idsLength == request_.owners.length, 'Invalid request'); require(idsLength == request_.lockTimestamps.length, 'Invalid request'); require(idsLength == request_.unlockTimestamps.length, 'Invalid request'); for (uint256 i = 0; i < idsLength; i++) { uint256 id = request_.ids[i]; address owner = request_.owners[i]; uint256 lockTimestamp = request_.lockTimestamps[i]; uint256 unlockTimestamp = request_.unlockTimestamps[i]; titanOwners[id] = owner; titanUnlockTimestamps[id] = unlockTimestamp; emit TitanStaked(owner, id, lockTimestamp, unlockTimestamp); } } function setLockDurations( uint256[] calldata ids_, uint256[] calldata durations_ ) public onlyAdmin { uint256 idsLength = ids_.length; require(idsLength == durations_.length, 'Invalid request'); for (uint256 i; i < idsLength; i++) { lockDurations[ids_[i]] = durations_[i]; } } function setTitans(address titansAddress_) public onlyAdmin { titans = IERC721AUpgradeable(titansAddress_); } function setLegends(address legendsAddress_) public onlyAdmin { legends = IERC721AUpgradeable(legendsAddress_); } function setEternals(address eternalsAddress_) public onlyAdmin { eternals = IEternals(eternalsAddress_); } function pause() external onlyAdmin { _pause(); } function unpause() external onlyAdmin { _unpause(); } }
//SPDX-License-Identifier: MIT pragma solidity ^0.8.17; import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol"; contract AdminManagerUpgradable is Initializable { mapping(address => bool) private _admins; function __AdminManager_init() internal onlyInitializing { __AdminManager_init_unchained(); } function __AdminManager_init_unchained() internal onlyInitializing { _admins[msg.sender] = true; } function setAdminPermissions(address account_, bool enable_) external onlyAdmin { _admins[account_] = enable_; } function isAdmin(address account_) public view returns (bool) { return _admins[account_]; } modifier onlyAdmin() { require(isAdmin(msg.sender), "Not an admin"); _; } 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 {Initializable} from "../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 {Initializable} from "../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.6.0) (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721ReceiverUpgradeable { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (token/ERC721/utils/ERC721Holder.sol) pragma solidity ^0.8.0; import "../IERC721ReceiverUpgradeable.sol"; import {Initializable} from "../../../proxy/utils/Initializable.sol"; /** * @dev Implementation of the {IERC721Receiver} interface. * * Accepts all token transfers. * Make sure the contract is able to use its token with {IERC721-safeTransferFrom}, {IERC721-approve} or {IERC721-setApprovalForAll}. */ contract ERC721HolderUpgradeable is Initializable, IERC721ReceiverUpgradeable { function __ERC721Holder_init() internal onlyInitializing { } function __ERC721Holder_init_unchained() internal onlyInitializing { } /** * @dev See {IERC721Receiver-onERC721Received}. * * Always returns `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received(address, address, uint256, bytes memory) public virtual override returns (bytes4) { return this.onERC721Received.selector; } /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[50] private __gap; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.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 (last updated v4.9.4) (utils/Context.sol) pragma solidity ^0.8.0; import {Initializable} from "../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; } function _contextSuffixLength() internal view virtual returns (uint256) { return 0; } /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[50] private __gap; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.17; interface IEternals { function balanceOf( address account, uint256 id ) external view returns (uint256); function adminMint( address to, uint256[] memory ids, uint256[] memory amounts ) external; }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.2.3 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @dev Interface of ERC721A. */ interface IERC721AUpgradeable { /** * The caller must own the token or be an approved operator. */ error ApprovalCallerNotOwnerNorApproved(); /** * The token does not exist. */ error ApprovalQueryForNonexistentToken(); /** * Cannot query the balance for the zero address. */ error BalanceQueryForZeroAddress(); /** * Cannot mint to the zero address. */ error MintToZeroAddress(); /** * The quantity of tokens minted must be more than zero. */ error MintZeroQuantity(); /** * The token does not exist. */ error OwnerQueryForNonexistentToken(); /** * The caller must own the token or be an approved operator. */ error TransferCallerNotOwnerNorApproved(); /** * The token must be owned by `from`. */ error TransferFromIncorrectOwner(); /** * Cannot safely transfer to a contract that does not implement the * ERC721Receiver interface. */ error TransferToNonERC721ReceiverImplementer(); /** * Cannot transfer to the zero address. */ error TransferToZeroAddress(); /** * The token does not exist. */ error URIQueryForNonexistentToken(); /** * The `quantity` minted with ERC2309 exceeds the safety limit. */ error MintERC2309QuantityExceedsLimit(); /** * The `extraData` cannot be set on an unintialized ownership slot. */ error OwnershipNotInitializedForExtraData(); // ============================================================= // STRUCTS // ============================================================= struct TokenOwnership { // The address of the owner. address addr; // Stores the start time of ownership with minimal overhead for tokenomics. uint64 startTimestamp; // Whether the token has been burned. bool burned; // Arbitrary data similar to `startTimestamp` that can be set via {_extraData}. uint24 extraData; } // ============================================================= // TOKEN COUNTERS // ============================================================= /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see {_totalMinted}. */ function totalSupply() external view returns (uint256); // ============================================================= // IERC165 // ============================================================= /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * to learn more about how these ids are created. * * This function call must use less than 30000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); // ============================================================= // IERC721 // ============================================================= /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables * (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in `owner`'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, * checking first that contract recipients are aware of the ERC721 protocol * to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move * this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external payable; /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external payable; /** * @dev Transfers `tokenId` from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} * whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external payable; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the * zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external payable; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} * for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll}. */ function isApprovedForAll(address owner, address operator) external view returns (bool); // ============================================================= // IERC721Metadata // ============================================================= /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); // ============================================================= // IERC2309 // ============================================================= /** * @dev Emitted when tokens in `fromTokenId` to `toTokenId` * (inclusive) is transferred from `from` to `to`, as defined in the * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309) standard. * * See {_mintERC2309} for more details. */ event ConsecutiveTransfer(uint256 indexed fromTokenId, uint256 toTokenId, address indexed from, address indexed to); }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.2.3 // Creator: Chiru Labs pragma solidity ^0.8.4; import '../IERC721AUpgradeable.sol';
{ "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
[{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint8","name":"version","type":"uint8"}],"name":"Initialized","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"staker","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"stakeTimestamp","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"unlockTimestamp","type":"uint256"}],"name":"LegendStaked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"staker","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"}],"name":"LegendWithdrawn","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"staker","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"stakeTimestamp","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"unlockTimestamp","type":"uint256"}],"name":"TitanStaked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"staker","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"}],"name":"TitanWithdrawn","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"LEGENDS_ETERNALS_ID","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"address[]","name":"owners","type":"address[]"},{"internalType":"uint256[]","name":"lockTimestamps","type":"uint256[]"},{"internalType":"uint256[]","name":"unlockTimestamps","type":"uint256[]"}],"internalType":"struct StakingManager.AdminStakeTitansRequest","name":"request_","type":"tuple"}],"name":"adminStakeTitans","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"eternals","outputs":[{"internalType":"contract IEternals","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"titansAddress_","type":"address"},{"internalType":"address","name":"legendsAddress_","type":"address"},{"internalType":"address","name":"eternalsAddress_","type":"address"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account_","type":"address"}],"name":"isAdmin","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"legendOwners","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"legendUnlockTimestamps","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"legends","outputs":[{"internalType":"contract IERC721AUpgradeable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"lockDurations","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC721Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"uint256[]","name":"titanIds","type":"uint256[]"},{"internalType":"uint256[]","name":"titanLockIds","type":"uint256[]"},{"internalType":"uint256[]","name":"legendIds","type":"uint256[]"},{"internalType":"uint256[]","name":"legendLockIds","type":"uint256[]"}],"internalType":"struct StakingManager.StakeRequest","name":"request_","type":"tuple"}],"name":"reStake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"remainingLegendsEternals","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account_","type":"address"},{"internalType":"bool","name":"enable_","type":"bool"}],"name":"setAdminPermissions","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"eternalsAddress_","type":"address"}],"name":"setEternals","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"legendsAddress_","type":"address"}],"name":"setLegends","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"ids_","type":"uint256[]"},{"internalType":"uint256[]","name":"durations_","type":"uint256[]"}],"name":"setLockDurations","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"titansAddress_","type":"address"}],"name":"setTitans","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"uint256[]","name":"titanIds","type":"uint256[]"},{"internalType":"uint256[]","name":"titanLockIds","type":"uint256[]"},{"internalType":"uint256[]","name":"legendIds","type":"uint256[]"},{"internalType":"uint256[]","name":"legendLockIds","type":"uint256[]"}],"internalType":"struct StakingManager.StakeRequest","name":"request_","type":"tuple"}],"name":"stake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"titanOwners","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"titanUnlockTimestamps","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"titans","outputs":[{"internalType":"contract IERC721AUpgradeable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"uint256[]","name":"titanIds","type":"uint256[]"},{"internalType":"uint256[]","name":"legendIds","type":"uint256[]"}],"internalType":"struct StakingManager.WithdrawRequest","name":"request_","type":"tuple"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060405234801561001057600080fd5b50611e83806100206000396000f3fe608060405234801561001057600080fd5b50600436106101735760003560e01c80634f5cb3fe116100de578063c0c53b8b11610097578063dfd622c011610071578063dfd622c014610375578063e6d7a3ba14610388578063e98f54bb146103b2578063fb56fa59146103c557600080fd5b8063c0c53b8b1461032e578063c6286cf714610341578063d1d78a841461035457600080fd5b80634f5cb3fe146102cc5780635c975abb146102df5780638456cb59146102ea5780638d3c96fd146102f25780639db6261a146102fa578063ab48a3801461030d57600080fd5b80632af12fcc116101305780632af12fcc146102535780632f9dbb8214610266578063300e25e21461027d57806332298be11461029057806339be4833146102b15780633f4ba83a146102c457600080fd5b80630355d77f14610178578063150b7a021461018d578063240ff27f146101c957806324d7806c146101dc57806328ba73bf146101ff57806328e823d214610240575b600080fd5b61018b6101863660046118c5565b6103d8565b005b6101ab61019b3660046118fd565b630a85bd0160e11b949350505050565b6040516001600160e01b031990911681526020015b60405180910390f35b61018b6101d73660046119d9565b610428565b6101ef6101ea3660046118c5565b610478565b60405190151581526020016101c0565b61022861020d366004611a15565b60ff602052600090815260409020546001600160a01b031681565b6040516001600160a01b0390911681526020016101c0565b61018b61024e366004611a46565b610496565b61018b6102613660046118c5565b610a00565b61026f60fe5481565b6040519081526020016101c0565b61018b61028b366004611a46565b610a47565b61026f61029e366004611a15565b6101036020526000908152604090205481565b61018b6102bf366004611acf565b610e3e565b61018b610ef2565b61018b6102da3660046118c5565b610f21565b60655460ff166101ef565b61018b610f68565b61026f600281565b61018b610308366004611a46565b610f95565b61026f61031b366004611a15565b6101026020526000908152604090205481565b61018b61033c366004611b3b565b6111a5565b61018b61034f366004611b7e565b6112fa565b61026f610362366004611a15565b6101006020526000908152604090205481565b60fc54610228906001600160a01b031681565b610228610396366004611a15565b610101602052600090815260409020546001600160a01b031681565b60fb54610228906001600160a01b031681565b60fd54610228906001600160a01b031681565b6103e133610478565b6104065760405162461bcd60e51b81526004016103fd90611bb9565b60405180910390fd5b60fc80546001600160a01b0319166001600160a01b0392909216919091179055565b61043133610478565b61044d5760405162461bcd60e51b81526004016103fd90611bb9565b6001600160a01b0391909116600090815260c960205260409020805460ff1916911515919091179055565b6001600160a01b0316600090815260c9602052604090205460ff1690565b61049e611609565b6104a6611662565b60006104b28280611bdf565b9150600090506104c56040840184611bdf565b91506104d690506020840184611bdf565b905082146104f65760405162461bcd60e51b81526004016103fd90611c29565b6105036060840184611bdf565b905081146105235760405162461bcd60e51b81526004016103fd90611c29565b81156106b75760005b828110156106b55760006105408580611bdf565b8381811061055057610550611c52565b905060200201359050600085806020019061056b9190611bdf565b8481811061057b5761057b611c52565b60209081029290920135600081815261010390935260408320549093509190506105a58242611c7e565b9050600082116105c75760405162461bcd60e51b81526004016103fd90611c97565b600084815260ff6020908152604080832080546001600160a01b031916339081179091556101009092529182902083905560fb5491516323b872dd60e01b81526001600160a01b0392909216916323b872dd9161062a9130908990600401611cc0565b600060405180830381600087803b15801561064457600080fd5b505af1158015610658573d6000803e3d6000fd5b5050604080518781524260208201529081018490523392507fdfe019b195217a71d47e84f87586a767e76a531fefd41e00bf19e2a376141c1f915060600160405180910390a25050505080806106ad90611ce4565b91505061052c565b505b80156109f1576000805b8281101561085e5760006106d86040870187611bdf565b838181106106e8576106e8611c52565b90506020020135905060008680606001906107039190611bdf565b8481811061071357610713611c52565b602090810292909201356000818152610103909352604083205490935091905061073d8242611c7e565b90506000821161075f5760405162461bcd60e51b81526004016103fd90611c97565b60008481526101016020908152604080832080546001600160a01b031916339081179091556101029092529182902083905560fc5491516323b872dd60e01b81526001600160a01b0392909216916323b872dd916107c39130908990600401611cc0565b600060405180830381600087803b1580156107dd57600080fd5b505af11580156107f1573d6000803e3d6000fd5b505050506301e13380821061080557600195505b6040805185815242602082015290810182905233907fa75bd221bd6beb23e4198b2f622cddcf1fcd5f84736b5440c74984763b1885c79060600160405180910390a250505050808061085690611ce4565b9150506106c1565b5080801561086e5750600060fe54115b80156108e8575060fd54604051627eeac760e11b8152336004820152600260248201526001600160a01b039091169062fdd58e90604401602060405180830381865afa1580156108c2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108e69190611cfd565b155b156109ef576040805160018082528183019092526000916020808301908036833701905050905060028160008151811061092457610924611c52565b602090810291909101015260408051600180825281830190925260009181602001602082028036833701905050905060018160008151811061096857610968611c52565b602002602001018181525050600160fe546109839190611d16565b60fe5560fd5460405163812015b960e01b81526001600160a01b039091169063812015b9906109ba90339086908690600401611d64565b600060405180830381600087803b1580156109d457600080fd5b505af11580156109e8573d6000803e3d6000fd5b5050505050505b505b50506109fd6001609755565b50565b610a0933610478565b610a255760405162461bcd60e51b81526004016103fd90611bb9565b60fb80546001600160a01b0319166001600160a01b0392909216919091179055565b610a4f611609565b610a57611662565b6000610a638280611bdf565b915060009050610a766040840184611bdf565b9150610a8790506020840184611bdf565b90508214610aa75760405162461bcd60e51b81526004016103fd90611c29565b610ab46060840184611bdf565b90508114610ad45760405162461bcd60e51b81526004016103fd90611c29565b8115610c885760005b82811015610c86576000610af18580611bdf565b83818110610b0157610b01611c52565b60209081029290920135600081815260ff909352604090922054919250506001600160a01b03163314610b465760405162461bcd60e51b81526004016103fd90611da4565b600081815261010060205260409020544211610b745760405162461bcd60e51b81526004016103fd90611dcb565b6000610b836020870187611bdf565b84818110610b9357610b93611c52565b6020908102929092013560008181526101039093526040832054909350919050610bbd8242611c7e565b905060008211610bdf5760405162461bcd60e51b81526004016103fd90611c97565b60008481526101006020526040908190208290555133907fef2706c3a12b3801de65f89a332cbad8fd92ecd14cee494689d1c72558b5682790610c259087815260200190565b60405180910390a26040805185815242602082015290810182905233907fdfe019b195217a71d47e84f87586a767e76a531fefd41e00bf19e2a376141c1f9060600160405180910390a2505050508080610c7e90611ce4565b915050610add565b505b80156109f15760005b818110156109ef576000610ca86040860186611bdf565b83818110610cb857610cb8611c52565b602090810292909201356000818152610101909352604090922054919250506001600160a01b03163314610cfe5760405162461bcd60e51b81526004016103fd90611da4565b600081815261010260205260409020544211610d2c5760405162461bcd60e51b81526004016103fd90611dcb565b6000610d3b6060870187611bdf565b84818110610d4b57610d4b611c52565b6020908102929092013560008181526101039093526040832054909350919050610d758242611c7e565b905060008211610d975760405162461bcd60e51b81526004016103fd90611c97565b60008481526101026020526040908190208290555133907fd679a91b2d32e35b4e1404f64a3cb4c01a5111bd9d5ee3d08b12f85dbfbdd1b390610ddd9087815260200190565b60405180910390a26040805185815242602082015290810182905233907fa75bd221bd6beb23e4198b2f622cddcf1fcd5f84736b5440c74984763b1885c79060600160405180910390a2505050508080610e3690611ce4565b915050610c91565b610e4733610478565b610e635760405162461bcd60e51b81526004016103fd90611bb9565b82818114610e835760405162461bcd60e51b81526004016103fd90611c29565b60005b81811015610eea57838382818110610ea057610ea0611c52565b905060200201356101036000888885818110610ebe57610ebe611c52565b905060200201358152602001908152602001600020819055508080610ee290611ce4565b915050610e86565b505050505050565b610efb33610478565b610f175760405162461bcd60e51b81526004016103fd90611bb9565b610f1f6116af565b565b610f2a33610478565b610f465760405162461bcd60e51b81526004016103fd90611bb9565b60fd80546001600160a01b0319166001600160a01b0392909216919091179055565b610f7133610478565b610f8d5760405162461bcd60e51b81526004016103fd90611bb9565b610f1f611701565b610f9e33610478565b610fba5760405162461bcd60e51b81526004016103fd90611bb9565b6000610fc68280611bdf565b9150610fd790506020830183611bdf565b90508114610ff75760405162461bcd60e51b81526004016103fd90611c29565b6110046040830183611bdf565b905081146110245760405162461bcd60e51b81526004016103fd90611c29565b6110316060830183611bdf565b905081146110515760405162461bcd60e51b81526004016103fd90611c29565b60005b818110156111a05760006110688480611bdf565b8381811061107857611078611c52565b90506020020135905060008480602001906110939190611bdf565b848181106110a3576110a3611c52565b90506020020160208101906110b891906118c5565b905060006110c96040870187611bdf565b858181106110d9576110d9611c52565b90506020020135905060008680606001906110f49190611bdf565b8681811061110457611104611c52565b600087815260ff6020908152604080832080546001600160a01b0319166001600160a01b038b169081179091556101008352928190209382029590950135928390558451898152908101879052938401829052909350917fdfe019b195217a71d47e84f87586a767e76a531fefd41e00bf19e2a376141c1f915060600160405180910390a250505050808061119890611ce4565b915050611054565b505050565b600054610100900460ff16158080156111c55750600054600160ff909116105b806111df5750303b1580156111df575060005460ff166001145b6112425760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b60648201526084016103fd565b6000805460ff191660011790558015611265576000805461ff0019166101001790555b61126d61173e565b611275611765565b61127d611794565b6112856117c3565b61128e84610a00565b611297836103d8565b6112a082610f21565b61030960fe556112ae611701565b80156112f4576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b50505050565b611302611609565b61130a611662565b60006113168280611bdf565b9150600090506113296020840184611bdf565b91505081156114995760005b828110156114975760006113498580611bdf565b8381811061135957611359611c52565b60209081029290920135600081815260ff909352604090922054919250506001600160a01b0316331461139e5760405162461bcd60e51b81526004016103fd90611da4565b6000818152610100602052604090205442116113cc5760405162461bcd60e51b81526004016103fd90611dcb565b600081815260ff60205260409081902080546001600160a01b031916905560fb549051632142170760e11b81526001600160a01b03909116906342842e0e9061141d90309033908690600401611cc0565b600060405180830381600087803b15801561143757600080fd5b505af115801561144b573d6000803e3d6000fd5b50506040518381523392507fef2706c3a12b3801de65f89a332cbad8fd92ecd14cee494689d1c72558b56827915060200160405180910390a2508061148f81611ce4565b915050611335565b505b80156109f15760005b818110156109ef5760006114b96020860186611bdf565b838181106114c9576114c9611c52565b602090810292909201356000818152610101909352604090922054919250506001600160a01b0316331461150f5760405162461bcd60e51b81526004016103fd90611da4565b60008181526101026020526040902054421161153d5760405162461bcd60e51b81526004016103fd90611dcb565b600081815261010160205260409081902080546001600160a01b031916905560fc549051632142170760e11b81526001600160a01b03909116906342842e0e9061158f90309033908690600401611cc0565b600060405180830381600087803b1580156115a957600080fd5b505af11580156115bd573d6000803e3d6000fd5b50506040518381523392507fd679a91b2d32e35b4e1404f64a3cb4c01a5111bd9d5ee3d08b12f85dbfbdd1b3915060200160405180910390a2508061160181611ce4565b9150506114a2565b60026097540361165b5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016103fd565b6002609755565b60655460ff1615610f1f5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b60448201526064016103fd565b6001609755565b6116b7611806565b6065805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b611709611662565b6065805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586116e43390565b600054610100900460ff16610f1f5760405162461bcd60e51b81526004016103fd90611e02565b600054610100900460ff1661178c5760405162461bcd60e51b81526004016103fd90611e02565b610f1f61184f565b600054610100900460ff166117bb5760405162461bcd60e51b81526004016103fd90611e02565b610f1f611882565b600054610100900460ff166117ea5760405162461bcd60e51b81526004016103fd90611e02565b33600090815260c960205260409020805460ff19166001179055565b60655460ff16610f1f5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b60448201526064016103fd565b600054610100900460ff166118765760405162461bcd60e51b81526004016103fd90611e02565b6065805460ff19169055565b600054610100900460ff166116a85760405162461bcd60e51b81526004016103fd90611e02565b80356001600160a01b03811681146118c057600080fd5b919050565b6000602082840312156118d757600080fd5b6118e0826118a9565b9392505050565b634e487b7160e01b600052604160045260246000fd5b6000806000806080858703121561191357600080fd5b61191c856118a9565b935061192a602086016118a9565b925060408501359150606085013567ffffffffffffffff8082111561194e57600080fd5b818701915087601f83011261196257600080fd5b813581811115611974576119746118e7565b604051601f8201601f19908116603f0116810190838211818310171561199c5761199c6118e7565b816040528281528a60208487010111156119b557600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b600080604083850312156119ec57600080fd5b6119f5836118a9565b915060208301358015158114611a0a57600080fd5b809150509250929050565b600060208284031215611a2757600080fd5b5035919050565b600060808284031215611a4057600080fd5b50919050565b600060208284031215611a5857600080fd5b813567ffffffffffffffff811115611a6f57600080fd5b611a7b84828501611a2e565b949350505050565b60008083601f840112611a9557600080fd5b50813567ffffffffffffffff811115611aad57600080fd5b6020830191508360208260051b8501011115611ac857600080fd5b9250929050565b60008060008060408587031215611ae557600080fd5b843567ffffffffffffffff80821115611afd57600080fd5b611b0988838901611a83565b90965094506020870135915080821115611b2257600080fd5b50611b2f87828801611a83565b95989497509550505050565b600080600060608486031215611b5057600080fd5b611b59846118a9565b9250611b67602085016118a9565b9150611b75604085016118a9565b90509250925092565b600060208284031215611b9057600080fd5b813567ffffffffffffffff811115611ba757600080fd5b8201604081850312156118e057600080fd5b6020808252600c908201526b2737ba1030b71030b236b4b760a11b604082015260600190565b6000808335601e19843603018112611bf657600080fd5b83018035915067ffffffffffffffff821115611c1157600080fd5b6020019150600581901b3603821315611ac857600080fd5b6020808252600f908201526e125b9d985b1a59081c995c5d595cdd608a1b604082015260600190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b80820180821115611c9157611c91611c68565b92915050565b6020808252600f908201526e125b9d985b1a59081b1bd8dac81251608a1b604082015260600190565b6001600160a01b039384168152919092166020820152604081019190915260600190565b600060018201611cf657611cf6611c68565b5060010190565b600060208284031215611d0f57600080fd5b5051919050565b81810381811115611c9157611c91611c68565b600081518084526020808501945080840160005b83811015611d5957815187529582019590820190600101611d3d565b509495945050505050565b6001600160a01b0384168152606060208201819052600090611d8890830185611d29565b8281036040840152611d9a8185611d29565b9695505050505050565b6020808252600d908201526c24b73b30b634b21037bbb732b960991b604082015260600190565b6020808252601c908201527f4c6f636b20706572696f64206973206e6f7420636f6d706c6574656400000000604082015260600190565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b60608201526080019056fea2646970667358221220b413ace89795c3c52e7e54da055b5d4ff12545cf29d093c3cbd35be1bc8c92cf64736f6c63430008110033
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101735760003560e01c80634f5cb3fe116100de578063c0c53b8b11610097578063dfd622c011610071578063dfd622c014610375578063e6d7a3ba14610388578063e98f54bb146103b2578063fb56fa59146103c557600080fd5b8063c0c53b8b1461032e578063c6286cf714610341578063d1d78a841461035457600080fd5b80634f5cb3fe146102cc5780635c975abb146102df5780638456cb59146102ea5780638d3c96fd146102f25780639db6261a146102fa578063ab48a3801461030d57600080fd5b80632af12fcc116101305780632af12fcc146102535780632f9dbb8214610266578063300e25e21461027d57806332298be11461029057806339be4833146102b15780633f4ba83a146102c457600080fd5b80630355d77f14610178578063150b7a021461018d578063240ff27f146101c957806324d7806c146101dc57806328ba73bf146101ff57806328e823d214610240575b600080fd5b61018b6101863660046118c5565b6103d8565b005b6101ab61019b3660046118fd565b630a85bd0160e11b949350505050565b6040516001600160e01b031990911681526020015b60405180910390f35b61018b6101d73660046119d9565b610428565b6101ef6101ea3660046118c5565b610478565b60405190151581526020016101c0565b61022861020d366004611a15565b60ff602052600090815260409020546001600160a01b031681565b6040516001600160a01b0390911681526020016101c0565b61018b61024e366004611a46565b610496565b61018b6102613660046118c5565b610a00565b61026f60fe5481565b6040519081526020016101c0565b61018b61028b366004611a46565b610a47565b61026f61029e366004611a15565b6101036020526000908152604090205481565b61018b6102bf366004611acf565b610e3e565b61018b610ef2565b61018b6102da3660046118c5565b610f21565b60655460ff166101ef565b61018b610f68565b61026f600281565b61018b610308366004611a46565b610f95565b61026f61031b366004611a15565b6101026020526000908152604090205481565b61018b61033c366004611b3b565b6111a5565b61018b61034f366004611b7e565b6112fa565b61026f610362366004611a15565b6101006020526000908152604090205481565b60fc54610228906001600160a01b031681565b610228610396366004611a15565b610101602052600090815260409020546001600160a01b031681565b60fb54610228906001600160a01b031681565b60fd54610228906001600160a01b031681565b6103e133610478565b6104065760405162461bcd60e51b81526004016103fd90611bb9565b60405180910390fd5b60fc80546001600160a01b0319166001600160a01b0392909216919091179055565b61043133610478565b61044d5760405162461bcd60e51b81526004016103fd90611bb9565b6001600160a01b0391909116600090815260c960205260409020805460ff1916911515919091179055565b6001600160a01b0316600090815260c9602052604090205460ff1690565b61049e611609565b6104a6611662565b60006104b28280611bdf565b9150600090506104c56040840184611bdf565b91506104d690506020840184611bdf565b905082146104f65760405162461bcd60e51b81526004016103fd90611c29565b6105036060840184611bdf565b905081146105235760405162461bcd60e51b81526004016103fd90611c29565b81156106b75760005b828110156106b55760006105408580611bdf565b8381811061055057610550611c52565b905060200201359050600085806020019061056b9190611bdf565b8481811061057b5761057b611c52565b60209081029290920135600081815261010390935260408320549093509190506105a58242611c7e565b9050600082116105c75760405162461bcd60e51b81526004016103fd90611c97565b600084815260ff6020908152604080832080546001600160a01b031916339081179091556101009092529182902083905560fb5491516323b872dd60e01b81526001600160a01b0392909216916323b872dd9161062a9130908990600401611cc0565b600060405180830381600087803b15801561064457600080fd5b505af1158015610658573d6000803e3d6000fd5b5050604080518781524260208201529081018490523392507fdfe019b195217a71d47e84f87586a767e76a531fefd41e00bf19e2a376141c1f915060600160405180910390a25050505080806106ad90611ce4565b91505061052c565b505b80156109f1576000805b8281101561085e5760006106d86040870187611bdf565b838181106106e8576106e8611c52565b90506020020135905060008680606001906107039190611bdf565b8481811061071357610713611c52565b602090810292909201356000818152610103909352604083205490935091905061073d8242611c7e565b90506000821161075f5760405162461bcd60e51b81526004016103fd90611c97565b60008481526101016020908152604080832080546001600160a01b031916339081179091556101029092529182902083905560fc5491516323b872dd60e01b81526001600160a01b0392909216916323b872dd916107c39130908990600401611cc0565b600060405180830381600087803b1580156107dd57600080fd5b505af11580156107f1573d6000803e3d6000fd5b505050506301e13380821061080557600195505b6040805185815242602082015290810182905233907fa75bd221bd6beb23e4198b2f622cddcf1fcd5f84736b5440c74984763b1885c79060600160405180910390a250505050808061085690611ce4565b9150506106c1565b5080801561086e5750600060fe54115b80156108e8575060fd54604051627eeac760e11b8152336004820152600260248201526001600160a01b039091169062fdd58e90604401602060405180830381865afa1580156108c2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108e69190611cfd565b155b156109ef576040805160018082528183019092526000916020808301908036833701905050905060028160008151811061092457610924611c52565b602090810291909101015260408051600180825281830190925260009181602001602082028036833701905050905060018160008151811061096857610968611c52565b602002602001018181525050600160fe546109839190611d16565b60fe5560fd5460405163812015b960e01b81526001600160a01b039091169063812015b9906109ba90339086908690600401611d64565b600060405180830381600087803b1580156109d457600080fd5b505af11580156109e8573d6000803e3d6000fd5b5050505050505b505b50506109fd6001609755565b50565b610a0933610478565b610a255760405162461bcd60e51b81526004016103fd90611bb9565b60fb80546001600160a01b0319166001600160a01b0392909216919091179055565b610a4f611609565b610a57611662565b6000610a638280611bdf565b915060009050610a766040840184611bdf565b9150610a8790506020840184611bdf565b90508214610aa75760405162461bcd60e51b81526004016103fd90611c29565b610ab46060840184611bdf565b90508114610ad45760405162461bcd60e51b81526004016103fd90611c29565b8115610c885760005b82811015610c86576000610af18580611bdf565b83818110610b0157610b01611c52565b60209081029290920135600081815260ff909352604090922054919250506001600160a01b03163314610b465760405162461bcd60e51b81526004016103fd90611da4565b600081815261010060205260409020544211610b745760405162461bcd60e51b81526004016103fd90611dcb565b6000610b836020870187611bdf565b84818110610b9357610b93611c52565b6020908102929092013560008181526101039093526040832054909350919050610bbd8242611c7e565b905060008211610bdf5760405162461bcd60e51b81526004016103fd90611c97565b60008481526101006020526040908190208290555133907fef2706c3a12b3801de65f89a332cbad8fd92ecd14cee494689d1c72558b5682790610c259087815260200190565b60405180910390a26040805185815242602082015290810182905233907fdfe019b195217a71d47e84f87586a767e76a531fefd41e00bf19e2a376141c1f9060600160405180910390a2505050508080610c7e90611ce4565b915050610add565b505b80156109f15760005b818110156109ef576000610ca86040860186611bdf565b83818110610cb857610cb8611c52565b602090810292909201356000818152610101909352604090922054919250506001600160a01b03163314610cfe5760405162461bcd60e51b81526004016103fd90611da4565b600081815261010260205260409020544211610d2c5760405162461bcd60e51b81526004016103fd90611dcb565b6000610d3b6060870187611bdf565b84818110610d4b57610d4b611c52565b6020908102929092013560008181526101039093526040832054909350919050610d758242611c7e565b905060008211610d975760405162461bcd60e51b81526004016103fd90611c97565b60008481526101026020526040908190208290555133907fd679a91b2d32e35b4e1404f64a3cb4c01a5111bd9d5ee3d08b12f85dbfbdd1b390610ddd9087815260200190565b60405180910390a26040805185815242602082015290810182905233907fa75bd221bd6beb23e4198b2f622cddcf1fcd5f84736b5440c74984763b1885c79060600160405180910390a2505050508080610e3690611ce4565b915050610c91565b610e4733610478565b610e635760405162461bcd60e51b81526004016103fd90611bb9565b82818114610e835760405162461bcd60e51b81526004016103fd90611c29565b60005b81811015610eea57838382818110610ea057610ea0611c52565b905060200201356101036000888885818110610ebe57610ebe611c52565b905060200201358152602001908152602001600020819055508080610ee290611ce4565b915050610e86565b505050505050565b610efb33610478565b610f175760405162461bcd60e51b81526004016103fd90611bb9565b610f1f6116af565b565b610f2a33610478565b610f465760405162461bcd60e51b81526004016103fd90611bb9565b60fd80546001600160a01b0319166001600160a01b0392909216919091179055565b610f7133610478565b610f8d5760405162461bcd60e51b81526004016103fd90611bb9565b610f1f611701565b610f9e33610478565b610fba5760405162461bcd60e51b81526004016103fd90611bb9565b6000610fc68280611bdf565b9150610fd790506020830183611bdf565b90508114610ff75760405162461bcd60e51b81526004016103fd90611c29565b6110046040830183611bdf565b905081146110245760405162461bcd60e51b81526004016103fd90611c29565b6110316060830183611bdf565b905081146110515760405162461bcd60e51b81526004016103fd90611c29565b60005b818110156111a05760006110688480611bdf565b8381811061107857611078611c52565b90506020020135905060008480602001906110939190611bdf565b848181106110a3576110a3611c52565b90506020020160208101906110b891906118c5565b905060006110c96040870187611bdf565b858181106110d9576110d9611c52565b90506020020135905060008680606001906110f49190611bdf565b8681811061110457611104611c52565b600087815260ff6020908152604080832080546001600160a01b0319166001600160a01b038b169081179091556101008352928190209382029590950135928390558451898152908101879052938401829052909350917fdfe019b195217a71d47e84f87586a767e76a531fefd41e00bf19e2a376141c1f915060600160405180910390a250505050808061119890611ce4565b915050611054565b505050565b600054610100900460ff16158080156111c55750600054600160ff909116105b806111df5750303b1580156111df575060005460ff166001145b6112425760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b60648201526084016103fd565b6000805460ff191660011790558015611265576000805461ff0019166101001790555b61126d61173e565b611275611765565b61127d611794565b6112856117c3565b61128e84610a00565b611297836103d8565b6112a082610f21565b61030960fe556112ae611701565b80156112f4576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b50505050565b611302611609565b61130a611662565b60006113168280611bdf565b9150600090506113296020840184611bdf565b91505081156114995760005b828110156114975760006113498580611bdf565b8381811061135957611359611c52565b60209081029290920135600081815260ff909352604090922054919250506001600160a01b0316331461139e5760405162461bcd60e51b81526004016103fd90611da4565b6000818152610100602052604090205442116113cc5760405162461bcd60e51b81526004016103fd90611dcb565b600081815260ff60205260409081902080546001600160a01b031916905560fb549051632142170760e11b81526001600160a01b03909116906342842e0e9061141d90309033908690600401611cc0565b600060405180830381600087803b15801561143757600080fd5b505af115801561144b573d6000803e3d6000fd5b50506040518381523392507fef2706c3a12b3801de65f89a332cbad8fd92ecd14cee494689d1c72558b56827915060200160405180910390a2508061148f81611ce4565b915050611335565b505b80156109f15760005b818110156109ef5760006114b96020860186611bdf565b838181106114c9576114c9611c52565b602090810292909201356000818152610101909352604090922054919250506001600160a01b0316331461150f5760405162461bcd60e51b81526004016103fd90611da4565b60008181526101026020526040902054421161153d5760405162461bcd60e51b81526004016103fd90611dcb565b600081815261010160205260409081902080546001600160a01b031916905560fc549051632142170760e11b81526001600160a01b03909116906342842e0e9061158f90309033908690600401611cc0565b600060405180830381600087803b1580156115a957600080fd5b505af11580156115bd573d6000803e3d6000fd5b50506040518381523392507fd679a91b2d32e35b4e1404f64a3cb4c01a5111bd9d5ee3d08b12f85dbfbdd1b3915060200160405180910390a2508061160181611ce4565b9150506114a2565b60026097540361165b5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016103fd565b6002609755565b60655460ff1615610f1f5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b60448201526064016103fd565b6001609755565b6116b7611806565b6065805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b611709611662565b6065805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586116e43390565b600054610100900460ff16610f1f5760405162461bcd60e51b81526004016103fd90611e02565b600054610100900460ff1661178c5760405162461bcd60e51b81526004016103fd90611e02565b610f1f61184f565b600054610100900460ff166117bb5760405162461bcd60e51b81526004016103fd90611e02565b610f1f611882565b600054610100900460ff166117ea5760405162461bcd60e51b81526004016103fd90611e02565b33600090815260c960205260409020805460ff19166001179055565b60655460ff16610f1f5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b60448201526064016103fd565b600054610100900460ff166118765760405162461bcd60e51b81526004016103fd90611e02565b6065805460ff19169055565b600054610100900460ff166116a85760405162461bcd60e51b81526004016103fd90611e02565b80356001600160a01b03811681146118c057600080fd5b919050565b6000602082840312156118d757600080fd5b6118e0826118a9565b9392505050565b634e487b7160e01b600052604160045260246000fd5b6000806000806080858703121561191357600080fd5b61191c856118a9565b935061192a602086016118a9565b925060408501359150606085013567ffffffffffffffff8082111561194e57600080fd5b818701915087601f83011261196257600080fd5b813581811115611974576119746118e7565b604051601f8201601f19908116603f0116810190838211818310171561199c5761199c6118e7565b816040528281528a60208487010111156119b557600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b600080604083850312156119ec57600080fd5b6119f5836118a9565b915060208301358015158114611a0a57600080fd5b809150509250929050565b600060208284031215611a2757600080fd5b5035919050565b600060808284031215611a4057600080fd5b50919050565b600060208284031215611a5857600080fd5b813567ffffffffffffffff811115611a6f57600080fd5b611a7b84828501611a2e565b949350505050565b60008083601f840112611a9557600080fd5b50813567ffffffffffffffff811115611aad57600080fd5b6020830191508360208260051b8501011115611ac857600080fd5b9250929050565b60008060008060408587031215611ae557600080fd5b843567ffffffffffffffff80821115611afd57600080fd5b611b0988838901611a83565b90965094506020870135915080821115611b2257600080fd5b50611b2f87828801611a83565b95989497509550505050565b600080600060608486031215611b5057600080fd5b611b59846118a9565b9250611b67602085016118a9565b9150611b75604085016118a9565b90509250925092565b600060208284031215611b9057600080fd5b813567ffffffffffffffff811115611ba757600080fd5b8201604081850312156118e057600080fd5b6020808252600c908201526b2737ba1030b71030b236b4b760a11b604082015260600190565b6000808335601e19843603018112611bf657600080fd5b83018035915067ffffffffffffffff821115611c1157600080fd5b6020019150600581901b3603821315611ac857600080fd5b6020808252600f908201526e125b9d985b1a59081c995c5d595cdd608a1b604082015260600190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b80820180821115611c9157611c91611c68565b92915050565b6020808252600f908201526e125b9d985b1a59081b1bd8dac81251608a1b604082015260600190565b6001600160a01b039384168152919092166020820152604081019190915260600190565b600060018201611cf657611cf6611c68565b5060010190565b600060208284031215611d0f57600080fd5b5051919050565b81810381811115611c9157611c91611c68565b600081518084526020808501945080840160005b83811015611d5957815187529582019590820190600101611d3d565b509495945050505050565b6001600160a01b0384168152606060208201819052600090611d8890830185611d29565b8281036040840152611d9a8185611d29565b9695505050505050565b6020808252600d908201526c24b73b30b634b21037bbb732b960991b604082015260600190565b6020808252601c908201527f4c6f636b20706572696f64206973206e6f7420636f6d706c6574656400000000604082015260600190565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b60608201526080019056fea2646970667358221220b413ace89795c3c52e7e54da055b5d4ff12545cf29d093c3cbd35be1bc8c92cf64736f6c63430008110033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 26 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.