feat(v2): implement transaction limits engine and configurable fee tiers - #267
Open
Gpraiz01 wants to merge 1 commit into
Open
feat(v2): implement transaction limits engine and configurable fee tiers#267Gpraiz01 wants to merge 1 commit into
Gpraiz01 wants to merge 1 commit into
Conversation
|
Auto-review failed (API error). Leaving PR for human review. |
This was referenced Jun 25, 2026
|
This pull request has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in 14 days if no further activity occurs. If you are still working on this, please leave a comment or remove the |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implement a database-driven transaction limits and fee engine with KYC-tier enforcement, USD-based limit validation, configurable fee rules, admin management APIs, and user-facing allowance visibility.
Related Issues
Closes #384
Type of Change
New feature
Bug fix
Breaking change
Refactor
Documentation
Changes Made
Added TransactionLimit and FeeConfig entities.
Seeded default limits and fee configurations.
Implemented LimitsService for tier validation and fee calculation.
Integrated limit enforcement into transaction creation flow.
Added admin APIs for managing limits and fees.
Added /limits/me endpoint.
Added comprehensive tests covering limits, fees, and KYC tiers.
Testing Done
Verified KYC tier enforcement.
Verified limit validation and allowance calculations.
Verified fee calculations and deductions.
Verified admin updates take effect immediately.
Verified UTC daily reset behavior.
Ran build and full test suite successfully.