@lelantos-org/sdk / index / AssetInfo
Interface: AssetInfo
Defined in: @lelantos-org/sdk/dist/wallet/assets/info.d.ts:12
Everything known about a registered MASP asset.
scale converts between the two integer spaces: tokenUnits = circuitUnits * scale (times index / RAY for a yield asset).
Extended by
Properties
decimals?
optional decimals?: number;Defined in: @lelantos-org/sdk/dist/wallet/assets/info.d.ts:36
ERC-20 decimals, from the same sources as symbol; undefined when neither has them.
depositBps
depositBps: bigint;Defined in: @lelantos-org/sdk/dist/wallet/assets/info.d.ts:26
Protocol fee on the shield leg, in basis points, charged on top of the principal. Per-asset, and independent of AssetInfo.withdrawBps, which is deducted rather than added.
disabled
disabled: boolean;Defined in: @lelantos-org/sdk/dist/wallet/assets/info.d.ts:20
Owner-flipped. Disabled assets block new deposits; existing notes stay spendable.
id
id: AssetId;Defined in: @lelantos-org/sdk/dist/wallet/assets/info.d.ts:14
MASP registry id — the asset argument on every wallet method.
index
index: bigint;Defined in: @lelantos-org/sdk/dist/wallet/assets/info.d.ts:42
Pool-managed yield index, RAY-scaled, RAY when the pool reports none. A fixed circuit amount is worth more token units as the index grows, so withdrawal denominations are circuit-unit integers, not human amounts.
ladder
ladder: Ladder;Defined in: @lelantos-org/sdk/dist/wallet/assets/info.d.ts:59
Withdrawal denominations for this asset, ascending, derived from its scale and decimals; [] only when the wallet opted out via WalletConfig.denominations.
rate?
optional rate?: YieldRate;Defined in: @lelantos-org/sdk/dist/wallet/assets/info.d.ts:53
The pair the pool divides by to value a unit, for sizing a payment.
Present only for a yield asset the source has priced. index is floored on chain, so a charge converted through it can fall below what the contract takes. A yielding asset without rate cannot be quoted: scale is off by whatever the venue has earned.
scale
scale: bigint;Defined in: @lelantos-org/sdk/dist/wallet/assets/info.d.ts:18
circuit-units → ERC-20-base-units multiplier.
symbol?
optional symbol?: string;Defined in: @lelantos-org/sdk/dist/wallet/assets/info.d.ts:34
From chain.tokenMeta or the relayer's list; undefined when neither supplies it.
token
token: EvmAddress;Defined in: @lelantos-org/sdk/dist/wallet/assets/info.d.ts:16
ERC-20 contract address backing the id.
withdrawBps
withdrawBps: bigint;Defined in: @lelantos-org/sdk/dist/wallet/assets/info.d.ts:32
Protocol fee on the unshield leg, in basis points, deducted from the gross leaving the pool, so a withdrawal of publicOut delivers less than publicOut. See withdrawNetFor (@lelantos-org/sdk/protocol).
yieldEnabled
yieldEnabled: boolean;Defined in: @lelantos-org/sdk/dist/wallet/assets/info.d.ts:44
Whether the pool routes this asset to a yield venue.