# join()

### Function join()

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

```solidity
function join(uint256 id, uint256 poolTokenAmount) external greaterThanZero(poolTokenAmount) nonReentrant \
```

{% endcode %}

This function is used to deposit Bancor pool tokens (bnTokens) into a rewards program.&#x20;

{% hint style="info" %}
This function requires approval to be set for the relevant pool tokens prior to calling the function.&#x20;
{% endhint %}

The function accepts a reward program ID and the number of pool tokens as arguments, and does not return anything.&#x20;

### Function Arguments

| Name            | Type    | Description                            |
| --------------- | ------- | -------------------------------------- |
| id              | uint256 | This is the ID of the rewards program. |
| poolTokenAmount | uint256 | The number of pool tokens.             |
