Skip to content

Commit 1166816

Browse files
committed
Add n.exchange centralized swap integration
Integrate n.exchange as a centralized swap provider supporting multiple networks and tokens. The implementation uses contract addresses for token identification, eliminating the need for currency code mapping. This approach provides better support for tokens and aligns with API requirements. The integration includes support for native currencies and ERC20 tokens across major networks including Ethereum, Polygon, Base, Arbitrum, Optimism, BSC, and others. The plugin handles rate queries, order creation, and payment processing through the n.exchange API v2. Additional changes include mapctl tooling for automatic provider mappings and updates to existing swap plugins to use the new mapping system.
1 parent 3ce06e7 commit 1166816

File tree

6 files changed

+638
-0
lines changed

6 files changed

+638
-0
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
## Unreleased
44

5+
- added: n.exchange centralized swap integration with support for multiple networks and tokens using contract address-based identification
6+
57
## 2.40.3 (2025-12-29)
68

79
- fixed: Fix Rango EVM approval address

src/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import { makeChangeNowPlugin } from './swap/central/changenow'
77
import { makeExolixPlugin } from './swap/central/exolix'
88
import { makeGodexPlugin } from './swap/central/godex'
99
import { makeLetsExchangePlugin } from './swap/central/letsexchange'
10+
import { makeNexchangePlugin } from './swap/central/nexchange'
1011
import { makeSideshiftPlugin } from './swap/central/sideshift'
1112
import { makeSwapuzPlugin } from './swap/central/swapuz'
1213
import { make0xGaslessPlugin } from './swap/defi/0x/0xGasless'
@@ -35,6 +36,7 @@ const plugins = {
3536
godex: makeGodexPlugin,
3637
letsexchange: makeLetsExchangePlugin,
3738
lifi: makeLifiPlugin,
39+
nexchange: makeNexchangePlugin,
3840
rango: makeRangoPlugin,
3941
sideshift: makeSideshiftPlugin,
4042
spookySwap: makeSpookySwapPlugin,

0 commit comments

Comments
 (0)