Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
ScheduledProxyAdmin
Compiler Version
v0.8.26+commit.8a97fa7a
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2024-10-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 ScheduledProxyAdmin 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); /** * @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 60 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 + 60 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
[{"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
6080604052348015600e575f80fd5b50601633601e565b60018055606d565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6110938061007a5f395ff3fe6080604052600436106100b0575f3560e01c80638da5cb5b1161006d5780638da5cb5b146101c35780639623609d146101df57806399a88ec4146101f2578063ba6b055514610211578063c2d6de3414610230578063f2fde38b1461024f578063f3b7dead1461026e575f80fd5b80630d2b4707146100b4578063204e1c7a146100ed5780633bbe713f146101245780636c12d8851461016f578063715018a6146101905780637eff275e146101a4575b5f80fd5b3480156100bf575f80fd5b506100d36100ce366004610bde565b61028d565b6040516100e4959493929190610bf5565b60405180910390f35b3480156100f8575f80fd5b5061010c610107366004610c6d565b610359565b6040516001600160a01b0390911681526020016100e4565b34801561012f575f80fd5b5061015d61013e366004610bde565b5f9081526002602081905260409091200154600160a01b900460ff1690565b60405160ff90911681526020016100e4565b34801561017a575f80fd5b5061018e610189366004610d2e565b6103e4565b005b34801561019b575f80fd5b5061018e610682565b3480156101af575f80fd5b5061018e6101be366004610d96565b610695565b3480156101ce575f80fd5b505f546001600160a01b031661010c565b61018e6101ed366004610dcd565b6106f7565b3480156101fd575f80fd5b5061018e61020c366004610d96565b61073f565b34801561021c575f80fd5b5061018e61022b366004610d96565b610782565b34801561023b575f80fd5b5061018e61024a366004610d96565b610948565b34801561025a575f80fd5b5061018e610269366004610c6d565b610a40565b348015610279575f80fd5b5061010c610288366004610c6d565b610ab9565b600260208190525f9182526040909120805460018201549282015460038301805492946001600160a01b039081169490831693600160a01b90930460ff16929091906102d890610e2b565b80601f016020809104026020016040519081016040528092919081815260200182805461030490610e2b565b801561034f5780601f106103265761010080835404028352916020019161034f565b820191905f5260205f20905b81548152906001019060200180831161033257829003601f168201915b5050505050905085565b5f805f836001600160a01b031660405161037d90635c60da1b60e01b815260040190565b5f60405180830381855afa9150503d805f81146103b5576040519150601f19603f3d011682016040523d82523d5f602084013e6103ba565b606091505b5091509150816103c8575f80fd5b808060200190518101906103dc9190610e63565b949350505050565b6103ec610add565b6103f4610b36565b6001600160a01b0382166104495760405162461bcd60e51b8152602060048201526017602482015276125b5c1b195b595b9d185d1a5bdb881c995c5d5a5c9959604a1b60448201526064015b60405180910390fd5b61045542610e10610e7e565b84116104995760405162461bcd60e51b8152602060048201526013602482015272496e76616c696420746172676574206461746560681b6044820152606401610440565b6001600160a01b0382163b6104f05760405162461bcd60e51b815260206004820152601f60248201527f496d706c2061646472657373206d757374206265206120636f6e7472616374006044820152606401610440565b5f8383604051602001610504929190610ea3565b60408051808303601f1901815291815281516020928301205f8181526002938490529190912090910154909150600160a01b900460ff161561057f5760405162461bcd60e51b8152602060048201526014602482015273155c19dc98591948185b1c9958591e481d5cd95960621b6044820152606401610440565b6040805160a0810182528681526001600160a01b038087166020808401918252878316848601908152600160608601818152608087018a81525f8a81526002958690529890982087518155945191850180549287166001600160a01b03199093169290921790915590519183018054915160ff16600160a01b026001600160a81b0319909216929094169190911717909155915190919060038201906106259082610f09565b5050604080518781526001600160a01b03878116602083015286168183015290517f821c02a7e23a68e349bd116c78208df0d4530a70a1918023b42f726a5e01154c92509081900360600190a15061067c60018055565b50505050565b61068a610b36565b6106935f610b8f565b565b61069d610b36565b6040516308f2839760e41b81526001600160a01b038281166004830152831690638f283970906024015f604051808303815f87803b1580156106dd575f80fd5b505af11580156106ef573d5f803e3d5ffd5b505050505050565b60405162461bcd60e51b815260206004820181905260248201527f4d616e75616c2070617961626c65207570677261646520666f7262696464656e6044820152606401610440565b60405162461bcd60e51b815260206004820152601860248201527726b0b73ab0b6103ab833b930b232903337b93134b23232b760411b6044820152606401610440565b61078a610add565b5f828260405160200161079e929190610ea3565b60405160208183030381529060405280519060200120905060025f8281526020019081526020015f2060020160149054906101000a900460ff1660ff166001146108225760405162461bcd60e51b8152602060048201526015602482015274155c19dc985919481b9bdd081cd8da19591d5b1959605a1b6044820152606401610440565b5f8181526002602052604090205442116108735760405162461bcd60e51b815260206004820152601260248201527110d85b9b9bdd081d5c19dc985919481e595d60721b6044820152606401610440565b5f81815260026020819052604091829020908101805460ff60a01b198116600360a01b179091556001820154925163278f794360e11b81526001600160a01b0393841693634f1ef286936108d4939190911691600390910190600401610fc4565b5f604051808303815f87803b1580156108eb575f80fd5b505af11580156108fd573d5f803e3d5ffd5b505050507f1d1a68d52611e7e5356825eb15806a7e55f8131fce52c2b4c7cb4babfc53f8818383604051610932929190610ea3565b60405180910390a15061094460018055565b5050565b610950610add565b610958610b36565b5f828260405160200161096c929190610ea3565b60405160208183030381529060405280519060200120905060025f8281526020019081526020015f2060020160149054906101000a900460ff1660ff166001146109ed5760405162461bcd60e51b815260206004820152601260248201527155706772616465206e6f742061637469766560701b6044820152606401610440565b5f8181526002602081905260409182902001805460ff60a01b1916600160a11b179055517fa6698f935ea3cb05304828ddd237d7f7b2ee8f2d7733962bbba67888985e1a2c906109329085908590610ea3565b610a48610b36565b6001600160a01b038116610aad5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610440565b610ab681610b8f565b50565b5f805f836001600160a01b031660405161037d906303e1469160e61b815260040190565b600260015403610b2f5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610440565b6002600155565b5f546001600160a01b031633146106935760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610440565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610bee575f80fd5b5035919050565b85815260018060a01b038516602082015260018060a01b038416604082015260ff8316606082015260a060808201525f82518060a0840152806020850160c085015e5f60c0828501015260c0601f19601f8301168401019150509695505050505050565b6001600160a01b0381168114610ab6575f80fd5b5f60208284031215610c7d575f80fd5b8135610c8881610c59565b9392505050565b634e487b7160e01b5f52604160045260245ffd5b5f82601f830112610cb2575f80fd5b813567ffffffffffffffff811115610ccc57610ccc610c8f565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610cfb57610cfb610c8f565b604052818152838201602001851015610d12575f80fd5b816020850160208301375f918101602001919091529392505050565b5f805f8060808587031215610d41575f80fd5b843593506020850135610d5381610c59565b92506040850135610d6381610c59565b9150606085013567ffffffffffffffff811115610d7e575f80fd5b610d8a87828801610ca3565b91505092959194509250565b5f8060408385031215610da7575f80fd5b8235610db281610c59565b91506020830135610dc281610c59565b809150509250929050565b5f805f60608486031215610ddf575f80fd5b8335610dea81610c59565b92506020840135610dfa81610c59565b9150604084013567ffffffffffffffff811115610e15575f80fd5b610e2186828701610ca3565b9150509250925092565b600181811c90821680610e3f57607f821691505b602082108103610e5d57634e487b7160e01b5f52602260045260245ffd5b50919050565b5f60208284031215610e73575f80fd5b8151610c8881610c59565b80820180821115610e9d57634e487b7160e01b5f52601160045260245ffd5b92915050565b6001600160a01b0392831681529116602082015260400190565b601f821115610f0457805f5260205f20601f840160051c81016020851015610ee25750805b601f840160051c820191505b81811015610f01575f8155600101610eee565b50505b505050565b815167ffffffffffffffff811115610f2357610f23610c8f565b610f3781610f318454610e2b565b84610ebd565b6020601f821160018114610f69575f8315610f525750848201515b5f19600385901b1c1916600184901b178455610f01565b5f84815260208120601f198516915b82811015610f985787850151825560209485019460019092019101610f78565b5084821015610fb557868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b6001600160a01b03831681526040602082015281545f908190610fe681610e2b565b806040860152600182165f8114611004576001811461102057611051565b60ff1983166060870152606082151560051b8701019350611051565b865f5260205f205f5b8381101561104857815488820160600152600190910190602001611029565b87016060019450505b5091969550505050505056fea26469706673582212201b10b542c1e5a363abcad67a458630f92864c7896b2924dd4564487d8d1a654964736f6c634300081a0033
Deployed Bytecode
0x6080604052600436106100b0575f3560e01c80638da5cb5b1161006d5780638da5cb5b146101c35780639623609d146101df57806399a88ec4146101f2578063ba6b055514610211578063c2d6de3414610230578063f2fde38b1461024f578063f3b7dead1461026e575f80fd5b80630d2b4707146100b4578063204e1c7a146100ed5780633bbe713f146101245780636c12d8851461016f578063715018a6146101905780637eff275e146101a4575b5f80fd5b3480156100bf575f80fd5b506100d36100ce366004610bde565b61028d565b6040516100e4959493929190610bf5565b60405180910390f35b3480156100f8575f80fd5b5061010c610107366004610c6d565b610359565b6040516001600160a01b0390911681526020016100e4565b34801561012f575f80fd5b5061015d61013e366004610bde565b5f9081526002602081905260409091200154600160a01b900460ff1690565b60405160ff90911681526020016100e4565b34801561017a575f80fd5b5061018e610189366004610d2e565b6103e4565b005b34801561019b575f80fd5b5061018e610682565b3480156101af575f80fd5b5061018e6101be366004610d96565b610695565b3480156101ce575f80fd5b505f546001600160a01b031661010c565b61018e6101ed366004610dcd565b6106f7565b3480156101fd575f80fd5b5061018e61020c366004610d96565b61073f565b34801561021c575f80fd5b5061018e61022b366004610d96565b610782565b34801561023b575f80fd5b5061018e61024a366004610d96565b610948565b34801561025a575f80fd5b5061018e610269366004610c6d565b610a40565b348015610279575f80fd5b5061010c610288366004610c6d565b610ab9565b600260208190525f9182526040909120805460018201549282015460038301805492946001600160a01b039081169490831693600160a01b90930460ff16929091906102d890610e2b565b80601f016020809104026020016040519081016040528092919081815260200182805461030490610e2b565b801561034f5780601f106103265761010080835404028352916020019161034f565b820191905f5260205f20905b81548152906001019060200180831161033257829003601f168201915b5050505050905085565b5f805f836001600160a01b031660405161037d90635c60da1b60e01b815260040190565b5f60405180830381855afa9150503d805f81146103b5576040519150601f19603f3d011682016040523d82523d5f602084013e6103ba565b606091505b5091509150816103c8575f80fd5b808060200190518101906103dc9190610e63565b949350505050565b6103ec610add565b6103f4610b36565b6001600160a01b0382166104495760405162461bcd60e51b8152602060048201526017602482015276125b5c1b195b595b9d185d1a5bdb881c995c5d5a5c9959604a1b60448201526064015b60405180910390fd5b61045542610e10610e7e565b84116104995760405162461bcd60e51b8152602060048201526013602482015272496e76616c696420746172676574206461746560681b6044820152606401610440565b6001600160a01b0382163b6104f05760405162461bcd60e51b815260206004820152601f60248201527f496d706c2061646472657373206d757374206265206120636f6e7472616374006044820152606401610440565b5f8383604051602001610504929190610ea3565b60408051808303601f1901815291815281516020928301205f8181526002938490529190912090910154909150600160a01b900460ff161561057f5760405162461bcd60e51b8152602060048201526014602482015273155c19dc98591948185b1c9958591e481d5cd95960621b6044820152606401610440565b6040805160a0810182528681526001600160a01b038087166020808401918252878316848601908152600160608601818152608087018a81525f8a81526002958690529890982087518155945191850180549287166001600160a01b03199093169290921790915590519183018054915160ff16600160a01b026001600160a81b0319909216929094169190911717909155915190919060038201906106259082610f09565b5050604080518781526001600160a01b03878116602083015286168183015290517f821c02a7e23a68e349bd116c78208df0d4530a70a1918023b42f726a5e01154c92509081900360600190a15061067c60018055565b50505050565b61068a610b36565b6106935f610b8f565b565b61069d610b36565b6040516308f2839760e41b81526001600160a01b038281166004830152831690638f283970906024015f604051808303815f87803b1580156106dd575f80fd5b505af11580156106ef573d5f803e3d5ffd5b505050505050565b60405162461bcd60e51b815260206004820181905260248201527f4d616e75616c2070617961626c65207570677261646520666f7262696464656e6044820152606401610440565b60405162461bcd60e51b815260206004820152601860248201527726b0b73ab0b6103ab833b930b232903337b93134b23232b760411b6044820152606401610440565b61078a610add565b5f828260405160200161079e929190610ea3565b60405160208183030381529060405280519060200120905060025f8281526020019081526020015f2060020160149054906101000a900460ff1660ff166001146108225760405162461bcd60e51b8152602060048201526015602482015274155c19dc985919481b9bdd081cd8da19591d5b1959605a1b6044820152606401610440565b5f8181526002602052604090205442116108735760405162461bcd60e51b815260206004820152601260248201527110d85b9b9bdd081d5c19dc985919481e595d60721b6044820152606401610440565b5f81815260026020819052604091829020908101805460ff60a01b198116600360a01b179091556001820154925163278f794360e11b81526001600160a01b0393841693634f1ef286936108d4939190911691600390910190600401610fc4565b5f604051808303815f87803b1580156108eb575f80fd5b505af11580156108fd573d5f803e3d5ffd5b505050507f1d1a68d52611e7e5356825eb15806a7e55f8131fce52c2b4c7cb4babfc53f8818383604051610932929190610ea3565b60405180910390a15061094460018055565b5050565b610950610add565b610958610b36565b5f828260405160200161096c929190610ea3565b60405160208183030381529060405280519060200120905060025f8281526020019081526020015f2060020160149054906101000a900460ff1660ff166001146109ed5760405162461bcd60e51b815260206004820152601260248201527155706772616465206e6f742061637469766560701b6044820152606401610440565b5f8181526002602081905260409182902001805460ff60a01b1916600160a11b179055517fa6698f935ea3cb05304828ddd237d7f7b2ee8f2d7733962bbba67888985e1a2c906109329085908590610ea3565b610a48610b36565b6001600160a01b038116610aad5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610440565b610ab681610b8f565b50565b5f805f836001600160a01b031660405161037d906303e1469160e61b815260040190565b600260015403610b2f5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610440565b6002600155565b5f546001600160a01b031633146106935760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610440565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f60208284031215610bee575f80fd5b5035919050565b85815260018060a01b038516602082015260018060a01b038416604082015260ff8316606082015260a060808201525f82518060a0840152806020850160c085015e5f60c0828501015260c0601f19601f8301168401019150509695505050505050565b6001600160a01b0381168114610ab6575f80fd5b5f60208284031215610c7d575f80fd5b8135610c8881610c59565b9392505050565b634e487b7160e01b5f52604160045260245ffd5b5f82601f830112610cb2575f80fd5b813567ffffffffffffffff811115610ccc57610ccc610c8f565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610cfb57610cfb610c8f565b604052818152838201602001851015610d12575f80fd5b816020850160208301375f918101602001919091529392505050565b5f805f8060808587031215610d41575f80fd5b843593506020850135610d5381610c59565b92506040850135610d6381610c59565b9150606085013567ffffffffffffffff811115610d7e575f80fd5b610d8a87828801610ca3565b91505092959194509250565b5f8060408385031215610da7575f80fd5b8235610db281610c59565b91506020830135610dc281610c59565b809150509250929050565b5f805f60608486031215610ddf575f80fd5b8335610dea81610c59565b92506020840135610dfa81610c59565b9150604084013567ffffffffffffffff811115610e15575f80fd5b610e2186828701610ca3565b9150509250925092565b600181811c90821680610e3f57607f821691505b602082108103610e5d57634e487b7160e01b5f52602260045260245ffd5b50919050565b5f60208284031215610e73575f80fd5b8151610c8881610c59565b80820180821115610e9d57634e487b7160e01b5f52601160045260245ffd5b92915050565b6001600160a01b0392831681529116602082015260400190565b601f821115610f0457805f5260205f20601f840160051c81016020851015610ee25750805b601f840160051c820191505b81811015610f01575f8155600101610eee565b50505b505050565b815167ffffffffffffffff811115610f2357610f23610c8f565b610f3781610f318454610e2b565b84610ebd565b6020601f821160018114610f69575f8315610f525750848201515b5f19600385901b1c1916600184901b178455610f01565b5f84815260208120601f198516915b82811015610f985787850151825560209485019460019092019101610f78565b5084821015610fb557868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b6001600160a01b03831681526040602082015281545f908190610fe681610e2b565b806040860152600182165f8114611004576001811461102057611051565b60ff1983166060870152606082151560051b8701019350611051565b865f5260205f205f5b8381101561104857815488820160600152600190910190602001611029565b87016060019450505b5091969550505050505056fea26469706673582212201b10b542c1e5a363abcad67a458630f92864c7896b2924dd4564487d8d1a654964736f6c634300081a0033
Deployed Bytecode Sourcemap
47654:4310:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;47906:67;;;;;;;;;;-1:-1:-1;47906:67:0;;;;;:::i;:::-;;:::i;:::-;;;;;;;;;;;:::i;:::-;;;;;;;;35461:443;;;;;;;;;;-1:-1:-1;35461:443:0;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;1631:32:1;;;1613:51;;1601:2;1586:18;35461:443:0;1467:203:1;51839:122:0;;;;;;;;;;-1:-1:-1;51839:122:0;;;;;:::i;:::-;51900:5;51925:22;;;:17;:22;;;;;;;;:28;;-1:-1:-1;;;51925:28:0;;;;;51839:122;;;;1847:4:1;1835:17;;;1817:36;;1805:2;1790:18;51839:122:0;1675:184:1;48616:1066:0;;;;;;;;;;-1:-1:-1;48616:1066: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;;51495:161;;;;;;:::i;:::-;;:::i;51358:129::-;;;;;;;;;;-1:-1:-1;51358:129:0;;;;;:::i;:::-;;:::i;50640:706::-;;;;;;;;;;-1:-1:-1;50640:706:0;;;;;:::i;:::-;;:::i;49913:420::-;;;;;;;;;;-1:-1:-1;49913:420:0;;;;;:::i;:::-;;:::i;34459:201::-;;;;;;;;;;-1:-1:-1;34459:201:0;;;;;:::i;:::-;;:::i;36073:425::-;;;;;;;;;;-1:-1:-1;36073:425:0;;;;;:::i;:::-;;:::i;47906:67::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;47906:67:0;;;;;;;;-1:-1:-1;;;47906: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;48616:1066::-;46686:21;:19;:21::i;:::-;33439:13:::1;:11;:13::i;:::-;-1:-1:-1::0;;;;;48852:22:0;::::2;48844:58;;;::::0;-1:-1:-1;;;48844:58:0;;6105:2:1;48844: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;;48844:58:0::2;;;;;;;;;48934:28;:15;48952:10;48934:28;:::i;:::-;48921:10;:41;48913:73;;;::::0;-1:-1:-1;;;48913:73:0;;6684:2:1;48913:73:0::2;::::0;::::2;6666:21:1::0;6723:2;6703:18;;;6696:30;-1:-1:-1;;;6742:18:1;;;6735:49;6801:18;;48913:73:0::2;6482:343:1::0;48913:73:0::2;-1:-1:-1::0;;;;;6670:19:0;;;48997:72:::2;;;::::0;-1:-1:-1;;;48997:72:0;;7032:2:1;48997:72:0::2;::::0;::::2;7014:21:1::0;7071:2;7051:18;;;7044:30;7110:33;7090:18;;;7083:61;7161:18;;48997:72:0::2;6830:355:1::0;48997:72:0::2;49150:11;49193:5;49201:8;49174:36;;;;;;;;;:::i;:::-;;::::0;;;;::::2;-1:-1:-1::0;;49174:36:0;;;;;;49164:47;;49174:36:::2;49164:47:::0;;::::2;::::0;49230:22:::2;::::0;;;:17:::2;:22:::0;;;;;;;;:28;;::::2;::::0;49164:47;;-1:-1:-1;;;;49230:28:0;::::2;;;:33:::0;49222:66:::2;;;::::0;-1:-1:-1;;;49222:66:0;;7697:2:1;49222: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;;49222:66:0::2;7495:344:1::0;49222:66:0::2;49365:209;::::0;;::::2;::::0;::::2;::::0;;;;;-1:-1:-1;;;;;49365:209:0;;::::2;;::::0;;::::2;::::0;;;;;::::2;::::0;;;;;;49528:1:::2;49365:209:::0;;;;;;;;;;;;-1:-1:-1;49340:22:0;;;:17:::2;:22:::0;;;;;;;;:234;;;;;;;;::::2;::::0;;;;::::2;-1:-1:-1::0;;;;;;49340:234:0;;::::2;::::0;;;::::2;::::0;;;;;;;::::2;::::0;;;;49365:209:::2;49340:234;-1:-1:-1::0;;;49340:234:0::2;-1:-1:-1::0;;;;;;49340:234:0;;;;;;::::2;::::0;;;;::::2;::::0;;;;;49365:209;;49340:22;:234:::2;::::0;::::2;::::0;::::2;::::0;;::::2;:::i;:::-;-1:-1:-1::0;;49620: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;49620:54:0;;::::2;::::0;-1:-1:-1;49620:54:0;;;;10152:2:1;49620:54:0;;::::2;48814:868;46730:20:::0;46124:1;47250:22;;47067:213;46730:20;48616:1066;;;;:::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;;;;;1631:32:1;;;36796:27:0::1;::::0;::::1;1613:51:1::0;36796:17:0;::::1;::::0;::::1;::::0;1586:18:1;;36796:27:0::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;36681:150:::0;;:::o;51495:161::-;51606:42;;-1:-1:-1;;;51606:42:0;;10540:2:1;51606:42:0;;;10522:21:1;;;10559:18;;;10552:30;10618:34;10598:18;;;10591:62;10670:18;;51606:42:0;10338:356:1;51358:129:0;51445:34;;-1:-1:-1;;;51445:34:0;;10901:2:1;51445:34:0;;;10883:21:1;10940:2;10920:18;;;10913:30;-1:-1:-1;;;10959:18:1;;;10952:54;11023:18;;51445:34:0;10699:348:1;50640:706:0;46686:21;:19;:21::i;:::-;50791:11:::1;50834:5;50842:8;50815:36;;;;;;;;;:::i;:::-;;;;;;;;;;;;;50805:47;;;;;;50791:61;;50871:17;:22;50889:3;50871:22;;;;;;;;;;;:28;;;;;;;;;;;;:33;;50903:1;50871:33;50863:67;;;::::0;-1:-1:-1;;;50863:67:0;;11254:2:1;50863: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;;50863:67:0::1;11052:345:1::0;50863:67:0::1;50967:22;::::0;;;:17:::1;:22;::::0;;;;:33;50949:15:::1;:51;50941:82;;;::::0;-1:-1:-1;;;50941:82:0;;11604:2:1;50941: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;;50941:82:0::1;11402:342:1::0;50941:82:0::1;51062:22;::::0;;;:17:::1;:22;::::0;;;;;;;;:28;;::::1;:32:::0;;-1:-1:-1;;;;51062:32:0;::::1;-1:-1:-1::0;;;51062:32:0::1;::::0;;;-1:-1:-1;51163:32:0;::::1;::::0;51135:144;;-1:-1:-1;;;51135:144:0;;-1:-1:-1;;;;;51163:32:0;;::::1;::::0;51135:78:::1;::::0;:144:::1;::::0;51214:31;;;;;51093:1:::1;51247:31:::0;;::::1;::::0;51135:144:::1;;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;51297:41;51321:5;51329:8;51297:41;;;;;;;:::i;:::-;;;;;;;;50761:585;46730:20:::0;46124:1;47250:22;;47067:213;46730:20;50640:706;;:::o;49913:420::-;46686:21;:19;:21::i;:::-;33439:13:::1;:11;:13::i;:::-;50058:11:::2;50101:5;50109:8;50082:36;;;;;;;;;:::i;:::-;;;;;;;;;;;;;50072:47;;;;;;50058:61;;50138:17;:22;50156:3;50138:22;;;;;;;;;;;:28;;;;;;;;;;;;:33;;50170:1;50138:33;50130:64;;;::::0;-1:-1:-1;;;50130:64:0;;12950:2:1;50130: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;;50130:64:0::2;12748:342:1::0;50130:64:0::2;50233:22;::::0;;;50264:1:::2;50233:22;::::0;;;;;;;;:28:::2;:32:::0;;-1:-1:-1;;;;50233:32:0::2;-1:-1:-1::0;;;50233:32:0::2;::::0;;50283:42;::::2;::::0;::::2;::::0;50308:5;;50316:8;;50283: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;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;2179:18;2171:6;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;;2377:18;2362:34;;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;3375:18;3364:30;;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;4557:18;4546:30;;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;8813:18;8805:6;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://1b10b542c1e5a363abcad67a458630f92864c7896b2924dd4564487d8d1a6549
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 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.