Version: 0.14.1
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:
| Name | Type |
|---|---|
asset | string |
unitAmount | string |
nominalAmount | string |
token? | Token |
Returns: boolean
assetsMatch
▸ assetsMatch(orderAsset: OrderAsset, swapAsset: Asset, swapLedger: Ledger): boolean
Defined in src/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 src/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