Skip to content

[BE-029] Design auto-sweep scheduler background worker #377

Description

@ONEONUORA

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.

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions