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.
Name | Type | Description |
---|---|---|
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 |
---|---|
pool
Token
bool
true or false for if a pool has an active rewards program