Analytics & Monitoring
StoneYield ships a set of view-only calls for dashboards, analytics, and alerting systems. They surface core state so integrators and users can track health without off-chain guesses.
Protocol Statistics
The getProtocolStats() function returns high-level information about current protocol state:
totalSupply: Total STUSD in circulationtotalUSDCDeposited: Aggregate USDC ever depositedtotalRewardsDistributed: Total rewards mintedtotalActiveStakers: Count of unique hedging participantscontractUSDCBalance: USDC balance held by protocolisPaused: Emergency state of contract
Poll these values to build charts, spot growth trends, or flag anomalies.
Daily Limits Overview
The getDailyLimitStatus() function provides real-time usage data for current 24-hour cycle:
depositUsedanddepositLimitmintUsedandmintLimitresetTime: Timestamp when daily counters reset
Useful for congestion monitoring, usage gauging, or alert thresholds.
Participant-Level Insight
The following functions expose per-participant analytics:
-
getUserInfo(address):isLocked: Whether the participant currently lockedremainingTime: Seconds left until unlocktotalBalance: Current STUSD balancestakedAmount: All-time USDC deposited by participant
-
getAvailableActions(address):- Boolean flags showing if participant can transfer, unlock, approve, or interact with DEX
These help power participant dashboards, eligibility checks, or UI state toggles.
Events for Indexing
All key operations in protocol emit events such as:
Deposited,Unlocked,RewardsDistributed,EarlyRedeemedDexWhitelisted,Paused,Unpaused,EmergencyWithdraw
These can index using The Graph, SubQuery, or any event-driven backend to provide live updates and analytics feeds.
Summary
StoneYield offers inexpensive read access to protocol and user state. These endpoints increase transparency, improve tooling, and shrink reliance on off-chain assumptions when integrating or building on top.