Skip to content

add option for routing_budget_ppm in /api/rewards #2038

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jerryfletcher21
Copy link
Contributor

@jerryfletcher21 jerryfletcher21 commented Jul 2, 2025

What does this PR do?

This PR uniforms the /api/rewards with the /api/order update_invoice (changed in #326), adding the option routing_budget_ppm in /api/rewards, and thus fixing #1382 for the backend.
An other pull request implementing it in the frontend is needed (maybe to be incorporated in #1973). This commit still leaves the option to not specify routing_budget_ppm in order to be compatible with old clients, with the notice in the code that it should be deprecated in the future.
It also remove the MIN_FLAT_ROUTING_FEE_LIMIT variable from .env-sample, since after #347 it is no longer used.

Checklist before merging

  • Install pre-commit and initialize it: pip install pre-commit, then pre-commit install. Pre-commit installs git hooks that automatically check the codebase. If pre-commit fails when you commit your changes, please fix the problems it points out.

@jerryfletcher21 jerryfletcher21 force-pushed the rewards-support-routing-budget branch from 02d3c94 to 3fa9222 Compare July 3, 2025 13:16
@jerryfletcher21 jerryfletcher21 force-pushed the rewards-support-routing-budget branch from 3fa9222 to e90701a Compare July 3, 2025 13:22
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.

1 participant