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

Fix stCelo compatibility #11237

Open
wants to merge 10 commits into
base: release/core-contracts/12
Choose a base branch
from

Conversation

martinvol
Copy link
Contributor

@martinvol martinvol requested a review from a team as a code owner October 7, 2024 10:19
Copy link

openzeppelin-code bot commented Oct 7, 2024

Fix stCelo compatibility

Generated at commit: a62806c261c79825ba51bcfe9e8a2ba81c122a6e

🚨 Report Summary

Severity Level Results
Contracts Critical
High
Medium
Low
Note
Total
3
2
0
14
43
62
Dependencies Critical
High
Medium
Low
Note
Total
0
0
0
0
0
0

For more details view the full report in OpenZeppelin Code Inspector

@soloseng
Copy link
Contributor

soloseng commented Oct 7, 2024

For stCelo this approach works, but it does not really bring backwards compatibility to all other contracts in the CELO ecosystem.

Any contracts that are making use of UsingPrecompiles that were previously deployed by members of the CELO community will break. This also potentially includes Mento

slashingMultiplierResetPeriod = value;
emit SlashingMultiplierResetPeriodSet(value);
Copy link
Contributor

Choose a reason for hiding this comment

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

Slashing multiplier is no longer used by any L2 contracts. is there a reason for keeping them active?

@@ -611,7 +613,6 @@ contract Validators is
* @param validatorAccount The validator to deaffiliate from their affiliated validator group.
*/
function forceDeaffiliateIfValidator(address validatorAccount) external nonReentrant onlySlasher {
allowOnlyL1();
Copy link
Contributor Author

Choose a reason for hiding this comment

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

TODO probably needs to stay removed #11225

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.

3 participants