Application Handler
Purpose
The Application Handler supports the Application Manager by storing the application level rules data and functions. Procotol supported asset handler contracts call the check-application-level-rules function
via the Application Manager. The Application Manager then checks the associated Application Handler where application level rule data is stored. The Application Handler contract also serves as the Application Manager’s connection to the protocol rule processor diamond for the application level rules.
Application Level Rules
Application level rules apply to all assets associated to the Application Manager and handler when set to active. The Application Handler facilitates the rule checks for each application level rule. The first function called by the Application Manager is:
This function allows the Application Manager to know if any application level rules are active and if the call should continue to the handler to check the active rules.
The Application Manager then calls the function:
Within the check application rules function are validation checks for pause rules and valuations. Pause rules are assessed if set to active in the handler.
Token valuation functions are assessed depending on the Handler Type.
The check application rules function will check all application level rules set to active within the handler with the following internal functions:
Rule Functions
The Application Handler is responsible for setting each application level rule to active or inactive accordingly. Only Rule Administrators may set the status of a rule.
Upgrading The Contract
When upgrading to a new Application Handler contract the following function must be called on the Application Manager:
This function can only be called by an App Administrators.