pub fn parse_swap_event_hypersync(
dex: SharedDex,
log: &HypersyncLog,
) -> Result<SwapEvent>Expand description
Parses a PancakeSwap V3 swap event from a HyperSync log.
The protocol-fee fields are decoded to validate the layout but dropped: the shared
SwapEvent mirrors the Uniswap V3 fields, which is all downstream pool profiling uses.
§Errors
Returns an error if the log parsing fails or if the event data is invalid.
§Panics
Panics if the contract address is not set in the log.