Skip to content

refactor: resolve divide-before-multiply lint in ConditionalOrdersUtilsLib#20

Open
mfw78 wants to merge 1 commit into
chore/solc-0830-toolchainfrom
refactor/utils-muldiv
Open

refactor: resolve divide-before-multiply lint in ConditionalOrdersUtilsLib#20
mfw78 wants to merge 1 commit into
chore/solc-0830-toolchainfrom
refactor/utils-muldiv

Conversation

@mfw78

@mfw78 mfw78 commented Jul 10, 2026

Copy link
Copy Markdown

Reorder the computation in ConditionalOrdersUtilsLib to multiply before dividing, resolving the divide-before-multiply lint and its precision loss.

Part of #1.

…lsLib

Use a mulDiv-ordered computation to avoid precision loss flagged by
the divide-before-multiply lint.
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.

1 participant