Solana devnet, UBC 2026
Lending limits that move before the market does
Brace reads the strike ladders on Gemini's prediction markets, fits implied volatility onchain on Solana, and sets how much you can borrow.
SOL borrow limit, livereading
%
Recorder, 5 channels
Five limits, traced for 24 hours
Each line is the limit the program held for that asset, posted by the relayer. One scale for all five, so a dip is a real dip. Gaps are hours with no posts.
SOL, right now
From a ladder of strikes to one number
Gemini traders price the chance SOL ends above each strike. The program fits a volatility to those prices and turns it into the limit, in five steps you can check.
Reading the ladder
- 01Read the ladderreading
- 02Fit implied volatility onchainreading
- 03Size the movereading
- 04Haircut the liquidation linereading
- 05Clamp, then agereading
Three rules in the program
Stale data can only lower it
- R1
The fit happens onchain
The relayer posts raw quotes, never a volatility number. The program does the fit itself and keeps every limit between 30% and 75%.
- R2
Silence steps the limit down
Thin or stale data never loosens a limit. Here is the SOL limit if the relayer went quiet now, from the program's own rule.
Reading the stale rule from the program config
- R3
Odds never liquidate
The odds only set how much you can borrow. Liquidation uses the 80% threshold set in the config and nothing else.
Proof
Every number has a transaction behind it
Reading the relayer log
FAQ
Questions people ask first
An onchain volatility oracle for Solana lending, built from Gemini prediction markets. It reads Gemini's live "price X or above" ladders, computes implied volatility onchain on Solana, and tightens borrowing limits before the move. It runs on Solana devnet.
Gemini's public prediction market API. For each asset the relayer picks the earliest expiring "above" ladder between 15 minutes and 72 hours out with at least 4 two sided quotes, and posts up to 16 strikes with their bid and ask, plus Gemini's spot price. The board covers SOL, BTC, ETH, XRP and ZEC, and the relayer posts every minute.
Each contract "price at or above K at expiry" trades at a probability. Under a lognormal model, the probit of that probability falls on a straight line in ln(K), with a slope of minus 1 over σ√T. The program fits that line by least squares from the raw quotes, which gives σ√T and the implied median. The relayer never posts a volatility number: the program computes it from the quotes. The quotes themselves come from a trusted relayer (see Known Limitations in the README).
The fit is scaled to the move it implies over 24 hours, s. The limit is 80% × (1 − 3s), clamped between 30% and the 75% admin-set cap. The market moves a limit inside that band and never above the 75% cap the admin set. Liquidation uses the 80% threshold set in the config, never the odds.
Thin, stale or inconsistent data never loosens a limit. The program holds the last limit for 5 minutes, then steps it down 2.5 points every 5 minutes, to a 50% floor or the last limit if that is lower. After an hour without a confident post, borrowing, withdrawing with debt and liquidation pause.
The program refused a borrow that would take your loan to value past the live limit. The check runs onchain in the borrow instruction, so it holds even if someone skips this app. Phantom may warn that the transaction fails to simulate; that is expected, and confirming past it lands the rejection onchain.
No. Brace runs on Solana devnet only. You deposit devnet SOL and borrow a test USD token minted by the pool, at 0% interest. It shows the risk limit working, not a full lending market, and nothing here is financial advice.
Brace was built during UBC 2026 by Faithful Adejoh (Oh-Jay), Alchin Daryabarijavad and Omar Dosuyev. Faithful led development, Alchin (co-builder and presenter) built the forecast validation and analytics tracker, and Omar led the presentation. The code is open source under the MIT licence.
More detail, with the code behind each answer, is in the README on GitHub (opens in a new tab).
Error 6005, from the program
Now try to borrow past the line
Borrow over the live limit and the program refuses it onchain with error 6005, RiskTightened. It costs devnet SOL only.
Try a borrow