aboutsummaryrefslogtreecommitdiffstats
path: root/packages/instant/src
diff options
context:
space:
mode:
authorfragosti <francesco.agosti93@gmail.com>2018-10-30 04:17:16 +0800
committerfragosti <francesco.agosti93@gmail.com>2018-10-30 04:17:16 +0800
commit02a975dde45ba879627975ac836956b679a1a0ac (patch)
tree2f529e5d8c2a2873f9925a6e3e46dcfe66a38b83 /packages/instant/src
parentfdf9e860dedf5dbe7840951f304a33ac2d7b1b51 (diff)
downloaddexon-sol-tools-02a975dde45ba879627975ac836956b679a1a0ac.tar
dexon-sol-tools-02a975dde45ba879627975ac836956b679a1a0ac.tar.gz
dexon-sol-tools-02a975dde45ba879627975ac836956b679a1a0ac.tar.bz2
dexon-sol-tools-02a975dde45ba879627975ac836956b679a1a0ac.tar.lz
dexon-sol-tools-02a975dde45ba879627975ac836956b679a1a0ac.tar.xz
dexon-sol-tools-02a975dde45ba879627975ac836956b679a1a0ac.tar.zst
dexon-sol-tools-02a975dde45ba879627975ac836956b679a1a0ac.zip
feat: add augur provided order
Diffstat (limited to 'packages/instant/src')
-rw-r--r--packages/instant/src/containers/selected_erc20_asset_amount_input.ts1
-rw-r--r--packages/instant/src/data/asset_data_network_mapping.ts4
-rw-r--r--packages/instant/src/data/asset_meta_data_map.ts6
3 files changed, 11 insertions, 0 deletions
diff --git a/packages/instant/src/containers/selected_erc20_asset_amount_input.ts b/packages/instant/src/containers/selected_erc20_asset_amount_input.ts
index 4767b15d4..ad3aa9582 100644
--- a/packages/instant/src/containers/selected_erc20_asset_amount_input.ts
+++ b/packages/instant/src/containers/selected_erc20_asset_amount_input.ts
@@ -78,6 +78,7 @@ const updateBuyQuoteAsync = async (
try {
newBuyQuote = await assetBuyer.getBuyQuoteAsync(asset.assetData, baseUnitValue);
} catch (error) {
+ console.log(error);
dispatch(actions.setQuoteRequestStateFailure());
let errorMessage;
if (error.message === AssetBuyerError.InsufficientAssetLiquidity) {
diff --git a/packages/instant/src/data/asset_data_network_mapping.ts b/packages/instant/src/data/asset_data_network_mapping.ts
index e8ccbf011..28a04eb8a 100644
--- a/packages/instant/src/data/asset_data_network_mapping.ts
+++ b/packages/instant/src/data/asset_data_network_mapping.ts
@@ -12,4 +12,8 @@ export const assetDataNetworkMapping: AssetDataByNetwork[] = [
[Network.Mainnet]: '0xf47261b0000000000000000000000000e41d2489571d322189246dafa5ebde1f4699f498',
[Network.Kovan]: '0xf47261b00000000000000000000000002002d3812f58e35f0ea1ffbf80a75a38c32175fa',
},
+ {
+ [Network.Kovan]: '0xf47261b00000000000000000000000008cb3971b8eb709c14616bd556ff6683019e90d9c',
+ [Network.Mainnet]: '0xf47261b0000000000000000000000000e94327d07fc17907b4db788e5adf2ed424addff6',
+ },
];
diff --git a/packages/instant/src/data/asset_meta_data_map.ts b/packages/instant/src/data/asset_meta_data_map.ts
index 3a820a0c4..4e6e15d38 100644
--- a/packages/instant/src/data/asset_meta_data_map.ts
+++ b/packages/instant/src/data/asset_meta_data_map.ts
@@ -11,4 +11,10 @@ export const assetMetaDataMap: ObjectMap<AssetMetaData> = {
primaryColor: 'rgb(54, 50, 60)',
symbol: 'zrx',
},
+ '0xf47261b0000000000000000000000000e94327d07fc17907b4db788e5adf2ed424addff6': {
+ assetProxyId: AssetProxyId.ERC20,
+ decimals: 18,
+ primaryColor: '#512D80',
+ symbol: 'rep',
+ },
};