aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
Diffstat (limited to 'packages')
-rw-r--r--packages/forwarder-helper/src/forwarder_helper_impl.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/forwarder-helper/src/forwarder_helper_impl.ts b/packages/forwarder-helper/src/forwarder_helper_impl.ts
index 8f4ec1c02..39e84b477 100644
--- a/packages/forwarder-helper/src/forwarder_helper_impl.ts
+++ b/packages/forwarder-helper/src/forwarder_helper_impl.ts
@@ -20,7 +20,7 @@ export interface ForwarderHelperImplConfig {
}
export class ForwarderHelperImpl implements ForwarderHelper {
- private _config: ForwarderHelperImplConfig;
+ public readonly config: ForwarderHelperImplConfig;
private static _createSignedOrderWithAmounts(
orders: SignedOrder[],
amounts?: BigNumber[],
@@ -76,11 +76,11 @@ export class ForwarderHelperImpl implements ForwarderHelper {
};
}
constructor(opts: ForwarderHelperImplConfig) {
- this._config = ForwarderHelperImpl._sortConfig(opts);
+ this.config = ForwarderHelperImpl._sortConfig(opts);
}
public getMarketBuyOrdersInfo(request: MarketBuyOrdersInfoRequest): MarketBuyOrdersInfo {
const { makerAssetFillAmount, feePercentage } = request;
- const { orders, feeOrders, remainingFillableMakerAssetAmounts, remainingFillableFeeAmounts } = this._config;
+ const { orders, feeOrders, remainingFillableMakerAssetAmounts, remainingFillableFeeAmounts } = this.config;
// TODO: make the slippage percentage customizable
const slippageBufferAmount = makerAssetFillAmount.mul(SLIPPAGE_PERCENTAGE);
const { resultOrders, remainingFillAmount } = marketUtils.findOrdersThatCoverMakerAssetFillAmount(