Skip to content

fix(common): use canonical BPS_DENOMINATOR in split.rs - #411

Merged
chonilius merged 1 commit into
MergeFi:mainfrom
DooseWayo:fix/split-use-shared-bps-denominator
Sep 27, 2026
Merged

chonilius merged 1 commit into
MergeFi:mainfrom
DooseWayo:fix/split-use-shared-bps-denominator

Conversation

@DooseWayo

Copy link
Copy Markdown

split.rs declared its own private const BPS_DENOMINATOR: i128 = 10_000; instead of importing the one centralized in mergefi-common's lib.rs (#163). compute_split now uses crate::BPS_DENOMINATOR, so the fee/payout math can't silently drift from the shared constant.

Summary

Related issues

Closes #327
Closes #328
Closes #329
Closes #330

Changes

Test plan

  • Existing tests pass (make test)
  • New tests added for changed behaviour
  • Manually verified against a local node / testnet where applicable

Checklist

  • Branch is up to date with main
  • No debug / dead code left in
  • cargo fmt and cargo clippy are clean

split.rs declared its own private `const BPS_DENOMINATOR: i128 = 10_000;`
instead of importing the one centralized in mergefi-common's lib.rs (MergeFi#163).
compute_split now uses `crate::BPS_DENOMINATOR`, so the fee/payout math
can't silently drift from the shared constant.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@vercel

vercel Bot commented Sep 27, 2026

Copy link
Copy Markdown

Someone is attempting to deploy a commit to the chonilius' projects Team on Vercel.

A member of the Team first needs to authorize it.

@drips-wave

drips-wave Bot commented Sep 27, 2026

Copy link
Copy Markdown

@DooseWayo 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

@chonilius
chonilius merged commit c6da9e5 into MergeFi:main Sep 27, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment