> For the complete documentation index, see [llms.txt](https://docs.bancor.network/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.bancor.network/developer-guides/read-functions/rewards/standard-rewards/identify-if-a-program-exists/auto-compounding.md).

# Auto Compounding

### function isProgramActive()

{% code title="AutoCompoundingStakingRewards.sol" %}

```javascript
    function isProgramActive(Token pool) external view returns (bool) 
```

{% endcode %}

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 function`isProgramActive()`returns the variable named bool.&#x20;

Solidity provides [boolean data types](https://subscription.packtpub.com/book/application-development/9781788831383/3/ch03lvl1sec41/boolean). The bool data type is a binary variable that returns variables like, true or false.&#x20;

| Variable Name | Return                                                    |
| ------------- | --------------------------------------------------------- |
| bool          | true or false for if a pool has an active rewards program |
