Skip to content

feat: implement bonding curve milestone API - #992

Merged
Chucks1093 merged 1 commit into
accesslayerorg:mainfrom
Tekprecious:feature/970-bonding-curve-milestones
Sep 28, 2026
Merged

Chucks1093 merged 1 commit into
accesslayerorg:mainfrom
Tekprecious:feature/970-bonding-curve-milestones

Conversation

@Tekprecious

Copy link
Copy Markdown

Closes #970

Summary

  • Implemented GET /api/v1/keys/:keyId/curve/milestones API endpoint to provide the full bonding curve milestone configuration and current progress.
  • Computes currentPrice and tracks the progress of currentSupply against all configured MILESTONES.
  • Dynamically identifies the nextMilestone based on the active position on the bonding curve.
  • Introduces an isGraduated flag to signal when the currentSupply reaches or exceeds the final milestone threshold.
  • Refreshes milestone data with a 30-second TTL polling cache to optimize lookups and prevent unnecessary DB reads.

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

@drips-wave

drips-wave Bot commented Sep 27, 2026

Copy link
Copy Markdown

@Tekprecious 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
Chucks1093 merged commit 42e3449 into accesslayerorg:main Sep 28, 2026
1 check 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.

Implement bonding curve milestone data API for graduation progress

2 participants