PegPulse

Monitor stablecoin de-peg risk in real time and hedge it with on-chain prediction markets.

PegPulse

Created At

ETHGlobal Cannes 2026

Project Description

PegPulse helps users track stablecoin health, USDC, EURC and act on it before it's too late. Instead of just watching a price feed and hoping for the best, users can open hedge positions in on-chain prediction markets directly from the dashboard.

The app pulls live price and TVL data from DefiLlama and CoinMarketCap, runs a risk scoring model, and surfaces the markets most relevant to current conditions. Bets resolve on-chain, winnings are claimable without trust, and the whole flow takes under a minute.

Built on Arc Network using Solidity smart contracts, a Next.js frontend, and wagmi for wallet interactions. The goal was simple: make de-peg risk something you can actually do something about.

How it's Made

The contracts are written in Solidity and deployed on Arc Network. Arc was a natural fit because its native gas token is USDC, which means every position, payout, and fee in our prediction markets happens in USDC without any wrapping or token swaps. One side effect of this: Arc's USDC has 18 decimals like ETH, so we just use viem's formatEther everywhere. Technically hacky, practically perfect.

For real-time stablecoin data we use two external APIs. DefiLlama gives us TVL history and circulating supply for USDC and EURC, we use this to detect liquidity stress over time. CoinMarketCap gives us live peg prices, which we run through a risk scoring model on the frontend. The further a coin drifts from its peg, the higher its risk score and the more its markets get surfaced. Neither integration required an oracle on-chain, the data lives in the UI layer and only influences what users see, not what the contract trusts.

The frontend is Next.js with wagmi v2 and viem. We use Next.js API routes as a thin proxy for DefiLlama and CoinMarketCap calls so keys stay server-side and responses get normalized before hitting the client. All wallet interactions, connecting, taking positions, claiming winnings, go through wagmi with no ethers.js anywhere.

EURC being a Circle product made it a good second asset to track alongside USDC. Cross-currency peg risk behaves differently from USD-pegged risk, so having both in the dashboard gives the tool more real-world utility for anyone holding EUR-denominated stablecoin exposure.

background image mobile

Join the mailing list

Get the latest news and updates