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

Soloseng/L2-lockedGold #10986

Closed
wants to merge 7 commits into from
Closed

Soloseng/L2-lockedGold #10986

wants to merge 7 commits into from

Conversation

soloseng
Copy link
Contributor

@soloseng soloseng commented Apr 30, 2024

Description

Updated LockedGold to reflect proposed L2 changes

Tested

unit tested

Related issues

Backwards compatibility

This PR deprecates the following functions post L2 migration, and will revert when called:

  • lock()
  • relock(uint256 index, uint256 value)
  • slash(...)
  • setUnlockingPeriod(uint256 value)
  • setMaxDelegateesCount(uint256 value)

@soloseng soloseng self-assigned this Apr 30, 2024
@soloseng soloseng marked this pull request as ready for review May 2, 2024 20:13
@soloseng soloseng requested a review from a team as a code owner May 2, 2024 20:13
Copy link

openzeppelin-code bot commented May 2, 2024

Soloseng/L2-lockedGold

Generated at commit: 0cc0d82c1ea21f17f00e9fa4eb727bf0bf70bb1d

🚨 Report Summary

Severity Level Results
Contracts Critical
High
Medium
Low
Note
Total
2
3
0
15
40
60
Dependencies Critical
High
Medium
Low
Note
Total
0
0
0
0
0
0

For more details view the full report in OpenZeppelin Code Inspector

@@ -131,7 +133,7 @@ contract LockedGold is
/**
* @notice Locks gold to be used for voting.
*/
function lock() external payable nonReentrant {
function lock() external payable nonReentrant onlyL1 {
Copy link
Contributor

Choose a reason for hiding this comment

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

we need to keep this function in L2 otherwise governance voting will not work

@pahor167
Copy link
Contributor

I believe this PR is not necessary since we want to keep these functions even in L2

@soloseng
Copy link
Contributor Author

This should have been closed when the issue was closed. Closing now.

@soloseng soloseng closed this May 23, 2024
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.

None yet

2 participants