• Normalizes a protocol string to its corresponding StakingProtocol enum value.

    Parameters

    • protocol: string

      The protocol string to normalize

    Returns StakingProtocol

    The normalized StakingProtocol enum value

    Error if the protocol string is invalid

    const protocol = normalizeProtocol('uniswap');
    // Returns: StakingProtocol.Uniswap