@lelantos-org/sdk / index / OutAmount
Type Alias: OutAmount
ts
type OutAmount =
| {
gross: Amount;
net?: never;
}
| {
gross?: never;
net: Amount;
};Defined in: @lelantos-org/sdk/dist/wallet/assets/amount.d.ts:160
Which side of the protocol fee an outbound amount names. Exactly one of the two.
gross: thepublicOutleaving the pool, published on-chain; the protocol fee is taken from it.net: what reaches the recipient (withdraw) or the venue (swap),gross − protocol fee. The SDK grosses it up to the smallestpublicOutwhose net covers it; results then reportonLadder, since thatpublicOutis rarely a denomination.
The relayer's fee is never inside either figure; it is always fees.relayer.