Auto Compounding
Check if a pool has a rewards program
Last updated
Check if a pool has a rewards program
Last updated
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.
pool
Token
The functionisProgramActive()
returns the variable named bool.
Solidity provides . The bool data type is a binary variable that returns variables like, true or false.
bool
true or false for if a pool has an active rewards program