# pools()

### Function pools()

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

```javascript
function pools() external view returns (address[] memory)
```

{% endcode %}

This function is used to get a list of token addresses that have rewards programs.&#x20;

### Return Variables

This function returns a list of token addresses.&#x20;

<table><thead><tr><th>Variable Type</th><th width="420">Returns</th></tr></thead><tbody><tr><td>list</td><td>A list of token addresses, for example:<br><code>0x444d6088b0f625f8c20192623b3c43001135e0fa,0xb2cabf797bc907b049e4ccb5b84d13be3a8cfc21,0x939b462ee3311f8926c047d2b576c389092b1649 address[]</code></td></tr></tbody></table>


---

# 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/auto-compounding-rewards/pools.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.
