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,851 to 3,900 of 5,700
  1. The new contract started with empty last-claimed-epoch state and the dispenser allowed re-adding an existing nominee.

    Seen in 1 report
  2. The new credit value was assigned directly to the total instead of being added to it.

    Seen in 1 report
  3. The new cumulative index formula uses a profit variable that includes cumulative quota interest instead of only the interest portion of the repayment.

    Seen in 1 report
  4. The new duration is computed by adding the full auction duration to the current time rather than the intended short buffer.

    Seen in 1 report
  5. The new email is marked as linked when the change starts rather than after OTP confirmation, and pending records are not cleaned up on cancel or timeout.

    Seen in 1 report
  6. The new end time is derived from the full reward token balance instead of the unallocated remainder.

    Seen in 1 report
  7. The new rate is assigned before updating the reward index, so the elapsed interval is priced at the new rate.

    Seen in 1 report
  8. The new reward rate is recalculated from amount plus leftover without adjusting for rewards already accrued at the old rate.

    Seen in 1 report
  9. The new rewards variable is overwritten by adding existing queued rewards, and the combined value is used in the token transfer.

    Seen in 1 report
  10. The new total supply could be set arbitrarily low and integer division truncated small shares.

    Seen in 1 report
  11. The newly accrued delta is capped against the total balance instead of the balance minus what is already available.

    Seen in 1 report
  12. The newsletter plugin did not validate the confirmation token against the email address.

    Seen in 1 report
  13. The next distribution timestamp is initialised to zero and then incremented by 30 days instead of being set relative to the current block time.

    Seen in 1 report
  14. The next epoch is calculated from the loop index plus the epoch length instead of the epoch start plus the epoch length.

    Seen in 1 report
  15. The next funding timestamp is derived from the current duration times a monotonic pointer, so duration changes shift epoch boundaries retroactively.

    Seen in 1 report
  16. The next tier count is set to the largest claimed tier plus two and returned even when threshold checks fail.

    Seen in 1 report
  17. The NFT is transferred before the rental order existence check.

    Seen in 1 report
  18. The NFT remained transferable after claiming, so a buyer could not tell whether the reward was still available.

    Seen in 1 report
  19. The node checked whether a block identifier had been processed but not whether its height had already been used.

    Seen in 1 report
  20. The node checks only the block ID for prior execution and never verifies whether the block height is already occupied, and it has no fork-choice or reorg logic.

    Seen in 1 report
  21. The node did not verify that the Ethereum transaction message included the Ethereum extension option, so the gas consumption handler was skipped.

    Seen in 1 report
  22. The node parsed a 256-bit value into a 128-bit integer, truncating transfer amounts.

    Seen in 1 report
  23. The non-close commit path collects carry during reservation but reports it as zero to the order book, and the evaluator only includes the stored commitment for closes.

    Seen in 1 report
  24. The non-existence check compared the index to -1 while the lookup returned 0 for missing entries.

    Seen in 1 report
  25. The nonce comes from a non-cryptographic shared buffer that advances one character per call, and the handler deletes the nonce before validating the message.

    Seen in 1 report
  26. The nonce is incremented only when a bundle is executed, not when a recovery is cancelled.

    Seen in 1 report
  27. The notification email can be set to an unconfirmed address because verification is not required.

    Seen in 1 report
  28. The notification logic treated an unrecognised User-Agent as a reason to skip the alert instead of still sending it.

    Seen in 1 report
  29. The notification logic was not updated to include the newly added profile field.

    Seen in 1 report
  30. The off-chain proposer used the anchor registry address as parent after the anchor advanced, while the contract interpreted that address as the genesis sentinel.

    Seen in 1 report
  31. The offer function called by make is missing the require statement enforcing the minimum sell amount for the pay token.

    Seen in 1 report
  32. The old lock's bias is recalculated after rounding its end time down to a week boundary.

    Seen in 1 report
  33. The onboarding endpoint trusted the user identifier in the URL without checking the verification step was completed.

    Seen in 1 report
  34. The once-per-epoch guard is tracked per token identifier, so moving voting power to a fresh identifier resets the guard.

    Seen in 1 report
  35. The one-invite limit was enforced only on the add action, not on the combined add-remove sequence.

    Seen in 1 report
  36. The one-like-per-user limit was tracked with a client-controlled cookie rather than the user's identity in the database.

    Seen in 1 report
  37. The one-trial-per-company rule was checked when generating a trial but not when registering the licence.

    Seen in 1 report
  38. The ongoing-withdrawals check uses a strict less-than comparison that reverts once the withdrawal window end is reached.

    Seen in 1 report
  39. The onlyWhenNoActiveAuction modifier only checks if an auction has ended, not if it has started, and totalAssets uses the current balance.

    Seen in 1 report
  40. The opcode switch listed PUSH1 through PUSH32 but omitted PUSH0.

    Seen in 1 report
  41. The open accounting path stores the VPI curve delta as the trade cost and pays it as a rebate without the lifetime clamp or free-cash waiver that the close path enforces.

    Seen in 1 report
  42. The open borrow position function passes true for the remove-position flag, so a circuit-breaker check skips adding the position.

    Seen in 1 report
  43. The open fee is calculated and transferred before the actual paired token amount used is known, using the desired amount instead.

    Seen in 1 report
  44. The open planner clamps the new liquidation reserve to at least the old one and never returns the excess to the PnL pledge.

    Seen in 1 report
  45. The open position function lacks a check that the symbol is still valid, unlike the quote creation function.

    Seen in 1 report
  46. The open-commitment path hard-codes collected carry to zero in its commitment effects, and execution only re-adds commitment carry to the bounds for closes.

    Seen in 1 report
  47. The open-order reservation path returns a commitment with zero carry and zero settlement balances, so the lifecycle bound check misses the carry that was accrued.

    Seen in 1 report
  48. The open-position function did not enforce a minimum value for the premium portions, allowing them to be zero.

    Seen in 1 report
  49. The open-position function does not check the liquidity provider's renewal cutoff time, so a borrower can always reset the loan start time.

    Seen in 1 report
  50. The open-trade function uses the contract's total token balance instead of only the amount gained from the swap.

    Seen in 1 report