Struct tulipv2_sdk_common::lending::reserve::CalculateBorrowResult
source · [−]pub struct CalculateBorrowResult {
pub borrow_amount: Decimal,
pub receive_amount: u64,
pub borrow_fee: u64,
pub host_fee: u64,
}Expand description
Calculate borrow result
Fields
borrow_amount: DecimalTotal amount of borrow including fees
receive_amount: u64Borrow amount portion of total amount
borrow_fee: u64Loan origination fee
host_fee: u64Host fee portion of origination fee
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for CalculateBorrowResult
impl Send for CalculateBorrowResult
impl Sync for CalculateBorrowResult
impl Unpin for CalculateBorrowResult
impl UnwindSafe for CalculateBorrowResult
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