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

Stable2 Well Function and Upgradeable Well Remediations. #143

Merged
merged 31 commits into from
Sep 6, 2024

Conversation

nickkatsios
Copy link
Collaborator

@nickkatsios nickkatsios commented Aug 21, 2024

This PR addresses all the high and medium severity findings for the Stable2 and Well upgradeable changes from the latest CodeArena audit.

Findings repo:

All findings Report

Sponsored Confirmed Issues:

Confirmed issues

Remediations:

High and Medium Severity


Issue

Fix


Issue

Fix


Issue

Fix

  • Addressed in: CalcReserve extreme values fix [#25] [#22] #137
  • Readjust the max step size in Stable2 when scaledReserve[j] is updated. This ensures that maxStep size can never be larger than the j reserve.
  • In the case where newton's method overestimates, set high/low price to the new price, which guarantees convergence.

Issue

Fix


Issue

Fix


Issue

Fix

Low and QA fixes


Issue

Fix


Issue

Fix


Issue

Fix


Issue

Fix

The remediations were sent to codeArena for re-audit, and remaining issues were fixed in #145.

Brean0 and others added 30 commits August 13, 2024 17:34
`notDelegatedOrIsMinimalProxy` modifier fix [#26]
Add check for new well tokens in `authorizeUpgrade` [#23]
Add explicit reverts in functions that use Newton's method after non-convergence [#19]
Add access control to `authorizeUpgrade` [#60] [#18]
@Brean0 Brean0 merged commit e8e47e9 into stableswapWF-2 Sep 6, 2024
2 checks passed
@Brean0 Brean0 deleted the s2-upgr-well-remediations branch September 6, 2024 09:38
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.

2 participants