aboutsummaryrefslogtreecommitdiffstats
path: root/packages/instant/src
diff options
context:
space:
mode:
authorSteve Klebanoff <steve.klebanoff@gmail.com>2018-12-22 08:26:07 +0800
committerSteve Klebanoff <steve.klebanoff@gmail.com>2018-12-22 08:26:07 +0800
commitc8c8219c055cc5798cf5cdc71199ee7ae505cd5a (patch)
tree40bc54fc631768b8b328eb567836294d3f19446e /packages/instant/src
parente144ebbb936c74b4af0e1c1776578208ea148de4 (diff)
downloaddexon-sol-tools-c8c8219c055cc5798cf5cdc71199ee7ae505cd5a.tar
dexon-sol-tools-c8c8219c055cc5798cf5cdc71199ee7ae505cd5a.tar.gz
dexon-sol-tools-c8c8219c055cc5798cf5cdc71199ee7ae505cd5a.tar.bz2
dexon-sol-tools-c8c8219c055cc5798cf5cdc71199ee7ae505cd5a.tar.lz
dexon-sol-tools-c8c8219c055cc5798cf5cdc71199ee7ae505cd5a.tar.xz
dexon-sol-tools-c8c8219c055cc5798cf5cdc71199ee7ae505cd5a.tar.zst
dexon-sol-tools-c8c8219c055cc5798cf5cdc71199ee7ae505cd5a.zip
Make amountAvailableToFill required
Diffstat (limited to 'packages/instant/src')
-rw-r--r--packages/instant/src/util/asset.ts1
1 files changed, 0 insertions, 1 deletions
diff --git a/packages/instant/src/util/asset.ts b/packages/instant/src/util/asset.ts
index e7aa55c88..b009a327f 100644
--- a/packages/instant/src/util/asset.ts
+++ b/packages/instant/src/util/asset.ts
@@ -115,7 +115,6 @@ export const assetUtils = {
const assetName = assetUtils.bestNameForAsset(asset, 'of this asset');
if (
error instanceof InsufficientAssetLiquidityError &&
- error.amountAvailableToFill &&
error.amountAvailableToFill.greaterThan(BIG_NUMBER_ZERO)
) {
const unitAmountAvailableToFill = Web3Wrapper.toUnitAmount(