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 moreSource§impl Debug for DirectFillParams
impl Debug for DirectFillParams
Source§impl<'de> Deserialize<'de> for DirectFillParams
impl<'de> Deserialize<'de> for DirectFillParams
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for DirectFillParams
Source§impl PartialEq for DirectFillParams
impl PartialEq for DirectFillParams
Source§impl Serialize for DirectFillParams
impl Serialize for DirectFillParams
impl StructuralPartialEq for DirectFillParams
Auto Trait Implementations§
impl Freeze for DirectFillParams
impl RefUnwindSafe for DirectFillParams
impl Send for DirectFillParams
impl Sync for DirectFillParams
impl Unpin for DirectFillParams
impl UnsafeUnpin for DirectFillParams
impl UnwindSafe for DirectFillParams
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more