What problem does it solve? AI agents and developers frequently misintegrate Pyth oracles on EVM chains: exposing updatePriceFeeds as a standalone function (enabling sandwich attacks), hardcoding update fees, mishandling negative price exponents, ignoring confidence intervals, and using wrong per-chain contract addresses. This Skill provides correct, security-hardened integration patterns for Pyth's pull-based oracle model. ## Core Features & Use Cases - Anti-Sandwich Integration Patterns: Atomic updatePriceFeeds + price read in a single transaction, with dynamic fee computation via getUpdateFee and confidence interval validation. - Hermes API & TypeScript Client: Fetch latest or historical price updates from Hermes, stream prices via SSE, and submit updates on-chain using viem. - Reference Data: Per-chain Pyth contract addresses, bytes32 feed IDs for major pairs, error code tables with fixes, and a troubleshooting checklist. - Advanced Flows: Multi-feed batch updates, historical benchmark prices via parsePriceFeedUpdates, sponsored feed fallback, and Express Relay integration for MEV-protected liquidations. - Use Case: Build a lending protocol on Arbitrum that liquidates undercollateralized positions using fresh ETH/USD prices, with confidence validation and MEV-protected liquidation routing through Express Relay. ## Quick Start Use the pyth-evm skill to write a Solidity contract that updates and reads the ETH/USD Pyth price feed atomically on Arbitrum with confidence validation.