Skip to content

feat: expose creator key swap fee tier and history endpoints - #1069

Merged
Chucks1093 merged 3 commits into
accesslayerorg:mainfrom
muazumikail1915-create:feat/key-swap-fee-tier
Oct 21, 2026
Merged

Chucks1093 merged 3 commits into
accesslayerorg:mainfrom
muazumikail1915-create:feat/key-swap-fee-tier

Conversation

@muazumikail1915-create

@muazumikail1915-create muazumikail1915-create commented Oct 17, 2026 •

Copy link
Copy Markdown
Contributor
  • Add GET /keys/:keyId/fee returning current_fee_bps, volume_bracket, and rolling_24h_volume with 60s cache TTL
  • Read fee basis points from dynamic fee contract get_current_fee_bps with volume tier fallback
  • Add GET /keys/:keyId/fee/history returning fee tier change history with timestamps
  • Index FeeAdjusted contract events into key_fee_history and invalidate key fee cache
  • Handle 404 for unknown key IDs
  • Add unit and route test suites covering swap fee tier, cache TTL, event indexing, and history

Summary

Testing

  • pnpm lint
  • pnpm build
  • pnpm exec prisma generate when schema or generated types changed

Checklist

  • Linked issue or backlog item
  • No secrets or live credentials added
  • Docs updated if setup or env changed
  • Change is scoped to one problem

closes #1056

- Add GET /keys/:keyId/fee returning current_fee_bps, volume_bracket, and rolling_24h_volume with 60s cache TTL
- Read fee basis points from dynamic fee contract get_current_fee_bps with volume tier fallback
- Add GET /keys/:keyId/fee/history returning fee tier change history with timestamps
- Index FeeAdjusted contract events into key_fee_history and invalidate key fee cache
- Handle 404 for unknown key IDs
- Add unit and route test suites covering swap fee tier, cache TTL, event indexing, and history
@drips-wave

drips-wave Bot commented Oct 17, 2026

Copy link
Copy Markdown

@muazumikail1915-create Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@Chucks1093

Copy link
Copy Markdown
Member

Conflict

@Chucks1093
Chucks1093 merged commit 01024dd into accesslayerorg:main Oct 21, 2026
2 checks passed
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.

Build dynamic fee API endpoint returning current fee tier per key

2 participants