Skip to content

Attempts to add a balance to the current amounts. Then, it checks if it exceeds some threshold.

addBalancesAndCheckIfExceedsThreshold<T>(currTally, toAdd, threshold): boolean

Defined in: packages/bitbadgesjs-sdk/src/core/balances.ts:268

Attempts to add a balance to the current amounts. Then, it checks if it exceeds some threshold.

Type Parameters

T

T extends NumberType

Parameters

currTally

iBalance<T>[]

toAdd

iBalance<T>[]

threshold

iBalance<T>[]

Returns

boolean

Remarks

Can also be used via the corresponding method with same name on BalanceArray. Note this function modifies the inputted currTallyBalances

Edit this page on GitHub