Skip to content

feat(backend): add GET /api/yield/calculate Axum route for dynamic yield computation - #1026

Merged
ONEONUORA merged 1 commit into
Fracverse:masterfrom
Meet-hybrid:feat/yield-calculator-route
Jul 30, 2026
Merged

feat(backend): add GET /api/yield/calculate Axum route for dynamic yield computation#1026
ONEONUORA merged 1 commit into
Fracverse:masterfrom
Meet-hybrid:feat/yield-calculator-route

Conversation

@Meet-hybrid

Copy link
Copy Markdown
Contributor

Closes #939

…eld computation

Connect the yield_calculator module to a new public Axum endpoint.
The handler accepts amount, optional yield_rate_bps (falls back to env
config), and elapsed_secs query parameters and returns the projected
accrued yield.

Includes 4 integration tests covering:
- Yield with explicit rate
- Default rate fallback (0 bps)
- Zero elapsed seconds
- Negative amount validation

Closes Fracverse#939
@drips-wave

drips-wave Bot commented Jul 30, 2026

Copy link
Copy Markdown

@Meet-hybrid 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

@ONEONUORA ONEONUORA left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great job @Meet-hybrid

@ONEONUORA
ONEONUORA merged commit cc24016 into Fracverse:master Jul 30, 2026
4 checks passed
@Meet-hybrid
Meet-hybrid deleted the feat/yield-calculator-route branch July 30, 2026 08:04
@Meet-hybrid

Copy link
Copy Markdown
Contributor Author

Great job @Meet-hybrid

Thanks, can't wait to work with you again.

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.

[Backend] Issue #30: Implement yield calculator Axum route

2 participants