Technique · Smart contracts
Rounding and precision errors
289 disclosed reports use this technique.
Reports
Filter and sortPaid and upvoted first.
-
Incorrect `LienToken.changeInSlope` calculation can lead to vault insolvencySmart contracts Medium Astaria Audit finding +1 collaborator
-
Truncation in casting can lead to a founder receiving all the base tokens
Smart contracts Medium Nouns Builder contest Audit finding
-
Unsafe downcasting arithmetic operation in UserManager related contract and in UToken.sol
Smart contracts Medium Union Finance Audit finding +2 collaborators
-
`Comptroller::withdrawRewards` accounting error results in incorrect inflation index
Smart contracts Medium Union Finance Audit finding +3 collaborators
-
in notifyRewardAmount() of VE3DRewardPool and BaseRewardPool some tokes will be locked and not distributed becasue of rounding error
Smart contracts Medium veToken Finance contest Audit finding
-
getBorrowRate returns rate per year instead of per blockSmart contracts High Canto v2 contest Audit finding
-
PortcalFacet.repayAavePortal() can trigger an underflow of routerBalances
Smart contracts High Connext Amarok contest Audit finding
-
More outstanding reserved tokens are distributed than anticipated leading to less redeemable assets and therefore loss of user funds
Smart contracts Medium Juicebox Buyback Delegate Audit finding
-
Discounted fee calculation is imprecise and calculates less fees than anticipated
Smart contracts Medium Juicebox Buyback Delegate Audit finding
-
Vault Share/Strategy Token Calculation Can Be Broken By First User/AttackerSmart contracts Medium Notional Update #4 Audit finding
-
Frontrun `deposit()` can cause the depositor to lose all the fundsSmart contracts Medium Mycelium Audit finding +10 collaborators
-
Unsafe casting from int128 can cause wrong accounting of locked amounts
Smart contracts Medium FIAT DAO veFDT contest Audit finding
-
Should use >= instead of >Smart contracts Medium Swivel v3 contest Audit finding
-
VaultTracker miscalculates compounding interestSmart contracts Medium Swivel v3 contest Audit finding
-
Users can lose fractions to precision loss during migraction if _newFractionSupply is set very low
Smart contracts High Fractional v2 contest Audit finding
-
Unsafe casting of user amount from `uint256` to `uint128`Smart contracts Medium Harpie Audit finding +5 collaborators
-
Builder can halve the interest paid to a community owner due to arithmetic rounding
Smart contracts High Rigor Protocol contest Audit finding
-
Division Before Multiplication Can Lead To Zero Rounding Of Return Amount
Smart contracts High Illuminate contest Audit finding
-
[PNM-004] Calculation of _secondaryReserveRatio can be overflowed
Smart contracts Medium Nibbl contest Audit finding
-
Users will lose a majority or even all of the rewards when the amount of total shares is too large, due to precision lossSmart contracts High Biconomy - Smart Contract Wallet contest Audit finding
-
New gALCX token denomination can be depressed by the first depositorSmart contracts Medium Alchemix contest Audit finding
-
Silent overflow of _fCashAmount
Smart contracts Medium Notional x Index Coop Audit finding
-
Decimal token underflow could produce loss of funds
Smart contracts Medium Mimo DeFi contest Audit finding
-
StakedCitadel depositors can be attacked by the first depositor with depressing of vault token denomination
Smart contracts High Badger Citadel contest Audit finding
-
Expiration calculation overflows if call option duration ≥ 195 days
Smart contracts Medium Cally contest Audit finding
-
Mint spread collateral-less and conjuring collateral claims out of thin air with implicit arithmetic rounding and flawed int to uint conversion
Smart contracts High Rolla contest Audit finding
-
User fund loss in supplyTokenTo() because of roundingSmart contracts Medium PoolTogether Audit finding
-
yVault: First depositor can break minting of shares
Smart contracts High JPEG'd contest Audit finding
-
InsuranceFund depositors can be priced out & deposits can be stolenSmart contracts High Hubble contest Audit finding
-
_decimalMultiplier doesn’t account for tokens with decimals higher than 18
Smart contracts Medium Backd Tokenomics contest 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