Skip to content

Commit

Permalink
Remove liquality atomic swaps
Browse files Browse the repository at this point in the history
  • Loading branch information
mpwanyi256 committed Nov 7, 2022
1 parent 35718f9 commit 94ce2c8
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions src/views/Swap/SwapProvidersInfoModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@
<ul>
<li v-for="provider in uniqueProvides" :key="provider.id" class="py-1 px-2">
<span class="d-flex align-items-center"
><img :src="getProviderIcon(provider.id)" class="mr-2" /> {{ provider.name }}</span
><img :src="getProviderIcon(provider.id)" class="mr-2" />{{
provider.name
}}</span
>
</li>
</ul>
Expand Down Expand Up @@ -73,16 +75,20 @@ export default {
},
computed: {
...mapState(['activeNetwork']),
unsupportedProviders() {
// TODO:: We will need to remove this computed prop after these providers are removed from wallet-core
return new Array('liquality', 'liqualityBoostNativeToERC20', 'liqualityBoostERC20toNative')
},
providers() {
return Object.entries(buildConfig.swapProviders[this.activeNetwork]).map(
([provider, providerConfig]) => {
return Object.entries(buildConfig.swapProviders[this.activeNetwork])
.map(([provider, providerConfig]) => {
return {
id: provider,
name: providerConfig.name,
...getSwapProviderInfo(this.activeNetwork, provider)
}
}
)
})
.filter((provider) => !this.unsupportedProviders.includes(provider.id))
},
uniqueProvides() {
return [...new Map(this.providers.map((item) => [item['name'], item])).values()]
Expand Down

0 comments on commit 94ce2c8

Please sign in to comment.