← Back to home

HappyHODLers

This AI agent utilizes Pyth Price Feeds, integrates Pyth Entropy, and enhances the outcomes

Problem Statement

Our AI agent utilizes Pyth Price Feeds to access high-fidelity financial data, enabling it to calculate and execute DeFi transactions with peak capital efficiency. Furthermore, it integrates Pyth Entropy to introduce verifiable randomness into the execution, mitigating front-running and improving outcomes. This represents the evolution of trading bots—decentralized and transparent.

Solution

We developed DeFi Sentinel by building a robust React frontend for user interaction, coupled with a series of sophisticated Solidity smart contracts that form the agent's on-chain logic. The core of our integration was embedding Pyth Network's pull-oracle model directly into the contract's decision-making engine. This allows the agent to fetch, pay for, and verify the absolute latest price feeds on-demand right before executing a transaction, ensuring every decision is based on the most current and tamper-proof market data available across over 100 blockchains.A particularly ingenious aspect of our design is the dual-layer use of Pyth's services to create a proactive and stealthy agent. We cross-reference multiple Pyth Price Feeds to identify arbitrage and optimal trade routes in a single transaction, but the masterstroke is using Pyth Entropy to inject verifiable randomness into the transaction's execution timing and route selection. This makes the agent's behavior unpredictable, effectively camouflaging its actions in the mempool to mitigate front-running and MEV extraction, transforming it from a simple executor into an intelligent, adaptive, and resilient DeFi participant.

Hackathon

ETHGlobal Buenos Aires

2025

Contributors