YGG Redeem API Documentation
🎮
Version 1.1 | Updated: August 6th, 2025
Overview
The YGG Redeem platform manages all payouts in the YGG Play gaming ecosystem. Partner games use this platform to allow their players to convert in-game "points" into $YGG tokens.
How It Works
The redemption process follows a simple but secure flow:
- Players earn points in partner games
- Players request redemption through the YGG Redeem platform
- YGG verifies points with partner APIs
- Points are deducted from the game account
- $YGG tokens are distributed to the player's wallet
Key Features
- 🔐 Secure Authentication with API keys and HMAC signatures
- 💰 Bonus Mechanisms for large redemptions
- 🔄 Automatic Reversals for failed transactions
- 📊 Real-time Price Updates from CoinMarketCap
- 🌐 Multi-chain Support (Abstract, Ronin, Ethereum)
- 📈 Comprehensive Logging for audits and debugging
Redemption Formula
The amount of $YGG tokens a user receives is calculated using this formula:
$YGG = GamePoints × ConversionRate × Price<USD/YGG> × (1 + BonusRate)Example Calculation
// User redeems 5,000 points
GamePoints = 5000
// 1 Point = 0.01 USD
ConversionRate = 0.01
// 1 YGG = 0.15 USD
Price<YGG/USD> = 0.15
Price<USD/YGG> = 1 / 0.15
// 2% bonus for redemptions >= 5,000 points
BonusRate = 0.02
// Final calculation
YGGAmount = (5000 × 0.01 × (1 / 0.15)) × (1 + 0.02) = 340 YGGQuick Start
🚀
Ready to integrate? Start with our Getting Started guide to set up your partner APIs.
Integration Checklist
- Read the Authentication requirements
- Implement the required APIs
- Test with YGG development team
- Configure production endpoints
- Go live! 🎉