Auto Compounding
Check if a pool has a rewards program
function isProgramActive()
AutoCompoundingStakingRewards.sol
By passing the pool address (which is identical to the token address), the function would indicate if there is an active Auto-Compounding rewards plan for it.
Function Arguments
Name | Type | Description |
---|---|---|
pool | Token |
Return Variables
The functionisProgramActive()
returns the variable named bool.
Solidity provides boolean data types. The bool data type is a binary variable that returns variables like, true or false.
Variable Name | Return |
---|---|
bool | true or false for if a pool has an active rewards program |
Last updated