Daml.Finance.Interface.Util.Common

Functions

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.