Skip to content

Commit 895e22e

Browse files
authored
Update 0x14-V5-Arithmetic.md
1 parent 2f63738 commit 895e22e

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

1.1/0x14-V5-Arithmetic.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,13 @@ Category “V5” lists requirements related to the arithmetic operations of the
1111

1212
| # | Description |
1313
| --- | --- |
14-
| **5.1** | Verify that the values and math operations are resistant to integer overflows. Use SafeMath library for arithmetic operations. |
15-
| **5.2** | Verify that the extreme values (e.g. maximum and minimum values of the variable type) are considered and does change the logic flow of the contract. |
16-
| **5.3** | Verify that non-strict inequality is used for balance equality. |
14+
| **5.1** | Verify that the values and math operations are resistant to integer overflows. Use SafeMath library for arithmetic operations before solidity 0.8.*. |
15+
| **5.2** | Verify that the unchecked code snippets from Solidity 0.8.* do not introduce integer under/overflows. |
16+
| **5.3** | Verify that the extreme values (e.g. maximum and minimum values of the variable type) are considered and does change the logic flow of the contract. |
17+
| **5.4** | Verify that non-strict inequality is used for balance equality. |
18+
| **5.5** | Verify that there is a correct order of magnitude in the calculations. |
19+
| **5.6** | Verify that in calculations, multiplication is performed before division for accuracy. |
20+
| **5.7** | Verify that there are no vulnerabilities associated with arithmetics. |
1721

1822
## References
1923

0 commit comments

Comments
 (0)