Feature Tip: Add private address tag to any address under My Name Tag !
Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 1 from a total of 1 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Transfer Ownersh... | 21092510 | 99 days ago | IN | 0 ETH | 0.00024921 |
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
ScheduledProxyAdmin2
Compiler Version
v0.8.26+commit.8a97fa7a
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2024-11-01 */ // SPDX-License-Identifier: BUSL-1.1 pragma solidity >= 0.8.26; // OpenZeppelin Contracts v4.4.1 (proxy/transparent/ProxyAdmin.sol) // OpenZeppelin Contracts (last updated v4.7.0) (proxy/transparent/TransparentUpgradeableProxy.sol) // OpenZeppelin Contracts (last updated v4.7.0) (proxy/ERC1967/ERC1967Proxy.sol) // OpenZeppelin Contracts (last updated v4.6.0) (proxy/Proxy.sol) /** * @dev This abstract contract provides a fallback function that delegates all calls to another contract using the EVM * instruction `delegatecall`. We refer to the second contract as the _implementation_ behind the proxy, and it has to * be specified by overriding the virtual {_implementation} function. * * Additionally, delegation to the implementation can be triggered manually through the {_fallback} function, or to a * different contract through the {_delegate} function. * * The success and return data of the delegated call will be returned back to the caller of the proxy. */ abstract contract Proxy { /** * @dev Delegates the current call to `implementation`. * * This function does not return to its internal call site, it will return directly to the external caller. */ function _delegate(address implementation) internal virtual { assembly { // Copy msg.data. We take full control of memory in this inline assembly // block because it will not return to Solidity code. We overwrite the // Solidity scratch pad at memory position 0. calldatacopy(0, 0, calldatasize()) // Call the implementation. // out and outsize are 0 because we don't know the size yet. let result := delegatecall(gas(), implementation, 0, calldatasize(), 0, 0) // Copy the returned data. returndatacopy(0, 0, returndatasize()) switch result // delegatecall returns 0 on error. case 0 { revert(0, returndatasize()) } default { return(0, returndatasize()) } } } /** * @dev This is a virtual function that should be overridden so it returns the address to which the fallback function * and {_fallback} should delegate. */ function _implementation() internal view virtual returns (address); /** * @dev Delegates the current call to the address returned by `_implementation()`. * * This function does not return to its internal call site, it will return directly to the external caller. */ function _fallback() internal virtual { _beforeFallback(); _delegate(_implementation()); } /** * @dev Fallback function that delegates calls to the address returned by `_implementation()`. Will run if no other * function in the contract matches the call data. */ fallback() external payable virtual { _fallback(); } /** * @dev Fallback function that delegates calls to the address returned by `_implementation()`. Will run if call data * is empty. */ receive() external payable virtual { _fallback(); } /** * @dev Hook that is called before falling back to the implementation. Can happen as part of a manual `_fallback` * call, or as part of the Solidity `fallback` or `receive` functions. * * If overridden should call `super._beforeFallback()`. */ function _beforeFallback() internal virtual {} } // OpenZeppelin Contracts (last updated v4.5.0) (proxy/ERC1967/ERC1967Upgrade.sol) // OpenZeppelin Contracts v4.4.1 (proxy/beacon/IBeacon.sol) /** * @dev This is the interface that {BeaconProxy} expects of its beacon. */ interface IBeacon { /** * @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); } // OpenZeppelin Contracts (last updated v4.5.0) (interfaces/draft-IERC1822.sol) /** * @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 IERC1822Proxiable { /** * @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); } // OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol) /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * * Furthermore, `isContract` will also return true if the target contract within * the same transaction is already scheduled for destruction by `SELFDESTRUCT`, * which only has an effect at the end of a transaction. * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://consensys.net/diligence/blog/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.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 functionCallWithValue(target, data, 0, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract. * * _Available since v4.8._ */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata, string memory errorMessage ) internal view returns (bytes memory) { if (success) { if (returndata.length == 0) { // only check isContract if the call was successful and the return data is empty // otherwise we already know that it was a contract require(isContract(target), "Address: call to non-contract"); } return returndata; } else { _revert(returndata, errorMessage); } } /** * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason or using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { _revert(returndata, errorMessage); } } function _revert(bytes memory returndata, string memory errorMessage) private pure { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } // OpenZeppelin Contracts (last updated v4.7.0) (utils/StorageSlot.sol) // This file was procedurally generated from scripts/generate/templates/StorageSlot.js. /** * @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: * ```solidity * 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`, `uint256`._ * _Available since v4.9 for `string`, `bytes`._ */ library StorageSlot { struct AddressSlot { address value; } struct BooleanSlot { bool value; } struct Bytes32Slot { bytes32 value; } struct Uint256Slot { uint256 value; } struct StringSlot { string value; } struct BytesSlot { bytes 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 } } /** * @dev Returns an `StringSlot` with member `value` located at `slot`. */ function getStringSlot(bytes32 slot) internal pure returns (StringSlot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := slot } } /** * @dev Returns an `StringSlot` representation of the string storage pointer `store`. */ function getStringSlot(string storage store) internal pure returns (StringSlot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := store.slot } } /** * @dev Returns an `BytesSlot` with member `value` located at `slot`. */ function getBytesSlot(bytes32 slot) internal pure returns (BytesSlot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := slot } } /** * @dev Returns an `BytesSlot` representation of the bytes storage pointer `store`. */ function getBytesSlot(bytes storage store) internal pure returns (BytesSlot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := store.slot } } } /** * @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._ */ abstract contract ERC1967Upgrade { // 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 StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value; } /** * @dev Stores a new address in the EIP1967 implementation slot. */ function _setImplementation(address newImplementation) private { require(Address.isContract(newImplementation), "ERC1967: new implementation is not a contract"); StorageSlot.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) { Address.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 (StorageSlot.getBooleanSlot(_ROLLBACK_SLOT).value) { _setImplementation(newImplementation); } else { try IERC1822Proxiable(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 StorageSlot.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"); StorageSlot.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 StorageSlot.getAddressSlot(_BEACON_SLOT).value; } /** * @dev Stores a new beacon in the EIP1967 beacon slot. */ function _setBeacon(address newBeacon) private { require(Address.isContract(newBeacon), "ERC1967: new beacon is not a contract"); require( Address.isContract(IBeacon(newBeacon).implementation()), "ERC1967: beacon implementation is not a contract" ); StorageSlot.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) { Address.functionDelegateCall(IBeacon(newBeacon).implementation(), data); } } } /** * @dev This contract implements an upgradeable proxy. It is upgradeable because calls are delegated to an * implementation address that can be changed. This address is stored in storage in the location specified by * https://eips.ethereum.org/EIPS/eip-1967[EIP1967], so that it doesn't conflict with the storage layout of the * implementation behind the proxy. */ contract ERC1967Proxy is Proxy, ERC1967Upgrade { /** * @dev Initializes the upgradeable proxy with an initial implementation specified by `_logic`. * * If `_data` is nonempty, it's used as data in a delegate call to `_logic`. This will typically be an encoded * function call, and allows initializing the storage of the proxy like a Solidity constructor. */ constructor(address _logic, bytes memory _data) payable { _upgradeToAndCall(_logic, _data, false); } /** * @dev Returns the current implementation address. */ function _implementation() internal view virtual override returns (address impl) { return ERC1967Upgrade._getImplementation(); } } /** * @dev This contract implements a proxy that is upgradeable by an admin. * * To avoid https://medium.com/nomic-labs-blog/malicious-backdoors-in-ethereum-proxies-62629adf3357[proxy selector * clashing], which can potentially be used in an attack, this contract uses the * https://blog.openzeppelin.com/the-transparent-proxy-pattern/[transparent proxy pattern]. This pattern implies two * things that go hand in hand: * * 1. If any account other than the admin calls the proxy, the call will be forwarded to the implementation, even if * that call matches one of the admin functions exposed by the proxy itself. * 2. If the admin calls the proxy, it can access the admin functions, but its calls will never be forwarded to the * implementation. If the admin tries to call a function on the implementation it will fail with an error that says * "admin cannot fallback to proxy target". * * These properties mean that the admin account can only be used for admin actions like upgrading the proxy or changing * the admin, so it's best if it's a dedicated account that is not used for anything else. This will avoid headaches due * to sudden errors when trying to call a function from the proxy implementation. * * Our recommendation is for the dedicated account to be an instance of the {ProxyAdmin} contract. If set up this way, * you should think of the `ProxyAdmin` instance as the real administrative interface of your proxy. */ contract TransparentUpgradeableProxy is ERC1967Proxy { /** * @dev Initializes an upgradeable proxy managed by `_admin`, backed by the implementation at `_logic`, and * optionally initialized with `_data` as explained in {ERC1967Proxy-constructor}. */ constructor(address _logic, address admin_, bytes memory _data) payable ERC1967Proxy(_logic, _data) { _changeAdmin(admin_); } /** * @dev Modifier used internally that will delegate the call to the implementation unless the sender is the admin. */ modifier ifAdmin() { if (msg.sender == _getAdmin()) { _; } else { _fallback(); } } /** * @dev Returns the current admin. * * NOTE: Only the admin can call this function. See {ProxyAdmin-getProxyAdmin}. * * TIP: To get this value clients can read directly from the storage slot shown below (specified by EIP1967) using the * https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call. * `0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103` */ function admin() external payable ifAdmin returns (address admin_) { _requireZeroValue(); admin_ = _getAdmin(); } /** * @dev Returns the current implementation. * * NOTE: Only the admin can call this function. See {ProxyAdmin-getProxyImplementation}. * * TIP: To get this value clients can read directly from the storage slot shown below (specified by EIP1967) using the * https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call. * `0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc` */ function implementation() external payable ifAdmin returns (address implementation_) { _requireZeroValue(); implementation_ = _implementation(); } /** * @dev Changes the admin of the proxy. * * Emits an {AdminChanged} event. * * NOTE: Only the admin can call this function. See {ProxyAdmin-changeProxyAdmin}. */ function changeAdmin(address newAdmin) external payable virtual ifAdmin { _requireZeroValue(); _changeAdmin(newAdmin); } /** * @dev Upgrade the implementation of the proxy. * * NOTE: Only the admin can call this function. See {ProxyAdmin-upgrade}. */ function upgradeTo(address newImplementation) external payable ifAdmin { _requireZeroValue(); _upgradeToAndCall(newImplementation, bytes(""), false); } /** * @dev Upgrade the implementation of the proxy, and then call a function from the new implementation as specified * by `data`, which should be an encoded function call. This is useful to initialize new storage variables in the * proxied contract. * * NOTE: Only the admin can call this function. See {ProxyAdmin-upgradeAndCall}. */ function upgradeToAndCall(address newImplementation, bytes calldata data) external payable ifAdmin { _upgradeToAndCall(newImplementation, data, true); } /** * @dev Returns the current admin. */ function _admin() internal view virtual returns (address) { return _getAdmin(); } /** * @dev Makes sure the admin cannot access the fallback function. See {Proxy-_beforeFallback}. */ function _beforeFallback() internal virtual override { require(msg.sender != _getAdmin(), "TransparentUpgradeableProxy: admin cannot fallback to proxy target"); super._beforeFallback(); } /** * @dev To keep this contract fully transparent, all `ifAdmin` functions must be payable. This helper is here to * emulate some proxy functions being non-payable while still allowing value to pass through. */ function _requireZeroValue() private { require(msg.value == 0); } } // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) // OpenZeppelin Contracts v4.4.1 (utils/Context.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 Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } } /** * @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 Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _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 is an auxiliary contract meant to be assigned as the admin of a {TransparentUpgradeableProxy}. For an * explanation of why you would want to use this see the documentation for {TransparentUpgradeableProxy}. */ contract ProxyAdmin is Ownable { /** * @dev Returns the current implementation of `proxy`. * * Requirements: * * - This contract must be the admin of `proxy`. */ function getProxyImplementation(TransparentUpgradeableProxy proxy) public view virtual returns (address) { // We need to manually run the static call since the getter cannot be flagged as view // bytes4(keccak256("implementation()")) == 0x5c60da1b (bool success, bytes memory returndata) = address(proxy).staticcall(hex"5c60da1b"); require(success); return abi.decode(returndata, (address)); } /** * @dev Returns the current admin of `proxy`. * * Requirements: * * - This contract must be the admin of `proxy`. */ function getProxyAdmin(TransparentUpgradeableProxy proxy) public view virtual returns (address) { // We need to manually run the static call since the getter cannot be flagged as view // bytes4(keccak256("admin()")) == 0xf851a440 (bool success, bytes memory returndata) = address(proxy).staticcall(hex"f851a440"); require(success); return abi.decode(returndata, (address)); } /** * @dev Changes the admin of `proxy` to `newAdmin`. * * Requirements: * * - This contract must be the current admin of `proxy`. */ function changeProxyAdmin(TransparentUpgradeableProxy proxy, address newAdmin) public virtual onlyOwner { proxy.changeAdmin(newAdmin); } /** * @dev Upgrades `proxy` to `implementation`. See {TransparentUpgradeableProxy-upgradeTo}. * * Requirements: * * - This contract must be the admin of `proxy`. */ function upgrade(TransparentUpgradeableProxy proxy, address implementation) public virtual onlyOwner { proxy.upgradeTo(implementation); } /** * @dev Upgrades `proxy` to `implementation` and calls a function on the new implementation. See * {TransparentUpgradeableProxy-upgradeToAndCall}. * * Requirements: * * - This contract must be the admin of `proxy`. */ function upgradeAndCall( TransparentUpgradeableProxy proxy, address implementation, bytes memory data ) public payable virtual onlyOwner { proxy.upgradeToAndCall{value: msg.value}(implementation, data); } } // OpenZeppelin Contracts (last updated v4.8.0) (proxy/utils/Initializable.sol) /** * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect. * * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be * reused. This mechanism prevents re-execution of each "step" but allows the creation of new initialization steps in * case an upgrade adds a module that needs to be initialized. * * For example: * * [.hljs-theme-light.nopadding] * ```solidity * contract MyToken is ERC20Upgradeable { * function initialize() initializer public { * __ERC20_init("MyToken", "MTK"); * } * } * * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable { * function initializeV2() reinitializer(2) public { * __ERC20Permit_init("MyToken"); * } * } * ``` * * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}. * * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity. * * [CAUTION] * ==== * Avoid leaving a contract uninitialized. * * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed: * * [.hljs-theme-light.nopadding] * ``` * /// @custom:oz-upgrades-unsafe-allow constructor * constructor() { * _disableInitializers(); * } * ``` * ==== */ abstract contract Initializable { /** * @dev Indicates that the contract has been initialized. * @custom:oz-retyped-from bool */ uint8 private _initialized; /** * @dev Indicates that the contract is in the process of being initialized. */ bool private _initializing; /** * @dev Triggered when the contract has been initialized or reinitialized. */ event Initialized(uint8 version); /** * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope, * `onlyInitializing` functions can be used to initialize parent contracts. * * Similar to `reinitializer(1)`, except that functions marked with `initializer` can be nested in the context of a * constructor. * * Emits an {Initialized} event. */ modifier initializer() { bool isTopLevelCall = !_initializing; require( (isTopLevelCall && _initialized < 1) || (!Address.isContract(address(this)) && _initialized == 1), "Initializable: contract is already initialized" ); _initialized = 1; if (isTopLevelCall) { _initializing = true; } _; if (isTopLevelCall) { _initializing = false; emit Initialized(1); } } /** * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be * used to initialize parent contracts. * * A reinitializer may be used after the original initialization step. This is essential to configure modules that * are added through upgrades and that require initialization. * * When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer` * cannot be nested. If one is invoked in the context of another, execution will revert. * * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in * a contract, executing them in the right order is up to the developer or operator. * * WARNING: setting the version to 255 will prevent any future reinitialization. * * Emits an {Initialized} event. */ modifier reinitializer(uint8 version) { require(!_initializing && _initialized < version, "Initializable: contract is already initialized"); _initialized = version; _initializing = true; _; _initializing = false; emit Initialized(version); } /** * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the * {initializer} and {reinitializer} modifiers, directly or indirectly. */ modifier onlyInitializing() { require(_initializing, "Initializable: contract is not initializing"); _; } /** * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call. * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized * to any version. It is recommended to use this to lock implementation contracts that are designed to be called * through proxies. * * Emits an {Initialized} event the first time it is successfully executed. */ function _disableInitializers() internal virtual { require(!_initializing, "Initializable: contract is initializing"); if (_initialized != type(uint8).max) { _initialized = type(uint8).max; emit Initialized(type(uint8).max); } } /** * @dev Returns the highest version that has been initialized. See {reinitializer}. */ function _getInitializedVersion() internal view returns (uint8) { return _initialized; } /** * @dev Returns `true` if the contract is currently initializing. See {onlyInitializing}. */ function _isInitializing() internal view returns (bool) { return _initializing; } } // OpenZeppelin Contracts (last updated v4.8.0) (security/ReentrancyGuard.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 ReentrancyGuard { // 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; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { _nonReentrantBefore(); _; _nonReentrantAfter(); } function _nonReentrantBefore() private { // On the first call to nonReentrant, _status will be _NOT_ENTERED require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; } function _nonReentrantAfter() private { // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } /** * @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a * `nonReentrant` function in the call stack. */ function _reentrancyGuardEntered() internal view returns (bool) { return _status == _ENTERED; } } /** * @title Proxy Admin for scheduled upgrades of an ERC-1967 */ contract ScheduledProxyAdmin2 is ProxyAdmin, ReentrancyGuard { struct ScheduledUpgradeEntry { uint256 targetDate; address payable proxyAddr; address implAddr; uint8 state; bytes initData; } mapping (bytes32 => ScheduledUpgradeEntry) public scheduledUpgrades; event UpgradeScheduled(uint256 targetDate, address proxyAddr, address implAddr); event UpgradeCancelled(address proxyAddr, address implAddr); event UpgradeExecuted(address proxyAddr, address implAddr); constructor() ProxyAdmin() { } /** * @notice Schedules the upgrade of a transparent proxy. * @param targetDate The date (unix epoch) at which the upgrade should take place. The min value is 1440 minutes from now. * @param proxy The address of the transparent proxy to upgrade. * @param implAddr The address of the new implementation contract. * @param initData The initialization payload of the upgrade. */ function scheduleUpgrade( uint256 targetDate, TransparentUpgradeableProxy proxy, address implAddr, bytes memory initData ) external nonReentrant onlyOwner { // Checks require(implAddr != address(0), "Implementation required"); require(targetDate > block.timestamp + 1440 minutes, "Invalid target date"); require(Address.isContract(implAddr), "Impl address must be a contract"); // Build a uniquely identifiable key for the proxy-upgrade bytes32 key = keccak256(abi.encode(address(proxy), implAddr)); require(scheduledUpgrades[key].state == 0, "Upgrade already used"); // Record the request scheduledUpgrades[key] = ScheduledUpgradeEntry({ targetDate: targetDate, proxyAddr: payable(address(proxy)), implAddr: implAddr, state: 1, initData: initData }); // Track the event emit UpgradeScheduled(targetDate, address(proxy), implAddr); } /** * @notice Cancels the upgrade of a transparent proxy. * @param proxy The address of the transparent proxy upgrade to cancel. * @param implAddr The address of the implementation contract. */ function cancelUpgrade( TransparentUpgradeableProxy proxy, address implAddr ) external nonReentrant onlyOwner { bytes32 key = keccak256(abi.encode(address(proxy), implAddr)); require(scheduledUpgrades[key].state == 1, "Upgrade not active"); // State changes scheduledUpgrades[key].state = 2; emit UpgradeCancelled(address(proxy), implAddr); } /** * @notice Runs a scheduled upgrade. * @dev Fails if the upgrade runs earlier than expected. Fails if the upgrade is not scheduled. * @param proxy The address of the transparent proxy to upgrade. * @param implAddr The address of the implementation contract. */ function runUpgrade( TransparentUpgradeableProxy proxy, address implAddr ) external nonReentrant { // Checks bytes32 key = keccak256(abi.encode(address(proxy), implAddr)); require(scheduledUpgrades[key].state == 1, "Upgrade not scheduled"); require(block.timestamp > scheduledUpgrades[key].targetDate, "Cannot upgrade yet"); // State changes scheduledUpgrades[key].state = 3; // Run the upgrade TransparentUpgradeableProxy(scheduledUpgrades[key].proxyAddr).upgradeToAndCall(scheduledUpgrades[key].implAddr, scheduledUpgrades[key].initData); emit UpgradeExecuted(address(proxy), implAddr); } function upgrade(TransparentUpgradeableProxy, address) public pure override { revert("Manual upgrade forbidden"); } function upgradeAndCall(TransparentUpgradeableProxy, address, bytes memory) public payable override { revert("Manual payable upgrade forbidden"); } /** * @notice Gets the current state of a scheduled upgrade. * @param key The hash of the upgrade. * @return Returns the state of the upgrade. */ function getUpgradeState(bytes32 key) external view returns (uint8) { return scheduledUpgrades[key].state; } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"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":"proxyAddr","type":"address"},{"indexed":false,"internalType":"address","name":"implAddr","type":"address"}],"name":"UpgradeCancelled","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"proxyAddr","type":"address"},{"indexed":false,"internalType":"address","name":"implAddr","type":"address"}],"name":"UpgradeExecuted","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"targetDate","type":"uint256"},{"indexed":false,"internalType":"address","name":"proxyAddr","type":"address"},{"indexed":false,"internalType":"address","name":"implAddr","type":"address"}],"name":"UpgradeScheduled","type":"event"},{"inputs":[{"internalType":"contract TransparentUpgradeableProxy","name":"proxy","type":"address"},{"internalType":"address","name":"implAddr","type":"address"}],"name":"cancelUpgrade","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract TransparentUpgradeableProxy","name":"proxy","type":"address"},{"internalType":"address","name":"newAdmin","type":"address"}],"name":"changeProxyAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract TransparentUpgradeableProxy","name":"proxy","type":"address"}],"name":"getProxyAdmin","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract TransparentUpgradeableProxy","name":"proxy","type":"address"}],"name":"getProxyImplementation","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"key","type":"bytes32"}],"name":"getUpgradeState","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract TransparentUpgradeableProxy","name":"proxy","type":"address"},{"internalType":"address","name":"implAddr","type":"address"}],"name":"runUpgrade","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"targetDate","type":"uint256"},{"internalType":"contract TransparentUpgradeableProxy","name":"proxy","type":"address"},{"internalType":"address","name":"implAddr","type":"address"},{"internalType":"bytes","name":"initData","type":"bytes"}],"name":"scheduleUpgrade","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"scheduledUpgrades","outputs":[{"internalType":"uint256","name":"targetDate","type":"uint256"},{"internalType":"address payable","name":"proxyAddr","type":"address"},{"internalType":"address","name":"implAddr","type":"address"},{"internalType":"uint8","name":"state","type":"uint8"},{"internalType":"bytes","name":"initData","type":"bytes"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract TransparentUpgradeableProxy","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"upgrade","outputs":[],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"contract TransparentUpgradeableProxy","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"upgradeAndCall","outputs":[],"stateMutability":"payable","type":"function"}]
Contract Creation Code
6080604052348015600e575f80fd5b50601633601e565b60018055606d565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b61108c8061007a5f395ff3fe6080604052600436106100a1575f3560e01c80630d2b4707146100a5578063204e1c7a146100de5780633bbe713f1461010a5780636c12d88514610155578063715018a6146101765780637eff275e1461018a5780638da5cb5b146101a95780639623609d146101c557806399a88ec4146101d8578063ba6b0555146101f7578063c2d6de3414610216578063f2fde38b14610235578063f3b7dead14610254575b5f80fd5b3480156100b0575f80fd5b506100c46100bf366004610bc8565b610273565b6040516100d5959493929190610bdf565b60405180910390f35b3480156100e9575f80fd5b506100fd6100f8366004610c57565b61033f565b6040516100d59190610c79565b348015610115575f80fd5b50610143610124366004610bc8565b5f9081526002602081905260409091200154600160a01b900460ff1690565b60405160ff90911681526020016100d5565b348015610160575f80fd5b5061017461016f366004610d2a565b6103ca565b005b348015610181575f80fd5b50610174610669565b348015610195575f80fd5b506101746101a4366004610d91565b61067c565b3480156101b4575f80fd5b505f546001600160a01b03166100fd565b6101746101d3366004610dc8565b6106e1565b3480156101e3575f80fd5b506101746101f2366004610d91565b610729565b348015610202575f80fd5b50610174610211366004610d91565b61076c565b348015610221575f80fd5b50610174610230366004610d91565b610932565b348015610240575f80fd5b5061017461024f366004610c57565b610a2a565b34801561025f575f80fd5b506100fd61026e366004610c57565b610aa3565b600260208190525f9182526040909120805460018201549282015460038301805492946001600160a01b039081169490831693600160a01b90930460ff16929091906102be90610e25565b80601f01602080910402602001604051908101604052809291908181526020018280546102ea90610e25565b80156103355780601f1061030c57610100808354040283529160200191610335565b820191905f5260205f20905b81548152906001019060200180831161031857829003601f168201915b5050505050905085565b5f805f836001600160a01b031660405161036390635c60da1b60e01b815260040190565b5f60405180830381855afa9150503d805f811461039b576040519150601f19603f3d011682016040523d82523d5f602084013e6103a0565b606091505b5091509150816103ae575f80fd5b808060200190518101906103c29190610e5d565b949350505050565b6103d2610ac7565b6103da610b20565b6001600160a01b03821661042f5760405162461bcd60e51b8152602060048201526017602482015276125b5c1b195b595b9d185d1a5bdb881c995c5d5a5c9959604a1b60448201526064015b60405180910390fd5b61043c4262015180610e78565b84116104805760405162461bcd60e51b8152602060048201526013602482015272496e76616c696420746172676574206461746560681b6044820152606401610426565b6001600160a01b0382163b6104d75760405162461bcd60e51b815260206004820152601f60248201527f496d706c2061646472657373206d757374206265206120636f6e7472616374006044820152606401610426565b5f83836040516020016104eb929190610e9d565b60408051808303601f1901815291815281516020928301205f8181526002938490529190912090910154909150600160a01b900460ff16156105665760405162461bcd60e51b8152602060048201526014602482015273155c19dc98591948185b1c9958591e481d5cd95960621b6044820152606401610426565b6040805160a0810182528681526001600160a01b038087166020808401918252878316848601908152600160608601818152608087018a81525f8a81526002958690529890982087518155945191850180549287166001600160a01b03199093169290921790915590519183018054915160ff16600160a01b026001600160a81b03199092169290941691909117179091559151909190600382019061060c9082610f03565b5050604080518781526001600160a01b03878116602083015286168183015290517f821c02a7e23a68e349bd116c78208df0d4530a70a1918023b42f726a5e01154c92509081900360600190a15061066360018055565b50505050565b610671610b20565b61067a5f610b79565b565b610684610b20565b6040516308f2839760e41b81526001600160a01b03831690638f283970906106b0908490600401610c79565b5f604051808303815f87803b1580156106c7575f80fd5b505af11580156106d9573d5f803e3d5ffd5b505050505050565b60405162461bcd60e51b815260206004820181905260248201527f4d616e75616c2070617961626c65207570677261646520666f7262696464656e6044820152606401610426565b60405162461bcd60e51b815260206004820152601860248201527726b0b73ab0b6103ab833b930b232903337b93134b23232b760411b6044820152606401610426565b610774610ac7565b5f8282604051602001610788929190610e9d565b60405160208183030381529060405280519060200120905060025f8281526020019081526020015f2060020160149054906101000a900460ff1660ff1660011461080c5760405162461bcd60e51b8152602060048201526015602482015274155c19dc985919481b9bdd081cd8da19591d5b1959605a1b6044820152606401610426565b5f81815260026020526040902054421161085d5760405162461bcd60e51b815260206004820152601260248201527110d85b9b9bdd081d5c19dc985919481e595d60721b6044820152606401610426565b5f81815260026020819052604091829020908101805460ff60a01b198116600360a01b179091556001820154925163278f794360e11b81526001600160a01b0393841693634f1ef286936108be939190911691600390910190600401610fbd565b5f604051808303815f87803b1580156108d5575f80fd5b505af11580156108e7573d5f803e3d5ffd5b505050507f1d1a68d52611e7e5356825eb15806a7e55f8131fce52c2b4c7cb4babfc53f881838360405161091c929190610e9d565b60405180910390a15061092e60018055565b5050565b61093a610ac7565b610942610b20565b5f8282604051602001610956929190610e9d565b60405160208183030381529060405280519060200120905060025f8281526020019081526020015f2060020160149054906101000a900460ff1660ff166001146109d75760405162461bcd60e51b815260206004820152601260248201527155706772616465206e6f742061637469766560701b6044820152606401610426565b5f8181526002602081905260409182902001805460ff60a01b1916600160a11b179055517fa6698f935ea3cb05304828ddd237d7f7b2ee8f2d7733962bbba67888985e1a2c9061091c9085908590610e9d565b610a32610b20565b6001600160a01b038116610a975760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610426565b610aa081610b79565b50565b5f805f836001600160a01b0316604051610363906303e1469160e61b815260040190565b600260015403610b195760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610426565b6002600155565b5f546001600160a01b0316331461067a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610426565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610bd8575f80fd5b5035919050565b85815260018060a01b038516602082015260018060a01b038416604082015260ff8316606082015260a060808201525f82518060a0840152806020850160c085015e5f60c0828501015260c0601f19601f8301168401019150509695505050505050565b6001600160a01b0381168114610aa0575f80fd5b5f60208284031215610c67575f80fd5b8135610c7281610c43565b9392505050565b6001600160a01b0391909116815260200190565b634e487b7160e01b5f52604160045260245ffd5b5f82601f830112610cb0575f80fd5b81356001600160401b03811115610cc957610cc9610c8d565b604051601f8201601f19908116603f011681016001600160401b0381118282101715610cf757610cf7610c8d565b604052818152838201602001851015610d0e575f80fd5b816020850160208301375f918101602001919091529392505050565b5f805f8060808587031215610d3d575f80fd5b843593506020850135610d4f81610c43565b92506040850135610d5f81610c43565b915060608501356001600160401b03811115610d79575f80fd5b610d8587828801610ca1565b91505092959194509250565b5f8060408385031215610da2575f80fd5b8235610dad81610c43565b91506020830135610dbd81610c43565b809150509250929050565b5f805f60608486031215610dda575f80fd5b8335610de581610c43565b92506020840135610df581610c43565b915060408401356001600160401b03811115610e0f575f80fd5b610e1b86828701610ca1565b9150509250925092565b600181811c90821680610e3957607f821691505b602082108103610e5757634e487b7160e01b5f52602260045260245ffd5b50919050565b5f60208284031215610e6d575f80fd5b8151610c7281610c43565b80820180821115610e9757634e487b7160e01b5f52601160045260245ffd5b92915050565b6001600160a01b0392831681529116602082015260400190565b601f821115610efe57805f5260205f20601f840160051c81016020851015610edc5750805b601f840160051c820191505b81811015610efb575f8155600101610ee8565b50505b505050565b81516001600160401b03811115610f1c57610f1c610c8d565b610f3081610f2a8454610e25565b84610eb7565b6020601f821160018114610f62575f8315610f4b5750848201515b5f19600385901b1c1916600184901b178455610efb565b5f84815260208120601f198516915b82811015610f915787850151825560209485019460019092019101610f71565b5084821015610fae57868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b6001600160a01b03831681526040602082015281545f908190610fdf81610e25565b806040860152600182165f8114610ffd57600181146110195761104a565b60ff1983166060870152606082151560051b870101935061104a565b865f5260205f205f5b8381101561104157815488820160600152600190910190602001611022565b87016060019450505b5091969550505050505056fea26469706673582212201c448d63a572caa9b3c5392439f8a48e3fc1406566643f46a57e5d40aac4ff0964736f6c634300081a0033
Deployed Bytecode
0x6080604052600436106100a1575f3560e01c80630d2b4707146100a5578063204e1c7a146100de5780633bbe713f1461010a5780636c12d88514610155578063715018a6146101765780637eff275e1461018a5780638da5cb5b146101a95780639623609d146101c557806399a88ec4146101d8578063ba6b0555146101f7578063c2d6de3414610216578063f2fde38b14610235578063f3b7dead14610254575b5f80fd5b3480156100b0575f80fd5b506100c46100bf366004610bc8565b610273565b6040516100d5959493929190610bdf565b60405180910390f35b3480156100e9575f80fd5b506100fd6100f8366004610c57565b61033f565b6040516100d59190610c79565b348015610115575f80fd5b50610143610124366004610bc8565b5f9081526002602081905260409091200154600160a01b900460ff1690565b60405160ff90911681526020016100d5565b348015610160575f80fd5b5061017461016f366004610d2a565b6103ca565b005b348015610181575f80fd5b50610174610669565b348015610195575f80fd5b506101746101a4366004610d91565b61067c565b3480156101b4575f80fd5b505f546001600160a01b03166100fd565b6101746101d3366004610dc8565b6106e1565b3480156101e3575f80fd5b506101746101f2366004610d91565b610729565b348015610202575f80fd5b50610174610211366004610d91565b61076c565b348015610221575f80fd5b50610174610230366004610d91565b610932565b348015610240575f80fd5b5061017461024f366004610c57565b610a2a565b34801561025f575f80fd5b506100fd61026e366004610c57565b610aa3565b600260208190525f9182526040909120805460018201549282015460038301805492946001600160a01b039081169490831693600160a01b90930460ff16929091906102be90610e25565b80601f01602080910402602001604051908101604052809291908181526020018280546102ea90610e25565b80156103355780601f1061030c57610100808354040283529160200191610335565b820191905f5260205f20905b81548152906001019060200180831161031857829003601f168201915b5050505050905085565b5f805f836001600160a01b031660405161036390635c60da1b60e01b815260040190565b5f60405180830381855afa9150503d805f811461039b576040519150601f19603f3d011682016040523d82523d5f602084013e6103a0565b606091505b5091509150816103ae575f80fd5b808060200190518101906103c29190610e5d565b949350505050565b6103d2610ac7565b6103da610b20565b6001600160a01b03821661042f5760405162461bcd60e51b8152602060048201526017602482015276125b5c1b195b595b9d185d1a5bdb881c995c5d5a5c9959604a1b60448201526064015b60405180910390fd5b61043c4262015180610e78565b84116104805760405162461bcd60e51b8152602060048201526013602482015272496e76616c696420746172676574206461746560681b6044820152606401610426565b6001600160a01b0382163b6104d75760405162461bcd60e51b815260206004820152601f60248201527f496d706c2061646472657373206d757374206265206120636f6e7472616374006044820152606401610426565b5f83836040516020016104eb929190610e9d565b60408051808303601f1901815291815281516020928301205f8181526002938490529190912090910154909150600160a01b900460ff16156105665760405162461bcd60e51b8152602060048201526014602482015273155c19dc98591948185b1c9958591e481d5cd95960621b6044820152606401610426565b6040805160a0810182528681526001600160a01b038087166020808401918252878316848601908152600160608601818152608087018a81525f8a81526002958690529890982087518155945191850180549287166001600160a01b03199093169290921790915590519183018054915160ff16600160a01b026001600160a81b03199092169290941691909117179091559151909190600382019061060c9082610f03565b5050604080518781526001600160a01b03878116602083015286168183015290517f821c02a7e23a68e349bd116c78208df0d4530a70a1918023b42f726a5e01154c92509081900360600190a15061066360018055565b50505050565b610671610b20565b61067a5f610b79565b565b610684610b20565b6040516308f2839760e41b81526001600160a01b03831690638f283970906106b0908490600401610c79565b5f604051808303815f87803b1580156106c7575f80fd5b505af11580156106d9573d5f803e3d5ffd5b505050505050565b60405162461bcd60e51b815260206004820181905260248201527f4d616e75616c2070617961626c65207570677261646520666f7262696464656e6044820152606401610426565b60405162461bcd60e51b815260206004820152601860248201527726b0b73ab0b6103ab833b930b232903337b93134b23232b760411b6044820152606401610426565b610774610ac7565b5f8282604051602001610788929190610e9d565b60405160208183030381529060405280519060200120905060025f8281526020019081526020015f2060020160149054906101000a900460ff1660ff1660011461080c5760405162461bcd60e51b8152602060048201526015602482015274155c19dc985919481b9bdd081cd8da19591d5b1959605a1b6044820152606401610426565b5f81815260026020526040902054421161085d5760405162461bcd60e51b815260206004820152601260248201527110d85b9b9bdd081d5c19dc985919481e595d60721b6044820152606401610426565b5f81815260026020819052604091829020908101805460ff60a01b198116600360a01b179091556001820154925163278f794360e11b81526001600160a01b0393841693634f1ef286936108be939190911691600390910190600401610fbd565b5f604051808303815f87803b1580156108d5575f80fd5b505af11580156108e7573d5f803e3d5ffd5b505050507f1d1a68d52611e7e5356825eb15806a7e55f8131fce52c2b4c7cb4babfc53f881838360405161091c929190610e9d565b60405180910390a15061092e60018055565b5050565b61093a610ac7565b610942610b20565b5f8282604051602001610956929190610e9d565b60405160208183030381529060405280519060200120905060025f8281526020019081526020015f2060020160149054906101000a900460ff1660ff166001146109d75760405162461bcd60e51b815260206004820152601260248201527155706772616465206e6f742061637469766560701b6044820152606401610426565b5f8181526002602081905260409182902001805460ff60a01b1916600160a11b179055517fa6698f935ea3cb05304828ddd237d7f7b2ee8f2d7733962bbba67888985e1a2c9061091c9085908590610e9d565b610a32610b20565b6001600160a01b038116610a975760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610426565b610aa081610b79565b50565b5f805f836001600160a01b0316604051610363906303e1469160e61b815260040190565b600260015403610b195760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610426565b6002600155565b5f546001600160a01b0316331461067a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610426565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610bd8575f80fd5b5035919050565b85815260018060a01b038516602082015260018060a01b038416604082015260ff8316606082015260a060808201525f82518060a0840152806020850160c085015e5f60c0828501015260c0601f19601f8301168401019150509695505050505050565b6001600160a01b0381168114610aa0575f80fd5b5f60208284031215610c67575f80fd5b8135610c7281610c43565b9392505050565b6001600160a01b0391909116815260200190565b634e487b7160e01b5f52604160045260245ffd5b5f82601f830112610cb0575f80fd5b81356001600160401b03811115610cc957610cc9610c8d565b604051601f8201601f19908116603f011681016001600160401b0381118282101715610cf757610cf7610c8d565b604052818152838201602001851015610d0e575f80fd5b816020850160208301375f918101602001919091529392505050565b5f805f8060808587031215610d3d575f80fd5b843593506020850135610d4f81610c43565b92506040850135610d5f81610c43565b915060608501356001600160401b03811115610d79575f80fd5b610d8587828801610ca1565b91505092959194509250565b5f8060408385031215610da2575f80fd5b8235610dad81610c43565b91506020830135610dbd81610c43565b809150509250929050565b5f805f60608486031215610dda575f80fd5b8335610de581610c43565b92506020840135610df581610c43565b915060408401356001600160401b03811115610e0f575f80fd5b610e1b86828701610ca1565b9150509250925092565b600181811c90821680610e3957607f821691505b602082108103610e5757634e487b7160e01b5f52602260045260245ffd5b50919050565b5f60208284031215610e6d575f80fd5b8151610c7281610c43565b80820180821115610e9757634e487b7160e01b5f52601160045260245ffd5b92915050565b6001600160a01b0392831681529116602082015260400190565b601f821115610efe57805f5260205f20601f840160051c81016020851015610edc5750805b601f840160051c820191505b81811015610efb575f8155600101610ee8565b50505b505050565b81516001600160401b03811115610f1c57610f1c610c8d565b610f3081610f2a8454610e25565b84610eb7565b6020601f821160018114610f62575f8315610f4b5750848201515b5f19600385901b1c1916600184901b178455610efb565b5f84815260208120601f198516915b82811015610f915787850151825560209485019460019092019101610f71565b5084821015610fae57868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b6001600160a01b03831681526040602082015281545f908190610fdf81610e25565b806040860152600182165f8114610ffd57600181146110195761104a565b60ff1983166060870152606082151560051b870101935061104a565b865f5260205f205f5b8381101561104157815488820160600152600190910190602001611022565b87016060019450505b5091969550505050505056fea26469706673582212201c448d63a572caa9b3c5392439f8a48e3fc1406566643f46a57e5d40aac4ff0964736f6c634300081a0033
Deployed Bytecode Sourcemap
47654:4358:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;47907:67;;;;;;;;;;-1:-1:-1;47907:67:0;;;;;:::i;:::-;;:::i;:::-;;;;;;;;;;;:::i;:::-;;;;;;;;35461:443;;;;;;;;;;-1:-1:-1;35461:443:0;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;51887:122::-;;;;;;;;;;-1:-1:-1;51887:122:0;;;;;:::i;:::-;51948:5;51973:22;;;:17;:22;;;;;;;;:28;;-1:-1:-1;;;51973:28:0;;;;;51887:122;;;;1847:4:1;1835:17;;;1817:36;;1805:2;1790:18;51887:122:0;1675:184:1;48662:1068:0;;;;;;;;;;-1:-1:-1;48662:1068:0;;;;;:::i;:::-;;:::i;:::-;;34201:103;;;;;;;;;;;;;:::i;36681:150::-;;;;;;;;;;-1:-1:-1;36681:150:0;;;;;:::i;:::-;;:::i;33553:87::-;;;;;;;;;;-1:-1:-1;33599:7:0;33626:6;-1:-1:-1;;;;;33626:6:0;33553:87;;51543:161;;;;;;:::i;:::-;;:::i;51406:129::-;;;;;;;;;;-1:-1:-1;51406:129:0;;;;;:::i;:::-;;:::i;50688:706::-;;;;;;;;;;-1:-1:-1;50688:706:0;;;;;:::i;:::-;;:::i;49961:420::-;;;;;;;;;;-1:-1:-1;49961:420:0;;;;;:::i;:::-;;:::i;34459:201::-;;;;;;;;;;-1:-1:-1;34459:201:0;;;;;:::i;:::-;;:::i;36073:425::-;;;;;;;;;;-1:-1:-1;36073:425:0;;;;;:::i;:::-;;:::i;47907:67::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;47907:67:0;;;;;;;;-1:-1:-1;;;47907:67:0;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;35461:443::-;35557:7;35737:12;35751:23;35786:5;-1:-1:-1;;;;;35778:25:0;:40;;;;-1:-1:-1;;;5539:33:1;;5597:1;5588:11;;5338:267;35778:40:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;35736:82;;;;35837:7;35829:16;;;;;;35874:10;35863:33;;;;;;;;;;;;:::i;:::-;35856:40;35461:443;-1:-1:-1;;;;35461:443:0:o;48662:1068::-;46686:21;:19;:21::i;:::-;33439:13:::1;:11;:13::i;:::-;-1:-1:-1::0;;;;;48898:22:0;::::2;48890:58;;;::::0;-1:-1:-1;;;48890:58:0;;6105:2:1;48890:58:0::2;::::0;::::2;6087:21:1::0;6144:2;6124:18;;;6117:30;-1:-1:-1;;;6163:18:1;;;6156:53;6226:18;;48890:58:0::2;;;;;;;;;48980:30;:15;48998:12;48980:30;:::i;:::-;48967:10;:43;48959:75;;;::::0;-1:-1:-1;;;48959:75:0;;6684:2:1;48959:75:0::2;::::0;::::2;6666:21:1::0;6723:2;6703:18;;;6696:30;-1:-1:-1;;;6742:18:1;;;6735:49;6801:18;;48959:75:0::2;6482:343:1::0;48959:75:0::2;-1:-1:-1::0;;;;;6670:19:0;;;49045:72:::2;;;::::0;-1:-1:-1;;;49045:72:0;;7032:2:1;49045:72:0::2;::::0;::::2;7014:21:1::0;7071:2;7051:18;;;7044:30;7110:33;7090:18;;;7083:61;7161:18;;49045:72:0::2;6830:355:1::0;49045:72:0::2;49198:11;49241:5;49249:8;49222:36;;;;;;;;;:::i;:::-;;::::0;;;;::::2;-1:-1:-1::0;;49222:36:0;;;;;;49212:47;;49222:36:::2;49212:47:::0;;::::2;::::0;49278:22:::2;::::0;;;:17:::2;:22:::0;;;;;;;;:28;;::::2;::::0;49212:47;;-1:-1:-1;;;;49278:28:0;::::2;;;:33:::0;49270:66:::2;;;::::0;-1:-1:-1;;;49270:66:0;;7697:2:1;49270:66:0::2;::::0;::::2;7679:21:1::0;7736:2;7716:18;;;7709:30;-1:-1:-1;;;7755:18:1;;;7748:50;7815:18;;49270:66:0::2;7495:344:1::0;49270:66:0::2;49413:209;::::0;;::::2;::::0;::::2;::::0;;;;;-1:-1:-1;;;;;49413:209:0;;::::2;;::::0;;::::2;::::0;;;;;::::2;::::0;;;;;;49576:1:::2;49413:209:::0;;;;;;;;;;;;-1:-1:-1;49388:22:0;;;:17:::2;:22:::0;;;;;;;;:234;;;;;;;;::::2;::::0;;;;::::2;-1:-1:-1::0;;;;;;49388:234:0;;::::2;::::0;;;::::2;::::0;;;;;;;::::2;::::0;;;;49413:209:::2;49388:234;-1:-1:-1::0;;;49388:234:0::2;-1:-1:-1::0;;;;;;49388:234:0;;;;;;::::2;::::0;;;;::::2;::::0;;;;;49413:209;;49388:22;:234:::2;::::0;::::2;::::0;::::2;::::0;;::::2;:::i;:::-;-1:-1:-1::0;;49668:54:0::2;::::0;;10164:25:1;;;-1:-1:-1;;;;;10225:32:1;;;10220:2;10205:18;;10198:60;10294:32;;10274:18;;;10267:60;49668:54:0;;::::2;::::0;-1:-1:-1;49668:54:0;;;;10152:2:1;49668:54:0;;::::2;48860:870;46730:20:::0;46124:1;47250:22;;47067:213;46730:20;48662:1068;;;;:::o;34201:103::-;33439:13;:11;:13::i;:::-;34266:30:::1;34293:1;34266:18;:30::i;:::-;34201:103::o:0;36681:150::-;33439:13;:11;:13::i;:::-;36796:27:::1;::::0;-1:-1:-1;;;36796:27:0;;-1:-1:-1;;;;;36796:17:0;::::1;::::0;::::1;::::0;:27:::1;::::0;36814:8;;36796:27:::1;;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;36681:150:::0;;:::o;51543:161::-;51654:42;;-1:-1:-1;;;51654:42:0;;10540:2:1;51654:42:0;;;10522:21:1;;;10559:18;;;10552:30;10618:34;10598:18;;;10591:62;10670:18;;51654:42:0;10338:356:1;51406:129:0;51493:34;;-1:-1:-1;;;51493:34:0;;10901:2:1;51493:34:0;;;10883:21:1;10940:2;10920:18;;;10913:30;-1:-1:-1;;;10959:18:1;;;10952:54;11023:18;;51493:34:0;10699:348:1;50688:706:0;46686:21;:19;:21::i;:::-;50839:11:::1;50882:5;50890:8;50863:36;;;;;;;;;:::i;:::-;;;;;;;;;;;;;50853:47;;;;;;50839:61;;50919:17;:22;50937:3;50919:22;;;;;;;;;;;:28;;;;;;;;;;;;:33;;50951:1;50919:33;50911:67;;;::::0;-1:-1:-1;;;50911:67:0;;11254:2:1;50911:67:0::1;::::0;::::1;11236:21:1::0;11293:2;11273:18;;;11266:30;-1:-1:-1;;;11312:18:1;;;11305:51;11373:18;;50911:67:0::1;11052:345:1::0;50911:67:0::1;51015:22;::::0;;;:17:::1;:22;::::0;;;;:33;50997:15:::1;:51;50989:82;;;::::0;-1:-1:-1;;;50989:82:0;;11604:2:1;50989:82:0::1;::::0;::::1;11586:21:1::0;11643:2;11623:18;;;11616:30;-1:-1:-1;;;11662:18:1;;;11655:48;11720:18;;50989:82:0::1;11402:342:1::0;50989:82:0::1;51110:22;::::0;;;:17:::1;:22;::::0;;;;;;;;:28;;::::1;:32:::0;;-1:-1:-1;;;;51110:32:0;::::1;-1:-1:-1::0;;;51110:32:0::1;::::0;;;-1:-1:-1;51211:32:0;::::1;::::0;51183:144;;-1:-1:-1;;;51183:144:0;;-1:-1:-1;;;;;51211:32:0;;::::1;::::0;51183:78:::1;::::0;:144:::1;::::0;51262:31;;;;;51141:1:::1;51295:31:::0;;::::1;::::0;51183:144:::1;;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;51345:41;51369:5;51377:8;51345:41;;;;;;;:::i;:::-;;;;;;;;50809:585;46730:20:::0;46124:1;47250:22;;47067:213;46730:20;50688:706;;:::o;49961:420::-;46686:21;:19;:21::i;:::-;33439:13:::1;:11;:13::i;:::-;50106:11:::2;50149:5;50157:8;50130:36;;;;;;;;;:::i;:::-;;;;;;;;;;;;;50120:47;;;;;;50106:61;;50186:17;:22;50204:3;50186:22;;;;;;;;;;;:28;;;;;;;;;;;;:33;;50218:1;50186:33;50178:64;;;::::0;-1:-1:-1;;;50178:64:0;;12950:2:1;50178:64:0::2;::::0;::::2;12932:21:1::0;12989:2;12969:18;;;12962:30;-1:-1:-1;;;13008:18:1;;;13001:48;13066:18;;50178:64:0::2;12748:342:1::0;50178:64:0::2;50281:22;::::0;;;50312:1:::2;50281:22;::::0;;;;;;;;:28:::2;:32:::0;;-1:-1:-1;;;;50281:32:0::2;-1:-1:-1::0;;;50281:32:0::2;::::0;;50331:42;::::2;::::0;::::2;::::0;50356:5;;50364:8;;50331:42:::2;:::i;34459:201::-:0;33439:13;:11;:13::i;:::-;-1:-1:-1;;;;;34548:22:0;::::1;34540:73;;;::::0;-1:-1:-1;;;34540:73:0;;13297:2:1;34540:73:0::1;::::0;::::1;13279:21:1::0;13336:2;13316:18;;;13309:30;13375:34;13355:18;;;13348:62;-1:-1:-1;;;13426:18:1;;;13419:36;13472:19;;34540:73:0::1;13095:402:1::0;34540:73:0::1;34624:28;34643:8;34624:18;:28::i;:::-;34459:201:::0;:::o;36073:425::-;36160:7;36331:12;36345:23;36380:5;-1:-1:-1;;;;;36372:25:0;:40;;;;-1:-1:-1;;;13703:33:1;;13761:1;13752:11;;13502:267;46766:293:0;46168:1;46900:7;;:19;46892:63;;;;-1:-1:-1;;;46892:63:0;;13976:2:1;46892:63:0;;;13958:21:1;14015:2;13995:18;;;13988:30;14054:33;14034:18;;;14027:61;14105:18;;46892:63:0;13774:355:1;46892:63:0;46168:1;47033:7;:18;46766:293::o;33718:132::-;33599:7;33626:6;-1:-1:-1;;;;;33626:6:0;32340:10;33782:23;33774:68;;;;-1:-1:-1;;;33774:68:0;;14336:2:1;33774:68:0;;;14318:21:1;;;14355:18;;;14348:30;14414:34;14394:18;;;14387:62;14466:18;;33774:68:0;14134:356:1;34820:191:0;34894:16;34913:6;;-1:-1:-1;;;;;34930:17:0;;;-1:-1:-1;;;;;;34930:17:0;;;;;;34963:40;;34913:6;;;;;;;34963:40;;34894:16;34963:40;34883:128;34820:191;:::o;14:180:1:-;73:6;126:2;114:9;105:7;101:23;97:32;94:52;;;142:1;139;132:12;94:52;-1:-1:-1;165:23:1;;14:180;-1:-1:-1;14:180:1:o;199:781::-;470:6;459:9;452:25;542:1;538;533:3;529:11;525:19;517:6;513:32;508:2;497:9;493:18;486:60;611:1;607;602:3;598:11;594:19;586:6;582:32;577:2;566:9;562:18;555:60;663:4;655:6;651:17;646:2;635:9;631:18;624:45;706:3;700;689:9;685:19;678:32;433:4;739:6;733:13;783:6;777:3;766:9;762:19;755:35;843:6;838:2;830:6;826:15;820:3;809:9;805:19;799:51;900:1;894:3;885:6;874:9;870:22;866:32;859:43;970:3;963:2;959:7;954:2;946:6;942:15;938:29;927:9;923:45;919:55;911:63;;;199:781;;;;;;;;:::o;985:160::-;-1:-1:-1;;;;;1089:31:1;;1079:42;;1069:70;;1135:1;1132;1125:12;1150:312;1245:6;1298:2;1286:9;1277:7;1273:23;1269:32;1266:52;;;1314:1;1311;1304:12;1266:52;1353:9;1340:23;1372:60;1426:5;1372:60;:::i;:::-;1451:5;1150:312;-1:-1:-1;;;1150:312:1:o;1467:203::-;-1:-1:-1;;;;;1631:32:1;;;;1613:51;;1601:2;1586:18;;1467:203::o;1864:127::-;1925:10;1920:3;1916:20;1913:1;1906:31;1956:4;1953:1;1946:15;1980:4;1977:1;1970:15;1996:725;2038:5;2091:3;2084:4;2076:6;2072:17;2068:27;2058:55;;2109:1;2106;2099:12;2058:55;2149:6;2136:20;-1:-1:-1;;;;;2171:6:1;2168:30;2165:56;;;2201:18;;:::i;:::-;2250:2;2244:9;2342:2;2304:17;;-1:-1:-1;;2300:31:1;;;2333:2;2296:40;2292:54;2280:67;;-1:-1:-1;;;;;2362:34:1;;2398:22;;;2359:62;2356:88;;;2424:18;;:::i;:::-;2460:2;2453:22;2484;;;2525:19;;;2546:4;2521:30;2518:39;-1:-1:-1;2515:59:1;;;2570:1;2567;2560:12;2515:59;2634:6;2627:4;2619:6;2615:17;2608:4;2600:6;2596:17;2583:58;2689:1;2661:19;;;2682:4;2657:30;2650:41;;;;2665:6;1996:725;-1:-1:-1;;;1996:725:1:o;2726:759::-;2857:6;2865;2873;2881;2934:3;2922:9;2913:7;2909:23;2905:33;2902:53;;;2951:1;2948;2941:12;2902:53;2987:9;2974:23;2964:33;;3047:2;3036:9;3032:18;3019:32;3060:60;3114:5;3060:60;:::i;:::-;3139:5;-1:-1:-1;3196:2:1;3181:18;;3168:32;3209:62;3168:32;3209:62;:::i;:::-;3290:7;-1:-1:-1;3348:2:1;3333:18;;3320:32;-1:-1:-1;;;;;3364:30:1;;3361:50;;;3407:1;3404;3397:12;3361:50;3430:49;3471:7;3462:6;3451:9;3447:22;3430:49;:::i;:::-;3420:59;;;2726:759;;;;;;;:::o;3490:482::-;3594:6;3602;3655:2;3643:9;3634:7;3630:23;3626:32;3623:52;;;3671:1;3668;3661:12;3623:52;3710:9;3697:23;3729:60;3783:5;3729:60;:::i;:::-;3808:5;-1:-1:-1;3865:2:1;3850:18;;3837:32;3878:62;3837:32;3878:62;:::i;:::-;3959:7;3949:17;;;3490:482;;;;;:::o;3977:690::-;4099:6;4107;4115;4168:2;4156:9;4147:7;4143:23;4139:32;4136:52;;;4184:1;4181;4174:12;4136:52;4223:9;4210:23;4242:60;4296:5;4242:60;:::i;:::-;4321:5;-1:-1:-1;4378:2:1;4363:18;;4350:32;4391:62;4350:32;4391:62;:::i;:::-;4472:7;-1:-1:-1;4530:2:1;4515:18;;4502:32;-1:-1:-1;;;;;4546:30:1;;4543:50;;;4589:1;4586;4579:12;4543:50;4612:49;4653:7;4644:6;4633:9;4629:22;4612:49;:::i;:::-;4602:59;;;3977:690;;;;;:::o;4953:380::-;5032:1;5028:12;;;;5075;;;5096:61;;5150:4;5142:6;5138:17;5128:27;;5096:61;5203:2;5195:6;5192:14;5172:18;5169:38;5166:161;;5249:10;5244:3;5240:20;5237:1;5230:31;5284:4;5281:1;5274:15;5312:4;5309:1;5302:15;5166:161;;4953:380;;;:::o;5610:288::-;5688:6;5741:2;5729:9;5720:7;5716:23;5712:32;5709:52;;;5757:1;5754;5747:12;5709:52;5789:9;5783:16;5808:60;5862:5;5808:60;:::i;6255:222::-;6320:9;;;6341:10;;;6338:133;;;6393:10;6388:3;6384:20;6381:1;6374:31;6428:4;6425:1;6418:15;6456:4;6453:1;6446:15;6338:133;6255:222;;;;:::o;7190:300::-;-1:-1:-1;;;;;7382:32:1;;;7364:51;;7451:32;;7446:2;7431:18;;7424:60;7352:2;7337:18;;7190:300::o;7969:517::-;8070:2;8065:3;8062:11;8059:421;;;8106:5;8103:1;8096:16;8150:4;8147:1;8137:18;8220:2;8208:10;8204:19;8201:1;8197:27;8191:4;8187:38;8256:4;8244:10;8241:20;8238:47;;;-1:-1:-1;8279:4:1;8238:47;8334:2;8329:3;8325:12;8322:1;8318:20;8312:4;8308:31;8298:41;;8389:81;8407:2;8400:5;8397:13;8389:81;;;8466:1;8452:16;;8433:1;8422:13;8389:81;;;8393:3;;8059:421;7969:517;;;:::o;8662:1295::-;8786:3;8780:10;-1:-1:-1;;;;;8805:6:1;8802:30;8799:56;;;8835:18;;:::i;:::-;8864:96;8953:6;8913:38;8945:4;8939:11;8913:38;:::i;:::-;8907:4;8864:96;:::i;:::-;9009:4;9040:2;9029:14;;9057:1;9052:648;;;;9744:1;9761:6;9758:89;;;-1:-1:-1;9813:19:1;;;9807:26;9758:89;-1:-1:-1;;8619:1:1;8615:11;;;8611:24;8607:29;8597:40;8643:1;8639:11;;;8594:57;9860:81;;9022:929;;9052:648;7916:1;7909:14;;;7953:4;7940:18;;-1:-1:-1;;9088:20:1;;;9205:222;9219:7;9216:1;9213:14;9205:222;;;9301:19;;;9295:26;9280:42;;9408:4;9393:20;;;;9361:1;9349:14;;;;9235:12;9205:222;;;9209:3;9455:6;9446:7;9443:19;9440:201;;;9516:19;;;9510:26;-1:-1:-1;;9599:1:1;9595:14;;;9611:3;9591:24;9587:37;9583:42;9568:58;9553:74;;9440:201;-1:-1:-1;;;;9687:1:1;9671:14;;;9667:22;9654:36;;-1:-1:-1;8662:1295:1:o;11749:994::-;-1:-1:-1;;;;;11921:32:1;;11903:51;;11990:2;11985;11970:18;;11963:30;12040:13;;-1:-1:-1;;;;12076:36:1;12040:13;12076:36;:::i;:::-;12148:6;12143:2;12132:9;12128:18;12121:34;12186:1;12175:9;12171:17;12202:1;12197:158;;;;12369:1;12364:353;;;;12164:553;;12197:158;12264:3;12260:8;12249:9;12245:24;12240:2;12229:9;12225:18;12218:52;12342:2;12330:6;12323:14;12316:22;12313:1;12309:30;12298:9;12294:46;12290:55;12283:62;;12197:158;;12364:353;12395:6;12392:1;12385:17;12443:2;12440:1;12430:16;12468:1;12482:179;12496:6;12493:1;12490:13;12482:179;;;12589:14;;12565:17;;;12584:2;12561:26;12554:50;12645:1;12632:15;;;;12518:2;12511:10;12482:179;;;12685:17;;12704:2;12681:26;;-1:-1:-1;;12164:553:1;-1:-1:-1;12734:3:1;;11749:994;-1:-1:-1;;;;;;11749:994:1:o
Swarm Source
ipfs://1c448d63a572caa9b3c5392439f8a48e3fc1406566643f46a57e5d40aac4ff09
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.