# IncentiveId

### Functions[​](https://docs.uniswap.org/contracts/v3/reference/periphery/staker/libraries/IncentiveId#functions) <a href="#functions" id="functions"></a>

#### compute[​](https://docs.uniswap.org/contracts/v3/reference/periphery/staker/libraries/IncentiveId#compute) <a href="#compute" id="compute"></a>

```solidity
  function compute(
    struct IDragonswapV2Staker.IncentiveKey key
  ) internal pure returns (bytes32 incentiveId)
```

Calculate the key for a staking incentive

**Parameters:**[**​**](https://docs.uniswap.org/contracts/v3/reference/periphery/staker/libraries/IncentiveId#parameters)

| Name  | Type                                    | Description                                             |
| ----- | --------------------------------------- | ------------------------------------------------------- |
| `key` | struct IDragonswapV2Staker.IncentiveKey | The components used to compute the incentive identifier |

**Return Values:**[**​**](https://docs.uniswap.org/contracts/v3/reference/periphery/staker/libraries/IncentiveId#return-values)

| Name          | Type    | Description                      |
| ------------- | ------- | -------------------------------- |
| `incentiveId` | bytes32 | The identifier for the incentive |
