Skip to content

Commit

Permalink
📖 Fix Comment in wad_exp (#212)
Browse files Browse the repository at this point in the history
### 🕓 Changelog

Revise the comment in `wad_exp` from `< 0.5` to `< 1` to ensure consistency with the implementation.

Signed-off-by: gbaleeee <[email protected]>
  • Loading branch information
zhouxianyuan authored Mar 8, 2024
1 parent c64e921 commit 46c5f83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/snekmate/utils/Math.vy
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@ def wad_exp(x: int256) -> int256:
"""
value: int256 = x

# If the result is `< 0.5`, we return zero. This happens when we have the following:
# If the result is `< 1`, we return zero. This happens when we have the following:
# "x <= (log(1e-18) * 1e18) ~ -4.15e19".
if (x <= -41_446_531_673_892_822_313):
return empty(int256)
Expand Down

0 comments on commit 46c5f83

Please sign in to comment.