Skip to content

Latest commit

 

History

History
26 lines (21 loc) · 1.03 KB

Deeper validation of curve math.md

File metadata and controls

26 lines (21 loc) · 1.03 KB

Increased testing of edge cases in complex mathematical operations could have identified at least one issue raised in this report.

Additional unit tests are recommended, as well as fuzzing or property-based testing of curve-related operations.

Improperly validated interactions with the BancorFormula contract are seen to fail in unanticipated and potentially dangerous ways, so care should be taken to validate inputs and prevent pathological curve parameters.

Recommendation:

More validation of mathematical operations


Slide Screenshot

111.jpg


Slide Text

  • ConsenSys Audit DAfi Finding 3.4
  • Testing
  • Insufficient Validation for Complex Math
  • Add Fuzzing & Unit Property Tests

References


Tags