# program()

### Function program()

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

```javascript
 function program(Token pool) external view returns (ProgramData memory)
```

{% endcode %}

This function is used to get detailed information about a specific rewards program.&#x20;

### Function Arguments

| Name | Type    | Description                        |
| ---- | ------- | ---------------------------------- |
| pool | address | The contract address of the token. |

### Return Variables

This function returns details about the specified rewards program.

| Variable Type | Returns                                                                                                           |
| ------------- | ----------------------------------------------------------------------------------------------------------------- |
| uint32        | The Unix timestamp indicating when the  rewards program started.                                                  |
| uint32        | The Unix timestamp indicating when the  rewards program will end.                                                 |
| uint32        | The half-life of the rewards program if the program does not use a linear distribution.                           |
| uint32        | The Unix timestamp of the previous distribution period.                                                           |
| Token         | The token address of the bnToken being distributed as rewards.                                                    |
| bool          | <p>True: The program is currently paused.<br>False: The program is not paused. </p>                               |
| uint8         | <p>The distribution schedule for the program. <br>0: Linear distribution<br>1: Exponential decay distribution</p> |
| uint256       | The total number of reward tokens being distributed through the program.                                          |
| uint256       | The number of reward tokens yet to be distributed.                                                                |

Example response:

`tuple : 1663606800,1671469200,0,0,0x356d286A49F484B73e58d757d85fc5ABc9Ebf4F2,false,0,3750004567458270746848413,3750004567458270746848413`
