Egress
Egress protects people who lend money against tokenized stocks. It checks onchain how much of a stock could actually be sold in a crash. If loans grow bigger than the market can absorb, it automatically stops new lending on that stock before lenders are left with losses.
Video
Công nghệ sử dụng
Sự miêu tả
Egress: liquidation-capacity guard for tokenized stock lending on Robinhood Chain
Robinhood Stock Tokens are now accepted in lending markets, but a loan only remains safe if the collateral can actually be sold when it has to be liquidated. Since the stock tokens trade around the clock but have thin liquidity, a lender may find themselves holding more stock collateral than the market is able to absorb. I carried out the measurement and found that altogether approximately $660,000 worth of stock tokens act as collateral across all the lending protocols on the Robinhood Chain. In the biggest AAPL market, around $301,000 of AAPL is posted, whereas the onchain pools are able to absorb only about $195,000 in the event of a 5% drop in price (both figures being taken from block 74,197,325).
I built Egress as a solution for that.
The depth engine (Arbitrum Stylus, Rust) goes through each tick of a Uniswap V3 pool just as an actual sale would and calculates the amount of USDG that a seller would get before the price drops by a predetermined amount. It aligns real Uniswap swaps with wei. The engine is live on the Robinhood Chain mainnet. The Guard (Solidity) functions as a sentinel for a Morpho Vault V2. It keeps a record of depth readings over time and, when it has five such readings, reduces the vault's lending cap for that stock to the median safe level. It has the ability to lower caps only and can never increase a cap, never move any funds, and never affect existing loans. Any action to raise a cap remains the concern of the curator and is held back by their timelock. Safety is built into the system. The figure used is the median of five readings, which means that a single altered reading cannot cause or prevent a cut. Each pool is allocated a fixed amount of gas, so a keeper cannot starve a reading. A more stringent haircut is applied on weekends since the stock markets are closed. Pools that are unreadable are treated as having zero depth. In the factory, any curator of a Vault V2 is able to set up their own guard in a single transaction. On a mainnet fork of the real NetNet Credit vault, Egress cut the AAPL cap from 600,000 to 75,695 USDG against 151,390 USDG of measured depth (block 78,321,955), and the curator restored it only through their timelock.
Live dashboard: https://egress-theta.vercel.app
Code: https://github.com/UEddy/egress
Depth engine: 0x276F4933f06B77912384D64291E062885C33E031 (Robinhood Chain)