# Function: addBalancesAndCheckIfExceedsThreshold()

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

Defined in: [packages/bitbadgesjs-sdk/src/core/balances.ts:268](https://github.com/BitBadges/bitbadgesjs/blob/master/packages/bitbadgesjs-sdk/src/core/balances.ts#L268)

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

## Type Parameters

### T

`T` *extends* [`NumberType`](https://docs.bitbadges.io/sdk/reference/type-aliases/number-type)

## Parameters

### currTally

[`iBalance`](https://docs.bitbadges.io/sdk/reference/interfaces/i-balance)\<`T`\>[]

### toAdd

[`iBalance`](https://docs.bitbadges.io/sdk/reference/interfaces/i-balance)\<`T`\>[]

### threshold

[`iBalance`](https://docs.bitbadges.io/sdk/reference/interfaces/i-balance)\<`T`\>[]

## Returns

`boolean`

## Remarks

Can also be used via the corresponding method with same name on [BalanceArray](https://docs.bitbadges.io/sdk/reference/classes/balance-array).
Note this function modifies the inputted currTallyBalances
