Function formatCancellationFee

  • Name

    formatCancellationFee

    Summary

    Returns an object representing a cancellation fee in either fixed, flexible or NFT format.

    type: "fixed" | "flexible" | "nft" | "none",

    Returns

    An object representing the rent fee of a contract.

    Parameters

    • type: "none" | "fixed" | "nft" | "flexible"

      The type of cancellation fee. Can be either 'fixed', 'flexible', 'nft' or 'none'.

    • Optional value: number

      The value of the rent fee. If type is 'fixed' or 'flexible' value refers to a balance amount. If type is 'nft' value refers to the NFT id.

    Returns Rent.CancellationFeeType

Generated using TypeDoc