Technique · Smart contracts
Rounding and precision errors
289 disclosed reports use this technique.
Reports
Filter and sortPaid and upvoted first.
-
Voting algorithm does not apply maximum availabSmart contracts High Alchemix Audit finding
-
Erroneous probability calculation in physical attributes can lead to significant issuesSmart contracts Medium AI Arena Audit finding +4 collaborators
-
Less base tokens are transferred when selling quote tokens due to the precision loss that occurred in _GeneralIntegrate()
Smart contracts Medium Abracadabra Mimswap Audit finding
-
MagicLpAggregator doesn’t consider the dcimal of MagicLP
Smart contracts Medium Abracadabra Mimswap Audit finding +3 collaborators
-
Precision loss when calculating the FLUX amountSmart contracts Low Alchemix Audit finding
-
Incorrect game type can be proven and finalized due to unsafe cast
Smart contracts Medium Optimism Fault Proofs Audit finding +3 collaborators
-
Rounding error in WUSDA can result in loss of user funds, especially when manipulated by an attacker
Smart contracts High Amphora Protocol Audit finding +12 collaborators
-
_getUniswapTwapWei() will show incorrect price for negative ticks cause it doesn’t round up for negative ticks
Smart contracts Medium Salty.IO Audit finding +1 collaborator
-
The user who withdraws liquidity from a particular pool is able to claim more rewards than they should by carefully selecting a decreaseShareAmount value such that the virtualRewardsToRemove is rounded down to zero
Smart contracts Medium Salty.IO Audit finding +9 collaborators
-
Unsafe casting within _purchase function can result in overflow
Smart contracts Medium Axis Finance Audit finding
-
Singularity::removeAsset share can become zero due to rounding down, and any user can be extracted some amount of asset
Smart contracts Medium Tapioca Audit finding
-
Potential Loss of Precision in Conversion from
Smart contracts Informational Immunefi Arbitration Audit finding
-
Vault Inflation Attack
Smart contracts Medium Smilee Finance Audit finding +1 collaborator
-
Unsafe Downcast vulnerability this can lead to
Smart contracts Informational Immunefi Arbitration Audit finding
-
EarlyZEROVesting is having a rounding issue andSmart contracts Informational ZeroLend Audit finding
-
Permanent freezing of up to wei of yield eachSmart contracts Informational ZeroLend Audit finding
-
Victim's fund can be stolen due to rounding error and exchange rate manipulationSmart contracts High Napier Audit finding +5 collaborators
-
Multiplier is incorrectly calculated in ControllerSmart contracts Medium Opus Audit finding
-
Underflow risk in receive function due to discrSmart contracts Low Puffer Finance Audit finding
-
Rounding errors can cause ERC20RebaseDistributor transfers and mints to fail for underflow
Smart contracts Medium Ethereum Credit Guild Audit finding +1 collaborator
-
Vault Inflation Attack
Smart contracts Medium Flat Money Audit finding +1 collaborator
-
Low precision is used when checking spot price deviationSmart contracts Medium Notional Update #5 Audit finding
-
FundingRateArbitrage contract can be drained due to rounding error
Smart contracts High JOJO Exchange Update Audit finding
-
getPrice salesOption 2 can round down to the lower barrier, skipping the last time period
Smart contracts Medium NextGen Audit finding +6 collaborators
-
A malicious early depositor can manipulate the LP-Token price per share to take an unfair share of future user depositsSmart contracts Medium Dopex Audit finding +16 collaborators
-
The price of rsETH could be manipulated by the first staker
Smart contracts High Kelp DAO | rsETH Audit finding +50 collaborators
-
Protocol mints less rsETH on deposit than intended
Smart contracts High Kelp DAO | rsETH Audit finding +36 collaborators
-
Rounding differences when computing the invariantSmart contracts High Notional Update #4 Audit finding +3 collaborators
-
Collateral can be locked in BigBang contract when debtStartPoint is nonzero
Smart contracts High Tapioca Invitational Audit finding +13 collaborators
-
utilization for _getInterestRate() does not factor in interest
Smart contracts High Tapioca Invitational Audit finding +2 collaborators
Guides and techniques
All guidesThe best explainers, cheat sheets and technique posts on Rounding and precision errors, from around the web.
-
Breaking Business Logic: 7 Attack Scenarios in E-Commerce, Payments and Application WorkflowsCovers seven business logic attack scenarios across e-commerce and payment workflows, giving hunters practical testing ideas.
Technique infosecwriteups.com
-
Payment Bypass Guide for Bug Bounty | 69 case studiesWalks through payment logic flaws with many case studies showing how to bypass checkout and pricing controls.
Methodology medium.com