Struct stable_swap::curve::SwapResult[][src]

pub struct SwapResult {
    pub new_source_amount: u64,
    pub new_destination_amount: u64,
    pub amount_swapped: u64,
    pub admin_fee: u64,
    pub fee: u64,
}
Expand description

Encodes all results of swapping from a source token to a destination token

Fields

new_source_amount: u64

New amount of source token

new_destination_amount: u64

New amount of destination token

amount_swapped: u64

Amount of destination token swapped

admin_fee: u64

Admin fee for the swap

fee: u64

Fee for the swap

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.