pub struct VenueNotification {Show 13 fields
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>,
pub spent_amount: Option<u64>,
}Expand description
A venue probe (kind: "directFill"): one hop rerouted directly to a venue through your
template, simulated against the state it would have traded on.
A probe prices ONE hop, so the mints and amount here are the hop’s, never the enclosing swap’s.
Fields§
§core: ReplacementCoreThe fields every kind carries, flattened into this object on the wire.
comparison: L1ScoreScored at hop scope, against the probed hop’s own onchain output.
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 the original swap 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, its transaction count at its end.
quote_lag_blocks: u32Blocks between the block the hop executes in and the one it was priced at.
input_mint: AddressThe mint the hop sells, base58.
output_mint: AddressThe mint the hop buys, base58.
amount: u64The hop’s fixed amount, in raw base units: its input for ExactIn, its output for
ExactOut.
swap_mode: StringExactIn or ExactOut, as SwapMode spells them.
template_fill: Option<u64>What the template filled, in raw base units of the measured mint. None unless the probe
filled attributably.
spent_amount: Option<u64>What the probed template spent of its input; None unless the probe filled attributably.