Description
Implement a recurring task that automatically sweeps idle available stablecoins into the yield vault.
Files to Edit/Create
backend/src/services/sweep_worker.rs (new file)
Acceptance Criteria
- Loop periodically checking users with auto-earn enabled.
- Identify idle balances and transfer to earning contracts.
Guidance / Hints
Use tokio-cron-scheduler or simple loop with select/sleep.
Description
Implement a recurring task that automatically sweeps idle available stablecoins into the yield vault.
Files to Edit/Create
backend/src/services/sweep_worker.rs(new file)Acceptance Criteria
Guidance / Hints
Use tokio-cron-scheduler or simple loop with select/sleep.