Technique · Smart contracts
Rounding and precision errors
289 disclosed reports use this technique.
Reports
Filter and sortPaid and upvoted first.
-
The Silent Yield Killer: How Unscaled Integer Division Trapped Farming Rewards in a Top DEXSmart contracts Write-up
-
-
Unbounded Junior share amplification reaches terminal supply and permanently freezes LP fundsSmart contracts Critical Plether Audit finding
-
PletherOracle._invertPythPrice rounds half-up at 1e-26 and then floors to 1e-8, so inverted basket components are always truncatedSmart contracts Informational Plether Audit finding
-
Rounding inconsistent maxdeposit and maxmint values can advertise vault entry that necessarily reverts
Smart contracts Low Firelight Audit finding
-
AMM quote overflow can disable swaps and liquidations
Smart contracts Medium K2 Audit finding +1 collaborator
-
Scaled-share rounding mismatch breaks transfer and withdraw accounting
Smart contracts Medium K2 Audit finding +11 collaborators
-
Discarding sub-quantum oracle precision lets low-priced assets trade below their signed value
Smart contracts Medium Metric Audit finding +42 collaborators
-
get_supply_ratio() compares raw shares to normal tokens without exchange price conversion, over-allocating yield to with-interest suppliers, leading to insolvency
Smart contracts Medium Jupiter Lend Audit finding +5 collaborators
-
Denaria Finance Exploit: $166K Lost to Asymmetric Rounding and anSmart contracts Write-up
-
Inside the $223M Cetus Exploit: A Shared Library Bug That Broke Sui’s Largest DEXSmart contracts Write-up
-
How I Found a Critical Precision Loss in Kuru Labs Using Foundry FuzzinSmart contracts Write-up
-
Intra-epoch rateAtTarget updates in CollateralTracker._updateInterestRate() allow compounding interest rate errorsSmart contracts Medium Panoptic: Next Core Audit finding +1 collaborator
-
Accumulated rewards per share can round to zero
Smart contracts Medium GTE Perps and Launchpad Audit finding +11 collaborators
-
Rounding down in Quote calculation allows underpriced LaunchToken purchases by Malicious user, compounding protocol loss over multiple buys.
Smart contracts Medium GTE Perps and Launchpad Audit finding +9 collaborators
-
GTL contract is vulnerable to an inflation attack
Smart contracts Medium GTE Perps and Launchpad Audit finding +3 collaborators
-
Wrong rounding direction in DurationRemaining leads to value loss from TWAMM extension and Temporarily Freezing of a Pool
Smart contracts Medium Ekubo Audit finding
-
Truebit Protocol Exploit: How a Silent Overflow Led to a $26M LosSmart contracts Write-up
-
The Balancer Exploit: How $121M Was Lost to a Rounding Error andSmart contracts Write-up
-
First depositor attack possible through multiple attack paths because the deposit function does not check 0 shares received
Smart contracts Medium Hybra Finance Audit finding +29 collaborators
-
Unstake exit requests can either lock funds or silently double deduct effective stake after validator exitSmart contracts High Vechain | Stargate Hayabusa Audit finding
-
Exiting delegators' stakes can be bricked permanently by the validator signaling an exit after them in the same periodSmart contracts High Vechain | Stargate Hayabusa Audit finding
-
Double-calling _updatePeriodEffectiveStake during the exit flow makes unstake revert, trapping staked VET.Smart contracts High Vechain | Stargate Hayabusa Audit finding
-
MYTStrategy Allocation underflow in deallocate() when allocation + profits exceed old allocationSmart contracts High Alchemix V3 Audit finding
-
Systemic accounting bug leads to protocol insolvencySmart contracts High Alchemix V3 Audit finding
-
## [HIGH] Arithmetic Underflow in MYTStrategy.sol's deallocate() Check Prevents Yield WithdrawalSmart contracts High Alchemix V3 Audit finding
-
Round-down calculation in convertToShares() leads to deallocation failure in TokeAutoEth strategySmart contracts Low Alchemix V3 Audit finding
-
The Alchemist::burn function experiences precision loss, resulting in the avoidance of protocol feesSmart contracts Critical Alchemix V3 Audit finding
-
Rounding errors in debt to collateral conversions allow attackers to drain protocol assetsSmart contracts Critical Alchemix V3 Audit finding
-
Allocation tracking underflow in strategy deallocation leads to protocol insolvencySmart contracts High Alchemix V3 Audit finding
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