PSF World
A platform merging poultry farming with a referral-based earnings system. Features product listings, user dashboards, wallet functionality, withdrawal capabilities, and KYC verification.
Overview
PSF World is a multi-role investment and commerce platform where users participate as investors in structured earning programs while also interacting with product-based offerings under a unified system.
The platform is designed around a hierarchical user network, where earnings are distributed across multiple levels based on user activity and investment participation, alongside daily return calculations.
Key Features
- Investment & Earnings System - Users participate in structured investment plans with automated daily return calculations and multi-level commission distribution across referral networks.
- Referral Network Structure - Hierarchical user system supporting up to 30-level earning distribution with dynamic relationship tracking.
- Wallet System - Internal wallet for deposits, earnings, and withdrawals with strict transaction validation to prevent inconsistencies.
- KYC & Withdrawal Flow - Identity verification and controlled withdrawal processing to ensure secure fund handling.
- User Dashboard - Real-time view of investments, earnings, referral structure, and transaction history.
- Admin Control Panel - Central system for managing users, investments, payouts, withdrawals, tickets, and platform analytics.
Tech Highlights
The referral structure is implemented as a hierarchical tree model, with visualisation powered through a 3D graph-based representation to help admins understand network depth and relationships.
Wallet operations are protected using transactional database operations combined with Redis-based locking to prevent race conditions during concurrent payout and withdrawal events.
Cron-based background jobs handle daily ROI calculations and scheduled payout distributions, ensuring consistent and automated financial updates without manual intervention.
Challenges
The most critical challenge was ensuring accuracy and consistency in wallet balances under concurrent operations such as daily ROI distribution, withdrawals, and referral commissions. This was handled through strict transactional boundaries and locking mechanisms.
Another key challenge was efficiently managing deep hierarchical user relationships while keeping both computation and visualization performant as the network scaled.