Skip to content

Add VIP fee discount tier logic#1

Closed
AugistineCreates wants to merge 4 commits into
mainfrom
webhook-schema-validation
Closed

Add VIP fee discount tier logic#1
AugistineCreates wants to merge 4 commits into
mainfrom
webhook-schema-validation

Conversation

@AugistineCreates

Copy link
Copy Markdown
Owner

This pr closes sublime247#1315

Implements tiered VIP fee discounts based on 30‑day transaction volume.

  • Updated src/services/feeStrategyEngine.ts to apply VIP discounts after a strategy is selected.
  • Added comprehensive VIP tier definitions and mapping in src/utils/fees.ts.
  • Implemented helper functions getThirtyDayVolume, mapVolumeToTier, and calculateFeeForUser.
  • Added unit tests covering tier mapping, volume caching, and discounted fee calculations.
  • Ensured fallback to environment‑based fee configuration when the fee service is unavailable.

Closes #

@github-actions

Copy link
Copy Markdown

📊 Coverage Report

❌ Coverage below thresholds

Metric Current Threshold Status
Statements 10.38% 20%
Branches 10.16% 15%
Functions 9.59% 25%
Lines 10.38% 20%

Coverage enforcement is configured in jest.config.js. Thresholds only go up — never down.

@AugistineCreates AugistineCreates deleted the webhook-schema-validation branch June 24, 2026 06:51
sublime247 pushed a commit that referenced this pull request Jun 24, 2026
feat(sep31): implement dynamic fee bump strategy using Horizon base fee
AugistineCreates pushed a commit that referenced this pull request Jun 25, 2026
…on-during-builds

Add provider maintenance outage scheduling and routing
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.

[GOOD FIRST ISSUE] Add VIP Fee Discount Tier logic check

1 participant