fn liquidity_in_other_collateral(
        liquidity_amount: u64,
        collateral_exchange_rate: CollateralExchangeRate,
        conversion_rate: Decimal,
    ) -> Result<Decimal, ProgramError> {
        collateral_exchange_rate.decimal_liquidity_to_collateral(
            Decimal::from(liquidity_amount).try_mul(conversion_rate)?,
        )
    }
/// Convert reserve liquidity tokens to the collateral tokens of another reserve
Convert reserve liquidity tokens to the collateral tokens of another reserve
Convert reserve liquidity tokens to the collateral tokens of another reserve
fn liquidity_in_other_collateral(
        liquidity_amount: u64,
        collateral_exchange_rate: CollateralExchangeRate,
        conversion_rate: Decimal,
    ) -> Result<Decimal, ProgramError> {
        collateral_exchange_rate.decimal_liquidity_to_collateral(
            Decimal::from(liquidity_amount).try_mul(conversion_rate)?,
        )
    }
fn liquidity_in_other_collateral ( liquidity_amount : u64 , collateral_exchange_rate : CollateralExchangeRate , conversion_rate : Decimal , ) -> Result < Decimal , ProgramError > { collateral_exchange_rate . decimal_liquidity_to_collateral ( Decimal :: from ( liquidity_amount ) . try_mul ( conversion_rate ) ? , ) }
Convert reserve liquidity tokens to the collateral tokens of another reserve
Convert reserve liquidity tokens to the collateral tokens of another reserve
liquidity_amount
u64
collateral_exchange_rate
CollateralExchangeRate
conversion_rate
Decimal