Skip to main content

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:
After:

Default Behavior

  • Markets now use native token by default (WSOL on Solana)
  • GOLD_MINT variable removed - use MARKET_MINT instead
  • 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

Set MARKET_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

  1. Update environment variables:
  2. Update market maker configuration:
  3. 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

This is the canonical WSOL (Wrapped SOL) mint address on Solana.

Token Program

WSOL uses the standard SPL Token program:

Associated Token Program

Code Changes

Keeper Bot

The keeper bot now uses MARKET_MINT instead of GOLD_MINT:

Market Creation

Markets are created with the configured market mint:

Troubleshooting

Market creation fails

Check:
  1. MARKET_MINT is valid Solana address
  2. Token program ID is correct
  3. Authority wallet has SOL for transaction fees
Fix:

Perps oracle errors

Check:
  1. ENABLE_PERPS_ORACLE is set correctly
  2. Perps program is deployed on your network
Fix:

Token not found

Check:
  1. Using correct network (devnet/mainnet)
  2. WSOL mint address is correct
  3. Token program ID matches network
Fix:

References