- Preparing search index...
- The search index is not available
cardstack
Function convertRawAmountToBalance
- convertRawAmountToBalance(value: Value, asset: Asset, buffer?: number): {
amount: string;
display: string;
}
-
Parameters
-
value: Value
-
-
Optional
buffer: number
Returns {
amount: string;
display: string;
}
-
amount: string
-
display: string
Returns a balance object with properties
balanceObject.amount
andbalanceObject.display
balanceObject.amount
isvalue / 10**asset.decimals
balanceObject.display
-convertAmountToBalanceDisplay(balanceObject.amount, asset, buffer)
See
convertAmountToBalanceDisplay