expanded swap quoter to create market sell swap quotes

This commit is contained in:
David Sun
2019-06-27 15:20:20 -07:00
parent 3e2dbfc83c
commit 2b82187fe0

View File

@@ -25,7 +25,7 @@ export const marketUtils = {
): OrdersAndRemainingTakerFillAmount<T> {
assert.doesConformToSchema('orders', orders, schemas.ordersSchema);
assert.isValidBaseUnitAmount('takerAssetFillAmount', takerAssetFillAmount);
// try to get remainingFillableMakerAssetAmounts from opts, if it's not there, use makerAssetAmount values from orders
// try to get remainingFillableTakerAssetAmounts from opts, if it's not there, use takerAssetAmount values from orders
const remainingFillableTakerAssetAmounts = _.get(
opts,
'remainingFillableTakerAssetAmounts',