Telegram: https://t.me/+DOylgFv1jyJlNzM0
Why this matters
buildDepositorYieldHistory (backend/src/services/yieldHistoryService.ts, starting around line 150) is a 100+ line exported function that joins pool-level and depositor-level events, reconstructs share-price points, and returns a time series — but it has no doc comment. Other exports in the same file are documented; this one is the most complex and the hardest to onboard to. A JSDoc block describing parameters (address, _token, days, currentSharePrice), the returned YieldHistoryPoint[] shape, and the event types it reads would help contributors.
Acceptance criteria
Files to touch
backend/src/services/yieldHistoryService.ts
Out of scope
- Refactoring the function logic
Telegram: https://t.me/+DOylgFv1jyJlNzM0
Why this matters
buildDepositorYieldHistory(backend/src/services/yieldHistoryService.ts, starting around line 150) is a 100+ line exported function that joins pool-level and depositor-level events, reconstructs share-price points, and returns a time series — but it has no doc comment. Other exports in the same file are documented; this one is the most complex and the hardest to onboard to. A JSDoc block describing parameters (address,_token,days,currentSharePrice), the returnedYieldHistoryPoint[]shape, and the event types it reads would help contributors.Acceptance criteria
buildDepositorYieldHistorydescribing purpose, params, and return value_tokenis currently unused (or document intended use)Files to touch
backend/src/services/yieldHistoryService.tsOut of scope