Skip to content

@lelantos-org/sdk / protocol / assertPublicInFits

Function: assertPublicInFits() ​

ts
function assertPublicInFits(value, ctx): void;

Defined in: @lelantos-org/sdk/dist/protocol/fees.d.ts:37

Guard a value destined for DepositRequest.publicIn against PUBLIC_IN_MAX.

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.