Skip to content

Conversation

viktorking7
Copy link

PR Description

  • What: Add explicit zero-divisor guards to stdMath.percentDelta(uint256,uint256) and stdMath.percentDelta(int256,int256).
  • Why: Prevents runtime division-by-zero and makes failure mode explicit and predictable.
  • How: Added require checks with a concise error message and brief comments.

onbjerg
onbjerg previously approved these changes Sep 23, 2025
@zerosnacks zerosnacks requested a review from onbjerg October 6, 2025 10:42
@zerosnacks zerosnacks enabled auto-merge (squash) October 6, 2025 10:49
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.

3 participants