> 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

## Process

![](/files/qziZrjTSxsvMIyQWrcp2)

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