Skip to main content

probe_record

Function probe_record 

Source
pub fn probe_record(notification: &VenueNotification) -> LegRecord
Expand description

One record for a venue probe: one hop, re-priced against a venue template. Feeds ProbeReport only, so the flow-report fields are left at inert defaults.

The two baselines ProbeReport::render scores against:

  • output_bps is changeVsL1Bps, the template against the hop’s onchain fill.
  • quoted_output_amount is the same hop in the matching original notification’s replay, which ran on the same state as the probe (ProbedHop’s replay_* amounts), rescaled to the probe’s amount. None when the replay did not recover the hop, so the probe stays out of the “vs same-state” column rather than being scored against the onchain fill.

error_category is bucketed, not category verbatim: category narrows to the revert reason alone, so an unattributed/unsimulatable probe carries none of its own.