Thaamba

Thaamba uses SEBI & Nasdaq inspirred circuit breakers and price bands to limit market premium gaps..

Thaamba

Created At

ETHGlobal Mumbai

Project Description

Thaamba takes inspiration from the circuit breaker and price-band protections used in India's SEBI regulated markets. Those safeguards limit extreme price movements and pause trading during severe volatility, giving participants time to reassess rather than letting disorderly trading continue unchecked.

Thaamba adapts that principle to onchain markets. When the price of a real-world stock changes but its onchain token trades at a different price, Thaamba steps in. Trades that bring the token's price closer to the stock's latest market price are allowed, while trades that push the two prices further apart are blocked. This directional protection lets the market correct the gap without making it worse. A full circuit breaker can stop trading in both directions when necessary.

This is an adaptation of familiar market safeguards of SEBI's rules & regulatory compliance.

How it's Made

The core trading protection is a custom Uniswap v4 hook. A policy receiver stores the latest reference price, price bands, trading mode, halt status and update timestamp. The hook uses this policy to enforce safeguards directly during swaps. Directional protection allows trades that bring the onchain token price closer to the real-world stock price and rejects trades that widen the gap. A full circuit breaker stops trading in both directions, while freshness checks prevent trading against outdated policy data.

Our Chainlink CRE workflow reads the stock’s off-chain(real world) reference price, whether trading is halted, and its market surveillance status from a mock exchange API. It converts those inputs into an onchain policy that sets the permitted price range and whether trading should continue, become restricted, or stop. The policy report is delivered to the receiver, which supplies the rules enforced by the Uniswap hook. For the Sepolia prototype, we use controlled mock exchange data and a mock forwarder to demonstrate how updates affect trading.

The listing lifecycle combines a demo token, an auction-based launch using Uniswap’s Continuous Clearing Auction infrastructure, and a protected Uniswap v4 secondary market. The auction establishes an initial price before secondary trading begins. ENS provides human-readable listing identities through ticker subnames.

The frontend includes the trader interface, issuer controls and market charts built with TradingView Lightweight Charts. Wallet interactions use viem to encode contract calls and submit wallet-signed transactions. The TypeScript API serves listing information and coordinates the issuer interface with the contracts.

background image mobile

Join the mailing list

Get the latest news and updates