Hyperelliptic Labs and RockX propose an expansion of the family of Lido liquid staking protocols into Avalanche.
Avalanche’s multi-chain architecture presents interesting challenges to any team wishing to bring Lido to the platform. It is made up of three distinct blockchains: the Exchange Chain (X-Chain), the Platform Chain (P-Chain), and the Contract Chain (C-Chain).
Smart contracts are executed on the C-Chain, however staking is performed on the P-Chain, which cannot run custom smart contract code.
Because Avalanche does not yet enable smart contracts to transfer AVAX between chains or to perform staking on the P-Chain, it is not currently possible for a smart contract to move tokens between these chains, meaning that some amount of the process must be custodial to begin with.
We propose a two-stage roadmap, combining the best of what is possible today, with a path to improvements in automation and trust minimisation as Avalanche grows. Both stages assume the creation of an Avalanche C-Chain token (stAVAX), representing staked versions of AVAX. At all stages, code will be open sourced and shared with the community.
As with Lido stETH, tokens will accrue rewards as a function of time, removing the need for users to sacrifice liquidity or meet minimum staking value requirements to be able to participate in Avalanche’s growing DeFi ecosystem. Additionally, governance over selected validators, fees, other parameters, and matters such as upgrades to the protocol will be carried out by LDO holders.
In the initial version, the subset of operations which cannot yet be managed by smart contracts (such as cross-chain transfers and staking) will be carried out via operations requiring multi-party approval. These approaches will then be phased out as the Avalanche blockchain matures.
The next update to Avalanche (Blueberry) intends to improve cross-chain transfer functionality, with work commencing in Q4 2021. We intend to work closely with Ava Labs to build on this and help add functionality to enable automated cross-chain staking with minimized trust.
This will require a number of improvements to Avalanche to better support cross chain messaging and querying, interchain accounts, remote transfers, and ultimately staking from contracts on the C-Chain.
Preliminary work:
Phase 1: semi-custodial liquid staking
Phase 2: trustless liquid staking
Migration:
We believe in the long term success and value proposition of Lido, and are therefore eager to propose a two-part incentive structure that shows our commitment both to this project and to the alignment of our respective interests.
This proposal contains a significant amount of development work, including an interim MPC solution, which contributes to the Lido codebase as a general purpose secure custodial solution, as well as protocol-level development to enhance the cross chain communication on Avalanche.
In this particular implementation for Avalanche, we will tackle the full complexity of the threshold ECDSA, which is more difficult than other setups such as BLS. We foresee a lot of learning and development from this proposal can be applied to other blockchains in the future since these are common challenges for a secure liquid staking solution.
First, we would propose incentives of LDO tokens with the following terms:
We strongly believe this latter phase will benefit Lido, due to the optics of giving back to the Avalanche developer community and improving the protocol (i.e. supporting trustless inter-chain movements) for all teams working in Avalanche DeFi.
| Milestone | LDO |
|---|---|
| Initial grant, covering delivery of Phase 1 | 350,000 |
| 1% market share | 200,000 |
| 2% | 200,000 |
| 3% | 200,000 |
| 4% | 200,000 |
| 5% | 200,000 |
| 10% | 500,000 |
| Delivery of Phase 2 | 150,000 |
| Total | 2,000,000 LDO |
We define “market share” as the ratio between the amount of staked AVAX tokens via Lido vs. that of all staked AVAX tokens (currently around 60% of supply), based on Avalanche’s Validator Stats page. To qualify, the given market share must be held on average across at least 30 days, to account for variability in the data.
In addition, we propose that audit during the initial grant phase be compensated separately by Lido, and that the Hyperelliptic Labs x RockX team receive 20% of the ongoing Lido treasury fees from this solution, in order to align both parties’ incentives.
An ongoing revenue share plays many roles, including rewarding the team for the success of the project, and in order to cover the costs of ongoing maintenance, improvements, and integrations, both of the solution itself, and of a secure MPC key management system.
The project will be jointly carried out by the Hyperelliptic and RockX teams, both of whom will bring their respective strengths to bear on this project.
RockX is an institutional staking service provider, which has been a node operator of stETH and stSOL under Lido. Besides offering institutional staking services and stable access nodes. The team has a research arm X-matrix labs, which specializes in improving defi protocols and developing MPC key management (including DKG, resharing and signing)
The Hyperelliptic Labs team specializes in infrastructure, security and cryptographic key management. The team comes from both crypto and tradfi backgrounds, having built products used by millions of people around the world.
We are in close contact with both core Avalanche and Lido development teams, and look forward to collaborating with them to deliver this solution.