bigIntClamp

1function bigIntClamp(value, lower, upper): bigint;

Defined in: aa-sdk/core/src/utils/bigint.ts:41

Given a bigint and a min-max range, returns the min-max clamped bigint value

Parameters

ParameterTypeDescription

value

BigNumberish

a bigint value to clamp

lower

any

lower bound min max tuple value

upper

any

upper bound min max tuple value

Returns

bigint

the clamped bigint value per given range