Skip to content

Applys increments to balances. Returns a new BalanceArray with the incremented balances.

applyIncrementsToBalances<T>(startBalances, incrementTokenIdsBy, incrementOwnershipTimesBy, numIncrements, durationFromTimestamp, blockTime): BalanceArray<T>

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

Applys increments to balances. Returns a new BalanceArray with the incremented balances.

Type Parameters

T

T extends NumberType

Parameters

startBalances

iBalance<T>[]

incrementTokenIdsBy

T

incrementOwnershipTimesBy

T

numIncrements

T

durationFromTimestamp

T

blockTime

T

Returns

BalanceArray<T>

Remarks

Can also be used via the applyIncrements method on BalanceArray

Edit this page on GitHub