Overview
S Balance
S Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 18 from a total of 18 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Initialize Proxy | 6973822 | 6 days ago | IN | 0 S | 0.0270408 | ||||
Initialize Proxy | 6973818 | 6 days ago | IN | 0 S | 0.0268293 | ||||
Initialize Proxy | 6973816 | 6 days ago | IN | 0 S | 0.0268275 | ||||
Initialize Proxy | 6973814 | 6 days ago | IN | 0 S | 0.0268293 | ||||
Initialize Proxy | 6959391 | 6 days ago | IN | 0 S | 0.0268293 | ||||
Initialize Proxy | 6959389 | 6 days ago | IN | 0 S | 0.02703965 | ||||
Initialize Proxy | 6959385 | 6 days ago | IN | 0 S | 0.0268293 | ||||
Initialize Proxy | 6959382 | 6 days ago | IN | 0 S | 0.02703965 | ||||
Add Valid Interf... | 6959360 | 6 days ago | IN | 0 S | 0.0038755 | ||||
Add Valid Interf... | 6959358 | 6 days ago | IN | 0 S | 0.0029879 | ||||
Add Valid Interf... | 6959355 | 6 days ago | IN | 0 S | 0.0029879 | ||||
Add Valid Interf... | 6959353 | 6 days ago | IN | 0 S | 0.0029879 | ||||
Add Valid Interf... | 6959348 | 6 days ago | IN | 0 S | 0.0029879 | ||||
Add Valid Interf... | 6959344 | 6 days ago | IN | 0 S | 0.0029879 | ||||
Add Valid Interf... | 6959340 | 6 days ago | IN | 0 S | 0.0029879 | ||||
Add Valid Interf... | 6959337 | 6 days ago | IN | 0 S | 0.0029879 | ||||
Add Valid Interf... | 6959334 | 6 days ago | IN | 0 S | 0.0047631 | ||||
Initialize | 6959329 | 6 days ago | IN | 0 S | 0.02193005 |
Latest 9 internal transactions
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
6973822 | 6 days ago | Contract Creation | 0 S | |||
6973818 | 6 days ago | Contract Creation | 0 S | |||
6973816 | 6 days ago | Contract Creation | 0 S | |||
6973814 | 6 days ago | Contract Creation | 0 S | |||
6959391 | 6 days ago | Contract Creation | 0 S | |||
6959389 | 6 days ago | Contract Creation | 0 S | |||
6959385 | 6 days ago | Contract Creation | 0 S | |||
6959382 | 6 days ago | Contract Creation | 0 S | |||
6959329 | 6 days ago | Contract Creation | 0 S |
Loading...
Loading
This contract may be a proxy contract. Click on More Options and select Is this a proxy? to confirm and enable the "Read as Proxy" & "Write as Proxy" tabs.
Contract Source Code Verified (Exact Match)
Contract Name:
DeployerAndUpgradeManager
Compiler Version
v0.8.28+commit.7893614a
Optimization Enabled:
Yes with 200 runs
Other Settings:
shanghai EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity 0.8.28; import { Initializable } from "@openzeppelin/contracts/proxy/utils/Initializable.sol"; import { Ownable } from "@openzeppelin/contracts/access/Ownable.sol"; import { ProxyAdmin } from "@openzeppelin/contracts/proxy/transparent/ProxyAdmin.sol"; import { TransparentUpgradeableProxy, ITransparentUpgradeableProxy } from "@openzeppelin/contracts/proxy/transparent/TransparentUpgradeableProxy.sol"; import { ReentrancyGuard } from "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import { IERC165 } from "@openzeppelin/contracts/utils/introspection/IERC165.sol"; contract DeployerAndUpgradeManager is Initializable, Ownable, ReentrancyGuard { ProxyAdmin public proxyAdmin; mapping(bytes4 => bool) public validInterfaces; bytes4[] public validInterfaceIds; event ProxyDeployed(address indexed proxyAddress, address indexed implementation); event ImplementationUpgraded(address indexed proxyAddress, address indexed newImplementation); event ProxyAdminChanged(address indexed proxyAddress, address indexed newAdmin); event ValidInterfaceAdded(bytes4 indexed interfaceId); event ValidInterfaceRemoved(bytes4 indexed interfaceId); error NotProxyAdmin(); error NotPermitted(); error InterfaceNotSupported(bytes4 missingInterface); error NoRequiredInterfaces(); error InvalidInterface(bytes4 interfaceId); /** * @notice Initializes the contract with an admin. * @param _admin The address of the admin. */ function initialize(address _admin) external initializer { proxyAdmin = new ProxyAdmin(); transferOwnership(_admin); } /** * @notice Throws an error because renouncing ownership is not allowed. */ function renounceOwnership() public view override onlyOwner { revert NotPermitted(); } /** * @notice Adds a valid interface that can be used for implementations */ function addValidInterface(bytes4 interfaceId) external onlyOwner { validInterfaces[interfaceId] = true; validInterfaceIds.push(interfaceId); emit ValidInterfaceAdded(interfaceId); } /** * @notice Removes a valid interface * @param interfaceId The interface ID to remove * @notice Slither false positive. This is safe and intended behavior. */ //slither-disable-next-line costly-loop function removeValidInterface(bytes4 interfaceId) external onlyOwner { delete validInterfaces[interfaceId]; // Remove interfaceId from validInterfaceIds array for (uint256 i = 0; i < validInterfaceIds.length; ) { if (validInterfaceIds[i] == interfaceId) { validInterfaceIds[i] = validInterfaceIds[validInterfaceIds.length - 1]; validInterfaceIds.pop(); break; } unchecked { ++i; } } emit ValidInterfaceRemoved(interfaceId); } /** * @notice Checks if an interface is valid */ function isValidInterface(bytes4 interfaceId) external view returns (bool) { return validInterfaces[interfaceId]; } /** * @notice Deploys a new Transparent Upgradeable Proxy. * @param implementation The address of the implementation contract. * @return The address of the deployed proxy. */ function initializeProxy(address implementation, bytes4[] calldata requiredInterfaces) external nonReentrant onlyOwner returns (address) { // Verify implementation supports all required interfaces if (requiredInterfaces.length == 0) revert NoRequiredInterfaces(); for (uint256 i = 0; i < requiredInterfaces.length; ) { // First check if interface is valid if (!validInterfaces[requiredInterfaces[i]]) { revert InvalidInterface(requiredInterfaces[i]); } // Then check if implementation supports it if (!supportsInterface(implementation, requiredInterfaces[i])) { revert InterfaceNotSupported(requiredInterfaces[i]); } unchecked { ++i; } } TransparentUpgradeableProxy proxy = new TransparentUpgradeableProxy(implementation, address(proxyAdmin), ""); emit ProxyDeployed(address(proxy), implementation); return address(proxy); } /** * @notice Upgrades the implementation of a proxy. * @param proxyAddress The address of the proxy to upgrade. * @param newImplementation The address of the new implementation contract. */ function upgradeImplementation(address proxyAddress, address newImplementation) external nonReentrant onlyOwner { ITransparentUpgradeableProxy proxy = ITransparentUpgradeableProxy(payable(proxyAddress)); if (proxyAdmin.getProxyAdmin(proxy) != address(proxyAdmin)) revert NotProxyAdmin(); // Get current implementation to verify same interfaces are supported address currentImpl = proxyAdmin.getProxyImplementation(proxy); // For each valid interface that current implementation supports, // ensure new implementation supports it bytes4[] memory supportedInterfaces = _getCurrentImplementationInterfaces(currentImpl); if (supportedInterfaces.length == 0) revert NoRequiredInterfaces(); for (uint256 i = 0; i < supportedInterfaces.length; ) { if (!supportsInterface(newImplementation, supportedInterfaces[i])) { revert InterfaceNotSupported(supportedInterfaces[i]); } unchecked { ++i; } } proxyAdmin.upgrade(proxy, newImplementation); emit ImplementationUpgraded(proxyAddress, newImplementation); } /** * @notice Changes the admin of a proxy. * @param proxyAddress The address of the proxy. * @param newAdmin The address of the new admin. */ function changeProxyAdmin(address proxyAddress, address newAdmin) external nonReentrant onlyOwner { ITransparentUpgradeableProxy proxy = ITransparentUpgradeableProxy(payable(proxyAddress)); proxyAdmin.changeProxyAdmin(proxy, newAdmin); emit ProxyAdminChanged(proxyAddress, newAdmin); } /** * @notice Retrieves the implementation address of a proxy. * @param proxyAddress The address of the proxy. * @return The address of the implementation contract. */ function getProxyImplementation(address proxyAddress) external view onlyOwner returns (address) { ITransparentUpgradeableProxy proxy = ITransparentUpgradeableProxy(payable(proxyAddress)); return proxyAdmin.getProxyImplementation(proxy); } /** * @notice Retrieves the admin address of a proxy. * @param proxyAddress The address of the proxy. * @return The address of the admin. */ function getProxyAdmin(address proxyAddress) external view onlyOwner returns (address) { ITransparentUpgradeableProxy proxy = ITransparentUpgradeableProxy(payable(proxyAddress)); return proxyAdmin.getProxyAdmin(proxy); } /** * @notice Checks if the contract at `account` supports the interface with `interfaceId`. * @param account The address of the contract to check. * @param interfaceId The interface ID to check for support. * @return True if the contract supports the interface, false otherwise. * @notice Slither false positive. This is safe and intended behavior. */ //slither-disable-next-line low-level-calls function supportsInterface(address account, bytes4 interfaceId) internal view returns (bool) { (bool success, bytes memory result) = account.staticcall(abi.encodeWithSelector(IERC165.supportsInterface.selector, interfaceId)); if (!success || result.length < 32) return false; return abi.decode(result, (bool)); } /** * @notice Gets list of valid interfaces that current implementation supports * @notice Slither false positive. This is safe and intended behavior. */ //slither-disable-next-line calls-loop function _getCurrentImplementationInterfaces(address implementation) private view returns (bytes4[] memory) { uint256 count = 0; bytes4[] memory supported = new bytes4[](validInterfaceIds.length); uint256 length = validInterfaceIds.length; for (uint256 i = 0; i < length; ) { bytes4 interfaceId = validInterfaceIds[i]; if (supportsInterface(implementation, interfaceId)) { supported[count++] = interfaceId; } unchecked { ++i; } } // Create array with only the supported interfaces bytes4[] memory result = new bytes4[](count); for (uint256 i = 0; i < count; i++) { result[i] = supported[i]; } return result; } /** * @notice Checks if an implementation supports a specific interface. * @param implementation The address of the implementation contract. * @param interfaceId The interface ID to check. * @return True if the interface is supported. */ function checkInterfaceSupport(address implementation, bytes4 interfaceId) external view returns (bool) { return supportsInterface(implementation, interfaceId); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (proxy/utils/Initializable.sol) pragma solidity ^0.8.2; import "../../utils/Address.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; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract 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. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby disabling 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); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.3) (proxy/transparent/ProxyAdmin.sol) pragma solidity ^0.8.0; import "./TransparentUpgradeableProxy.sol"; import "../../access/Ownable.sol"; /** * @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(ITransparentUpgradeableProxy 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(ITransparentUpgradeableProxy 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(ITransparentUpgradeableProxy 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(ITransparentUpgradeableProxy 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( ITransparentUpgradeableProxy proxy, address implementation, bytes memory data ) public payable virtual onlyOwner { proxy.upgradeToAndCall{value: msg.value}(implementation, data); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (proxy/transparent/TransparentUpgradeableProxy.sol) pragma solidity ^0.8.0; import "../ERC1967/ERC1967Proxy.sol"; /** * @dev Interface for {TransparentUpgradeableProxy}. In order to implement transparency, {TransparentUpgradeableProxy} * does not implement this interface directly, and some of its functions are implemented by an internal dispatch * mechanism. The compiler is unaware that these functions are implemented by {TransparentUpgradeableProxy} and will not * include them in the ABI so this interface must be used to interact with it. */ interface ITransparentUpgradeableProxy is IERC1967 { function admin() external view returns (address); function implementation() external view returns (address); function changeAdmin(address) external; function upgradeTo(address) external; function upgradeToAndCall(address, bytes memory) external payable; } /** * @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. * * NOTE: The real interface of this proxy is that defined in `ITransparentUpgradeableProxy`. This contract does not * inherit from that interface, and instead the admin functions are implicitly implemented using a custom dispatch * mechanism in `_fallback`. Consequently, the compiler will not produce an ABI for this contract. This is necessary to * fully implement transparency without decoding reverts caused by selector clashes between the proxy and the * implementation. * * WARNING: It is not recommended to extend this contract to add additional external functions. If you do so, the compiler * will not check that there are no selector conflicts, due to the note above. A selector clash between any new function * and the functions declared in {ITransparentUpgradeableProxy} will be resolved in favor of the new one. This could * render the admin operations inaccessible, which could prevent upgradeability. Transparency may also be compromised. */ 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. * * CAUTION: This modifier is deprecated, as it could cause issues if the modified function has arguments, and the * implementation provides a function with the same selector. */ modifier ifAdmin() { if (msg.sender == _getAdmin()) { _; } else { _fallback(); } } /** * @dev If caller is the admin process the call internally, otherwise transparently fallback to the proxy behavior */ function _fallback() internal virtual override { if (msg.sender == _getAdmin()) { bytes memory ret; bytes4 selector = msg.sig; if (selector == ITransparentUpgradeableProxy.upgradeTo.selector) { ret = _dispatchUpgradeTo(); } else if (selector == ITransparentUpgradeableProxy.upgradeToAndCall.selector) { ret = _dispatchUpgradeToAndCall(); } else if (selector == ITransparentUpgradeableProxy.changeAdmin.selector) { ret = _dispatchChangeAdmin(); } else if (selector == ITransparentUpgradeableProxy.admin.selector) { ret = _dispatchAdmin(); } else if (selector == ITransparentUpgradeableProxy.implementation.selector) { ret = _dispatchImplementation(); } else { revert("TransparentUpgradeableProxy: admin cannot fallback to proxy target"); } assembly { return(add(ret, 0x20), mload(ret)) } } else { super._fallback(); } } /** * @dev Returns the current admin. * * 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 _dispatchAdmin() private returns (bytes memory) { _requireZeroValue(); address admin = _getAdmin(); return abi.encode(admin); } /** * @dev Returns the current implementation. * * 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 _dispatchImplementation() private returns (bytes memory) { _requireZeroValue(); address implementation = _implementation(); return abi.encode(implementation); } /** * @dev Changes the admin of the proxy. * * Emits an {AdminChanged} event. */ function _dispatchChangeAdmin() private returns (bytes memory) { _requireZeroValue(); address newAdmin = abi.decode(msg.data[4:], (address)); _changeAdmin(newAdmin); return ""; } /** * @dev Upgrade the implementation of the proxy. */ function _dispatchUpgradeTo() private returns (bytes memory) { _requireZeroValue(); address newImplementation = abi.decode(msg.data[4:], (address)); _upgradeToAndCall(newImplementation, bytes(""), false); return ""; } /** * @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. */ function _dispatchUpgradeToAndCall() private returns (bytes memory) { (address newImplementation, bytes memory data) = abi.decode(msg.data[4:], (address, bytes)); _upgradeToAndCall(newImplementation, data, true); return ""; } /** * @dev Returns the current admin. * * CAUTION: This function is deprecated. Use {ERC1967Upgrade-_getAdmin} instead. */ function _admin() internal view virtual returns (address) { return _getAdmin(); } /** * @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); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @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; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library 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.8.0/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract. * * _Available since v4.8._ */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata, string memory errorMessage ) internal view returns (bytes memory) { if (success) { if (returndata.length == 0) { // only check isContract if the call was successful and the return data is empty // otherwise we already know that it was a contract require(isContract(target), "Address: call to non-contract"); } return returndata; } else { _revert(returndata, errorMessage); } } /** * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason or using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { _revert(returndata, errorMessage); } } function _revert(bytes memory returndata, string memory errorMessage) private pure { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.4) (utils/Context.sol) pragma solidity ^0.8.0; /** * @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; } function _contextSuffixLength() internal view virtual returns (uint256) { return 0; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (proxy/ERC1967/ERC1967Proxy.sol) pragma solidity ^0.8.0; import "../Proxy.sol"; import "./ERC1967Upgrade.sol"; /** * @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(); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (proxy/Proxy.sol) pragma solidity ^0.8.0; /** * @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 {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (proxy/ERC1967/ERC1967Upgrade.sol) pragma solidity ^0.8.2; import "../beacon/IBeacon.sol"; import "../../interfaces/IERC1967.sol"; import "../../interfaces/draft-IERC1822.sol"; import "../../utils/Address.sol"; import "../../utils/StorageSlot.sol"; /** * @dev This abstract contract provides getters and event emitting update functions for * https://eips.ethereum.org/EIPS/eip-1967[EIP1967] slots. * * _Available since v4.1._ */ abstract contract ERC1967Upgrade is IERC1967 { // 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 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 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 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); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (proxy/beacon/IBeacon.sol) pragma solidity ^0.8.0; /** * @dev This is the interface that {BeaconProxy} expects of its beacon. */ interface 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); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (interfaces/IERC1967.sol) pragma solidity ^0.8.0; /** * @dev ERC-1967: Proxy Storage Slots. This interface contains the events defined in the ERC. * * _Available since v4.8.3._ */ interface IERC1967 { /** * @dev Emitted when the implementation is upgraded. */ event Upgraded(address indexed implementation); /** * @dev Emitted when the admin account has changed. */ event AdminChanged(address previousAdmin, address newAdmin); /** * @dev Emitted when the beacon is changed. */ event BeaconUpgraded(address indexed beacon); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (interfaces/draft-IERC1822.sol) pragma solidity ^0.8.0; /** * @dev ERC1822: Universal Upgradeable Proxy Standard (UUPS) documents a method for upgradeability through a simplified * proxy whose upgrades are fully controlled by the current implementation. */ interface 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); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (utils/StorageSlot.sol) // This file was procedurally generated from scripts/generate/templates/StorageSlot.js. pragma solidity ^0.8.0; /** * @dev Library for reading and writing primitive types to specific storage slots. * * Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts. * This library helps with reading and writing to such slots without the need for inline assembly. * * The functions in this library return Slot structs that contain a `value` member that can be used to read or write. * * Example usage to set ERC1967 implementation slot: * ```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 } } }
{ "remappings": [ "@aave/=node_modules/@aave/", "@account-abstraction/=node_modules/@account-abstraction/", "@chainlink/=node_modules/@chainlink/", "@eth-optimism/=node_modules/@chainlink/contracts/node_modules/@eth-optimism/", "@openzeppelin/=node_modules/@openzeppelin/", "@uniswap/=node_modules/@uniswap/", "base64-sol/=node_modules/base64-sol/", "ds-test/=lib/ds-test/", "eth-gas-reporter/=node_modules/eth-gas-reporter/", "forge-std/=lib/forge-std/src/", "hardhat/=node_modules/hardhat/", "solidity-bytes-utils/=node_modules/solidity-bytes-utils/", "erc4626-tests/=lib/openzeppelin-contracts-upgradeable/lib/erc4626-tests/", "openzeppelin-contracts-upgradeable/=lib/openzeppelin-contracts-upgradeable/", "openzeppelin/=lib/openzeppelin-contracts-upgradeable/contracts/", "solmate/=lib/solmate/src/", "abdk-libraries-solidity/=node_modules/abdk-libraries-solidity/" ], "optimizer": { "enabled": true, "runs": 200 }, "metadata": { "useLiteralContent": false, "bytecodeHash": "ipfs", "appendCBOR": true }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "evmVersion": "shanghai", "viaIR": true, "libraries": { "src/libs/ValidationLibrary.sol": { "ValidationLibrary": "0x51Ce2EFdEB2d8Bea8F060C6a870B6744e37b5C0F" } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"bytes4","name":"missingInterface","type":"bytes4"}],"name":"InterfaceNotSupported","type":"error"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"InvalidInterface","type":"error"},{"inputs":[],"name":"NoRequiredInterfaces","type":"error"},{"inputs":[],"name":"NotPermitted","type":"error"},{"inputs":[],"name":"NotProxyAdmin","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"proxyAddress","type":"address"},{"indexed":true,"internalType":"address","name":"newImplementation","type":"address"}],"name":"ImplementationUpgraded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint8","name":"version","type":"uint8"}],"name":"Initialized","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"proxyAddress","type":"address"},{"indexed":true,"internalType":"address","name":"newAdmin","type":"address"}],"name":"ProxyAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"proxyAddress","type":"address"},{"indexed":true,"internalType":"address","name":"implementation","type":"address"}],"name":"ProxyDeployed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"ValidInterfaceAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"ValidInterfaceRemoved","type":"event"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"addValidInterface","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"proxyAddress","type":"address"},{"internalType":"address","name":"newAdmin","type":"address"}],"name":"changeProxyAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"implementation","type":"address"},{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"checkInterfaceSupport","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"proxyAddress","type":"address"}],"name":"getProxyAdmin","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"proxyAddress","type":"address"}],"name":"getProxyImplementation","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_admin","type":"address"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"implementation","type":"address"},{"internalType":"bytes4[]","name":"requiredInterfaces","type":"bytes4[]"}],"name":"initializeProxy","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"isValidInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"proxyAdmin","outputs":[{"internalType":"contract ProxyAdmin","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"removeValidInterface","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"proxyAddress","type":"address"},{"internalType":"address","name":"newImplementation","type":"address"}],"name":"upgradeImplementation","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"validInterfaceIds","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"name":"validInterfaces","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
608080604052346072575f805462010000600160b01b0319811633601081811b62010000600160b01b03169290921784559291901c6001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09080a36001805561233c90816100778239f35b5f80fdfe60806040526004361015610011575f80fd5b5f5f3560e01c8063204e1c7a14610d395780633e47158c14610d11578063468c38ee14610a365780634a4340431461083f578063667a6deb146107f9578063715018a6146107d15780637a707f87146106465780637eff275e146106f35780638d125577146106ae5780638da5cb5b14610683578063b6a1e80a14610646578063c4d66de81461043b578063ec79c6c514610319578063f20876aa14610252578063f2fde38b146101775763f3b7dead146100ca575f80fd5b34610174576020366003190112610174576100e3610dc7565b6100eb610eec565b60025460405163f3b7dead60e01b81526001600160a01b0392831660048201529160209183916024918391165afa908115610169576020929161013c575b506040516001600160a01b039091168152f35b61015c9150823d8411610162575b6101548183610e5e565b810190610e94565b5f610129565b503d61014a565b6040513d84823e3d90fd5b80fd5b503461017457602036600319011261017457610191610dc7565b610199610eec565b6001600160a01b0381169081156101fe57825462010000600160b01b03198116601092831b62010000600160b01b0316178455901c6001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08380a380f35b60405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608490fd5b50346101745760203660031901126101745761026c610e47565b610274610eec565b6001600160e01b03198116808352600360205260408320805460ff191660011790556004549091906801000000000000000081101561030557906102c18260016102de9401600455610df3565b90919063ffffffff83549160031b9260e01c831b921b1916179055565b7f15d409388bbb298ddfe80de94edea8f2f04cf4b3a9f3df8e5d0faec58d2903838280a280f35b634e487b7160e01b84526041600452602484fd5b503461017457602036600319011261017457610333610e47565b61033b610eec565b6001600160e01b031916808252600360205260408220805460ff19169055815b60045480821015610434578261037083610df3565b63ffffffff60e01b91549060031b1c60e01b1614610391575060010161035b565b5f19810190811161042057906102c16103ac6103bc93610df3565b90549060031b1c60e01b91610df3565b600454801561040c575f19016103d181610df3565b63ffffffff82549160031b1b191690556004555b7fa764a4ba27c92e9a04d5d33622252f41e5ee038a8efde021020be2c8dc1ebd3b8280a280f35b634e487b7160e01b83526031600452602483fd5b634e487b7160e01b84526011600452602484fd5b50506103e5565b503461017457602036600319011261017457610455610dc7565b81549060ff8260081c161591828093610639575b8015610622575b156105c65760ff1981166001178455826105b5575b5060405161067d8082019082821067ffffffffffffffff8311176105a157908291611c8a8339039084f080156105965760018060a01b03166bffffffffffffffffffffffff60a01b60025416176002556104dd610eec565b6001600160a01b03811680156101fe57835462010000600160b01b03198116601093841b62010000600160b01b031690811786556040519094919390929084901c6001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08780a3610553578380f35b610100600160b01b03199091169091178255600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb384740249890602090a15f80808380f35b6040513d85823e3d90fd5b634e487b7160e01b86526041600452602486fd5b61ffff19166101011783555f610485565b60405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608490fd5b50303b1580156104705750600160ff821614610470565b50600160ff821610610469565b50346101745760203660031901126101745760ff604060209263ffffffff60e01b61066f610e47565b168152600384522054166040519015158152f35b50346101745780600319360112610174575460405160109190911c6001600160a01b03168152602090f35b5034610174576040366003190112610174576106c8610dc7565b602435916001600160e01b0319831683036101745760206106e98484610fe6565b6040519015158152f35b50346101745760403660031901126101745761070d610dc7565b610715610ddd565b9061071e610f46565b610726610eec565b6002546001600160a01b039182169291849116803b156107cd57604051633f7f93af60e11b81526001600160a01b038581166004830152841660248201529082908290604490829084905af18015610169576107b4575b50506001600160a01b0316907fe923ce5ee469e989477ed664be643fb92d252573aad00209ddad9452b5414a898380a36001805580f35b816107be91610e5e565b6107c957825f61077d565b8280fd5b5080fd5b50346101745780600319360112610174576004906107ed610eec565b6339218f3b60e01b8152fd5b5034610174576020366003190112610174576004359060045482101561017457602061082483610df3565b90549060031b1c60e01b6040519063ffffffff60e01b168152f35b503461017457604036600319011261017457610859610dc7565b9060243567ffffffffffffffff81116107cd57366023820112156107cd57806004013567ffffffffffffffff81116107c9576024820191602436918360051b0101116107c9576108a7610f46565b6108af610eec565b8015610a2757825b81811061097e5750505060018060a01b03600254169160405190610bf1908183019183831067ffffffffffffffff84111761096a57918391608093611099843960018060a01b03169586825260208201526060604082015284606082015203019082f091821561095d5760209260018060a01b031690817f3d2489efb661e8b1c3679865db649ca1de61d76a71184a1234de2e55786a6aad6040519480a3600180558152f35b50604051903d90823e3d90fd5b634e487b7160e01b85526041600452602485fd5b6001600160e01b031961099a610995838587610ec7565b610ed7565b168452600360205260ff604085205416156109fd576109c66109c0610995838587610ec7565b86610fe6565b156109d3576001016108b7565b60249450610995916109e493610ec7565b63e12142a160e01b82526001600160e01b031916600452fd5b6024945061099591610a0e93610ec7565b631fea787760e11b82526001600160e01b031916600452fd5b63ef44b83d60e01b8352600483fd5b5034610c19576040366003190112610c1957610a50610dc7565b90610a59610ddd565b91610a62610f46565b610a6a610eec565b60025460405163f3b7dead60e01b81526001600160a01b039283166004820181905294929091169290602081602481875afa8015610c0e5784915f91610cf2575b506001600160a01b031603610ce3576040516310270e3d60e11b81526004810185905293602085602481875afa948515610c0e575f95610cc2575b505f600454610af481610fb4565b965f5b828110610c5557505050610b0a81610fb4565b955f5b828110610c2c57505050845115610c1d575f5b8551811015610b7c57610b476001600160e01b0319610b3f8389610eb3565b511685610fe6565b15610b5457600101610b20565b6001600160e01b031990610b689087610eb3565b511663e12142a160e01b5f5260045260245ffd5b508284803b15610c195760405163266a23b160e21b81526001600160a01b03848116600483015283166024820152905f908290604490829084905af18015610c0e57610bf9575b506001600160a01b0316907f1a5ca99a64512489fd9455e8da426740174107a69292fca0a8b80b08f6f678928380a36001805580f35b610c069193505f90610e5e565b5f9183610bc3565b6040513d5f823e3d90fd5b5f80fd5b63ef44b83d60e01b5f5260045ffd5b6001906001600160e01b0319610c428285610eb3565b5116610c4e828b610eb3565b5201610b0d565b610c5e81610df3565b90549060031b1c60e01b610c728184610fe6565b610c80575b50600101610af7565b8491905f198314610cae57610c9a6001809401968c610eb3565b6001600160e01b0319909116905290610c77565b634e487b7160e01b5f52601160045260245ffd5b610cdc91955060203d602011610162576101548183610e5e565b935f610ae6565b63283fa43d60e11b5f5260045ffd5b610d0b915060203d602011610162576101548183610e5e565b5f610aab565b34610c19575f366003190112610c19576002546040516001600160a01b039091168152602090f35b34610c19576020366003190112610c1957610d52610dc7565b610d5a610eec565b6002546040516310270e3d60e11b81526001600160a01b0392831660048201529160209183916024918391165afa8015610c0e576020915f91610daa57506040516001600160a01b039091168152f35b610dc19150823d8411610162576101548183610e5e565b82610129565b600435906001600160a01b0382168203610c1957565b602435906001600160a01b0382168203610c1957565b90600454821015610e335760045f52600382901c7f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b019160021b601c1690565b634e487b7160e01b5f52603260045260245ffd5b600435906001600160e01b031982168203610c1957565b90601f8019910116810190811067ffffffffffffffff821117610e8057604052565b634e487b7160e01b5f52604160045260245ffd5b90816020910312610c1957516001600160a01b0381168103610c195790565b8051821015610e335760209160051b010190565b9190811015610e335760051b0190565b356001600160e01b031981168103610c195790565b5f5460101c6001600160a01b03163303610f0257565b606460405162461bcd60e51b815260206004820152602060248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152fd5b600260015414610f57576002600155565b60405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606490fd5b67ffffffffffffffff8111610e805760051b60200190565b90610fbe82610f9c565b610fcb6040519182610e5e565b8281528092610fdc601f1991610f9c565b0190602036910137565b5f9190829160405160208101916301ffc9a760e01b835263ffffffff60e01b1660248201526024815261101a604482610e5e565b51915afa3d15611090573d9067ffffffffffffffff8211610e80576040519161104d601f8201601f191660200184610e5e565b82523d5f602084013e5b158015611085575b61108057602081805181010312610c1957602001518015158103610c195790565b505f90565b50602081511061105f565b60609061105756fe6080604052610bf180380380610014816102c7565b92833981016060828203126102c35761002c82610300565b61003860208401610300565b604084015190936001600160401b0382116102c357019082601f830112156102c35781519161006e61006984610314565b6102c7565b928084526020840194602082840101116102c35784602061008f930161032f565b803b15610268577f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc80546001600160a01b0319166001600160a01b0383169081179091557fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b5f80a2815115801590610261575b6101dd575b50505f516020610bd15f395f51905f5254604080516001600160a01b03808416825290941660208501819052939192507f7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f91a18115610189576001600160a01b031916175f516020610bd15f395f51905f52556040516107cd90816104048239f35b60405162461bcd60e51b815260206004820152602660248201527f455243313936373a206e65772061646d696e20697320746865207a65726f206160448201526564647265737360d01b6064820152608490fd5b5f80610250946101ed60606102c7565b94602786527f416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c6020870152660819985a5b195960ca1b60408701525190845af43d15610259573d9161024161006984610314565b9283523d5f602085013e610350565b505f8080610107565b606091610350565b505f610102565b60405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b6064820152608490fd5b5f80fd5b6040519190601f01601f191682016001600160401b038111838210176102ec57604052565b634e487b7160e01b5f52604160045260245ffd5b51906001600160a01b03821682036102c357565b6001600160401b0381116102ec57601f01601f191660200190565b5f5b8381106103405750505f910152565b8181015183820152602001610331565b919290156103b25750815115610364575090565b3b1561036d5790565b60405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606490fd5b8251909150156103c55750805190602001fd5b6044604051809262461bcd60e51b8252602060048301526103f5815180928160248601526020868601910161032f565b601f01601f19168101030190fdfe60806040523661013d575f5160206107585f395f51905f5254610032906001600160a01b03165b6001600160a01b031690565b3303610138575f356001600160e01b031916631b2ce7f360e11b8103610063575061005b610449565b602081519101f35b63278f794360e11b810361007f575061007a6103b9565b61005b565b6308f2839760e41b8103610096575061007a6102d5565b6303e1469160e61b81036100ad575061007a610232565b635c60da1b60e01b036100c25761007a6101f8565b60405162461bcd60e51b815260206004820152604260248201527f5472616e73706172656e745570677261646561626c6550726f78793a2061646d60448201527f696e2063616e6e6f742066616c6c6261636b20746f2070726f78792074617267606482015261195d60f21b608482015260a490fd5b610187565b5f5160206107585f395f51905f525461015e906001600160a01b0316610026565b3303610187575f356001600160e01b031916631b2ce7f360e11b8103610063575061005b610449565b5f5160206107785f395f51905f52545f9081906001600160a01b0316368280378136915af43d5f803e156101b9573d5ff35b3d5ffd5b634e487b7160e01b5f52604160045260245ffd5b90601f8019910116810190811067ffffffffffffffff8211176101f357604052565b6101bd565b610200610569565b60018060a01b035f5160206107785f395f51905f5254166040519060208201526020815261022f6040826101d1565b90565b61023a610569565b60018060a01b035f5160206107585f395f51905f5254166040519060208201526020815261022f6040826101d1565b600435906001600160a01b038216820361027f57565b5f80fd5b602090600319011261027f576004356001600160a01b038116810361027f5790565b67ffffffffffffffff81116101f357601f01601f191660200190565b604051906102d06020836101d1565b5f8252565b6102dd610569565b3660041161027f576001600160a01b036102f636610283565b165f5160206107585f395f51905f52547f7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f6040805160018060a01b0384168152846020820152a18115610365576001600160a01b031916175f5160206107585f395f51905f525561022f6102c1565b60405162461bcd60e51b815260206004820152602660248201527f455243313936373a206e65772061646d696e20697320746865207a65726f206160448201526564647265737360d01b6064820152608490fd5b3660041161027f57604036600319011261027f576103d5610269565b6024359067ffffffffffffffff821161027f573660238301121561027f57816004013590610402826102a5565b9161041060405193846101d1565b808352366024828601011161027f576020815f926024610441970183870137840101526001600160a01b0316610570565b61022f6102c1565b610451610569565b3660041161027f576001600160a01b0361046a36610283565b166040519061047a6020836101d1565b5f8252803b1561050e575f5160206107785f395f51905f5280546001600160a01b03191682179055807fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b5f80a2815115801590610507575b6104ed575b50506040516104e76020826101d1565b5f815290565b6104ff916104f96105ef565b9161063a565b505f806104d7565b505f6104d2565b60405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b6064820152608490fd5b3461027f57565b803b1561050e575f5160206107785f395f51905f5280546001600160a01b0319166001600160a01b0383169081179091557fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b5f80a28151158015906105e7575b6105d8575050565b6105e4916104f96105ef565b50565b5060016105d0565b604051906105fe6060836101d1565b60278252660819985a5b195960ca1b6040837f416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c60208201520152565b5f8061022f9493602081519101845af43d15610677573d9161065b836102a5565b9261066960405194856101d1565b83523d5f602085013e6106cb565b6060916106cb565b1561068657565b60405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606490fd5b919290156106eb57508151156106df575090565b61022f903b151561067f565b8251909150156106fe5750805190602001fd5b6040519062461bcd60e51b825260206004830152818151918260248301525f5b83811061073f575050815f6044809484010152601f80199101168101030190fd5b6020828201810151604487840101528593500161071e56feb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca264697066735822122059a9922b5e8d27b15700bf04faf65d6a1b886318756ce0d3402ef7ddd8235f2464736f6c634300081c0033b53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103608080604052346059575f8054336001600160a01b0319821681178355916001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09080a361061f908161005e8239f35b5f80fdfe6080806040526004361015610012575f80fd5b5f905f3560e01c908163204e1c7a1461046457508063715018a61461040d5780637eff275e1461037b5780638da5cb5b146103545780639623609d1461024257806399a88ec4146101ad578063f2fde38b146100e75763f3b7dead14610076575f80fd5b346100e45760203660031901126100e457808060046001600160a01b0361009b6104c6565b6040516303e1469160e61b815291165afa6100b4610544565b90156100e25780516020916001600160a01b03916100d9919081018401908401610573565b16604051908152f35b505b80fd5b50346100e45760203660031901126100e4576101016104c6565b610109610592565b6001600160a01b031680156101595781546001600160a01b03198116821783556001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08380a380f35b60405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608490fd5b50346100e45760403660031901126100e457806101c86104c6565b6101d06104dc565b906101d9610592565b6001600160a01b031690813b1561023e57604051631b2ce7f360e11b81526001600160a01b0390911660048201529082908290602490829084905af18015610233576102225750f35b8161022c916104f2565b6100e45780f35b6040513d84823e3d90fd5b5050fd5b5060603660031901126100e4576102576104c6565b906102606104dc565b6044359267ffffffffffffffff841161034c573660238501121561034c57836004013561028c81610528565b9461029a60405196876104f2565b81865236602483830101116103505781859260246020930183890137860101526102c2610592565b6001600160a01b0316803b1561034c576040805163278f794360e11b81526001600160a01b0390931660048401526024830152835160448301819052835b81811061033657848085818187816064818a86838284010152601f8019910116810103019134905af18015610233576102225750f35b8060208092880101516064828701015201610300565b8280fd5b8480fd5b50346100e457806003193601126100e457546040516001600160a01b039091168152602090f35b5034610409576040366003190112610409576103956104c6565b61039d6104dc565b906103a6610592565b6001600160a01b031690813b15610409576040516308f2839760e41b81526001600160a01b039091166004820152905f908290602490829084905af180156103fe576103f0575080f35b6103fc91505f906104f2565b005b6040513d5f823e3d90fd5b5f80fd5b34610409575f36600319011261040957610425610592565b5f80546001600160a01b0319811682556001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a3005b34610409576020366003190112610409575f9081906004906001600160a01b0361048c6104c6565b635c60da1b60e01b8352165afa6104a1610544565b90156104095780516020916001600160a01b03916100d9919081018401908401610573565b600435906001600160a01b038216820361040957565b602435906001600160a01b038216820361040957565b90601f8019910116810190811067ffffffffffffffff82111761051457604052565b634e487b7160e01b5f52604160045260245ffd5b67ffffffffffffffff811161051457601f01601f191660200190565b3d1561056e573d9061055582610528565b9161056360405193846104f2565b82523d5f602084013e565b606090565b9081602091031261040957516001600160a01b03811681036104095790565b5f546001600160a01b031633036105a557565b606460405162461bcd60e51b815260206004820152602060248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152fdfea2646970667358221220cdefa549f4418318bca2498d91600b87badf304912a0050e8845f9456255f93164736f6c634300081c0033a2646970667358221220c39e0a6717c739aede966d1bc825ec3c0a4a7e733cccc57fe64d0da0cc3c6fb864736f6c634300081c0033
Deployed Bytecode
0x60806040526004361015610011575f80fd5b5f5f3560e01c8063204e1c7a14610d395780633e47158c14610d11578063468c38ee14610a365780634a4340431461083f578063667a6deb146107f9578063715018a6146107d15780637a707f87146106465780637eff275e146106f35780638d125577146106ae5780638da5cb5b14610683578063b6a1e80a14610646578063c4d66de81461043b578063ec79c6c514610319578063f20876aa14610252578063f2fde38b146101775763f3b7dead146100ca575f80fd5b34610174576020366003190112610174576100e3610dc7565b6100eb610eec565b60025460405163f3b7dead60e01b81526001600160a01b0392831660048201529160209183916024918391165afa908115610169576020929161013c575b506040516001600160a01b039091168152f35b61015c9150823d8411610162575b6101548183610e5e565b810190610e94565b5f610129565b503d61014a565b6040513d84823e3d90fd5b80fd5b503461017457602036600319011261017457610191610dc7565b610199610eec565b6001600160a01b0381169081156101fe57825462010000600160b01b03198116601092831b62010000600160b01b0316178455901c6001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08380a380f35b60405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608490fd5b50346101745760203660031901126101745761026c610e47565b610274610eec565b6001600160e01b03198116808352600360205260408320805460ff191660011790556004549091906801000000000000000081101561030557906102c18260016102de9401600455610df3565b90919063ffffffff83549160031b9260e01c831b921b1916179055565b7f15d409388bbb298ddfe80de94edea8f2f04cf4b3a9f3df8e5d0faec58d2903838280a280f35b634e487b7160e01b84526041600452602484fd5b503461017457602036600319011261017457610333610e47565b61033b610eec565b6001600160e01b031916808252600360205260408220805460ff19169055815b60045480821015610434578261037083610df3565b63ffffffff60e01b91549060031b1c60e01b1614610391575060010161035b565b5f19810190811161042057906102c16103ac6103bc93610df3565b90549060031b1c60e01b91610df3565b600454801561040c575f19016103d181610df3565b63ffffffff82549160031b1b191690556004555b7fa764a4ba27c92e9a04d5d33622252f41e5ee038a8efde021020be2c8dc1ebd3b8280a280f35b634e487b7160e01b83526031600452602483fd5b634e487b7160e01b84526011600452602484fd5b50506103e5565b503461017457602036600319011261017457610455610dc7565b81549060ff8260081c161591828093610639575b8015610622575b156105c65760ff1981166001178455826105b5575b5060405161067d8082019082821067ffffffffffffffff8311176105a157908291611c8a8339039084f080156105965760018060a01b03166bffffffffffffffffffffffff60a01b60025416176002556104dd610eec565b6001600160a01b03811680156101fe57835462010000600160b01b03198116601093841b62010000600160b01b031690811786556040519094919390929084901c6001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08780a3610553578380f35b610100600160b01b03199091169091178255600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb384740249890602090a15f80808380f35b6040513d85823e3d90fd5b634e487b7160e01b86526041600452602486fd5b61ffff19166101011783555f610485565b60405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608490fd5b50303b1580156104705750600160ff821614610470565b50600160ff821610610469565b50346101745760203660031901126101745760ff604060209263ffffffff60e01b61066f610e47565b168152600384522054166040519015158152f35b50346101745780600319360112610174575460405160109190911c6001600160a01b03168152602090f35b5034610174576040366003190112610174576106c8610dc7565b602435916001600160e01b0319831683036101745760206106e98484610fe6565b6040519015158152f35b50346101745760403660031901126101745761070d610dc7565b610715610ddd565b9061071e610f46565b610726610eec565b6002546001600160a01b039182169291849116803b156107cd57604051633f7f93af60e11b81526001600160a01b038581166004830152841660248201529082908290604490829084905af18015610169576107b4575b50506001600160a01b0316907fe923ce5ee469e989477ed664be643fb92d252573aad00209ddad9452b5414a898380a36001805580f35b816107be91610e5e565b6107c957825f61077d565b8280fd5b5080fd5b50346101745780600319360112610174576004906107ed610eec565b6339218f3b60e01b8152fd5b5034610174576020366003190112610174576004359060045482101561017457602061082483610df3565b90549060031b1c60e01b6040519063ffffffff60e01b168152f35b503461017457604036600319011261017457610859610dc7565b9060243567ffffffffffffffff81116107cd57366023820112156107cd57806004013567ffffffffffffffff81116107c9576024820191602436918360051b0101116107c9576108a7610f46565b6108af610eec565b8015610a2757825b81811061097e5750505060018060a01b03600254169160405190610bf1908183019183831067ffffffffffffffff84111761096a57918391608093611099843960018060a01b03169586825260208201526060604082015284606082015203019082f091821561095d5760209260018060a01b031690817f3d2489efb661e8b1c3679865db649ca1de61d76a71184a1234de2e55786a6aad6040519480a3600180558152f35b50604051903d90823e3d90fd5b634e487b7160e01b85526041600452602485fd5b6001600160e01b031961099a610995838587610ec7565b610ed7565b168452600360205260ff604085205416156109fd576109c66109c0610995838587610ec7565b86610fe6565b156109d3576001016108b7565b60249450610995916109e493610ec7565b63e12142a160e01b82526001600160e01b031916600452fd5b6024945061099591610a0e93610ec7565b631fea787760e11b82526001600160e01b031916600452fd5b63ef44b83d60e01b8352600483fd5b5034610c19576040366003190112610c1957610a50610dc7565b90610a59610ddd565b91610a62610f46565b610a6a610eec565b60025460405163f3b7dead60e01b81526001600160a01b039283166004820181905294929091169290602081602481875afa8015610c0e5784915f91610cf2575b506001600160a01b031603610ce3576040516310270e3d60e11b81526004810185905293602085602481875afa948515610c0e575f95610cc2575b505f600454610af481610fb4565b965f5b828110610c5557505050610b0a81610fb4565b955f5b828110610c2c57505050845115610c1d575f5b8551811015610b7c57610b476001600160e01b0319610b3f8389610eb3565b511685610fe6565b15610b5457600101610b20565b6001600160e01b031990610b689087610eb3565b511663e12142a160e01b5f5260045260245ffd5b508284803b15610c195760405163266a23b160e21b81526001600160a01b03848116600483015283166024820152905f908290604490829084905af18015610c0e57610bf9575b506001600160a01b0316907f1a5ca99a64512489fd9455e8da426740174107a69292fca0a8b80b08f6f678928380a36001805580f35b610c069193505f90610e5e565b5f9183610bc3565b6040513d5f823e3d90fd5b5f80fd5b63ef44b83d60e01b5f5260045ffd5b6001906001600160e01b0319610c428285610eb3565b5116610c4e828b610eb3565b5201610b0d565b610c5e81610df3565b90549060031b1c60e01b610c728184610fe6565b610c80575b50600101610af7565b8491905f198314610cae57610c9a6001809401968c610eb3565b6001600160e01b0319909116905290610c77565b634e487b7160e01b5f52601160045260245ffd5b610cdc91955060203d602011610162576101548183610e5e565b935f610ae6565b63283fa43d60e11b5f5260045ffd5b610d0b915060203d602011610162576101548183610e5e565b5f610aab565b34610c19575f366003190112610c19576002546040516001600160a01b039091168152602090f35b34610c19576020366003190112610c1957610d52610dc7565b610d5a610eec565b6002546040516310270e3d60e11b81526001600160a01b0392831660048201529160209183916024918391165afa8015610c0e576020915f91610daa57506040516001600160a01b039091168152f35b610dc19150823d8411610162576101548183610e5e565b82610129565b600435906001600160a01b0382168203610c1957565b602435906001600160a01b0382168203610c1957565b90600454821015610e335760045f52600382901c7f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b019160021b601c1690565b634e487b7160e01b5f52603260045260245ffd5b600435906001600160e01b031982168203610c1957565b90601f8019910116810190811067ffffffffffffffff821117610e8057604052565b634e487b7160e01b5f52604160045260245ffd5b90816020910312610c1957516001600160a01b0381168103610c195790565b8051821015610e335760209160051b010190565b9190811015610e335760051b0190565b356001600160e01b031981168103610c195790565b5f5460101c6001600160a01b03163303610f0257565b606460405162461bcd60e51b815260206004820152602060248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152fd5b600260015414610f57576002600155565b60405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606490fd5b67ffffffffffffffff8111610e805760051b60200190565b90610fbe82610f9c565b610fcb6040519182610e5e565b8281528092610fdc601f1991610f9c565b0190602036910137565b5f9190829160405160208101916301ffc9a760e01b835263ffffffff60e01b1660248201526024815261101a604482610e5e565b51915afa3d15611090573d9067ffffffffffffffff8211610e80576040519161104d601f8201601f191660200184610e5e565b82523d5f602084013e5b158015611085575b61108057602081805181010312610c1957602001518015158103610c195790565b505f90565b50602081511061105f565b60609061105756fe6080604052610bf180380380610014816102c7565b92833981016060828203126102c35761002c82610300565b61003860208401610300565b604084015190936001600160401b0382116102c357019082601f830112156102c35781519161006e61006984610314565b6102c7565b928084526020840194602082840101116102c35784602061008f930161032f565b803b15610268577f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc80546001600160a01b0319166001600160a01b0383169081179091557fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b5f80a2815115801590610261575b6101dd575b50505f516020610bd15f395f51905f5254604080516001600160a01b03808416825290941660208501819052939192507f7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f91a18115610189576001600160a01b031916175f516020610bd15f395f51905f52556040516107cd90816104048239f35b60405162461bcd60e51b815260206004820152602660248201527f455243313936373a206e65772061646d696e20697320746865207a65726f206160448201526564647265737360d01b6064820152608490fd5b5f80610250946101ed60606102c7565b94602786527f416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c6020870152660819985a5b195960ca1b60408701525190845af43d15610259573d9161024161006984610314565b9283523d5f602085013e610350565b505f8080610107565b606091610350565b505f610102565b60405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b6064820152608490fd5b5f80fd5b6040519190601f01601f191682016001600160401b038111838210176102ec57604052565b634e487b7160e01b5f52604160045260245ffd5b51906001600160a01b03821682036102c357565b6001600160401b0381116102ec57601f01601f191660200190565b5f5b8381106103405750505f910152565b8181015183820152602001610331565b919290156103b25750815115610364575090565b3b1561036d5790565b60405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606490fd5b8251909150156103c55750805190602001fd5b6044604051809262461bcd60e51b8252602060048301526103f5815180928160248601526020868601910161032f565b601f01601f19168101030190fdfe60806040523661013d575f5160206107585f395f51905f5254610032906001600160a01b03165b6001600160a01b031690565b3303610138575f356001600160e01b031916631b2ce7f360e11b8103610063575061005b610449565b602081519101f35b63278f794360e11b810361007f575061007a6103b9565b61005b565b6308f2839760e41b8103610096575061007a6102d5565b6303e1469160e61b81036100ad575061007a610232565b635c60da1b60e01b036100c25761007a6101f8565b60405162461bcd60e51b815260206004820152604260248201527f5472616e73706172656e745570677261646561626c6550726f78793a2061646d60448201527f696e2063616e6e6f742066616c6c6261636b20746f2070726f78792074617267606482015261195d60f21b608482015260a490fd5b610187565b5f5160206107585f395f51905f525461015e906001600160a01b0316610026565b3303610187575f356001600160e01b031916631b2ce7f360e11b8103610063575061005b610449565b5f5160206107785f395f51905f52545f9081906001600160a01b0316368280378136915af43d5f803e156101b9573d5ff35b3d5ffd5b634e487b7160e01b5f52604160045260245ffd5b90601f8019910116810190811067ffffffffffffffff8211176101f357604052565b6101bd565b610200610569565b60018060a01b035f5160206107785f395f51905f5254166040519060208201526020815261022f6040826101d1565b90565b61023a610569565b60018060a01b035f5160206107585f395f51905f5254166040519060208201526020815261022f6040826101d1565b600435906001600160a01b038216820361027f57565b5f80fd5b602090600319011261027f576004356001600160a01b038116810361027f5790565b67ffffffffffffffff81116101f357601f01601f191660200190565b604051906102d06020836101d1565b5f8252565b6102dd610569565b3660041161027f576001600160a01b036102f636610283565b165f5160206107585f395f51905f52547f7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f6040805160018060a01b0384168152846020820152a18115610365576001600160a01b031916175f5160206107585f395f51905f525561022f6102c1565b60405162461bcd60e51b815260206004820152602660248201527f455243313936373a206e65772061646d696e20697320746865207a65726f206160448201526564647265737360d01b6064820152608490fd5b3660041161027f57604036600319011261027f576103d5610269565b6024359067ffffffffffffffff821161027f573660238301121561027f57816004013590610402826102a5565b9161041060405193846101d1565b808352366024828601011161027f576020815f926024610441970183870137840101526001600160a01b0316610570565b61022f6102c1565b610451610569565b3660041161027f576001600160a01b0361046a36610283565b166040519061047a6020836101d1565b5f8252803b1561050e575f5160206107785f395f51905f5280546001600160a01b03191682179055807fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b5f80a2815115801590610507575b6104ed575b50506040516104e76020826101d1565b5f815290565b6104ff916104f96105ef565b9161063a565b505f806104d7565b505f6104d2565b60405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b6064820152608490fd5b3461027f57565b803b1561050e575f5160206107785f395f51905f5280546001600160a01b0319166001600160a01b0383169081179091557fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b5f80a28151158015906105e7575b6105d8575050565b6105e4916104f96105ef565b50565b5060016105d0565b604051906105fe6060836101d1565b60278252660819985a5b195960ca1b6040837f416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c60208201520152565b5f8061022f9493602081519101845af43d15610677573d9161065b836102a5565b9261066960405194856101d1565b83523d5f602085013e6106cb565b6060916106cb565b1561068657565b60405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606490fd5b919290156106eb57508151156106df575090565b61022f903b151561067f565b8251909150156106fe5750805190602001fd5b6040519062461bcd60e51b825260206004830152818151918260248301525f5b83811061073f575050815f6044809484010152601f80199101168101030190fd5b6020828201810151604487840101528593500161071e56feb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca264697066735822122059a9922b5e8d27b15700bf04faf65d6a1b886318756ce0d3402ef7ddd8235f2464736f6c634300081c0033b53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103608080604052346059575f8054336001600160a01b0319821681178355916001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09080a361061f908161005e8239f35b5f80fdfe6080806040526004361015610012575f80fd5b5f905f3560e01c908163204e1c7a1461046457508063715018a61461040d5780637eff275e1461037b5780638da5cb5b146103545780639623609d1461024257806399a88ec4146101ad578063f2fde38b146100e75763f3b7dead14610076575f80fd5b346100e45760203660031901126100e457808060046001600160a01b0361009b6104c6565b6040516303e1469160e61b815291165afa6100b4610544565b90156100e25780516020916001600160a01b03916100d9919081018401908401610573565b16604051908152f35b505b80fd5b50346100e45760203660031901126100e4576101016104c6565b610109610592565b6001600160a01b031680156101595781546001600160a01b03198116821783556001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08380a380f35b60405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608490fd5b50346100e45760403660031901126100e457806101c86104c6565b6101d06104dc565b906101d9610592565b6001600160a01b031690813b1561023e57604051631b2ce7f360e11b81526001600160a01b0390911660048201529082908290602490829084905af18015610233576102225750f35b8161022c916104f2565b6100e45780f35b6040513d84823e3d90fd5b5050fd5b5060603660031901126100e4576102576104c6565b906102606104dc565b6044359267ffffffffffffffff841161034c573660238501121561034c57836004013561028c81610528565b9461029a60405196876104f2565b81865236602483830101116103505781859260246020930183890137860101526102c2610592565b6001600160a01b0316803b1561034c576040805163278f794360e11b81526001600160a01b0390931660048401526024830152835160448301819052835b81811061033657848085818187816064818a86838284010152601f8019910116810103019134905af18015610233576102225750f35b8060208092880101516064828701015201610300565b8280fd5b8480fd5b50346100e457806003193601126100e457546040516001600160a01b039091168152602090f35b5034610409576040366003190112610409576103956104c6565b61039d6104dc565b906103a6610592565b6001600160a01b031690813b15610409576040516308f2839760e41b81526001600160a01b039091166004820152905f908290602490829084905af180156103fe576103f0575080f35b6103fc91505f906104f2565b005b6040513d5f823e3d90fd5b5f80fd5b34610409575f36600319011261040957610425610592565b5f80546001600160a01b0319811682556001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a3005b34610409576020366003190112610409575f9081906004906001600160a01b0361048c6104c6565b635c60da1b60e01b8352165afa6104a1610544565b90156104095780516020916001600160a01b03916100d9919081018401908401610573565b600435906001600160a01b038216820361040957565b602435906001600160a01b038216820361040957565b90601f8019910116810190811067ffffffffffffffff82111761051457604052565b634e487b7160e01b5f52604160045260245ffd5b67ffffffffffffffff811161051457601f01601f191660200190565b3d1561056e573d9061055582610528565b9161056360405193846104f2565b82523d5f602084013e565b606090565b9081602091031261040957516001600160a01b03811681036104095790565b5f546001600160a01b031633036105a557565b606460405162461bcd60e51b815260206004820152602060248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152fdfea2646970667358221220cdefa549f4418318bca2498d91600b87badf304912a0050e8845f9456255f93164736f6c634300081c0033a2646970667358221220c39e0a6717c739aede966d1bc825ec3c0a4a7e733cccc57fe64d0da0cc3c6fb864736f6c634300081c0033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 31 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
[ Download: CSV Export ]
[ 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.