pub fn amount_to_ui_amount(
        &self,
        amount: u64,
        decimals: u8,
        unix_timestamp: i64,
    ) -> Option<String> {
        let scaled_amount_with_interest =
            (amount as f64) * self.total_scale(decimals, unix_timestamp)?;
        Some(scaled_amount_with_interest.to_string())
    }
/// Convert a raw amount to its UI representation using the given decimals field
/// Excess zeroes or unneeded decimal point are trimmed.
Convert a raw amount to its UI representation using the given decimals field
Excess zeroes or unneeded decimal point are trimmed.
Convert a raw amount to its UI representation using the given decimals field Excess zeroes or unneeded decimal point are trimmed .
pub fn amount_to_ui_amount(
        &self,
        amount: u64,
        decimals: u8,
        unix_timestamp: i64,
    ) -> Option<String> {
        let scaled_amount_with_interest =
            (amount as f64) * self.total_scale(decimals, unix_timestamp)?;
        Some(scaled_amount_with_interest.to_string())
    }
pub fn amount_to_ui_amount ( & self , amount : u64 , decimals : u8 , unix_timestamp : i64 , ) -> Option < String > { let scaled_amount_with_interest = ( amount as f64 ) * self . total_scale ( decimals , unix_timestamp ) ? ; Some ( scaled_amount_with_interest . to_string ( ) ) }
Convert a raw amount to its UI representation using the given decimals field
Excess zeroes or unneeded decimal point are trimmed.
Convert a raw amount to its UI representation using the given decimals field Excess zeroes or unneeded decimal point are trimmed .
&self
amount
u64
decimals
u8
unix_timestamp
i64
&self
amount
u64
decimals
u8
unix_timestamp
i64