Skip to content

@lelantos-org/sdk / core / assertPublicInFits

Function: assertPublicInFits() โ€‹

ts
function assertPublicInFits(value, ctx): void;

Defined in: @lelantos-org/sdk/dist/core/fees.d.ts:21

Guard a value destined for DepositRequest.publicIn against the uint48 bound the pool enforces.

Parameters โ€‹

ParameterType
valuebigint
ctx{ asset?: bigint; scale?: bigint; what: string; }
ctx.asset?bigint
ctx.scale?bigint
ctx.whatstring

Returns โ€‹

void

Throws โ€‹

naming the asset and the representable max.

Lelantosno cookies ๐Ÿช ยท no tracking ๐Ÿ‘๏ธ ยท no accounts ๐Ÿ‘คwalletexplorer4536080GitHub