Skip to content

Comments

feat: implement asset-based discount system for platform fees#138

Open
vicajohn wants to merge 1 commit intoWeb3Novalabs:mainfrom
vicajohn:feature/asset-based-discount
Open

feat: implement asset-based discount system for platform fees#138
vicajohn wants to merge 1 commit intoWeb3Novalabs:mainfrom
vicajohn:feature/asset-based-discount

Conversation

@vicajohn
Copy link

@vicajohn vicajohn commented Feb 21, 2026

Closes #93


  • 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

@vicajohn
Copy link
Author

please review

- 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
Copy link
Contributor

@Akshola00 Akshola00 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vicajohn pls resolve conflicts and fix ci issues

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.

[FUNCTION] implement set_asset_fee_discount

2 participants