defirisk.co
rubric v1.7.0

EIP-712 domain separator missing chainId

Compound V3 (Comet)'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 #

CometExt.sol constructs domain separator using block.chainid: keccak256(abi.encode(DOMAIN_TYPEHASH, keccak256(bytes(name())), keccak256(bytes(version)), block.chainid, address(this))) — chainId included, preventing cross-chain signature replay.

Sources #

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 compound-v3 factor RD-F-020 score green collected_at 2026-04-28 00:20:50