Skip to content

Conversation

@blockwiz05
Copy link

Overview

This PR introduces Pharos Raffle, a complete decentralized raffle system that demonstrates Pyth Entropy integration for provably fair winner selection.

Key Features:

  • 🎫 Create raffles with custom parameters (prize type, ticket price, duration, etc.)
  • 🎲 Provably fair randomness using Pyth Entropy
  • 💰 Support for PYUSD token prizes
  • 🏆 Leaderboard showing top participants
  • 👤 User profile pages with raffle history
  • 📱 Responsive design for mobile and desktop
  • 🔄 Real-time updates via React Query

How It Works

  1. Admin can create raffles with custom parameters
  2. Participants buy PYUSD-backed tickets
  3. Raffle closes automatically (time/max tickets reached)
  4. Contract requests randomness from Pyth Entropy
  5. Winner selected using weighted ticket distribution
  6. Prize distributed to winner

Deployment

Configured for Blast Arbitrum sepolia testnet. Can be adapted for any EVM network supporting Pyth Entropy.

@blockwiz05 blockwiz05 marked this pull request as draft October 26, 2025 14:12
@blockwiz05 blockwiz05 marked this pull request as ready for review October 26, 2025 14:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant