Skip to content
This repository was archived by the owner on Dec 10, 2025. It is now read-only.

Adaptive domain separator #20

@LHerskind

Description

@LHerskind

The staked token implementation writes DOMAIN_SEPARATOR to storage in initialize. It will therefore not be able to handle a hard fork post-deployment, as the chainID is not updated and a valid signature for one chain could be replayed on the other.

The issue can be handled by using a dynamic domain separator which is generated on demand instead of reading from storage.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions