Assessment reports>Nukem Loans>Threat Model>_domainSeparatorV4

Function: _domainSeparatorV4()

This should build the domain separator for the current chain.

Branches and code coverage (including function calls)

Intended branches

  • Return the cached domain separator if the block.chainId is the same as the cached chain ID and the cached address. This is the same as the current address. Otherwise, build the domain separator. This is currently not performed and allows for replaying the signatures in case of a fork.

Zellic © 2023Back to top ↑