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 251 to 300 of 5,700
  1. Cached, eventually consistent subgraph data was used as authoritative calldata without comparing it to the live registry.

    Seen in 2 reports
  2. Caller-controlled swap parameters were passed to the router without validation against safe defaults or an oracle.

    Seen in 2 reports
  3. Child strategy contracts do not override the base contract's virtual reward-claiming function, so claim returns zero and rewards stay stuck.

    Seen in 2 reports
  4. Claim bits were only marked after processing all claims in the loop, so duplicates within one transaction were not detected.

    Seen in 2 reports
  5. Claimable amounts are computed from current factory parameters without tracking historical payouts.

    Seen in 2 reports
  6. Clearing records sets stake to zero, and the reward update returns early when stake is zero, marking rewards paid without crediting them.

    Seen in 2 reports
  7. Commission queries and claims only considered currently active reward tokens and did not handle historical tokens.

    Seen in 2 reports
  8. Control characters were not stripped from usernames, so names differing only by a trailing newline were treated as distinct.

    Seen in 2 reports
  9. Distribution runs before the minter period update, and the claimable amount is read before being updated with the latest emissions.

    Seen in 2 reports
  10. Distribution sends yield to all holders without checking whether a holder contract can withdraw arbitrary ERC-20 tokens.

    Seen in 2 reports
  11. Epoch settlement does not read the queue of committed orders, so matured requests are priced at a mark that ignores an already-fixed fill price.

    Seen in 2 reports
  12. Function selectors are hardcoded from the wrong signatures or an outdated deployment instead of being computed from the current ABI.

    Seen in 2 reports
  13. Junior NAV included the refundable variation margin of open positions without netting it out, so LP entry and exit prices were distorted.

    Seen in 2 reports
  14. The liquidity amount is computed from one token balance only, ignoring the paired token balance.

    Seen in 2 reports
  15. The miner fee branch credits the balance but omits the record_transfer call that inserts a leaf.

    Seen in 2 reports
  16. Null bytes in user input were not rejected or sanitised, causing timeline entries to be truncated or mishandled and unexpected behaviour in report creation and closure.

    Seen in 2 reports
  17. Off-by-one bounds checks rejected the first and last valid indexes.

    Seen in 2 reports
  18. One setter and the initialiser skip the ordering check that the other setters enforce.

    Seen in 2 reports
  19. Owner-controlled bounds such as equity floor, settlement balance and leverage are evaluated against live account state at execution rather than a snapshot taken at commit.

    Seen in 2 reports
  20. Released and total released amounts are tracked globally rather than per token and per payee.

    Seen in 2 reports
  21. Removal sets the pool emission index to a maximum value without first accruing emissions.

    Seen in 2 reports
  22. Remove strategy calls the vault directly without first submitting the operation to the timelock.

    Seen in 2 reports
  23. Removing an operator zeroes the array entry instead of removing it, and dependent functions assume the cache is in sync.

    Seen in 2 reports
  24. Renewal calldata is derived from the normalised form of the label instead of the label as registered, so the hashed key differs from the registration the row displays.

    Seen in 2 reports
  25. requestRedeem authorises only the owner side and never constrains the controller argument, and the minimum-size check is skipped for a full-balance request.

    Seen in 2 reports
  26. Return codes from Compound-style mint and redeem functions are ignored instead of being checked for zero.

    Seen in 2 reports
  27. The claim idempotency flag is reused as a sweep marker without restricting it to matured buckets.

    Seen in 2 reports
  28. Revenue is distributed before the pending recapitalisation bucket is applied, and recap surplus is never routed to Junior once the Senior gap closes.

    Seen in 2 reports
  29. Reward accounting does not handle zero total supply, locking rewards sent before the first depositor or during empty periods.

    Seen in 2 reports
  30. Reward checkpoints are created for inactive validators and reactivation clears the inactivity timestamp cap.

    Seen in 2 reports
  31. Reward state initialisation loops only over currently active tokens, leaving stale pointers for removed tokens.

    Seen in 2 reports
  32. Settlement parameters were read from mutable storage at callback time instead of being snapshotted when the drawing started.

    Seen in 2 reports
  33. Swap and liquidity functions did not accept a deadline, so transactions stayed valid indefinitely.

    Seen in 2 reports
  34. Swap passes a minimum output of zero instead of a real slippage limit.

    Seen in 2 reports
  35. The account deletion endpoint relied only on the existing session cookie and did not require a fresh password confirmation.

    Seen in 2 reports
  36. The accrue function added the claimable amount to the unclaimed balance without reducing or tracking the claimable amount, so repeated calls accrued it again.

    Seen in 2 reports
  37. The admission check bounds only net skew and current solvency, never gross notional or the headroom to the degraded-mode trigger, so a skew-neutral book can raise maximum liability.

    Seen in 2 reports
  38. The advertised maximum and the enforced limit round in opposite directions, so the quote can exceed the remaining capacity.

    Seen in 2 reports
  39. The app relied on the store to guarantee purchase integrity and never verified receipt signatures, leaving the verification method unused and the public key unconfigured.

    Seen in 2 reports
  40. The app-wide query client sets a one-hour stale time and the shared result helper discards per-query freshness, so ENS forward resolutions are cached as if static.

    Seen in 2 reports
  41. The application relies on client-side plan and feature flag data for authorisation without server-side validation.

    Seen in 2 reports
  42. The application trusted client-supplied payment status data instead of verifying the transaction server-side with the payment gateway.

    Seen in 2 reports