diff options
author | Brandon Millman <brandon.millman@gmail.com> | 2018-08-07 04:35:49 +0800 |
---|---|---|
committer | Brandon Millman <brandon.millman@gmail.com> | 2018-08-07 04:35:49 +0800 |
commit | 35201af4b1aa64a0961de0d13ce9c5bac65ddbf8 (patch) | |
tree | fe98a12a88f1c44b291b61c7836837e32d53d847 /packages | |
parent | 0bc775cdb8617fea73c87eaff015bf3d2dfadb42 (diff) | |
download | dexon-sol-tools-35201af4b1aa64a0961de0d13ce9c5bac65ddbf8.tar dexon-sol-tools-35201af4b1aa64a0961de0d13ce9c5bac65ddbf8.tar.gz dexon-sol-tools-35201af4b1aa64a0961de0d13ce9c5bac65ddbf8.tar.bz2 dexon-sol-tools-35201af4b1aa64a0961de0d13ce9c5bac65ddbf8.tar.lz dexon-sol-tools-35201af4b1aa64a0961de0d13ce9c5bac65ddbf8.tar.xz dexon-sol-tools-35201af4b1aa64a0961de0d13ce9c5bac65ddbf8.tar.zst dexon-sol-tools-35201af4b1aa64a0961de0d13ce9c5bac65ddbf8.zip |
Remove assertion comments
Diffstat (limited to 'packages')
-rw-r--r-- | packages/order-utils/src/market_utils.ts | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/packages/order-utils/src/market_utils.ts b/packages/order-utils/src/market_utils.ts index 94b5be4eb..681059ddf 100644 --- a/packages/order-utils/src/market_utils.ts +++ b/packages/order-utils/src/market_utils.ts @@ -26,14 +26,12 @@ export const marketUtils = { makerAssetFillAmount: BigNumber, slippageBufferAmount: BigNumber = constants.ZERO_AMOUNT, ): { resultOrders: SignedOrder[]; remainingFillAmount: BigNumber } { - // type assertions assert.doesConformToSchema('signedOrders', signedOrders, schemas.signedOrdersSchema); _.forEach(remainingFillableMakerAssetAmounts, (amount, index) => assert.isValidBaseUnitAmount(`remainingFillableMakerAssetAmount[${index}]`, amount), ); assert.isValidBaseUnitAmount('makerAssetFillAmount', makerAssetFillAmount); assert.isValidBaseUnitAmount('slippageBufferAmount', slippageBufferAmount); - // other assertions assert.assert( signedOrders.length === remainingFillableMakerAssetAmounts.length, 'Expected signedOrders.length to equal remainingFillableMakerAssetAmounts.length', @@ -90,7 +88,6 @@ export const marketUtils = { remainingFillableFeeAmounts: BigNumber[], slippageBufferAmount: BigNumber = constants.ZERO_AMOUNT, ): { resultOrders: SignedOrder[]; remainingFeeAmount: BigNumber } { - // type assertions assert.doesConformToSchema('signedOrders', signedOrders, schemas.signedOrdersSchema); _.forEach(remainingFillableMakerAssetAmounts, (amount, index) => assert.isValidBaseUnitAmount(`remainingFillableMakerAssetAmount[${index}]`, amount), @@ -100,7 +97,6 @@ export const marketUtils = { assert.isValidBaseUnitAmount(`remainingFillableFeeAmounts[${index}]`, amount), ); assert.isValidBaseUnitAmount('slippageBufferAmount', slippageBufferAmount); - // other assertions assert.assert( signedOrders.length === remainingFillableMakerAssetAmounts.length, 'Expected signedOrders.length to equal remainingFillableMakerAssetAmounts.length', |