IncentiveId

Functions

compute

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

Calculate the key for a staking incentive

Parameters:

NameTypeDescription

key

struct IDragonswapV2Staker.IncentiveKey

The components used to compute the incentive identifier

Return Values:

NameTypeDescription

incentiveId

bytes32

The identifier for the incentive

Last updated