-
Notifications
You must be signed in to change notification settings - Fork 121
Refactor/message update #1648
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
base: main
Are you sure you want to change the base?
Refactor/message update #1648
Conversation
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
| await mockDashboard.setWithdrawableValueReturn(stakingVaultBalance); | ||
| await yieldManager.connect(nonAuthorizedAccount).replenishWithdrawalReserve(yieldProviderAddress); | ||
|
|
||
| expect(await getBalance(mockStakingVault)).eq(stakingVaultBalance - stakingVaultBalance); |
Check warning
Code scanning / CodeQL
Identical operands Warning test
stakingVaultBalance
stakingVaultBalance
Show autofix suggestion
Hide autofix suggestion
Copilot Autofix
AI 17 days ago
To fix the problem, replace stakingVaultBalance - stakingVaultBalance with 0 in the assertion at line 931. This is a simple substitution, as the subtraction of a value from itself always yields zero and does not change the intent or functionality of the test. No other code, imports, or logic needs to change.
-
Copy modified line R931
| @@ -928,7 +928,7 @@ | ||
| await mockDashboard.setWithdrawableValueReturn(stakingVaultBalance); | ||
| await yieldManager.connect(nonAuthorizedAccount).replenishWithdrawalReserve(yieldProviderAddress); | ||
|
|
||
| expect(await getBalance(mockStakingVault)).eq(stakingVaultBalance - stakingVaultBalance); | ||
| expect(await getBalance(mockStakingVault)).eq(0); | ||
| expect(await getBalance(lineaRollup)).eq(l1MessageServiceBalance + stakingVaultBalance); | ||
|
|
||
| // Kick off ossification |
* natspec tweaks * minor tweaks * more tweaks --------- Signed-off-by: kyzooghost <[email protected]> Co-authored-by: kyzooghost <[email protected]>
This PR implements issue(s) #
Checklist
Note
Introduces a full native-yield system (YieldManager + Lido StVault provider/factory) integrated with LineaRollup, including permissioned/permissionless unstaking, LST withdrawals, ossification flow, and on-chain EIP-4788 validator proof verification, with extensive tests and role/pause updates.
YieldManager(+ storage/layout/base) with funding, yield reporting, (permissioned/permissionless) unstake, LST withdrawals, reserve management, and ossification controls.LidoStVaultYieldProviderandLidoStVaultYieldProviderFactory, plus Lido vendor interfaces (IDashboard,IStakingVault,IVaultHub, etc.).ValidatorContainerProofVerifierand supporting libs (SSZ,BLS,GIndex) for EIP-4788 active validator proofing.LineaRollup(v7 reinit) to setyieldManager, transfer funds, emit synthetic yield messages, and supportclaimMessageWithProofAndWithdrawLST.PlonkVerifierSepoliaFull; dependency updates (e.g.,@chainsafe/blst).Written by Cursor Bugbot for commit 3ed10b7. This will update automatically on new commits. Configure here.