Skip to content
docs

sourceAssetOf

sourceAssetOf(params): CcAsset | undefined

Defined in: protocol-swap2-core/src/util.ts:86

The source asset a provider is asked to sell: the catalog’s entry for params.sourceToken, or — only when the engine sent sourceDecimals (an unlisted token the user added) — an unlisted asset named by its contract / mint. Providers that can trade any token use this instead of the catalog lookup; the others keep refusing what the catalog does not list.

Pick<QuoteParams, "sourceChain" | "sourceToken" | "sourceDecimals">

CcAsset | undefined