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

Mitigation Confirmed for Mitigation of M-14 Issue mitigated #39

Open
code423n4 opened this issue Feb 14, 2023 · 1 comment
Open

Mitigation Confirmed for Mitigation of M-14 Issue mitigated #39

code423n4 opened this issue Feb 14, 2023 · 1 comment
Labels
mitigation-confirmed MR-M-14 satisfactory satisfies C4 submission criteria; eligible for awards

Comments

@code423n4
Copy link
Contributor

C4 issue

M-14: any duration can be passed by node operator

Comments

Anyone can call createMinipool() with nodeID, duration, delegationFee parameters.
The original implementation did not have sanity checks for duration, delegationFee parameters and this could lead to various issues.

Mitigation

PR #38
Double checked the Avalanche documentation about the requirements for duration, delegationFee.
Imgur
The mitigation added new sanity checks as below.
Imgur

Tests

There were several unreasonable test cases in the original code base (e.g. 0 duration) and these are fixed now. All passing.

Note

There is another issue found in the mitigation for H-04 and it is slightly related to this one.

Conclusion

LGTM

@c4-judge
Copy link

GalloDaSballo marked the issue as satisfactory

@c4-judge c4-judge added the satisfactory satisfies C4 submission criteria; eligible for awards label Feb 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
mitigation-confirmed MR-M-14 satisfactory satisfies C4 submission criteria; eligible for awards
Projects
None yet
Development

No branches or pull requests

3 participants