pub struct ProbedHop {
pub slot: u64,
pub block_time: i64,
pub tx_index: u32,
pub ix_index: u32,
pub leg_index: u32,
pub program: Option<Address>,
pub input_amount: u64,
pub output_amount: u64,
pub replay_input_amount: Option<u64>,
pub replay_output_amount: Option<u64>,
}Expand description
The hop a venue probe re-priced, as the original swap ran it onchain and as the replay ran it.
Fields§
§slot: u64The block the hop executed in. The probe itself ran at ReplacementCore::slot, which is
earlier by VenueNotification::quote_lag_blocks.
block_time: i64That block’s Unix timestamp, in seconds.
tx_index: u32The transaction’s position in that block.
ix_index: u32Which swap of the transaction this hop belongs to.
leg_index: u32Which hop of that swap this is.
program: Option<Address>The venue program that priced the original hop. None when the route events attribute it to
none.
input_amount: u64What the original hop took in, in raw base units.
output_amount: u64What the original hop paid out, in raw base units.
replay_input_amount: Option<u64>The same hop as the replayed original took it. None when the replay did not recover the
hop - it reverted, its route decoded without that hop, or it split the hop differently. Its
input can differ from input_amount when an earlier hop filled differently, so compare
output per unit of input.
replay_output_amount: Option<u64>What the replayed hop paid out, in raw base units. None under the same conditions as
replay_input_amount.