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
A transaction rerouted through the router (kind: "requote"): the original swap’s transaction
re-quoted and simulated. The original still executed onchain; this
result is never committed.
Fields§
§core: ReplacementCoreThe fields every kind carries, flattened into this object on the wire.
comparison: L1ScoreScored at whole-transaction scope: what the original realized against what the routed
stand-in did, output against output in both swap modes. Absent for a multi-swap
transaction, where no single pair names the fill; read Self::legs instead.
cost: SimCostWhat simulating the routed transaction cost, flattened into this object on the wire.
legs: Vec<RerouteLegNotification>One per detected swap in the original, in order.
routed_transaction: EncodedBinaryThe routed transaction that was simulated. Decode with
simulator_client::decode_transaction (base64 wincode of VersionedTransaction) to inspect
its instructions.
logs: Vec<String>Program logs from simulating the routed transaction.
realized_output_amount: Option<u64>What the routed swap produced, in raw output-mint base units. None for a multi-swap
transaction, a missing output balance record, or a reverted simulation.
original_realized_output_amount: Option<u64>What the original swap produced onchain, from its recorded balance changes, in raw
output-mint base units. None under the same conditions, but set whatever the
simulation’s outcome, so it is present even when the core carries an error.