Function formatCancellationFee

  • Name

    formatCancellationFee

    Summary

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

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

    Parameters

    • type: "nft" | "fixed" | "none" | "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 CancellationFeeType

    An object representing the rent fee of a contract.

Generated using TypeDoc