This commit is contained in:
David Sun
2019-12-19 16:36:00 -08:00
parent 0e86d72f05
commit 38cdb48748
4 changed files with 6 additions and 4 deletions

View File

@@ -8,7 +8,7 @@
"description": "0x Instant React Component",
"main": "umd/instant.js",
"scripts": {
"build": "NODE_ENV=production node --max_old_space_size=8192 ../../node_modules/.bin/webpack --mode production",
"build": "NODE_ENV=production WEBPACK_OUTPUT_PATH=umd/v3 node --max_old_space_size=8192 ../../node_modules/.bin/webpack --mode production",
"build:dev": "webpack --mode development",
"build:ci": "yarn build",
"dev": "dotenv webpack-dev-server -- --mode development",

View File

@@ -199,7 +199,7 @@
};
const render = renderOptionsOverrides => {
const renderOptionsDefaults = {
orderSource: 'https://api.radarrelay.com/0x/v2/',
orderSource: 'https://api.0x.org/sra/',
onClose: () => {
console.log('0x Instant Closed');
},

View File

@@ -192,7 +192,7 @@ export const assetMetaDataMap: ObjectMap<AssetMetaData> = {
symbol: 'ast',
name: 'AirSwap',
},
'0xf47261b000000000000000000000000089d24a6b4ccb1b6faa2625fe562bdd9a23260359': {
'0xf47261b00000000000000000000000006b175474e89094c44da98b954eedeac495271d0f': {
assetProxyId: AssetProxyId.ERC20,
decimals: 18,
primaryColor: '#DEA349',

View File

@@ -1,4 +1,4 @@
import { MarketBuySwapQuote, SwapQuoter } from '@0x/asset-swapper';
import { ERC20BridgeSource, MarketBuySwapQuote, SwapQuoter } from '@0x/asset-swapper';
import { AssetProxyId } from '@0x/types';
import { BigNumber } from '@0x/utils';
import { Web3Wrapper } from '@0x/web3-wrapper';
@@ -50,6 +50,8 @@ export const swapQuoteUpdater = {
{
slippagePercentage,
gasPrice: gasInfo.gasPriceInWei,
// Only use native orders
excludedSources: [ERC20BridgeSource.Eth2Dai, ERC20BridgeSource.Kyber, ERC20BridgeSource.Uniswap],
},
);
} catch (error) {