ApplicationsLib
Overview
License: Apache-2.0-or-later
library ApplicationsLibErrors info
ApplicationIndexBitmaskRange
error ApplicationIndexBitmaskRange()Functions info
storeApplication
function storeApplication(
ApplicationsSlot storage self,
uint256 appIndex
) internalSets an application as active in the bitmask.
Parameters:
self
struct ApplicationsSlot
The storage slot where the packed applications are stored.
appIndex
uint256
The application to set as active.
removeApplication
Removes an application from being active in the bitmask.
Parameters:
self
struct ApplicationsSlot
The storage slot where the packed applications are stored.
appIndex
uint256
The application to remove.
isActiveApplication
Checks if an application is active in the bitmask.
Parameters:
packedApplications
uint256
The bitmap packed active applications flags.
appIndex
uint256
The application to check.
Return values:
[0]
bool
bool Whether the application is active.
shouldQueryApp
Returns whether an application should be queried for token balances.
GRG_STAKING is always queried: it is a pre-existing application that self-activates on the first NAV write, so the active-bit may not be set yet on a fresh pool.
Parameters:
packedApplications
uint256
The bitmap packed active applications flags.
appIndex
uint256
The application to check.
Return values:
[0]
bool
bool Whether the application should be queried.
Last updated