Skip to content

fix: apply rate limiting to GET /vaults and GET /positions Vercel handlers - #209

Merged
collinsezedike merged 1 commit into
mainfrom
fix/rate-limit-get-handlers
Jun 21, 2026
Merged

collinsezedike merged 1 commit into
mainfrom
fix/rate-limit-get-handlers

Conversation

@collinsezedike

Copy link
Copy Markdown
Collaborator

Summary

  • GET /vaults and GET /positions were missing checkRateLimit, unlike the POST tx handlers
  • Added checkRateLimit call after applyCors in both handlers so all four Vercel endpoints share the same 20 req/60s per-IP limit

Test plan

  • All 21 api-functions tests pass
  • 21st request from the same IP within 60s returns 429

Closes #176

@vercel

vercel Bot commented Jun 21, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
meridian Ready Ready Preview, Comment Jun 21, 2026 12:46pm

@collinsezedike
collinsezedike merged commit 0b630e8 into main Jun 21, 2026
5 checks passed
@collinsezedike
collinsezedike deleted the fix/rate-limit-get-handlers branch June 21, 2026 12:47

This branch was successfully deployed

1 active deployment
Preview — 02faacf1 Deployed Jun 21, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Fix] rate limiting not applied to GET /vaults and GET /positions Vercel handlers

1 participant