aboutsummaryrefslogtreecommitdiffstats
path: root/packages/asset-buyer/src/errors.ts
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/asset-buyer/src/errors.ts
parente144ebbb936c74b4af0e1c1776578208ea148de4 (diff)
downloaddexon-0x-contracts-c8c8219c055cc5798cf5cdc71199ee7ae505cd5a.tar.gz
dexon-0x-contracts-c8c8219c055cc5798cf5cdc71199ee7ae505cd5a.tar.zst
dexon-0x-contracts-c8c8219c055cc5798cf5cdc71199ee7ae505cd5a.zip
Make amountAvailableToFill required
Diffstat (limited to 'packages/asset-buyer/src/errors.ts')
-rw-r--r--packages/asset-buyer/src/errors.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/asset-buyer/src/errors.ts b/packages/asset-buyer/src/errors.ts
index 68e9a684b..ec5fe548c 100644
--- a/packages/asset-buyer/src/errors.ts
+++ b/packages/asset-buyer/src/errors.ts
@@ -9,11 +9,11 @@ export class InsufficientAssetLiquidityError extends Error {
/**
* The amount availabe to fill (in base units) factoring in slippage.
*/
- public amountAvailableToFill?: BigNumber;
+ public amountAvailableToFill: BigNumber;
/**
* @param amountAvailableToFill The amount availabe to fill (in base units) factoring in slippage
*/
- constructor(amountAvailableToFill?: BigNumber) {
+ constructor(amountAvailableToFill: BigNumber) {
super(AssetBuyerError.InsufficientAssetLiquidity);
this.amountAvailableToFill = amountAvailableToFill;
// Setting prototype so instanceof works. See https://github.com/Microsoft/TypeScript/wiki/Breaking-Changes#extending-built-ins-like-error-array-and-map-may-no-longer-work