Skip to content

feat: implement Fee Collection and Management System#378

Open
Olowodarey wants to merge 1 commit intoCommitlabs-Org:masterfrom
Olowodarey:fee
Open

feat: implement Fee Collection and Management System#378
Olowodarey wants to merge 1 commit intoCommitlabs-Org:masterfrom
Olowodarey:fee

Conversation

@Olowodarey
Copy link

@Olowodarey Olowodarey commented Mar 24, 2026

This PR implements a comprehensive Fee Collection and Management System for the commitment_core contract, fully aligning on-chain logic with the specifications defined in FEES.md.

The system introduces configurable creation fees, protocol revenue from early exits, per-asset fee tracking, and secure admin-controlled withdrawal mechanisms.


✨ Key Features

🗄️ Storage Infrastructure

Added new storage keys to DataKey:

  • FeeRecipient — Protocol treasury address
  • CreationFeeBps — Fee rate in basis points (0–10000)
  • CollectedFees(Address) — Tracks accumulated fees per asset

closes #294

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.

Workspace cargo test --workspace coverage report for wasm32v1-none release

1 participant