Skip to content

Implement fee configuration constraints with hard bounds and rounding…#494

Closed
iyanumajekodunmi756 wants to merge 1 commit into
Pulsefy:mainfrom
iyanumajekodunmi756:Fee-Configuration-Constraints
Closed

Implement fee configuration constraints with hard bounds and rounding…#494
iyanumajekodunmi756 wants to merge 1 commit into
Pulsefy:mainfrom
iyanumajekodunmi756:Fee-Configuration-Constraints

Conversation

@iyanumajekodunmi756
Copy link
Copy Markdown

… guarantees

  • Add MAX_FEE_BPS constant (1000 = 10%) to prevent excessive fee configuration
  • Enforce maximum fee constraints in set_fee_config and set_per_asset_fee functions
  • Implement deterministic floor division rounding for fee calculations
  • Add comprehensive tests for extreme fee values and edge cases
  • Add tests for small-amount fee calculations and rounding determinism
  • Improve documentation with rounding behavior details

This addresses issue #435 by ensuring fee config cannot exceed safe limits, fees are deterministic and tested across assets, and providing proper validation.

Generated with Devin

closes #435

… guarantees

- Add MAX_FEE_BPS constant (1000 = 10%) to prevent excessive fee configuration
- Enforce maximum fee constraints in set_fee_config and set_per_asset_fee functions
- Implement deterministic floor division rounding for fee calculations
- Add comprehensive tests for extreme fee values and edge cases
- Add tests for small-amount fee calculations and rounding determinism
- Improve documentation with rounding behavior details

This addresses issue Pulsefy#435 by ensuring fee config cannot exceed safe limits,
fees are deterministic and tested across assets, and providing proper validation.

Generated with [Devin](https://cli.devin.ai/docs)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented May 29, 2026

@iyanumajekodunmi756 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@Cedarich
Copy link
Copy Markdown
Contributor

Fix workflow

@Cedarich Cedarich closed this May 31, 2026
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.

35. Fee Configuration Constraints (Hard Bounds + Rounding Guarantees)

2 participants