diff --git a/scripts/configure.ts b/scripts/configure.ts index fdb81537df4..bbf45d7ae4d 100644 --- a/scripts/configure.ts +++ b/scripts/configure.ts @@ -78,6 +78,12 @@ const asConfig = asObject({ evmScanApiKey: asOptional(asArray(asString), []) }).withRest ), + CHANGELLY_INIT: asCorePluginInit( + asObject({ + apiKey: asOptional(asString, ''), + secret: asOptional(asString, '') + }).withRest + ), CHANGE_NOW_INIT: asCorePluginInit( asObject({ apiKey: asOptional(asString, '') diff --git a/src/components/modals/SwapVerifyTermsModal.tsx b/src/components/modals/SwapVerifyTermsModal.tsx index aab4b207444..b05df800bd9 100644 --- a/src/components/modals/SwapVerifyTermsModal.tsx +++ b/src/components/modals/SwapVerifyTermsModal.tsx @@ -19,6 +19,11 @@ interface TermsUri { } const pluginData: { [pluginId: string]: TermsUri } = { + changelly: { + termsUri: 'https://changelly.com/terms-of-use', + privacyUri: 'https://changelly.com/privacy-policy', + kycUri: 'https://changelly.com/aml-kyc' + }, switchain: { termsUri: 'https://www.switchain.com/tos', privacyUri: 'https://www.switchain.com/policy', diff --git a/src/util/corePlugins.ts b/src/util/corePlugins.ts index 5fe7c883cd2..76973359dd9 100644 --- a/src/util/corePlugins.ts +++ b/src/util/corePlugins.ts @@ -56,6 +56,7 @@ export const currencyPlugins: EdgeCorePluginsInit = { export const swapPlugins = { // Centralized Swaps changehero: ENV.CHANGEHERO_INIT, + changelly: ENV.CHANGELLY_INIT, changenow: ENV.CHANGE_NOW_INIT, exolix: ENV.EXOLIX_INIT, godex: ENV.GODEX_INIT,