pub enum AllowanceCheck {
Skip,
AtLeast(BigUint),
}Expand description
Controls whether FyndClient::approval checks the current on-chain allowance before
building an approval transaction.
Variants§
Skip
Always build the approval payload — do not read the current allowance.
AtLeast(BigUint)
Return None (no approval needed) if the current allowance is ≥ the given threshold.
Pass the minimum amount required for the operation. For standard ERC-20 flows this is the
same as the approve amount; for Permit2 it can be the swap amount while the actual
approval is for a larger value (e.g. max_uint160) to avoid re-approving every swap.
Trait Implementations§
Source§impl Clone for AllowanceCheck
impl Clone for AllowanceCheck
Source§fn clone(&self) -> AllowanceCheck
fn clone(&self) -> AllowanceCheck
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for AllowanceCheck
impl RefUnwindSafe for AllowanceCheck
impl Send for AllowanceCheck
impl Sync for AllowanceCheck
impl Unpin for AllowanceCheck
impl UnsafeUnpin for AllowanceCheck
impl UnwindSafe for AllowanceCheck
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
Converts
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>
Converts
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