> For the complete documentation index, see [llms.txt](https://developers.mstable.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developers.mstable.org/emissions-controller/basicrewardsforwarder.md).

# BasicRewardsForwarder

Transfers any received reward tokens to another contract or account.

## Process

![](https://1563241728-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MgJxLWD6SqMELu7agWt%2Fuploads%2Fj0VFOO2m7pIHomV4GCeL%2FweeklyEmissions2TreasuryDAO.png?alt=media\&token=b6e2e1e0-ae57-440f-b13f-f216509b5d48)

## Functions

### notifyRewardAmount()

`function notifyRewardAmount (uint256 _rewards) external`

Called by the Emissions Controller to trigger the processing of the weekly rewards.

The Emissions Controller has already transferred the MTA to this contract.

| Parameter  | Type    | Description                                                   |
| ---------- | ------- | ------------------------------------------------------------- |
| `_rewards` | uint256 | Units of reward tokens that were distributed to this contract |

### setEndRecipient()

`function setEndRecipient (address _endRecipient) external`

Change the endRecipient. Can only be called by mStable governor.

| Parameter       | Type    | Description                               |
| --------------- | ------- | ----------------------------------------- |
| `_endRecipient` | address | The account the reward tokens are sent to |

### getRewardToken()

`function getRewardToken () external returns (contract IERC20)`

Gets the RewardsToken
