GPT-5 finding
Ignores chainId returned by Symbiosis tx; submits using src_chain which may mismatch
- symbiosis/scripts/symbiosis-swap.py:129-133
- symbiosis/scripts/symbiosis-swap.py:164-169
The Symbiosis response includes tx.chainId. The script discards it and submits with the user-provided src_chain. If the API ever returns a canonical or remapped chainId differing from src_chain, submission could fail or hit the wrong network.
Recommendation
Use the chainId returned in result["tx"]["chainId"] when present, e.g., chainId = tx.get("chainId", src_chain).