Skip to content

Add platform fee calculation coverage - #192

Merged
chizzy192 merged 1 commit into
StellarState:devfrom
louiss72:agent/platform-fee-tests-165
Jul 29, 2026
Merged

Add platform fee calculation coverage#192
chizzy192 merged 1 commit into
StellarState:devfrom
louiss72:agent/platform-fee-tests-165

Conversation

@louiss72

Copy link
Copy Markdown
Contributor

What changed

  • Added calculatePlatformFee for basis-point platform fee calculations.
  • Added unit tests for 0, 50, 150, 250, and 10000 bps.
  • Covered Decimal.js ROUND_HALF_UP behavior at currency precision.

Validation

  • npm test -- --runTestsByPath tests/unit/utils/fee-calculator.test.ts
  • npm run type-check
  • npm run lint

Closes #165

@chizzy192 chizzy192 closed this Jul 29, 2026
@chizzy192 chizzy192 reopened this Jul 29, 2026
@chizzy192
chizzy192 merged commit 56a84ad into StellarState:dev Jul 29, 2026
3 checks 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.

[BACKEND] Add unit tests for platform fee percentage calculation helper

2 participants