In-depth lesson · Business logic
Root causes
Every point the Business logic reports back under this heading, best-backed first, each with the reports it is seen in.
-
Governance can change the token address without preserving existing balances.
Seen in 1 report
-
Grading logic and score state lived entirely in client-side JavaScript and the backend accepted submitted scores without verifying their integrity.
Seen in 1 report
-
The guard validates the gwei-rounded executor fee instead of the raw value sent.
Seen in 1 report
-
Guardian-facing NatSpec comments were not updated when the implementation changed to make the settlement hold affect Senior request admission and cancellation.
-
Harvest silently skips when the strategy is unset, the cooldown has not elapsed or the delegatecall fails, instead of blocking the adapter change.
Seen in 1 report
-
Health and liquidation maths mixes units: collateral converted to USD but debt used as raw token units.
-
Holder enumeration uses swap-and-pop removal that shifts indices, and batch distribution relies on those indices without re-checking balances.
Seen in 1 report
-
Holiday overrides are keyed as UTC day numbers rather than the actual exchange closure window, freezing the oracle for up to 22 hours of live trading.
-
Homoglyph characters are converted to ASCII before duplicate checks, causing collisions.
Seen in 1 report
-
Hostname and cookie domain were not lowercased before the public suffix comparison.
Seen in 1 report
-
Hostnames were compared as plain strings, so a trailing dot or percent-encoded slash slipped past domain and HTTPS checks.
-
Identity relied solely on a client-supplied cookie and a new valid cookie was issued when an invalid one was presented.
Seen in 1 report
-
Implicit constraints on operation order and multiplicity were left to documentation rather than enforced in code.
Seen in 1 report
-
Implied volatility is derived from Uniswap fee growth without sufficient manipulation resistance.
Seen in 1 report
-
Implied volatility uses only the current block's liquidity in a single tick spacing, which a flash deposit and withdrawal can manipulate.
Seen in 1 report
-
In the no-content-length, no-chunked branch the code finished the header but did not mark the connection for closing, so the tunnel state machine reset and retried on the same socket.
Seen in 1 report
-
Inbound transactions are finalised by independent observer votes with no per-sender ordering guarantee.
Seen in 1 report
-
Inclusive end-time comparisons allow bidding and claiming at the same timestamp, and claim does not update status.
Seen in 1 report
-
The batch endpoint skipped or used different quota checks from the single-send endpoint.
Seen in 1 report
-
Inconsistent canonicalisation of the submitted email let the self-invitation check miss, and redemption did not revalidate the invitation against the user's current role.
Seen in 1 report
-
increaseMargin and closePosition do not check whether a position has already been liquidated.
Seen in 1 report
-
Increasing a short record's debt does not update its timestamp, so the ratio used for dispute checks can be changed without reflecting the time.
-
Individual vaults did not track their own deposits and withdrawals, so a user could withdraw LP that was never deposited through the vault.
-
Individual votes were snapshotted but the total voting power was read live when checking the threshold.
-
Inflows were netted only against the current segment rather than the segment that recorded the outflow.
Seen in 1 report
-
Initialisation set the initial proposal ID equal to the proposal count, so the strict inequality could never hold.
Seen in 1 report
-
An inner dispatch error rolls back the hold release while the scheduler treats the error as terminal.
-
Input was checked before decoding or normalising, so the encoded value passed validation and was stored as-is.
Seen in 1 report
-
Inspection results were cached by filename and users downloaded files directly from the remote server, so a safe verdict was reused.
Seen in 1 report
-
Integer division before scaling truncates the square-root price to zero when the price ratio is extreme.
Seen in 1 report
-
Integer division can produce zero and the code does not check before transferring.
Seen in 1 report
-
Integer division can round the mint amount to zero and the claim record is deleted without a zero check.
Seen in 1 report
-
Integer division in the fee calculation rounds down to zero for low-decimal tokens on small trade amounts.
Seen in 1 report
-
Integer division of the time delta by the recovery duration truncated to zero for small deltas.
Seen in 1 report
-
Integer division rounded down and the zero check did not account for rounding to one when nearly two periods had passed.
Seen in 1 report
-
Integer division rounded down where the formula required rounding up.
Seen in 1 report
-
Integer division rounded the price adjustment factor to zero for small trade amounts.
Seen in 1 report
-
Integer division rounding down to zero in the slot cutoff calculation included the current slot in the removal range.
Seen in 1 report
-
Integer division truncates because the time difference is divided before multiplying by the other factors.
-
Integer division truncates the collateral to zero for small amounts with no check that it is above zero.
Seen in 1 report
-
Integer division truncates the target growth rate to zero when the product of rate and elapsed time is small, making the target 1.0.
Seen in 1 report
-
Integer division truncation makes the fee round down to zero for small deposits with low-decimal tokens.
Seen in 1 report
-
Medium
-
-
Integer division truncation when calculating the minimum bid price makes the product fall short of the initial price.
Seen in 1 report
-
Integer division truncation when computing elapsed months underestimated the decrease per update.
-
Integer division truncation when splitting amounts among routers, with different rounding in execute and reconcile, caused the drift.
-
Integer division when converting tokens to vault shares truncated the withdrawn amount.
Seen in 1 report
-
Integer truncation when elapsed time times reward rate is below total supply, combined with a public claim for any account.
-
Interest accrual and treasury minting read different reserve factor values in the same update.
Seen in 1 report
-
Interest accrued only on explicit update calls that were not synchronised between the two contracts.
Seen in 1 report
-
Interest is calculated using the current borrow rate per block for the entire duration, though that rate varies with total borrows and supply.
Seen in 1 report