# 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 |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.bancor.network/developer-guides/read-functions/rewards/standard-rewards/identify-if-a-program-exists/auto-compounding.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
