pub struct DirectFillNotification {
pub core: ReplacementCore,
pub comparison: L1Score,
pub template: String,
pub program: Address,
pub hop: ProbedHop,
pub quote_tx_index: u32,
pub quote_lag_blocks: u32,
pub input_mint: Address,
pub output_mint: Address,
pub amount: u64,
pub swap_mode: String,
pub template_fill: Option<u64>,
}Expand description
One direct-fill probe’s result - the DirectFill shape of ReplacementNotification: a
single hop re-priced through a direct-fill template, simulated against the state it would
have traded on.
A probe prices ONE hop, so the mints and amount here are the leg’s, never the enclosing swap’s - a route’s endpoints are not its middle leg’s.
Fields§
§core: ReplacementCore§comparison: L1ScoreScored at hop scope: the probed hop’s own L1 output. A probe prices one hop, so it names no route and carries none.
template: StringThe template the hop was rebuilt through.
program: AddressThe program that template’s instruction calls: for one built from an aggregator’s route, the aggregator’s, which several venues share.
hop: ProbedHopThe hop this priced, as L1 and the replay ran it.
quote_tx_index: u32The transaction of block ReplacementCore::slot the pass that priced this probe ran
just before; 0 at the block’s start.
quote_lag_blocks: u32Blocks between the block the hop executes in and the one it was priced at.
input_mint: Address§output_mint: Address§amount: u64The hop’s own input amount, in base units.
swap_mode: String§template_fill: Option<u64>What the probed template filled; None unless the probe filled attributably.