> For the complete documentation index, see [llms.txt](https://docs.dragonswap.app/dragonswap/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.dragonswap.app/dragonswap/resources/developer-resources/smart-contracts/dragonswapv2/staker/libraries/incentiveid.md).

# 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 |
