Options
All
  • Public
  • Public/Protected
  • All
Menu

Namespace Misc

Index

Functions

Functions

  • formatRoyalty(royalty: number): number
  • name

    formatRoyalty

    summary

    Checks that royalty is in range 0 to 100 and format to permill.

    Parameters

    • royalty: number

      Number in range from 0 to 100 with max 4 decimals.

    Returns number

    The royalty in permill format.

Generated using TypeDoc