Struct stable_swap::fees::Fees [−][src]
#[repr(C)]pub struct Fees {
pub admin_trade_fee_numerator: u64,
pub admin_trade_fee_denominator: u64,
pub admin_withdraw_fee_numerator: u64,
pub admin_withdraw_fee_denominator: u64,
pub trade_fee_numerator: u64,
pub trade_fee_denominator: u64,
pub withdraw_fee_numerator: u64,
pub withdraw_fee_denominator: u64,
}
Expand description
Fees struct
Fields
admin_trade_fee_numerator: u64
Admin trade fee numerator
admin_trade_fee_denominator: u64
Admin trade fee denominator
admin_withdraw_fee_numerator: u64
Admin withdraw fee numerator
admin_withdraw_fee_denominator: u64
Admin withdraw fee denominator
trade_fee_numerator: u64
Trade fee numerator
trade_fee_denominator: u64
Trade fee denominator
withdraw_fee_numerator: u64
Withdraw fee numerator
withdraw_fee_denominator: u64
Withdraw fee denominator
Trait Implementations
Apply admin trade fee
Apply admin withdraw fee
Compute withdraw fee from amount
Get the packed length
Unpack from slice and check if initialized
Unpack from slice without checking if initialized
Auto Trait Implementations
impl RefUnwindSafe for Fees
impl UnwindSafe for Fees
Blanket Implementations
pub default fn example() -> T
Mutably borrows from an owned value. Read more