aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorBrandon Millman <brandon.millman@gmail.com>2018-08-24 01:53:59 +0800
committerBrandon Millman <brandon.millman@gmail.com>2018-08-24 01:53:59 +0800
commitcd5c73550b969fe0a87524143ce617749935427a (patch)
tree109b7566fa39186ce404365b923946de46403bbf /packages
parent68b060cb6ac48e21493c10d5ff27a401148003e4 (diff)
downloaddexon-sol-tools-cd5c73550b969fe0a87524143ce617749935427a.tar
dexon-sol-tools-cd5c73550b969fe0a87524143ce617749935427a.tar.gz
dexon-sol-tools-cd5c73550b969fe0a87524143ce617749935427a.tar.bz2
dexon-sol-tools-cd5c73550b969fe0a87524143ce617749935427a.tar.lz
dexon-sol-tools-cd5c73550b969fe0a87524143ce617749935427a.tar.xz
dexon-sol-tools-cd5c73550b969fe0a87524143ce617749935427a.tar.zst
dexon-sol-tools-cd5c73550b969fe0a87524143ce617749935427a.zip
Update _sortedConfigs naming
Diffstat (limited to 'packages')
-rw-r--r--packages/forwarder-helper/src/forwarder_helper_impl.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/packages/forwarder-helper/src/forwarder_helper_impl.ts b/packages/forwarder-helper/src/forwarder_helper_impl.ts
index 0e59aa7d6..83dc1f4b3 100644
--- a/packages/forwarder-helper/src/forwarder_helper_impl.ts
+++ b/packages/forwarder-helper/src/forwarder_helper_impl.ts
@@ -50,8 +50,8 @@ export class ForwarderHelperImpl implements ForwarderHelper {
amounts: compactAmounts.length > 0 ? compactAmounts : undefined,
};
}
- private static _sortConfig(opts: ForwarderHelperImplConfig): ForwarderHelperImplConfig {
- const { orders, feeOrders, remainingFillableMakerAssetAmounts, remainingFillableFeeAmounts } = opts;
+ private static _sortedConfig(config: ForwarderHelperImplConfig): ForwarderHelperImplConfig {
+ const { orders, feeOrders, remainingFillableMakerAssetAmounts, remainingFillableFeeAmounts } = config;
// Bundle orders together with their remainingFillAmounts so that we can sort them together
const orderWithAmounts = ForwarderHelperImpl._createSignedOrderWithAmounts(
orders,
@@ -79,8 +79,8 @@ export class ForwarderHelperImpl implements ForwarderHelper {
remainingFillableFeeAmounts: unbundledSortedFeeOrderWithAmounts.amounts,
};
}
- constructor(opts: ForwarderHelperImplConfig) {
- this.config = ForwarderHelperImpl._sortConfig(opts);
+ constructor(config: ForwarderHelperImplConfig) {
+ this.config = ForwarderHelperImpl._sortedConfig(config);
}
public getMarketBuyOrdersInfo(request: MarketBuyOrdersInfoRequest): MarketBuyOrdersInfo {
const { makerAssetFillAmount, feePercentage } = request;