Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add timestamp to the wire format and enforce timestamp check #394

Open
nik-suri opened this issue Apr 9, 2024 · 0 comments
Open

Add timestamp to the wire format and enforce timestamp check #394

nik-suri opened this issue Apr 9, 2024 · 0 comments

Comments

@nik-suri
Copy link
Collaborator

nik-suri commented Apr 9, 2024

Most EVM governance tokens calculate voting weight based on timestamp snapshots. Therefore, someone could leverage timestamp drift between a source and destination chain to double vote.

This change would add the source chain timestamp to the wire format, and enforce the following rule on the destination chain:

assert(dest_chain_timestamp > source_chain_timestamp)

It would therefore only be possible to complete transfers when the destination chain timestamp is greater than the source chain timestamp.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant