@lelantos-org/sdk / advanced / AssetInfoWithMeta
Interface: AssetInfoWithMeta
Defined in: @lelantos-org/sdk/dist/wallet/assets/info.d.ts:66
An asset whose ERC-20 decimals is known, as parseAmount / formatAmount require. Narrow with hasTokenMeta, or assert with requireTokenMeta.
Extends
Properties
decimals
decimals: number;Defined in: @lelantos-org/sdk/dist/wallet/assets/info.d.ts:67
ERC-20 decimals, from the same sources as symbol; undefined when neither has them.
Overrides
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.
Inherited from
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.
Inherited from
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.
Inherited from
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.
Inherited from
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.
Inherited from
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.
Inherited from
scale
scale: bigint;Defined in: @lelantos-org/sdk/dist/wallet/assets/info.d.ts:18
circuit-units → ERC-20-base-units multiplier.
Inherited from
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.
Inherited from
token
token: EvmAddress;Defined in: @lelantos-org/sdk/dist/wallet/assets/info.d.ts:16
ERC-20 contract address backing the id.
Inherited from
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).
Inherited from
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.