Auto Compounding

Check if a pool has a rewards program

function isProgramActive()

AutoCompoundingStakingRewards.sol
    function isProgramActive(Token pool) external view returns (bool) 

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

NameTypeDescription

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 NameReturn

bool

true or false for if a pool has an active rewards program

Last updated