Stylus · WASM · Robinhood Chain · chain id 46630
On-chain risk pricing
for tokenized equity collateral.
Tokenized stocks cannot become useful DeFi collateral until somebody builds portfolio-aware risk pricing on-chain. Sigma computes VaR in Stylus so every borrow can be checked against the current collateral basket. This testnet demo cross-checks Pyth and RedStone prices while using illustrative volatility inputs.
Portfolio · 0xD3ee…4f80
Live position on Robinhood Chain.
Portfolio value
—
Debt
—
VaR · 1d 95%
—
from sigma core (stylus)
Max borrowable
—
risk ceiling · vault holds —
Health factor
—
≥ 1 = solvent
Asset
Vault qty
Wallet qty
Price
Value
Stress lab · scenario VaR
What happens when the market turns.
Scenario
Portfolio value
VaR · 1d 95%
Max borrowable
Health
Pilot response
Operate · self-custodial
Manage the position from your wallet.
Vault actions
Deposit, borrow, and repay.
Withdrawal and borrowing revert on-chain if the resulting position would be unhealthy.
Sigma Pilot policy
Bound autonomous actions on-chain.
Enabling may require several confirmations. Sigma sets the bounded USDC repayment allowance and executor first, then activates the policy last. Revocation removes all three permissions.
Sigma Core · Stylus · WASM
Portfolio risk math,
done on-chain.
Implementation profile
Runtime
Rust · WASM
Risk model
Parametric VaR
Math scale
WAD · 1e18
Complexity
O(n²) covariance
The deployed five-asset benchmark returns the same result from both cores: At block 70,915,096, Stylus uses 122,318 gas versus 128,960 for Solidity, a measured 5.15% saving. Run npm run benchmark:gas to reproduce it.
Reference test (analytical match)
weights = [0.5, 0.5]
vols = [0.20, 0.30]
correlation = 0.5
value = $1,000,000
z (95%) = 1.645
horizon = 1 day (sqrt 1/252)
analytical → $22,580
on-chain stylus → $22,584 (Δ 0.02%)Sigma Pilot · decision log
Every agent action gets
a rationale on-chain.
Block
Action
User
Rationale