Function getBalanceAfterTransfer

  • Returns the post balance after a transfer of x(amountToTransfer * numRecipients) from startBadgeId to endBadgeId

    Type Parameters

    Parameters

    • balance: iBalance<T>[]

      The balance to subtract from.

    • startBadgeId: T

      The start badge ID to subtract from.

    • endBadgeId: T

      The end badge ID to subtract from.

    • ownershipTimeStart: T
    • ownershipTimeEnd: T
    • amountToTransfer: T

      The amount to subtract.

    • numRecipients: T

      The number of recipients to subtract from.

    • Optional allowUnderflow: boolean

    Returns BalanceArray<T>