lido
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Owners
        • Signed-in users
        • Everyone
        Owners Signed-in users Everyone
      • Write
        • Owners
        • Signed-in users
        • Everyone
        Owners Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights
    • Engagement control
    • Transfer ownership
    • Delete this note
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Versions and GitHub Sync Note Insights Sharing URL Help
Menu
Options
Engagement control Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Owners
  • Owners
  • Signed-in users
  • Everyone
Owners Signed-in users Everyone
Write
Owners
  • Owners
  • Signed-in users
  • Everyone
Owners Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       owned this note    owned this note      
    Published Linked with GitHub
    Subscribed
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    Subscribe
    --- tags: ADR, LIP, research, upgrade, ethereum --- # ADR #3: Rewards distribution after The Merge * Status: RFC * Deciders: Lido dev team, Lido DAO <!-- optional --> * Date: 2021-12-29 ## Context and Problem Statement Lido has started a technical process to integrate into the new Ethereum hardfork [The Merge](https://ethereum.org/en/eth2/merge/). The merge event is expected to happen in March-April 2022. We have to have a working, tested, and audited solution by the 15th of March 2022. At the moment the Lido protocol collects only Beacon chain staking rewards (i.e. ETH2-side rewards) and pays protocol fee (10%) by [minting new `stETH` token shares](https://github.com/lidofinance/lido-dao/blob/816bf1d0995ba5cfdfc264de4acda34a7fe93eba/contracts/0.4.24/Lido.sol#L553). After the mainnet merge activation, validators will start receiving another two types of the rewards: transaction priority fees and an extracted [MEV](https://ethereum.org/en/developers/docs/mev/) which would be paid on the execution layer (ex. ETH1-side) while staking rewards still would be collected on the consensus layer (ex. ETH2-side). The new rewards would be initially gained directly by validators and nominated in ether. How can we distribute the new execution level rewards after the merge? ## Decision Drivers <!-- optional --> Primary: * capital efficiency of the new reward distribution scheme (better APR and TVL values) * delivery time — we have to perform Lido migration before or just after the first bunch of the merge hardfork blocks appears Secondary: * the current contracts codebase shouldn't change much * the new scheme should work even if the merge would be postponed further * there may be only implicit and automated motivation/demotivation levers (with a minimum amount of governance interrogation and dispute resolution) * it's better to keep the existing stETH rebase period (~24h) as it is, due to integrations that rely on it ## Considered Options - should we continue to pay the stakeholders' rewards and protocol fee to NOs and Lido DAO only in `stETH` or switch to ether for the new rewards branch - should we distribute the protocol fee (to Lido and NOs) under the slashing conditions or not - should we implement an ETH-stETH auction to restore the stETH/ETH exchange rate when it's changed ## Decision Outcome *The currently selected* options group: - re-stake all collected on a dedicated vault contract ether-nominated EL rewards to Lido while minting new stETH only for the protocol fee (10% currently: 5% for NOs and 5% for the Lido insurance fund) - re-staking and protocol fee minting are performed as part of the beacon chain rewards distribution run (with an oracle beacon report). - don't mint/distribute any protocol fee on the non-profitable Lido oracle report (when beacon chain balance delta is zero or negative). Primary support points: the selected options provide compounding and have a fast shipment time due to little impact on the existing distribution scheme. Secondary support points: the proposed decision reasonably automated and self-governed, and fallbacks to the already adopted solution in case of some frictions with the Merge hardfork schedule. ### Positive Consequences <!-- optional --> * boosts capital efficiency by achieving compounding (increase the APR and TVL values) * only the one core contract changes (`Lido.sol`, ~100 LOC), and another vault contract adds (~100 LOC) * almost automated solution without the need for manual governance intervention * can work in a fallback mode before The Merge hardfork will arise * stakers gain all possible rewards (excluding fees), and in the day of slashings/penalties protocol fee doesn't distribute to NOs and Lido DAO * preserves an existing ~24h rebase period ### Negative Consequences <!-- optional --> * relies on the new (to be developed ⚠️) [off-chain monitoring solution](https://hackmd.io/@george-avs/rJ14Rv7qF) to mitigate incorrect NOs' setup and misbehavior * under the mass slashing events well-behaving NOs and the Lido DAO loose protocol fee cause we check beacon chain balance delta and not the whole rewards sum to make a decision on protocol fee minting * stETH/ETH exchange rate restoration would be slower than with a market-buy & burn stETH strategy after the mass slashing events cause `stETH` is a [rebasing token](https://docs.lido.fi/contracts/lido#rebasing) and total circulating shares amount decreases immediately by burning discounted `stETH` * coupled with the entry queue health state: we expect entry queue would be crowded with staking requests after the Merge will happen, so by re-staking rewards we make additional load on the queue, though, the impact should be not be significant ## Pros and Cons of the Options <!-- optional --> ### Stakeholder's rewards and protocol fee nomination #### Option 1. Nominate protocol fees in ether There are two suboptions that exist: * use ether to distribute both the new rewards and the protocol fee * use ether only for the protocol fee while distributing rewards with re-staking. ##### Pros * the logic is easy: no need to mint stETH while distributing new rewards * partially lowers the staking entry queue forecast issues ##### Cons * reduces capital efficiency: even the NOs decide to re-stake with Lido, the customers gain less cause NOs would act simultaneously like a customer and a fee recipient. * the NOs can have a market motivation to withdraw fee and re-stake without Lido (e.g. bearing more risks) #### Option 2. Nominate protocol fees in stETH We propose to setup a dedicated vault contract to collect the new rewards (tx priority fees and extracted MEV). NOs should use its address as a coinbase for the EL-collected rewards. Then we could withdraw all ether from the vault contract as part of the Lido oracle report to perform re-staking keeping the established ~24h rebase period. ##### Pros * boosts the capital efficiency * aligns NOs to the Lido protocol * falls into the existing rewards distribution scheme ##### Cons * explicit dependency on the entry queue health state which could lower the compounding value * need to change at least the one core contract (`Lido.sol`) ### Protocol fee distribution under the slashing conditions 📝 Due to the possible controversies in the discussion stage we leave possibility to re-stake with or without minting the protocol fee `stETH` with a minimal contract code impact. #### Don't mint protocol fee when the consensus layer (conventional Beacon Chain) reward base becomes negative * motivates NOs and Lido to overcome slashing losses asap * demotivates well-behaving NOs #### Points on interruptless distribution (mint the protocol fee if execution layer rewards cover consensus layer losses) * could automatically smoothen the stETH/ETH exchange rate losses * fair to the well-behaving NOs * it could be over-permissible if validation quality degraded ### ETH-stETH auction option to restore the exchange rate when it's lowered for stETH Pre-withdrawals (between the Ethereum phases 1.5 and 2.0), we could also consider complementing a re-staking (i.e. compounding) mechanism with a mechanism to help stabilize the stETH-to-ETH exchange rate. A portion of extracted MEV and tx fee rewards could be used to purchase `stETH` from the market (and potentially burn it) instead of using those rewards for re-staking. This would have a restorative effect on the exchange rate if it's >1:1, and would potentially reduce the liquidity mining necessary for exchange rate stabilization. In the event that the exchange rate would not need restoration, then the amount that would otherwise be used for this could be used in the compounding mechanism instead. The DAO could control parameters on e.g. what percentage of MEV+tx fee rewards would be used in this way. ##### Pros * could restore exchange rate much quicker and more efficiently than other options * gives opportunity to use new rewards as an explicit cover option ##### Cons * making it trustless and accurately governed by the Lido DAO will require further research and separate design decisions * the cover implementation mechanism should be already well-defined and deployed by the moment of application (WIP, see the [LIP-6](https://research.lido.fi/t/lip-6-in-protocol-coverage-proposal/1468)) to correctly handle cover-incurred stETH rebase by the 3rd party integrated protocols (e.g. Anchor Protocol) 📝 This option could be implemented at the next iteration after the Merge adoption completes successfully. For example, we could withdraw EL-rewards from a vault contract somewhere before the next oracle report will happen and use it on a money market. ------ ##### UPDATES *18-05-2022*: 'exchange rate' term is used to represent stETH/ETH relative price

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully