aboutsummaryrefslogtreecommitdiffstats
path: root/packages/0x.js/src/utils
diff options
context:
space:
mode:
authorJacob Evans <jacob@dekz.net>2017-11-14 01:54:31 +0800
committerJacob Evans <jacob@dekz.net>2017-11-14 05:35:37 +0800
commitb1b473d3cb73323bc879d8a7e8ac11e3cd13c8b5 (patch)
tree9b8a6b8a0b7748f7053ad7afcf0ac53cb5a24320 /packages/0x.js/src/utils
parentc088d9ddd95d1c10025bee75a91a65f8479db277 (diff)
downloaddexon-0x-contracts-b1b473d3cb73323bc879d8a7e8ac11e3cd13c8b5.tar.gz
dexon-0x-contracts-b1b473d3cb73323bc879d8a7e8ac11e3cd13c8b5.tar.zst
dexon-0x-contracts-b1b473d3cb73323bc879d8a7e8ac11e3cd13c8b5.zip
Renamed canceled to cancelled
Diffstat (limited to 'packages/0x.js/src/utils')
-rw-r--r--packages/0x.js/src/utils/order_state_utils.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/0x.js/src/utils/order_state_utils.ts b/packages/0x.js/src/utils/order_state_utils.ts
index f82601cae..a1ee7577d 100644
--- a/packages/0x.js/src/utils/order_state_utils.ts
+++ b/packages/0x.js/src/utils/order_state_utils.ts
@@ -67,7 +67,7 @@ export class OrderStateUtils {
zrxTokenAddress, signedOrder.maker,
);
const filledTakerTokenAmount = await this.orderFilledCancelledLazyStore.getFilledTakerAmountAsync(orderHash);
- const canceledTakerTokenAmount = await this.orderFilledCancelledLazyStore.getCancelledTakerAmountAsync(
+ const cancelledTakerTokenAmount = await this.orderFilledCancelledLazyStore.getCancelledTakerAmountAsync(
orderHash,
);
const unavailableTakerTokenAmount = await exchange.getUnavailableTakerAmountAsync(orderHash);
@@ -85,13 +85,13 @@ export class OrderStateUtils {
makerFeeBalance,
makerFeeProxyAllowance,
filledTakerTokenAmount,
- canceledTakerTokenAmount,
+ cancelledTakerTokenAmount,
remainingFillableMakerTokenAmount,
};
return orderRelevantState;
}
private validateIfOrderIsValid(signedOrder: SignedOrder, orderRelevantState: OrderRelevantState): void {
- const unavailableTakerTokenAmount = orderRelevantState.canceledTakerTokenAmount.add(
+ const unavailableTakerTokenAmount = orderRelevantState.cancelledTakerTokenAmount.add(
orderRelevantState.filledTakerTokenAmount,
);
const availableTakerTokenAmount = signedOrder.takerTokenAmount.minus(unavailableTakerTokenAmount);