GUNBOATs, Mastermojo83, Ksett
Integrate Lyra with Synthetix Perps V2 and deploy a cash collateralized version of the contracts on Optimism.
Deploy a new version of the Lyra protocol to Optimism, using SNX V2 perpetual futures as the source of liquidity with which to delta hedge the AMM. These contracts will support USDC as a
quoteAsset, whilst using wETH, wBTC, and native tokens (e.g. UNI) as collateral against short call positions as well as routing the hedger to swap USDC to sUSD (or snxUSD in future versions).
After the success of Lyra’s cash-collateralized Newport version on Arbitrum, this LEAP proposes to apply a similar mechanism and improve capital efficiency in Lyra’s Optimism deployment by removing the need for the AMM to lock one
baseAsset (i.e. sETH) per call sold. To achieve this, the pool will instead hold a significant portion against the options in cash and all
quoteAsset funds held by the pool will be available for delta hedging.
Notably, not being fully collateralized opens the pool to possible insolvency. To handle these black swan events, contract adjustments will be introduced which reduce long holder positions, allowing all long holders to get an equal share, and preventing the LP from being emptied fully.
This deployment will normalize the AMMs returns and lessen the protocol’s reliance on rebates and direct integration fees from Synthetix to provide competitive bid/ask spreads. By integrating with multiple perpetual futures platforms, the resiliency of the protocol to an individual shock to one of them increases. Optimism has a vibrant defi community and by deploying the most capital-efficient version of the protocol, we can provide the most competitive and liquid markets to our integrators within the Optimism ecosystem Further, the use of USDC as quote collateral (and wrapped ETH/BTC + native collateral for DeFi tokens), will increase the pool liquidity available to Lyra for use within the protocol. Using a Curve integration to swap to sUSD in order to hedge will decrease our reliance on spot synthetic assets and minimize any scaling issues around sUSD supply. Furthermore, the sUSD 3-curve pools has $41m TVL which should handle hedging with ease.
Synthetix Perps V2 will significantly reduce perps trading fees to only 5-10 basis points while maintaining optimal performance and execution efficiency. These reduced fees will open up endless opportunities and growth within the Lyra ecosystem.
New off-chain oracles provided by Pyth Network allow perps fees to be reduced to 5-10bps—on par with centralized perps platforms. These oracles, pioneered by SNX, greatly improve the trader experience & minimize the risk of frontrunning attacks. They work as follows: off-chain oracles save prices off-chain and are provided to traders by keepers when a trade is initiated, with an 8-sec delay due to block times. The on-chain validation process includes staleness checks, key-threshold confirmation, and a final check against on-chain oracles. This has improved from spot trading fees which ranged from 30-100bps, reducing cost by 6-10x.
The price impact function of SNX Perps V2 incentivizes arbitrage traders with a price discount given to traders who return markets to neutral. Funding rate changes allow funding rates to drift upwards in the presence of continued imbalance, incentivizing arbitrage traders to step in.
Both functions will introduce arbitrage opportunities for traders to keep markets neutral over the long term. This innovative path to risk management will help increase scalability and capital efficiency while supporting a wider range of markets.
Synthetix recently released 22 new perpetual futures for the total of 23 markets as in writing of this LEAP. It has markets including but not limited to OP, DOGE, Gold, and more to come over the coming weeks. This will allow greater flexibility for Lyra to add additional markets. https://blog.synthetix.io/22-new-synthetix-perp-futures-market-are-now-live/
The Lyra protocol’s Optimism contracts will need to be modified to handle
baseAsset ERC20 tokens.
SynthetixAdapter will be replaced by a
SynthetixPerpAdapter contract. The
SynthetixPerpAdapter will be responsible for handling swapping covered call collateral (
baseAsset) collected at settlement and during liquidations into
ShortPoolHedger will be replaced by a
SNXFuturesPoolHedger contract. This will be responsible for opening and managing perpetual future positions against the SNX pool to delta-hedge the liquidity pool.
The hedger will be responsible for swapping USDC into sUSD prior to hedging the MMV with SNX Perps and trading sUSD that is not being used to hedge back into USDC.
The hedger should also check the premium/discount function on SNX Perps prior to allowing trades, hedging, or liquidating after settlement, blocking short delta trades if the premium is too high and blocking long delta trades if the discount is too high. Trades and hedges should both be blocked if the premium/discount is over a certain % until the market has had a chance to normalize.
SNXFuturesPoolHedger target leverage can be specified, allowing for greater capital efficiency of the Liquidity Pool funds being used to hedge.
There will be an additional
canHedge check added to the
LiquidityPool contract, which will block the opening of trades when the hedging module (
SNXFuturesPoolHedger) deems the position to increase risk beyond an acceptable threshold (i.e. the delta exposure increases beyond the available hedging liquidity on SNX).
|Bypass the interaction delay if the required hedge is greater than this
|Target leverage ratio
|Leverage tolerance before allowing collateral updates
|Seconds until a pending order can be canceled
Copyright and related rights waived via CC0.