Invariant

Atomic Delta-neutral hedging vault on Sui using PTBs for zero-execution risk and stable yield.

Invariant

Created At

HackMoney 2026

Project Description

Invariant is a sophisticated DeFi protocol built on Sui that eliminates the "execution gap" inherent in traditional hedging strategies. By leveraging Sui's unique Programmable Transaction Blocks (PTBs), we have created an atomic Delta-neutral vault. When a user deposits volatile assets (such as SUI), the system automatically executes a complex, multi-leg strategy—collateralizing the asset in lending protocols like Scallop or Navi, borrowing USDC, and opening a corresponding short position on DeepBook—all within a single, atomic transaction. This architecture guarantees that the portfolio reaches a Delta-neutral state without the risk of partial execution or price slippage between steps. Beyond simple hedging, the vault proactively captures funding rate premiums on DeepBook to provide sustainable yield while enforcing a strict 80% LTV safety margin to protect the treasury against extreme market volatility.

How it's Made

The project is built using a Sui-native architecture, utilizing Move for smart contracts and TypeScript for the SDK and orchestration layer. The core logic resides in vault.move, which handles asset locking and object-centric authorization, while risk_manager.move enforces financial parameters. The engine of the project is the TypeScript SDK—specifically the ptb_builder.ts—which uses Sui's TransactionBlock to orchestrate interactions across DeepBook V3, lending protocols (Scallop/Navi), and price oracles (Pyth/Switchboard). A key technical highlight is our "atomic orchestration" logic: we piece together lending, borrowing, and trading into one PTB, ensuring that if any leg fails due to liquidity or oracle deviation, the entire sequence reverts to prevent "naked" exposure. We also implemented a custom off-chain simulation in the SDK to pre-calculate slippage and price impact, allowing us to optimize the PTB construction before it is ever submitted to the network.

background image mobile

Join the mailing list

Get the latest news and updates

Invariant | ETHGlobal