Solana Market WSOL Migration
This document describes the migration from GOLD token to WSOL (Wrapped SOL) as the default market token for Hyperscape’s prediction markets.Overview
As of February 2026, Hyperscape’s Solana prediction markets use WSOL (Wrapped SOL) as the default market token instead of a custom GOLD token. This change simplifies deployment and allows markets to use the native token of each chain.What Changed
Environment Variables
Before:Default Behavior
- Markets now use native token by default (WSOL on Solana)
- GOLD_MINT variable removed - use
MARKET_MINTinstead - Backward compatible - can still use custom tokens by setting
MARKET_MINT
Configuration
Use WSOL (Default)
No configuration needed. WSOL is used automatically:Use Custom Token
SetMARKET_MINT to your token address:
Token Program IDs
Perps Oracle Changes
What Changed: Perps oracle updates are now disabled by default because the program is not deployed on devnet.Configuration
Impact
- Devnet: Perps oracle disabled (program not available)
- Mainnet: Can be enabled when program is deployed
- No errors: Gracefully skips oracle updates when disabled
Migration Guide
From GOLD to WSOL
-
Update environment variables:
-
Update market maker configuration:
-
Restart server:
Existing Markets
Important: Existing markets using GOLD token will continue to work. This change only affects new markets created after the migration. To continue using GOLD:Benefits of WSOL
1. Simplified Deployment
- No custom token required - uses native SOL
- No token minting - WSOL is always available
- No liquidity bootstrapping - SOL is liquid on all DEXs
2. Better UX
- Familiar token - users already have SOL
- No wrapping needed - automatic SOL ↔ WSOL conversion
- Lower friction - no need to acquire custom token
3. Cross-Chain Compatibility
- Native token per chain - WSOL on Solana, WETH on Ethereum, etc.
- Consistent pattern - always use wrapped native token
- Easy bridging - native tokens have best bridge support
Technical Details
WSOL Address
Token Program
WSOL uses the standard SPL Token program:Associated Token Program
Code Changes
Keeper Bot
The keeper bot now usesMARKET_MINT instead of GOLD_MINT:
Market Creation
Markets are created with the configured market mint:Troubleshooting
Market creation fails
Check:MARKET_MINTis valid Solana address- Token program ID is correct
- Authority wallet has SOL for transaction fees
Perps oracle errors
Check:ENABLE_PERPS_ORACLEis set correctly- Perps program is deployed on your network
Token not found
Check:- Using correct network (devnet/mainnet)
- WSOL mint address is correct
- Token program ID matches network
Related Documentation
- packages/server/.env.example - Configuration reference
- docs/duel-stack.md - Duel system architecture
- packages/gold-betting-demo/README.md - Betting demo