aboutsummaryrefslogtreecommitdiffstats
path: root/packages/instant/public
diff options
context:
space:
mode:
authorfragosti <francesco.agosti93@gmail.com>2018-10-26 05:37:34 +0800
committerfragosti <francesco.agosti93@gmail.com>2018-10-26 05:37:34 +0800
commit23b165669202c1bdf4bd7d7e509b9bfe06e3ef8a (patch)
tree28391ad5e06b532075e1d93ce4fa381d96e2f12e /packages/instant/public
parentd06b40bd8a938557ebba993afa78d20493ad71ef (diff)
downloaddexon-sol-tools-23b165669202c1bdf4bd7d7e509b9bfe06e3ef8a.tar
dexon-sol-tools-23b165669202c1bdf4bd7d7e509b9bfe06e3ef8a.tar.gz
dexon-sol-tools-23b165669202c1bdf4bd7d7e509b9bfe06e3ef8a.tar.bz2
dexon-sol-tools-23b165669202c1bdf4bd7d7e509b9bfe06e3ef8a.tar.lz
dexon-sol-tools-23b165669202c1bdf4bd7d7e509b9bfe06e3ef8a.tar.xz
dexon-sol-tools-23b165669202c1bdf4bd7d7e509b9bfe06e3ef8a.tar.zst
dexon-sol-tools-23b165669202c1bdf4bd7d7e509b9bfe06e3ef8a.zip
feat: support defaultAssetBuyAmount setting
Diffstat (limited to 'packages/instant/public')
-rw-r--r--packages/instant/public/index.html3
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/instant/public/index.html b/packages/instant/public/index.html
index ba31a86ac..95216a929 100644
--- a/packages/instant/public/index.html
+++ b/packages/instant/public/index.html
@@ -62,7 +62,8 @@
const renderOptionsOverrides = {
liquiditySource: liquiditySourceOverride === 'provided' ? [providedOrder] : liquiditySourceOverride,
assetData: queryParams.getQueryParamValue('assetData'),
- network: parseInt(queryParams.getQueryParamValue('network'), 10),
+ network: +queryParams.getQueryParamValue('network'),
+ defaultAssetBuyAmount: +queryParams.getQueryParamValue('defaultAssetBuyAmount'),
}
const renderOptions = Object.assign({}, renderOptionsDefaults, removeUndefined(renderOptionsOverrides));
zeroExInstant.render(renderOptions);