Skip to content

feat(maple): add syrupUSDG pool monitoring - #358

Draft
spalen0 wants to merge 2 commits into
mainfrom
syrup-g
Draft

spalen0 wants to merge 2 commits into
mainfrom
syrup-g

Conversation

@spalen0

@spalen0 spalen0 commented Sep 14, 2026

Copy link
Copy Markdown
Collaborator

Summary

Maple Finance launched a new syrupUSDG pool. This PR extends the monitoring stack to cover it alongside the existing syrupUSDC pool.

New Pool Details

Pool Address TVL (approx) Asset
syrupUSDC ~50M USDC
syrupUSDT ~47M USDT
syrupUSDG ~44M USDG

Additional syrupUSDG contracts:

  • Manager:
  • Withdrawal Manager:
  • Pool Delegate Cover:
  • Strategy: (~35M AUM)

Changes

  • Added
  • Updated and to include all 3 pools
  • Updated docstrings and warning messages

  • Added to DeFiLlama price monitoring list for depeg alerts

  • Added dataclass and parameterized on-chain checks per pool
  • Added full on-chain monitoring for syrupUSDG:
    • PPS decrease alerts
    • TVL change alerts (≥15%)
    • Pool liquidity (cash vs pending withdrawals)
    • Withdrawal queue vs TVL (>1%)
    • Delegate cover balance tracking
  • syrupUSDC behavior preserved exactly (same cache keys, same contract addresses)
  • Loan-manager unrealized-loss checks only run when both fixed-term and open-term managers are configured

  • Updated docs to mention syrupUSDG
  • Added new contract addresses to key contracts table
  • Updated monitor descriptions

  • Updated Maple protocol description and monitor metadata

Testing

  • — all pass
  • All checks passed! and 1 file reformatted, 175 files left unchanged — clean

- Extend collateral.py GraphQL queries to cover syrupUSDG alongside syrupUSDC/syrupUSDT
- Add syrupUSDG to stables/main.py DeFiLlama peg monitoring
- Refactor maple/main.py with per-pool PoolConfig dataclass to monitor both pools
- Add syrupUSDG on-chain checks: PPS, TVL, liquidity, withdrawal queue, delegate cover
- Update README.md and monitoring.yaml metadata
- Lower syrupUSDG depeg threshold to 1.0 (PPS ~1.01 is below the 1.1 used for older syrup pools)
- Disable delegate cover check for syrupUSDG since its PoolDelegateCover is unfunded

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant