diff options
-rw-r--r-- | packages/asset-buyer/src/errors.ts | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/packages/asset-buyer/src/errors.ts b/packages/asset-buyer/src/errors.ts index ef05a5d0a..68e9a684b 100644 --- a/packages/asset-buyer/src/errors.ts +++ b/packages/asset-buyer/src/errors.ts @@ -6,7 +6,13 @@ import { AssetBuyerError } from './types'; * Error class representing insufficient asset liquidity */ export class InsufficientAssetLiquidityError extends Error { + /** + * The amount availabe to fill (in base units) factoring in slippage. + */ public amountAvailableToFill?: BigNumber; + /** + * @param amountAvailableToFill The amount availabe to fill (in base units) factoring in slippage + */ constructor(amountAvailableToFill?: BigNumber) { super(AssetBuyerError.InsufficientAssetLiquidity); this.amountAvailableToFill = amountAvailableToFill; |