exch: Migrate Thorchain endpoints off NineRealms#453
Merged
Conversation
6 tasks
peachbits
approved these changes
Apr 17, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
CHANGELOG
Does this branch warrant an entry to the CHANGELOG?
Dependencies
none
Description
Asana task
Migrates Thorchain swap endpoints off
*.ninerealms.com— those hosts are being retired on 2026-04-20 (they already return 301). Without this change Thorchain swap quoting and the order-tracking link will break.Changes:
src/swap/defi/thorchain/thorchain.tsorderUri:track.ninerealms.com/{TXID}→track.thorchain.org/{TXID}(same path format, tx lookups return 200)THORNODE_SERVERS_DEFAULT[0]:thornode.ninerealms.com/thorchain→gateway.liquify.com/chain/thorchain_api/thorchain(Liquify's new primary endpoint)scripts/synchronizers/thorchain/thorchainSynchronizer.tsmidgard.ninerealms.com→gateway.liquify.com/chain/thorchain_midgardKept intact (intentional):
ninerealmsClientIdinit option +x-client-idheader — the new Liquify endpoints accept the header without issue; stripping it is a larger-surface config change for a separate PR.midgard.thorchain.infoas a fallback — not on ninerealms.Stagenet and
thorchainrunecurrency / Savers endpoints are handled in the sibling PRs inedge-currency-accountbasedandedge-react-gui.Asana parent: https://app.asana.com/1/9976422036640/project/1213843652804305/task/1214109247963126
Testing
Verified new endpoints with curl + existing
ninerealmsClientId:gateway.liquify.com/chain/thorchain_api/thorchain/network→ 200 OKgateway.liquify.com/chain/thorchain_midgard/v2/health→ 200 OKtrack.thorchain.org/<txid>→ 200 OK*.ninerealms.comnow return 301Reviewer should confirm swap quotes + order tracker link open correctly on a mainnet Thorchain swap.
Note
Medium Risk
Endpoint changes affect swap quoting, order-tracking links, and mapping sync; risk is mostly around availability/compatibility of the new upstream hosts and any subtle URL/path differences.
Overview
Migrates the Thorchain swap plugin and Thorchain mapping synchronizer off retiring
*.ninerealms.comhosts.Updates the default Thornode API base URL to Liquify’s gateway, switches the order-tracking
orderUritotrack.thorchain.org, and replaces the synchronizer’s primary Midgard fallback with Liquify’s Midgard gateway. Adds a corresponding Unreleased changelog entry.Reviewed by Cursor Bugbot for commit fdb254d. Bugbot is set up for automated code reviews on this repo. Configure here.