StableArb
Zero-latency multi-chain stablecoin powered by Chainlink CRE decentralized peg defense.
What it is
What it is:
StableArb is an autonomous, multi-chain stablecoin infrastructure completely shielded by a decentralized guardian.
What problem it solves:
The stablecoin trilemma. Centralized, fiat-backed stablecoins compromise on trust and introduce counterparty risks, while algorithmic and crypto-backed stablecoins frequently suffer from smart contract latency. During market crashes, traditional protocols rely on on-chain liquidations or reactive arbitrage that gets bottlenecked by severe network congestion (gas wars) exactly when the protocol needs to act instantly. When markets crash, smart contracts are effectively blind.
How it works:
StableArb solves this latency by executing zero-latency peg defenses using Chainlink Custom Request Environment (CRE). Instead of lagging on-chain liquidators, our off-chain CRE workflow actively monitors the peg using high-frequency Chainlink Data Streams. When a depeg event occurs, the Decentralized Oracle Network (DON) reaches consensus in real-time, calculates an action band, and successfully dispatches a cryptographically signed payload to our PegDefender smart contract. The contract then autonomously executes a BUYBACK or MINT operation to restore the peg. Concurrently, it triggers a CCIP message to propagate the precise supply adjustment synchronously across Layer-2 networks.
How it Works
StableArb's architecture consists of off-chain intelligence and multi-chain execution:
- Chainlink CRE (Custom Request Environment): We built a customized TypeScript off-chain workflow deployed across the DON. The workflow comprises a peg-monitor.ts (for data ingestion) and an action-dispatcher.ts (for decision making and threshold execution).
- Chainlink Data Streams: We query low-latency, high-frequency pricing data through the CRE to detect micro-deviations in the SUSD peg instantly.
- Chainlink CCIP: The CrossChainBuyback contract leverages CCIP to seamlessly broadcast and enforce supply adjustments on Arbitrum Sepolia parallel to the Ethereum Sepolia primary contract.
- Smart Contracts: Developed in Solidity using Hardhat (SUSD token, StableArbVault for ETH-collateralized minting, and PegDefender for decoding CRE reports and enforcing on-chain execution safeguards like 5-minute cooldown blocks).
- Frontend Dashboard: A Next.js/Tailwind CSS interactive dApp mapping out live peg metrics, collateral ratios, and chronological incident ledgers using Wagmi.
Links
Created by
- Tomiwa Adeyemi
- Okikiola Akintunde