defirisk.co
rubric v1.7.0

EIP-712 domain separator missing chainId

GMX v2 (GMX Synthetics)'s assessment for RD-F-020 — scored green on the v1.7.0 rubric. The evidence below is the curator's reasoning for this score.

Evidence summary #

RelayUtils.sol's getDomainSeparator() function explicitly includes sourceChainId in the domain separator hash, following EIP-712 correctly. This prevents cross-chain replay attacks on gasless relay signatures. Cross-chain replay protection is properly implemented.

Sources #

  • GitHub
    GMX RelayUtils.solRelayUtils.sol - getDomainSeparator() includes sourceChainId in EIP-712 domain separatorretrieved 2026-05-05

Methodology #

Determine whether the EIP-712 domain separator struct omits the `chainId` field, allowing cross-chain replay.

See the full factor methodology and distribution across all protocols →

rubric_version v1.7.0 protocol gmx-v2 factor RD-F-020 score green collected_at 2026-05-05 11:15:06