@xoxno/types 1.0.479 → 1.0.480
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -38,7 +38,21 @@ export interface StellarAssetListItem {
|
|
|
38
38
|
hubCount: number;
|
|
39
39
|
/** Number of reserves (spoke,hub) for this asset. */
|
|
40
40
|
marketCount: number;
|
|
41
|
+
/**
|
|
42
|
+
* The two underlying token SACs when this asset is an AMM LP share, so
|
|
43
|
+
* clients can render the pair (both leg logos) instead of one unresolvable
|
|
44
|
+
* logo for the share itself.
|
|
45
|
+
*
|
|
46
|
+
* Projected from the asset's indexed `LpShare` price source
|
|
47
|
+
* (`StellarAssetOracle.sources[]`). Present only when BOTH legs are
|
|
48
|
+
* `{ Token }` price keys — a `{ Ref }` leg is registry-only and has no SAC,
|
|
49
|
+
* so there is nothing to render. Consumers may therefore treat "present" as
|
|
50
|
+
* "renderable pair" with no partial case to handle.
|
|
51
|
+
*/
|
|
52
|
+
lpUnderlying?: StellarLpUnderlying;
|
|
41
53
|
}
|
|
54
|
+
/** The two leg SACs of an LP share, in the pool's `[keyA, keyB]` order. */
|
|
55
|
+
export type StellarLpUnderlying = [tokenA: string, tokenB: string];
|
|
42
56
|
/** One (spoke, hub) market row for an asset detail page. */
|
|
43
57
|
export interface StellarAssetPageMarket {
|
|
44
58
|
spokeId: number;
|