Skip to content

In-depth lesson · Rounding and precision errors

Year by year: 2022

What the disclosed Rounding and precision errors reports of each year show, newest first: what first appeared, what kept working and what turned up less.

Back to the lesson 1 to 6 of 6 (of 29 in all)

Clear the search

2022

6 points

New this year2

  1. First depositor share inflation reports first appear in this batch and recur across many protocols in the disclosed reports.

    Seen in 3 reports
  2. ERC-4626 preview, maxMint and maxDeposit functions were first checked for rounding direction and spec consistency in the disclosed reports.

    Seen in 1 report

Kept working4

  1. First depositor share inflation through a tiny deposit followed by donation or share price inflation was a recurring pattern in the disclosed reports.

    Seen in 3 reports
  2. Hunters tested conversions between signed and unsigned types or precisions for truncation that corrupts balances or claims in the disclosed reports.

    Seen in 2 reports
  3. Reward amounts using division before multiplication were compared for precision loss that leaves rewards locked or under-distributed in the disclosed reports.

    Seen in 1 report
  4. Rounding direction on both deposit and withdraw paths was checked for the wrong direction letting a user gain in the disclosed reports.

    Seen in 1 report