Stance

Say what you think ETH will do, in one sentence. Know your cost, payout and odds before you pay.

Stance

Created At

ETHGlobal Mumbai

Winner of

1inch

1inch - Build an Aqua App 3rd place

Project Description

SEBI found that 93% of individual F&O traders in India lost money over three years, about ₹2 lakh each on average. Options are hard to read. Your loss can grow after you enter. And you can be right about the price and still lose money.

Stance turns a trade into one sentence: "I want to make $500 if ETH ends above $3,000 on Nov 27."

Before you pay, you see three numbers: what you pay, what you get if you're right, and the chance of it happening.

Under the hood, each stance is an ETH call or put spread. It is fully backed: the money to pay you is locked the moment you trade. So:

  • You can never lose more than you paid. No margin calls, no liquidations.
  • Only the price on your date matters. If you're right on the date, you get paid.
  • Anyone can be the house. Deposit into a vault and earn the spread on every trade.

The odds come from a pricing desk. Live market data goes into 0G's own model, running inside a TEE, and every quote shows a receipt you can check.

It's live on Base Sepolia. There's a Test mode with $10,000 of play money, so you can try every screen without a wallet.

How it's Made

Contracts: Solidity 0.8.30 and Foundry, 28 tests including fork tests on Base mainnet.

  • SpreadSeries is one price range (K1 to K2, an expiry). You lock K2 − K1 USDC and get 1 UP + 1 DOWN token. UP + DOWN always equals the money locked, so the contract can never owe more than it holds.
  • SpreadMath prices the spread with Black-Scholes on-chain (Solady expWad/lnWad, a normal CDF). The app uses the same math in TypeScript.

1inch Aqua: SpreadAquaApp is our own AquaApp. It quotes and fills UP and DOWN with a fee and an inventory skew, so the price leans against whichever side is selling out. WriterVault is the Aqua maker. One USDC reserve backs both the UP and DOWN strategies of a range through ship / dock / pull / push, so capital isn't split per side. 1inch has no Aqua on Base Sepolia, so we deployed the official AquaRouter (v1.0.1, unmodified) and ran fork tests against the real deployment on Base.

Chainlink: the ETH/USD feed drives live quotes and settlement. A CRE workflow in TypeScript runs on a cron. For each expired range it searches the feed's rounds through Multicall3 for the first round at or after expiry, cross-checks the price with Coinbase, and reports to SettlementReceiver, which calls settle(roundId). The contract re-checks that round on-chain, so the workflow can't pick a convenient price.

0G: every few minutes the server gathers Chainlink spot, recent realized volatility and perp funding, and sends them to 0G's Router running 0G's own model (0gm-1.0-35b-a3b, TeeML in an Intel TDX enclave). It returns a volatility per expiry and a plain-English read. The app prices odds with it and shows a receipt: model, TEE provider, request id. Then we verify the enclave's signature ourselves with the 0G compute SDK (processResponse). The quote never waits for that check; the chip flips to "signature verified" when it lands.

Uniswap: a v3 TWAP guard compares the settlement price with the WETH/USDC pool's 30-minute TWAP. On Base Sepolia that pool sits ~21% off real ETH, so it runs in monitor mode there.

App: Next.js 16, React 19, Tailwind, wagmi + viem, on Cloud Run. A Test / Prod switch: Prod talks to the contracts, Test runs the whole flow in the browser.

Hacky bits: StanceMarket hit the 24 KB contract limit as a factory, so it became a plain registry and the deploy script creates the 32 ranges. The 0G Router's own verify_tee flag returned nothing for us, so we verify the signatures ourselves.

background image mobile

Join the mailing list

Get the latest news and updates

Stance | ETHGlobal