aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-06-25 19:51:18 +0800
committerFabio Berger <me@fabioberger.com>2018-06-25 19:51:18 +0800
commit7b0f7c2e5c11ca03927eeeeada6d05994774fe86 (patch)
tree5102924cf7fe67991cc63b95a0d24e954252da2f /packages
parentad67a6add54cc31f4b888dbbfe70fed75b743745 (diff)
downloaddexon-0x-contracts-7b0f7c2e5c11ca03927eeeeada6d05994774fe86.tar.gz
dexon-0x-contracts-7b0f7c2e5c11ca03927eeeeada6d05994774fe86.tar.zst
dexon-0x-contracts-7b0f7c2e5c11ca03927eeeeada6d05994774fe86.zip
Remove no longer used method
Diffstat (limited to 'packages')
-rw-r--r--packages/order-utils/src/order_validation_utils.ts16
1 files changed, 0 insertions, 16 deletions
diff --git a/packages/order-utils/src/order_validation_utils.ts b/packages/order-utils/src/order_validation_utils.ts
index d2449b183..ba7050ac7 100644
--- a/packages/order-utils/src/order_validation_utils.ts
+++ b/packages/order-utils/src/order_validation_utils.ts
@@ -32,22 +32,6 @@ export class OrderValidationUtils {
const isError = errPercentageTimes1000000.gt(1000);
return isError;
}
- public static validateCancelOrderThrowIfInvalid(
- order: Order,
- cancelTakerTokenAmount: BigNumber,
- filledTakerTokenAmount: BigNumber,
- ): void {
- if (cancelTakerTokenAmount.eq(0)) {
- throw new Error(ExchangeContractErrs.OrderCancelAmountZero);
- }
- if (order.takerAssetAmount.eq(filledTakerTokenAmount)) {
- throw new Error(ExchangeContractErrs.OrderAlreadyCancelledOrFilled);
- }
- const currentUnixTimestampSec = utils.getCurrentUnixTimestampSec();
- if (order.expirationTimeSeconds.lessThan(currentUnixTimestampSec)) {
- throw new Error(ExchangeContractErrs.OrderCancelExpired);
- }
- }
public static async validateFillOrderBalancesAllowancesThrowIfInvalidAsync(
exchangeTradeEmulator: ExchangeTransferSimulator,
signedOrder: SignedOrder,