-
Notifications
You must be signed in to change notification settings - Fork 124
Closed
Milestone
Description
In many places in our code base, there are conventions between uint96 and uint256, and after some add/sub, we don't check if the ended values are still in the uint96 range.
I propose to add these two methods to make sure addition/subtraction between uint96 and uint256 are handled correctly.
function add96(
uint96 a,
uint256 b
)
internal
pure
returns (uint96 c)
{
...
}
function sub96(
uint96 a,
uint256 b
)
internal
pure
returns (uint96 c)
{
...
}Metadata
Metadata
Assignees
Labels
No labels