Deploy and launch Lyra V2.
This proposal outlines the sequence needed to launch Lyra V2. Once the system is operating reliably, ownership of the contracts will be transferred from the DAO multisig to the on-chain governance system.
The sequence is as follows:
This proposal is a follow-up to the introduction of Lyra V2. The remaining v2 work has been completed, and thus, it is time to seek community approval to launch.
Before describing the steps to launch, we begin by visualising the V2 architecture at a high level. This helps the reader understand the relationship between the core software components (chain, protocol, exchange), the entities that work on behalf of the DAO (governance, foundation, service providers), the different types of users that interact with the system and the flow of value back to the DAO.
V2 Components - Core software
Entities - Work on behalf of the DAO
Users - Interact with Lyra V2
The first step in launching V2 is to deploy Lyra Chain.
Summary
Lyra chain is an Ethereum roll-up built using the OP Stack. It is a smart contract platform that provides a high-performance foundation for the V2 protocol whilst inheriting the security of Ethereum. To learn more about Lyra Chain, read the introductory v2 proposal or this blog post.
Users can choose between the standard Optimism bridge or a fast bridge developed by Socket. Documentation for the Socket bridge can be viewed here and here.
| Name | Value | Notes |
|---|---|---|
| RPC URL | rpc.lyra.finance | Remote Procedure Call for interacting with Lyra Chain |
| Epxlorer URL | explorer.lyra.finance | Graphical interface for transactions and blocks |
| Chain ID | 957 | Unique identifier for Lyra Chain |
The second step in launching V2 is to deploy the V2 Protocol to Lyra Chain.
Summary
The Lyra Protocol is a series of smart contracts that collectively create a generalised risk engine, capable of portfolio margin. To learn more about the protocol, please review the v2 whitepaper.
| Name | Description | Link |
|---|---|---|
| V2-core | The core version 2 protocol | https://github.com/lyra-finance/v2-core |
| V2-matching | Contracts that enable sequential matching | https://github.com/lyra-finance/v2-matching |
| lyra-utils | Commonly used libraries in the Lyra Protocol | https://github.com/lyra-finance/lyra-utils |
The protocol was audited by Sigma Prime and the report is available here: https://github.com/sigp/public-audits/blob/master/lyra-finance/review.pdf
The initial configuration of parameters is available here: https://lyra-finance.notion.site/Lyra-V2-Parameters-2d02b3c941e64292b0df6b925aea31b7
The third step in launching V2 is to deploy the Exchange.
Summary
Lyra Exchange is a self-custodial exchange built with Lyra DAO’s open-source matching service. It has been built from the ground up to be competitive with the world’s largest crypto derivatives exchanges (not just DEXs).
There are two ways to access Lyra Exchange, via the client and directly via the API.
Lyra Exchange is the initial “Risk Assessor”, which means it can apply for an alternative fee structure. This model is intended to allow exchanges building on Lyra Protocol the ability to offer pricing that is in line with popular centralised and decentralised competitors. The initial fee structure is as follows:
| Instrument | Maker | Taker |
|---|---|---|
| Perp | 1bp | 6bp |
| Option | 3bp | 4bp |
All fees charged by Lyra Exchange are owned by the Lyra DAO. Fees may be used to cover operational expenses such as paying gas costs on behalf of users.
The fourth step of launching is to enable mainnet trading. Once all three components are deployed, mainnet trading will be enabled. Once the system is deemed to be operating correctly, the incentive program will begin (details proposed separately). The start date may be delayed if there are technical or liquidity issues.
The final step of launching V2 is to transfer ownership of the V2 contracts from the DAO multisig to the onchain governance system. Lyra has a fully autonomous on-chain governance system that is managed by LYRA holders. It will enable direct token holder governance of V2, including the chain, protocol and exchange. After the system is operating smoothly, ownership will transfer to the on-chain governance system.
In the period before ownership is transferred to onchain governance, the DAO can launch markets and collateral assets with sufficient liquidity and are deemed low risk. Once ownership has been transferred any new market will need to go through the full governance process.
Once V2 is live, the Newport release will be migrated to v1.lyra.finance. Users will be able to withdraw their LP positions and close positions at this interface up until December 20 2023. After this date, users will need to interact directly with contracts to withdraw assets and close positions. The last expiry available on the Newport contracts will be on January 26 2024.
The rationale has been addressed throughout the proposal.
Test cases are included with each source code repository.
N/A