+
+ Provider:
+
+ {{ providersDetails[props.pickedTrade.provider].name }}
+
Rate: 1 {{ fromToken.symbol.toUpperCase() }} ≈
{{ $filters.formatFloatingPointValue(ratio).value }}
@@ -89,6 +101,7 @@ import {
SwapToken,
} from '@enkryptcom/swap';
import { imageLoadError } from '@/ui/action/utils/misc';
+import providersDetails from '@/libs/utils/providersDetails';
interface SwapBestOfferProps {
trades: ProviderSwapResponse[];
@@ -178,6 +191,11 @@ const toggleOffers = () => {
letter-spacing: 0.15px;
color: @primaryLabel;
margin: 0 0 8px 0;
+
+ img {
+ margin-left: 2px;
+ width: 20px;
+ }
}
&__for {
diff --git a/packages/extension/src/ui/blocked/App.vue b/packages/extension/src/ui/blocked/App.vue
new file mode 100644
index 000000000..11b6b30c1
--- /dev/null
+++ b/packages/extension/src/ui/blocked/App.vue
@@ -0,0 +1,122 @@
+
+
+
+
+
+
+
diff --git a/packages/extension/src/ui/blocked/blocked.vue b/packages/extension/src/ui/blocked/blocked.vue
new file mode 100644
index 000000000..f3bb9ad92
--- /dev/null
+++ b/packages/extension/src/ui/blocked/blocked.vue
@@ -0,0 +1,135 @@
+
+
+
+
Access restricted
+
+ Unfortunately we are unable to service your geographic region. Your funds
+ are safe, and you can access them in another wallet by using your recovery
+ phrase.
+
+
We apologize for the inconvenience.
+
More info
+
+
+
+
+ Use this phrase to restore access to your funds in another wallet. Don't
+ show this to anyone
+
+
+
+
+
+
+
+
+
diff --git a/packages/extension/src/ui/blocked/index.html b/packages/extension/src/ui/blocked/index.html
new file mode 100644
index 000000000..733be2e4b
--- /dev/null
+++ b/packages/extension/src/ui/blocked/index.html
@@ -0,0 +1,20 @@
+
+
+
+
+
+
+
+
Enkrypt Extension - Everything in the blockchain made easy
+
+
+
+
+
+
+
diff --git a/packages/extension/src/ui/blocked/main.ts b/packages/extension/src/ui/blocked/main.ts
new file mode 100644
index 000000000..81ceb24fc
--- /dev/null
+++ b/packages/extension/src/ui/blocked/main.ts
@@ -0,0 +1,27 @@
+import { createApp } from 'vue';
+import { createPinia } from 'pinia';
+import App from './App.vue';
+import { createRouter, createWebHashHistory } from 'vue-router';
+import routes from './routes';
+import * as filters from '@action/utils/filters';
+
+global.WeakMap = WeakMap;
+
+if (import.meta.env.DEV) {
+ globalThis.__ENKRYPT_DEBUG_LOG_CONF__ = import.meta.env.VITE_DEBUG_LOG;
+}
+
+const router = createRouter({
+ history: createWebHashHistory(),
+ routes,
+});
+
+const app = createApp(App);
+const pinia = createPinia();
+
+app.use(router);
+app.use(pinia);
+
+app.config.globalProperties.$filters = filters;
+
+app.mount('#app');
diff --git a/packages/extension/src/ui/blocked/routes.ts b/packages/extension/src/ui/blocked/routes.ts
new file mode 100644
index 000000000..d45ced1b7
--- /dev/null
+++ b/packages/extension/src/ui/blocked/routes.ts
@@ -0,0 +1,4 @@
+import Blocked from './blocked.vue';
+
+const routes = [{ path: '/', component: Blocked, name: 'blocked' }];
+export default routes;
diff --git a/packages/extension/vite.config.ts b/packages/extension/vite.config.ts
index 7521ab0b6..60a5643d8 100644
--- a/packages/extension/vite.config.ts
+++ b/packages/extension/vite.config.ts
@@ -105,6 +105,7 @@ export default defineConfig({
input: {
action: 'action.html',
onboard: 'onboard.html',
+ blocked: 'blocked.html',
index: 'index.html',
},
output: {
diff --git a/packages/swap/src/types/index.ts b/packages/swap/src/types/index.ts
index 799d2f714..72a643e8f 100644
--- a/packages/swap/src/types/index.ts
+++ b/packages/swap/src/types/index.ts
@@ -132,6 +132,18 @@ export enum ProviderName {
okx = "okx",
}
+// eslint-disable-next-line no-shadow
+export enum ProviderNameProper {
+ oneInch = "1inch",
+ oneInchFusion = "1inch Fusion",
+ paraswap = "ParaSwap",
+ zerox = "0x",
+ changelly = "Changelly",
+ rango = "Rango",
+ jupiter = "Jupiter",
+ okx = "Okx",
+}
+
// eslint-disable-next-line no-shadow
export enum TransactionStatus {
pending = "pending",