aboutsummaryrefslogtreecommitdiffstats
path: root/packages/order-utils/src
diff options
context:
space:
mode:
authorBrandon Millman <brandon.millman@gmail.com>2018-08-10 07:10:57 +0800
committerBrandon Millman <brandon.millman@gmail.com>2018-08-10 07:12:42 +0800
commitb86210332f94ad90cdabcf2083ae4a99075daf33 (patch)
tree428a3b6947f9cb4837dc35b1a830dc19eae75e28 /packages/order-utils/src
parentaf52598d320462357d3ce40d37cf7de9a4f054ee (diff)
downloaddexon-sol-tools-b86210332f94ad90cdabcf2083ae4a99075daf33.tar
dexon-sol-tools-b86210332f94ad90cdabcf2083ae4a99075daf33.tar.gz
dexon-sol-tools-b86210332f94ad90cdabcf2083ae4a99075daf33.tar.bz2
dexon-sol-tools-b86210332f94ad90cdabcf2083ae4a99075daf33.tar.lz
dexon-sol-tools-b86210332f94ad90cdabcf2083ae4a99075daf33.tar.xz
dexon-sol-tools-b86210332f94ad90cdabcf2083ae4a99075daf33.tar.zst
dexon-sol-tools-b86210332f94ad90cdabcf2083ae4a99075daf33.zip
Fix lint errors
Diffstat (limited to 'packages/order-utils/src')
-rw-r--r--packages/order-utils/src/rate_utils.ts1
-rw-r--r--packages/order-utils/src/sorting_utils.ts2
2 files changed, 1 insertions, 2 deletions
diff --git a/packages/order-utils/src/rate_utils.ts b/packages/order-utils/src/rate_utils.ts
index 72d11584a..e82c03873 100644
--- a/packages/order-utils/src/rate_utils.ts
+++ b/packages/order-utils/src/rate_utils.ts
@@ -1,7 +1,6 @@
import { schemas } from '@0xproject/json-schemas';
import { SignedOrder } from '@0xproject/types';
import { BigNumber } from '@0xproject/utils';
-import * as _ from 'lodash';
import { assert } from './assert';
import { constants } from './constants';
diff --git a/packages/order-utils/src/sorting_utils.ts b/packages/order-utils/src/sorting_utils.ts
index 8424060fc..f019aa4a8 100644
--- a/packages/order-utils/src/sorting_utils.ts
+++ b/packages/order-utils/src/sorting_utils.ts
@@ -37,7 +37,7 @@ export const sortingUtils = {
*/
sortFeeOrdersByFeeAdjustedRate(signedFeeOrders: SignedOrder[]): SignedOrder[] {
assert.doesConformToSchema('signedFeeOrders', signedFeeOrders, schemas.signedOrdersSchema);
- const rateCalculator = rateUtils.getFeeAdjustedRateOfFeeOrder;
+ const rateCalculator = rateUtils.getFeeAdjustedRateOfFeeOrder.bind(rateUtils);
const sortedOrders = sortOrders(signedFeeOrders, rateCalculator);
return sortedOrders;
},