-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
feat(protocol): add lastSyncedBlockId
for L2 DAO vote aggregation
#16654
Conversation
feat(protocol): add
|
Severity Level | Results | |
---|---|---|
Contracts | Critical High Medium Low Note Total |
2 2 0 3 39 46 |
Dependencies | Critical High Medium Low Note Total |
0 0 0 0 0 0 |
For more details view the full report in OpenZeppelin Code Inspector
lastSyncedAt
timestamplastSyncedAt
timestamp for L2 DAO vote aggregation
I think this will check that some L2 block has synced after the deadline, but it could be a very old L2 block, especially if the block verification is behind (currently always at least 1 day behind I guess). But I think the intention is that all L2 blocks with timestamp < dao.voteDeadlineOnL1 are actually synced so all votes/vetos that happened on L2 before that timestamp are also taken into account? Maybe you could some extra 1 day or something on the DAO side to take this into account, but without checking the L2 block timestamp not sure if you could do it in an accurate way. |
lastSyncedAt
timestamp for L2 DAO vote aggregationlastSyncedAt
and lastSyncedBlocKId
for L2 DAO vote aggregation
Good feedback. I change to use
|
lastSyncedAt
and lastSyncedBlocKId
for L2 DAO vote aggregationlastSyncedBlockId
for L2 DAO vote aggregation
This small feature is added to support future DAO. The DAO will aggregate votes/vetos on L2 which will be bridged to L1. Suppose a DAO proposal has passed its voting period on L1. We need to wait for L2-to-L1 synchronization to happen for at least once before the proposal's state can be finalized. If for some reason L2 blocks is no longer verified, then all DAO proposals will have to wait.