On-chain risk scanner using real CME SPAN math to figure out what a portfolio could actually lose, plus a vault that lets you borrow against that number for real.
Undertow reads a wallet's real holdings and real live prices, then stress tests them across the same 16-scenario grid clearinghouses have used since 1988. The math runs on-chain, in Rust, compiled to WASM via Arbitrum Stylus, because the correlation math involved is too expensive to run on regular Solidity.
The risk number isn't just a display value. There's a credit vault built around it: deposit TSLA, WETH, or NVDA as collateral, borrow a debt token against a limit the engine computes live, not a fixed loan-to-value ratio like every other lending protocol. Go over that limit and anyone can liquidate you for real.
Everything is real data. No fake prices, no simulated holdings. Where something can't be verified as real (like a stablecoin that doesn't actually exist on this testnet), we say so directly instead of pretending.
There's also a standalone SDK and a second example contract that calls the same risk engine independently, showing it's a shared primitive other contracts can build on, not logic locked into our own frontend.
I built the SPAN engine first, in Rust on Arbitrum Stylus, since the math (16 stress scenarios plus a correlation credit) gets too expensive on regular Solidity. Once that was live, I built a credit vault around it so the risk number actually means something: deposit TSLA, WETH, or NVDA, borrow against a limit the engine computes live. While testing it, I found a real bug in my own liquidation logic, liquidators were taking 100% of a borrower's collateral instead of just what they were owed. I fixed that and added tests to prove it. I also added a third collateral asset to show the correlation math holds past just two assets, not only two. After that I built a small standalone SDK and a second example contract that calls the risk engine on its own, to prove it's not just logic baked into my frontend, anyone can build on top of it. Everything's deployed on Robinhood Chain testnet and live on Vercel now.
Not raising, this is just my original hackathon build