← Back to home

PYTHFARM

Yield farming protocol that allows users to stake pyUSD for base yield plus randomized bonus rewards

Problem Statement

A DeFi yield farming protocol that allows users to stake pyUSD for base yield plus randomized bonus rewards powered by Pyth Entropy.🎯 Core ConceptBase Staking: Users stake pyUSD with flexible deposits/withdrawals (no lock-up) Liquidity Pool Yield: 80% of rewards from pyUSD liquidity pool farming Daily Random Rewards: 20% of pool fees distributed daily to random stakers via Pyth Entropy Fair Distribution: Transparent, verifiable on-chain randomness for winner selection🏗️ ArchitectureSmart Contracts Staking Contract: Handles pyUSD deposits, withdrawals, and base yield calculation Reward Distribution: Manages random reward pools and distribution logic Entropy Integration: Interfaces with Pyth Entropy for secure randomnessFrontend Staking Interface: Clean UI for staking/unstaking pyUSD Rewards Dashboard: Real-time view of earnings and random reward history Analytics: APY calculator, reward probability visualization🔧 Tech StackBlockchain: Ethereum Sepolia (testnet)Smart Contracts: Solidity + HardhatRandomness: Pyth Entropy for daily winner selectionToken: pyUSD staking and rewardsFrontend: Next.js + TypeScript

Solution

Created this in very high stress, as the sdk and randomness of pyth was not working properly, so had to figure out few things, but managed to do it with the help of mentors.We used pyUSD as a token on sepolia testnet, which users can stake, and used pyth to reward bonuses to random users

Hackathon

ETHGlobal New Delhi

2025

Contributors