Skip to content

Commit 7ec4c0f

Browse files
committed
Add SimpleSwap support [skip travis]
Registers the SimpleSwap swap plugin from edge-exchange-plugins: the SIMPLESWAP_INIT env config, the core plugin entry, the provider icon and merchant contact, and the terms/privacy/AML links the swap terms modal shows before the first quote.
1 parent 7f3c4f8 commit 7ec4c0f

6 files changed

Lines changed: 17 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
## Unreleased (develop)
44

55
- added: "-m" tag on the version number in the Help scene for Maestro test builds
6+
- added: SimpleSwap as a swap provider
67
- changed: Style the entire "Already have an account? Sign in" line in the getting-started USP carousel with the tertiary link color, not just "Sign in".
78
- changed: Refresh the buy, sell, sort, scan-QR and FIO names icons to the updated design.
89
- changed: Use a custom chart icon for the side menu Markets row, so it matches the rest of the menu.

src/actions/CategoriesActions.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -725,6 +725,7 @@ export const pluginIdIcons: Record<string, string> = {
725725
rango: EDGE_CONTENT_SERVER_URI + '/rango.png',
726726
sideshift: EDGE_CONTENT_SERVER_URI + '/sideshift-logo.png',
727727
simplex: EDGE_CONTENT_SERVER_URI + '/simplex.png',
728+
simpleswap: EDGE_CONTENT_SERVER_URI + '/exchangeIcons/simpleswap/icon.png',
728729
swapuz: EDGE_CONTENT_SERVER_URI + '/swapuz.png',
729730
thorchain: EDGE_CONTENT_SERVER_URI + '/thorchain.png',
730731
unizen: EDGE_CONTENT_SERVER_URI + '/unizen.png',

src/components/modals/SwapVerifyTermsModal.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,11 @@ const pluginData: Record<string, TermsUri> = {
4949
kycUri:
5050
'https://help.sideshift.ai/en/articles/6230858-sideshift-ai-s-risk-management-policy'
5151
},
52+
simpleswap: {
53+
termsUri: 'https://simpleswap.io/terms-of-service',
54+
privacyUri: 'https://simpleswap.io/privacy-policy',
55+
kycUri: 'https://simpleswap.io/aml-kyc'
56+
},
5257
swapuz: {
5358
termsUri: 'https://swapuz.com/terms-of-use',
5459
privacyUri: 'https://swapuz.com/privacy-policy',

src/constants/MerchantContacts.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,10 @@ export const MERCHANT_CONTACTS: MerchantContact[] = [
7878
displayName: 'Simplex',
7979
thumbnailPath: `${EDGE_CONTENT_SERVER_URI}/simplex.png`
8080
},
81+
{
82+
displayName: 'SimpleSwap',
83+
thumbnailPath: `${EDGE_CONTENT_SERVER_URI}/exchangeIcons/simpleswap/icon.png`
84+
},
8185
{
8286
displayName: 'Swapuz',
8387
thumbnailPath: `${EDGE_CONTENT_SERVER_URI}/swapuz.png`

src/envConfig.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -412,6 +412,11 @@ export const asEnvConfig = asObject({
412412
affiliateId: asOptional(asString, '')
413413
})
414414
),
415+
SIMPLESWAP_INIT: asCorePluginInit(
416+
asObject({
417+
apiKey: asOptional(asString, '')
418+
}).withRest
419+
),
415420
SOLANA_INIT: asCorePluginInit(
416421
asObject({
417422
alchemyApiKey: asOptional(asString, ''),

src/util/corePlugins.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ export const swapPlugins = {
9999
letsexchange: ENV.LETSEXCHANGE_INIT,
100100
nexchange: ENV.NEXCHANGE_INIT,
101101
sideshift: ENV.SIDESHIFT_INIT,
102+
simpleswap: ENV.SIMPLESWAP_INIT,
102103
swapuz: ENV.SWAPUZ_INIT,
103104
xgram: ENV.XGRAM_INIT,
104105
nymswap: ENV.NYM_SWAP_INIT,

0 commit comments

Comments
 (0)