March Docs

FinanceAsset

Functions

fnassetasset(id : String, precision : Int) : Result(Asset, FinanceError.Error)#

Construct an asset using a canonical identity and native decimal precision.

fnasset_idasset_id(a : Asset) : String#
fnfiatfiat(code : String, places : Int) : Result(Asset, FinanceError.Error)#

ISO-shaped fiat identifier: three uppercase ASCII letters. No currency registry is implied.

fnnativenative(chain : String, places : Int) : Result(Asset, FinanceError.Error)#
fnprecisionprecision(a : Asset) : {Int | _ >= 0 && _ <= 255}#
fntokentoken(chain : String, contract : String, places : Int) : Result(Asset, FinanceError.Error)#

Length-prefix chain and contract/mint identifiers to avoid delimiter collisions.