-
Notifications
You must be signed in to change notification settings - Fork 193
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
Feat: post zhejiang fixes #602
Feat: post zhejiang fixes #602
Conversation
…o-dao into feature/shapella-upgrade-tests-base-oracle
…om:lidofinance/lido-dao into feature/shapella-upgrade-tests-base-oracle
…-methods-update Update batching view methods for StakingRouter
…ounting-oracle-check Refactor: move sanity check out of while loop for optimizing gas usage
handle oracle report edge tests
…nor-comments Feature/post zhejiang fixes nor comments
contracts/0.4.24/Lido.sol
Outdated
function getStakingFeeAggregateDistributionE4Precision() external view returns (uint16 modulesFee, uint16 treasuryFee); | ||
} | ||
|
||
interface IWithdrawalQueue { | ||
function finalizationBatch(uint256 _lastRequestIdToFinalize, uint256 _shareRate) | ||
function finalizationBatch(uint256 _nextFinalizedRequestId, uint256 _shareRate) |
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.
_newLastFinalizedRequestId
contracts/0.4.24/Lido.sol
Outdated
|
||
// Step 9. Sanity check for the provided simulated share rate | ||
if (_reportedData.lastFinalizableRequestId != DONT_FINALIZE_WITHDRAWALS) { | ||
uint256 noWithdrawalsPostTotalShares = postTotalShares; |
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.
postTotalSharesIfNoWithdrawalsProcessed
- ?
@@ -363,8 +363,6 @@ contract StETH is IERC20, Pausable { | |||
function transferSharesFrom( | |||
address _sender, address _recipient, uint256 _sharesAmount | |||
) external returns (uint256) { | |||
_whenNotStopped(); |
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.
_transferShares
…o feature/tests-fix
Fix: share rate sanity check
replace selfdestruct with setBalance
Follow-up fixes for #482.
The protocol had been deployed on Zhejiang using commit
f4260d168029d580919b4625b6e03e0fa983c27a
.