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 601 to 650 of 5,700
  1. A parameter name says underlying while the function and documentation expect debt tokens.

    Seen in 1 report
  2. A payable receive function exists but there is no rescue or withdrawal path for native ETH, unlike the ERC20 rescue.

    Seen in 1 report
  3. A payout checkpoint written at the current timestamp rather than the period start, so the period-start snapshot never reflects payouts.

    Seen in 1 report
  4. A per-asset balance check is used as a global signal that all collateral is exhausted without verifying other assets.

    Seen in 1 report
  5. A percentage constant representing one hundred was used where the code expected one.

    Seen in 1 report
  6. A percentage is applied to the remaining pending rewards each time, producing negative compounding instead of distributing a fixed share of the original amount.

    Seen in 1 report
  7. A phone number was reserved for an account as soon as it was submitted, before verification.

    Seen in 1 report
  8. A premature optimisation returned an empty sequence for zero length without checking for side effects in the source expression.

    Seen in 1 report
  9. A price increase set a cooldown that then blocked the collateral and minting changes in the same adjust call.

    Seen in 1 report
  10. A quoting function updates a persistent temporary-storage counter that the execution path treats as authoritative.

    Seen in 1 report
  11. A race or confusion between a branch and a tag with the same name in a forked project let the merge request show approved changes while different code merged.

    Seen in 1 report
  12. A rate-limit 'too soon' response from the claim function is treated as 'nothing owed' instead of settling the already-computed payable amount before the beneficiary is swapped.

    Seen in 1 report
  13. A read error on the last-frame byte is treated as acceptable and the frame is decoded with the flag set to false.

    Seen in 1 report
  14. A refactor inlined the settleability check and dropped the explicit zero-expiration exception.

    Seen in 1 report
  15. A region-specific licensing or metadata flag was used in place of the account's subscription check for download permission.

    Seen in 1 report
  16. A replacement contract starts its ID counter at zero instead of inheriting the previous contract's counter.

    Seen in 1 report
  17. A require statement reverts the whole transaction when one token has zero reward instead of skipping it.

    Seen in 1 report
  18. A require statement used a strict less-than comparison instead of less-than-or-equal, permitting one token beyond the intended maximum.

    Seen in 1 report
  19. A return inside a loop exits the whole function instead of skipping the invalid iteration.

    Seen in 1 report
  20. A return statement inside the loop exited the function after removing the first matching DEX instead of continuing.

    Seen in 1 report
  21. A revert opcode is used instead of returning false in the gas check, undoing the transaction and preventing the failed flag.

    Seen in 1 report
  22. A rounding error in the matching engine that caused dust-sized offers to execute at a 1:1 rate rather than the market price.

    Seen in 1 report
  23. A rounding error in the order matching logic that treats very small trade amounts as equal regardless of the specified price.

    Seen in 1 report
  24. A same-block early return skips refreshing the stored transmuter token balance, so same-block inflows are never recorded.

    Seen in 1 report
  25. A scaling constant of 9000 was used where 90000 was needed, making the dirty liquidation fee 9 percent of the clean fee instead of 90 percent.

    Seen in 1 report
  26. A sentinel value represented the cancelled state instead of a dedicated status field, so a valid order could collide with it.

    Seen in 1 report
  27. A separate owner field is set at mint but the ERC721 transfer hooks are not overridden to update it.

    Seen in 1 report
  28. A settlement fee computed from minted value rather than compute and storage consumed, with dummy-leaf padding writing permanent nullifiers.

    Seen in 1 report
  29. A shared internal claim routine that trusts callers to perform the already-claimed check.

    Seen in 1 report
  30. A signature-based allowance function was callable by anyone and did not bind the signature to a specific caller or transaction.

    Seen in 1 report
  31. A signed free balance is exposed as an unsigned value, so a negative balance wraps into a huge positive one.

    Seen in 1 report
  32. A single balance is used for both withdrawable fees and fees that may need to be refunded.

    Seen in 1 report
  33. A single boolean claim flag was reused for two meanings (bucket paid out and balance rescued) and never cleared, while the withdrawal request credited the same open bucket without checking it.

    Seen in 1 report
  34. A single constant transaction ID identifies both the live wallet request and a freshly rebuilt UI descriptor, matched by ID alone.

    Seen in 1 report
  35. A single Curve pool address was hardcoded for the swap, so the contract could not adapt to changing liquidity.

    Seen in 1 report
  36. A single global disabled flag is used for all trade kinds.

    Seen in 1 report
  37. A single global timestamp enforced the rebalance interval across all vaults instead of tracking it per vault.

    Seen in 1 report
  38. A single global timestamp was used for the last reset instead of tracking each user's reset time.

    Seen in 1 report
  39. A single hardcoded initial mint amount was used for all token markets instead of a per-token value scaled to decimals and price.

    Seen in 1 report
  40. A single heartbeat variable was reused for two feeds with different intervals.

    Seen in 1 report
  41. A single last-update timestamp not tied to a period was overwritten when a new period started, losing the data needed for unclaimed rewards.

    Seen in 1 report
  42. A single LP token was used for both ordinary liquidity and synth debt, so the two claims were not accounted for separately.

    Seen in 1 report
  43. A single marker is used both for 'metering was missing' and 'the transaction is done with metering', so a cache miss discards a later valid response.

    Seen in 1 report
  44. A single minimum asset amount decoded from the dex data was reused for every borrower instead of a per-borrower value.

    Seen in 1 report
  45. A single oracle timeout is assumed for all feeds, and composite collaterals do not override the staleness check.

    Seen in 1 report
  46. A single order hash per vault is stored, so a new proposal overwrites the hash needed to verify the active listing.

    Seen in 1 report
  47. A single shared value token was used for every closure, so tokens were fungible across closures.

    Seen in 1 report
  48. A single-block snapshot of delegation balance determines the multiplier without requiring the balance to be held.

    Seen in 1 report
  49. A single-collateral invariant is applied to a multi-collateral system where the stablecoin is shared across collateral types.

    Seen in 1 report
  50. A single-iterator vector erase was used where a range erase was needed, so only one logo was removed instead of truncating the list to two.

    Seen in 1 report