Skip to content

Commit 3518cea

Browse files
Jon Tzengsamholmes
authored andcommitted
Register n.exchange (nexchange) swap plugin
1 parent 7873cd6 commit 3518cea

3 files changed

Lines changed: 8 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
- changed: Distinguish network vs service errors in gift card scenes
2424
- changed: Lock network fee to high priority for gift card purchases
2525
- changed: Pad gift card purchase quantity by 0.00000002 to mitigate underpayments
26+
- added: Register n.exchange (nexchange) swap plugin
2627
- changed: Manage tokens scene saves changes on explicit save instead of live toggling
2728
- changed: Unify split wallet scene titles and add chain-specific descriptions for EVM and UTXO splits
2829
- changed: ramps: Infinite buy support enabled

src/envConfig.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -350,6 +350,12 @@ export const asEnvConfig = asObject({
350350
edgeApiKey: asOptional(asString, '')
351351
}).withRest
352352
),
353+
NEXCHANGE_INIT: asCorePluginInit(
354+
asObject({
355+
apiKey: asOptional(asString, ''),
356+
referralCode: asOptional(asString, '')
357+
}).withRest
358+
),
353359
NYM_INIT: asCorePluginInit(asBoolean),
354360
OPBNB_INIT: asCorePluginInit(asEvmApiKeys),
355361
OPTIMISM_INIT: asCorePluginInit(asEvmApiKeys),

src/util/corePlugins.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ export const swapPlugins = {
9797
godex: ENV.GODEX_INIT,
9898
lifi: ENV.LIFI_INIT,
9999
letsexchange: ENV.LETSEXCHANGE_INIT,
100+
nexchange: ENV.NEXCHANGE_INIT,
100101
sideshift: ENV.SIDESHIFT_INIT,
101102
swapuz: ENV.SWAPUZ_INIT,
102103

0 commit comments

Comments
 (0)