Loading video player...
In this video I demonstrate PegSentinel, a prototype stablecoin defense mechanism built using Uniswap V4 hooks. PegSentinel monitors liquidity conditions and automatically adjusts the pool configuration to help defend the peg of a stablecoin pair. The hook architecture of Uniswap V4 enables programmable liquidity management directly inside the AMM. In this demo I show: • The PegSentinel architecture • How the Uniswap V4 hook interacts with the pool • Liquidity monitoring and peg defense logic • A working prototype interface PegSentinel is part of my research into automated stablecoin risk management and protocol design in DeFi. Technologies used: • Solidity • Uniswap V4 hooks • Foundry • React frontend If you are interested in DeFi protocol design, AMM architecture, or Uniswap V4 development, feel free to follow the channel. GitHub: https://github.com/hwdeboer1977/PegSentinel #defi #uniswap #uniswapv4 #web3dev #smartcontracts