[377][378][379][380] [BE-029–BE-032] Auto-sweep worker, yield calculator, toggle API, and report notifications#426
Merged
ONEONUORA merged 1 commit intoJun 27, 2026
Conversation
|
@josephchimebuka 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! 🚀 |
…ifications Closes Fracverse#377 Closes Fracverse#378 Closes Fracverse#379 Closes Fracverse#380 - BE-029: auto-sweep scheduler background worker - BE-030: POST /api/yield/toggle-auto preference endpoint - BE-031: off-chain real-time yield calculator - BE-032: daily/weekly yield report notification scheduler Co-authored-by: Cursor <cursoragent@cursor.com>
This was referenced Jun 27, 2026
842102e to
1c2d0ff
Compare
This was referenced Jun 27, 2026
ONEONUORA
approved these changes
Jun 27, 2026
ONEONUORA
left a comment
Contributor
There was a problem hiding this comment.
Great job @josephchimebuka
Thank you for your contribution
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #377
Closes #378
Closes #379
Closes #380
Summary
Implements backend issues #377, #378, #379, and #380:
sweep_worker.rs)POST /api/yield/toggle-autopreference endpointyield_calc.rs)notifications.rs)#377 — Auto-sweep scheduler
auto_earn_enabled = trueavailable_balanceintoearning_balanceand logsDEPOSITtransactionsSWEEP_POLL_INTERVAL_SECSandSWEEP_MIN_IDLE_AMOUNT#378 — Toggle auto-earn API
POST /api/yield/toggle-autosavesusers.auto_earn_enabledauto_earn_enabledstateGET /api/yield/balancealso exposesauto_earn_enabled#379 — Off-chain yield calculator
last_yield_sync_atusing current APYaccrued_interestandtotal_earning_balanceformat_yield_feed_fieldshelper exposed for feed query responses#380 — Yield report notifications
YIELD_REPORT_THRESHOLDuser_push_tokenstable and Expo Push APIDatabase migration
20260627000000_yield_auto_earn_and_notifications.sqladds:users.auto_earn_enabled,last_daily_yield_report_at,last_weekly_yield_report_atuser_yield_balances.last_yield_sync_atuser_push_tokenstableTest plan
cargo buildsucceedsyield_calcand notification period math passPOST /api/yield/toggle-autotogglesauto_earn_enabledGET /api/yield/balancereturns liveaccrued_interest/total_earning_balance