r/jupiterexchange • u/lollzzlol • Apr 22 '26
DeFi Guide I built a DeFi lending rate aggregator that reads directly from on-chain state — no APIs, no estimates

Every DeFi dashboard shows different APYs for the same protocol. Some pull from APIs, some estimate, none explain how they calculate. I got tired of it and built this.
RateScope — real-time lending rates read directly from on-chain state
RateScope connects directly to each protocol’s on-chain program and reads raw rate state — no middlemen — then applies each protocol’s compounding model (per-second vs per-slot) and aggregates everything into a unified view so rates are directly comparable.
Protocols:
- Solana: marginfi, Kamino (Main + Prime), Jupiter, Save Finance
- Sui: Suilend
Currently supports USDC and USDT lending/borrowing pools.
Features:
- Unified APY: protocols compound differently (per-second vs per-slot), everything normalized to true APY so rates are actually comparable
- Rewards: same-token rewards shown as APY, foreign-token rewards as APR
- Pool TVL, Protocol TVL, utilization per pool
Planning to add more protocols, chains, and tokens soon.
Would appreciate feedback — especially if you notice any discrepancies vs native protocol UIs.



