Skip to content

Add dynamic fee distribution contract - #287

Merged
devIKargi merged 1 commit into
StellAIverse:mainfrom
Vox-d-glitch:feature/dynamic-fee-distribution
Jul 26, 2026
Merged

Add dynamic fee distribution contract#287
devIKargi merged 1 commit into
StellAIverse:mainfrom
Vox-d-glitch:feature/dynamic-fee-distribution

Conversation

@Vox-d-glitch

Copy link
Copy Markdown
Contributor

Adds a Soroban fee-distribution contract that collects protocol fees and splits them across configurable recipient categories (treasury, stakers, developers, etc.) by basis-point share.

  • Governance-adjustable fee rate with a bounded per-call step, plus a separate emergency override and a hard-coded ceiling
  • Percentage-based recipient categories with admin add/update/remove/reactivate
  • Fee exemptions for privileged accounts
  • Batched distribution across categories and batched claims across categories for a single recipient
  • Distribution history with per-category allocation breakdown for analytics
  • Pause/unpause halts new fee collection while leaving existing claims available
  • 19 unit tests covering collection, exemptions, rate limits, pausing, category management, distribution rounding, and claims

Closes #271

Implements a Soroban contract that collects protocol fees, splits
them across configurable recipient categories by basis-point share,
and lets recipients claim their allocation individually or in batch.

Closes StellAIverse#271
@devIKargi
devIKargi merged commit 1bbcf49 into StellAIverse:main Jul 26, 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.

Implement Dynamic Fee Distribution System

2 participants