✨ New Features & Enhancements & BUG FIX
Auto Claim Integration
- Add the function of automatically
claiming rewards
for the operator. Now, as long as the operator can complete a round within the specified time, they can automatically claim the reward. - The
stopTally
andclaim
operations are now combined into a single on-chain batch transaction, ensuring atomicity and preventing failures caused by timing inconsistencies. - This significantly improves reliability and ensures that rewards are correctly distributed to all participants as soon as a round ends.
Refactored Logging System
- Replaced the existing logger with the Winston logging framework.
- Log files are now categorized by
roundId
, making it easier for operators to trace activity, debug issues, and analyze round-specific logs.
Metrics & Monitoring Dashboard
- Introduced Prometheus metrics via an embedded Express service and prom-client.
- Tracks key metrics:
- Round lifecycle and tally status
- Task states (e.g., deactivated tasks)
- Operator health and online status (avoid operator disconnection undetected)
- Added Grafana dashboards and alert rules for real-time observability and issue detection.
Bug Fix
Fixed the issue in the 4-2-2-25 type circuit where it could not handle all 625 users being deactivated.
📌This version is more stable and has better monitorability, so please update as soon as possible!