pub struct RequoteNotification {
pub core: ReplacementCore,
pub comparison: L1Score,
pub cost: SimCost,
pub legs: Vec<RerouteLegNotification>,
pub routed_transaction: EncodedBinary,
pub logs: Vec<String>,
pub realized_output_amount: Option<u64>,
pub original_realized_output_amount: Option<u64>,
}Expand description
One rerouted transaction’s simulation result - the Requote shape of
ReplacementNotification. The historical original still executed; this is the
counterfactual, committed nowhere.
Fields§
§core: ReplacementCore§comparison: L1ScoreScored at whole-transaction scope: what the original realized against what the routed
stand-in did. Absent for a multi-swap transaction, where no single pair names the fill -
its per-leg readings are on Self::legs.
cost: SimCost§legs: Vec<RerouteLegNotification>One per detected swap in the original, in order.
routed_transaction: EncodedBinaryThe metis-routed transaction that was simulated. Decode with EncodedBinary::decode
(base64 bincode of TxWithMeta) to inspect its instructions.
logs: Vec<String>§realized_output_amount: Option<u64>What the routed swap actually produced; None for a multi-swap transaction, a missing
output balance record, or a reverted simulation.
original_realized_output_amount: Option<u64>What the historical original actually produced, from its recorded balance deltas. None
under the same conditions. Set independently of the simulation’s outcome, so it is
present even when the core carries an error.