Add assumption about the max value of exponent
#921
Labels
effort: low
Easy or tiny task that takes less than a day.
priority: 2
We will do our best to deal with this.
type: docs
Changes to documentation.
work: clear
Sense-categorize-respond. The relationship between cause and effect is clear.
A Codehawk auditor asked a really good question about the max value of
UD2x18
.Since its max value is capped by
type(uint64).max
, the exponent cannot represent a value bigger than18.446744073709551615
. Thus, we should add this in the Assumptions section of SECURITY.md:In Lockup dynamic, the fixed-point representation of a segment's
exponent
does not exceed18.446744073709551615
.The text was updated successfully, but these errors were encountered: