From 9d5750fa410baa2c49d5251829e22f415994bfee Mon Sep 17 00:00:00 2001 From: Apotheosis <0xapotheosis@gmail.com> Date: Tue, 24 Feb 2026 09:57:08 +1100 Subject: [PATCH] fix: disable Tron swaps on RelaySwapper Tron deposits via Relay are broken due to two bugs: 1. Transactions are built as simple TRC20 transfers instead of depositErc20() vault contract calls, so Relay cannot correlate deposits with swap intents on-chain. 2. The Relay indexer notification (POST /transactions/single) is gated behind isEvmChainId(), so non-EVM chains never notify Relay about completed deposits. This combination causes Tron deposits to be completely untracked by Relay, resulting in stuck/lost user funds in the vault contract. Disabling Tron in the chainIdToRelayChainId mapping prevents any Tron quotes from being served until the underlying bugs are fixed. Co-Authored-By: Claude Opus 4.6 --- packages/swapper/src/swappers/RelaySwapper/constant.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/packages/swapper/src/swappers/RelaySwapper/constant.ts b/packages/swapper/src/swappers/RelaySwapper/constant.ts index 5410eeef1a3..3439b2676a0 100644 --- a/packages/swapper/src/swappers/RelaySwapper/constant.ts +++ b/packages/swapper/src/swappers/RelaySwapper/constant.ts @@ -30,7 +30,6 @@ import { soneiumChainId, sonicChainId, storyChainId, - tronChainId, unichainChainId, worldChainChainId, zkSyncEraChainId, @@ -87,7 +86,11 @@ export const chainIdToRelayChainId = { [gnosisChainId]: gnosis.id, [avalancheChainId]: avalanche.id, [bscChainId]: bsc.id, - [tronChainId]: 728126428, + // DISABLED: Tron deposits are built as simple TRC20 transfers instead of depositErc20() vault calls, + // and the Relay indexer notification is never sent for non-EVM chains. This causes deposits to be + // untracked by Relay, resulting in stuck/lost funds. Re-enable once the Tron transaction building + // is verified to use the Relay quote calldata (depositErc20) correctly. + // [tronChainId]: 728126428, [monadChainId]: monad.id, [hyperEvmChainId]: hyperEvm.id, [mantleChainId]: mantle.id,