Skip to content

Add fee percentage validation in GlobalParams contract#26

Open
mahabubAlahi wants to merge 1 commit intooz-audit-fixesfrom
oz-fix-issue-32
Open

Add fee percentage validation in GlobalParams contract#26
mahabubAlahi wants to merge 1 commit intooz-audit-fixesfrom
oz-fix-issue-32

Conversation

@mahabubAlahi
Copy link
Collaborator

  • Introduced a constant PERCENT_DIVIDER to enforce a maximum of 100% for fee percentages.
  • Added error handling to revert transactions when fee percentages exceed the allowed limits.
  • Updated functions to check both individual and combined fee percentages for protocol and platform fees, ensuring compliance with the new validation rules.

- Introduced a constant PERCENT_DIVIDER to enforce a maximum of 100% for fee percentages.
- Added error handling to revert transactions when fee percentages exceed the allowed limits.
- Updated functions to check both individual and combined fee percentages for protocol and platform fees, ensuring compliance with the new validation rules.
@mahabubAlahi mahabubAlahi self-assigned this Mar 3, 2026
@mahabubAlahi mahabubAlahi added the enhancement New feature or request label Mar 3, 2026
Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 96e8ca3ac6

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant