Skip to content

Commit a35e2a1

Browse files
committed
Add Changelly
1 parent be164ce commit a35e2a1

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

scripts/configure.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,12 @@ const asConfig = asObject({
7878
evmScanApiKey: asOptional(asArray(asString), [])
7979
}).withRest
8080
),
81+
CHANGELLY_INIT: asCorePluginInit(
82+
asObject({
83+
apiKey: asOptional(asString, ''),
84+
secret: asOptional(asString, '')
85+
}).withRest
86+
),
8187
CHANGE_NOW_INIT: asCorePluginInit(
8288
asObject({
8389
apiKey: asOptional(asString, '')

src/components/modals/SwapVerifyTermsModal.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ interface TermsUri {
1919
}
2020

2121
const pluginData: { [pluginId: string]: TermsUri } = {
22+
changelly: {
23+
termsUri: 'https://changelly.com/terms-of-use',
24+
privacyUri: 'https://changelly.com/privacy-policy',
25+
kycUri: 'https://changelly.com/aml-kyc'
26+
},
2227
switchain: {
2328
termsUri: 'https://www.switchain.com/tos',
2429
privacyUri: 'https://www.switchain.com/policy',

src/util/corePlugins.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ export const currencyPlugins: EdgeCorePluginsInit = {
5656
export const swapPlugins = {
5757
// Centralized Swaps
5858
changehero: ENV.CHANGEHERO_INIT,
59+
changelly: ENV.CHANGELLY_INIT,
5960
changenow: ENV.CHANGE_NOW_INIT,
6061
exolix: ENV.EXOLIX_INIT,
6162
godex: ENV.GODEX_INIT,

0 commit comments

Comments
 (0)