Skip to content

feat: Implement issues #1228, #1239, #1227, #1238 - #1299

Merged
Junirezz merged 2 commits into
Junirezz:mainfrom
trinnode:issues-resolved-batch3
Aug 27, 2026
Merged

feat: Implement issues #1228, #1239, #1227, #1238#1299
Junirezz merged 2 commits into
Junirezz:mainfrom
trinnode:issues-resolved-batch3

Conversation

@trinnode

Copy link
Copy Markdown
Contributor

Summary

Implements 4 new features for YieldVault-RWA:

#1228: Mock BENJI Strategy Connector

  • Added MockBenjiStrategy contract in contracts/mock-strategy/src/mock_benji_strategy.rs
  • Implements the same StrategyTrait interface as the production BenjiStrategy
  • Configurable NAV for testing yield accrual
  • 5 passing tests covering initialization, deposit/withdraw, epoch advancement, NAV updates

#1239: Localized Number Formatting

  • Added useLocalizedFormat hook in frontend/src/hooks/useLocalizedFormat.ts
  • Provides locale-aware formatting functions (number, currency, percent, compact, date)
  • Automatically uses user's preferred locale from PreferencesContext
  • 7 passing tests

#1227: Vault Health Metrics Dashboard

  • Added VaultHealthDashboard page at /vault-health route
  • Displays vault health status with summary cards (healthy count, avg latency, uptime)
  • Time range filtering (24h, 7d, 30d, All)
  • Backend API endpoint mounted at /api/v1/vault/summary
  • Updated vaultHealthApi.ts with typed metrics response

#1238: Audit Log for Vault State Changes

  • Added audit_events.rs contract module with timestamped events for deposits, withdrawals, strategy switches, and parameter changes
  • Added AuditLog page at /audit-log route with operation and actor filtering
  • Backend auditLogEndpoints.ts with paginated endpoint at /api/v1/audit-logs
  • Integrated audit event emission into vault deposit, withdraw, and set_strategy functions

Pre-existing Fixes

  • Fixed lint/type errors in NetworkSwitchNotification, TransactionStatusModal, ViewState, etc.
  • Zero new CI failures introduced

Closes #1228
Closes #1239
Closes #1227
Closes #1238

trinnode and others added 2 commits August 27, 2026 05:56
…unirezz#1238

- Junirezz#1228: Add MockBenjiStrategy contract implementing StrategyTrait for integration testing
- Junirezz#1239: Add useLocalizedFormat hook for locale-aware number formatting
- Junirezz#1227: Add VaultHealthDashboard page with backend API endpoint
- Junirezz#1238: Add AuditLog page with backend endpoint and contract audit events

Also includes pre-existing lint/type fixes for CI health.
@drips-wave

drips-wave Bot commented Aug 27, 2026

Copy link
Copy Markdown

@trinnode Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@Junirezz
Junirezz merged commit e6e4ea9 into Junirezz:main Aug 27, 2026
10 of 24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants