pub struct BuyQuote {
pub base_amount: u64,
pub quote_amount: u64,
pub fee: u64,
pub base_transfer_fee: u64,
pub quote_transfer_fee: u64,
pub base_to_user: u64,
pub quote_from_user: u64,
}Expand description
base_amount and quote_amount are the transfer amounts. For the user’s
amounts, read base_to_user and quote_from_user. Do not calculate them
from the transfer amounts.
Fields§
§base_amount: u64§quote_amount: u64§fee: u64Platform fee, in quote units, on the quote that reaches the vault.
base_transfer_fee: u64§quote_transfer_fee: u64§base_to_user: u64The base that the buyer receives, after the base mint’s transfer fee.
quote_from_user: u64The quote that the buyer sends, with the transfer fee. Equals
quote_amount.
Trait Implementations§
impl Copy for BuyQuote
impl Eq for BuyQuote
impl StructuralPartialEq for BuyQuote
Auto Trait Implementations§
impl Freeze for BuyQuote
impl RefUnwindSafe for BuyQuote
impl Send for BuyQuote
impl Sync for BuyQuote
impl Unpin for BuyQuote
impl UnsafeUnpin for BuyQuote
impl UnwindSafe for BuyQuote
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