Skip to content

@lelantos-org/sdk / protocol / descendingAtMost

Function: descendingAtMost() ​

ts
function descendingAtMost(
   max, 
   ladder, 
   limit
): bigint[];

Defined in: @lelantos-org/sdk/dist/protocol/denominations.d.ts:44

The limit largest denominations not exceeding max, descending.

A fallback chain: a self-spend paying a relayer fee out of the same cover may not afford the largest reachable denomination and needs the next one down.

Parameters ​

ParameterType
maxbigint
ladderLadder
limitnumber

Returns ​

bigint[]