Feature/asset based discount#163
Merged
Akshola00 merged 10 commits intoWeb3Novalabs:mainfrom Feb 26, 2026
Merged
Conversation
- Add storage keys for asset discounts and platform fee percentage - Implement admin functions to set/get platform fees and asset discounts - Modify contribute function to apply discounts based on asset type - Add comprehensive test suite with 10 test cases - Include detailed documentation and usage guides Features: - Configurable base platform fee (in basis points) - Token-specific discounts (e.g., 50% off for NEVO token) - Automatic fee calculation with discount applied - Separate tracking of platform fees - Admin-only access with validation - Event emissions for transparency Test Coverage: - Fee and discount configuration - Fee calculations with various discount levels - Multiple assets with different discounts - Edge cases (0% fee, 100% discount) - Input validation Documentation: - Technical implementation details - User and developer guides - Visual flow diagrams - API reference and examples
- Clean up unused variables in asset_discount_test.rs - Add automated CI fix scripts (PowerShell and Bash) - Create comprehensive CI troubleshooting guide - Add merge checklist for conflict resolution - Document all CI fixes and verification steps All tests passing (10/10) No diagnostics warnings Ready for CI pipeline
- Add blacklist functions (blacklist_address, unblacklist_address, is_blacklisted) - Add campaign management functions (update_campaign_goal, extend_campaign_deadline, get_campaigns) - Add get_campaign_fee_history and get_contract_version - Add renounce_admin function - Add UserBlacklisted and InvalidGoalUpdate error types - Resolve all merge conflicts between feature branches
- Add implementation details and technical specifications - Add visual flow diagrams and calculation examples - Add quick reference guide for developers - Add code changes documentation - Add verification checklist - Add implementation summary - Add PR description with complete feature overview
Contributor
Author
|
please review |
Contributor
|
@vicajohn pls resolve conflicts |
Contributor
@vicajohn Any updates on this |
- Remove asset discount documentation files - Clean up repository from temporary documentation - Keep only essential code and implementation
Contributor
Author
|
review please |
Contributor
|
@vicajohn pls fix conflict |
Contributor
Author
|
please review |
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.

Closes #93