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

Implement v2 for Lockstake #16

Merged
merged 36 commits into from
Oct 23, 2024
Merged

Implement v2 for Lockstake #16

merged 36 commits into from
Oct 23, 2024

Conversation

sunbreak1211
Copy link
Contributor

No description provided.

@DaiFoundation-DevOps
Copy link

DaiFoundation-DevOps commented Jan 15, 2024

CLA assistant check
All committers have signed the CLA.

test/VoteDelegate.t.sol Outdated Show resolved Hide resolved
src/VoteDelegateFactory.sol Outdated Show resolved Hide resolved
src/VoteDelegate.sol Outdated Show resolved Hide resolved
test/VoteDelegate.t.sol Outdated Show resolved Hide resolved
@sunbreak1211 sunbreak1211 marked this pull request as ready for review February 27, 2024 21:21
src/VoteDelegateFactory.sol Outdated Show resolved Hide resolved
test/VoteDelegate.t.sol Outdated Show resolved Hide resolved
test/VoteDelegate.t.sol Outdated Show resolved Hide resolved
Copy link
Contributor

@telome telome left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@oldchili oldchili left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@oldchili oldchili left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

oldchili and others added 5 commits April 12, 2024 09:40
* Reserve free window (aka hatch), then enforce cooldown

* Change hatch/cool-dwon to 5/5

* Do not prank when calling proxy.reserveHatch() in test

* Add ReserveHatch event

* Change HATCH_COOLDOWN to 20

---------

Co-authored-by: sunbreak1211 <[email protected]>
* Use >= in reserveHatch

* Remove hashing in salt calculation

* Remove unneeded warps
Copy link
Contributor

@oldchili oldchili left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

oldchili and others added 7 commits July 3, 2024 16:35
* Use regular create in VoteDelegateFactory

* Use vm.coputeCreateAddress instead of snapshot

Co-authored-by: sunbreak1211 <[email protected]>

---------

Co-authored-by: sunbreak1211 <[email protected]>
* Add Certora specs + configure CI for tests and Certora

* Fix spacing

* Workaround for fixing voteYays_revert

* Minor change + comment

* Use no optimization for mocks and aux
@sunbreak1211
Copy link
Contributor Author

@telome @oldchili please give final approval and I'll get this merged. It will be used regular merging type to preserve audited commits.

@sunbreak1211 sunbreak1211 merged commit 25b63b0 into master Oct 23, 2024
7 checks passed
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

Successfully merging this pull request may close these issues.

4 participants