# stakeRewards()

### Function stakeRewards()

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

```solidity
function stakeRewards(uint256[] calldata ids) external uniqueArray(ids) nonReentrant returns (StakeAmounts memory)
```

{% endcode %}

This function is used to claim & stake pending rewards from one or more standard rewards programs.&#x20;

The function accepts a list of reward program IDs as arguments and returns the number of reward tokens claimed & staked, and the number of pool tokens received.&#x20;

### Function Arguments

| Name | Type       | Description                             |
| ---- | ---------- | --------------------------------------- |
| ids  | uint256\[] | This is an array of reward program IDs. |

### Return Variables

| Variable Type | Returns                             |
| ------------- | ----------------------------------- |
| uint256       | The amount of rewards claimed.      |
| uint256       | The amount of pool tokens received. |
