Commit 2a4c516
Stage 2: Gauge APR calculation with on-chain prices for HyperEVM LP
- Get WHYPE price via Aave V3 oracle on HyperEVM
- Get reward token price via V2 pool reserves (TOKEN/WHYPE)
- Calculate LP TVL from pool reserves + totalSupply
- Compute emission APR: (rewardPerDay × tokenPrice × 365) / stakedTvlUsd
- Add $10 minimum staked TVL to avoid division-by-dust APR spikes
- Result: NEST/WHYPE 31.0% APR, $97K TVL, 87,739 NEST/day
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 94792b7 commit 2a4c516
5 files changed
Lines changed: 14056 additions & 11925 deletions
0 commit comments