Source Code
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions
Loading...
Loading
This contract may be a proxy contract. Click on More Options and select Is this a proxy? to confirm and enable the "Read as Proxy" & "Write as Proxy" tabs.
Contract Name:
NodeRewardVault
Compiler Version
v0.8.7+commit.e28d00a7
Optimization Enabled:
Yes with 1000 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: GPL-3.0
pragma solidity ^0.8.7;
import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol";
import "@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.sol";
import "./interfaces/INodeRewardVault.sol";
import "./interfaces/IValidatorNft.sol";
/**
* @title NodeRewardVault for managing rewards
*/
contract NodeRewardVault is INodeRewardVault, UUPSUpgradeable, OwnableUpgradeable, ReentrancyGuardUpgradeable {
IValidatorNft private _nftContract;
RewardMetadata[] public cumArr;
uint256 public unclaimedRewards;
uint256 public daoRewards;
uint256 public lastPublicSettle;
uint256 public publicSettleLimit;
uint256 private _comission;
uint256 private _tax;
address private _dao;
address private _authority;
address private _aggregatorProxyAddress;
event ComissionChanged(uint256 _before, uint256 _after);
event TaxChanged(uint256 _before, uint256 _after);
event DaoChanged(address _before, address _after);
event AuthorityChanged(address _before, address _after);
event AggregatorChanged(address _before, address _after);
event PublicSettleLimitChanged(uint256 _before, uint256 _after);
event RewardClaimed(address _owner, uint256 _amount);
event Transferred(address _to, uint256 _amount);
event Settle(uint256 _blockNumber, uint256 _settleRewards);
modifier onlyAggregator() {
require(_aggregatorProxyAddress == msg.sender, "Not allowed to touch funds");
_;
}
/// @custom:oz-upgrades-unsafe-allow constructor
constructor() {}
function initialize(address nftContract_) external initializer {
__Ownable_init();
__UUPSUpgradeable_init();
__ReentrancyGuard_init();
_nftContract = IValidatorNft(nftContract_);
_aggregatorProxyAddress = address(0x1);
_dao = address(0xee09C9a517ecE6Bedd2EbC766938e39367F37753);
_authority = address(0x2C21721627aad3F43606836FEC22142c5e1edEe2);
_comission = 1000;
_tax = 0;
RewardMetadata memory r = RewardMetadata({
value: 0,
height: 0
});
cumArr.push(r);
unclaimedRewards = 0;
lastPublicSettle = 0;
publicSettleLimit = 216000;
}
function _authorizeUpgrade(address) internal override onlyOwner {}
/**
* @notice Computes the reward a nft has
* @param tokenId - tokenId of the validator nft
*/
function _rewards(uint256 tokenId) private view returns (uint256) {
uint256 gasHeight = _nftContract.gasHeightOf(tokenId);
uint256 low = 0;
uint256 high = cumArr.length;
while (low < high) {
uint256 mid = (low + high) >> 1;
if (cumArr[mid].height > gasHeight) {
high = mid;
} else {
low = mid + 1;
}
}
// At this point `low` is the exclusive upper bound. We will use it.
return cumArr[cumArr.length - 1].value - cumArr[low - 1].value;
}
/**
* @notice Settles outstanding rewards
* @dev Current active validator nft will equally recieve all rewards earned in this era
*/
function _settle() private {
uint256 outstandingRewards = address(this).balance - unclaimedRewards - daoRewards;
if (outstandingRewards == 0 || cumArr[cumArr.length - 1].height == block.number) {
return;
}
uint256 daoReward = (outstandingRewards * _comission) / 10000;
daoRewards += daoReward;
outstandingRewards -= daoReward;
unclaimedRewards += outstandingRewards;
uint256 averageRewards = outstandingRewards / _nftContract.totalSupply();
uint256 currentValue = cumArr[cumArr.length - 1].value + averageRewards;
RewardMetadata memory r = RewardMetadata({
value: currentValue,
height: block.number
});
cumArr.push(r);
emit Settle(block.number, averageRewards);
}
/**
* @notice Returns the address of the validator nft
*/
function nftContract() external view override returns (address) {
return address(_nftContract);
}
/**
* @notice Computes the reward a nft has
* @param tokenId - tokenId of the validator nft
*/
function rewards(uint256 tokenId) external view override returns (uint256) {
return _rewards(tokenId);
}
/**
* @notice Gets the last recorded height which rewards was last dispersed + 1
*/
function rewardsHeight() external view override returns (uint256) {
return cumArr[cumArr.length - 1].height + 1;
}
/**
* @notice Returns an array of recent `RewardMetadata`
* @param amt - The amount of `RewardMetdata` to return, ordered according to the most recent
*/
function rewardsAndHeights(uint256 amt) external view override returns (RewardMetadata[] memory) {
if (amt >= cumArr.length) {
return cumArr;
}
RewardMetadata[] memory r = new RewardMetadata[](amt);
for (uint256 i = 0; i < amt; i++) {
r[i] = cumArr[cumArr.length - 1 - i];
}
return r;
}
/**
* @notice Returns the amount of comission on validator rewards
*/
function comission() external view override returns (uint256) {
return _comission;
}
/**
* @notice Returns the amount of tax on nft trades
*/
function tax() external view override returns (uint256) {
return _tax;
}
/**
* @notice Returns the dao's multisig address
*/
function dao() external view override returns (address) {
return _dao;
}
/**
* @notice Returns the authority's (in-charge of signing) public address
*/
function authority() external view override returns (address) {
return _authority;
}
/**
* @notice Returns the address of the Aggregator
*/
function aggregator() external view override returns (address) {
return _aggregatorProxyAddress;
}
/**
* @notice Settles outstanding rewards
* @dev Current active validator nft will equally recieve
* all rewards earned in this era
*/
function settle() external override onlyAggregator {
_settle();
}
/**
* @notice Settles outstanding rewards in the event there is no change in amount of validators
* @dev Current active validator nft will equally recieve
* all rewards earned in this era
*/
function publicSettle() external override {
// prevent spam attack
if (lastPublicSettle + publicSettleLimit > block.number) {
return;
}
_settle();
lastPublicSettle = block.number;
}
//slither-disable-next-line arbitrary-send
function transfer(uint256 amount, address to) private {
require(to != address(0), "Recipient address provided invalid");
payable(to).transfer(amount);
emit Transferred(to, amount);
}
/**
* @notice Claims the rewards belonging to a validator nft and transfer it to the owner
* @param tokenId - tokenId of the validator nft
*/
function claimRewards(uint256 tokenId) external override nonReentrant onlyAggregator {
address owner = _nftContract.ownerOf(tokenId);
uint256 nftRewards = _rewards(tokenId);
unclaimedRewards -= nftRewards;
transfer(nftRewards, owner);
emit RewardClaimed(owner, nftRewards);
}
/**
* @notice Claims the rewards belonging to the dao
*/
function claimDao() external nonReentrant {
transfer(daoRewards, _dao);
daoRewards = 0;
}
/**
* @notice Sets the comission. Comission is currently used to fund hardware costs
*/
function setComission(uint256 comission_) external onlyOwner {
require(comission_ < 10000, "Comission cannot be 100%");
emit ComissionChanged(_comission, comission_);
_comission = comission_;
}
/**
* @notice Sets the tax for nft trading
*/
function setTax(uint256 tax_) external onlyOwner {
require(tax_ < 10000, "Tax cannot be 100%");
emit TaxChanged(_tax, tax_);
_tax = tax_;
}
/**
* @notice Sets the dao address. dao funds the hardware for running the validator
*/
function setDao(address dao_) external onlyOwner {
require(dao_ != address(0), "DAO address provided invalid");
emit DaoChanged(_dao, dao_);
_dao = dao_;
}
/**
* @notice Sets the authority address. Authority is in charge of signing & authorizing the launch of validator nodes
*/
function setAuthority(address authority_) external onlyOwner {
require(authority_ != address(0), "Authority address provided invalid");
emit AuthorityChanged(_authority, authority_);
_authority = authority_;
}
/**
* @notice Sets the aggregator address
*/
function setAggregator(address aggregatorProxyAddress_) external onlyOwner {
require(aggregatorProxyAddress_ != address(0), "Aggregator address provided invalid");
emit AggregatorChanged(_aggregatorProxyAddress, aggregatorProxyAddress_);
_aggregatorProxyAddress = aggregatorProxyAddress_;
}
/**
* @notice Sets the `PublicSettleLimit`. Determines how frequently this contract can be spammed
*/
function setPublicSettleLimit(uint256 publicSettleLimit_) external onlyOwner {
emit PublicSettleLimitChanged(publicSettleLimit, publicSettleLimit_);
publicSettleLimit = publicSettleLimit_;
}
receive() external payable{}
}// SPDX-License-Identifier: GPL-3.0
pragma solidity ^0.8.7;
/**
* @title Interface for NodeRewardVault
* @notice Vault will manage methods for rewards, commissions, tax
*/
interface INodeRewardVault {
struct RewardMetadata {
uint256 value;
uint256 height;
}
function nftContract() external view returns (address);
function rewards(uint256 tokenId) external view returns (uint256);
function rewardsHeight() external view returns (uint256);
function rewardsAndHeights(uint256 amt) external view returns (RewardMetadata[] memory);
function comission() external view returns (uint256);
function tax() external view returns (uint256);
function dao() external view returns (address);
function authority() external view returns (address);
function aggregator() external view returns (address);
function settle() external;
function publicSettle() external;
function claimRewards(uint256 tokenId) external;
}// SPDX-License-Identifier: GPL-3.0
pragma solidity ^0.8.7;
import './IERC721AQueryable.sol';
interface IValidatorNft is IERC721AQueryable {
function activeValidators() external view returns (bytes[] memory);
function validatorExists(bytes calldata pubkey) external view returns (bool);
function validatorOf(uint256 tokenId) external view returns (bytes memory);
function validatorsOfOwner(address owner) external view returns (bytes[] memory);
function tokenOfValidator(bytes calldata pubkey) external view returns (uint256);
function setGasHeight(uint256 tokenId, uint256 value) external;
function gasHeightOf(uint256 tokenId) external view returns (uint256);
function lastOwnerOf(uint256 tokenId) external view returns (address);
function whiteListMint(bytes calldata data, address _to) external payable;
function whiteListBurn(uint256 tokenId) external;
function updateNodeCapital(uint256 tokenId, uint256 value) external;
function nodeCapitalOf(uint256 tokenId) external view returns (uint256);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)
pragma solidity ^0.8.0;
import "../proxy/utils/Initializable.sol";
/**
* @dev Contract module that helps prevent reentrant calls to a function.
*
* Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
* available, which can be applied to functions to make sure there are no nested
* (reentrant) calls to them.
*
* Note that because there is a single `nonReentrant` guard, functions marked as
* `nonReentrant` may not call one another. This can be worked around by making
* those functions `private`, and then adding `external` `nonReentrant` entry
* points to them.
*
* TIP: If you would like to learn more about reentrancy and alternative ways
* to protect against it, check out our blog post
* https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
*/
abstract contract ReentrancyGuardUpgradeable is Initializable {
// Booleans are more expensive than uint256 or any type that takes up a full
// word because each write operation emits an extra SLOAD to first read the
// slot's contents, replace the bits taken up by the boolean, and then write
// back. This is the compiler's defense against contract upgrades and
// pointer aliasing, and it cannot be disabled.
// The values being non-zero value makes deployment a bit more expensive,
// but in exchange the refund on every call to nonReentrant will be lower in
// amount. Since refunds are capped to a percentage of the total
// transaction's gas, it is best to keep them low in cases like this one, to
// increase the likelihood of the full refund coming into effect.
uint256 private constant _NOT_ENTERED = 1;
uint256 private constant _ENTERED = 2;
uint256 private _status;
function __ReentrancyGuard_init() internal onlyInitializing {
__ReentrancyGuard_init_unchained();
}
function __ReentrancyGuard_init_unchained() internal onlyInitializing {
_status = _NOT_ENTERED;
}
/**
* @dev Prevents a contract from calling itself, directly or indirectly.
* Calling a `nonReentrant` function from another `nonReentrant`
* function is not supported. It is possible to prevent this from happening
* by making the `nonReentrant` function external, and making it call a
* `private` function that does the actual work.
*/
modifier nonReentrant() {
// On the first call to nonReentrant, _notEntered will be true
require(_status != _ENTERED, "ReentrancyGuard: reentrant call");
// Any calls to nonReentrant after this point will fail
_status = _ENTERED;
_;
// By storing the original value once again, a refund is triggered (see
// https://eips.ethereum.org/EIPS/eip-2200)
_status = _NOT_ENTERED;
}
/**
* @dev This empty reserved space is put in place to allow future versions to add new
* variables without shifting down storage in the inheritance chain.
* See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
*/
uint256[49] private __gap;
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)
pragma solidity ^0.8.0;
import "../utils/ContextUpgradeable.sol";
import "../proxy/utils/Initializable.sol";
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
*
* This module is used through inheritance. It will make available the modifier
* `onlyOwner`, which can be applied to your functions to restrict their use to
* the owner.
*/
abstract contract OwnableUpgradeable is Initializable, ContextUpgradeable {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
function __Ownable_init() internal onlyInitializing {
__Ownable_init_unchained();
}
function __Ownable_init_unchained() internal onlyInitializing {
_transferOwnership(_msgSender());
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
_checkOwner();
_;
}
/**
* @dev Returns the address of the current owner.
*/
function owner() public view virtual returns (address) {
return _owner;
}
/**
* @dev Throws if the sender is not the owner.
*/
function _checkOwner() internal view virtual {
require(owner() == _msgSender(), "Ownable: caller is not the owner");
}
/**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions anymore. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby removing any functionality that is only available to the owner.
*/
function renounceOwnership() public virtual onlyOwner {
_transferOwnership(address(0));
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/
function transferOwnership(address newOwner) public virtual onlyOwner {
require(newOwner != address(0), "Ownable: new owner is the zero address");
_transferOwnership(newOwner);
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Internal function without access restriction.
*/
function _transferOwnership(address newOwner) internal virtual {
address oldOwner = _owner;
_owner = newOwner;
emit OwnershipTransferred(oldOwner, newOwner);
}
/**
* @dev This empty reserved space is put in place to allow future versions to add new
* variables without shifting down storage in the inheritance chain.
* See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
*/
uint256[49] private __gap;
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (proxy/utils/UUPSUpgradeable.sol)
pragma solidity ^0.8.0;
import "../../interfaces/draft-IERC1822Upgradeable.sol";
import "../ERC1967/ERC1967UpgradeUpgradeable.sol";
import "./Initializable.sol";
/**
* @dev An upgradeability mechanism designed for UUPS proxies. The functions included here can perform an upgrade of an
* {ERC1967Proxy}, when this contract is set as the implementation behind such a proxy.
*
* A security mechanism ensures that an upgrade does not turn off upgradeability accidentally, although this risk is
* reinstated if the upgrade retains upgradeability but removes the security mechanism, e.g. by replacing
* `UUPSUpgradeable` with a custom implementation of upgrades.
*
* The {_authorizeUpgrade} function must be overridden to include access restriction to the upgrade mechanism.
*
* _Available since v4.1._
*/
abstract contract UUPSUpgradeable is Initializable, IERC1822ProxiableUpgradeable, ERC1967UpgradeUpgradeable {
function __UUPSUpgradeable_init() internal onlyInitializing {
}
function __UUPSUpgradeable_init_unchained() internal onlyInitializing {
}
/// @custom:oz-upgrades-unsafe-allow state-variable-immutable state-variable-assignment
address private immutable __self = address(this);
/**
* @dev Check that the execution is being performed through a delegatecall call and that the execution context is
* a proxy contract with an implementation (as defined in ERC1967) pointing to self. This should only be the case
* for UUPS and transparent proxies that are using the current contract as their implementation. Execution of a
* function through ERC1167 minimal proxies (clones) would not normally pass this test, but is not guaranteed to
* fail.
*/
modifier onlyProxy() {
require(address(this) != __self, "Function must be called through delegatecall");
require(_getImplementation() == __self, "Function must be called through active proxy");
_;
}
/**
* @dev Check that the execution is not being performed through a delegate call. This allows a function to be
* callable on the implementing contract but not through proxies.
*/
modifier notDelegated() {
require(address(this) == __self, "UUPSUpgradeable: must not be called through delegatecall");
_;
}
/**
* @dev Implementation of the ERC1822 {proxiableUUID} function. This returns the storage slot used by the
* implementation. It is used to validate that the this implementation remains valid after an upgrade.
*
* IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks
* bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this
* function revert if invoked through a proxy. This is guaranteed by the `notDelegated` modifier.
*/
function proxiableUUID() external view virtual override notDelegated returns (bytes32) {
return _IMPLEMENTATION_SLOT;
}
/**
* @dev Upgrade the implementation of the proxy to `newImplementation`.
*
* Calls {_authorizeUpgrade}.
*
* Emits an {Upgraded} event.
*/
function upgradeTo(address newImplementation) external virtual onlyProxy {
_authorizeUpgrade(newImplementation);
_upgradeToAndCallUUPS(newImplementation, new bytes(0), false);
}
/**
* @dev Upgrade the implementation of the proxy to `newImplementation`, and subsequently execute the function call
* encoded in `data`.
*
* Calls {_authorizeUpgrade}.
*
* Emits an {Upgraded} event.
*/
function upgradeToAndCall(address newImplementation, bytes memory data) external payable virtual onlyProxy {
_authorizeUpgrade(newImplementation);
_upgradeToAndCallUUPS(newImplementation, data, true);
}
/**
* @dev Function that should revert when `msg.sender` is not authorized to upgrade the contract. Called by
* {upgradeTo} and {upgradeToAndCall}.
*
* Normally, this function will use an xref:access.adoc[access control] modifier such as {Ownable-onlyOwner}.
*
* ```solidity
* function _authorizeUpgrade(address) internal override onlyOwner {}
* ```
*/
function _authorizeUpgrade(address newImplementation) internal virtual;
/**
* @dev This empty reserved space is put in place to allow future versions to add new
* variables without shifting down storage in the inheritance chain.
* See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
*/
uint256[50] private __gap;
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (proxy/utils/Initializable.sol)
pragma solidity ^0.8.2;
import "../../utils/AddressUpgradeable.sol";
/**
* @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed
* behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an
* external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer
* function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.
*
* The initialization functions use a version number. Once a version number is used, it is consumed and cannot be
* reused. This mechanism prevents re-execution of each "step" but allows the creation of new initialization steps in
* case an upgrade adds a module that needs to be initialized.
*
* For example:
*
* [.hljs-theme-light.nopadding]
* ```
* contract MyToken is ERC20Upgradeable {
* function initialize() initializer public {
* __ERC20_init("MyToken", "MTK");
* }
* }
* contract MyTokenV2 is MyToken, ERC20PermitUpgradeable {
* function initializeV2() reinitializer(2) public {
* __ERC20Permit_init("MyToken");
* }
* }
* ```
*
* TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as
* possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.
*
* CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure
* that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.
*
* [CAUTION]
* ====
* Avoid leaving a contract uninitialized.
*
* An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation
* contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke
* the {_disableInitializers} function in the constructor to automatically lock it when it is deployed:
*
* [.hljs-theme-light.nopadding]
* ```
* /// @custom:oz-upgrades-unsafe-allow constructor
* constructor() {
* _disableInitializers();
* }
* ```
* ====
*/
abstract contract Initializable {
/**
* @dev Indicates that the contract has been initialized.
* @custom:oz-retyped-from bool
*/
uint8 private _initialized;
/**
* @dev Indicates that the contract is in the process of being initialized.
*/
bool private _initializing;
/**
* @dev Triggered when the contract has been initialized or reinitialized.
*/
event Initialized(uint8 version);
/**
* @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope,
* `onlyInitializing` functions can be used to initialize parent contracts. Equivalent to `reinitializer(1)`.
*/
modifier initializer() {
bool isTopLevelCall = !_initializing;
require(
(isTopLevelCall && _initialized < 1) || (!AddressUpgradeable.isContract(address(this)) && _initialized == 1),
"Initializable: contract is already initialized"
);
_initialized = 1;
if (isTopLevelCall) {
_initializing = true;
}
_;
if (isTopLevelCall) {
_initializing = false;
emit Initialized(1);
}
}
/**
* @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the
* contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be
* used to initialize parent contracts.
*
* `initializer` is equivalent to `reinitializer(1)`, so a reinitializer may be used after the original
* initialization step. This is essential to configure modules that are added through upgrades and that require
* initialization.
*
* Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in
* a contract, executing them in the right order is up to the developer or operator.
*/
modifier reinitializer(uint8 version) {
require(!_initializing && _initialized < version, "Initializable: contract is already initialized");
_initialized = version;
_initializing = true;
_;
_initializing = false;
emit Initialized(version);
}
/**
* @dev Modifier to protect an initialization function so that it can only be invoked by functions with the
* {initializer} and {reinitializer} modifiers, directly or indirectly.
*/
modifier onlyInitializing() {
require(_initializing, "Initializable: contract is not initializing");
_;
}
/**
* @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call.
* Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized
* to any version. It is recommended to use this to lock implementation contracts that are designed to be called
* through proxies.
*/
function _disableInitializers() internal virtual {
require(!_initializing, "Initializable: contract is initializing");
if (_initialized < type(uint8).max) {
_initialized = type(uint8).max;
emit Initialized(type(uint8).max);
}
}
}// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.2.2
// Creator: Chiru Labs
pragma solidity ^0.8.4;
import './IERC721A.sol';
/**
* @dev Interface of ERC721AQueryable.
*/
interface IERC721AQueryable is IERC721A {
/**
* Invalid query range (`start` >= `stop`).
*/
error InvalidQueryRange();
/**
* @dev Returns the `TokenOwnership` struct at `tokenId` without reverting.
*
* If the `tokenId` is out of bounds:
*
* - `addr = address(0)`
* - `startTimestamp = 0`
* - `burned = false`
* - `extraData = 0`
*
* If the `tokenId` is burned:
*
* - `addr = <Address of owner before token was burned>`
* - `startTimestamp = <Timestamp when token was burned>`
* - `burned = true`
* - `extraData = <Extra data when token was burned>`
*
* Otherwise:
*
* - `addr = <Address of owner>`
* - `startTimestamp = <Timestamp of start of ownership>`
* - `burned = false`
* - `extraData = <Extra data at start of ownership>`
*/
function explicitOwnershipOf(uint256 tokenId) external view returns (TokenOwnership memory);
/**
* @dev Returns an array of `TokenOwnership` structs at `tokenIds` in order.
* See {ERC721AQueryable-explicitOwnershipOf}
*/
function explicitOwnershipsOf(uint256[] memory tokenIds) external view returns (TokenOwnership[] memory);
/**
* @dev Returns an array of token IDs owned by `owner`,
* in the range [`start`, `stop`)
* (i.e. `start <= tokenId < stop`).
*
* This function allows for tokens to be queried if the collection
* grows too big for a single call of {ERC721AQueryable-tokensOfOwner}.
*
* Requirements:
*
* - `start < stop`
*/
function tokensOfOwnerIn(
address owner,
uint256 start,
uint256 stop
) external view returns (uint256[] memory);
/**
* @dev Returns an array of token IDs owned by `owner`.
*
* This function scans the ownership mapping and is O(`totalSupply`) in complexity.
* It is meant to be called off-chain.
*
* See {ERC721AQueryable-tokensOfOwnerIn} for splitting the scan into
* multiple smaller scans if the collection is large enough to cause
* an out-of-gas error (10K collections should be fine).
*/
function tokensOfOwner(address owner) external view returns (uint256[] memory);
}// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.2.2
// Creator: Chiru Labs
pragma solidity ^0.8.4;
/**
* @dev Interface of ERC721A.
*/
interface IERC721A {
/**
* 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
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Address.sol)
pragma solidity ^0.8.1;
/**
* @dev Collection of functions related to the address type
*/
library AddressUpgradeable {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will return false for the following
* types of addresses:
*
* - an externally-owned account
* - a contract in construction
* - an address where a contract will be created
* - an address where a contract lived, but was destroyed
* ====
*
* [IMPORTANT]
* ====
* You shouldn't rely on `isContract` to protect against flash loan attacks!
*
* Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
* like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
* constructor.
* ====
*/
function isContract(address account) internal view returns (bool) {
// This method relies on extcodesize/address.code.length, which returns 0
// for contracts in construction, since the code is only stored at the end
// of the constructor execution.
return account.code.length > 0;
}
/**
* @dev Replacement for Solidity's `transfer`: sends `amount` wei to
* `recipient`, forwarding all available gas and reverting on errors.
*
* https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
* of certain opcodes, possibly making contracts go over the 2300 gas limit
* imposed by `transfer`, making them unable to receive funds via
* `transfer`. {sendValue} removes this limitation.
*
* https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
*
* IMPORTANT: because control is transferred to `recipient`, care must be
* taken to not create reentrancy vulnerabilities. Consider using
* {ReentrancyGuard} or the
* https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
*/
function sendValue(address payable recipient, uint256 amount) internal {
require(address(this).balance >= amount, "Address: insufficient balance");
(bool success, ) = recipient.call{value: amount}("");
require(success, "Address: unable to send value, recipient may have reverted");
}
/**
* @dev Performs a Solidity function call using a low level `call`. A
* plain `call` is an unsafe replacement for a function call: use this
* function instead.
*
* If `target` reverts with a revert reason, it is bubbled up by this
* function (like regular Solidity function calls).
*
* Returns the raw returned data. To convert to the expected return value,
* use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
*
* Requirements:
*
* - `target` must be a contract.
* - calling `target` with `data` must not revert.
*
* _Available since v3.1._
*/
function functionCall(address target, bytes memory data) internal returns (bytes memory) {
return functionCall(target, data, "Address: low-level call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
* `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
return functionCallWithValue(target, data, 0, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but also transferring `value` wei to `target`.
*
* Requirements:
*
* - the calling contract must have an ETH balance of at least `value`.
* - the called Solidity function must be `payable`.
*
* _Available since v3.1._
*/
function functionCallWithValue(
address target,
bytes memory data,
uint256 value
) internal returns (bytes memory) {
return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
}
/**
* @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
* with `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCallWithValue(
address target,
bytes memory data,
uint256 value,
string memory errorMessage
) internal returns (bytes memory) {
require(address(this).balance >= value, "Address: insufficient balance for call");
require(isContract(target), "Address: call to non-contract");
(bool success, bytes memory returndata) = target.call{value: value}(data);
return verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
return functionStaticCall(target, data, "Address: low-level static call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(
address target,
bytes memory data,
string memory errorMessage
) internal view returns (bytes memory) {
require(isContract(target), "Address: static call to non-contract");
(bool success, bytes memory returndata) = target.staticcall(data);
return verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
* revert reason using the provided one.
*
* _Available since v4.3._
*/
function verifyCallResult(
bool success,
bytes memory returndata,
string memory errorMessage
) internal pure returns (bytes memory) {
if (success) {
return returndata;
} else {
// Look for revert reason and bubble it up if present
if (returndata.length > 0) {
// The easiest way to bubble the revert reason is using memory via assembly
/// @solidity memory-safe-assembly
assembly {
let returndata_size := mload(returndata)
revert(add(32, returndata), returndata_size)
}
} else {
revert(errorMessage);
}
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)
pragma solidity ^0.8.0;
import "../proxy/utils/Initializable.sol";
/**
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since when dealing with meta-transactions the account sending and
* paying for execution may not be the actual sender (as far as an application
* is concerned).
*
* This contract is only required for intermediate, library-like contracts.
*/
abstract contract ContextUpgradeable is Initializable {
function __Context_init() internal onlyInitializing {
}
function __Context_init_unchained() internal onlyInitializing {
}
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
/**
* @dev This empty reserved space is put in place to allow future versions to add new
* variables without shifting down storage in the inheritance chain.
* See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
*/
uint256[50] private __gap;
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (interfaces/draft-IERC1822.sol)
pragma solidity ^0.8.0;
/**
* @dev ERC1822: Universal Upgradeable Proxy Standard (UUPS) documents a method for upgradeability through a simplified
* proxy whose upgrades are fully controlled by the current implementation.
*/
interface IERC1822ProxiableUpgradeable {
/**
* @dev Returns the storage slot that the proxiable contract assumes is being used to store the implementation
* address.
*
* IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks
* bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this
* function revert if invoked through a proxy.
*/
function proxiableUUID() external view returns (bytes32);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (proxy/ERC1967/ERC1967Upgrade.sol)
pragma solidity ^0.8.2;
import "../beacon/IBeaconUpgradeable.sol";
import "../../interfaces/draft-IERC1822Upgradeable.sol";
import "../../utils/AddressUpgradeable.sol";
import "../../utils/StorageSlotUpgradeable.sol";
import "../utils/Initializable.sol";
/**
* @dev This abstract contract provides getters and event emitting update functions for
* https://eips.ethereum.org/EIPS/eip-1967[EIP1967] slots.
*
* _Available since v4.1._
*
* @custom:oz-upgrades-unsafe-allow delegatecall
*/
abstract contract ERC1967UpgradeUpgradeable is Initializable {
function __ERC1967Upgrade_init() internal onlyInitializing {
}
function __ERC1967Upgrade_init_unchained() internal onlyInitializing {
}
// This is the keccak-256 hash of "eip1967.proxy.rollback" subtracted by 1
bytes32 private constant _ROLLBACK_SLOT = 0x4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd9143;
/**
* @dev Storage slot with the address of the current implementation.
* This is the keccak-256 hash of "eip1967.proxy.implementation" subtracted by 1, and is
* validated in the constructor.
*/
bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;
/**
* @dev Emitted when the implementation is upgraded.
*/
event Upgraded(address indexed implementation);
/**
* @dev Returns the current implementation address.
*/
function _getImplementation() internal view returns (address) {
return StorageSlotUpgradeable.getAddressSlot(_IMPLEMENTATION_SLOT).value;
}
/**
* @dev Stores a new address in the EIP1967 implementation slot.
*/
function _setImplementation(address newImplementation) private {
require(AddressUpgradeable.isContract(newImplementation), "ERC1967: new implementation is not a contract");
StorageSlotUpgradeable.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;
}
/**
* @dev Perform implementation upgrade
*
* Emits an {Upgraded} event.
*/
function _upgradeTo(address newImplementation) internal {
_setImplementation(newImplementation);
emit Upgraded(newImplementation);
}
/**
* @dev Perform implementation upgrade with additional setup call.
*
* Emits an {Upgraded} event.
*/
function _upgradeToAndCall(
address newImplementation,
bytes memory data,
bool forceCall
) internal {
_upgradeTo(newImplementation);
if (data.length > 0 || forceCall) {
_functionDelegateCall(newImplementation, data);
}
}
/**
* @dev Perform implementation upgrade with security checks for UUPS proxies, and additional setup call.
*
* Emits an {Upgraded} event.
*/
function _upgradeToAndCallUUPS(
address newImplementation,
bytes memory data,
bool forceCall
) internal {
// Upgrades from old implementations will perform a rollback test. This test requires the new
// implementation to upgrade back to the old, non-ERC1822 compliant, implementation. Removing
// this special case will break upgrade paths from old UUPS implementation to new ones.
if (StorageSlotUpgradeable.getBooleanSlot(_ROLLBACK_SLOT).value) {
_setImplementation(newImplementation);
} else {
try IERC1822ProxiableUpgradeable(newImplementation).proxiableUUID() returns (bytes32 slot) {
require(slot == _IMPLEMENTATION_SLOT, "ERC1967Upgrade: unsupported proxiableUUID");
} catch {
revert("ERC1967Upgrade: new implementation is not UUPS");
}
_upgradeToAndCall(newImplementation, data, forceCall);
}
}
/**
* @dev Storage slot with the admin of the contract.
* This is the keccak-256 hash of "eip1967.proxy.admin" subtracted by 1, and is
* validated in the constructor.
*/
bytes32 internal constant _ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103;
/**
* @dev Emitted when the admin account has changed.
*/
event AdminChanged(address previousAdmin, address newAdmin);
/**
* @dev Returns the current admin.
*/
function _getAdmin() internal view returns (address) {
return StorageSlotUpgradeable.getAddressSlot(_ADMIN_SLOT).value;
}
/**
* @dev Stores a new address in the EIP1967 admin slot.
*/
function _setAdmin(address newAdmin) private {
require(newAdmin != address(0), "ERC1967: new admin is the zero address");
StorageSlotUpgradeable.getAddressSlot(_ADMIN_SLOT).value = newAdmin;
}
/**
* @dev Changes the admin of the proxy.
*
* Emits an {AdminChanged} event.
*/
function _changeAdmin(address newAdmin) internal {
emit AdminChanged(_getAdmin(), newAdmin);
_setAdmin(newAdmin);
}
/**
* @dev The storage slot of the UpgradeableBeacon contract which defines the implementation for this proxy.
* This is bytes32(uint256(keccak256('eip1967.proxy.beacon')) - 1)) and is validated in the constructor.
*/
bytes32 internal constant _BEACON_SLOT = 0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50;
/**
* @dev Emitted when the beacon is upgraded.
*/
event BeaconUpgraded(address indexed beacon);
/**
* @dev Returns the current beacon.
*/
function _getBeacon() internal view returns (address) {
return StorageSlotUpgradeable.getAddressSlot(_BEACON_SLOT).value;
}
/**
* @dev Stores a new beacon in the EIP1967 beacon slot.
*/
function _setBeacon(address newBeacon) private {
require(AddressUpgradeable.isContract(newBeacon), "ERC1967: new beacon is not a contract");
require(
AddressUpgradeable.isContract(IBeaconUpgradeable(newBeacon).implementation()),
"ERC1967: beacon implementation is not a contract"
);
StorageSlotUpgradeable.getAddressSlot(_BEACON_SLOT).value = newBeacon;
}
/**
* @dev Perform beacon upgrade with additional setup call. Note: This upgrades the address of the beacon, it does
* not upgrade the implementation contained in the beacon (see {UpgradeableBeacon-_setImplementation} for that).
*
* Emits a {BeaconUpgraded} event.
*/
function _upgradeBeaconToAndCall(
address newBeacon,
bytes memory data,
bool forceCall
) internal {
_setBeacon(newBeacon);
emit BeaconUpgraded(newBeacon);
if (data.length > 0 || forceCall) {
_functionDelegateCall(IBeaconUpgradeable(newBeacon).implementation(), data);
}
}
/**
* @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) private returns (bytes memory) {
require(AddressUpgradeable.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 AddressUpgradeable.verifyCallResult(success, returndata, "Address: low-level delegate call failed");
}
/**
* @dev This empty reserved space is put in place to allow future versions to add new
* variables without shifting down storage in the inheritance chain.
* See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
*/
uint256[50] private __gap;
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (proxy/beacon/IBeacon.sol)
pragma solidity ^0.8.0;
/**
* @dev This is the interface that {BeaconProxy} expects of its beacon.
*/
interface IBeaconUpgradeable {
/**
* @dev Must return an address that can be used as a delegate call target.
*
* {BeaconProxy} will check that this address is a contract.
*/
function implementation() external view returns (address);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/StorageSlot.sol)
pragma solidity ^0.8.0;
/**
* @dev Library for reading and writing primitive types to specific storage slots.
*
* Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts.
* This library helps with reading and writing to such slots without the need for inline assembly.
*
* The functions in this library return Slot structs that contain a `value` member that can be used to read or write.
*
* Example usage to set ERC1967 implementation slot:
* ```
* contract ERC1967 {
* bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;
*
* function _getImplementation() internal view returns (address) {
* return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value;
* }
*
* function _setImplementation(address newImplementation) internal {
* require(Address.isContract(newImplementation), "ERC1967: new implementation is not a contract");
* StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;
* }
* }
* ```
*
* _Available since v4.1 for `address`, `bool`, `bytes32`, and `uint256`._
*/
library StorageSlotUpgradeable {
struct AddressSlot {
address value;
}
struct BooleanSlot {
bool value;
}
struct Bytes32Slot {
bytes32 value;
}
struct Uint256Slot {
uint256 value;
}
/**
* @dev Returns an `AddressSlot` with member `value` located at `slot`.
*/
function getAddressSlot(bytes32 slot) internal pure returns (AddressSlot storage r) {
/// @solidity memory-safe-assembly
assembly {
r.slot := slot
}
}
/**
* @dev Returns an `BooleanSlot` with member `value` located at `slot`.
*/
function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) {
/// @solidity memory-safe-assembly
assembly {
r.slot := slot
}
}
/**
* @dev Returns an `Bytes32Slot` with member `value` located at `slot`.
*/
function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) {
/// @solidity memory-safe-assembly
assembly {
r.slot := slot
}
}
/**
* @dev Returns an `Uint256Slot` with member `value` located at `slot`.
*/
function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) {
/// @solidity memory-safe-assembly
assembly {
r.slot := slot
}
}
}{
"optimizer": {
"enabled": true,
"runs": 1000
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
},
"libraries": {}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"previousAdmin","type":"address"},{"indexed":false,"internalType":"address","name":"newAdmin","type":"address"}],"name":"AdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_before","type":"address"},{"indexed":false,"internalType":"address","name":"_after","type":"address"}],"name":"AggregatorChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_before","type":"address"},{"indexed":false,"internalType":"address","name":"_after","type":"address"}],"name":"AuthorityChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"beacon","type":"address"}],"name":"BeaconUpgraded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_before","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_after","type":"uint256"}],"name":"ComissionChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_before","type":"address"},{"indexed":false,"internalType":"address","name":"_after","type":"address"}],"name":"DaoChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint8","name":"version","type":"uint8"}],"name":"Initialized","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_before","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_after","type":"uint256"}],"name":"PublicSettleLimitChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_owner","type":"address"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"RewardClaimed","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_blockNumber","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_settleRewards","type":"uint256"}],"name":"Settle","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_before","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_after","type":"uint256"}],"name":"TaxChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_to","type":"address"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"Transferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"implementation","type":"address"}],"name":"Upgraded","type":"event"},{"inputs":[],"name":"aggregator","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"authority","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claimDao","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"claimRewards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"comission","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"cumArr","outputs":[{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"uint256","name":"height","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"dao","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"daoRewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"nftContract_","type":"address"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"lastPublicSettle","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nftContract","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"proxiableUUID","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicSettle","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"publicSettleLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"rewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amt","type":"uint256"}],"name":"rewardsAndHeights","outputs":[{"components":[{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"uint256","name":"height","type":"uint256"}],"internalType":"struct INodeRewardVault.RewardMetadata[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardsHeight","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"aggregatorProxyAddress_","type":"address"}],"name":"setAggregator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"authority_","type":"address"}],"name":"setAuthority","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"comission_","type":"uint256"}],"name":"setComission","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"dao_","type":"address"}],"name":"setDao","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"publicSettleLimit_","type":"uint256"}],"name":"setPublicSettleLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tax_","type":"uint256"}],"name":"setTax","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"settle","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"tax","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unclaimedRewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"}],"name":"upgradeTo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"upgradeToAndCall","outputs":[],"stateMutability":"payable","type":"function"},{"stateMutability":"payable","type":"receive"}]Contract Creation Code
60a06040523060601b60805234801561001757600080fd5b5060805160601c6123d361005260003960008181610964015281816109e901528181610ae001528181610b650152610c4f01526123d36000f3fe6080604052600436106101dc5760003560e01c8063715018a611610102578063d1812a7b11610095578063f2fde38b11610064578063f2fde38b14610508578063f301af4214610528578063f85f91b414610548578063f9120af61461055e57600080fd5b8063d1812a7b146104aa578063d56d229d146104c0578063e88b7255146104de578063f1812cf1146104f357600080fd5b806399c8d556116100d157806399c8d55614610420578063bf7e214f14610436578063c4d66de814610455578063c9732b641461047557600080fd5b8063715018a6146103b65780637a9e5e4b146103cb5780637e9ca971146103eb5780638da5cb5b1461040257600080fd5b80633659cfe61161017a5780634f1ef286116101495780634f1ef2861461034157806352d1902d146103545780636637b882146103695780636f291ab31461038957600080fd5b80633659cfe6146102cc5780633a4b4532146102ec5780634162169f1461030c5780634a23c9321461032b57600080fd5b806311da60b4116101b657806311da60b41461023f578063245a7bfc146102545780632b2678a61461028c5780632e5bb6ff146102ac57600080fd5b80630962ef79146101e85780630be80f391461020a5780630dce7b1d1461022a57600080fd5b366101e357005b600080fd5b3480156101f457600080fd5b506102086102033660046121b1565b61057e565b005b34801561021657600080fd5b506102086102253660046121b1565b610749565b34801561023657600080fd5b506102086107e5565b34801561024b57600080fd5b5061020861080d565b34801561026057600080fd5b50610105546001600160a01b03165b6040516001600160a01b0390911681526020015b60405180910390f35b34801561029857600080fd5b506102086102a73660046121b1565b610872565b3480156102b857600080fd5b506102086102c73660046121b1565b6108bd565b3480156102d857600080fd5b506102086102e736600461209a565b610959565b3480156102f857600080fd5b50610101545b604051908152602001610283565b34801561031857600080fd5b50610103546001600160a01b031661026f565b34801561033757600080fd5b506102fe60ff5481565b61020861034f3660046120d4565b610ad5565b34801561036057600080fd5b506102fe610c42565b34801561037557600080fd5b5061020861038436600461209a565b610d07565b34801561039557600080fd5b506103a96103a43660046121b1565b610dd0565b60405161028391906121e6565b3480156103c257600080fd5b50610208610f4d565b3480156103d757600080fd5b506102086103e636600461209a565b610f5f565b3480156103f757600080fd5b506102fe6101005481565b34801561040e57600080fd5b506097546001600160a01b031661026f565b34801561042c57600080fd5b50610102546102fe565b34801561044257600080fd5b50610104546001600160a01b031661026f565b34801561046157600080fd5b5061020861047036600461209a565b611033565b34801561048157600080fd5b506104956104903660046121b1565b611267565b60408051928352602083019190915201610283565b3480156104b657600080fd5b506102fe60fe5481565b3480156104cc57600080fd5b5060fb546001600160a01b031661026f565b3480156104ea57600080fd5b506102fe611295565b3480156104ff57600080fd5b506102086112dc565b34801561051457600080fd5b5061020861052336600461209a565b61135a565b34801561053457600080fd5b506102fe6105433660046121b1565b6113e7565b34801561055457600080fd5b506102fe60fd5481565b34801561056a57600080fd5b5061020861057936600461209a565b6113f8565b600260c95414156105d65760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064015b60405180910390fd5b600260c955610105546001600160a01b031633146106365760405162461bcd60e51b815260206004820152601a60248201527f4e6f7420616c6c6f77656420746f20746f7563682066756e647300000000000060448201526064016105cd565b60fb546040517f6352211e000000000000000000000000000000000000000000000000000000008152600481018390526000916001600160a01b031690636352211e9060240160206040518083038186803b15801561069457600080fd5b505afa1580156106a8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106cc91906120b7565b905060006106d9836114e7565b90508060fd60008282546106ed91906122c1565b909155506106fd90508183611660565b604080516001600160a01b0384168152602081018390527f106f923f993c2149d49b4255ff723acafa1f2d94393f561d3eda32ae348f7241910160405180910390a15050600160c95550565b610751611737565b61271081106107a25760405162461bcd60e51b815260206004820152601860248201527f436f6d697373696f6e2063616e6e6f742062652031303025000000000000000060448201526064016105cd565b6101015460408051918252602082018390527fe25f00b56947634a279477b31bb113c7778d347a730a88c67c4bc93e532b568d910160405180910390a161010155565b436101005460ff546107f79190612268565b11156107ff57565b610807611791565b4360ff55565b610105546001600160a01b031633146108685760405162461bcd60e51b815260206004820152601a60248201527f4e6f7420616c6c6f77656420746f20746f7563682066756e647300000000000060448201526064016105cd565b610870611791565b565b61087a611737565b6101005460408051918252602082018390527f314193b17d88a6f219e77980338c7f0197094f1e6d5c5cd99a33381aa275c10f910160405180910390a161010055565b6108c5611737565b61271081106109165760405162461bcd60e51b815260206004820152601260248201527f5461782063616e6e6f742062652031303025000000000000000000000000000060448201526064016105cd565b6101025460408051918252602082018390527f4ac0d6b0d694ec6c120242feaca94cfb6fbfe646756cd7026301e3a5984f0450910160405180910390a161010255565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614156109e75760405162461bcd60e51b815260206004820152602c60248201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060448201526b19195b1959d85d1958d85b1b60a21b60648201526084016105cd565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316610a427f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc546001600160a01b031690565b6001600160a01b031614610aad5760405162461bcd60e51b815260206004820152602c60248201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060448201526b6163746976652070726f787960a01b60648201526084016105cd565b610ab6816119ef565b60408051600080825260208201909252610ad2918391906119f7565b50565b306001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161415610b635760405162461bcd60e51b815260206004820152602c60248201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060448201526b19195b1959d85d1958d85b1b60a21b60648201526084016105cd565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316610bbe7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc546001600160a01b031690565b6001600160a01b031614610c295760405162461bcd60e51b815260206004820152602c60248201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060448201526b6163746976652070726f787960a01b60648201526084016105cd565b610c32826119ef565b610c3e828260016119f7565b5050565b6000306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610ce25760405162461bcd60e51b815260206004820152603860248201527f555550535570677261646561626c653a206d757374206e6f742062652063616c60448201527f6c6564207468726f7567682064656c656761746563616c6c000000000000000060648201526084016105cd565b507f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc90565b610d0f611737565b6001600160a01b038116610d655760405162461bcd60e51b815260206004820152601c60248201527f44414f20616464726573732070726f766964656420696e76616c69640000000060448201526064016105cd565b61010354604080516001600160a01b03928316815291831660208301527ffcde6c827a52b0870bc44ed9b10212272e18c9ea1725b772e9b493750afd8da4910160405180910390a161010380546001600160a01b0319166001600160a01b0392909216919091179055565b60fc546060908210610e4f5760fc805480602002602001604051908101604052809291908181526020016000905b82821015610e4457838290600052602060002090600202016040518060400160405290816000820154815260200160018201548152505081526020019060010190610dfe565b505050509050919050565b60008267ffffffffffffffff811115610e6a57610e6a61234b565b604051908082528060200260200182016040528015610eaf57816020015b6040805180820190915260008082526020820152815260200190600190039081610e885790505b50905060005b83811015610f465760fc80548290610ecf906001906122c1565b610ed991906122c1565b81548110610ee957610ee9612335565b906000526020600020906002020160405180604001604052908160008201548152602001600182015481525050828281518110610f2857610f28612335565b60200260200101819052508080610f3e90612304565b915050610eb5565b5092915050565b610f55611737565b6108706000611bab565b610f67611737565b6001600160a01b038116610fc85760405162461bcd60e51b815260206004820152602260248201527f417574686f7269747920616464726573732070726f766964656420696e76616c6044820152611a5960f21b60648201526084016105cd565b61010454604080516001600160a01b03928316815291831660208301527f275720694d99bebae3e30a093350471a8a15db9c771974d841c724b07a55f392910160405180910390a161010480546001600160a01b0319166001600160a01b0392909216919091179055565b600054610100900460ff16158080156110535750600054600160ff909116105b8061106d5750303b15801561106d575060005460ff166001145b6110df5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a656400000000000000000000000000000000000060648201526084016105cd565b6000805460ff191660011790558015611102576000805461ff0019166101001790555b61110a611bfd565b611112611c70565b61111a611cdb565b60fb80546001600160a01b0384166001600160a01b0319918216179091556101058054821660019081179091556101038054831673ee09c9a517ece6bedd2ebc766938e39367f377531790556101048054909216732c21721627aad3f43606836fec22142c5e1edee2179091556103e8610101556000610102819055604080518082019091528181526020810182815260fc80549485018155835290516002939093027f371f36870d18f32a11fea0f144b021c8b407bb50f8e0267c711123f454b963c0810193909355517f371f36870d18f32a11fea0f144b021c8b407bb50f8e0267c711123f454b963c19092019190915560fd81905560ff5562034bc0610100558015610c3e576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498906020015b60405180910390a15050565b60fc818154811061127757600080fd5b60009182526020909120600290910201805460019091015490915082565b60fc8054600091906112a9906001906122c1565b815481106112b9576112b9612335565b90600052602060002090600202016001015460016112d79190612268565b905090565b600260c954141561132f5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016105cd565b600260c95560fe546101035461134e91906001600160a01b0316611660565b600060fe55600160c955565b611362611737565b6001600160a01b0381166113de5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016105cd565b610ad281611bab565b60006113f2826114e7565b92915050565b611400611737565b6001600160a01b03811661147c5760405162461bcd60e51b815260206004820152602360248201527f41676772656761746f7220616464726573732070726f766964656420696e766160448201527f6c6964000000000000000000000000000000000000000000000000000000000060648201526084016105cd565b61010554604080516001600160a01b03928316815291831660208301527f130d4e632a6163e8dab92a952e84f85d90e06c320d7c56e3b942f6fc02b65558910160405180910390a161010580546001600160a01b0319166001600160a01b0392909216919091179055565b60fb546040517f19ab5df50000000000000000000000000000000000000000000000000000000081526004810183905260009182916001600160a01b03909116906319ab5df59060240160206040518083038186803b15801561154957600080fd5b505afa15801561155d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115819190612198565b60fc549091506000905b808210156115ed57600060016115a18385612268565b901c90508360fc82815481106115b9576115b9612335565b90600052602060002090600202016001015411156115d9578091506115e7565b6115e4816001612268565b92505b5061158b565b60fc6115fa6001846122c1565b8154811061160a5761160a612335565b600091825260209091206002909102015460fc805461162b906001906122c1565b8154811061163b5761163b612335565b90600052602060002090600202016000015461165791906122c1565b95945050505050565b6001600160a01b0381166116c15760405162461bcd60e51b815260206004820152602260248201527f526563697069656e7420616464726573732070726f766964656420696e76616c6044820152611a5960f21b60648201526084016105cd565b6040516001600160a01b0382169083156108fc029084906000818181858888f193505050501580156116f7573d6000803e3d6000fd5b50604080516001600160a01b0383168152602081018490527fe6d858f14d755446648a6e0c8ab8b5a0f58ccc7920d4c910b0454e4dcd869af0910161125b565b6097546001600160a01b031633146108705760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016105cd565b600060fe5460fd54476117a491906122c1565b6117ae91906122c1565b90508015806117ef575060fc80544391906117cb906001906122c1565b815481106117db576117db612335565b906000526020600020906002020160010154145b156117f75750565b6000612710610101548361180b91906122a2565b6118159190612280565b90508060fe60008282546118299190612268565b90915550611839905081836122c1565b91508160fd600082825461184d9190612268565b909155505060fb54604080517f18160ddd00000000000000000000000000000000000000000000000000000000815290516000926001600160a01b0316916318160ddd916004808301926020929190829003018186803b1580156118b057600080fd5b505afa1580156118c4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118e89190612198565b6118f29084612280565b905060008160fc600160fc8054905061190b91906122c1565b8154811061191b5761191b612335565b9060005260206000209060020201600001546119379190612268565b60408051808201825282815243602080830182815260fc805460018101825560009190915284517f371f36870d18f32a11fea0f144b021c8b407bb50f8e0267c711123f454b963c060029092029182015590517f371f36870d18f32a11fea0f144b021c8b407bb50f8e0267c711123f454b963c19091015583519182528101869052929350917f88a84ea6dd274b386afd27dbbe11b6192b25017f5e60bb8c4053dfddb45c294d910160405180910390a15050505050565b610ad2611737565b7f4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd91435460ff1615611a2f57611a2a83611d4e565b505050565b826001600160a01b03166352d1902d6040518163ffffffff1660e01b815260040160206040518083038186803b158015611a6857600080fd5b505afa925050508015611a98575060408051601f3d908101601f19168201909252611a9591810190612198565b60015b611b0a5760405162461bcd60e51b815260206004820152602e60248201527f45524331393637557067726164653a206e657720696d706c656d656e7461746960448201527f6f6e206973206e6f74205555505300000000000000000000000000000000000060648201526084016105cd565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc8114611b9f5760405162461bcd60e51b815260206004820152602960248201527f45524331393637557067726164653a20756e737570706f727465642070726f7860448201527f6961626c6555554944000000000000000000000000000000000000000000000060648201526084016105cd565b50611a2a838383611e0c565b609780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600054610100900460ff16611c685760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b60648201526084016105cd565b610870611e37565b600054610100900460ff166108705760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b60648201526084016105cd565b600054610100900460ff16611d465760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b60648201526084016105cd565b610870611eab565b6001600160a01b0381163b611dcb5760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201527f6f74206120636f6e74726163740000000000000000000000000000000000000060648201526084016105cd565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc80546001600160a01b0319166001600160a01b0392909216919091179055565b611e1583611f1d565b600082511180611e225750805b15611a2a57611e318383611f5d565b50505050565b600054610100900460ff16611ea25760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b60648201526084016105cd565b61087033611bab565b600054610100900460ff16611f165760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b60648201526084016105cd565b600160c955565b611f2681611d4e565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b60606001600160a01b0383163b611fdc5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f60448201527f6e7472616374000000000000000000000000000000000000000000000000000060648201526084016105cd565b600080846001600160a01b031684604051611ff791906121ca565b600060405180830381855af49150503d8060008114612032576040519150601f19603f3d011682016040523d82523d6000602084013e612037565b606091505b509150915061165782826040518060600160405280602781526020016123776027913960608315612069575081612093565b8251156120795782518084602001fd5b8160405162461bcd60e51b81526004016105cd9190612235565b9392505050565b6000602082840312156120ac57600080fd5b813561209381612361565b6000602082840312156120c957600080fd5b815161209381612361565b600080604083850312156120e757600080fd5b82356120f281612361565b9150602083013567ffffffffffffffff8082111561210f57600080fd5b818501915085601f83011261212357600080fd5b8135818111156121355761213561234b565b604051601f8201601f19908116603f0116810190838211818310171561215d5761215d61234b565b8160405282815288602084870101111561217657600080fd5b8260208601602083013760006020848301015280955050505050509250929050565b6000602082840312156121aa57600080fd5b5051919050565b6000602082840312156121c357600080fd5b5035919050565b600082516121dc8184602087016122d8565b9190910192915050565b602080825282518282018190526000919060409081850190868401855b8281101561222857815180518552860151868501529284019290850190600101612203565b5091979650505050505050565b60208152600082518060208401526122548160408501602087016122d8565b601f01601f19169190910160400192915050565b6000821982111561227b5761227b61231f565b500190565b60008261229d57634e487b7160e01b600052601260045260246000fd5b500490565b60008160001904831182151516156122bc576122bc61231f565b500290565b6000828210156122d3576122d361231f565b500390565b60005b838110156122f35781810151838201526020016122db565b83811115611e315750506000910152565b60006000198214156123185761231861231f565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114610ad257600080fdfe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a264697066735822122018de8e3b136536613165f1a053e86cb9602786f7c3458af9a1b04334a4feffe064736f6c63430008070033
Deployed Bytecode
0x6080604052600436106101dc5760003560e01c8063715018a611610102578063d1812a7b11610095578063f2fde38b11610064578063f2fde38b14610508578063f301af4214610528578063f85f91b414610548578063f9120af61461055e57600080fd5b8063d1812a7b146104aa578063d56d229d146104c0578063e88b7255146104de578063f1812cf1146104f357600080fd5b806399c8d556116100d157806399c8d55614610420578063bf7e214f14610436578063c4d66de814610455578063c9732b641461047557600080fd5b8063715018a6146103b65780637a9e5e4b146103cb5780637e9ca971146103eb5780638da5cb5b1461040257600080fd5b80633659cfe61161017a5780634f1ef286116101495780634f1ef2861461034157806352d1902d146103545780636637b882146103695780636f291ab31461038957600080fd5b80633659cfe6146102cc5780633a4b4532146102ec5780634162169f1461030c5780634a23c9321461032b57600080fd5b806311da60b4116101b657806311da60b41461023f578063245a7bfc146102545780632b2678a61461028c5780632e5bb6ff146102ac57600080fd5b80630962ef79146101e85780630be80f391461020a5780630dce7b1d1461022a57600080fd5b366101e357005b600080fd5b3480156101f457600080fd5b506102086102033660046121b1565b61057e565b005b34801561021657600080fd5b506102086102253660046121b1565b610749565b34801561023657600080fd5b506102086107e5565b34801561024b57600080fd5b5061020861080d565b34801561026057600080fd5b50610105546001600160a01b03165b6040516001600160a01b0390911681526020015b60405180910390f35b34801561029857600080fd5b506102086102a73660046121b1565b610872565b3480156102b857600080fd5b506102086102c73660046121b1565b6108bd565b3480156102d857600080fd5b506102086102e736600461209a565b610959565b3480156102f857600080fd5b50610101545b604051908152602001610283565b34801561031857600080fd5b50610103546001600160a01b031661026f565b34801561033757600080fd5b506102fe60ff5481565b61020861034f3660046120d4565b610ad5565b34801561036057600080fd5b506102fe610c42565b34801561037557600080fd5b5061020861038436600461209a565b610d07565b34801561039557600080fd5b506103a96103a43660046121b1565b610dd0565b60405161028391906121e6565b3480156103c257600080fd5b50610208610f4d565b3480156103d757600080fd5b506102086103e636600461209a565b610f5f565b3480156103f757600080fd5b506102fe6101005481565b34801561040e57600080fd5b506097546001600160a01b031661026f565b34801561042c57600080fd5b50610102546102fe565b34801561044257600080fd5b50610104546001600160a01b031661026f565b34801561046157600080fd5b5061020861047036600461209a565b611033565b34801561048157600080fd5b506104956104903660046121b1565b611267565b60408051928352602083019190915201610283565b3480156104b657600080fd5b506102fe60fe5481565b3480156104cc57600080fd5b5060fb546001600160a01b031661026f565b3480156104ea57600080fd5b506102fe611295565b3480156104ff57600080fd5b506102086112dc565b34801561051457600080fd5b5061020861052336600461209a565b61135a565b34801561053457600080fd5b506102fe6105433660046121b1565b6113e7565b34801561055457600080fd5b506102fe60fd5481565b34801561056a57600080fd5b5061020861057936600461209a565b6113f8565b600260c95414156105d65760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064015b60405180910390fd5b600260c955610105546001600160a01b031633146106365760405162461bcd60e51b815260206004820152601a60248201527f4e6f7420616c6c6f77656420746f20746f7563682066756e647300000000000060448201526064016105cd565b60fb546040517f6352211e000000000000000000000000000000000000000000000000000000008152600481018390526000916001600160a01b031690636352211e9060240160206040518083038186803b15801561069457600080fd5b505afa1580156106a8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106cc91906120b7565b905060006106d9836114e7565b90508060fd60008282546106ed91906122c1565b909155506106fd90508183611660565b604080516001600160a01b0384168152602081018390527f106f923f993c2149d49b4255ff723acafa1f2d94393f561d3eda32ae348f7241910160405180910390a15050600160c95550565b610751611737565b61271081106107a25760405162461bcd60e51b815260206004820152601860248201527f436f6d697373696f6e2063616e6e6f742062652031303025000000000000000060448201526064016105cd565b6101015460408051918252602082018390527fe25f00b56947634a279477b31bb113c7778d347a730a88c67c4bc93e532b568d910160405180910390a161010155565b436101005460ff546107f79190612268565b11156107ff57565b610807611791565b4360ff55565b610105546001600160a01b031633146108685760405162461bcd60e51b815260206004820152601a60248201527f4e6f7420616c6c6f77656420746f20746f7563682066756e647300000000000060448201526064016105cd565b610870611791565b565b61087a611737565b6101005460408051918252602082018390527f314193b17d88a6f219e77980338c7f0197094f1e6d5c5cd99a33381aa275c10f910160405180910390a161010055565b6108c5611737565b61271081106109165760405162461bcd60e51b815260206004820152601260248201527f5461782063616e6e6f742062652031303025000000000000000000000000000060448201526064016105cd565b6101025460408051918252602082018390527f4ac0d6b0d694ec6c120242feaca94cfb6fbfe646756cd7026301e3a5984f0450910160405180910390a161010255565b306001600160a01b037f0000000000000000000000004d03b2a09f754ae64160874a2d69081313478ba61614156109e75760405162461bcd60e51b815260206004820152602c60248201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060448201526b19195b1959d85d1958d85b1b60a21b60648201526084016105cd565b7f0000000000000000000000004d03b2a09f754ae64160874a2d69081313478ba66001600160a01b0316610a427f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc546001600160a01b031690565b6001600160a01b031614610aad5760405162461bcd60e51b815260206004820152602c60248201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060448201526b6163746976652070726f787960a01b60648201526084016105cd565b610ab6816119ef565b60408051600080825260208201909252610ad2918391906119f7565b50565b306001600160a01b037f0000000000000000000000004d03b2a09f754ae64160874a2d69081313478ba6161415610b635760405162461bcd60e51b815260206004820152602c60248201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060448201526b19195b1959d85d1958d85b1b60a21b60648201526084016105cd565b7f0000000000000000000000004d03b2a09f754ae64160874a2d69081313478ba66001600160a01b0316610bbe7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc546001600160a01b031690565b6001600160a01b031614610c295760405162461bcd60e51b815260206004820152602c60248201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060448201526b6163746976652070726f787960a01b60648201526084016105cd565b610c32826119ef565b610c3e828260016119f7565b5050565b6000306001600160a01b037f0000000000000000000000004d03b2a09f754ae64160874a2d69081313478ba61614610ce25760405162461bcd60e51b815260206004820152603860248201527f555550535570677261646561626c653a206d757374206e6f742062652063616c60448201527f6c6564207468726f7567682064656c656761746563616c6c000000000000000060648201526084016105cd565b507f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc90565b610d0f611737565b6001600160a01b038116610d655760405162461bcd60e51b815260206004820152601c60248201527f44414f20616464726573732070726f766964656420696e76616c69640000000060448201526064016105cd565b61010354604080516001600160a01b03928316815291831660208301527ffcde6c827a52b0870bc44ed9b10212272e18c9ea1725b772e9b493750afd8da4910160405180910390a161010380546001600160a01b0319166001600160a01b0392909216919091179055565b60fc546060908210610e4f5760fc805480602002602001604051908101604052809291908181526020016000905b82821015610e4457838290600052602060002090600202016040518060400160405290816000820154815260200160018201548152505081526020019060010190610dfe565b505050509050919050565b60008267ffffffffffffffff811115610e6a57610e6a61234b565b604051908082528060200260200182016040528015610eaf57816020015b6040805180820190915260008082526020820152815260200190600190039081610e885790505b50905060005b83811015610f465760fc80548290610ecf906001906122c1565b610ed991906122c1565b81548110610ee957610ee9612335565b906000526020600020906002020160405180604001604052908160008201548152602001600182015481525050828281518110610f2857610f28612335565b60200260200101819052508080610f3e90612304565b915050610eb5565b5092915050565b610f55611737565b6108706000611bab565b610f67611737565b6001600160a01b038116610fc85760405162461bcd60e51b815260206004820152602260248201527f417574686f7269747920616464726573732070726f766964656420696e76616c6044820152611a5960f21b60648201526084016105cd565b61010454604080516001600160a01b03928316815291831660208301527f275720694d99bebae3e30a093350471a8a15db9c771974d841c724b07a55f392910160405180910390a161010480546001600160a01b0319166001600160a01b0392909216919091179055565b600054610100900460ff16158080156110535750600054600160ff909116105b8061106d5750303b15801561106d575060005460ff166001145b6110df5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a656400000000000000000000000000000000000060648201526084016105cd565b6000805460ff191660011790558015611102576000805461ff0019166101001790555b61110a611bfd565b611112611c70565b61111a611cdb565b60fb80546001600160a01b0384166001600160a01b0319918216179091556101058054821660019081179091556101038054831673ee09c9a517ece6bedd2ebc766938e39367f377531790556101048054909216732c21721627aad3f43606836fec22142c5e1edee2179091556103e8610101556000610102819055604080518082019091528181526020810182815260fc80549485018155835290516002939093027f371f36870d18f32a11fea0f144b021c8b407bb50f8e0267c711123f454b963c0810193909355517f371f36870d18f32a11fea0f144b021c8b407bb50f8e0267c711123f454b963c19092019190915560fd81905560ff5562034bc0610100558015610c3e576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498906020015b60405180910390a15050565b60fc818154811061127757600080fd5b60009182526020909120600290910201805460019091015490915082565b60fc8054600091906112a9906001906122c1565b815481106112b9576112b9612335565b90600052602060002090600202016001015460016112d79190612268565b905090565b600260c954141561132f5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016105cd565b600260c95560fe546101035461134e91906001600160a01b0316611660565b600060fe55600160c955565b611362611737565b6001600160a01b0381166113de5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016105cd565b610ad281611bab565b60006113f2826114e7565b92915050565b611400611737565b6001600160a01b03811661147c5760405162461bcd60e51b815260206004820152602360248201527f41676772656761746f7220616464726573732070726f766964656420696e766160448201527f6c6964000000000000000000000000000000000000000000000000000000000060648201526084016105cd565b61010554604080516001600160a01b03928316815291831660208301527f130d4e632a6163e8dab92a952e84f85d90e06c320d7c56e3b942f6fc02b65558910160405180910390a161010580546001600160a01b0319166001600160a01b0392909216919091179055565b60fb546040517f19ab5df50000000000000000000000000000000000000000000000000000000081526004810183905260009182916001600160a01b03909116906319ab5df59060240160206040518083038186803b15801561154957600080fd5b505afa15801561155d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115819190612198565b60fc549091506000905b808210156115ed57600060016115a18385612268565b901c90508360fc82815481106115b9576115b9612335565b90600052602060002090600202016001015411156115d9578091506115e7565b6115e4816001612268565b92505b5061158b565b60fc6115fa6001846122c1565b8154811061160a5761160a612335565b600091825260209091206002909102015460fc805461162b906001906122c1565b8154811061163b5761163b612335565b90600052602060002090600202016000015461165791906122c1565b95945050505050565b6001600160a01b0381166116c15760405162461bcd60e51b815260206004820152602260248201527f526563697069656e7420616464726573732070726f766964656420696e76616c6044820152611a5960f21b60648201526084016105cd565b6040516001600160a01b0382169083156108fc029084906000818181858888f193505050501580156116f7573d6000803e3d6000fd5b50604080516001600160a01b0383168152602081018490527fe6d858f14d755446648a6e0c8ab8b5a0f58ccc7920d4c910b0454e4dcd869af0910161125b565b6097546001600160a01b031633146108705760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016105cd565b600060fe5460fd54476117a491906122c1565b6117ae91906122c1565b90508015806117ef575060fc80544391906117cb906001906122c1565b815481106117db576117db612335565b906000526020600020906002020160010154145b156117f75750565b6000612710610101548361180b91906122a2565b6118159190612280565b90508060fe60008282546118299190612268565b90915550611839905081836122c1565b91508160fd600082825461184d9190612268565b909155505060fb54604080517f18160ddd00000000000000000000000000000000000000000000000000000000815290516000926001600160a01b0316916318160ddd916004808301926020929190829003018186803b1580156118b057600080fd5b505afa1580156118c4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118e89190612198565b6118f29084612280565b905060008160fc600160fc8054905061190b91906122c1565b8154811061191b5761191b612335565b9060005260206000209060020201600001546119379190612268565b60408051808201825282815243602080830182815260fc805460018101825560009190915284517f371f36870d18f32a11fea0f144b021c8b407bb50f8e0267c711123f454b963c060029092029182015590517f371f36870d18f32a11fea0f144b021c8b407bb50f8e0267c711123f454b963c19091015583519182528101869052929350917f88a84ea6dd274b386afd27dbbe11b6192b25017f5e60bb8c4053dfddb45c294d910160405180910390a15050505050565b610ad2611737565b7f4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd91435460ff1615611a2f57611a2a83611d4e565b505050565b826001600160a01b03166352d1902d6040518163ffffffff1660e01b815260040160206040518083038186803b158015611a6857600080fd5b505afa925050508015611a98575060408051601f3d908101601f19168201909252611a9591810190612198565b60015b611b0a5760405162461bcd60e51b815260206004820152602e60248201527f45524331393637557067726164653a206e657720696d706c656d656e7461746960448201527f6f6e206973206e6f74205555505300000000000000000000000000000000000060648201526084016105cd565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc8114611b9f5760405162461bcd60e51b815260206004820152602960248201527f45524331393637557067726164653a20756e737570706f727465642070726f7860448201527f6961626c6555554944000000000000000000000000000000000000000000000060648201526084016105cd565b50611a2a838383611e0c565b609780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600054610100900460ff16611c685760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b60648201526084016105cd565b610870611e37565b600054610100900460ff166108705760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b60648201526084016105cd565b600054610100900460ff16611d465760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b60648201526084016105cd565b610870611eab565b6001600160a01b0381163b611dcb5760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201527f6f74206120636f6e74726163740000000000000000000000000000000000000060648201526084016105cd565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc80546001600160a01b0319166001600160a01b0392909216919091179055565b611e1583611f1d565b600082511180611e225750805b15611a2a57611e318383611f5d565b50505050565b600054610100900460ff16611ea25760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b60648201526084016105cd565b61087033611bab565b600054610100900460ff16611f165760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b60648201526084016105cd565b600160c955565b611f2681611d4e565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b60606001600160a01b0383163b611fdc5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f60448201527f6e7472616374000000000000000000000000000000000000000000000000000060648201526084016105cd565b600080846001600160a01b031684604051611ff791906121ca565b600060405180830381855af49150503d8060008114612032576040519150601f19603f3d011682016040523d82523d6000602084013e612037565b606091505b509150915061165782826040518060600160405280602781526020016123776027913960608315612069575081612093565b8251156120795782518084602001fd5b8160405162461bcd60e51b81526004016105cd9190612235565b9392505050565b6000602082840312156120ac57600080fd5b813561209381612361565b6000602082840312156120c957600080fd5b815161209381612361565b600080604083850312156120e757600080fd5b82356120f281612361565b9150602083013567ffffffffffffffff8082111561210f57600080fd5b818501915085601f83011261212357600080fd5b8135818111156121355761213561234b565b604051601f8201601f19908116603f0116810190838211818310171561215d5761215d61234b565b8160405282815288602084870101111561217657600080fd5b8260208601602083013760006020848301015280955050505050509250929050565b6000602082840312156121aa57600080fd5b5051919050565b6000602082840312156121c357600080fd5b5035919050565b600082516121dc8184602087016122d8565b9190910192915050565b602080825282518282018190526000919060409081850190868401855b8281101561222857815180518552860151868501529284019290850190600101612203565b5091979650505050505050565b60208152600082518060208401526122548160408501602087016122d8565b601f01601f19169190910160400192915050565b6000821982111561227b5761227b61231f565b500190565b60008261229d57634e487b7160e01b600052601260045260246000fd5b500490565b60008160001904831182151516156122bc576122bc61231f565b500290565b6000828210156122d3576122d361231f565b500390565b60005b838110156122f35781810151838201526020016122db565b83811115611e315750506000910152565b60006000198214156123185761231861231f565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114610ad257600080fdfe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a264697066735822122018de8e3b136536613165f1a053e86cb9602786f7c3458af9a1b04334a4feffe064736f6c63430008070033
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in ETH
0
Multichain Portfolio | 33 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
Loading...
Loading
Loading...
Loading
Loading...
Loading
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.