Version: 0.15.2

negotiation/maker/swap_order_matching

Index

Functions

Functions

areAmountsEqual

areAmountsEqual(asset: string, unitAmount: string, nominalAmount: string, token?: Token): boolean

Defined in src/negotiation/maker/swap_order_matching.ts:57

Parameters:

NameType
assetstring
unitAmountstring
nominalAmountstring
token?Token

Returns: boolean


assetsMatch

assetsMatch(orderAsset: OrderAsset, swapAsset: Asset, swapLedger: Ledger): boolean

Defined in src/negotiation/maker/swap_order_matching.ts:22

Parameters:

NameType
orderAssetOrderAsset
swapAssetAsset
swapLedgerLedger

Returns: boolean


match

match(order: Order, props: SwapProperties): boolean

Defined in src/negotiation/maker/swap_order_matching.ts:13

Check that a given swap matches the agreed conditions of an accepted order. See: MakerNegotiator

Parameters:

NameTypeDescription
orderOrderThe order to check against the swap.
propsSwapPropertiesThe properties of the the swap to check against the order.

Returns: boolean