isProgramEnabled()
This function is in the StandardRewards.sol contract.
Last updated
This function is in the StandardRewards.sol contract.
function _isProgramEnabled(ProgramData memory p) private pure returns (bool)This function is used to check if a specific rewards program exists.
If a rewards program is enabled, it does NOT mean that it's currently active.
To check if a rewards program is currently active, use isProgramActive().
id
uint256
The ID of the rewards program.
This function returns a boolean indicating if a rewards program with the indicated ID has been enabled.
bool
True: Rewards program exists. False: Rewards program does not exist.
Last updated
