How quantumchain-core/sunny-pad works
Sunny Pad is a Solana token launchpad: users are meant to launch tokens and trade them on an Anchor bonding curve, with launch and trading fees distributed on-chain. The sampled web page is informational, while the Rust program implements launch and buy/sell handlers and bonding-curve state. The README also documents token safety, graduation, bundle checks, IPFS, and a Supabase cache; their implementation and wiring are not shown, so those links are documented rather than verified. No sampled frontend code connects wallets or invokes the program.
Main entry points: lib.rs Anchor handlers · page.tsx Home page · sunnypad.ts Fee calculator · sunny-pad IPFS metadata
Components 17
Web App
- Home page
app/src/app/page.tsx - Fee calculator
app/src/lib/sunnypad.ts - App constants
app/src/lib/constants.ts
On-Chain Program
- Anchor handlers
program/programs/sunny-pad/src/lib.rs - Curve state
program/programs/sunny-pad/src/state/bonding_curve.rs - Vault state
program/programs/sunny-pad/src/state/vault.rs
Launch Features
- Token safeguards
program/programs/sunny-pad - Raydium graduation
program/programs/sunny-pad - Bundle check
program/programs/sunny-pad - IPFS metadata
program/programs/sunny-pad
External Services
- Pinata
- Supabase cache
supabase
Other components
- Launchpad user
- Treasury wallet
- Creator wallet
- Competition vault
- Solana network
Connections 16
- Launchpad user → Home page: views
app/src/app/page.tsx - Home page → Fee calculator: fee display
- Fee calculator → App constants: reads fees
app/src/lib/sunnypad.ts - Launchpad user → Anchor handlers: launches or trades
README.md - Anchor handlers → Curve state: updates reserves
program/programs/sunny-pad/src/lib.rs - Anchor handlers → Vault state: initializes vault
program/programs/sunny-pad/src/lib.rs - Anchor handlers → Treasury wallet: transfers fees
program/programs/sunny-pad/src/lib.rs - Anchor handlers → Creator wallet: pays trade fee
program/programs/sunny-pad/src/lib.rs - Anchor handlers → Competition vault: routes SUNNY fee
program/programs/sunny-pad/src/lib.rs - Anchor handlers → Solana network: executes on
README.md - Anchor handlers → Token safeguards: supports
README.md - Anchor handlers → Raydium graduation: graduates at threshold
README.md - Anchor handlers → Bundle check: checks bundles
README.md - Anchor handlers → IPFS metadata: uses metadata URI
README.md - IPFS metadata → Pinata: stores on
README.md - Anchor handlers → Supabase cache: uses cache
README.md