Skip to main content

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

ParameterTypeDescription
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.borrowAllowedboolean-
details.collateralAmountstring-
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.addressstringThe on-chain address (mint) that uniquely identifies the asset.
details.collateralAsset.cashLike?booleanWhether or not the asset can be treated similar to cash
details.collateralAsset.chain?stringThe chain the asset lives on.
details.collateralAsset.coinGeckoId?stringCoinGecko id for price lookups, e.g. usd-coin.
details.collateralAsset.decimals?numberNumber of decimal places in the asset's native units.
details.collateralAsset.lastKnownPriceUsd?numberLast 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?stringLogo of the coin
details.collateralAsset.name?stringHuman name of the asset.
details.collateralAsset.rwa?booleanWhether the asset is a real-world asset (RWA) — e.g. tokenized private equity — rather than a native crypto asset.
details.collateralAsset.symbol?stringHuman ticker, e.g. USDC.
details.collateralAsset.volatility?numberVolatility of the asset
details.domainnumber-
details.endTimestampnumber-
details.premiumAmountstring-
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.addressstringThe on-chain address (mint) that uniquely identifies the asset.
details.premiumAsset.cashLike?booleanWhether or not the asset can be treated similar to cash
details.premiumAsset.chain?stringThe chain the asset lives on.
details.premiumAsset.coinGeckoId?stringCoinGecko id for price lookups, e.g. usd-coin.
details.premiumAsset.decimals?numberNumber of decimal places in the asset's native units.
details.premiumAsset.lastKnownPriceUsd?numberLast 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?stringLogo of the coin
details.premiumAsset.name?stringHuman name of the asset.
details.premiumAsset.rwa?booleanWhether the asset is a real-world asset (RWA) — e.g. tokenized private equity — rather than a native crypto asset.
details.premiumAsset.symbol?stringHuman ticker, e.g. USDC.
details.premiumAsset.volatility?numberVolatility of the asset
details.settlementAmountstring-
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.addressstringThe on-chain address (mint) that uniquely identifies the asset.
details.settlementAsset.cashLike?booleanWhether or not the asset can be treated similar to cash
details.settlementAsset.chain?stringThe chain the asset lives on.
details.settlementAsset.coinGeckoId?stringCoinGecko id for price lookups, e.g. usd-coin.
details.settlementAsset.decimals?numberNumber of decimal places in the asset's native units.
details.settlementAsset.lastKnownPriceUsd?numberLast 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?stringLogo of the coin
details.settlementAsset.name?stringHuman name of the asset.
details.settlementAsset.rwa?booleanWhether the asset is a real-world asset (RWA) — e.g. tokenized private equity — rather than a native crypto asset.
details.settlementAsset.symbol?stringHuman ticker, e.g. USDC.
details.settlementAsset.volatility?numberVolatility of the asset
details.settlementLayerstring-
details.startTimestampnumber-

Returns

OptionDetails