Introducing Lyra V2 and establishing the Lyra Foundation.
This proposal outlines “Lyra V2”, a platform that can facilitate the settlement, margining and matching of derivatives. It consists of three main parts:
Lyra V2 is governed by the Lyra DAO which earns trading fees from the Lyra Protocol and transaction fees from the Lyra Chain. Trading fees accrue to an insurance fund to foster the robustness of the protocol and rollup. If approved, this proposal will fund the Lyra Foundation in preparation for launching V2. It will not deploy the Lyra Chain or Protocol.
Lyra has captured the majority of the on-chain options market with 70-80% of volume. However, it remains a tiny fraction (1%) of the centralized crypto options market, which in turn is dwarfed by markets in traditional finance. This divide is primarily because on-chain protocols lack the performance of their centralized counterparts, which are cheaper to transact on and offer superior margining systems. This lack of performance rules out many if not all professional users. In addition, myriad usability issues deter users from moving their trading activity on-chain.
The challenge for the Lyra community is to meet the market where it is, retaining the benefits of a decentralized protocol - self-custody, transparency and composability - whilst improving performance and usability. The rest of this proposal describes Lyra v2, designed from the ground up to grow the on-chain market by 100x.
Lyra Chain is an Ethereum rollup built using the OP stack and is the home of the Lyra Protocol. It is a permissionless smart contract platform that boosts performance whilst inheriting Ethereum’s security. In this section, we describe the performance, usability and security benefits of Lyra Chain.
Lyra Chain will offer Lyra’s users a dedicated execution environment for the protocol, improving several facets of performance relative to the experience on Optimism and Arbitrum. Users can expect the following benefits:
Lyra Chain is being built to provide one of the best user experiences of any on-chain project:
Like any rollup, Lyra Chain inherits the security of Ethereum by moving computation off-chain to a centralized sequencer while ensuring sufficient data is available to reconstruct valid state in the event of maliciousness or downtime. In its final state, Lyra chain will be able to provide the following guarantees:
It is important to note that these security features are still under active development.
The Lyra Protocol is a series of smart contracts deployed on Lyra Chain. There are three main components to the Protocol: subaccounts, managers and assets. The Protocol is modular by design, allowing for swift iteration, meaning many of these layers will be further enhanced over time. We now outline the protocol at a high level (for further detail, see the whitepaper).
Subaccounts are the base unit of the Protocol. All users will be able to permissionlessly mint a subaccount entity which houses all of their supported assets. Subaccounts are ERC-721 compliant NFTs and have two main functionalities:
Ensure only authorized parties are able to change the subaccount’s balances.
Inform all relevant parties about any trade involving the subaccount.
This was made possible through the use of hooks; external function calls to relevant contracts that occur during and after any asset transfer. There are two such hooks:
the asset hook (invokes the asset to validate transfers) and
the manager hook (which calls the manager to authenticate the final state of the subaccount).
An asset contract is responsible for determining the results of a transfer, trade, deposit, withdrawal or settlement. To support deposits and withdrawals, as well as interest accrual, an asset has the privilege to update its own balances in any subaccount.
At launch, there will be four types of assets available:
cashAsset: Each manager supports one cashAsset. This is referred to as the quote asset.
option: European options on a given underlying asset.
perp: Perpetual futures on a given underlying.
wrappedERC20: Wrapped ERC20 tokens like wBTC.
Balances for wrapped assets can only be credits (longs) whereas all other assets can be credits or debits (longs or shorts).
Assets and managers are linked; certain assets will only be supported by specific managers and vice versa. This relationship is maintained via the aforementioned hooks.
Each risk manager supports a single quote asset. As with options and perpetuals, users can hold credit or debt balances of the quote asset. Unlike these other assets, users with debit balances will have to pay interest on this sum. This interest is then paid out to all other users with credit balances. Thus, the quote asset facilitates a native lending market over its supported managers.
At launch, USDC will be the only supported quote asset.
Managers are smart contracts that govern the margin requirements of subscribed subaccounts. At launch, there will be two managers available: the standard risk manager (SRM) and portfolio margin risk manager (PMRM). When creating a subaccount, the user must subscribe to one of these risk managers.
Managers fulfil the following functions:
Setting Margin Rules: Managers set the margin requirements of all supported subaccounts. To avoid being subject to liquidation, users must satisfy their maintenance margin mandate. To open a new position, the user must fulfil their (stricter) initial margin requirements.
Liquidations: Managers define the conditions for and enforce liquidations.
Settlement: The managers are responsible for settling all trades.
This supports USDC, various base assets (say, wBTC), options and perpetuals and has the following key features:
This also supports USDC, a single denominated base asset and corresponding options and perpetuals. Consequently, if a user wishes to use portfolio margin to trade ETH options and BTC options, then two PMRM subaccounts will be required.
Margin requirements are set using portfolio margin, where the entire portfolio is holistically evaluated at many spot and volatility shock scenarios. The scenario which results in the greatest loss is used, along with extra contingency margin, to set the margin requirements.
Note that both managers use the Black76 pricing model to mark options. Options settle to a weighted combination of the twap of spot and forward price.
Finally, we note that due to the large number of Black76 function calls, portfolio margin computations are very gas intensive. To avoid limiting PMRM account sizes, entities approved by governance called trusted risk assessors will be able to bypass all but one risk (namely, the mark to-market, i.e. solvency) check on chain.
While it is possible for trusted risk assessors to approve transactions that result in liquidatable (but not insolvent!) positions, such accounts can be immediately liquidated by any willing participant, removing this risk from the system. Further, the trusted risk assessor role can be revoked if the party in question is found to be acting improperly.
Users who fall beneath their margin requirements are subject to a partial liquidation. Liquidations will be a transparent process and open to all participants, i.e. any user can act as a liquidator and the user being liquidated will be able to monitor their subaccount throughout this process.
The liquidation mechanism is designed to expeditiously remove risk from the system while at the same time ensuring the most beneficial user experience for traders being liquidated.
Any user can call the function liquidate on any subaccount that is not meeting its maintenance margin requirements. The following then takes place:
Every risk bearing entity in the architecture can receive fees for doing so. The protocol has three main sources of fee generation, all of which accrue to the protocol owned security module which, when developed, will improve the robustness and resiliency of the protocol:
Entities approved by governance can bypass the trading fee in exchange for, say, a different fee scheme pledge. These approvals can be rescinded if the entity does not meet its requirements.
There are many parameters that govern the protocol; this is especially true for the managers. These parameters also have to be updated whenever there is a market shift to ensure both capital efficiency and security for traders.
All parameters in the protocol are controlled by a smart contract that will b owned by Lyra Governance (i.e. the short executor).
The managers require oracles to provide the following data in order to accurately assess and control risk:
Each piece of data supplied also has an associated confidence score. Low confidence feeds result in extra initial margin being required for both the SRM and PMRM.
Lyra Matcher is an open-source order-matching engine that enables high-performance and low-latency matching at zero cost. It will support all major order types as well as REST and WebSocket APIs for developers. More information on the matcher will be released in a subsequent proposal.
Lyra DAO has an on-chain governance model that enables stkLYRA holders to govern Lyra Chain, Lyra Protocol and the treasury. This system also enables service providers (anyone adding value to the ecosystem) to apply for funding. Service providers range from core contributors that work on the protocol to market makers and infrastructure providers.
In Lyra V2, on-chain governance will be responsible for various functions across the protocol, chain and treasury:
Protocol
Chain
Treasury
This proposal introduces the Lyra Foundation, a not-for-profit legal entity that aims to support the Protocol’s decentralized growth. The Foundation will be able to contract with other entities to provide services for the DAO. The reason for the existence of the foundation is that some service providers cannot deal directly with the DAO via on-chain governance. Some examples are:
Thus the foundation can help Lyra DAO bootstrap the success of V2 much faster. Over time, these functions are expected to be replaced by service providers who can interface with the DAO. At this point, the foundation will be decommissioned. If this proposal is successful, the following assets will be transferred from the DAO to the foundation:
| Asset | Amount |
|---|---|
| LYRA | 100,000,000 |
| OP | 750,000 |
| USDC | 1,500,000 |
Inspired by Uniswap governance. We propose a number of initial OKRs for the foundation. Its possible that these OKRs will need to change in the future, and if they do, the Foundation must communicate that to the community.
| Objective | Key Results |
|---|---|
| Grow protocol activity | Allocate 50% of LYRA funding, and 70% of OP funding to construct long-term aligned liquidity agreements via market makers and protocol integrations on the Lyra Chain. Success will be measured by metrics including (but not limited to): volume, new users, security module fees generated per incentive. |
| Support continuous protocol development | Allocate 20% of LYRA funding, 30% of OP funding and 100% of USDC funding to contract with relevant service providers (including core contributors) to develop protocol functionality, including (but not limited to): AMM design and development, automated strategy vaults, new collateral onboarding, autonomous hedging vaults, new partnerships. Success to be measured against metrics including (but not limited to): number of new integrations, integration time for developers, integration volumes. |
| Act as an advocate for the protocol | Take advantage of beneficial opportunities on behalf of the protocol. Offer service providers clarity, accountability, and competitive contract opportunities. |
| Treasury Diversification | Facilitate diversification of the DAO treasury to ensure it has sufficient capital to fund long term development and growth of the protocol and ecosystem. |
Rationale has been addressed throughout the specification.
Test cases will be included in a subsequent proposal with the implementation.
Copyright and related rights waived via CC0 .