An omnichain risk/hedge protocol leveraging cross-chain messaging and deploying across chains like Base, Mantle, Flare, Morph, and Linea for seamless data access and flexibility
RiskRelay is an omnichain decentralized hedge and risk management protocol built on ERC-4626 standard vaults across EVM-compatible chains. This initiative aims to assess the feasibility of a cross-chain protocol that uses generalized message passing bridges like LayerZero, Hyperlane, and Chainlink's CCIP for message passing. The protocol taps into each chain's unique strengths: for example, Flare offers inbuilt Oracle solutions, Base provides liquidity, and Fhenix, Oasis and Inco has shielding capabilities - good for hiding bet amounts in prediction markets.
This project is a Solidity-based decentralized risk hedge protocol designed to combine the best features of multiple blockchain ecosystems. It leverages Chronicle, Flare's FTSO Contracts, and PYTH for oracle data and uses Hyperlane and LayerZero to enable seamless message passing across chains. Vaults holding hedge and risk assets are deployed on chains like Morpho, Mantle, Linea, and Base, each selected for its unique strengths.
MarketCreator
The MarketCreator
contract creates and manages risk and hedge vaults for each market.
createMarketVaults()
function allows creating a pair of risk and hedge vaults for a market.getVaults()
function retrieves the addresses of the vaults for a specific market.It maintains a mapping of market IDs to their corresponding vault addresses.
RiskVault & HedgeVault
These contracts represent the "risk" and "hedge" sides of a market, respectively.
MarketCreator
.Controller
The Controller
retrieves data from oracles and determines whether to mature or liquidate the vaults based on market conditions.
We explored various configurations to combine the best features of multiple chains:
By experimenting with deployments across various chains, we aimed to create a system that combines:
This modular and flexible design demonstrates the potential of a decentralized risk management system capable of adapting to the strengths of different blockchain ecosystems. While there’s room for deeper analysis, the groundwork is set for a powerful, cross-chain solution.