Feature Tip: Add private address tag to any address under My Name Tag !
Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
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 Source Code Verified (Exact Match)
Contract Name:
AggregatorV2
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)
pragma solidity ^0.8.7; import "./Aggregator.sol"; import "./interfaces/INodeCapitalVault.sol"; import "./interfaces/IERC721AQueryable.sol"; contract AggregatorV2 is Aggregator { address public dao; INodeCapitalVault public nodeCapitalVault; uint256 public totalUnwithdrawAmounts; mapping(uint256=>uint256) public withdrawAmounts; mapping(uint256 => bool) public isReport; uint256 public constant daoClCommissionRate = 1000; uint256 public daoRewards; bool public allowClaim; uint256 public constant MIN_REPORT_AMOUNT = 32 ether; uint256 public constant MAX_REPORT_AMOUNT = 33 ether; event DaoChanged(address _before, address _after); event NodeCapitalVaultChanged(address _before, address _after); event TotalUnwithdrawAmountsChanged(uint256 _before, uint256 _after); event ExitStatusReported(uint256[] tokenIds, uint256[] amounts); event ExitStatusReset(uint256[] tokenIds, uint256[] amounts); event ETHClaim(address owner, uint256 amount); event CanClaim(); event DaoRewardsClaim(address to, uint256 amount); modifier onlyAllowClaim() { require(allowClaim, "Claim not turned on"); _; } function startClaim() public onlyDao{ allowClaim = true; emit CanClaim(); } modifier onlyDao() { require(dao == msg.sender, "Insufficient permissions"); _; } function initializeV2(address dao_, address nodeCapitalVault_) public reinitializer(3) onlyOwner { _setDao(dao_); _setNodeCapitalVaultContract(nodeCapitalVault_); } function setDao(address dao_) external onlyOwner { _setDao(dao_); } function _setDao(address dao_) internal { require(dao_ != address(0), "DAO address provided invalid"); emit DaoChanged(dao, dao_); dao = dao_; } function setNodeCapitalVaultContract(address nodeCapitalVault_) external onlyDao { _setNodeCapitalVaultContract(nodeCapitalVault_); } function _setNodeCapitalVaultContract(address nodeCapitalVault_) internal { require(nodeCapitalVault_ != address(0), "nodeCapitalVault_ address provided invalid"); emit NodeCapitalVaultChanged(address(nodeCapitalVault), nodeCapitalVault_); nodeCapitalVault = INodeCapitalVault(nodeCapitalVault_); } function resetExitStatus(uint256[] calldata tokenIds, uint256[] calldata amounts) public onlyDao { require(tokenIds.length == amounts.length, "parameter error"); uint256 totalReportAmounts = 0; uint256 totalBeforeReportAmounts = 0; for (uint256 i = 0; i < tokenIds.length; ++i) { uint256 tokenId = tokenIds[i]; require(isReport[tokenId], "tokenId not reported"); uint256 beforeAmount = withdrawAmounts[tokenId]; require(beforeAmount != 0, "tokenId may claimed"); totalBeforeReportAmounts += beforeAmount; uint256 _amount = amounts[i]; require(_amount >= MIN_REPORT_AMOUNT && _amount <= MAX_REPORT_AMOUNT, "wrong reported amount"); withdrawAmounts[tokenId] = _amount; totalReportAmounts += _amount; } totalUnwithdrawAmounts -= totalBeforeReportAmounts; require((totalReportAmounts + totalUnwithdrawAmounts) <= address(nodeCapitalVault).balance, "amounts check failed"); totalUnwithdrawAmounts += totalReportAmounts; emit ExitStatusReset(tokenIds, amounts); } // Check if the tokenid has been reported // Check if tokenid exists // Check if the vault contract balance is equal to unclaimed + amounts // Report is successful, update isReport to true; update withdrawAmounts; add totalUnwithdrawAmounts function reportExitStatus(uint256[] calldata tokenIds, uint256[] calldata amounts) public onlyDao { require(tokenIds.length == amounts.length, "parameter error"); uint256 totalReportAmounts = 0; for (uint256 i = 0; i < tokenIds.length; ++i) { uint256 tokenId = tokenIds[i]; require(!isReport[tokenId], "tokenId already reported"); // tokenid is exist nftContract.gasHeightOf(tokenId); uint256 _amount = amounts[i]; require(_amount >= MIN_REPORT_AMOUNT && _amount <= MAX_REPORT_AMOUNT, "wrong reported amount"); withdrawAmounts[tokenId] = _amount; totalReportAmounts += _amount; isReport[tokenId] = true; } require((totalReportAmounts + totalUnwithdrawAmounts) <= address(nodeCapitalVault).balance, "amounts check failed"); totalUnwithdrawAmounts += totalReportAmounts; emit ExitStatusReported(tokenIds, amounts); } // Check if the tokenid has been reported // Get the owner of the tokenid // Update withdrawAmounts to 0; decrease totalUnwithdrawAmounts // Receive executive layer rewards // Burn vNFT // Receive consensus layer funds function claimETH(uint256 claimNumber) public onlyAllowClaim { address nftOwner = msg.sender; uint256[] memory tokenIds = getCanClaimOfOwner(nftOwner); require(tokenIds.length != 0, "no tokenId can be claimed"); uint256 totalClaimAmounts = 0; uint256 claimAmount = 0; uint256 daoAmount = 0; vault.settle(); for (uint256 i = 0; i < tokenIds.length; ++i) { if (i >= claimNumber) { break; } uint256 tokenId = tokenIds[i]; require(isReport[tokenId], "tokenId not reported"); uint256 amount = withdrawAmounts[tokenId]; require(amount != 0, "tokenId already claim"); (daoAmount, claimAmount) = _canWithdrawAmount(tokenId); withdrawAmounts[tokenId] = 0; daoRewards += daoAmount; totalClaimAmounts += claimAmount; rewardRoute(tokenId); nftContract.whiteListBurn(tokenId); } totalUnwithdrawAmounts -= totalClaimAmounts; nodeCapitalVault.transfer(totalClaimAmounts, nftOwner); emit ETHClaim(nftOwner, totalClaimAmounts); } function getCanClaimEthOfOwner(address owner) public view returns(uint256[] memory, uint256[] memory) { uint256[] memory _tokenIds = getCanClaimOfOwner(owner); uint256[] memory _rewards = new uint256[] (_tokenIds.length); for (uint256 i = 0; i < _tokenIds.length; ++i) { uint256 tokenId = _tokenIds[i]; uint256 claimAmount = 0; (, claimAmount) = _canWithdrawAmount(tokenId); _rewards[i] = claimAmount; } return (_tokenIds, _rewards); } function _canWithdrawAmount(uint256 tokenId) internal view returns(uint256, uint256){ uint256 amount = withdrawAmounts[tokenId]; require(amount >= 32 ether, "Not enough rewards to claim"); uint256 rewards = amount - 32 ether; uint256 daoReward = rewards * daoClCommissionRate / 10000; uint256 claimAmount = amount - daoReward; return (daoReward, claimAmount); } function getCanClaimOfOwner(address owner) public view returns(uint256[] memory) { uint256[] memory tokenIdsOfOwner = nftContract.tokensOfOwner(owner); uint256 canClaimNumber = 0; for (uint256 i = 0; i < tokenIdsOfOwner.length; ++i) { uint256 tokenId = tokenIdsOfOwner[i]; if (withdrawAmounts[tokenId] != 0) { canClaimNumber++; } } uint256[] memory canClaimTokenIds = new uint256[] (canClaimNumber); uint256 tokenIdsIdx = 0; for (uint256 i = 0; i < tokenIdsOfOwner.length; ++i) { uint256 tokenId = tokenIdsOfOwner[i]; if (withdrawAmounts[tokenId] != 0) { canClaimTokenIds[tokenIdsIdx++] = tokenId; } } return canClaimTokenIds; } function claimDaoRewards(address to) public onlyDao { uint256 amount = daoRewards; daoRewards = 0; totalUnwithdrawAmounts -= amount; nodeCapitalVault.transfer(amount, to); emit DaoRewardsClaim(to, amount); } }
// 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 "@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol"; import "./interfaces/IAggregator.sol"; import "./routes/ValidatorNftRouter.sol"; /** * @title Staking Aggregator for Ethereum Network * @notice Accepts incoming data and route the Ether to different strategies */ contract Aggregator is IAggregator, ValidatorNftRouter, UUPSUpgradeable, ReentrancyGuardUpgradeable, PausableUpgradeable, OwnableUpgradeable { bytes1 private constant ETH32_STRATEGY = 0x01; bytes1 private constant LIDO_STRATEGY = 0x02; bytes1 private constant SWELL_STRATEGY = 0x03; bytes1 private constant ROCKETPOOL_STRATEGY = 0x04; bytes1 private constant STAKEWISE_STRATEGY = 0x05; bytes1 private constant NODE_TRADE_STRATEGY = 0x06; bytes1 private constant SSV_STRATEGY = 0x07; bytes1 private constant ONEINCH_STRATEGY = 0x08; /// @custom:oz-upgrades-unsafe-allow constructor constructor() {} /** * @notice Initializes the contract by setting the required external * contracts for different strategies (Eth32, Lido, Rocket, Stakewise & more) * ReentrancyGuardUpgradeable, OwnableUpgradeable, UUPSUpgradeable * @dev initializer - A modifier that defines a protected initializer function that can be invoked at most once */ function initialize( address depositContractAddress, address vaultAddress, address nftContractAddress ) external initializer { __Ownable_init(); __UUPSUpgradeable_init(); __ReentrancyGuard_init(); __Pausable_init(); __ValidatorNftRouter__init(depositContractAddress, vaultAddress, nftContractAddress); } function _authorizeUpgrade(address) internal override onlyOwner {} /** * @dev See {IAggregator-stake}. */ function stake(bytes[] calldata data) payable external override nonReentrant whenNotPaused returns (bool) { uint256 total_ether = 0; for (uint256 i = 0; i < data.length; i++) { require(data[i].length > 0, "Empty data provided"); bytes1 prefix = bytes1(data[i][0]); if (prefix == ETH32_STRATEGY) { require(data[i].length == 320 , "Eth32 Contract: Invalid Data Length"); super.eth32Route(data[i]); total_ether += 32 ether; } else if (prefix == LIDO_STRATEGY) { } else if (prefix == ROCKETPOOL_STRATEGY) { } else if (prefix == NODE_TRADE_STRATEGY) { total_ether += super.tradeRoute(data[i]); } } require(msg.value == total_ether, "Incorrect Ether amount provided"); return true; } /** * @dev See {IAggregator-unstake}. */ function unstake(bytes[] calldata data) payable external override nonReentrant whenNotPaused returns (bool) { return data.length == 0; } /** * @dev See {IAggregator-disperseRewards}. */ function disperseRewards(uint256 tokenId) external override whenNotPaused { require(msg.sender == nftAddress, "Message sender is not the Nft contract"); vault.publicSettle(); rewardRoute(tokenId); } /** * @dev See {IAggregator-claimRewards}. */ function claimRewards(uint256 tokenId) external override nonReentrant whenNotPaused { rewardRoute(tokenId); } /** * @dev See {IAggregator-batchClaimRewards}. */ function batchClaimRewards(uint256[] calldata tokenIds) external override nonReentrant whenNotPaused { for (uint256 i = 0; i < tokenIds.length; i++) { rewardRoute(tokenIds[i]); } } /** * @notice Allows the contract to be paused during emergencies. */ function pause() external onlyOwner { _pause(); } /** * @notice Allows the contract to resume operations after being paused. */ function unpause() external onlyOwner { _unpause(); } }
pragma solidity ^0.8.7; /** * @title Interface for NodeCapitalVault */ interface INodeCapitalVault { function transfer(uint256 amount, address to) external; }
// 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: GPL-3.0 pragma solidity ^0.8.7; /** * @title Staking Aggregator Interface for Ethereum Network * @notice Executes different functions for the user accordingly */ interface IAggregator { /** * @notice Routes user's investment into different protocols * @param data - byte array which has unique prefix for different strategy * @return true if operation succeeded */ function stake(bytes[] calldata data) payable external returns (bool); /** * @notice Returns user's investment from different protocols * @param data - byte array which has unique prefix for different strategy * @return true if operation succeeded */ function unstake(bytes[] calldata data) payable external returns (bool); /** * @notice Transfers earned rewards to nft owner * @dev Calls `publicSettle()` internally to ensure all rewards are claimed * @param tokenId - representation of user's nft */ function disperseRewards(uint256 tokenId) external; /** * @notice Transfers earned rewards to nft owner * @param tokenId - representation of user's nft */ function claimRewards(uint256 tokenId) external; /** * @notice Transfers all earned rewards to nft owner * @param tokenIds - An array containing the representation of user's nft */ function batchClaimRewards(uint256[] calldata tokenIds) external; }
// SPDX-License-Identifier: GPL-3.0 pragma solidity ^0.8.7; import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol"; import "../interfaces/IDepositContract.sol"; import "../interfaces/IValidatorNft.sol"; import "../interfaces/INodeRewardVault.sol"; /** * @title Router for Validator NFT Strategy * @notice Routes incoming data to various Validator NFT Strategies such as trading, minting & more. */ contract ValidatorNftRouter is Initializable { event NodeTrade(uint256 _tokenId, address _from, address _to, uint256 _amount); event Eth32Deposit(bytes _pubkey, bytes _withdrawal, address _owner); IValidatorNft public nftContract; INodeRewardVault public vault; IDepositContract public depositContract; address public nftAddress; mapping(uint256 => uint64) public nonces; function __ValidatorNftRouter__init(address depositContract_, address vault_, address nftContract_) internal onlyInitializing { depositContract = IDepositContract(depositContract_); vault = INodeRewardVault(vault_); nftContract = IValidatorNft(nftContract_); nftAddress = nftContract_; } /** * @notice Pre-processing before performing the signer verification. * @return bytes32 hashed value of the pubkey, withdrawalCredentials, signature, * depositDataRoot, bytes32(blockNumber) */ //slither-disable-next-line calls-loop function precheck(bytes calldata data) private view returns (bytes32) { bytes calldata pubkey = data[16:64]; bytes calldata withdrawalCredentials = data[64:96]; bytes calldata signature = data[96:192]; bytes32 depositDataRoot = bytes32(data[192:224]); uint256 blockNumber = uint256(bytes32(data[224:256])); require(!nftContract.validatorExists(pubkey), "Pub key already in used"); require(blockNumber > block.number, "Block height too old, please generate a new transaction"); return keccak256(abi.encodePacked(pubkey, withdrawalCredentials, signature, depositDataRoot, bytes32(blockNumber))); } /** * @notice Performs signer verification to prevent unauthorized usage * @param v, r, and s parts of a signature * @param hash_ - hashed value from precheck * @param signer_ - authentic signer to check against */ function signercheck(bytes32 s, bytes32 r, uint8 v, bytes32 hash_, address signer_) private pure { bytes memory prefix = "\x19Ethereum Signed Message:\n32"; bytes32 prefixedHash = keccak256(abi.encodePacked(prefix, hash_)); address signer = ecrecover(prefixedHash, v, r, s); require(signer == signer_, "Not authorized"); require(signer != address(0), "ECDSA: invalid signature"); } /** * @notice Routes incoming data (Trade Strategy) to outbound contracts, ETH2 Official Deposit Contract * and calls internal functions for pre-processing and signer verfication * check for expired transaction through block height * @return uint256 sum of the trades */ //slither-disable-next-line calls-loop function _tradeRoute(bytes calldata data) private returns (uint256) { require(address(bytes20(data[12:32])) == msg.sender, "Not allowed to make this trade"); require(uint256(bytes32(data[96:128])) > block.number, "Trade has expired"); uint256 sum = 0; uint256 i = 0; for (i = 0; i < uint256(bytes32(data[128:160])); i++) { uint256 price = uint256(bytes32(data[160 + i * 224:192 + i * 224])); uint256 tokenId = uint256(bytes32(data[192 + i * 224:224 + i * 224])); uint256 rebate = uint256(bytes32(data[224 + i * 224:256 + i * 224])); uint256 expiredHeight = uint256(bytes32(data[256 + i * 224:288 + i * 224])); address signer = address(bytes20(data[352 + i * 224:372 + i * 224])); uint64 nonce = uint64(bytes8(data[376 + i * 224:384 + i * 224])); require(expiredHeight > block.number, "Listing has expired"); require(nftContract.ownerOf(tokenId) == signer, "Not owner"); require(nonce == nonces[tokenId], "Incorrect nonce"); nonces[tokenId]++; sum += price; bytes32 hash = keccak256(abi.encodePacked(tokenId, rebate, expiredHeight, nonce)); signercheck(bytes32(data[320 + i * 224:352 + i * 224]), bytes32(data[288 + i * 224:320 + i * 224]), uint8(bytes1(data[372 + i * 224])), hash, signer); uint256 nodeCapital = nftContract.nodeCapitalOf(tokenId); uint256 userPrice = price; if (price > nodeCapital) { userPrice = price - (price - nodeCapital) * vault.comission() / 10000; payable(vault.dao()).transfer(price - userPrice); } require(userPrice > 30 ether, "Node too cheap"); payable(signer).transfer(userPrice); nftContract.safeTransferFrom(signer, msg.sender, tokenId); nftContract.updateNodeCapital(tokenId, price); emit NodeTrade(tokenId, signer, msg.sender, price); } bytes32 authHash = keccak256(abi.encodePacked(data[160:], uint256(bytes32(data[96:128])), msg.sender)); signercheck(bytes32(data[64:96]), bytes32(data[32:64]), uint8(bytes1(data[1])), authHash, vault.authority()); return sum; } /** * @notice Allows transfer funds of 32 ETH to the ETH2 Official Deposit Contract */ //slither-disable-next-line reentrancy-events function deposit(bytes calldata data) private { bytes calldata pubkey = data[16:64]; bytes calldata withdrawalCredentials = data[64:96]; bytes calldata signature = data[96:192]; bytes32 depositDataRoot = bytes32(data[192:224]); depositContract.deposit{value: 32 ether}(pubkey, withdrawalCredentials, signature, depositDataRoot); emit Eth32Deposit(pubkey, withdrawalCredentials, msg.sender); } /** * @notice Routes incoming data(ETH32 Strategy) to outbound contracts, ETH2 Official Deposit Contract * and calls internal functions for pre-processing and signer verfication, minting of nft to user. */ //slither-disable-next-line calls-loop function eth32Route(bytes calldata data) internal returns (bool) { bytes32 hash = precheck(data); signercheck(bytes32(data[256:288]), bytes32(data[288:320]), uint8(bytes1(data[1])), hash, vault.authority()); deposit(data); vault.settle(); nftContract.whiteListMint(data[16:64], msg.sender); return true; } /** * @notice Routes incoming data(Trade Strategy) to outbound contracts, ETH2 Official Deposit Contract * and calls internal functions for pre-processing and signer verfication * check for expired transaction through block height * @return uint256 sum of the trades */ function tradeRoute(bytes calldata data) internal returns (uint256) { return _tradeRoute(data); } /** * @dev See {IAggregator-disperseRewards}. */ //slither-disable-next-line reentrancy-events function rewardRoute(uint256 tokenId) internal { vault.claimRewards(tokenId); nftContract.setGasHeight(tokenId, vault.rewardsHeight()); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; import "../proxy/utils/Initializable.sol"; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuardUpgradeable is Initializable { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; function __ReentrancyGuard_init() internal onlyInitializing { __ReentrancyGuard_init_unchained(); } function __ReentrancyGuard_init_unchained() internal onlyInitializing { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[49] private __gap; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (proxy/utils/Initializable.sol) pragma solidity ^0.8.2; import "../../utils/AddressUpgradeable.sol"; /** * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect. * * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be * reused. This mechanism prevents re-execution of each "step" but allows the creation of new initialization steps in * case an upgrade adds a module that needs to be initialized. * * For example: * * [.hljs-theme-light.nopadding] * ``` * contract MyToken is ERC20Upgradeable { * function initialize() initializer public { * __ERC20_init("MyToken", "MTK"); * } * } * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable { * function initializeV2() reinitializer(2) public { * __ERC20Permit_init("MyToken"); * } * } * ``` * * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}. * * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity. * * [CAUTION] * ==== * Avoid leaving a contract uninitialized. * * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed: * * [.hljs-theme-light.nopadding] * ``` * /// @custom:oz-upgrades-unsafe-allow constructor * constructor() { * _disableInitializers(); * } * ``` * ==== */ abstract contract Initializable { /** * @dev Indicates that the contract has been initialized. * @custom:oz-retyped-from bool */ uint8 private _initialized; /** * @dev Indicates that the contract is in the process of being initialized. */ bool private _initializing; /** * @dev Triggered when the contract has been initialized or reinitialized. */ event Initialized(uint8 version); /** * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope, * `onlyInitializing` functions can be used to initialize parent contracts. Equivalent to `reinitializer(1)`. */ modifier initializer() { bool isTopLevelCall = !_initializing; require( (isTopLevelCall && _initialized < 1) || (!AddressUpgradeable.isContract(address(this)) && _initialized == 1), "Initializable: contract is already initialized" ); _initialized = 1; if (isTopLevelCall) { _initializing = true; } _; if (isTopLevelCall) { _initializing = false; emit Initialized(1); } } /** * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be * used to initialize parent contracts. * * `initializer` is equivalent to `reinitializer(1)`, so a reinitializer may be used after the original * initialization step. This is essential to configure modules that are added through upgrades and that require * initialization. * * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in * a contract, executing them in the right order is up to the developer or operator. */ modifier reinitializer(uint8 version) { require(!_initializing && _initialized < version, "Initializable: contract is already initialized"); _initialized = version; _initializing = true; _; _initializing = false; emit Initialized(version); } /** * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the * {initializer} and {reinitializer} modifiers, directly or indirectly. */ modifier onlyInitializing() { require(_initializing, "Initializable: contract is not initializing"); _; } /** * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call. * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized * to any version. It is recommended to use this to lock implementation contracts that are designed to be called * through proxies. */ function _disableInitializers() internal virtual { require(!_initializing, "Initializable: contract is initializing"); if (_initialized < type(uint8).max) { _initialized = type(uint8).max; emit Initialized(type(uint8).max); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (security/Pausable.sol) pragma solidity ^0.8.0; import "../utils/ContextUpgradeable.sol"; import "../proxy/utils/Initializable.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract PausableUpgradeable is Initializable, ContextUpgradeable { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ function __Pausable_init() internal onlyInitializing { __Pausable_init_unchained(); } function __Pausable_init_unchained() internal onlyInitializing { _paused = false; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { _requireNotPaused(); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { _requirePaused(); _; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Throws if the contract is paused. */ function _requireNotPaused() internal view virtual { require(!paused(), "Pausable: paused"); } /** * @dev Throws if the contract is not paused. */ function _requirePaused() internal view virtual { require(paused(), "Pausable: not paused"); } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[49] private __gap; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.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) (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: GPL-3.0 pragma solidity ^0.8.7; interface IDepositContract { /// @notice A processed deposit event. event DepositEvent( bytes pubkey, bytes withdrawal_credentials, bytes amount, bytes signature, bytes index ); /// @notice Submit a Phase 0 DepositData object. /// @param pubkey A BLS12-381 public key. /// @param withdrawal_credentials Commitment to a public key for withdrawals. /// @param signature A BLS12-381 signature. /// @param deposit_data_root The SHA-256 hash of the SSZ-encoded DepositData object. /// Used as a protection against malformed input. function deposit( bytes calldata pubkey, bytes calldata withdrawal_credentials, bytes calldata signature, bytes32 deposit_data_root ) external payable; /// @notice Query the current deposit root hash. /// @return The deposit root hash. function get_deposit_root() external view returns (bytes32); /// @notice Query the current deposit count. /// @return The deposit count encoded as a little endian 64-bit number. function get_deposit_count() external view returns (bytes memory); }
// 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 // 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[{"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":true,"internalType":"address","name":"beacon","type":"address"}],"name":"BeaconUpgraded","type":"event"},{"anonymous":false,"inputs":[],"name":"CanClaim","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":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"DaoRewardsClaim","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"owner","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"ETHClaim","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bytes","name":"_pubkey","type":"bytes"},{"indexed":false,"internalType":"bytes","name":"_withdrawal","type":"bytes"},{"indexed":false,"internalType":"address","name":"_owner","type":"address"}],"name":"Eth32Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"name":"ExitStatusReported","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"name":"ExitStatusReset","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint8","name":"version","type":"uint8"}],"name":"Initialized","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_before","type":"address"},{"indexed":false,"internalType":"address","name":"_after","type":"address"}],"name":"NodeCapitalVaultChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_tokenId","type":"uint256"},{"indexed":false,"internalType":"address","name":"_from","type":"address"},{"indexed":false,"internalType":"address","name":"_to","type":"address"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"NodeTrade","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_before","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_after","type":"uint256"}],"name":"TotalUnwithdrawAmountsChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"implementation","type":"address"}],"name":"Upgraded","type":"event"},{"inputs":[],"name":"MAX_REPORT_AMOUNT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MIN_REPORT_AMOUNT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"allowClaim","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"batchClaimRewards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"}],"name":"claimDaoRewards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"claimNumber","type":"uint256"}],"name":"claimETH","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"claimRewards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"dao","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"daoClCommissionRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"daoRewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"depositContract","outputs":[{"internalType":"contract IDepositContract","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"disperseRewards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"getCanClaimEthOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"},{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"getCanClaimOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"depositContractAddress","type":"address"},{"internalType":"address","name":"vaultAddress","type":"address"},{"internalType":"address","name":"nftContractAddress","type":"address"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"dao_","type":"address"},{"internalType":"address","name":"nodeCapitalVault_","type":"address"}],"name":"initializeV2","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"isReport","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nftAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nftContract","outputs":[{"internalType":"contract IValidatorNft","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nodeCapitalVault","outputs":[{"internalType":"contract INodeCapitalVault","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"nonces","outputs":[{"internalType":"uint64","name":"","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"proxiableUUID","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"name":"reportExitStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"name":"resetExitStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"dao_","type":"address"}],"name":"setDao","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"nodeCapitalVault_","type":"address"}],"name":"setNodeCapitalVaultContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes[]","name":"data","type":"bytes[]"}],"name":"stake","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"startClaim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"totalUnwithdrawAmounts","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes[]","name":"data","type":"bytes[]"}],"name":"unstake","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"payable","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"},{"inputs":[],"name":"vault","outputs":[{"internalType":"contract INodeRewardVault","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"withdrawAmounts","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
60a06040523060601b60805234801561001757600080fd5b5060805160601c614c6061005260003960008181610ae101528181610b6601528181610c6f01528181610cf40152610dde0152614c606000f3fe6080604052600436106102bb5760003560e01c80637299e0e61161016e578063c0c53b8b116100cb578063e94ad65b1161007f578063f2fde38b11610064578063f2fde38b14610780578063fbfa77cf146107a0578063fe96973a146107c057600080fd5b8063e94ad65b1461074b578063ecbfc0771461076b57600080fd5b8063d50efa7e116100b0578063d50efa7e146106e4578063d56d229d14610704578063e5a723531461072a57600080fd5b8063c0c53b8b146106ad578063d1812a7b146106cd57600080fd5b806386635c321161012257806392eb229c1161010757806392eb229c1461065d578063a5eb79711461067a578063c08a20811461069a57600080fd5b806386635c321461061f5780638da5cb5b1461063f57600080fd5b80637bc4a543116101535780637bc4a543146105c05780637e59552a146105ed5780638456cb591461060a57600080fd5b80637299e0e61461058d57806377d7fd19146105a057600080fd5b80633f4ba83a1161021c57806356346051116101d05780635c975abb116101b55780635c975abb146105405780636637b88214610558578063715018a61461057857600080fd5b806356346051146105095780635bf8633a1461052057600080fd5b80634f1ef286116102015780634f1ef286146104c157806352d1902d146104d457806353df88c0146104e957600080fd5b80633f4ba83a146104735780634162169f1461048857600080fd5b80631659508f11610273578063291838721161025857806329183872146104055780632c3fcea2146104255780633659cfe61461045357600080fd5b80631659508f146103be578063234397c3146103d457600080fd5b80630962ef79116102a45780630962ef79146103125780630f20b94c14610332578063141a468c1461036e57600080fd5b80630356783b146102c05780630840ba72146102f0575b600080fd5b3480156102cc57600080fd5b50610137546102db9060ff1681565b60405190151581526020015b60405180910390f35b3480156102fc57600080fd5b5061031061030b3660046143ea565b6107e0565b005b34801561031e57600080fd5b5061031061032d3660046146ac565b6108ed565b34801561033e57600080fd5b5061036061034d3660046146ac565b6101346020526000908152604090205481565b6040519081526020016102e7565b34801561037a57600080fd5b506103a56103893660046146ac565b60046020526000908152604090205467ffffffffffffffff1681565b60405167ffffffffffffffff90911681526020016102e7565b3480156103ca57600080fd5b506103606103e881565b3480156103e057600080fd5b506102db6103ef3660046146ac565b6101356020526000908152604090205460ff1681565b34801561041157600080fd5b50610310610420366004614516565b61095e565b34801561043157600080fd5b506104456104403660046143b0565b610a06565b6040516102e792919061485d565b34801561045f57600080fd5b5061031061046e3660046143b0565b610ad6565b34801561047f57600080fd5b50610310610c52565b34801561049457600080fd5b50610131546104a9906001600160a01b031681565b6040516001600160a01b0390911681526020016102e7565b6103106104cf36600461446e565b610c64565b3480156104e057600080fd5b50610360610dd1565b3480156104f557600080fd5b506103106105043660046143b0565b610e96565b34801561051557600080fd5b506103606101335481565b34801561052c57600080fd5b506003546104a9906001600160a01b031681565b34801561054c57600080fd5b5060cd5460ff166102db565b34801561056457600080fd5b506103106105733660046143b0565b610efa565b34801561058457600080fd5b50610310610f0b565b6102db61059b366004614516565b610f1d565b3480156105ac57600080fd5b506103106105bb3660046146ac565b61129f565b3480156105cc57600080fd5b506105e06105db3660046143b0565b611381565b6040516102e7919061484a565b3480156105f957600080fd5b506103606801c9f78d2893e4000081565b34801561061657600080fd5b50610310611562565b34801561062b57600080fd5b5061031061063a3660046143b0565b611572565b34801561064b57600080fd5b5060ff546001600160a01b03166104a9565b34801561066957600080fd5b506103606801bc16d674ec80000081565b34801561068657600080fd5b50610310610695366004614558565b61169e565b6102db6106a8366004614516565b6119e2565b3480156106b957600080fd5b506103106106c8366004614423565b611a50565b3480156106d957600080fd5b506103606101365481565b3480156106f057600080fd5b506103106106ff366004614558565b611b96565b34801561071057600080fd5b506000546104a9906201000090046001600160a01b031681565b34801561073657600080fd5b50610132546104a9906001600160a01b031681565b34801561075757600080fd5b506002546104a9906001600160a01b031681565b34801561077757600080fd5b50610310611f0a565b34801561078c57600080fd5b5061031061079b3660046143b0565b611f9e565b3480156107ac57600080fd5b506001546104a9906001600160a01b031681565b3480156107cc57600080fd5b506103106107db3660046146ac565b61202b565b600054600390610100900460ff16158015610802575060005460ff8083169116105b6108795760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a656400000000000000000000000000000000000060648201526084015b60405180910390fd5b6000805461ffff191660ff8316176101001790556108956123e1565b61089e8361243b565b6108a7826124fc565b6000805461ff001916905560405160ff821681527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a1505050565b600260695414156109405760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610870565b600260695561094d6125e3565b61095681612636565b506001606955565b600260695414156109b15760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610870565b60026069556109be6125e3565b60005b818110156109fc576109ea8383838181106109de576109de614bc2565b90506020020135612636565b806109f481614b69565b9150506109c1565b5050600160695550565b6060806000610a1484611381565b90506000815167ffffffffffffffff811115610a3257610a32614bd8565b604051908082528060200260200182016040528015610a5b578160200160208202803683370190505b50905060005b8251811015610acb576000838281518110610a7e57610a7e614bc2565b602002602001015190506000610a93826127c9565b90508091505080848481518110610aac57610aac614bc2565b602002602001018181525050505080610ac490614b69565b9050610a61565b509094909350915050565b306001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161415610b645760405162461bcd60e51b815260206004820152602c60248201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060448201526b19195b1959d85d1958d85b1b60a21b6064820152608401610870565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316610bbf7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc546001600160a01b031690565b6001600160a01b031614610c2a5760405162461bcd60e51b815260206004820152602c60248201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060448201526b6163746976652070726f787960a01b6064820152608401610870565b610c3381612882565b60408051600080825260208201909252610c4f9183919061288a565b50565b610c5a6123e1565b610c62612a3e565b565b306001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161415610cf25760405162461bcd60e51b815260206004820152602c60248201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060448201526b19195b1959d85d1958d85b1b60a21b6064820152608401610870565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316610d4d7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc546001600160a01b031690565b6001600160a01b031614610db85760405162461bcd60e51b815260206004820152602c60248201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060448201526b6163746976652070726f787960a01b6064820152608401610870565b610dc182612882565b610dcd8282600161288a565b5050565b6000306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610e715760405162461bcd60e51b815260206004820152603860248201527f555550535570677261646561626c653a206d757374206e6f742062652063616c60448201527f6c6564207468726f7567682064656c656761746563616c6c00000000000000006064820152608401610870565b507f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc90565b610131546001600160a01b03163314610ef15760405162461bcd60e51b815260206004820152601860248201527f496e73756666696369656e74207065726d697373696f6e7300000000000000006044820152606401610870565b610c4f816124fc565b610f026123e1565b610c4f8161243b565b610f136123e1565b610c626000612a90565b600060026069541415610f725760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610870565b6002606955610f7f6125e3565b6000805b8381101561123f576000858583818110610f9f57610f9f614bc2565b9050602002810190610fb19190614992565b9050116110005760405162461bcd60e51b815260206004820152601360248201527f456d70747920646174612070726f7669646564000000000000000000000000006044820152606401610870565b600085858381811061101457611014614bc2565b90506020028101906110269190614992565b600081811061103757611037614bc2565b909101356001600160f81b0319169150507f01000000000000000000000000000000000000000000000000000000000000008114156111535785858381811061108257611082614bc2565b90506020028101906110949190614992565b90506101401461110c5760405162461bcd60e51b815260206004820152602360248201527f457468333220436f6e74726163743a20496e76616c69642044617461204c656e60448201527f67746800000000000000000000000000000000000000000000000000000000006064820152608401610870565b61113886868481811061112157611121614bc2565b90506020028101906111339190614992565b612ae2565b5061114c6801bc16d674ec80000084614a34565b925061122c565b6001600160f81b031981167f0200000000000000000000000000000000000000000000000000000000000000141561118a5761122c565b6001600160f81b031981167f040000000000000000000000000000000000000000000000000000000000000014156111c15761122c565b6001600160f81b031981167f0600000000000000000000000000000000000000000000000000000000000000141561122c5761121f86868481811061120857611208614bc2565b905060200281019061121a9190614992565b612cd5565b6112299084614a34565b92505b508061123781614b69565b915050610f83565b5080341461128f5760405162461bcd60e51b815260206004820152601f60248201527f496e636f727265637420457468657220616d6f756e742070726f7669646564006044820152606401610870565b6001915050600160695592915050565b6112a76125e3565b6003546001600160a01b031633146113105760405162461bcd60e51b815260206004820152602660248201527f4d6573736167652073656e646572206973206e6f7420746865204e667420636f6044820152651b9d1c9858dd60d21b6064820152608401610870565b600160009054906101000a90046001600160a01b03166001600160a01b0316630dce7b1d6040518163ffffffff1660e01b8152600401600060405180830381600087803b15801561136057600080fd5b505af1158015611374573d6000803e3d6000fd5b50505050610c4f81612636565b600080546040517f8462151c0000000000000000000000000000000000000000000000000000000081526001600160a01b038481166004830152606093926201000090041690638462151c9060240160006040518083038186803b1580156113e857600080fd5b505afa1580156113fc573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261142491908101906145c4565b90506000805b825181101561148c57600083828151811061144757611447614bc2565b6020026020010151905061013460008281526020019081526020016000205460001461147b578261147781614b69565b9350505b5061148581614b69565b905061142a565b5060008167ffffffffffffffff8111156114a8576114a8614bd8565b6040519080825280602002602001820160405280156114d1578160200160208202803683370190505b5090506000805b84518110156115575760008582815181106114f5576114f5614bc2565b602002602001015190506101346000828152602001908152602001600020546000146115465780848461152781614b69565b95508151811061153957611539614bc2565b6020026020010181815250505b5061155081614b69565b90506114d8565b509095945050505050565b61156a6123e1565b610c62612ce8565b610131546001600160a01b031633146115cd5760405162461bcd60e51b815260206004820152601860248201527f496e73756666696369656e74207065726d697373696f6e7300000000000000006044820152606401610870565b61013680546000918290556101338054919283926115ec908490614a8d565b90915550506101325460405163b7760c8f60e01b8152600481018390526001600160a01b0384811660248301529091169063b7760c8f90604401600060405180830381600087803b15801561164057600080fd5b505af1158015611654573d6000803e3d6000fd5b5050604080516001600160a01b0386168152602081018590527e07c895d29b5a4bd97ba401653f766d290936a4c65335da2e4c5c5a9a0239f1935001905060405180910390a15050565b610131546001600160a01b031633146116f95760405162461bcd60e51b815260206004820152601860248201527f496e73756666696369656e74207065726d697373696f6e7300000000000000006044820152606401610870565b8281146117485760405162461bcd60e51b815260206004820152600f60248201527f706172616d65746572206572726f7200000000000000000000000000000000006044820152606401610870565b60008060005b858110156118fe57600087878381811061176a5761176a614bc2565b6020908102929092013560008181526101359093526040909220549192505060ff166117d85760405162461bcd60e51b815260206004820152601460248201527f746f6b656e4964206e6f74207265706f727465640000000000000000000000006044820152606401610870565b60008181526101346020526040902054806118355760405162461bcd60e51b815260206004820152601360248201527f746f6b656e4964206d617920636c61696d6564000000000000000000000000006044820152606401610870565b61183f8185614a34565b9350600087878581811061185557611855614bc2565b9050602002013590506801bc16d674ec800000811015801561188057506801c9f78d2893e400008111155b6118cc5760405162461bcd60e51b815260206004820152601560248201527f77726f6e67207265706f7274656420616d6f756e7400000000000000000000006044820152606401610870565b6000838152610134602052604090208190556118e88187614a34565b9550505050806118f790614b69565b905061174e565b508061013360008282546119129190614a8d565b909155505061013254610133546001600160a01b0390911631906119369084614a34565b11156119845760405162461bcd60e51b815260206004820152601460248201527f616d6f756e747320636865636b206661696c65640000000000000000000000006044820152606401610870565b8161013360008282546119979190614a34565b90915550506040517f902f85cddc80faaf4aec46a3584d439705d48e6ef77e1fcd08d275daa031b9a1906119d2908890889088908890614818565b60405180910390a1505050505050565b600060026069541415611a375760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610870565b6002606955611a446125e3565b50600160695515919050565b600054610100900460ff1615808015611a705750600054600160ff909116105b80611a8a5750303b158015611a8a575060005460ff166001145b611afc5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a65640000000000000000000000000000000000006064820152608401610870565b6000805460ff191660011790558015611b1f576000805461ff0019166101001790555b611b27612d25565b611b2f612d98565b611b37612e03565b611b3f612e76565b611b4a848484612ee9565b8015611b90576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b50505050565b610131546001600160a01b03163314611bf15760405162461bcd60e51b815260206004820152601860248201527f496e73756666696369656e74207065726d697373696f6e7300000000000000006044820152606401610870565b828114611c405760405162461bcd60e51b815260206004820152600f60248201527f706172616d65746572206572726f7200000000000000000000000000000000006044820152606401610870565b6000805b84811015611e3f576000868683818110611c6057611c60614bc2565b6020908102929092013560008181526101359093526040909220549192505060ff1615611ccf5760405162461bcd60e51b815260206004820152601860248201527f746f6b656e496420616c7265616479207265706f7274656400000000000000006044820152606401610870565b6000546040517f19ab5df500000000000000000000000000000000000000000000000000000000815260048101839052620100009091046001600160a01b0316906319ab5df59060240160206040518083038186803b158015611d3157600080fd5b505afa158015611d45573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d699190614693565b506000858584818110611d7e57611d7e614bc2565b9050602002013590506801bc16d674ec8000008110158015611da957506801c9f78d2893e400008111155b611df55760405162461bcd60e51b815260206004820152601560248201527f77726f6e67207265706f7274656420616d6f756e7400000000000000000000006044820152606401610870565b600082815261013460205260409020819055611e118185614a34565b60009283526101356020526040909220805460ff19166001179055509150611e3881614b69565b9050611c44565b5061013254610133546001600160a01b039091163190611e5f9083614a34565b1115611ead5760405162461bcd60e51b815260206004820152601460248201527f616d6f756e747320636865636b206661696c65640000000000000000000000006044820152606401610870565b806101336000828254611ec09190614a34565b90915550506040517fff9cdd487ba60712d8e8a2890637b43e36cdbd85ea1188da739d9520d3bce1e890611efb908790879087908790614818565b60405180910390a15050505050565b610131546001600160a01b03163314611f655760405162461bcd60e51b815260206004820152601860248201527f496e73756666696369656e74207065726d697373696f6e7300000000000000006044820152606401610870565b610137805460ff191660011790556040517f91c1494b0606674e895d6bea9ffaa8de93e2706c8792f6a029bee70a0f3ccea090600090a1565b611fa66123e1565b6001600160a01b0381166120225760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610870565b610c4f81612a90565b6101375460ff1661207e5760405162461bcd60e51b815260206004820152601360248201527f436c61696d206e6f74207475726e6564206f6e000000000000000000000000006044820152606401610870565b33600061208a82611381565b90508051600014156120de5760405162461bcd60e51b815260206004820152601960248201527f6e6f20746f6b656e49642063616e20626520636c61696d6564000000000000006044820152606401610870565b6000806000600160009054906101000a90046001600160a01b03166001600160a01b03166311da60b46040518163ffffffff1660e01b8152600401600060405180830381600087803b15801561213357600080fd5b505af1158015612147573d6000803e3d6000fd5b5050505060005b84518110156123215786811061216357612321565b600085828151811061217757612177614bc2565b602090810291909101810151600081815261013590925260409091205490915060ff166121e65760405162461bcd60e51b815260206004820152601460248201527f746f6b656e4964206e6f74207265706f727465640000000000000000000000006044820152606401610870565b60008181526101346020526040902054806122435760405162461bcd60e51b815260206004820152601560248201527f746f6b656e496420616c726561647920636c61696d00000000000000000000006044820152606401610870565b61224c826127c9565b6000848152610134602052604081208190556101368054929850929650869291612277908490614a34565b9091555061228790508587614a34565b955061229282612636565b6000546040517fc2c3a60d00000000000000000000000000000000000000000000000000000000815260048101849052620100009091046001600160a01b03169063c2c3a60d90602401600060405180830381600087803b1580156122f657600080fd5b505af115801561230a573d6000803e3d6000fd5b5050505050508061231a90614b69565b905061214e565b508261013360008282546123359190614a8d565b90915550506101325460405163b7760c8f60e01b8152600481018590526001600160a01b0387811660248301529091169063b7760c8f90604401600060405180830381600087803b15801561238957600080fd5b505af115801561239d573d6000803e3d6000fd5b5050604080516001600160a01b0389168152602081018790527fb347ff5700d04a99e284ad9bc43ec731719b8d0f74da35aa3a71ab9096f778b493500190506119d2565b60ff546001600160a01b03163314610c625760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610870565b6001600160a01b0381166124915760405162461bcd60e51b815260206004820152601c60248201527f44414f20616464726573732070726f766964656420696e76616c6964000000006044820152606401610870565b61013154604080516001600160a01b03928316815291831660208301527ffcde6c827a52b0870bc44ed9b10212272e18c9ea1725b772e9b493750afd8da4910160405180910390a161013180546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b0381166125785760405162461bcd60e51b815260206004820152602a60248201527f6e6f64654361706974616c5661756c745f20616464726573732070726f76696460448201527f656420696e76616c6964000000000000000000000000000000000000000000006064820152608401610870565b61013254604080516001600160a01b03928316815291831660208301527f2a48628ab3124a618310bfee2a07f87fe91088ceda208f4c5db630b901c04a22910160405180910390a161013280546001600160a01b0319166001600160a01b0392909216919091179055565b60cd5460ff1615610c625760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610870565b6001546040517f0962ef79000000000000000000000000000000000000000000000000000000008152600481018390526001600160a01b0390911690630962ef7990602401600060405180830381600087803b15801561269557600080fd5b505af11580156126a9573d6000803e3d6000fd5b5050600054600154604080517fe88b72550000000000000000000000000000000000000000000000000000000081529051620100009093046001600160a01b039081169550634cf5a3449450869392169163e88b725591600480820192602092909190829003018186803b15801561272057600080fd5b505afa158015612734573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906127589190614693565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e085901b16815260048101929092526024820152604401600060405180830381600087803b1580156127ae57600080fd5b505af11580156127c2573d6000803e3d6000fd5b5050505050565b6000818152610134602052604081205481906801bc16d674ec8000008110156128345760405162461bcd60e51b815260206004820152601b60248201527f4e6f7420656e6f756768207265776172647320746f20636c61696d00000000006044820152606401610870565b60006128496801bc16d674ec80000083614a8d565b9050600061271061285c6103e884614a6e565b6128669190614a4c565b905060006128748285614a8d565b919791965090945050505050565b610c4f6123e1565b7f4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd91435460ff16156128c2576128bd83612fc9565b505050565b826001600160a01b03166352d1902d6040518163ffffffff1660e01b815260040160206040518083038186803b1580156128fb57600080fd5b505afa92505050801561292b575060408051601f3d908101601f1916820190925261292891810190614693565b60015b61299d5760405162461bcd60e51b815260206004820152602e60248201527f45524331393637557067726164653a206e657720696d706c656d656e7461746960448201527f6f6e206973206e6f7420555550530000000000000000000000000000000000006064820152608401610870565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc8114612a325760405162461bcd60e51b815260206004820152602960248201527f45524331393637557067726164653a20756e737570706f727465642070726f7860448201527f6961626c655555494400000000000000000000000000000000000000000000006064820152608401610870565b506128bd838383613087565b612a466130ac565b60cd805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b60ff80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600080612aef84846130fe565b9050612bdf612b046101206101008688614a0a565b612b0d91614ad9565b612b1d6101406101208789614a0a565b612b2691614ad9565b86866001818110612b3957612b39614bc2565b600154604080517fbf7e214f0000000000000000000000000000000000000000000000000000000081529051949092013560f81c938893506001600160a01b039091169163bf7e214f916004808301926020929190829003018186803b158015612ba257600080fd5b505afa158015612bb6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612bda91906143cd565b61331f565b612be984846134a6565b600160009054906101000a90046001600160a01b03166001600160a01b03166311da60b46040518163ffffffff1660e01b8152600401600060405180830381600087803b158015612c3957600080fd5b505af1158015612c4d573d6000803e3d6000fd5b50506000546201000090046001600160a01b0316915063d1aabf0f9050612c78604060108789614a0a565b336040518463ffffffff1660e01b8152600401612c979392919061489e565b600060405180830381600087803b158015612cb157600080fd5b505af1158015612cc5573d6000803e3d6000fd5b5050505060019150505b92915050565b6000612ce183836135de565b9392505050565b612cf06125e3565b60cd805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258612a733390565b600054610100900460ff16612d905760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b6064820152608401610870565b610c6261409a565b600054610100900460ff16610c625760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b6064820152608401610870565b600054610100900460ff16612e6e5760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b6064820152608401610870565b610c6261410e565b600054610100900460ff16612ee15760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b6064820152608401610870565b610c62614180565b600054610100900460ff16612f545760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b6064820152608401610870565b600280546001600160a01b03199081166001600160a01b039586161790915560018054821693851693909317909255600080547fffffffffffffffffffff0000000000000000000000000000000000000000ffff16620100009290941691820293909317909255600380549091169091179055565b6001600160a01b0381163b6130465760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201527f6f74206120636f6e7472616374000000000000000000000000000000000000006064820152608401610870565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc80546001600160a01b0319166001600160a01b0392909216919091179055565b613090836141f7565b60008251118061309d5750805b156128bd57611b908383614237565b60cd5460ff16610c625760405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f74207061757365640000000000000000000000006044820152606401610870565b60003681613110604060108688614a0a565b909250905036600061312660606040888a614a0a565b909250905036600061313c60c060608a8c614a0a565b9092509050600061315160e060c08b8d614a0a565b61315a91614ad9565b9050600061316d61010060e08c8e614a0a565b61317691614ad9565b6000546040517f1d06b1cd0000000000000000000000000000000000000000000000000000000081529192506201000090046001600160a01b031690631d06b1cd906131c8908b908b90600401614882565b60206040518083038186803b1580156131e057600080fd5b505afa1580156131f4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906132189190614671565b156132655760405162461bcd60e51b815260206004820152601760248201527f507562206b657920616c726561647920696e20757365640000000000000000006044820152606401610870565b4381116132da5760405162461bcd60e51b815260206004820152603760248201527f426c6f636b2068656967687420746f6f206f6c642c20706c656173652067656e60448201527f65726174652061206e6577207472616e73616374696f6e0000000000000000006064820152608401610870565b6040516132f990899089908990899089908990899089906020016147a4565b604051602081830303815290604052805190602001209850505050505050505092915050565b60006040518060400160405280601c81526020017f19457468657265756d205369676e6564204d6573736167653a0a33320000000081525090506000818460405160200161336e9291906147f6565b60408051601f198184030181528282528051602091820120600080855291840180845281905260ff89169284019290925260608301899052608083018a90529092509060019060a0016020604051602081039080840390855afa1580156133d9573d6000803e3d6000fd5b505050602060405103519050836001600160a01b0316816001600160a01b0316146134465760405162461bcd60e51b815260206004820152600e60248201527f4e6f7420617574686f72697a65640000000000000000000000000000000000006044820152606401610870565b6001600160a01b03811661349c5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610870565b5050505050505050565b3660006134b7604060108587614a0a565b90925090503660006134cd606060408789614a0a565b90925090503660006134e360c06060898b614a0a565b909250905060006134f860e060c08a8c614a0a565b61350191614ad9565b6002546040517f228951180000000000000000000000000000000000000000000000000000000081529192506001600160a01b0316906322895118906801bc16d674ec80000090613562908b908b908b908b908b908b908b9060040161490e565b6000604051808303818588803b15801561357b57600080fd5b505af115801561358f573d6000803e3d6000fd5b50505050507f9a004ae54208b2915f0432cf87ff8ccb1ccab11e27277e52c2df915e3f4b596587878787336040516135cb9594939291906148cb565b60405180910390a1505050505050505050565b6000336135ef6020600c8587614a0a565b6135f891614aa4565b60601c146136485760405162461bcd60e51b815260206004820152601e60248201527f4e6f7420616c6c6f77656420746f206d616b65207468697320747261646500006044820152606401610870565b43613657608060608587614a0a565b61366091614ad9565b116136ad5760405162461bcd60e51b815260206004820152601160248201527f54726164652068617320657870697265640000000000000000000000000000006044820152606401610870565b6000805b6136bf60a060808688614a0a565b6136c891614ad9565b811015613ff457600085856136de8460e0614a6e565b6136e99060a0614a34565b906136f58560e0614a6e565b6137009060c0614a34565b9261370d93929190614a0a565b61371691614ad9565b9050600086866137278560e0614a6e565b6137329060c0614a34565b9061373e8660e0614a6e565b6137499060e0614a34565b9261375693929190614a0a565b61375f91614ad9565b9050600087876137708660e0614a6e565b61377b9060e0614a34565b906137878760e0614a6e565b61379390610100614a34565b926137a093929190614a0a565b6137a991614ad9565b9050600088886137ba8760e0614a6e565b6137c690610100614a34565b906137d28860e0614a6e565b6137de90610120614a34565b926137eb93929190614a0a565b6137f491614ad9565b9050600089896138058860e0614a6e565b61381190610160614a34565b9061381d8960e0614a6e565b61382990610174614a34565b9261383693929190614a0a565b61383f91614aa4565b60601c905060008a8a6138538960e0614a6e565b61385f90610178614a34565b9061386b8a60e0614a6e565b61387790610180614a34565b9261388493929190614a0a565b61388d91614af7565b60c01c90504383116138e15760405162461bcd60e51b815260206004820152601360248201527f4c697374696e67206861732065787069726564000000000000000000000000006044820152606401610870565b6000546040517f6352211e000000000000000000000000000000000000000000000000000000008152600481018790526001600160a01b03848116926201000090041690636352211e9060240160206040518083038186803b15801561394657600080fd5b505afa15801561395a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061397e91906143cd565b6001600160a01b0316146139d45760405162461bcd60e51b815260206004820152600960248201527f4e6f74206f776e657200000000000000000000000000000000000000000000006044820152606401610870565b60008581526004602052604090205467ffffffffffffffff828116911614613a3e5760405162461bcd60e51b815260206004820152600f60248201527f496e636f7272656374206e6f6e636500000000000000000000000000000000006044820152606401610870565b6000858152600460205260408120805467ffffffffffffffff1691613a6283614b84565b91906101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550508588613a959190614a34565b6040805160208082018990528183018890526060820187905260c085901b7fffffffffffffffff0000000000000000000000000000000000000000000000001660808301528251606881840301815260889092019092528051910120909850613bbe8c8c613b048b60e0614a6e565b613b1090610140614a34565b90613b1c8c60e0614a6e565b613b2890610160614a34565b92613b3593929190614a0a565b613b3e91614ad9565b8d8d613b4b8c60e0614a6e565b613b5790610120614a34565b90613b638d60e0614a6e565b613b6f90610140614a34565b92613b7c93929190614a0a565b613b8591614ad9565b8e8e613b928d60e0614a6e565b613b9e90610174614a34565b818110613bad57613bad614bc2565b919091013560f81c9050848761331f565b600080546040517f410b2aa800000000000000000000000000000000000000000000000000000000815260048101899052620100009091046001600160a01b03169063410b2aa89060240160206040518083038186803b158015613c2157600080fd5b505afa158015613c35573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613c599190614693565b90508781811115613deb57600154604080517f3a4b45320000000000000000000000000000000000000000000000000000000081529051612710926001600160a01b031691633a4b4532916004808301926020929190829003018186803b158015613cc357600080fd5b505afa158015613cd7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613cfb9190614693565b613d05848c614a8d565b613d0f9190614a6e565b613d199190614a4c565b613d23908a614a8d565b9050600160009054906101000a90046001600160a01b03166001600160a01b0316634162169f6040518163ffffffff1660e01b815260040160206040518083038186803b158015613d7357600080fd5b505afa158015613d87573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613dab91906143cd565b6001600160a01b03166108fc613dc1838c614a8d565b6040518115909202916000818181858888f19350505050158015613de9573d6000803e3d6000fd5b505b6801a055690d9db800008111613e435760405162461bcd60e51b815260206004820152600e60248201527f4e6f646520746f6f2063686561700000000000000000000000000000000000006044820152606401610870565b6040516001600160a01b0386169082156108fc029083906000818181858888f19350505050158015613e79573d6000803e3d6000fd5b506000546040517f42842e0e0000000000000000000000000000000000000000000000000000000081526001600160a01b038781166004830152336024830152604482018b905262010000909204909116906342842e0e90606401600060405180830381600087803b158015613eee57600080fd5b505af1158015613f02573d6000803e3d6000fd5b50506000546040517f569b72c8000000000000000000000000000000000000000000000000000000008152600481018c9052602481018d9052620100009091046001600160a01b0316925063569b72c89150604401600060405180830381600087803b158015613f7157600080fd5b505af1158015613f85573d6000803e3d6000fd5b5050604080518b81526001600160a01b03891660208201523381830152606081018d905290517fd67aa09958a1637024f01175f2caa4fea588289bf2f5c16ed6feddabc1803baf9350908190036080019150a15050505050505050508080613fec90614b69565b9150506136b1565b60006140038560a08189614a0a565b61401160806060898b614a0a565b61401a91614ad9565b60405161402e939291903390602001614778565b604051602081830303815290604052805190602001209050614090868660409060609261405d93929190614a0a565b61406691614ad9565b61407460406020898b614a0a565b61407d91614ad9565b88886001818110612b3957612b39614bc2565b5090949350505050565b600054610100900460ff166141055760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b6064820152608401610870565b610c6233612a90565b600054610100900460ff166141795760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b6064820152608401610870565b6001606955565b600054610100900460ff166141eb5760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b6064820152608401610870565b60cd805460ff19169055565b61420081612fc9565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b60606001600160a01b0383163b61429f5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6044820152651b9d1c9858dd60d21b6064820152608401610870565b600080846001600160a01b0316846040516142ba91906147da565b600060405180830381855af49150503d80600081146142f5576040519150601f19603f3d011682016040523d82523d6000602084013e6142fa565b606091505b50915091506143228282604051806060016040528060278152602001614c046027913961432b565b95945050505050565b6060831561433a575081612ce1565b82511561434a5782518084602001fd5b8160405162461bcd60e51b8152600401610870919061495f565b60008083601f84011261437657600080fd5b50813567ffffffffffffffff81111561438e57600080fd5b6020830191508360208260051b85010111156143a957600080fd5b9250929050565b6000602082840312156143c257600080fd5b8135612ce181614bee565b6000602082840312156143df57600080fd5b8151612ce181614bee565b600080604083850312156143fd57600080fd5b823561440881614bee565b9150602083013561441881614bee565b809150509250929050565b60008060006060848603121561443857600080fd5b833561444381614bee565b9250602084013561445381614bee565b9150604084013561446381614bee565b809150509250925092565b6000806040838503121561448157600080fd5b823561448c81614bee565b915060208381013567ffffffffffffffff808211156144aa57600080fd5b818601915086601f8301126144be57600080fd5b8135818111156144d0576144d0614bd8565b6144e2601f8201601f191685016149d9565b915080825287848285010111156144f857600080fd5b80848401858401376000848284010152508093505050509250929050565b6000806020838503121561452957600080fd5b823567ffffffffffffffff81111561454057600080fd5b61454c85828601614364565b90969095509350505050565b6000806000806040858703121561456e57600080fd5b843567ffffffffffffffff8082111561458657600080fd5b61459288838901614364565b909650945060208701359150808211156145ab57600080fd5b506145b887828801614364565b95989497509550505050565b600060208083850312156145d757600080fd5b825167ffffffffffffffff808211156145ef57600080fd5b818501915085601f83011261460357600080fd5b81518181111561461557614615614bd8565b8060051b91506146268483016149d9565b8181528481019084860184860187018a101561464157600080fd5b600095505b83861015614664578051835260019590950194918601918601614646565b5098975050505050505050565b60006020828403121561468357600080fd5b81518015158114612ce157600080fd5b6000602082840312156146a557600080fd5b5051919050565b6000602082840312156146be57600080fd5b5035919050565b81835260007f07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8311156146f757600080fd5b8260051b8083602087013760009401602001938452509192915050565b600081518084526020808501945080840160005b8381101561474457815187529582019590820190600101614728565b509495945050505050565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b8385823790920190815260609190911b6bffffffffffffffffffffffff19166020820152603401919050565b87898237600088820160008152878982376000908801908152858782379094019283525060208201526040019695505050505050565b600082516147ec818460208701614b3d565b9190910192915050565b60008351614808818460208801614b3d565b9190910191825250602001919050565b60408152600061482c6040830186886146c5565b828103602084015261483f8185876146c5565b979650505050505050565b602081526000612ce16020830184614714565b6040815260006148706040830185614714565b82810360208401526143228185614714565b60208152600061489660208301848661474f565b949350505050565b6040815260006148b260408301858761474f565b90506001600160a01b0383166020830152949350505050565b6060815260006148df60608301878961474f565b82810360208401526148f281868861474f565b9150506001600160a01b03831660408301529695505050505050565b60808152600061492260808301898b61474f565b828103602084015261493581888a61474f565b9050828103604084015261494a81868861474f565b91505082606083015298975050505050505050565b602081526000825180602084015261497e816040850160208701614b3d565b601f01601f19169190910160400192915050565b6000808335601e198436030181126149a957600080fd5b83018035915067ffffffffffffffff8211156149c457600080fd5b6020019150368190038213156143a957600080fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715614a0257614a02614bd8565b604052919050565b60008085851115614a1a57600080fd5b83861115614a2757600080fd5b5050820193919092039150565b60008219821115614a4757614a47614bac565b500190565b600082614a6957634e487b7160e01b600052601260045260246000fd5b500490565b6000816000190483118215151615614a8857614a88614bac565b500290565b600082821015614a9f57614a9f614bac565b500390565b6bffffffffffffffffffffffff198135818116916014851015614ad15780818660140360031b1b83161692505b505092915050565b80356020831015612ccf57600019602084900360031b1b1692915050565b7fffffffffffffffff0000000000000000000000000000000000000000000000008135818116916008851015614ad15760089490940360031b84901b1690921692915050565b60005b83811015614b58578181015183820152602001614b40565b83811115611b905750506000910152565b6000600019821415614b7d57614b7d614bac565b5060010190565b600067ffffffffffffffff80831681811415614ba257614ba2614bac565b6001019392505050565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114610c4f57600080fdfe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a2646970667358221220534c4542b1b07962e73e6c63208fdf6247bd4ab18e30ff3c1400a9a1635e152964736f6c63430008070033
Deployed Bytecode
0x6080604052600436106102bb5760003560e01c80637299e0e61161016e578063c0c53b8b116100cb578063e94ad65b1161007f578063f2fde38b11610064578063f2fde38b14610780578063fbfa77cf146107a0578063fe96973a146107c057600080fd5b8063e94ad65b1461074b578063ecbfc0771461076b57600080fd5b8063d50efa7e116100b0578063d50efa7e146106e4578063d56d229d14610704578063e5a723531461072a57600080fd5b8063c0c53b8b146106ad578063d1812a7b146106cd57600080fd5b806386635c321161012257806392eb229c1161010757806392eb229c1461065d578063a5eb79711461067a578063c08a20811461069a57600080fd5b806386635c321461061f5780638da5cb5b1461063f57600080fd5b80637bc4a543116101535780637bc4a543146105c05780637e59552a146105ed5780638456cb591461060a57600080fd5b80637299e0e61461058d57806377d7fd19146105a057600080fd5b80633f4ba83a1161021c57806356346051116101d05780635c975abb116101b55780635c975abb146105405780636637b88214610558578063715018a61461057857600080fd5b806356346051146105095780635bf8633a1461052057600080fd5b80634f1ef286116102015780634f1ef286146104c157806352d1902d146104d457806353df88c0146104e957600080fd5b80633f4ba83a146104735780634162169f1461048857600080fd5b80631659508f11610273578063291838721161025857806329183872146104055780632c3fcea2146104255780633659cfe61461045357600080fd5b80631659508f146103be578063234397c3146103d457600080fd5b80630962ef79116102a45780630962ef79146103125780630f20b94c14610332578063141a468c1461036e57600080fd5b80630356783b146102c05780630840ba72146102f0575b600080fd5b3480156102cc57600080fd5b50610137546102db9060ff1681565b60405190151581526020015b60405180910390f35b3480156102fc57600080fd5b5061031061030b3660046143ea565b6107e0565b005b34801561031e57600080fd5b5061031061032d3660046146ac565b6108ed565b34801561033e57600080fd5b5061036061034d3660046146ac565b6101346020526000908152604090205481565b6040519081526020016102e7565b34801561037a57600080fd5b506103a56103893660046146ac565b60046020526000908152604090205467ffffffffffffffff1681565b60405167ffffffffffffffff90911681526020016102e7565b3480156103ca57600080fd5b506103606103e881565b3480156103e057600080fd5b506102db6103ef3660046146ac565b6101356020526000908152604090205460ff1681565b34801561041157600080fd5b50610310610420366004614516565b61095e565b34801561043157600080fd5b506104456104403660046143b0565b610a06565b6040516102e792919061485d565b34801561045f57600080fd5b5061031061046e3660046143b0565b610ad6565b34801561047f57600080fd5b50610310610c52565b34801561049457600080fd5b50610131546104a9906001600160a01b031681565b6040516001600160a01b0390911681526020016102e7565b6103106104cf36600461446e565b610c64565b3480156104e057600080fd5b50610360610dd1565b3480156104f557600080fd5b506103106105043660046143b0565b610e96565b34801561051557600080fd5b506103606101335481565b34801561052c57600080fd5b506003546104a9906001600160a01b031681565b34801561054c57600080fd5b5060cd5460ff166102db565b34801561056457600080fd5b506103106105733660046143b0565b610efa565b34801561058457600080fd5b50610310610f0b565b6102db61059b366004614516565b610f1d565b3480156105ac57600080fd5b506103106105bb3660046146ac565b61129f565b3480156105cc57600080fd5b506105e06105db3660046143b0565b611381565b6040516102e7919061484a565b3480156105f957600080fd5b506103606801c9f78d2893e4000081565b34801561061657600080fd5b50610310611562565b34801561062b57600080fd5b5061031061063a3660046143b0565b611572565b34801561064b57600080fd5b5060ff546001600160a01b03166104a9565b34801561066957600080fd5b506103606801bc16d674ec80000081565b34801561068657600080fd5b50610310610695366004614558565b61169e565b6102db6106a8366004614516565b6119e2565b3480156106b957600080fd5b506103106106c8366004614423565b611a50565b3480156106d957600080fd5b506103606101365481565b3480156106f057600080fd5b506103106106ff366004614558565b611b96565b34801561071057600080fd5b506000546104a9906201000090046001600160a01b031681565b34801561073657600080fd5b50610132546104a9906001600160a01b031681565b34801561075757600080fd5b506002546104a9906001600160a01b031681565b34801561077757600080fd5b50610310611f0a565b34801561078c57600080fd5b5061031061079b3660046143b0565b611f9e565b3480156107ac57600080fd5b506001546104a9906001600160a01b031681565b3480156107cc57600080fd5b506103106107db3660046146ac565b61202b565b600054600390610100900460ff16158015610802575060005460ff8083169116105b6108795760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a656400000000000000000000000000000000000060648201526084015b60405180910390fd5b6000805461ffff191660ff8316176101001790556108956123e1565b61089e8361243b565b6108a7826124fc565b6000805461ff001916905560405160ff821681527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a1505050565b600260695414156109405760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610870565b600260695561094d6125e3565b61095681612636565b506001606955565b600260695414156109b15760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610870565b60026069556109be6125e3565b60005b818110156109fc576109ea8383838181106109de576109de614bc2565b90506020020135612636565b806109f481614b69565b9150506109c1565b5050600160695550565b6060806000610a1484611381565b90506000815167ffffffffffffffff811115610a3257610a32614bd8565b604051908082528060200260200182016040528015610a5b578160200160208202803683370190505b50905060005b8251811015610acb576000838281518110610a7e57610a7e614bc2565b602002602001015190506000610a93826127c9565b90508091505080848481518110610aac57610aac614bc2565b602002602001018181525050505080610ac490614b69565b9050610a61565b509094909350915050565b306001600160a01b037f0000000000000000000000002dad78e21bb2315d77a4ca07cb000fd8e4523449161415610b645760405162461bcd60e51b815260206004820152602c60248201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060448201526b19195b1959d85d1958d85b1b60a21b6064820152608401610870565b7f0000000000000000000000002dad78e21bb2315d77a4ca07cb000fd8e45234496001600160a01b0316610bbf7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc546001600160a01b031690565b6001600160a01b031614610c2a5760405162461bcd60e51b815260206004820152602c60248201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060448201526b6163746976652070726f787960a01b6064820152608401610870565b610c3381612882565b60408051600080825260208201909252610c4f9183919061288a565b50565b610c5a6123e1565b610c62612a3e565b565b306001600160a01b037f0000000000000000000000002dad78e21bb2315d77a4ca07cb000fd8e4523449161415610cf25760405162461bcd60e51b815260206004820152602c60248201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060448201526b19195b1959d85d1958d85b1b60a21b6064820152608401610870565b7f0000000000000000000000002dad78e21bb2315d77a4ca07cb000fd8e45234496001600160a01b0316610d4d7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc546001600160a01b031690565b6001600160a01b031614610db85760405162461bcd60e51b815260206004820152602c60248201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060448201526b6163746976652070726f787960a01b6064820152608401610870565b610dc182612882565b610dcd8282600161288a565b5050565b6000306001600160a01b037f0000000000000000000000002dad78e21bb2315d77a4ca07cb000fd8e45234491614610e715760405162461bcd60e51b815260206004820152603860248201527f555550535570677261646561626c653a206d757374206e6f742062652063616c60448201527f6c6564207468726f7567682064656c656761746563616c6c00000000000000006064820152608401610870565b507f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc90565b610131546001600160a01b03163314610ef15760405162461bcd60e51b815260206004820152601860248201527f496e73756666696369656e74207065726d697373696f6e7300000000000000006044820152606401610870565b610c4f816124fc565b610f026123e1565b610c4f8161243b565b610f136123e1565b610c626000612a90565b600060026069541415610f725760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610870565b6002606955610f7f6125e3565b6000805b8381101561123f576000858583818110610f9f57610f9f614bc2565b9050602002810190610fb19190614992565b9050116110005760405162461bcd60e51b815260206004820152601360248201527f456d70747920646174612070726f7669646564000000000000000000000000006044820152606401610870565b600085858381811061101457611014614bc2565b90506020028101906110269190614992565b600081811061103757611037614bc2565b909101356001600160f81b0319169150507f01000000000000000000000000000000000000000000000000000000000000008114156111535785858381811061108257611082614bc2565b90506020028101906110949190614992565b90506101401461110c5760405162461bcd60e51b815260206004820152602360248201527f457468333220436f6e74726163743a20496e76616c69642044617461204c656e60448201527f67746800000000000000000000000000000000000000000000000000000000006064820152608401610870565b61113886868481811061112157611121614bc2565b90506020028101906111339190614992565b612ae2565b5061114c6801bc16d674ec80000084614a34565b925061122c565b6001600160f81b031981167f0200000000000000000000000000000000000000000000000000000000000000141561118a5761122c565b6001600160f81b031981167f040000000000000000000000000000000000000000000000000000000000000014156111c15761122c565b6001600160f81b031981167f0600000000000000000000000000000000000000000000000000000000000000141561122c5761121f86868481811061120857611208614bc2565b905060200281019061121a9190614992565b612cd5565b6112299084614a34565b92505b508061123781614b69565b915050610f83565b5080341461128f5760405162461bcd60e51b815260206004820152601f60248201527f496e636f727265637420457468657220616d6f756e742070726f7669646564006044820152606401610870565b6001915050600160695592915050565b6112a76125e3565b6003546001600160a01b031633146113105760405162461bcd60e51b815260206004820152602660248201527f4d6573736167652073656e646572206973206e6f7420746865204e667420636f6044820152651b9d1c9858dd60d21b6064820152608401610870565b600160009054906101000a90046001600160a01b03166001600160a01b0316630dce7b1d6040518163ffffffff1660e01b8152600401600060405180830381600087803b15801561136057600080fd5b505af1158015611374573d6000803e3d6000fd5b50505050610c4f81612636565b600080546040517f8462151c0000000000000000000000000000000000000000000000000000000081526001600160a01b038481166004830152606093926201000090041690638462151c9060240160006040518083038186803b1580156113e857600080fd5b505afa1580156113fc573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261142491908101906145c4565b90506000805b825181101561148c57600083828151811061144757611447614bc2565b6020026020010151905061013460008281526020019081526020016000205460001461147b578261147781614b69565b9350505b5061148581614b69565b905061142a565b5060008167ffffffffffffffff8111156114a8576114a8614bd8565b6040519080825280602002602001820160405280156114d1578160200160208202803683370190505b5090506000805b84518110156115575760008582815181106114f5576114f5614bc2565b602002602001015190506101346000828152602001908152602001600020546000146115465780848461152781614b69565b95508151811061153957611539614bc2565b6020026020010181815250505b5061155081614b69565b90506114d8565b509095945050505050565b61156a6123e1565b610c62612ce8565b610131546001600160a01b031633146115cd5760405162461bcd60e51b815260206004820152601860248201527f496e73756666696369656e74207065726d697373696f6e7300000000000000006044820152606401610870565b61013680546000918290556101338054919283926115ec908490614a8d565b90915550506101325460405163b7760c8f60e01b8152600481018390526001600160a01b0384811660248301529091169063b7760c8f90604401600060405180830381600087803b15801561164057600080fd5b505af1158015611654573d6000803e3d6000fd5b5050604080516001600160a01b0386168152602081018590527e07c895d29b5a4bd97ba401653f766d290936a4c65335da2e4c5c5a9a0239f1935001905060405180910390a15050565b610131546001600160a01b031633146116f95760405162461bcd60e51b815260206004820152601860248201527f496e73756666696369656e74207065726d697373696f6e7300000000000000006044820152606401610870565b8281146117485760405162461bcd60e51b815260206004820152600f60248201527f706172616d65746572206572726f7200000000000000000000000000000000006044820152606401610870565b60008060005b858110156118fe57600087878381811061176a5761176a614bc2565b6020908102929092013560008181526101359093526040909220549192505060ff166117d85760405162461bcd60e51b815260206004820152601460248201527f746f6b656e4964206e6f74207265706f727465640000000000000000000000006044820152606401610870565b60008181526101346020526040902054806118355760405162461bcd60e51b815260206004820152601360248201527f746f6b656e4964206d617920636c61696d6564000000000000000000000000006044820152606401610870565b61183f8185614a34565b9350600087878581811061185557611855614bc2565b9050602002013590506801bc16d674ec800000811015801561188057506801c9f78d2893e400008111155b6118cc5760405162461bcd60e51b815260206004820152601560248201527f77726f6e67207265706f7274656420616d6f756e7400000000000000000000006044820152606401610870565b6000838152610134602052604090208190556118e88187614a34565b9550505050806118f790614b69565b905061174e565b508061013360008282546119129190614a8d565b909155505061013254610133546001600160a01b0390911631906119369084614a34565b11156119845760405162461bcd60e51b815260206004820152601460248201527f616d6f756e747320636865636b206661696c65640000000000000000000000006044820152606401610870565b8161013360008282546119979190614a34565b90915550506040517f902f85cddc80faaf4aec46a3584d439705d48e6ef77e1fcd08d275daa031b9a1906119d2908890889088908890614818565b60405180910390a1505050505050565b600060026069541415611a375760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610870565b6002606955611a446125e3565b50600160695515919050565b600054610100900460ff1615808015611a705750600054600160ff909116105b80611a8a5750303b158015611a8a575060005460ff166001145b611afc5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a65640000000000000000000000000000000000006064820152608401610870565b6000805460ff191660011790558015611b1f576000805461ff0019166101001790555b611b27612d25565b611b2f612d98565b611b37612e03565b611b3f612e76565b611b4a848484612ee9565b8015611b90576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b50505050565b610131546001600160a01b03163314611bf15760405162461bcd60e51b815260206004820152601860248201527f496e73756666696369656e74207065726d697373696f6e7300000000000000006044820152606401610870565b828114611c405760405162461bcd60e51b815260206004820152600f60248201527f706172616d65746572206572726f7200000000000000000000000000000000006044820152606401610870565b6000805b84811015611e3f576000868683818110611c6057611c60614bc2565b6020908102929092013560008181526101359093526040909220549192505060ff1615611ccf5760405162461bcd60e51b815260206004820152601860248201527f746f6b656e496420616c7265616479207265706f7274656400000000000000006044820152606401610870565b6000546040517f19ab5df500000000000000000000000000000000000000000000000000000000815260048101839052620100009091046001600160a01b0316906319ab5df59060240160206040518083038186803b158015611d3157600080fd5b505afa158015611d45573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d699190614693565b506000858584818110611d7e57611d7e614bc2565b9050602002013590506801bc16d674ec8000008110158015611da957506801c9f78d2893e400008111155b611df55760405162461bcd60e51b815260206004820152601560248201527f77726f6e67207265706f7274656420616d6f756e7400000000000000000000006044820152606401610870565b600082815261013460205260409020819055611e118185614a34565b60009283526101356020526040909220805460ff19166001179055509150611e3881614b69565b9050611c44565b5061013254610133546001600160a01b039091163190611e5f9083614a34565b1115611ead5760405162461bcd60e51b815260206004820152601460248201527f616d6f756e747320636865636b206661696c65640000000000000000000000006044820152606401610870565b806101336000828254611ec09190614a34565b90915550506040517fff9cdd487ba60712d8e8a2890637b43e36cdbd85ea1188da739d9520d3bce1e890611efb908790879087908790614818565b60405180910390a15050505050565b610131546001600160a01b03163314611f655760405162461bcd60e51b815260206004820152601860248201527f496e73756666696369656e74207065726d697373696f6e7300000000000000006044820152606401610870565b610137805460ff191660011790556040517f91c1494b0606674e895d6bea9ffaa8de93e2706c8792f6a029bee70a0f3ccea090600090a1565b611fa66123e1565b6001600160a01b0381166120225760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610870565b610c4f81612a90565b6101375460ff1661207e5760405162461bcd60e51b815260206004820152601360248201527f436c61696d206e6f74207475726e6564206f6e000000000000000000000000006044820152606401610870565b33600061208a82611381565b90508051600014156120de5760405162461bcd60e51b815260206004820152601960248201527f6e6f20746f6b656e49642063616e20626520636c61696d6564000000000000006044820152606401610870565b6000806000600160009054906101000a90046001600160a01b03166001600160a01b03166311da60b46040518163ffffffff1660e01b8152600401600060405180830381600087803b15801561213357600080fd5b505af1158015612147573d6000803e3d6000fd5b5050505060005b84518110156123215786811061216357612321565b600085828151811061217757612177614bc2565b602090810291909101810151600081815261013590925260409091205490915060ff166121e65760405162461bcd60e51b815260206004820152601460248201527f746f6b656e4964206e6f74207265706f727465640000000000000000000000006044820152606401610870565b60008181526101346020526040902054806122435760405162461bcd60e51b815260206004820152601560248201527f746f6b656e496420616c726561647920636c61696d00000000000000000000006044820152606401610870565b61224c826127c9565b6000848152610134602052604081208190556101368054929850929650869291612277908490614a34565b9091555061228790508587614a34565b955061229282612636565b6000546040517fc2c3a60d00000000000000000000000000000000000000000000000000000000815260048101849052620100009091046001600160a01b03169063c2c3a60d90602401600060405180830381600087803b1580156122f657600080fd5b505af115801561230a573d6000803e3d6000fd5b5050505050508061231a90614b69565b905061214e565b508261013360008282546123359190614a8d565b90915550506101325460405163b7760c8f60e01b8152600481018590526001600160a01b0387811660248301529091169063b7760c8f90604401600060405180830381600087803b15801561238957600080fd5b505af115801561239d573d6000803e3d6000fd5b5050604080516001600160a01b0389168152602081018790527fb347ff5700d04a99e284ad9bc43ec731719b8d0f74da35aa3a71ab9096f778b493500190506119d2565b60ff546001600160a01b03163314610c625760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610870565b6001600160a01b0381166124915760405162461bcd60e51b815260206004820152601c60248201527f44414f20616464726573732070726f766964656420696e76616c6964000000006044820152606401610870565b61013154604080516001600160a01b03928316815291831660208301527ffcde6c827a52b0870bc44ed9b10212272e18c9ea1725b772e9b493750afd8da4910160405180910390a161013180546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b0381166125785760405162461bcd60e51b815260206004820152602a60248201527f6e6f64654361706974616c5661756c745f20616464726573732070726f76696460448201527f656420696e76616c6964000000000000000000000000000000000000000000006064820152608401610870565b61013254604080516001600160a01b03928316815291831660208301527f2a48628ab3124a618310bfee2a07f87fe91088ceda208f4c5db630b901c04a22910160405180910390a161013280546001600160a01b0319166001600160a01b0392909216919091179055565b60cd5460ff1615610c625760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610870565b6001546040517f0962ef79000000000000000000000000000000000000000000000000000000008152600481018390526001600160a01b0390911690630962ef7990602401600060405180830381600087803b15801561269557600080fd5b505af11580156126a9573d6000803e3d6000fd5b5050600054600154604080517fe88b72550000000000000000000000000000000000000000000000000000000081529051620100009093046001600160a01b039081169550634cf5a3449450869392169163e88b725591600480820192602092909190829003018186803b15801561272057600080fd5b505afa158015612734573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906127589190614693565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e085901b16815260048101929092526024820152604401600060405180830381600087803b1580156127ae57600080fd5b505af11580156127c2573d6000803e3d6000fd5b5050505050565b6000818152610134602052604081205481906801bc16d674ec8000008110156128345760405162461bcd60e51b815260206004820152601b60248201527f4e6f7420656e6f756768207265776172647320746f20636c61696d00000000006044820152606401610870565b60006128496801bc16d674ec80000083614a8d565b9050600061271061285c6103e884614a6e565b6128669190614a4c565b905060006128748285614a8d565b919791965090945050505050565b610c4f6123e1565b7f4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd91435460ff16156128c2576128bd83612fc9565b505050565b826001600160a01b03166352d1902d6040518163ffffffff1660e01b815260040160206040518083038186803b1580156128fb57600080fd5b505afa92505050801561292b575060408051601f3d908101601f1916820190925261292891810190614693565b60015b61299d5760405162461bcd60e51b815260206004820152602e60248201527f45524331393637557067726164653a206e657720696d706c656d656e7461746960448201527f6f6e206973206e6f7420555550530000000000000000000000000000000000006064820152608401610870565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc8114612a325760405162461bcd60e51b815260206004820152602960248201527f45524331393637557067726164653a20756e737570706f727465642070726f7860448201527f6961626c655555494400000000000000000000000000000000000000000000006064820152608401610870565b506128bd838383613087565b612a466130ac565b60cd805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b60ff80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600080612aef84846130fe565b9050612bdf612b046101206101008688614a0a565b612b0d91614ad9565b612b1d6101406101208789614a0a565b612b2691614ad9565b86866001818110612b3957612b39614bc2565b600154604080517fbf7e214f0000000000000000000000000000000000000000000000000000000081529051949092013560f81c938893506001600160a01b039091169163bf7e214f916004808301926020929190829003018186803b158015612ba257600080fd5b505afa158015612bb6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612bda91906143cd565b61331f565b612be984846134a6565b600160009054906101000a90046001600160a01b03166001600160a01b03166311da60b46040518163ffffffff1660e01b8152600401600060405180830381600087803b158015612c3957600080fd5b505af1158015612c4d573d6000803e3d6000fd5b50506000546201000090046001600160a01b0316915063d1aabf0f9050612c78604060108789614a0a565b336040518463ffffffff1660e01b8152600401612c979392919061489e565b600060405180830381600087803b158015612cb157600080fd5b505af1158015612cc5573d6000803e3d6000fd5b5050505060019150505b92915050565b6000612ce183836135de565b9392505050565b612cf06125e3565b60cd805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258612a733390565b600054610100900460ff16612d905760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b6064820152608401610870565b610c6261409a565b600054610100900460ff16610c625760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b6064820152608401610870565b600054610100900460ff16612e6e5760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b6064820152608401610870565b610c6261410e565b600054610100900460ff16612ee15760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b6064820152608401610870565b610c62614180565b600054610100900460ff16612f545760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b6064820152608401610870565b600280546001600160a01b03199081166001600160a01b039586161790915560018054821693851693909317909255600080547fffffffffffffffffffff0000000000000000000000000000000000000000ffff16620100009290941691820293909317909255600380549091169091179055565b6001600160a01b0381163b6130465760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201527f6f74206120636f6e7472616374000000000000000000000000000000000000006064820152608401610870565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc80546001600160a01b0319166001600160a01b0392909216919091179055565b613090836141f7565b60008251118061309d5750805b156128bd57611b908383614237565b60cd5460ff16610c625760405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f74207061757365640000000000000000000000006044820152606401610870565b60003681613110604060108688614a0a565b909250905036600061312660606040888a614a0a565b909250905036600061313c60c060608a8c614a0a565b9092509050600061315160e060c08b8d614a0a565b61315a91614ad9565b9050600061316d61010060e08c8e614a0a565b61317691614ad9565b6000546040517f1d06b1cd0000000000000000000000000000000000000000000000000000000081529192506201000090046001600160a01b031690631d06b1cd906131c8908b908b90600401614882565b60206040518083038186803b1580156131e057600080fd5b505afa1580156131f4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906132189190614671565b156132655760405162461bcd60e51b815260206004820152601760248201527f507562206b657920616c726561647920696e20757365640000000000000000006044820152606401610870565b4381116132da5760405162461bcd60e51b815260206004820152603760248201527f426c6f636b2068656967687420746f6f206f6c642c20706c656173652067656e60448201527f65726174652061206e6577207472616e73616374696f6e0000000000000000006064820152608401610870565b6040516132f990899089908990899089908990899089906020016147a4565b604051602081830303815290604052805190602001209850505050505050505092915050565b60006040518060400160405280601c81526020017f19457468657265756d205369676e6564204d6573736167653a0a33320000000081525090506000818460405160200161336e9291906147f6565b60408051601f198184030181528282528051602091820120600080855291840180845281905260ff89169284019290925260608301899052608083018a90529092509060019060a0016020604051602081039080840390855afa1580156133d9573d6000803e3d6000fd5b505050602060405103519050836001600160a01b0316816001600160a01b0316146134465760405162461bcd60e51b815260206004820152600e60248201527f4e6f7420617574686f72697a65640000000000000000000000000000000000006044820152606401610870565b6001600160a01b03811661349c5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610870565b5050505050505050565b3660006134b7604060108587614a0a565b90925090503660006134cd606060408789614a0a565b90925090503660006134e360c06060898b614a0a565b909250905060006134f860e060c08a8c614a0a565b61350191614ad9565b6002546040517f228951180000000000000000000000000000000000000000000000000000000081529192506001600160a01b0316906322895118906801bc16d674ec80000090613562908b908b908b908b908b908b908b9060040161490e565b6000604051808303818588803b15801561357b57600080fd5b505af115801561358f573d6000803e3d6000fd5b50505050507f9a004ae54208b2915f0432cf87ff8ccb1ccab11e27277e52c2df915e3f4b596587878787336040516135cb9594939291906148cb565b60405180910390a1505050505050505050565b6000336135ef6020600c8587614a0a565b6135f891614aa4565b60601c146136485760405162461bcd60e51b815260206004820152601e60248201527f4e6f7420616c6c6f77656420746f206d616b65207468697320747261646500006044820152606401610870565b43613657608060608587614a0a565b61366091614ad9565b116136ad5760405162461bcd60e51b815260206004820152601160248201527f54726164652068617320657870697265640000000000000000000000000000006044820152606401610870565b6000805b6136bf60a060808688614a0a565b6136c891614ad9565b811015613ff457600085856136de8460e0614a6e565b6136e99060a0614a34565b906136f58560e0614a6e565b6137009060c0614a34565b9261370d93929190614a0a565b61371691614ad9565b9050600086866137278560e0614a6e565b6137329060c0614a34565b9061373e8660e0614a6e565b6137499060e0614a34565b9261375693929190614a0a565b61375f91614ad9565b9050600087876137708660e0614a6e565b61377b9060e0614a34565b906137878760e0614a6e565b61379390610100614a34565b926137a093929190614a0a565b6137a991614ad9565b9050600088886137ba8760e0614a6e565b6137c690610100614a34565b906137d28860e0614a6e565b6137de90610120614a34565b926137eb93929190614a0a565b6137f491614ad9565b9050600089896138058860e0614a6e565b61381190610160614a34565b9061381d8960e0614a6e565b61382990610174614a34565b9261383693929190614a0a565b61383f91614aa4565b60601c905060008a8a6138538960e0614a6e565b61385f90610178614a34565b9061386b8a60e0614a6e565b61387790610180614a34565b9261388493929190614a0a565b61388d91614af7565b60c01c90504383116138e15760405162461bcd60e51b815260206004820152601360248201527f4c697374696e67206861732065787069726564000000000000000000000000006044820152606401610870565b6000546040517f6352211e000000000000000000000000000000000000000000000000000000008152600481018790526001600160a01b03848116926201000090041690636352211e9060240160206040518083038186803b15801561394657600080fd5b505afa15801561395a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061397e91906143cd565b6001600160a01b0316146139d45760405162461bcd60e51b815260206004820152600960248201527f4e6f74206f776e657200000000000000000000000000000000000000000000006044820152606401610870565b60008581526004602052604090205467ffffffffffffffff828116911614613a3e5760405162461bcd60e51b815260206004820152600f60248201527f496e636f7272656374206e6f6e636500000000000000000000000000000000006044820152606401610870565b6000858152600460205260408120805467ffffffffffffffff1691613a6283614b84565b91906101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550508588613a959190614a34565b6040805160208082018990528183018890526060820187905260c085901b7fffffffffffffffff0000000000000000000000000000000000000000000000001660808301528251606881840301815260889092019092528051910120909850613bbe8c8c613b048b60e0614a6e565b613b1090610140614a34565b90613b1c8c60e0614a6e565b613b2890610160614a34565b92613b3593929190614a0a565b613b3e91614ad9565b8d8d613b4b8c60e0614a6e565b613b5790610120614a34565b90613b638d60e0614a6e565b613b6f90610140614a34565b92613b7c93929190614a0a565b613b8591614ad9565b8e8e613b928d60e0614a6e565b613b9e90610174614a34565b818110613bad57613bad614bc2565b919091013560f81c9050848761331f565b600080546040517f410b2aa800000000000000000000000000000000000000000000000000000000815260048101899052620100009091046001600160a01b03169063410b2aa89060240160206040518083038186803b158015613c2157600080fd5b505afa158015613c35573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613c599190614693565b90508781811115613deb57600154604080517f3a4b45320000000000000000000000000000000000000000000000000000000081529051612710926001600160a01b031691633a4b4532916004808301926020929190829003018186803b158015613cc357600080fd5b505afa158015613cd7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613cfb9190614693565b613d05848c614a8d565b613d0f9190614a6e565b613d199190614a4c565b613d23908a614a8d565b9050600160009054906101000a90046001600160a01b03166001600160a01b0316634162169f6040518163ffffffff1660e01b815260040160206040518083038186803b158015613d7357600080fd5b505afa158015613d87573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613dab91906143cd565b6001600160a01b03166108fc613dc1838c614a8d565b6040518115909202916000818181858888f19350505050158015613de9573d6000803e3d6000fd5b505b6801a055690d9db800008111613e435760405162461bcd60e51b815260206004820152600e60248201527f4e6f646520746f6f2063686561700000000000000000000000000000000000006044820152606401610870565b6040516001600160a01b0386169082156108fc029083906000818181858888f19350505050158015613e79573d6000803e3d6000fd5b506000546040517f42842e0e0000000000000000000000000000000000000000000000000000000081526001600160a01b038781166004830152336024830152604482018b905262010000909204909116906342842e0e90606401600060405180830381600087803b158015613eee57600080fd5b505af1158015613f02573d6000803e3d6000fd5b50506000546040517f569b72c8000000000000000000000000000000000000000000000000000000008152600481018c9052602481018d9052620100009091046001600160a01b0316925063569b72c89150604401600060405180830381600087803b158015613f7157600080fd5b505af1158015613f85573d6000803e3d6000fd5b5050604080518b81526001600160a01b03891660208201523381830152606081018d905290517fd67aa09958a1637024f01175f2caa4fea588289bf2f5c16ed6feddabc1803baf9350908190036080019150a15050505050505050508080613fec90614b69565b9150506136b1565b60006140038560a08189614a0a565b61401160806060898b614a0a565b61401a91614ad9565b60405161402e939291903390602001614778565b604051602081830303815290604052805190602001209050614090868660409060609261405d93929190614a0a565b61406691614ad9565b61407460406020898b614a0a565b61407d91614ad9565b88886001818110612b3957612b39614bc2565b5090949350505050565b600054610100900460ff166141055760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b6064820152608401610870565b610c6233612a90565b600054610100900460ff166141795760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b6064820152608401610870565b6001606955565b600054610100900460ff166141eb5760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201526a6e697469616c697a696e6760a81b6064820152608401610870565b60cd805460ff19169055565b61420081612fc9565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b60606001600160a01b0383163b61429f5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6044820152651b9d1c9858dd60d21b6064820152608401610870565b600080846001600160a01b0316846040516142ba91906147da565b600060405180830381855af49150503d80600081146142f5576040519150601f19603f3d011682016040523d82523d6000602084013e6142fa565b606091505b50915091506143228282604051806060016040528060278152602001614c046027913961432b565b95945050505050565b6060831561433a575081612ce1565b82511561434a5782518084602001fd5b8160405162461bcd60e51b8152600401610870919061495f565b60008083601f84011261437657600080fd5b50813567ffffffffffffffff81111561438e57600080fd5b6020830191508360208260051b85010111156143a957600080fd5b9250929050565b6000602082840312156143c257600080fd5b8135612ce181614bee565b6000602082840312156143df57600080fd5b8151612ce181614bee565b600080604083850312156143fd57600080fd5b823561440881614bee565b9150602083013561441881614bee565b809150509250929050565b60008060006060848603121561443857600080fd5b833561444381614bee565b9250602084013561445381614bee565b9150604084013561446381614bee565b809150509250925092565b6000806040838503121561448157600080fd5b823561448c81614bee565b915060208381013567ffffffffffffffff808211156144aa57600080fd5b818601915086601f8301126144be57600080fd5b8135818111156144d0576144d0614bd8565b6144e2601f8201601f191685016149d9565b915080825287848285010111156144f857600080fd5b80848401858401376000848284010152508093505050509250929050565b6000806020838503121561452957600080fd5b823567ffffffffffffffff81111561454057600080fd5b61454c85828601614364565b90969095509350505050565b6000806000806040858703121561456e57600080fd5b843567ffffffffffffffff8082111561458657600080fd5b61459288838901614364565b909650945060208701359150808211156145ab57600080fd5b506145b887828801614364565b95989497509550505050565b600060208083850312156145d757600080fd5b825167ffffffffffffffff808211156145ef57600080fd5b818501915085601f83011261460357600080fd5b81518181111561461557614615614bd8565b8060051b91506146268483016149d9565b8181528481019084860184860187018a101561464157600080fd5b600095505b83861015614664578051835260019590950194918601918601614646565b5098975050505050505050565b60006020828403121561468357600080fd5b81518015158114612ce157600080fd5b6000602082840312156146a557600080fd5b5051919050565b6000602082840312156146be57600080fd5b5035919050565b81835260007f07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8311156146f757600080fd5b8260051b8083602087013760009401602001938452509192915050565b600081518084526020808501945080840160005b8381101561474457815187529582019590820190600101614728565b509495945050505050565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b8385823790920190815260609190911b6bffffffffffffffffffffffff19166020820152603401919050565b87898237600088820160008152878982376000908801908152858782379094019283525060208201526040019695505050505050565b600082516147ec818460208701614b3d565b9190910192915050565b60008351614808818460208801614b3d565b9190910191825250602001919050565b60408152600061482c6040830186886146c5565b828103602084015261483f8185876146c5565b979650505050505050565b602081526000612ce16020830184614714565b6040815260006148706040830185614714565b82810360208401526143228185614714565b60208152600061489660208301848661474f565b949350505050565b6040815260006148b260408301858761474f565b90506001600160a01b0383166020830152949350505050565b6060815260006148df60608301878961474f565b82810360208401526148f281868861474f565b9150506001600160a01b03831660408301529695505050505050565b60808152600061492260808301898b61474f565b828103602084015261493581888a61474f565b9050828103604084015261494a81868861474f565b91505082606083015298975050505050505050565b602081526000825180602084015261497e816040850160208701614b3d565b601f01601f19169190910160400192915050565b6000808335601e198436030181126149a957600080fd5b83018035915067ffffffffffffffff8211156149c457600080fd5b6020019150368190038213156143a957600080fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715614a0257614a02614bd8565b604052919050565b60008085851115614a1a57600080fd5b83861115614a2757600080fd5b5050820193919092039150565b60008219821115614a4757614a47614bac565b500190565b600082614a6957634e487b7160e01b600052601260045260246000fd5b500490565b6000816000190483118215151615614a8857614a88614bac565b500290565b600082821015614a9f57614a9f614bac565b500390565b6bffffffffffffffffffffffff198135818116916014851015614ad15780818660140360031b1b83161692505b505092915050565b80356020831015612ccf57600019602084900360031b1b1692915050565b7fffffffffffffffff0000000000000000000000000000000000000000000000008135818116916008851015614ad15760089490940360031b84901b1690921692915050565b60005b83811015614b58578181015183820152602001614b40565b83811115611b905750506000910152565b6000600019821415614b7d57614b7d614bac565b5060010190565b600067ffffffffffffffff80831681811415614ba257614ba2614bac565b6001019392505050565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114610c4f57600080fdfe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a2646970667358221220534c4542b1b07962e73e6c63208fdf6247bd4ab18e30ff3c1400a9a1635e152964736f6c63430008070033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 31 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.