message: Extract exported function from format-token-amount helper
diff: @@ -6,16 +6,12 @@ import { fromWei } from 'web3-utils';
  type FormatTokenAmountHelperParams = [BN, number];
  -class FormatTokenAmountHelper extends Helper {
  - @service declare textFormatting: TextFormattingService;
  - compute(
  - [
  - amountInSmallestUnit,
  - minPrecision,
  - ]: FormatTokenAmountHelperParams /*, hash*/
  - ) {
  +export function formatTokenAmount(
  + amountInSmallestUnit: BN,
  + minPrecision?: number
  +): string {
  if (amountInSmallestUnit == null) {
  - return null;
  + return '';
  }
  // fallback to the reasonable default of 2
  @@ -47,6 +43,17 @@ class FormatTokenAmountHelper extends Helper {
  return result;
  }
  +
  +class FormatTokenAmountHelper extends Helper {
  + @service declare textFormatting: TextFormattingService;
  + compute(
  + [
  + amountInSmallestUnit,
  + minPrecision,
  + ]: FormatTokenAmountHelperParams /*, hash*/
  + ) {
  + return formatTokenAmount(amountInSmallestUnit, minPrecision);
  + }
  }
  export default FormatTokenAmountHelper;
  