Summary
The server needs to read the global trading paused state from the contract to expose it via the GET /protocol/status endpoint. A get_protocol_status view function that returns globalTradingPaused, protocolFeeBps, treasuryAddress, and lockupDurationSeconds should be added.
Scope
- Add get_protocol_status() as a read-only view function requiring no authentication
- Return global_trading_paused, protocol_fee_bps, treasury_address, lockup_duration_seconds, and min_investment_amount from persistent config storage
- Bump the TTL of all read config entries during the call
- Return sensible defaults for any config entry that has not yet been set
- This function must not panic under any circumstances
Acceptance Criteria
ETA: 24 hours
Coordinate on Telegram
Summary
The server needs to read the global trading paused state from the contract to expose it via the GET /protocol/status endpoint. A get_protocol_status view function that returns globalTradingPaused, protocolFeeBps, treasuryAddress, and lockupDurationSeconds should be added.
Scope
Acceptance Criteria
ETA: 24 hours
Coordinate on Telegram