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 201 to 250 of 5,700
  1. The Junior deposit share price is computed only from current pool cash and supply, omitting a protected reserve that has already been funded and is owed back to the pool.

    Seen in 3 reports
  2. The liquidation path does not check that the keeper differs from the liquidated account and does not assess the execution fee, frozen-close spread and close VPI that a voluntary close pays.

    Seen in 3 reports
  3. The login and password reset flows do not check whether the email address has been verified.

    Seen in 3 reports
  4. The margin top-up function does not check for pending orders, so a trader can change the live margin a queued order's bound is evaluated against after the fill price is known.

    Seen in 3 reports
  5. The merge function burns the source token without calling the rewards distributor to claim its accrued rewards, unlike withdraw.

    Seen in 3 reports
  6. The migration plan's query identity omits the mutable authority fields captured inside it, and submission reuses the stale classified list instead of re-reading current V1 state.

    Seen in 3 reports
  7. The open planner sources the negative impact reserve from live free settlement rather than value locked at commitment.

    Seen in 3 reports
  8. The order-execution path applies the adverse confidence shift to an already-capped basket price, so the shift lands below the cap.

    Seen in 3 reports
  9. The owner-only amend and the permissionless retry share the same latched state, and the retry relatches within one transaction, so a third party always consumes the window first.

    Seen in 3 reports
  10. The pending recapitalisation bucket is capped against the whole distributable balance on every reconciliation even though that balance was already attributed to senior principal.

    Seen in 3 reports
  11. The pending recapitalisation bucket is not reduced when the cash backing it is paid out, so later reconciles re-apply a phantom reserve.

    Seen in 3 reports
  12. The pending recapitalisation remainder is capped against distributable equity already credited to Senior, so the same value is reserved again on each pass.

    Seen in 3 reports
  13. The period-start lookup is inclusive of a checkpoint written at the boundary timestamp, so a post-withdrawal value is mistaken for the opening figure.

    Seen in 3 reports
  14. The permissionless retry and the owner-only amendment both depended on the same short-lived latched state, and expiry plus retry could be composed atomically.

    Seen in 3 reports
  15. The proof executor derives blob base fee from the parent header's blob gas field using Ethereum excess math, while canonical execution hard-codes it to one after Jovian.

    Seen in 3 reports
  16. The reconcile planner caps the stored unassigned reserve to the current mark-dependent distributable equity and persists the reduction without recording the shortfall.

    Seen in 3 reports
  17. The reconcile step re-caps the full residual pending recapitalization against the full distributable equity on every pass, even though that equity already backs the Senior principal credited by the first pass.

    Seen in 3 reports
  18. The reconciliation logic re-caps pending recapitalisation against gross distributable assets on every pass without tracking how much backing has already been consumed.

    Seen in 3 reports
  19. The reconciliation stores a mark-driven plan before applying the queued recapitalisation, and the settleable-bucket cap uses a distributable figure that already backs principal from a previous pass.

    Seen in 3 reports
  20. The redeem path validates only the input share amount and never checks that the computed asset payout is non-zero.

    Seen in 3 reports
  21. The registration and renewal parsers only trim, lowercase and blocklist ASCII punctuation instead of applying ENSIP-15 normalisation, so the raw label reaches the contract.

    Seen in 3 reports
  22. The rejection path omitted the call that pays or burns the executor fee.

    Seen in 3 reports
  23. The reply restriction was enforced only in the app interface and not re-checked when the keyboard appeared or stories changed.

    Seen in 3 reports
  24. The scheduler's failure path drops a preimage reference unconditionally, including one owned by the referenda pallet.

    Seen in 3 reports
  25. The setter appends to a storage vector instead of overwriting the fixed indices that the lookup reads.

    Seen in 3 reports
  26. The share price jumps in a single compound transaction with no time-weighting or deposit fee, so a same-block deposit captures accrued rewards.

    Seen in 3 reports
  27. The shared name-resolution fallback returns the ENS v1 registry controller when a name has no address record, discarding the registrant the same lookup already fetched.

    Seen in 3 reports
  28. The signed payload omits a nonce, expiry, amount or caller address, so a valid signature can be replayed indefinitely.

    Seen in 3 reports
  29. The strategy ignored the return value of the lending market's mint and redeem functions, which signal failure with a status code rather than reverting.

    Seen in 3 reports
  30. The strategy passed a minimum-shares-out of zero to the router deposit, disabling the slippage check.

    Seen in 3 reports
  31. The strategy tracked allocations in underlying asset amounts rather than vault or pool shares, so accrued yield was not reflected in the cap and withdrawing the principal left yield shares behind with no claim path.

    Seen in 3 reports
  32. The streak was computed from the oracle callback timestamp instead of the timestamp when the user started the spin.

    Seen in 3 reports
  33. The vault minted shares based solely on deposited amount without considering token price, assuming all tokens were of equal value.

    Seen in 3 reports
  34. The wallet software does not track which transaction public keys have already been processed, so duplicate keys cause the same outputs to be counted multiple times.

    Seen in 3 reports
  35. The write target came from a normalising helper while the ownership gate, price and transaction description used the raw name, with no check both resolve to the same node.

    Seen in 3 reports
  36. The ZK precompile provider starts from the spec-correct set then extends it with legacy entries, overwriting the Jovian cap and Osaka pricing by address.

    Seen in 3 reports
  37. The ZK prover service hardcodes a 10-block intermediate root interval and the request format has no field to override it.

    Seen in 3 reports
  38. Trial expiry is decided from a client-provided timestamp or local system time rather than a server-controlled clock.

    Seen in 3 reports
  39. Two different normalisers are used: full normalisation for reads and plain lowercasing for the renewal label, so the string displayed and authorised differs from the string signed.

    Seen in 3 reports
  40. The zero-principal bootstrap branch assigns the senior high-water mark from the incoming amount instead of taking the maximum against the existing mark.

    Seen in 3 reports
  41. A function that must accept Ether was declared without the payable modifier and the contract had no payable receive or fallback.

    Seen in 2 reports
  42. A pending decision is overwritten with the default config instead of being deleted.

    Seen in 2 reports
  43. A raw balance-increase primitive is used for fee credits without recording the tree leaf that the normal credit path records.

    Seen in 2 reports
  44. A rebate paid from pool cash at open is not recorded as a receivable against the position, so NAV is understated until the rebate is reversed.

    Seen in 2 reports
  45. A single null return stands for both 'no budget' and 'budget not yet obtained', and the accepted amount is dropped when the registration start event is dispatched so the transaction manager re-estimates independently.

    Seen in 2 reports
  46. A strict greater-than comparison in the claimable-period cap skips the clamp when the delegation end equals the next claimable period.

    Seen in 2 reports
  47. A strict greater-than comparison is used where greater-than-or-equal is needed, so the current week is checkpointed before it ends.

    Seen in 2 reports
  48. Activation does not check whether the token is already active.

    Seen in 2 reports
  49. Activation is only deferred at exactly zero principal and nothing bounds the supply-to-principal ratio.

    Seen in 2 reports
  50. Adding a reward token creates positive-rate checkpoints for all validators without checking whether each is active.

    Seen in 2 reports