-
Notifications
You must be signed in to change notification settings - Fork 70
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
OETH withdrawal queue #2062
base: sparrowDom/nativeStaking
Are you sure you want to change the base?
OETH withdrawal queue #2062
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## sparrowDom/nativeStaking #2062 +/- ##
============================================================
+ Coverage 62.99% 64.68% +1.68%
============================================================
Files 65 66 +1
Lines 3243 3358 +115
Branches 839 651 -188
============================================================
+ Hits 2043 2172 +129
+ Misses 1197 1183 -14
Partials 3 3 ☔ View full report in Codecov by Sentry. |
// For future use | ||
uint256[50] private __gap; | ||
uint256[46] private __gap; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see three slots added? dripper
, withdrawalQueueMetadata
, and withdrawalRequests
. Shouldn't the gap change by 3, not four?
This particular gap is one that keeps me up at night. We should make sure our fork tests will catch an incorrect number here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's three storage variables added but withdrawalQueueMetadata
is a struct that takes up 2 slots hence the gap was reduced by 4 slots.
e87bc07
to
e5ebf29
Compare
claimWithdrawal collects from Dripper and adds any unallocated WETH to the withdrawal queue if not enough liquidity available
depositToStrategy only deposits WETH not allocated to the withdrawal queue swapCollateral restricted to only swap to WETH swapCollateral adds to withdrawal queue after swap
…-scanner Moved duplicate getClusterInfo in tasks to utils
WIP withdrawal queue unit tests
Added more withdrawal queue coverage
Contract Changes
requestWithdrawal
,claimWithdrawal
andaddWithdrawalQueueLiquidity
.Dependencies
Security
If you made a contract change, make sure to complete the checklist below before merging it in master.
Refer to our documentation for more details about contract security best practices.
Contract change checklist: