diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-12-15 20:14:57 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-12-15 20:30:19 +0800 |
commit | 274aa50d740e4f3af9e3d50468843ed19b555aa3 (patch) | |
tree | 1f2f8253615ef885283e8cf20f04ee5e0ece56c6 /packages/0x.js/src/utils/order_validation_utils.ts | |
parent | c36d85a46c946b5d52164642336f39c90b732376 (diff) | |
download | dexon-0x-contracts-274aa50d740e4f3af9e3d50468843ed19b555aa3.tar.gz dexon-0x-contracts-274aa50d740e4f3af9e3d50468843ed19b555aa3.tar.zst dexon-0x-contracts-274aa50d740e4f3af9e3d50468843ed19b555aa3.zip |
Fix 0x.js unused vars
Diffstat (limited to 'packages/0x.js/src/utils/order_validation_utils.ts')
-rw-r--r-- | packages/0x.js/src/utils/order_validation_utils.ts | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/packages/0x.js/src/utils/order_validation_utils.ts b/packages/0x.js/src/utils/order_validation_utils.ts index d514483e0..9185eef2b 100644 --- a/packages/0x.js/src/utils/order_validation_utils.ts +++ b/packages/0x.js/src/utils/order_validation_utils.ts @@ -3,7 +3,6 @@ import * as _ from 'lodash'; import {ZeroEx} from '../0x'; import {ExchangeWrapper} from '../contract_wrappers/exchange_wrapper'; -import {TokenWrapper} from '../contract_wrappers/token_wrapper'; import {ExchangeContractErrs, Order, SignedOrder, TradeSide, TransferType, ZeroExError} from '../types'; import {constants} from '../utils/constants'; import {utils} from '../utils/utils'; @@ -11,7 +10,6 @@ import {utils} from '../utils/utils'; import {ExchangeTransferSimulator} from './exchange_transfer_simulator'; export class OrderValidationUtils { - private tokenWrapper: TokenWrapper; private exchangeWrapper: ExchangeWrapper; public static validateCancelOrderThrowIfInvalid( order: Order, cancelTakerTokenAmount: BigNumber, unavailableTakerTokenAmount: BigNumber, @@ -84,8 +82,7 @@ export class OrderValidationUtils { .round(0); return fillMakerTokenAmount; } - constructor(tokenWrapper: TokenWrapper, exchangeWrapper: ExchangeWrapper) { - this.tokenWrapper = tokenWrapper; + constructor(exchangeWrapper: ExchangeWrapper) { this.exchangeWrapper = exchangeWrapper; } public async validateOrderFillableOrThrowAsync( |