@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 โ
| Parameter | Type |
|---|---|
value | bigint |
ctx | { asset?: bigint; scale?: bigint; what: string; } |
ctx.asset? | bigint |
ctx.scale? | bigint |
ctx.what | string |
Returns โ
void
Throws โ
naming the asset and the representable max.