Function getBalanceForIdAndTime

Find the balance amount for a specific badge ID at a specific time within a set of balances. Returns x0 if not found.

Can also be used via the corresponding method with same name on BalanceArray

  • Type Parameters

    Parameters

    • id: T

      The Badge ID to search for.

    • time: T

      The time to search for.

    • balances: iBalance<T>[]

      The set of balances to search.

    Returns T