diff options
author | Fabio Berger <me@fabioberger.com> | 2018-06-25 19:51:18 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2018-06-25 19:51:18 +0800 |
commit | 7b0f7c2e5c11ca03927eeeeada6d05994774fe86 (patch) | |
tree | 5102924cf7fe67991cc63b95a0d24e954252da2f | |
parent | ad67a6add54cc31f4b888dbbfe70fed75b743745 (diff) | |
download | dexon-sol-tools-7b0f7c2e5c11ca03927eeeeada6d05994774fe86.tar dexon-sol-tools-7b0f7c2e5c11ca03927eeeeada6d05994774fe86.tar.gz dexon-sol-tools-7b0f7c2e5c11ca03927eeeeada6d05994774fe86.tar.bz2 dexon-sol-tools-7b0f7c2e5c11ca03927eeeeada6d05994774fe86.tar.lz dexon-sol-tools-7b0f7c2e5c11ca03927eeeeada6d05994774fe86.tar.xz dexon-sol-tools-7b0f7c2e5c11ca03927eeeeada6d05994774fe86.tar.zst dexon-sol-tools-7b0f7c2e5c11ca03927eeeeada6d05994774fe86.zip |
Remove no longer used method
-rw-r--r-- | packages/order-utils/src/order_validation_utils.ts | 16 |
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, |