pub fn from_sql_asset(table_value: &SqlAsset) -> Self {
        Self {
            known_circulating:
                AccountingAmount::from_fractioned_accounting_value(
                    table_value.fractional_bits[0],
                    table_value.known_circulating_supply as AccountingValue,
                ),
            is_issued_known: table_value.is_issued_known,
            max_cap: AccountingAmount::from_fractioned_accounting_value(
                table_value.fractional_bits[0],
                table_value.max_cap as AccountingValue,
            ),
        }
    }
/// Supply do not have a corresponding table in the database.
/// The concerned values are written in the Asset table itself.
/// This reads up an asset table entry and create the corresponding
/// supply structure.
Supply do not have a corresponding table in the database.
The concerned values are written in the Asset table itself.
This reads up an asset table entry and create the corresponding
supply structure.
Supply do not have a corresponding table in the database . The concerned values are written in the Asset table itself . This reads up an asset table entry and create the corresponding supply structure .
pub fn from_sql_asset(table_value: &SqlAsset) -> Self {
        Self {
            known_circulating:
                AccountingAmount::from_fractioned_accounting_value(
                    table_value.fractional_bits[0],
                    table_value.known_circulating_supply as AccountingValue,
                ),
            is_issued_known: table_value.is_issued_known,
            max_cap: AccountingAmount::from_fractioned_accounting_value(
                table_value.fractional_bits[0],
                table_value.max_cap as AccountingValue,
            ),
        }
    }
pub fn from_sql_asset ( table_value : & SqlAsset ) -> Self { Self { known_circulating : AccountingAmount :: from_fractioned_accounting_value ( table_value . fractional_bits [ 0 ] , table_value . known_circulating_supply as AccountingValue , ) , is_issued_known : table_value . is_issued_known , max_cap : AccountingAmount :: from_fractioned_accounting_value ( table_value . fractional_bits [ 0 ] , table_value . max_cap as AccountingValue , ) , } }
Supply do not have a corresponding table in the database.
Supply do not have a corresponding table in the database .
table_value
&SqlAsset
table_value
&SqlAsset