pub fn total_supply(&self) -> Result<Decimal, ProgramError> {
        let all_liquidity = Decimal::from(self.available_amount)
            .try_add(self.borrowed_amount_wads)?;
        if all_liquidity.lt(&self.owner_unclaimed) {
            Ok(Decimal::zero())
        } else {
            all_liquidity.try_sub(self.owner_unclaimed)
        }
        // all_liquidity.try_sub(self.owner_unclaimed)
    }
/// Calculate the total reserve supply including active loans

Calculate the total reserve supply including active loans
Calculate the total reserve supply including active loans
pub fn total_supply(&self) -> Result<Decimal, ProgramError> {
        let all_liquidity = Decimal::from(self.available_amount)
            .try_add(self.borrowed_amount_wads)?;
        if all_liquidity.lt(&self.owner_unclaimed) {
            Ok(Decimal::zero())
        } else {
            all_liquidity.try_sub(self.owner_unclaimed)
        }
        // all_liquidity.try_sub(self.owner_unclaimed)
    }
pub fn total_supply ( & self ) -> Result < Decimal , ProgramError > { let all_liquidity = Decimal :: from ( self . available_amount ) . try_add ( self . borrowed_amount_wads ) ? ; if all_liquidity . lt ( & self . owner_unclaimed ) { Ok ( Decimal :: zero ( ) ) } else { all_liquidity . try_sub ( self . owner_unclaimed ) } // all_liquidity.try_sub(self.owner_unclaimed)
 }
Calculate the total reserve supply including active loans
Calculate the total reserve supply including active loans
&self
&self