Version: 0.13.0
negotiation/maker/swap_order_matching
Index
Functions
Functions
areAmountsEqual
▸ areAmountsEqual(asset
: string, unitAmount
: string, nominalAmount
: string, token?
: Token): boolean
Defined in negotiation/maker/swap_order_matching.ts:57
Parameters:
Name | Type |
---|---|
asset | string |
unitAmount | string |
nominalAmount | string |
token? | Token |
Returns: boolean
assetsMatch
▸ assetsMatch(orderAsset
: OrderAsset, swapAsset
: Asset, swapLedger
: Ledger): boolean
Defined in negotiation/maker/swap_order_matching.ts:22
Parameters:
Name | Type |
---|---|
orderAsset | OrderAsset |
swapAsset | Asset |
swapLedger | Ledger |
Returns: boolean
match
▸ match(order
: Order, props
: SwapProperties): boolean
Defined in negotiation/maker/swap_order_matching.ts:13
Check that a given swap matches the agreed conditions of an accepted order. See: MakerNegotiator
Parameters:
Name | Type | Description |
---|---|---|
order | Order | The order to check against the swap. |
props | SwapProperties | The properties of the the swap to check against the order. |
Returns: boolean