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


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.dragonswap.app/dragonswap/resources/developer-resources/smart-contracts/dragonswapv2/staker/libraries/incentiveid.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
