pub struct DirectFillParams {
pub aggregator: SwapAggregator,
pub venue: String,
pub pair: MintPair,
pub slippage_bps: u16,
pub market: DirectFillMarket,
}Expand description
Rebuild matching hops through one router, pinned to one venue, and price the result against what the hop actually filled at.
Independent of RerouteParams::filter: a transaction the re-quote funnel drops is still a
hop worth pricing.
Fields§
§aggregator: SwapAggregatorThe router whose encoder builds the replacement hop. Reaching a venue means going through whichever router carries it.
venue: StringThe venue to pin the built route to, spelled as the router’s own IDL names it.
pair: MintPairThe pair whose hops to price. A hop matches in either direction.
slippage_bps: u16Tolerance written into the built swap, around the expected output the caller derives from the hop. Rejected at or above a whole unit.
market: DirectFillMarketThe venue’s own contribution to the route: what only the venue knows.
Implementations§
Source§impl DirectFillParams
impl DirectFillParams
Sourcepub fn matches_mints(&self, input: &Address, output: &Address) -> bool
pub fn matches_mints(&self, input: &Address, output: &Address) -> bool
Whether input/output name this book’s pair, either direction.
Trait Implementations§
Source§impl Clone for DirectFillParams
impl Clone for DirectFillParams
Source§fn clone(&self) -> DirectFillParams
fn clone(&self) -> DirectFillParams
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more