Skip to content

Add n.exchange centralized swap integration#437

Open
Jon-edge wants to merge 2 commits intomasterfrom
feature/nexchange-centralized-swap
Open

Add n.exchange centralized swap integration#437
Jon-edge wants to merge 2 commits intomasterfrom
feature/nexchange-centralized-swap

Conversation

@Jon-edge
Copy link
Contributor

Summary

  • Add n.exchange (nexchange) as a centralized swap plugin with fixed-rate quoting via API v2
  • Includes chain mapping file at src/mappings/nexchange.ts with support for 30+ networks
  • Export MAINNET_CODE_TRANSCRIPTION for partnerJson test compatibility

Based on #426 by @MMrj9 (onitsoft). Rebased onto current master with build fix applied.

Test plan

  • yarn prepare passes (tsc + tests)
  • Manual swap test with supported pairs (BTC/ETH, etc.)
  • Verify rate expiration and min/max limit handling

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.

Changes:
- Add n.exchange swap plugin (src/swap/central/nexchange.ts)
- Add n.exchange mapping file (src/mappings/nexchange.ts)
- Register nexchange plugin in src/index.ts
- Add partner mapping JSON and tests
- Update CHANGELOG.md
@Jon-edge Jon-edge force-pushed the feature/nexchange-centralized-swap branch from 3f99500 to 37877ce Compare February 13, 2026 21:02
@Jon-edge Jon-edge force-pushed the feature/nexchange-centralized-swap branch from 37877ce to eec544d Compare February 13, 2026 21:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments