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 3,701 to 3,750 of 5,700
  1. The maximum coupon check did not account for the bond's coupon already existing in the set.

    Seen in 1 report
  2. The maximum liquidatable formula omits the liquidation bonus, so post-liquidation health lands below the intended target.

    Seen in 1 report
  3. The maximum loss parameter is hardcoded to 100 percent, disabling slippage protection.

    Seen in 1 report
  4. The maximum refundable gas passed to the paymaster's post-transaction hook is computed as gas left plus reserved gas without subtracting gas already spent on pubdata.

    Seen in 1 report
  5. The maximum solver fee is based on the smallest prize size rather than the actual prize size.

    Seen in 1 report
  6. The maximum was calculated by rounding one conversion down while the actual mint converted back with rounding up, so the two disagreed by one unit.

    Seen in 1 report
  7. The maximum-lock check compares against the current timestamp rather than the original lock start.

    Seen in 1 report
  8. The maxMint view mixes converted share units with raw total supply, and maxDeposit lacks a zero-share guard.

    Seen in 1 report
  9. The median calculation includes votes from inactive observers because stale entries are not filtered by block height.

    Seen in 1 report
  10. The meeting did not limit how many times the same account could join and did not prevent a presenter's own screen being shown back to them.

    Seen in 1 report
  11. The Memcached cache implementation does not properly support the increment operation used by the rate limiter.

    Seen in 1 report
  12. The mempool did not correctly replace an existing transaction when the gas price was raised, and sequence validation allowed duplicates with the same sequence number.

    Seen in 1 report
  13. The merchant platform did not verify webhook signatures, and the gateway exposed the webhook URL and secret client-side.

    Seen in 1 report
  14. The merge burns the source token without transferring or preserving its associated claims in external contracts.

    Seen in 1 report
  15. The merge function burns the source token without first claiming its pending rewards.

    Seen in 1 report
  16. The merge increases the destination balance without first claiming rewards already accrued for that destination in the current epoch.

    Seen in 1 report
  17. The merge of a new licence into an account overwrote the existing licence's user count and expiry instead of keeping them separate.

    Seen in 1 report
  18. The merge request approval status was not invalidated when the source branch was deleted and recreated with different content.

    Seen in 1 report
  19. The Merkle proof is computed over index, beneficiary and amount only, omitting the tranches that are part of the leaf in the corresponding Merkle tree.

    Seen in 1 report
  20. The Merkle proof verification omits the incident timestamp, allowing replay if the timestamp is in the future.

    Seen in 1 report
  21. The message handler for submitting bad signature evidence was omitted from the module's handler file.

    Seen in 1 report
  22. The message status is set to success based solely on the handler callback returning true, instead of using the status parameter.

    Seen in 1 report
  23. The message type defines the salt as a 64-bit integer instead of a 32-byte value, so many valid addresses are unreachable.

    Seen in 1 report
  24. The message-apply function only updates the sender's nonce for contract creation transactions, not for regular calls.

    Seen in 1 report
  25. The message-edit feature does not re-check the user's plan or remaining quota before allowing a premium model response.

    Seen in 1 report
  26. The metadata service did not consider that a single name can contain a dot and treated it as a valid subdomain without checking parent ownership.

    Seen in 1 report
  27. The MEV boundary check is gated on the oracle's frozen status at execution time rather than at commit time.

    Seen in 1 report
  28. The middleware returns the input version instead of the final version negotiated by the underlying app.

    Seen in 1 report
  29. The migrate function did not verify the old strategy's total value was zero after withdrawal.

    Seen in 1 report
  30. The migrate function does not require the new reward token to differ from the current one.

    Seen in 1 report
  31. The migrated amount was subtracted from total staking power without checking whether the source validator had already unstaked.

    Seen in 1 report
  32. The migration event recorded only the two addresses, omitting the transferred amount and reward.

    Seen in 1 report
  33. The migration function does not ensure the new epoch is at least the smoothing period ahead of the active epoch.

    Seen in 1 report
  34. The migration mints the new token for the post-fee amount without accounting for the withdrawal fee charged by the old token contract.

    Seen in 1 report
  35. The migration path calls the staking rewards withdrawal with the old user address, so rewards are updated on the old account instead of being transferred.

    Seen in 1 report
  36. The migration period outlasted the buyout period and the contract did not track fractions returned from a failed buyout.

    Seen in 1 report
  37. The migration plan cache key omits the V1 resolver and owner state, and execution never re-reads the live V1 registry before submitting.

    Seen in 1 report
  38. The migration plan was not bound to a canonical snapshot of the authority-bearing state and had no final freshness check before submission.

    Seen in 1 report
  39. The migration wipes predeployed contract storage and the new storage layout does not match, emptying the replay guard.

    Seen in 1 report
  40. The migration write set is built from prior-owner records with no allowlist, and the post-state verifier compares against the same tainted objects.

    Seen in 1 report
  41. The migrator path in the first mint bypassed the minimum liquidity lock, allowing an arbitrarily small total supply.

    Seen in 1 report
  42. The minimum acceptable output for a derivative-to-underlying swap was calculated from the underlying's 1:1 price, ignoring that the derivative can trade below it.

    Seen in 1 report
  43. The minimum and maximum price selection is inverted when choosing the worst-case price.

    Seen in 1 report
  44. The minimum borrow check applies only when borrowing, not when repaying.

    Seen in 1 report
  45. The minimum borrow check is skipped during vault settlement and only one currency's debt can be reduced at a time during liquidation.

    Seen in 1 report
  46. The minimum borrow size check only compared the primary debt and did not apply the same check to secondary debts.

    Seen in 1 report
  47. The minimum collateral required after a dirty liquidation is set to zero because its setter is commented out.

    Seen in 1 report
  48. The minimum collateral threshold is enforced only in the borrow path and not in the collateral withdrawal path.

    Seen in 1 report
  49. The minimum contribution check ran before the excess refund reduced the amount.

    Seen in 1 report
  50. The minimum contribution is checked after refunding excess over the maximum, without ensuring the remainder still meets the minimum.

    Seen in 1 report