diff options
author | Brandon Millman <brandon.millman@gmail.com> | 2018-08-17 15:15:52 +0800 |
---|---|---|
committer | Brandon Millman <brandon.millman@gmail.com> | 2018-08-23 06:39:03 +0800 |
commit | 3c973ba9f64197fcc1a66f319e3d1aa33d96b6d7 (patch) | |
tree | b53c5e88376bc6cfc52c8d20b645f9c7ceba1812 /packages/order-utils/src | |
parent | 2ef867f398db381ebd8ec715bd108b46d8fa60f3 (diff) | |
download | dexon-sol-tools-3c973ba9f64197fcc1a66f319e3d1aa33d96b6d7.tar dexon-sol-tools-3c973ba9f64197fcc1a66f319e3d1aa33d96b6d7.tar.gz dexon-sol-tools-3c973ba9f64197fcc1a66f319e3d1aa33d96b6d7.tar.bz2 dexon-sol-tools-3c973ba9f64197fcc1a66f319e3d1aa33d96b6d7.tar.lz dexon-sol-tools-3c973ba9f64197fcc1a66f319e3d1aa33d96b6d7.tar.xz dexon-sol-tools-3c973ba9f64197fcc1a66f319e3d1aa33d96b6d7.tar.zst dexon-sol-tools-3c973ba9f64197fcc1a66f319e3d1aa33d96b6d7.zip |
Remove marketSell and add to marketBuy implementation
Diffstat (limited to 'packages/order-utils/src')
-rw-r--r-- | packages/order-utils/src/market_utils.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/order-utils/src/market_utils.ts b/packages/order-utils/src/market_utils.ts index a0a827546..7eae4c8fc 100644 --- a/packages/order-utils/src/market_utils.ts +++ b/packages/order-utils/src/market_utils.ts @@ -84,7 +84,7 @@ export const marketUtils = { orders: T[], feeOrders: T[], opts?: FindFeeOrdersThatCoverFeesForTargetOrdersOpts, - ): { resultOrders: T[]; remainingFeeAmount: BigNumber } { + ): { resultFeeOrders: T[]; remainingFeeAmount: BigNumber } { assert.doesConformToSchema('orders', orders, schemas.ordersSchema); assert.doesConformToSchema('feeOrders', feeOrders, schemas.ordersSchema); // try to get remainingFillableMakerAssetAmounts from opts, if it's not there, use makerAssetAmount values from orders @@ -137,7 +137,7 @@ export const marketUtils = { }, ); return { - resultOrders, + resultFeeOrders: resultOrders, remainingFeeAmount: remainingFillAmount, }; // TODO: add more orders here to cover rounding |