Fee Distribution and Authority
The modules, especially SALE and TRADE, accumulate fees from transactions. These fees must be distributed responsibly:
Contract Owner/Creator Fees: The entity that deployed the SALE or TRADE mechanism (e.g., pool creator) may have privileges to withdraw accumulated fees, ensuring they benefit from the marketplace or liquidity they have provided.
Percentage Splits: When withdrawing proceeds, you can specify multiple recipients and percentages, ensuring transparent and rule-based fee allocation. This is critical for shared ventures, artist-collector splits, or multi-party collaborations.
Revoking Authority: Certain functions allow revoking or limiting fee distribution authority after initialization, providing a more trustless environment where fees are distributed according to fixed rules without ongoing manual control.
Best Practices:
Clear Fee Policies: Document how fees are set and distributed to avoid disputes.
Regular Withdrawals: Avoid large accumulations of undistributed fees that could become an attractive target for potential attackers or raise trust concerns.
Last updated