Commit ff81e4f
feat(stake): rider "opportunities" chooser with live Morpheus APR
The stake dialog's ETH/USDC toggle becomes a chooser of the opportunities a
rider offers, each with its own APR:
- Morpho USDC (stable) — the existing sponsorship vault, 50/25/25 yield split.
- Morpheus stETH / Morpheus USDC (MOR) — stake on mainnet with the athlete as
referrer; you keep the MOR, Gnars via opt-in donate. Higher, variable upside.
The Morpheus rate is a live on-chain estimate added to /api/yields:
dailyMorEmission × MOR price × 365 ÷ pool TVL (getPeriodRewards +
totalDepositedInPublicPools, MOR/ETH prices from CoinGecko), labelled
"APR · est." since MOR emissions and price move. Verified against live
on-chain data (~17.6% at time of writing).
Selecting a MOR opportunity swaps the flow to the MOR model (you keep it /
athlete referrer bonus / optional donate), shows an estimated yearly value,
a mainnet-gas warning, and routes confirm through useMorpheusStake (which
already approves the distributor). The stable vault path is unchanged. New
copy is localized in en + pt-br.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 7f5c080 commit ff81e4f
4 files changed
Lines changed: 320 additions & 103 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
101 | 124 | | |
102 | 125 | | |
103 | 126 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
101 | 124 | | |
102 | 125 | | |
103 | 126 | | |
| |||
0 commit comments