Skip to content

Add SplitterModule.getRevenueSharePreview() to preview splits without mutation - #378

Merged
BigBen-7 merged 3 commits into
Lead-Studios:mainfrom
lovesmilesmall-hue:fix/issue-246-revenue-share-preview
Jul 26, 2026
Merged

Add SplitterModule.getRevenueSharePreview() to preview splits without mutation#378
BigBen-7 merged 3 commits into
Lead-Studios:mainfrom
lovesmilesmall-hue:fix/issue-246-revenue-share-preview

Conversation

@lovesmilesmall-hue

Copy link
Copy Markdown
Contributor

Summary

Implemented getRevenueSharePreview() - a pure read-only function that previews how a revenue split distributes funds to recipients.

Changes

  • Added getRevenueSharePreview(params) to SplitterModule - Pure calculation, no on-chain call - Returns array of {address, amount} for each recipient - Added 2 unit tests

Closes #246

@drips-wave

drips-wave Bot commented Jul 25, 2026

Copy link
Copy Markdown

@lovesmilesmall-hue 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

@BigBen-7

Copy link
Copy Markdown
Collaborator

This PR currently has merge conflicts with main and was skipped during the batch merge pass. Please rebase/resolve conflicts and it can be merged.

@BigBen-7
BigBen-7 merged commit 788717d into Lead-Studios:main Jul 26, 2026
1 check failed
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.

feat: add SplitterModule.getRevenueSharePreview() — calculate output amounts before submitting

2 participants