# autoProcessRewards()

### Function autoProcessRewards()

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

```solidity
function autoProcessRewards() external nonReentrant
```

{% endcode %}

This function is used to trigger the actual distribution of the auto compounding rewards based on the pre-defined program. Once called, it will burn the calculated bnTokens from the amount deposited in the externalRewardsVault and redistribute the underlying asset and value to all liquidity providers.
