IUsdnProtocol
Inherits: IUsdnProtocolImpl, IUsdnProtocolFallback, IUsdnProtocolErrors, IUsdnProtocolEvents
Interface for the USDN protocol and fallback.
Functions
upgradeToAndCall
Upgrades the protocol to a new implementation (check UUPSUpgradeable).
This function should be called by the role with the PROXY_UPGRADE_ROLE.
function upgradeToAndCall(address newImplementation, bytes calldata data) external payable;
Parameters
Name | Type | Description |
---|---|---|
newImplementation | address | The address of the new implementation. |
data | bytes | The data to call when upgrading to the new implementation. Passing in empty data skips the delegatecall to newImplementation . |