Skip to main content

Module currency

Module currency 

Source
Expand description

Contract currency definitions and their DeFi presentation metadata.

Structs§

TokenCurrency
Binds a readable currency code to one token contract.

Functions§

check
Checks a currency against its registered token definition.
instrument_codes
Returns the sorted, distinct token currency codes used by an instrument.
lookup
Returns a registered token definition, without inferring provenance from its code.
register
Registers a token code and its chain/contract binding, retaining the first name and symbol.