Skip to main content

IncentiveId

Functions

compute

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

Calculate the key for a staking incentive

Parameters:

NameTypeDescription
keystruct IPegasysV3Staker.IncentiveKeyThe components used to compute the incentive identifier

Return Values:

NameTypeDescription
incentiveIdbytes32The identifier for the incentive