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

Merge-ready protocol service pack πŸ“¦ #401

Merged
merged 182 commits into from
May 19, 2022
Merged

Merge-ready protocol service pack πŸ“¦ #401

merged 182 commits into from
May 19, 2022

Conversation

TheDZhon and others added 30 commits December 19, 2021 00:44
The new event logs account addr, amount and shares amount.
Sometimes we should user shares transfers instead of token transfers to
avoid rounding issues.

Introduce function and new `TransferShares` event.

Note: also emits conventional `Transfer` event for the compatibility with
existing indexing off-chain solutions subscribed to transfers.
Add tests on transfer itself and on the logging `Transfer` and
`TransferShares` events.
to make less difficult to track used keys
`transfer` and `transferShares` methods should emit same events sequence:
- Transfer
- TransferShares.
Interface file should contain all events definitions.
It is a controversary decision.
Friday devteam sync planned for the resolution.
Fix COMMENTS from MixBytes audit of DepositSecurityModule
contracts/0.4.24/Lido.sol Outdated Show resolved Hide resolved
contracts/0.4.24/Lido.sol Outdated Show resolved Hide resolved
contracts/0.4.24/Lido.sol Show resolved Hide resolved
@TheDZhon TheDZhon changed the title Merge-ready protocol service pack Merge-ready protocol service pack πŸ“¦ May 18, 2022
@TheDZhon
Copy link
Contributor

TheDZhon commented May 18, 2022

Folks, thank you all for the reviews and fixes! I really appreciate your help and suggestions!
πŸ‘

contracts/0.4.24/Lido.sol Outdated Show resolved Hide resolved
@TheDZhon
Copy link
Contributor

Here we are, just have merged all the changes from the previous review round 🏁

contracts/0.4.24/Lido.sol Show resolved Hide resolved
contracts/0.4.24/Lido.sol Outdated Show resolved Hide resolved
contracts/0.4.24/Lido.sol Outdated Show resolved Hide resolved
* @notice Allows the contract to receive ETH
* @dev execution layer rewards may be sent as plain ETH transfers
*/
receive() external payable {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NB: gas cost of receive with the event is 22111 (see tx on goerli). The cost w/o event was 21055

deployed-goerli.json Outdated Show resolved Hide resolved
Rename STAKE_LIMIT_POSITION to STAKING_STATE_POSITION.
Remove extra comma.
Better comments for the `distributeFee` func.
Feat: Add changes for the 3rd review round
@TheDZhon
Copy link
Contributor

Let's move on πŸš€

@TheDZhon TheDZhon merged commit 08436ce into develop May 19, 2022
@TheDZhon TheDZhon deleted the audit/mev-lips branch May 19, 2022 05:34
RayLvv pushed a commit to okx-dao/lido-dao that referenced this pull request Dec 12, 2022
Merge-ready protocol service pack πŸ“¦
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.

10 participants