You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CARBON_CPM_RATE is a static env var ($0.80) used to calculate developer earnings per Carbon impression (cpmRate / 1000 * 0.70). Carbon's SDK returns no pricing data per impression — the CarbonAd response contains company, description, link, and tracking URLs but zero CPM or bid information. Carbon tracks impressions on their side and pays publishers based on their own accounting.
This means developer earnings recorded in earnings_ledger are estimates that may not match what Carbon actually pays us. Before enabling real USDC payouts, we need to reconcile.
Current behavior
CARBON_CPM_RATE=0.80 set as env var (mid-range of Carbon's published $0.50–$1.10)
Each Carbon impression stamps this rate on the creative row and impression row
Problem
CARBON_CPM_RATEis a static env var ($0.80) used to calculate developer earnings per Carbon impression (cpmRate / 1000 * 0.70). Carbon's SDK returns no pricing data per impression — theCarbonAdresponse contains company, description, link, and tracking URLs but zero CPM or bid information. Carbon tracks impressions on their side and pays publishers based on their own accounting.This means developer earnings recorded in
earnings_ledgerare estimates that may not match what Carbon actually pays us. Before enabling real USDC payouts, we need to reconcile.Current behavior
CARBON_CPM_RATE=0.80set as env var (mid-range of Carbon's published $0.50–$1.10)earnedAmount = (0.80 / 1000) * 0.70 = $0.00056per completed impressionearnings_ledger.amount_usdcas if it were a confirmed amountRequired changes
earnings_ledger.status = 'pending'to indicate unreconciled, move to'confirmed'after reconciliationCARBON_CPM_RATE(or per-impression rates) based on actual observed CPMsContext
CWYDC2QE) with no real payout implicationsearnings_ledger.statusfield already haspending|confirmedenum — designed for thisgitbook-docs/engineering/known-gaps.md