Skip to content

feat(contracts): implement fee distribution contract with recipient management#224

Merged
ONEONUORA merged 2 commits into
Fracverse:masterfrom
Yunusabdul38:145-146
May 26, 2026
Merged

feat(contracts): implement fee distribution contract with recipient management#224
ONEONUORA merged 2 commits into
Fracverse:masterfrom
Yunusabdul38:145-146

Conversation

@Yunusabdul38
Copy link
Copy Markdown
Contributor

  • Add fee-distribution contract for collecting and distributing fees among configurable recipients
  • Implement basis-point (bps) weighted distribution system with 10,000 bps = 100% total
  • Add recipient management with atomic updates ensuring shares always sum to 10,000 bps
  • Implement permissionless distribution trigger with admin manual distribution capability
  • Add reentrancy guard to prevent re-entrant calls during fee distribution
  • Include rounding remainder handling credited to first recipient to prevent dust loss
  • Update merchant-vault contract with fee distribution integration and enhanced testing
  • Add comprehensive test suite covering initialization, deposits, distribution, and edge cases
  • Update workspace Cargo.toml to include fee-distribution and escrow-contract members
  • Update Cargo.lock with new contract dependencies
    Zap

Closes: #145
Closes: #146

@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented May 26, 2026

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

Copy link
Copy Markdown
Contributor

@ONEONUORA ONEONUORA left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice implementation @Yunusabdul38

@ONEONUORA ONEONUORA merged commit 7a55e8e into Fracverse:master May 26, 2026
2 of 9 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.

Contract: Implement Fee Distribution Contract Contract: Add Multi-Signature Support to Merchant Vault

2 participants