aboutsummaryrefslogtreecommitdiffstats
path: root/packages/order-utils/src
diff options
context:
space:
mode:
authorBrandon Millman <brandon.millman@gmail.com>2018-08-18 04:00:54 +0800
committerBrandon Millman <brandon.millman@gmail.com>2018-08-23 06:39:03 +0800
commite8a1950a7489e83f7f1a1127ee325f0c5c36483c (patch)
treeffecf66fce01ccb0fb2ddcce67183d06dce2e245 /packages/order-utils/src
parent3c973ba9f64197fcc1a66f319e3d1aa33d96b6d7 (diff)
downloaddexon-sol-tools-e8a1950a7489e83f7f1a1127ee325f0c5c36483c.tar
dexon-sol-tools-e8a1950a7489e83f7f1a1127ee325f0c5c36483c.tar.gz
dexon-sol-tools-e8a1950a7489e83f7f1a1127ee325f0c5c36483c.tar.bz2
dexon-sol-tools-e8a1950a7489e83f7f1a1127ee325f0c5c36483c.tar.lz
dexon-sol-tools-e8a1950a7489e83f7f1a1127ee325f0c5c36483c.tar.xz
dexon-sol-tools-e8a1950a7489e83f7f1a1127ee325f0c5c36483c.tar.zst
dexon-sol-tools-e8a1950a7489e83f7f1a1127ee325f0c5c36483c.zip
Add ForwarderHelperImplConfig
Diffstat (limited to 'packages/order-utils/src')
-rw-r--r--packages/order-utils/src/sorting_utils.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/order-utils/src/sorting_utils.ts b/packages/order-utils/src/sorting_utils.ts
index 8811bcaf8..cd5163cf6 100644
--- a/packages/order-utils/src/sorting_utils.ts
+++ b/packages/order-utils/src/sorting_utils.ts
@@ -32,7 +32,7 @@ export const sortingUtils = {
* the makerAsset and WETH as the takerAsset.
* @return The input orders sorted by rate in ascending order
*/
- sortFeeOrdersByFeeAdjustedRate(feeOrders: Order[]): Order[] {
+ sortFeeOrdersByFeeAdjustedRate<T extends Order>(feeOrders: T[]): T[] {
assert.doesConformToSchema('feeOrders', feeOrders, schemas.ordersSchema);
const rateCalculator = rateUtils.getFeeAdjustedRateOfFeeOrder.bind(rateUtils);
const sortedOrders = sortOrders(feeOrders, rateCalculator);