This plan ties score balances to real Stripe inflows while pacing redemptions so the account stays healthy. Buying, selling, and subscriptions all mint points through the same ledger with reserve floors, daily caps, and cooldowns that prevent drains.
Treat Stripe payments and subscriptions as on-ramps for minting points that reflect each member’s contribution.
Use reserve floors, pacing caps, and cooldowns so no single request can empty the Stripe balance.
Create a clear marketplace where people can purchase score or redeem it back into the pool with approvals.
gun.get('stripe').get('events') and customer metadata under gun.get('stripe').get('customers').gun.get('score').get('ledger') with event ids, customer ids, amounts, currencies, and rule versions.gun.get('score').get('totals') for quick UI reads.Mint 10 points per net dollar (configurable) with currency multipliers and round down to avoid over-awarding.
Add a recurring monthly bonus after invoice.payment_succeeded, capped to one bonus per period.
Mirror 10% of the subscription bonus to the referrer when customer.referrerPub is present.
Lock 35% of the Stripe balance as untouchable reserve before any payout is approved.
Limit daily unlocks to 10% of available funds or a fixed ceiling per currency, whichever is lower.
Enforce 7-day waits between user withdrawals and require dual approvals for requests over $500 equivalent.
Checkout sessions tagged with userPub mint points from the payment amount and log to the ledger.
Redemption requests sit in score/redemptions until reserve, pacing, and cooldown checks mark them approved.
Publish live pointValue per currency at score/pricing, net of a 2–5% sustainability fee.
STRIPE_WEBHOOK_SECRET and deduplicate by event id.stripe/events.score/totals.lastEventId on each Stripe customer node for replay protection.Publish weekly inflow growth bonuses, award larger referral shares as more active subscribers join, and grant compounding boosters for members who defer redemptions to keep the shared pool growing.
score/totals with reserve and pacing checks.userPub metadata so monthly bonuses post automatically.