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 2,901 to 2,950 of 5,700
  1. The due date calculation adds an extra payment cycle when the last repayment timestamp falls on a later day than the accepted timestamp or after a full cycle.

    Seen in 1 report
  2. The due date calculation and the liquidation check use different time bases or formulas.

    Seen in 1 report
  3. The duplicate check relies on a hash of the whole message, including fields that may change over time.

    Seen in 1 report
  4. The duplicate check uses a condition that is false when the collateral is the first element.

    Seen in 1 report
  5. The duplicate-email check compared the raw submitted string, so a trailing space made an existing address look new.

    Seen in 1 report
  6. The duration check compares the new expiration to the old expiration instead of the current timestamp, so it never exceeds the maximum.

    Seen in 1 report
  7. The duration-update routine does not reset stored capacity when moving from an infinite bucket back to a finite one.

    Seen in 1 report
  8. The dust limit formula omitted the one-byte scriptPubKey length prefix, undercounting output size.

    Seen in 1 report
  9. The earlier fix blocked only certain FILE URL patterns and missed alternative formats that resolve to SMB paths.

    Seen in 1 report
  10. The early return for zero rewards happens before any validation or refund of the attached value.

    Seen in 1 report
  11. The early return in addFee skipped the fee accounting updates when the reward token supply exceeded the maximum.

    Seen in 1 report
  12. The early return when total supply is zero still advances the last update timestamp, and the caller passes the post-burn supply.

    Seen in 1 report
  13. The early-execution path calls an internal helper that does not set the executed flag.

    Seen in 1 report
  14. The earmark call inside redeem runs first and absorbs prefunded cover into the reference balance before the delta is computed.

    Seen in 1 report
  15. The earmark call returns early in the same block as repay, leaving a stale reference balance so cover is counted twice.

    Seen in 1 report
  16. The earmark function advances the last transmuter balance to the full current balance instead of only the portion actually consumed.

    Seen in 1 report
  17. The earmark function saturates the cover subtraction at zero without persisting the surplus for later calls.

    Seen in 1 report
  18. The earmark logic subtracts the rise in the transmuter balance as cover without accounting for the repayment that already reduced the global earmarked counter.

    Seen in 1 report
  19. The earmark routine cancels valid signals when the graph query is at or below the cover amount, yet the claim still deletes the position.

    Seen in 1 report
  20. The earmark runs before the cover calculation and updates the last balance, so the delta and cover are always zero.

    Seen in 1 report
  21. The edit action does not re-check the poll's allow-anyone-to-add-options setting.

    Seen in 1 report
  22. The edit guard only checks that the last check-out time has passed, not that all rentals are finalised or that no payments are pending.

    Seen in 1 report
  23. The eject function transfers the whole target asset balance instead of only the amount returned by the combine operation.

    Seen in 1 report
  24. The EL derived build path skips invalid sequencer transactions with a mempool-style policy while the proof path executes the list strictly.

    Seen in 1 report
  25. The eligibility check compared the stored streak rather than the value computed from missed days.

    Seen in 1 report
  26. The eligibility check read the stored streak before it was updated, creating a one-spin lag against the freshly computed streak.

    Seen in 1 report
  27. The eligibility check reads a stale status because the refresh that updates eligibility runs after the check instead of before it.

    Seen in 1 report
  28. The eligible token amount was calculated from the current total pool deposits, which change within an epoch, so early exercisers take more than their share.

    Seen in 1 report
  29. The eligible total supply is recomputed from live balances on each batch call instead of a snapshot taken when distribution began.

    Seen in 1 report
  30. The else branch handles both the case where no time has passed and the case where the full decay time has passed.

    Seen in 1 report
  31. The else branch of a conditional was not updated to use the correct variables for the second asset.

    Seen in 1 report
  32. The else branch of the collateral sale logic lacked a sell path check unlike the if branch.

    Seen in 1 report
  33. The EMA return values were destructured in the wrong order, swapping fast and slow and omitting the eons EMA.

    Seen in 1 report
  34. The email address is updated immediately without a confirmation link to the new address or re-authentication.

    Seen in 1 report
  35. The email change feature lacked the verification step enforced during signup.

    Seen in 1 report
  36. The email confirmation endpoint lacked rate limiting on the confirmation code.

    Seen in 1 report
  37. The email domain blacklist check used a case-sensitive comparison without normalising the domain to lowercase.

    Seen in 1 report
  38. The email domain restriction is enforced only on the client side.

    Seen in 1 report
  39. The email domain restriction was enforced only in the browser, and student roles were assigned before verification.

    Seen in 1 report
  40. The email field was only checked for the presence of an at sign and a dot, without rejecting other special or control characters.

    Seen in 1 report
  41. The email field was used only for pre-reset validation and was not bound to the reset token during the actual reset step.

    Seen in 1 report
  42. The email parameter was not type-checked, so an array was processed as multiple recipients while the quota counted one invite.

    Seen in 1 report
  43. The email reply-to-comment feature did not check whether the sender's account was still active or allowed to access the project.

    Seen in 1 report
  44. The email restriction was implemented only in the traditional signup handler, not the OAuth account-creation path.

    Seen in 1 report
  45. The email update endpoint wrote the new address to the database without any verification step or confirmation flow.

    Seen in 1 report
  46. The email validation logic does not normalise the parameter, so double encoding bypasses checks.

    Seen in 1 report
  47. The email validation only checked that the allowed domain appeared somewhere in the string rather than matching the exact domain.

    Seen in 1 report
  48. The email verification endpoint did not enforce rate limiting or throttling on repeated requests.

    Seen in 1 report
  49. The email was stored in a fixed-length column without length validation, so the database truncated it and the domain check ran on the truncated string.

    Seen in 1 report
  50. The email-based merge request path did not apply the same push rule validation as regular pushes.

    Seen in 1 report