Function getProtocolTypeByBeacon

  • Determines the protocol type from a given beacon identifier.

    Parameters

    • beacon: string

      The beacon identifier string

    Returns SupportedProtocol | null

    The supported protocol type or null if not found

    const protocolType = getProtocolTypeByBeacon('uniswap');
    // Returns: 'Uniswap' as SupportedProtocol