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 701 to 750 of 5,700
  1. A zero-amount withdrawal reset the unlock timestamp to the current time instead of extending the lock.

    Seen in 1 report
  2. Abandoned usernames could be re-registered without verifying a link to the original owner or checking old links.

    Seen in 1 report
  3. Aborted transaction amounts are summed without filtering on coin type.

    Seen in 1 report
  4. Access control was enforced on the client side instead of redacting premium content on the server before sending it.

    Seen in 1 report
  5. Accessors key the checkpoint mapping by token alone while checkpoints are only written for a token and validator pair.

    Seen in 1 report
  6. Account deletion did not deactivate the referral code, and reward issuance never checked the code belonged to an active account.

    Seen in 1 report
  7. Account deletion did not retain or transfer cancellation charges, and the new account was treated as a fresh user.

    Seen in 1 report
  8. Account deletion removed only email and password, leaving the username record so the uniqueness check still saw it as taken.

    Seen in 1 report
  9. Account lockout is keyed on the username alone without considering request origin.

    Seen in 1 report
  10. Accrued yield is only recorded when the sync function is called, so it is not reflected in share pricing until then.

    Seen in 1 report
  11. Activation used a lagging EMA weight and the end blocker only deactivated topics, never activated them later.

    Seen in 1 report
  12. Actors were keyed by a constant operation-only ID, so completion evidence was not bound to the specific account or role change.

    Seen in 1 report
  13. Ad update endpoint accepts privileged status fields from the client.

    Seen in 1 report
  14. Adding a validator set the commission field but never created a commission rate checkpoint, so the rate was treated as zero.

    Seen in 1 report
  15. Adding debt updates the user's locked amount using the current ratio but only adds the new lock to the global total.

    Seen in 1 report
  16. Adding value updated balances and target proportionally without recalculating the target to enforce the minimum.

    Seen in 1 report
  17. addQuoteToken has no maximum slippage or minimum LUP parameter.

    Seen in 1 report
  18. Administrative reward-parameter setters mutate emission state without checkpointing the current reward index first.

    Seen in 1 report
  19. Admission projection applies a linked pending close without checking its execution deadline or pinned configuration hash.

    Seen in 1 report
  20. Admission relies on free settlement that is never locked, so a flat account can withdraw it before execution and make its own pending open fail.

    Seen in 1 report
  21. After capping the execution fee to the user fee, the loss fee is computed as the difference between the capped fee and the user fee, which is always zero.

    Seen in 1 report
  22. After recalculating the token share in the fallback branch, the minimum supply check is not re-applied.

    Seen in 1 report
  23. Agent collateral is not touched when a transferToCoreVault redemption defaults, so the agent can delay and self-mint.

    Seen in 1 report
  24. Aggregator min and max answers are cached at construction time instead of fetched on each call.

    Seen in 1 report
  25. All tickets were checked for prior claims before any were marked claimed, and the reward function did not verify a ticket was not already marked, so duplicate IDs in one call paid repeatedly.

    Seen in 1 report
  26. Allocated balances are stored as unsigned integers so a negative result underflows and reverts.

    Seen in 1 report
  27. Allocations are tracked in asset amounts rather than shares and there is no function to withdraw accrued yield after depletion.

    Seen in 1 report
  28. Allowance is deducted in nominal units while the balance transfer uses a rounded-up scaled share amount.

    Seen in 1 report
  29. Allowances are not reset after swaps and the user controls swap order.

    Seen in 1 report
  30. Amounts were not converted from 18 decimals to the token's native decimals.

    Seen in 1 report
  31. An absolute token amount is compared directly with a relative percentage without converting to the same units.

    Seen in 1 report
  32. An all-zero source root matched the stored zero root, so the proof searched for a sender that could not exist.

    Seen in 1 report
  33. An assignment was used instead of an addition assignment when updating the idle increase, overwriting accumulated rewards.

    Seen in 1 report
  34. An early break that discards invalid royalty shares also aborts the seller-is-recipient detection.

    Seen in 1 report
  35. An early return before the callback registration meant only the first request per oracle version was recorded.

    Seen in 1 report
  36. An early return for zero-duration buckets skips the event emission that finite buckets perform.

    Seen in 1 report
  37. An early return in the success branch skipped the code that reset the temporary pool adjustment.

    Seen in 1 report
  38. An early return on a zero reward amount skips the balance refresh that yield withdrawal depends on.

    Seen in 1 report
  39. An early-return condition uses logical OR instead of AND with a sign check, skipping the update when margins are equal and the amount is negative.

    Seen in 1 report
  40. An empty catch block swallows permit errors and lets execution continue to a transfer that then fails for a different reason.

    Seen in 1 report
  41. An empty confirmPayment value was treated as a successful payment confirmation.

    Seen in 1 report
  42. An empty proof is treated as a special case that compares the token ID directly to the Merkle root.

    Seen in 1 report
  43. An inequality check on the input balance allowed excess tokens to be accepted.

    Seen in 1 report
  44. An internal counter was used instead of querying the actual staked amount.

    Seen in 1 report
  45. An inverted condition tests whether one asset amount is zero but then uses that same asset, selecting the wrong one.

    Seen in 1 report
  46. An inverted ternary selected the grey list when white was requested and the white list otherwise.

    Seen in 1 report
  47. An off-by-one adds one to the computed protocol fee and clips the result.

    Seen in 1 report
  48. An off-by-one comparison means the liquidation check uses strict less-than while the maximum liquidatable debt uses strict greater-than.

    Seen in 1 report