Endorphin is a non-custodial DeFi wellness dapp where users stake USDC into time-boxed fitness competitions. On join, the pool converts USDC to PT-USDe on Pendle to lock a fixed APR; users receive non-transferable sMOL (Staked molecules” as receipts of their pro-rata position. A Flare-backed oracle posts Strava activity normalized to “Effort Points”. at the end; participants who meet the goal claim the entire PT-USDe pot pro-rata (optionally auto-swapped to USDC), while non-finishers are slashed. The factory→pool architecture keeps rules transparent, payouts deterministic.
Fitness challenges fade without stakes. Endorphin aligns incentives by putting real value on consistency: finishers gain, quitters forfeit. The goal for v0 is an auditable, demo-ready pipeline with minimal trust and simple economics
Constraint: choose T ≥ liveEnd + buffer, so the PT maturity never precedes settlement.
join(usdcAmount)
.