Git Source Inherits: IZeroAddressError, ITokenHandlerEvents, IOwnershipErrors, AppAdministratorOrOwnerOnlyDiamondVersion Author: @ShaneDuncan602, @oscarsernarosero, @TJ-Everett This contract contains common variables and functions for all Protocol Asset Handlers

State Variables

MAX_ORACLE_RULES

uint16 constant MAX_ORACLE_RULES = 10;

Functions

proposeAppManagerAddress

this function proposes a new appManagerAddress that is put in storage to be confirmed in a separate process
function proposeAppManagerAddress(address _newAppManagerAddress)
    external
    appAdministratorOrOwnerOnly(lib.handlerBaseStorage().appManager);
Parameters
NameTypeDescription
_newAppManagerAddressaddressthe new address being proposed

confirmAppManagerAddress

this function confirms a new appManagerAddress that was put in storage. It can only be confirmed by the proposed address
function confirmAppManagerAddress() external;

setLastPossibleAction

Set the last possible action for use in action validations.
function setLastPossibleAction(uint8 _lastPossibleAction)
    external
    appAdministratorOrOwnerOnly(lib.handlerBaseStorage().appManager);
Parameters
NameTypeDescription
_lastPossibleActionuint8the highest number in the Action Enum