Function: uncurateOptionDetails()
function uncurateOptionDetails(details): OptionDetails;
Defined in: packages/overcast-core/src/assets/index.ts:353
Strip a CuratedOptionDetails back to the raw OptionDetails (asset fields → their addresses). Used by clients that receive a curated broadcast but need the canonical, signable details.
Parameters
| Parameter | Type | Description |
|---|---|---|
details | { borrowAllowed: boolean; collateralAmount: string; collateralAsset: { address: string; cashLike?: boolean; chain?: string; coinGeckoId?: string; decimals?: number; lastKnownPriceUsd?: number; logoUrl?: string; name?: string; rwa?: boolean; symbol?: string; volatility?: number; }; domain: number; endTimestamp: number; premiumAmount: string; premiumAsset: { address: string; cashLike?: boolean; chain?: string; coinGeckoId?: string; decimals?: number; lastKnownPriceUsd?: number; logoUrl?: string; name?: string; rwa?: boolean; symbol?: string; volatility?: number; }; settlementAmount: string; settlementAsset: { address: string; cashLike?: boolean; chain?: string; coinGeckoId?: string; decimals?: number; lastKnownPriceUsd?: number; logoUrl?: string; name?: string; rwa?: boolean; symbol?: string; volatility?: number; }; settlementLayer: string; startTimestamp: number; } | - |
details.borrowAllowed | boolean | - |
details.collateralAmount | string | - |
details.collateralAsset | { address: string; cashLike?: boolean; chain?: string; coinGeckoId?: string; decimals?: number; lastKnownPriceUsd?: number; logoUrl?: string; name?: string; rwa?: boolean; symbol?: string; volatility?: number; } | - |
details.collateralAsset.address | string | The on-chain address (mint) that uniquely identifies the asset. |
details.collateralAsset.cashLike? | boolean | Whether or not the asset can be treated similar to cash |
details.collateralAsset.chain? | string | The chain the asset lives on. |
details.collateralAsset.coinGeckoId? | string | CoinGecko id for price lookups, e.g. usd-coin. |
details.collateralAsset.decimals? | number | Number of decimal places in the asset's native units. |
details.collateralAsset.lastKnownPriceUsd? | number | Last known USD price, sourced best-effort from an external feed (CoinGecko). Untrusted — do not use for settlement, signing, valuation, or any value transfer. It is informational only (e.g. showing an approximate notional in a picker), may be stale, missing, or wrong, and is never part of the canonical, content-addressed asset identity. Present only once a price has actually been fetched for the asset. |
details.collateralAsset.logoUrl? | string | Logo of the coin |
details.collateralAsset.name? | string | Human name of the asset. |
details.collateralAsset.rwa? | boolean | Whether the asset is a real-world asset (RWA) — e.g. tokenized private equity — rather than a native crypto asset. |
details.collateralAsset.symbol? | string | Human ticker, e.g. USDC. |
details.collateralAsset.volatility? | number | Volatility of the asset |
details.domain | number | - |
details.endTimestamp | number | - |
details.premiumAmount | string | - |
details.premiumAsset | { address: string; cashLike?: boolean; chain?: string; coinGeckoId?: string; decimals?: number; lastKnownPriceUsd?: number; logoUrl?: string; name?: string; rwa?: boolean; symbol?: string; volatility?: number; } | - |
details.premiumAsset.address | string | The on-chain address (mint) that uniquely identifies the asset. |
details.premiumAsset.cashLike? | boolean | Whether or not the asset can be treated similar to cash |
details.premiumAsset.chain? | string | The chain the asset lives on. |
details.premiumAsset.coinGeckoId? | string | CoinGecko id for price lookups, e.g. usd-coin. |
details.premiumAsset.decimals? | number | Number of decimal places in the asset's native units. |
details.premiumAsset.lastKnownPriceUsd? | number | Last known USD price, sourced best-effort from an external feed (CoinGecko). Untrusted — do not use for settlement, signing, valuation, or any value transfer. It is informational only (e.g. showing an approximate notional in a picker), may be stale, missing, or wrong, and is never part of the canonical, content-addressed asset identity. Present only once a price has actually been fetched for the asset. |
details.premiumAsset.logoUrl? | string | Logo of the coin |
details.premiumAsset.name? | string | Human name of the asset. |
details.premiumAsset.rwa? | boolean | Whether the asset is a real-world asset (RWA) — e.g. tokenized private equity — rather than a native crypto asset. |
details.premiumAsset.symbol? | string | Human ticker, e.g. USDC. |
details.premiumAsset.volatility? | number | Volatility of the asset |
details.settlementAmount | string | - |
details.settlementAsset | { address: string; cashLike?: boolean; chain?: string; coinGeckoId?: string; decimals?: number; lastKnownPriceUsd?: number; logoUrl?: string; name?: string; rwa?: boolean; symbol?: string; volatility?: number; } | - |
details.settlementAsset.address | string | The on-chain address (mint) that uniquely identifies the asset. |
details.settlementAsset.cashLike? | boolean | Whether or not the asset can be treated similar to cash |
details.settlementAsset.chain? | string | The chain the asset lives on. |
details.settlementAsset.coinGeckoId? | string | CoinGecko id for price lookups, e.g. usd-coin. |
details.settlementAsset.decimals? | number | Number of decimal places in the asset's native units. |
details.settlementAsset.lastKnownPriceUsd? | number | Last known USD price, sourced best-effort from an external feed (CoinGecko). Untrusted — do not use for settlement, signing, valuation, or any value transfer. It is informational only (e.g. showing an approximate notional in a picker), may be stale, missing, or wrong, and is never part of the canonical, content-addressed asset identity. Present only once a price has actually been fetched for the asset. |
details.settlementAsset.logoUrl? | string | Logo of the coin |
details.settlementAsset.name? | string | Human name of the asset. |
details.settlementAsset.rwa? | boolean | Whether the asset is a real-world asset (RWA) — e.g. tokenized private equity — rather than a native crypto asset. |
details.settlementAsset.symbol? | string | Human ticker, e.g. USDC. |
details.settlementAsset.volatility? | number | Volatility of the asset |
details.settlementLayer | string | - |
details.startTimestamp | number | - |