diff options
Diffstat (limited to 'packages/instant/src/data/asset_data_network_mapping.ts')
-rw-r--r-- | packages/instant/src/data/asset_data_network_mapping.ts | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/packages/instant/src/data/asset_data_network_mapping.ts b/packages/instant/src/data/asset_data_network_mapping.ts index 9e14462f8..e8ccbf011 100644 --- a/packages/instant/src/data/asset_data_network_mapping.ts +++ b/packages/instant/src/data/asset_data_network_mapping.ts @@ -7,19 +7,9 @@ interface AssetDataByNetwork { [Network.Mainnet]?: string; } -const sameAssetDatas: AssetDataByNetwork[] = [ +export const assetDataNetworkMapping: AssetDataByNetwork[] = [ { [Network.Mainnet]: '0xf47261b0000000000000000000000000e41d2489571d322189246dafa5ebde1f4699f498', [Network.Kovan]: '0xf47261b00000000000000000000000002002d3812f58e35f0ea1ffbf80a75a38c32175fa', }, ]; - -export const assetDataNetworkMapping = { - getAssociatedAssetDataIfExists: (assetData: string, network: Network): string | undefined => { - const assetDataGroupIfExists = _.find(sameAssetDatas, value => value[network] === assetData); - if (_.isUndefined(assetDataGroupIfExists)) { - return; - } - return assetDataGroupIfExists[Network.Mainnet]; - }, -}; |