Function convertRawAmountToBalance

  • Returns a balance object with properties balanceObject.amount and balanceObject.display

    • balanceObject.amount is value / 10**asset.decimals
    • balanceObject.display - convertAmountToBalanceDisplay(balanceObject.amount, asset, buffer)

    See

    convertAmountToBalanceDisplay

    Parameters

    • value: Value
    • asset: Asset
    • Optional buffer: number

    Returns {
        amount: string;
        display: string;
    }

    • amount: string
    • display: string

Generated using TypeDoc