pub struct RerouteLegNotification {
pub input_mint: Address,
pub output_mint: Address,
pub amount: u64,
pub swap_mode: String,
pub original_quoted_out: u64,
pub metis_quoted_out: u64,
pub route_summary: String,
pub route_plan: Option<RoutePlan>,
pub original_route_plan: Option<RoutePlan>,
pub realized_route_plan: Option<RoutePlan>,
}Expand description
One swap of a transaction rerouted through the router.
Fields§
§input_mint: AddressThe mint the swap sells, base58.
output_mint: AddressThe mint the swap buys, base58.
amount: u64The swap’s fixed amount, in raw base units: of input_mint for ExactIn, of
output_mint for ExactOut.
swap_mode: StringExactIn or ExactOut, as SwapMode spells them.
original_quoted_out: u64The output the original swap’s instruction quoted, in raw base units of output_mint.
metis_quoted_out: u64The output the router quoted for the reroute, in raw base units of output_mint.
route_summary: StringThe router’s route as text: Raydium → Orca for a path, 60% Raydium | 40% Orca for a split,
(no route) when it named no venue.
route_plan: Option<RoutePlan>The route the router quoted, when it returned one.
original_route_plan: Option<RoutePlan>The route the original swap took, which the reroute displaced.
realized_route_plan: Option<RoutePlan>What each hop actually moved. route_plan is the quote; this is the fill, and the side
to compare original_route_plan against.