PYTHFARM

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

PYTHFARM

Created At

ETHGlobal New Delhi

Project Description

A DeFi yield farming protocol that allows users to stake pyUSD for base yield plus randomized bonus rewards powered by Pyth Entropy.

🎯 Core Concept

Base 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

🏗️ Architecture

  • Smart 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 randomness

  • Frontend 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 Stack

  • Blockchain: Ethereum Sepolia (testnet)
  • Smart Contracts: Solidity + Hardhat
  • Randomness: Pyth Entropy for daily winner selection
  • Token: pyUSD staking and rewards
  • Frontend: Next.js + TypeScript

How it's Made

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

background image mobile

Join the mailing list

Get the latest news and updates