Contract Details
Tech Stack
Python 3.10+
Chains
Any EVM
Description
Real-time stablecoin depeg monitoring agent with configurable triggers. Monitors price feeds for deviation from peg, supports multiple stablecoins, and dispatches alerts via console, file, or webhook.
Features
- ✓ Multi-stablecoin monitoring (USDC, USDT, DAI, FRAX, etc.)
- ✓ Configurable depeg thresholds per stablecoin
- ✓ Severity levels: info, warning, critical
- ✓ Multiple alert channels: console, file, webhook
- ✓ Price feed abstraction (plug in any data source)
- ✓ Cooldown-based alert deduplication
- ✓ JSON-formatted alert payloads
- ✓ Comprehensive pytest suite
// SPDX-License-Identifier: MIT pragma solidity ^0.8.24; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; /// @title Depeg Detector /// @notice Real-time stablecoin depeg monitoring with configurable alerts. contract DepegDetector { address public immutable owner; uint256 public constant VERSION = 1; event Initialized(address indexed deployer); constructor() { owner = msg.sender; emit Initialized(msg.sender); } // ... full implementation in purchased package }