Daml.Finance.Interface.Util.Common

Functions

isInstanceOf

: (HasFromInterface i2 i1, HasFetch i1) => ContractId i1 -> Update Bool

Checks if an interface instance can be converted to another interface/template.

verify

: CanAssert m => Bool -> Text -> m ()

Verify is assertMsg with its arguments flipped.

qty

: Decimal -> InstrumentKey -> InstrumentQuantity

Wraps an amount and an instrument key into an instrument quantity.

scale

: Decimal -> InstrumentQuantity -> InstrumentQuantity

Scale quantity by the provided factor.