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 4,501 to 4,550 of 5,700
  1. The retained-basket coverage check compares each stored feed time against the basket's newest component time and its revert is thrown during cache preparation outside the per-item catch boundary.

    Seen in 1 report
  2. The retarget uses a single author-controlled timestamp delta with an asymmetric bound and stores the author's timestamp as the next baseline.

    Seen in 1 report
  3. The retry logic resets the request but fails to clear redirect-related state such as the redirect queue, last URL and attribution helper.

    Seen in 1 report
  4. The return statement combines the two refinance conditions with a logical AND instead of OR.

    Seen in 1 report
  5. The return value of ERC20 approve is not checked during listing validation.

    Seen in 1 report
  6. The return value of the folder-parsing call in the encryption check is ignored, so a failed parse leaves the coder count at zero and the folder is reported as unencrypted.

    Seen in 1 report
  7. The return value of the refund transfer was ignored, so a failed refund left the overpaid amount in the contract.

    Seen in 1 report
  8. The return value of the swap giving the adopted asset was not used, and the local asset was passed to the loan repayment.

    Seen in 1 report
  9. The reuse comparison only looked at the primary TLS config and never compared the client key, key password, key type or certificate type.

    Seen in 1 report
  10. The reuse coverage check compares each stored feed against the basket's newest component time instead of that feed's own time.

    Seen in 1 report
  11. The reuse coverage loop compares each feed against the basket's newest component time instead of the oldest, so a freshly parsed basket cannot satisfy its own check.

    Seen in 1 report
  12. The revenue waterfall fills the Senior gap before the queued recapitalisation is applied, so the recapitalisation meets a closed gap and its remainder is parked as unassigned assets.

    Seen in 1 report
  13. The revenue-tagging condition only queues revenue when both stored tranche principals are zero, so with senior principal still nonzero the revenue is not reserved.

    Seen in 1 report
  14. The reverse simulation calculation for stable swaps omitted the extra fees from the fee deduction step.

    Seen in 1 report
  15. The review endpoints lacked authentication and the schema carried no purchase reference, so the verified label was never enforced server-side.

    Seen in 1 report
  16. The review page reads the partner's current business email without checking verification status.

    Seen in 1 report
  17. The revoke function subtracts the full original vesting amount from total supply instead of only the still-unwithdrawn amount.

    Seen in 1 report
  18. The reward accounting let both stakers and game players claim the same yield from a shared reward pool.

    Seen in 1 report
  19. The reward accounting updates the last update timestamp even when total supply is zero, so rewards accrue to nobody.

    Seen in 1 report
  20. The reward amount is computed once at creation and never recalculated as the voting balance decays.

    Seen in 1 report
  21. The reward calculation adds the open draw's reserve after the draw is already closed.

    Seen in 1 report
  22. The reward calculation did not check whether a deposit's lock had expired.

    Seen in 1 report
  23. The reward calculation divided by the whole pool's liquidity time weight instead of only the weight of eligible positions.

    Seen in 1 report
  24. The reward calculation has no time-weighted checks and no front-running protection on deposits.

    Seen in 1 report
  25. The reward calculation ignores the L1 data fee that depends on calldata size.

    Seen in 1 report
  26. The reward calculation iterates over multiple checkpoints created in the same epoch, double-counting the balance.

    Seen in 1 report
  27. The reward calculation queried the current locked balance per token ID at claim time instead of using a checkpoint of balances at the epoch start, so transferring tokens to a new token ID within the same block bypassed the check.

    Seen in 1 report
  28. The reward calculation reads the user's balance from the stake tracker, which is updated before the reward debt is reset.

    Seen in 1 report
  29. The reward calculation returns the stored reward per token unchanged when total supply is zero but still advances the last update block.

    Seen in 1 report
  30. The reward calculation returns zero when the user has no effective stake, and the withdrawal function overwrites the accrued balance with that zero instead of preserving it.

    Seen in 1 report
  31. The reward calculation rounds the deposit time down to the start of the week, ignoring the actual duration funds were present.

    Seen in 1 report
  32. The reward calculation used only the user's shares, not the amount being unminted, so partial unmints paid as if all shares were unminted.

    Seen in 1 report
  33. The reward calculation used the live token balance at update time, so deposits made after rewards arrived were treated as having earned them.

    Seen in 1 report
  34. The reward calculation uses a denominator of 1e18 while the accumulator values are in 9 decimals, causing the result to have only 9 decimals precision instead of the required 18 for the reward token.

    Seen in 1 report
  35. The reward calculation uses a global available rewards figure that does not subtract rewards already accounted for by other pools.

    Seen in 1 report
  36. The reward calculation uses a single rewards per second for the entire duration since the last update, ignoring when the new schedule should take effect.

    Seen in 1 report
  37. The reward calculation uses the current lock configuration for all past epochs.

    Seen in 1 report
  38. The reward calculation uses the timestamp when the randomness request was made instead of when the randomness result became available, including the fulfilment delay.

    Seen in 1 report
  39. The reward calculation uses the voting checkpoint at the end of the previous epoch, which can be overwritten after total voting is reset.

    Seen in 1 report
  40. The reward debt is updated after transferring funds, so a reentrant mint increases total reward debt before the developer's debt is recorded.

    Seen in 1 report
  41. The reward debt is updated before the token transfer, and the transfer failure is caught without reverting.

    Seen in 1 report
  42. The reward distribution logic did not handle the case where the NFT owner is the zero address after burning, and the ERC20 token rejected transfers to that address.

    Seen in 1 report
  43. The reward distribution returned early when coverage was zero without forwarding or refunding the interest already transferred to it.

    Seen in 1 report
  44. The reward fractions for multiple start draws and the finish draw are calculated independently without ensuring their sum does not exceed 1.0.

    Seen in 1 report
  45. The reward function derives the campaign week from the callback timestamp instead of the stored start-spin timestamp.

    Seen in 1 report
  46. The reward function used the creation timestamp of the caller-supplied last proposal without filtering out ineligible proposals.

    Seen in 1 report
  47. The reward function was passed the lien's remaining amount instead of the payment amount.

    Seen in 1 report
  48. The reward index update returns early when total staked is zero, leaving the last minted timestamp unset.

    Seen in 1 report
  49. The reward logic assumes sufficient balance and mishandles decimal scaling.

    Seen in 1 report
  50. The reward logic checks the contract's own token balance rather than the actual deposit amount.

    Seen in 1 report