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,951 to 2,000 of 5,700
  1. The balance helper adds the staked amount but not the paired token's pending rewards.

    Seen in 1 report
  2. The balance lookup uses a strict less-than comparison against the token's first timestamp, so a token created at the boundary is not excluded.

    Seen in 1 report
  3. The balance snapshot was updated even when a withdrawal did not liquidate the yield asset, double counting the withdrawal.

    Seen in 1 report
  4. The balance-consistency modifier was not applied to all functions that move funds.

    Seen in 1 report
  5. The Balancer oracle weight limit used the wrong precision constant, so the maximum allowed weight was only one basis point.

    Seen in 1 report
  6. The bank contract caches the fee manager address at initialisation instead of reading it from config on each use.

    Seen in 1 report
  7. The bankruptcy check compares an unscaled deposit value, off by the bucket scale factor.

    Seen in 1 report
  8. The base gas calculation ignores the extra bytes added by the relay wrapper.

    Seen in 1 report
  9. The base weight constant was never regenerated after the signature scheme changed, so it still priced the old cheaper verification.

    Seen in 1 report
  10. The basket range estimation uses extreme price bounds, producing an overly wide range that misclassifies small deficits.

    Seen in 1 report
  11. The basket refresh access check blocks non-governance callers when paused, even if the basket is disabled.

    Seen in 1 report
  12. The batch decoding function built the decoded call without carrying the inner call's transfer summary upward, so the headline had no amount to render.

    Seen in 1 report
  13. The batch function was payable and used delegatecall, so the message value was not reset between calls.

    Seen in 1 report
  14. The batch mint passes the per-receiver amount to the fee collector instead of the total amount.

    Seen in 1 report
  15. The batch reader gates Brotli usage on the decoded L2 batch timestamp rather than the L1 derivation origin timestamp.

    Seen in 1 report
  16. The batch struct does not track staked tokens, so the claim only checks the total contract balance and the claimed amount.

    Seen in 1 report
  17. The batch-taking path omits the complication validation that the single-order path performs.

    Seen in 1 report
  18. The batched function never assigns the integer division remainder, unlike the regular function which gives it to the last holder.

    Seen in 1 report
  19. The battery's last block value is never initialised, so the first redemption sees an enormous elapsed-block count.

    Seen in 1 report
  20. The before-payment hook does not subtract the payment amount from y-intercept as documented.

    Seen in 1 report
  21. The before-transfer hook skipped its delegation check when the recipient was the zero address, so burns did not reduce the recorded delegated amount.

    Seen in 1 report
  22. The bias increment was a difference divided by a large time constant, so tiny deposits truncated to zero in integer division.

    Seen in 1 report
  23. The bid function identifies an auction only by the comptroller address and does not check for a restart.

    Seen in 1 report
  24. The bid function is externally callable by anyone, allowing bids up to the maximum without member consent.

    Seen in 1 report
  25. The bid submission function does not check that the specified market exists and is open.

    Seen in 1 report
  26. The billing middleware failed open: an empty or invalid client-supplied organisation identifier skipped the quota deduction instead of rejecting the request.

    Seen in 1 report
  27. The BIN file type was whitelisted as not dangerous in the download protection configuration.

    Seen in 1 report
  28. The bin is moved only after the swap logic, so a zero-amount swap updates the average price without moving the bin.

    Seen in 1 report
  29. The binary search breaks on the first exact timestamp match instead of the most recent one, while duplicate timestamps are possible in the history.

    Seen in 1 report
  30. The block builder sorted transactions by application priority before sequence number, so per-account ordering was not preserved.

    Seen in 1 report
  31. The block check is applied without accounting for a blocked user who is still a listed organiser.

    Seen in 1 report
  32. The block conversion and submission functions performed no structural or semantic validation before serialising and signing the block.

    Seen in 1 report
  33. The block feature did not prevent blocked users from replying to the blocker's tweets, and the reply visibility logic hid those replies from the blocker.

    Seen in 1 report
  34. The block lock was applied to the caller instead of the account whose tokens were being transferred.

    Seen in 1 report
  35. The block option was shown on all comments without checking whether the author was the current user.

    Seen in 1 report
  36. The blocklist check existed only in the Move adapter and was never mirrored in the Solidity adapter.

    Seen in 1 report
  37. The blocklist compares exact code points without normalising or restricting lookalike characters.

    Seen in 1 report
  38. The blocks-per-year constant was not updated when the contract was ported from a chain with 15-second blocks to one with 3-second blocks.

    Seen in 1 report
  39. The blog creation endpoint did not re-check eligibility on the final save request, relying on an earlier check.

    Seen in 1 report
  40. The bond payment factor is calculated before the auction price is replaced with the bucket price.

    Seen in 1 report
  41. The bond-with-delegate path does not apply the decaying bond discount when calculating required collateral.

    Seen in 1 report
  42. The bonding contract does not check for the zero-amount edge case that the DEX handler handles by returning LP tokens.

    Seen in 1 report
  43. The bonus share uses the current spot pool share at withdrawal instead of a time-weighted or checkpointed share.

    Seen in 1 report
  44. The booking API accepts repeated lock requests for the same seat without checking whether the requester still holds a valid reservation.

    Seen in 1 report
  45. The boolean operands are ordered so the external fallible estimateRedeemAssets call is evaluated before the local full-balance exemption.

    Seen in 1 report
  46. The boost update does not settle and claim rewards first, so the new multiplier applies to past stakes.

    Seen in 1 report
  47. The bootloader uses a near-call panic that exhausts all gas to revert execution without reverting the whole bootloader, preventing any refund of unused gas.

    Seen in 1 report
  48. The bootloader uses an unchecked addition instead of a safe addition when summing refund gas and reserved gas, allowing an overflow.

    Seen in 1 report
  49. The bootstrap assignment path lacks the wiped-tranche check that ordinary deposit paths enforce, so it prices shares against a zero principal and revives the tranche.

    Seen in 1 report
  50. The bootstrap assignment path prices shares against the tranche's principal without checking for a wiped-but-populated tranche, so zero principal mints roughly the entire supply.

    Seen in 1 report