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 351 to 400 of 5,700
  1. The dust-cleanup branch treats a zero scaled repayment as a full debt wipe and the router does not check the actual burn result.

    Seen in 2 reports
  2. The eligible total supply was recalculated on every batch instead of using a snapshot from the first batch.

    Seen in 2 reports
  3. The else branch sent the whole value to the fee collector without refunding overpayment below the combined threshold.

    Seen in 2 reports
  4. The empty-bootstrap branch of the recapitalisation preview sets the Senior high-water mark to the larger of the recap target and the recap amount, ignoring the larger mark preserved by the loss.

    Seen in 2 reports
  5. The executed bootstrap quote reuses the share-conversion formula without the zero-principal guard the indicative estimate applies, so the denominator collapses.

    Seen in 2 reports
  6. The execution-config digest hashes the mutable protocol treasury address without a separate config version, so a non-execution change invalidates config-pinned orders.

    Seen in 2 reports
  7. The extension fee uses the absolute maximum deadline instead of the actual extended period.

    Seen in 2 reports
  8. The fee condition checked for expired puts instead of exercised puts, and the exercise path for puts lacked fee deduction.

    Seen in 2 reports
  9. The fee distribution reads the agent's live fee share from storage instead of the value saved in the reservation record.

    Seen in 2 reports
  10. The fee is already included in the seized amount yet a further check requires remaining collateral to cover it again.

    Seen in 2 reports
  11. The fee payout was gated on the account's post-seizure collateral balance even though the fee had already been deducted from the gross amount.

    Seen in 2 reports
  12. The fee transfer is conditioned on the victim's post-seizure remaining collateral rather than on the seized amount that already contains the fee.

    Seen in 2 reports
  13. The fee transfer is guarded by a strict comparison against the full fee amount with no partial-payment branch.

    Seen in 2 reports
  14. The fee update timestamp is only refreshed when fees are collected, not when the fee rate changes or on deposits and withdrawals.

    Seen in 2 reports
  15. The fee was burned from msg.sender instead of the actual sender or recipient.

    Seen in 2 reports
  16. The fee-paid formula omits the referral fee component that was subtracted when computing the DAO fee.

    Seen in 2 reports
  17. The first key's syndicate membership gated the entire claim and the reward-per-share refresh, so other key orderings used stale data.

    Seen in 2 reports
  18. The fresh close VPI divides squared skew by pool depth with no cap relative to notional or margin, and only exempts a depth of exactly zero.

    Seen in 2 reports
  19. The frozen-oracle mode replays a cached mark that cannot be advanced, while the calendar permits frozen days of unbounded length unrelated to the staleness limit.

    Seen in 2 reports
  20. The function transferred yield tokens before verifying that at least one holder was eligible, and lacked any recovery mechanism.

    Seen in 2 reports
  21. The generated client codec is stale or mismatched against the runtime type, so nested call boundaries shift between the two decoders.

    Seen in 2 reports
  22. The global locked total is updated using the collateral outflow or a fee-inflated amount instead of the debt converted to yield tokens times the minimum collateralisation ratio.

    Seen in 2 reports
  23. The helpdesk trusts the sender address of incoming email without verification.

    Seen in 2 reports
  24. The high-water mark is updated on every deposit, mint and withdraw rather than only when fees are accrued.

    Seen in 2 reports
  25. The high-water-mark reduction assumes all recovery-bearing shares exit when principal is fully paid, which virtual-offset rounding breaks.

    Seen in 2 reports
  26. The historical execution path installs the Engine mark without updating the oracle's accepted basket, and the protection Book reads the accepted-basket view before its own tolerant guard.

    Seen in 2 reports
  27. The if_else decoder summarises only the primary branch and the approval screen masks nested branch amounts.

    Seen in 2 reports
  28. The insolvency check compares effective assets against the open side's maximum-profit envelope rather than realised cash obligations, so a hedged pair with one leg closed can trip the latch without a real shortfall.

    Seen in 2 reports
  29. The intermediate block interval cache is keyed only by game type and never invalidated when the implementation address changes.

    Seen in 2 reports
  30. The internal burn calls the public approve function, which requires owner or operator rights.

    Seen in 2 reports
  31. The invitation endpoint had no rate limit or CAPTCHA for free-plan accounts.

    Seen in 2 reports
  32. The invite code endpoint lacked rate limiting and used a predictable response marker for valid codes.

    Seen in 2 reports
  33. The last index is computed before checking whether the array is empty, so unsigned subtraction underflows or goes negative.

    Seen in 2 reports
  34. The latch compares raw effective cash against maximum directional liability without netting offsetting hedged exposure, so a neutral pair can drive the comparison below the threshold.

    Seen in 2 reports
  35. The liquidation path never applies the frozen-close spread that a voluntary close pays.

    Seen in 2 reports
  36. The LP share pricing snapshot excludes the outstanding negative-VPI rebate reserve, so deposits are priced on a temporarily reduced asset base.

    Seen in 2 reports
  37. The manager trusts the orchestrator-returned destination execution and only verifies status, owner and resolver afterwards, never binding the label, secret or subregistry to its own request.

    Seen in 2 reports
  38. The maxWithdraw override converts shares to assets without adding the exit fee that previewWithdraw applies, so the two disagree.

    Seen in 2 reports
  39. The merge function picks the later end time and deposits into the target without re-validating that the resulting span does not exceed the maximum time.

    Seen in 2 reports
  40. The migration plan caches the V1 resolver from indexed state and the final batch and post-state verification reuse that cached value without re-reading the live registry.

    Seen in 2 reports
  41. The migration plan was cached by domain ID only and never reconciled against live V1 owner and resolver state before submission.

    Seen in 2 reports
  42. The miner fee path credits the balance directly without calling the transfer-proof recorder that creates the spendable leaf.

    Seen in 2 reports
  43. The minimum collateralisation setter does not check the new value against the lower bound.

    Seen in 2 reports
  44. The minimum output is derived from an on-chain quoter that reflects manipulable pool state.

    Seen in 2 reports
  45. The minimum output is derived from the same spot price the swap executes at, so it cannot detect prior price movement.

    Seen in 2 reports
  46. The mint function compares the contract's token balance before and after the transfer against the nominal collateral amount, without accounting for tokens that deduct a fee on transfer.

    Seen in 2 reports