Skip to content

[BE-030] Create toggle API endpoint for auto-earn preferences #378

Description

@ONEONUORA

Description

Create POST /api/yield/toggle-auto allowing users to activate or deactivate the automatic sweep of idle funds.

Files to Edit/Create

  • backend/src/api/yield.rs

Acceptance Criteria

  • Save preference state (boolean) in user's profile table.

Guidance / Hints

Return status confirmation payload showing auto-earn state.

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions