Skip to content

Implement rate limiting per user for sensitive operations #385

@Smartdevs17

Description

@Smartdevs17

Description

Sensitive operations (borrow, withdraw, liquidation) lack rate limiting. Implement per-user rate limits to prevent abuse.

Acceptance Criteria

  • Rate limit configuration per operation type
  • Sliding window per-user counter
  • Rate limit headers in API responses
  • Graduated penalties on violation (warning -> throttle -> block)
  • Rate limit bypass for trusted users (institutions)
  • Rate limit analytics dashboard

Technical Scope

  • api/src/middleware/rate-limit.ts
  • api/src/middleware/
  • Edge: distributed rate limiting accuracy, user ID vs IP based limiting

Metadata

Metadata

Assignees

Labels

200-points200 point issueStellar WaveIssues in the Stellar wave programdrips-waveDrips Wave project taskhighHigh priority issue

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions