pub struct SellQuote {
pub base_amount: u64,
pub quote_amount: u64,
pub fee: u64,
pub base_transfer_fee: u64,
pub quote_transfer_fee: u64,
pub base_from_user: u64,
pub quote_to_user: u64,
}Expand description
Same field rules as BuyQuote.
Fields§
§base_amount: u64§quote_amount: u64§fee: u64Platform fee, in quote units, on the quote output of the AMM before the fee.
base_transfer_fee: u64§quote_transfer_fee: u64§base_from_user: u64The base that the seller sends, with the transfer fee. Equals
base_amount.
quote_to_user: u64The quote that the seller receives, after the quote mint’s transfer fee.
Trait Implementations§
impl Copy for SellQuote
impl Eq for SellQuote
impl StructuralPartialEq for SellQuote
Auto Trait Implementations§
impl Freeze for SellQuote
impl RefUnwindSafe for SellQuote
impl Send for SellQuote
impl Sync for SellQuote
impl Unpin for SellQuote
impl UnsafeUnpin for SellQuote
impl UnwindSafe for SellQuote
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