diff options
Diffstat (limited to 'packages/instant/public')
-rw-r--r-- | packages/instant/public/index.html | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/packages/instant/public/index.html b/packages/instant/public/index.html index 7580ab132..e1f8432be 100644 --- a/packages/instant/public/index.html +++ b/packages/instant/public/index.html @@ -72,16 +72,18 @@ ]; const queryParams = new Uri(window.location.search); const renderOptionsDefaults = { - liquiditySource: 'https://api.radarrelay.com/0x/v2/', + orderSource: 'https://api.radarrelay.com/0x/v2/', assetData: '0xf47261b0000000000000000000000000e41d2489571d322189246dafa5ebde1f4699f498', onClose: () => { console.log('0x Instant Closed') } } - const liquiditySourceOverride = queryParams.getQueryParamValue('liquiditySource'); + const orderSourceOverride = queryParams.getQueryParamValue('orderSource'); + const availableAssetDatasString = queryParams.getQueryParamValue('availableAssetDatas'); const renderOptionsOverrides = { - liquiditySource: liquiditySourceOverride === 'provided' ? providedOrders : liquiditySourceOverride, - assetData: queryParams.getQueryParamValue('assetData'), + orderSource: orderSourceOverride === 'provided' ? [providedOrder] : orderSourceOverride, networkId: +queryParams.getQueryParamValue('networkId') || undefined, defaultAssetBuyAmount: +queryParams.getQueryParamValue('defaultAssetBuyAmount') || undefined, + availableAssetDatas: availableAssetDatasString ? JSON.parse(availableAssetDatasString) : undefined, + defaultSelectedAssetData: queryParams.getQueryParamValue('defaultSelectedAssetData'), } const renderOptions = Object.assign({}, renderOptionsDefaults, removeUndefined(renderOptionsOverrides)); zeroExInstant.render(renderOptions); |