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.