FV-SOL-2 Precision Errors
TLDR
Precision errors arise when contracts mishandle decimal scaling or rounding in calculations, leading to inaccurate results
Code
Classifications
Mitigation Patterns
FV-SOL-2-M1 Unit Testing on Edge Cases
Write tests for edge cases, such as small or very large values, fractions close to rounding boundaries, zero values, and more.
Actual Occurrences
Content
Last updated
Was this helpful?