Fix Tron swap UX in the TRX/USDT flow - #1126
Conversation
Read Tron balances from TronGrid's fullnode endpoints instead of the solidity node, and confirm Tron transactions with getUnconfirmedTransactionInfo, so balances and approvals no longer wait on solidification. Gate the same-chain completion shortcut on the step being atomic. Tron TRX/USDT, deposit-address routes and forced solver execution all report matching origin and destination chain ids while still requiring a solver fill, so keying on chain ids alone reported success before the fill landed and rendered the same-chain step sequence for them.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Claude finished @pedromcunha's task in 1m 31s —— View job 📝 Docs Drift Check — Confidence: LOW (below configured floor: medium) What changed: A Tron TRX/USDT swap-UX fix — balances now read from fullnode endpoints and transactions confirm via unconfirmed-receipt lookups, and the same-chain completion shortcut is gated so solver-filled same-chain routes (Tron, deposit-address, forced solver execution) wait for the fill. It also adds one new public SDK export, Why I didn't draft: The behavior changes are captured by the changeset (which auto-publishes to the unified changelog), and the one new public export is a low-level helper with no obvious documented home — the SDK reference documents actions, Pages likely affected:
Suggested next step: manually open an issue or PR in |
|
Claude finished @pedromcunha's task in 1m 50s —— View job Code Review — No issues found.Reviewed 10 files, 245 additions / 24 deletions. Checked correctness, security, error handling, and repo guidelines. What I verified
One note rather than a finding: |
Read Tron balances from TronGrid's fullnode endpoints instead of the solidity node, and confirm Tron transactions with getUnconfirmedTransactionInfo, so balances and approvals no longer wait on solidification.
Gate the same-chain completion shortcut on the step being atomic. Tron TRX/USDT, deposit-address routes and forced solver execution all report matching origin and destination chain ids while still requiring a solver fill, so keying on chain ids alone reported success before the fill landed and rendered the same-chain step sequence for them.