Summary
The client needs a single endpoint to check whether global trading is paused and retrieve protocol-wide config values. A GET /protocol/status endpoint reading from the get_protocol_status contract view function should be added.
Scope
- Add GET /protocol/status endpoint (no auth required)
- Call the get_protocol_status contract view function and return globalTradingPaused, protocolFeeBps, treasuryAddress, lockupDurationSeconds, and minInvestmentAmount
- Cache the response in Redis for 30 seconds
- Invalidate the cache when an admin updates any protocol config value
- Return the pausedAt timestamp from the database when globalTradingPaused is true
Acceptance Criteria
ETA: 12 hours
Coordinate on Telegram
Summary
The client needs a single endpoint to check whether global trading is paused and retrieve protocol-wide config values. A GET /protocol/status endpoint reading from the get_protocol_status contract view function should be added.
Scope
Acceptance Criteria
ETA: 12 hours
Coordinate on Telegram