> For the complete documentation index, see [llms.txt](https://csm-docs.cozy.finance/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://csm-docs.cozy.finance/developer-guides/manage-a-rewards-manager/update-a-rewards-manager-configuration.md).

# Update a Rewards Manager Configuration

As the `owner` of a Rewards Manager, it is possible to update the configuration in order to:

* Add new stake pools
* Add new reward pools
* Update rewards weights
* Update drip models

To update the configs, the relevant call is `RewardsManager.updateConfigs`:

```solidity
function updateConfigs(StakePoolConfig[] calldata stakePoolConfigs_, RewardPoolConfig[] calldata rewardPoolConfigs_)
    external
    onlyOwner;
```

The stake and reward pool configs for the update must obey the general requirements for creating a Rewards Manager (see [Define Rewards Manager Configuration](/developer-guides/create-a-rewards-manager/define-a-rewards-manager-configuration.md)) with a few caveats:

* It is not possible to remove stake pools, so existing stake pools must be included at the start of the `StakePoolConfig[]` sorted by the associated stake pool IDs. Any new stake pools come after the existing stake pools and must be sorted by the address of the underlying asset and not contain duplicates.
* It is not possible to remove reward pools, so the existing reward pools must be included at the start of the `RewardPoolConfig[]` sorted by the associated reward pool IDs.

Note before a config update is applied, rewards are dripped and cumulative rewards values for all `RewardPool` and `ClaimableRewardsData` structs in storage are reset to 0. For an in-depth explanation why, see [here](/developer-guides/rewards-manager-accounting.md#config-updates-and-claimable-rewards).


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://csm-docs.cozy.finance/developer-guides/manage-a-rewards-manager/update-a-rewards-manager-configuration.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
