ΣSigmaon-chain risk · live
Proofgithub.com/dmetagame/sigmaci workflow statusoracle workflow statusguardian workflow statusoracle prices …latest agent action · …

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.

Every number below is read directly from the deployed contracts every 6 seconds via viem. A dedicated reporter publishes prices only after Pyth and RedStone agree within 2%; this remains a testnet trust model.

Portfolio value

—

Debt

—

VaR · 1d 95%

—

from sigma core (stylus)

Max borrowable

—

risk ceiling · vault holds —

Health factor

—

≥ 1 = solvent

TSLA
Vault qty—
Wallet qty—
Oracle price—
Value$0.00
AMD
Vault qty—
Wallet qty—
Oracle price—
Value$0.00
AMZN
Vault qty—
Wallet qty—
Oracle price—
Value$0.00
NFLX
Vault qty—
Wallet qty—
Oracle price—
Value$0.00
PLTR
Vault qty—
Wallet qty—
Oracle price—
Value$0.00

Stress lab · scenario VaR

What happens when the market turns.

Each scenario shocks the live collateral basket and sends the result to the deployed Stylus core — computePortfolioVar on-chain does the math, not the browser.
Computing scenarios on-chain…

Operate · self-custodial

Manage the position from your wallet.

Direct actions call the Vault. Pilot setup separately grants the Strategist bounded executor access and a repayment allowance. Every step is confirmed in your wallet.
Connect an injected wallet to operate. Until then, the portfolio above continues to show the public demo position.

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.

inactive

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.

Parametric portfolio VaR computed in Rust, compiled to WASM, activated on Robinhood Chain. Every borrow on the Sigma Vault is bounded by this number; the Vault computes it during borrow and collateral-withdrawal checks.

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.

The Strategist emits an ActionExecuted event with the agent's free-form rationale string for every successful action. Audit log is the chain itself.
Loading…