aboutsummaryrefslogtreecommitdiffstats
path: root/src/utils
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-08-23 21:26:38 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2017-08-24 15:55:01 +0800
commit37676d338edebb6a24b94865066f9cd3186efd5e (patch)
tree3b46c6cdd09128c4a4fc9a64f26cb75e9dd7cb16 /src/utils
parentae1cd90b9aefff3974abe541861ecb4a6e4ba923 (diff)
downloaddexon-sol-tools-37676d338edebb6a24b94865066f9cd3186efd5e.tar
dexon-sol-tools-37676d338edebb6a24b94865066f9cd3186efd5e.tar.gz
dexon-sol-tools-37676d338edebb6a24b94865066f9cd3186efd5e.tar.bz2
dexon-sol-tools-37676d338edebb6a24b94865066f9cd3186efd5e.tar.lz
dexon-sol-tools-37676d338edebb6a24b94865066f9cd3186efd5e.tar.xz
dexon-sol-tools-37676d338edebb6a24b94865066f9cd3186efd5e.tar.zst
dexon-sol-tools-37676d338edebb6a24b94865066f9cd3186efd5e.zip
Remove And's from names
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/order_validation_utils.ts24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/utils/order_validation_utils.ts b/src/utils/order_validation_utils.ts
index 686dfe33f..691c8a7e0 100644
--- a/src/utils/order_validation_utils.ts
+++ b/src/utils/order_validation_utils.ts
@@ -11,10 +11,10 @@ export class OrderValidationUtils {
this.tokenWrapper = tokenWrapper;
this.exchangeWrapper = exchangeWrapper;
}
- public async validateFillOrderAndThrowIfInvalidAsync(signedOrder: SignedOrder,
- fillTakerTokenAmount: BigNumber.BigNumber,
- takerAddress: string,
- zrxTokenAddress: string): Promise<void> {
+ public async validateFillOrderThrowIfInvalidAsync(signedOrder: SignedOrder,
+ fillTakerTokenAmount: BigNumber.BigNumber,
+ takerAddress: string,
+ zrxTokenAddress: string): Promise<void> {
if (fillTakerTokenAmount.eq(0)) {
throw new Error(ExchangeContractErrs.OrderRemainingFillAmountZero);
}
@@ -36,11 +36,11 @@ export class OrderValidationUtils {
throw new Error(ExchangeContractErrs.OrderFillRoundingError);
}
}
- public async validateFillOrKillOrderAndThrowIfInvalidAsync(signedOrder: SignedOrder,
- fillTakerTokenAmount: BigNumber.BigNumber,
- takerAddress: string,
- zrxTokenAddress: string): Promise<void> {
- await this.validateFillOrderAndThrowIfInvalidAsync(
+ public async validateFillOrKillOrderThrowIfInvalidAsync(signedOrder: SignedOrder,
+ fillTakerTokenAmount: BigNumber.BigNumber,
+ takerAddress: string,
+ zrxTokenAddress: string): Promise<void> {
+ await this.validateFillOrderThrowIfInvalidAsync(
signedOrder, fillTakerTokenAmount, takerAddress, zrxTokenAddress);
// Check that fillValue available >= fillTakerAmount
const orderHashHex = utils.getOrderHashHex(signedOrder);
@@ -50,9 +50,9 @@ export class OrderValidationUtils {
throw new Error(ExchangeContractErrs.InsufficientRemainingFillAmount);
}
}
- public async validateCancelOrderAndThrowIfInvalidAsync(order: Order,
- cancelTakerTokenAmount: BigNumber.BigNumber,
- unavailableTakerTokenAmount: BigNumber.BigNumber,
+ public async validateCancelOrderThrowIfInvalidAsync(order: Order,
+ cancelTakerTokenAmount: BigNumber.BigNumber,
+ unavailableTakerTokenAmount: BigNumber.BigNumber,
): Promise<void> {
if (cancelTakerTokenAmount.eq(0)) {
throw new Error(ExchangeContractErrs.OrderCancelAmountZero);