Enum tulipv2_sdk_common::lending::reserve::FeeCalculation
source · [−]pub enum FeeCalculation {
Exclusive,
Inclusive,
}Expand description
Calculate fees exlusive or inclusive of an amount
Variants
Exclusive
Fee added to amount: fee = rate * amount
Inclusive
Fee included in amount: fee = (rate / (1 + rate)) * amount
Auto Trait Implementations
impl RefUnwindSafe for FeeCalculation
impl Send for FeeCalculation
impl Sync for FeeCalculation
impl Unpin for FeeCalculation
impl UnwindSafe for FeeCalculation
Blanket Implementations
impl<T> AbiExample for T
impl<T> AbiExample for T
default fn example() -> T
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more