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