From 76d885a5af57bcc8d9c9174c06b4809585392fb3 Mon Sep 17 00:00:00 2001 From: peachbits Date: Thu, 2 Jan 2025 13:50:39 -0800 Subject: [PATCH] Add Unizen DEX --- CHANGELOG.md | 1 + src/actions/CategoriesActions.ts | 1 + src/components/services/ContactsLoader.ts | 12 ++++++++++++ src/envConfig.ts | 5 +++++ src/util/corePlugins.ts | 1 + 5 files changed, 20 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8a6a3969be8..4bd5f1a44f6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ ## Unreleased (develop) +- added: Add Unizen DEX - changed: Show KYC warning modal when trading with Swapuz - fixed: Using deprecated wallets to handle links - fixed: Thorchain stake minimum amount requirements diff --git a/src/actions/CategoriesActions.ts b/src/actions/CategoriesActions.ts index 5a758392d66..c6dec9f06f3 100644 --- a/src/actions/CategoriesActions.ts +++ b/src/actions/CategoriesActions.ts @@ -562,6 +562,7 @@ export const pluginIdIcons: Record = { simplex: EDGE_CONTENT_SERVER_URI + '/simplex.png', swapuz: EDGE_CONTENT_SERVER_URI + '/swapuz.png', thorchain: EDGE_CONTENT_SERVER_URI + '/thorchain.png', + unizen: EDGE_CONTENT_SERVER_URI + '/unizen.png', swapkit: EDGE_CONTENT_SERVER_URI + '/swapkit.png', tronResources: EDGE_CONTENT_SERVER_URI + '/TRON/TRON.png', velodrome: EDGE_CONTENT_SERVER_URI + '/velodrome.png', diff --git a/src/components/services/ContactsLoader.ts b/src/components/services/ContactsLoader.ts index 79f2271ea8b..08ae545f953 100644 --- a/src/components/services/ContactsLoader.ts +++ b/src/components/services/ContactsLoader.ts @@ -281,6 +281,18 @@ const merchantPartners = [ familyName: '', recordID: '' }, + { + givenName: 'Unizen', + hasThumbnail: true, + thumbnailPath: 'unizen.png', + emailAddresses: [], + postalAddresses: [], + middleName: '', + company: '', + jobTitle: '', + familyName: '', + recordID: '' + }, { givenName: 'Velodrome', hasThumbnail: true, diff --git a/src/envConfig.ts b/src/envConfig.ts index 02845b6e6d7..a448b6f5d96 100644 --- a/src/envConfig.ts +++ b/src/envConfig.ts @@ -289,6 +289,11 @@ export const asEnvConfig = asObject({ apiKey: asOptional(asString, '') }).withRest ), + UNIZEN_INIT: asCorePluginInit( + asObject({ + apiKey: asOptional(asString, '') + }).withRest + ), MAYA_PROTOCOL_INIT: asCorePluginInit( asObject({ affiliateFeeBasis: asOptional(asString, '50'), diff --git a/src/util/corePlugins.ts b/src/util/corePlugins.ts index 55d273f4a69..69a341afe0d 100644 --- a/src/util/corePlugins.ts +++ b/src/util/corePlugins.ts @@ -93,6 +93,7 @@ export const swapPlugins = { thorchain: ENV.THORCHAIN_INIT, swapkit: ENV.SWAPKIT_INIT, tombSwap: ENV.TOMB_SWAP_INIT, + unizen: ENV.UNIZEN_INIT, velodrome: true, xrpdex: ENV.XRPDEX_INIT, '0xgasless': ENV['0XGASLESS_INIT'],