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.
2022
6 pointsNew this year2
First depositor share inflation reports first appear in this batch and recur across many protocols in the disclosed reports.
Seen in 3 reports
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
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
Hunters tested conversions between signed and unsigned types or precisions for truncation that corrupts balances or claims in the disclosed reports.
Reward amounts using division before multiplication were compared for precision loss that leaves rewards locked or under-distributed in the disclosed reports.
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