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
    2
    Subscribed
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    Subscribe
    # CSM Early Adoption ## TL;DR This document describes a possible approach to the CSM Early Adoption mechanics. It is proposed that a Merkle proof be used as an entry ticket to the CSM on the mainnet during the Early Adoption period. A maximum number of keys per operator is limited to 10 during the Early Adoption Period. On top of the ability to join, such node operators will be eligible for the "bond discount for the first validator". ## Motivation An Early Adoption period is required to ensure meaningful community stakers' participation in CSM and avoid immediate occupation of all CSM capacity by one or several professional operators. During this period, only curated community stakers are eligible to join CSM. After the end of the period, CSM entry is fully permissionless. To make Early Adoption more attractive for the community stakers, extra benefits like the one described in Appendix 1 should be offered. ## Who is eligible The CSM has two primary sources of stakers eligible for Early Adoption - [**Rated's list of solos**](https://github.com/rated-network/solo-stakers), and [**Lido CS community participants**](https://www.notion.so/CS-OATs-list-781199daef6046a8ba09941112931fc0?pvs=4), namely OAT holders with sufficient scores at Galxe's Lido space. The best way to get a sufficient Galxe score is to participate in the SimpleDVT/CSM testnets or Lido-hosted events. Both lists might be combined into one before the launch, so there will be no difference in trust and conditions between them. ## Why are per-operator keys limited? Despite the fact that only curated community stakers will be eligible to join CSM during EA, there is still a chance that huge Node Operators will find a way to pretend to be a community staker. To mitigate the risk of CSM capture by such sophisticated actors, it is proposed to set a **hard limit of 10 validators per operator during the EA**. This will significantly restrict possible options for the huge operators to occupy a significant portion of the CSM stake during EA. ## Using Proof on the CSM side Implementation of Early Adoption is laying on the separate (might be virtual) CSEarlyAdoption contract with preliminary the following interface: ```solidity interface ICSEarlyAdoption { function checkAddress(address _address, bytes32[] proof) external view returns (bool); function consume(address _address, bytes32[] proof) external; } ``` The tree root is only set in the deployment stage and will not be changed afterwards. During the Early Adoption period, proof is required when `createNodeOperator*` methods are executed to ensure the sender is eligible to join and consume a proof. ```solidity function addNodeOperatorETH( uint256 keysCount, bytes calldata publicKeys, bytes calldata signatures, bytes32[] calldata proof ) external payable { uint256 id = _createNodeOperator(); if (earlyAdoption.checkAddress(msg.sender, proof)) { earlyAdoption.consume(msg.sender, proof); accounting.setBondCurve(id, earlyAdoptionBondCurve); } else if (block.timestamp < earlyAdoptionExpireTimestamp) { revert EarlyAccessDenied(); } accounting.depositETH{ value: msg.value }(msg.sender, id); _addSigningKeys(id, keysCount, publicKeys, signatures); } ``` It is proposed to configure a timestamp of when this period ends explicitly on the deployment stage, after which an Early Adoption contract will be ignored, allowing everyone to join CSM. The DAO should be able to change this timestamp later to extend or shorten the duration of an Early Adoption period. ![image](https://hackmd.io/_uploads/Bk5UWi23a.png) *Operation during EA period* A Merkle proof might be passed as an optional argument after an Early Adoption period in order to receive Early Adoption incentives. ![image](https://hackmd.io/_uploads/SkLvZoh26.png) *Operation after EA period* ## Appendix 1. Incentives for the Early Adopters ### Using CSM bond curves as the incentive for the Early Adopters Several interesting use cases emerge with introducing the arbitrary [bond curves](https://hackmd.io/QmMkXEjbR1e8IFgN-6yC_g?view#Bond) in CSM. One is to create a specific curve assigned to the Node Operators joining CSM during the Early Adoption period. #### Early Adoption bond curve One of the main ideas of the Early Adoption period is to allow proven solo-stakers (from the rated list or identified by Lido contributors) to join CSM during its early stages on the mainnet, prior to the full-permissionless launch. If we assume that CSM mainnet params (bond size and fee) will be something way better than the other market offers, the ability to join it earlier is a benefit on its own. However, if CSM offers "in-market" conditions, there should be some benefit for the early adopters that will incentivize them to join CSM. One of the options here is to lower the entry barrier in terms of the ETH bond required. With bond curves in place, this might have a form of a modified curve where the **bond required for the very first validator is lower than in the common curve**. At the same time, the rest of the curve is identical to the common one. ![image](https://hackmd.io/_uploads/rkEwoo7ja.png) When selecting the bond value for this first validator, it should at least cover individual slashing risk. Other risks can be set aside. Here is why: - MEV stealing - With only one validator chances of `block_proposal * huge_MEV * malisious_validator_in_the_list` are negligible - Stale validator - With a bond covering basic slashing, it will take a single validator about two years to acquire a balance drop exceeding the bond. - What if Node Operators will create more validators? - In this case, they will have to supply regular bond amounts for the second and further validators. Hence, total coverage will not differ much from the common curve case. That said, it is assumed that the "get first validator cheaper" approach might be used as an incentive for the CSM Early Adopters. ## Appendix 2. Common NFT cost considerations It is possible to mark all eligible addresses by minting an NFT instead of a proof check. It turns this list of stakers into a potential public good as permanent on-chain storage of solo stakers in order to reuse it for other protocols. Unlike a common EIP-721 implementation (e.g. [from OpenZeppelin](https://docs.openzeppelin.com/contracts/5.x/api/token/erc721)), there will be the following limitations: - **Non-transferable**; - **One NFT per address**; - **Non-burnable.** Any consumption of NFTs should be accounted for on the protocol side; - **One-time use.** One NFT equals one use on the protocol side; The current OpenZeppelin's implementation with such limitations will have the following rough cost estimations: ``` 50000 gas per mint => 60 gwei gas cost => ~0.32 ETH per 100 mints ``` An alternative implementation like [TokenGate](https://github.com/7i7o/TokenGate) might have much lower gas costs: ``` 26000 gas per mint => 60 gwei gas cost => ~0.15 ETH per 100 mints ``` Due to these estimations and the additional cost of implementing such NFT with restrictions and audits, it isn't reasonable to go that way. Hence, a Merkle Proof solution is much less expensive. ## Appendix 3. Mint NFT for Early Adoption node operators When the Early Adoption period is over, a special, memorable NFT might be minted for all CSM participants. The simplest is OAT at Galxe, but it also might be a separate NFT contract with a unique image on each NFT, like Node Operator ID at CSM, validators graffiti, etc.

    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