How It Works
Architecture
BAGSxBAGS is built on:
- Solana - Fast, low-cost blockchain
- bags.fm tokens - BAGS ecosystem tokens
- Off-chain API - Manages collab state and eligibility
- On-chain verification - Token balances and swap history
Flow
1. Collab Creation
Creator → Deposits tokens → Creates collab → Pool initializedThe creator:
- Selects two BAGS tokens
- Sets participation requirements
- Deposits tokens to the reward pool
- Collab goes live
2. Participation
User → Checks eligibility → Enters collab → Slot securedWhen joining:
- System verifies token balances on-chain
- System verifies bags.fm swap history
- Entry is recorded with balance snapshot
- Participant count increases
3. Rewards
Collab ends → Pool divided → Users claim → Tokens sentAt conclusion:
- Status changes to "Claimable"
- Reward per user = Pool / Participants
- Each user claims their share
- Tokens transferred from operator wallet
Eligibility Verification
Token Balance Check
We query the Solana blockchain to verify you hold the minimum required tokens:
balance = getTokenAccountBalance(wallet, mint)
eligible = balance >= minimumRequiredSwap Verification
We check your transaction history to verify you've swapped on bags.fm:
transactions = getSignaturesForAddress(wallet)
swapFound = transactions.some(tx => isBagsSwap(tx))Security
- No token deposits required to join - You keep your tokens
- On-chain verification - Balances checked directly on Solana
- Equal distribution - No favoritism, everyone gets the same share
- Transparent - All transactions visible on Solana Explorer
