aboutsummaryrefslogtreecommitdiffstats
path: root/packages/order-utils/src
diff options
context:
space:
mode:
authorBrandon Millman <brandon.millman@gmail.com>2018-08-10 06:43:31 +0800
committerBrandon Millman <brandon.millman@gmail.com>2018-08-10 07:12:42 +0800
commitfcd57d2743e4b6a1363b8071696147a91d2afb00 (patch)
tree369e3af57a3ecf3690b6a190726f07943952f974 /packages/order-utils/src
parentc0924d8067079f246c5cad32f7acb3d1f6cfd9b9 (diff)
downloaddexon-sol-tools-fcd57d2743e4b6a1363b8071696147a91d2afb00.tar
dexon-sol-tools-fcd57d2743e4b6a1363b8071696147a91d2afb00.tar.gz
dexon-sol-tools-fcd57d2743e4b6a1363b8071696147a91d2afb00.tar.bz2
dexon-sol-tools-fcd57d2743e4b6a1363b8071696147a91d2afb00.tar.lz
dexon-sol-tools-fcd57d2743e4b6a1363b8071696147a91d2afb00.tar.xz
dexon-sol-tools-fcd57d2743e4b6a1363b8071696147a91d2afb00.tar.zst
dexon-sol-tools-fcd57d2743e4b6a1363b8071696147a91d2afb00.zip
Add tests for sortingUtils
Diffstat (limited to 'packages/order-utils/src')
-rw-r--r--packages/order-utils/src/sorting_utils.ts1
1 files changed, 0 insertions, 1 deletions
diff --git a/packages/order-utils/src/sorting_utils.ts b/packages/order-utils/src/sorting_utils.ts
index 7474a302f..2acd8180f 100644
--- a/packages/order-utils/src/sorting_utils.ts
+++ b/packages/order-utils/src/sorting_utils.ts
@@ -20,7 +20,6 @@ export const sortingUtils = {
sortOrdersByFeeAdjustedRate(signedOrders: SignedOrder[], feeRate: BigNumber): SignedOrder[] {
assert.doesConformToSchema('signedOrders', signedOrders, schemas.signedOrdersSchema);
assert.isBigNumber('feeRate', feeRate);
- assert.assert(feeRate.greaterThan(constants.ZERO_AMOUNT), `Expected feeRate: ${feeRate} to be greater than 0`);
const rateCalculator = (signedOrder: SignedOrder) => rateUtils.getFeeAdjustedRateOfOrder(signedOrder, feeRate);
const sortedOrders = sortOrders(signedOrders, rateCalculator);
return sortedOrders;