Skip to content

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.

Back to the lesson 1,101 to 1,150 of 5,700
  1. Governance can change the token address without preserving existing balances.

    Seen in 1 report
  2. 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
  3. The guard validates the gwei-rounded executor fee instead of the raw value sent.

    Seen in 1 report
  4. Guardian-facing NatSpec comments were not updated when the implementation changed to make the settlement hold affect Senior request admission and cancellation.

    Seen in 1 report
  5. 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
  6. Health and liquidation maths mixes units: collateral converted to USD but debt used as raw token units.

    Seen in 1 report
  7. 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
  8. 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.

    Seen in 1 report
  9. Homoglyph characters are converted to ASCII before duplicate checks, causing collisions.

    Seen in 1 report
  10. Hostname and cookie domain were not lowercased before the public suffix comparison.

    Seen in 1 report
  11. Hostnames were compared as plain strings, so a trailing dot or percent-encoded slash slipped past domain and HTTPS checks.

    Seen in 1 report
  12. 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
  13. Implicit constraints on operation order and multiplicity were left to documentation rather than enforced in code.

    Seen in 1 report
  14. Implied volatility is derived from Uniswap fee growth without sufficient manipulation resistance.

    Seen in 1 report
  15. 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
  16. 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
  17. Inbound transactions are finalised by independent observer votes with no per-sender ordering guarantee.

    Seen in 1 report
  18. Inclusive end-time comparisons allow bidding and claiming at the same timestamp, and claim does not update status.

    Seen in 1 report
  19. The batch endpoint skipped or used different quota checks from the single-send endpoint.

    Seen in 1 report
  20. 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
  21. increaseMargin and closePosition do not check whether a position has already been liquidated.

    Seen in 1 report
  22. 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.

    Seen in 1 report
  23. Individual vaults did not track their own deposits and withdrawals, so a user could withdraw LP that was never deposited through the vault.

    Seen in 1 report
  24. Individual votes were snapshotted but the total voting power was read live when checking the threshold.

    Seen in 1 report
  25. Inflows were netted only against the current segment rather than the segment that recorded the outflow.

    Seen in 1 report
  26. Initialisation set the initial proposal ID equal to the proposal count, so the strict inequality could never hold.

    Seen in 1 report
  27. An inner dispatch error rolls back the hold release while the scheduler treats the error as terminal.

    Seen in 1 report
  28. Input was checked before decoding or normalising, so the encoded value passed validation and was stored as-is.

    Seen in 1 report
  29. 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
  30. Integer division before scaling truncates the square-root price to zero when the price ratio is extreme.

    Seen in 1 report
  31. Integer division can produce zero and the code does not check before transferring.

    Seen in 1 report
  32. Integer division can round the mint amount to zero and the claim record is deleted without a zero check.

    Seen in 1 report
  33. Integer division in the fee calculation rounds down to zero for low-decimal tokens on small trade amounts.

    Seen in 1 report
  34. Integer division of the time delta by the recovery duration truncated to zero for small deltas.

    Seen in 1 report
  35. 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
  36. Integer division rounded down where the formula required rounding up.

    Seen in 1 report
  37. Integer division rounded the price adjustment factor to zero for small trade amounts.

    Seen in 1 report
  38. Integer division rounding down to zero in the slot cutoff calculation included the current slot in the removal range.

    Seen in 1 report
  39. Integer division truncates because the time difference is divided before multiplying by the other factors.

    Seen in 1 report
  40. Integer division truncates the collateral to zero for small amounts with no check that it is above zero.

    Seen in 1 report
  41. 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
  42. Integer division truncation makes the fee round down to zero for small deposits with low-decimal tokens.

    Seen in 1 report
  43. Integer division truncation when calculating the minimum bid price makes the product fall short of the initial price.

    Seen in 1 report
  44. Integer division truncation when computing elapsed months underestimated the decrease per update.

    Seen in 1 report
  45. Integer division truncation when splitting amounts among routers, with different rounding in execute and reconcile, caused the drift.

    Seen in 1 report
  46. Integer division when converting tokens to vault shares truncated the withdrawn amount.

    Seen in 1 report
  47. Integer truncation when elapsed time times reward rate is below total supply, combined with a public claim for any account.

    Seen in 1 report
  48. Interest accrual and treasury minting read different reserve factor values in the same update.

    Seen in 1 report
  49. Interest accrued only on explicit update calls that were not synchronised between the two contracts.

    Seen in 1 report
  50. 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