FeedProjects
Developers
Settings
🎉 A new chapter begins: Boardroom has joined Agora
Learn more
protocol logo
Explore / Projects
Lyra

Proposals

Members

Information

Create Proposal

Lyra

ProposalsMembersInformation
Proposal
Back to Proposals
closedEnded 2 years ago · Snapshot (Offchain)

[LRFC] Launch Lyra V2

By 0x83c7...d3D368

Simple Summary

Deploy and launch Lyra V2.

Abstract

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:

  1. If approved on snapshot:
    1. Deploy Lyra Chain, Protocol and Exchange
    2. Fund security module
    3. V2 mainnet launches
    4. V2 incentives start
  2. If approved onchain
    1. Ownership transferred to onchain governance

Motivation

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.

Specification

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.

architecture.jpeg

V2 Components - Core software

  1. Lyra Chain - Ethereum rollup built with the OP Stack.
  2. Lyra Protocol - Generalised margin and risk protocol.
  3. Lyra Exchange - Self-custodial exchange.

Entities - Work on behalf of the DAO

  1. Lyra Foundation - Not-for-profit legal entity that acts on behalf of the Lyra DAO.
  2. Service Providers - Assist the Lyra DAO with various components of V2.

Users - Interact with Lyra V2

  1. Lyra Stakers - coordinate Lyra governance
  2. UI Traders - access Lyra Exchange via GUI
  3. API Traders - access Lyra Exchange via API
  4. Integrators - build on Lyra Protocol
  5. Protocol builders - launch entirely new protocols on Lyra Chain
  6. Ethereum Stakers - provide the economic security to secure Lyra Governance

Deploy Lyra Chain

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.

Accessing Lyra Chain

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.

Lyra Chain Configuration

NameValueNotes
RPC URLrpc.lyra.financeRemote Procedure Call for interacting with Lyra Chain
Epxlorer URLexplorer.lyra.financeGraphical interface for transactions and blocks
Chain ID957Unique identifier for Lyra Chain

Deploy Lyra Protocol

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.

V2 Source Code

NameDescriptionLink
V2-coreThe core version 2 protocolhttps://github.com/lyra-finance/v2-core
V2-matchingContracts that enable sequential matchinghttps://github.com/lyra-finance/v2-matching
lyra-utilsCommonly used libraries in the Lyra Protocolhttps://github.com/lyra-finance/lyra-utils

Audit

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

Configuration

The initial configuration of parameters is available here: https://lyra-finance.notion.site/Lyra-V2-Parameters-2d02b3c941e64292b0df6b925aea31b7

Deploy Lyra Exchange

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).

Accessing Lyra Exchange

There are two ways to access Lyra Exchange, via the client and directly via the API.

  1. Client - Recommended for the majority of users who prefer to trade via a graphical user interface.
  2. API - Recommended for advanced and professional traders who prefer to trade programmatically. Documentation is available here.

Exchange Fee Structure

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:

InstrumentMakerTaker
Perp1bp6bp
Option3bp4bp

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.

Launch Mainnet

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.

Transfer Ownership to Governance

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.

Launching New Markets

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.

Deprecate Newport

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.

Rationale

The rationale has been addressed throughout the proposal.

Test Cases

Test cases are included with each source code repository.

Configurable Parameters

N/A

Continue Reading
Connect Wallet to Add Note
0
Votes 23
VoterCast PowerVote & Rationale
0x6cea...9E6a60
23.617M

For

0x9Ba8...41796C
7.916M

For

0xDfaD...4A4cbA
2.002M

For

0xfa3F...481E9a
1.154M

For

0x46ab...4Bb4d1
911,169

For

SHOW MORE
VOTE POWER
0
Connect Wallet
Proposal Status
  • Tue February 13 2024, 11:51 pmVoting Period Starts
  • Fri February 16 2024, 11:51 pmEnd Voting Period
Current Results

1-For

37.717M

Quorum 37.717M/1M
DocumentationBrandingContact Us
Home
This Project is Currently Disabled

If you would like to enable it, please checkout below.

Boardroom Subscription

Sign up for an individual subscription (access all projects on the platform)

Subscribe
Enable Project

Enable the entire project for every user

Enable Project
Contact Us