Implement fee registry and governance system - #684
Open
Nemenwq wants to merge 3 commits into
Open
Conversation
- Add Soroban fee registry contract with on-chain fee management - Implement backend feeRegistry.js for fee caching and calculation - Add governance.js service for proposal management and voting - Create governance API routes for proposal CRUD operations - Add database migrations for governance proposals and votes - Update contribution flow to use on-chain fees - Update withdrawal flow to include creator revenue share - Build frontend /governance page with voting UI - Add fee cache refresh cron job (5-minute interval) - Configure environment variables for governance contract
- Replace process.env with import.meta.env for Vite compatibility - Escape apostrophe in text to avoid react/no-unescaped-entities error - Remove unused React import
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🎯 Fee Registry & Governance System
What's New
We're introducing decentralized governance to CrowdPay, allowing our community to participate in platform decisions. Platform fees are now managed on-chain instead of being hardcoded, giving token holders the power to propose and vote on fee changes.
Key Features
On-Chain Fee Management
Creator Revenue Sharing
Community Governance
New Governance Page
/governanceto view current fees and active proposalsWhy This Matters
What Changed for Users
Configuration
Admins need to configure two new environment variables:
FEE_REGISTRY_CONTRACT_ID- The deployed fee registry contract addressGOVERNANCE_TOKEN_ID- The governance token issuer addressTesting
Before deploying:
closes #681