GET /api/staking
Fetches current APY data and pool statistics for all supported Vesu lending pools.Response
Returns an array of pool data objects:Pool identifier:
prime or re7-xbtcHuman-readable pool name
Vesu pool contract address
Base lending APY from borrower interest (%)
STRK BTCFi Season rewards APR (%)
Combined APY: supply APY + BTCFi APR (%)
Pool utilization rate (0-1)
Total value locked in USD
Total WBTC supplied (human-readable BTC units)
Current BTC price in USD
Borrow APR (%)
Example Request
Example Response
Supported Pools
Source:/home/daytona/workspace/source/src/app/api/staking/route.ts:5
Vesu PRIME
- Pool ID:
0x0451fe483d5921a2919ddd81d0de6696669bccdacd859f72a4fba7656b97c3b5 - vToken:
0x04ecb0667140b9f45b067d026953ed79f22723f1cfac05a7b26c3ac06c88f56c - Symbol: vWBTC
- Risk Level: Low (1/5)
- Description: Supply WBTC to Vesu’s flagship PRIME lending pool
Vesu Re7 xBTC
- Pool ID:
0x03a8416bf20d036df5b1cf3447630a2e1cb04685f6b0c3a70ed7fb1473548ecf - vToken:
0x0131cc09160f144ec5880a0bc1a0633999030fa6a546388b5d0667cb171a52a0 - Symbol: vWBTC-Re7xBTC
- Risk Level: Low-Medium (2/5)
- Description: Enhanced BTCFi rewards during incentive program
Data Source
Implementation:/home/daytona/workspace/source/src/app/api/staking/route.ts:10
The endpoint uses fetchVesuWbtcData() from the Vesu API client to fetch real-time pool data including:
- On-chain pool state (utilization, TVL)
- Oracle price feeds (BTC price)
- BTCFi Season rewards APR from Vesu’s rewards program
Caching
The API includes cache headers:- 30-second CDN cache
- Up to 60 seconds of stale data during revalidation
- Reduced load on Vesu API endpoints
Frontend Integration
Use theuseStakingPools() hook for automatic polling and state management: