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 51 to 100 of 5,700
  1. Reconciliation persists a mark-dependent distributable figure into the ownerless reserve ledger with no reversal record, so a temporary mark permanently reclassifies the reserve.

    Seen in 6 reports
  2. Refundable positive VPI is booked as realised revenue and not reserved as a liability, so it is counted in distributable cash and paid out on redemption before the refund is settled.

    Seen in 6 reports
  3. The retry function is permissionless, has no retry limit or cooldown, and does not require amended close limits.

    Seen in 6 reports
  4. The cap check counted only the base mint amount and excluded the pool fee that was also minted.

    Seen in 6 reports
  5. The checkpoint store is keyed by second-level timestamps and replaces an existing value at the same key instead of keeping the period-start snapshot immutable.

    Seen in 6 reports
  6. The deposited-shares counter is not decremented on liquidation and force-repay paths where tokens leave.

    Seen in 6 reports
  7. The effective stake decrease is applied once in the exit request and again in unstake when the validator is exited, with no guard that the first decrease already happened.

    Seen in 6 reports
  8. The engine mark timestamp is advanced by order execution paths while the oracle's accepted live basket is not updated, leaving the two records inconsistent.

    Seen in 6 reports
  9. The frozen-close spread and execution fee are assessed only on voluntary closes, so liquidation is a cheaper substitute the owner can elect.

    Seen in 6 reports
  10. The pool values LP shares including a VPI fee it is contractually going to rebate on close, and nothing prevents an LP from redeeming that fee before the rebate is paid.

    Seen in 6 reports
  11. The recapitalisation target is not stored separately from the pending amount, so each pass overwrites the Senior high-water mark with the residual.

    Seen in 6 reports
  12. The rescue function sets a permanent per-period claimed flag without paying out and without checking the period is closed, and the withdrawal request path never checks that flag.

    Seen in 6 reports
  13. The retry entry point has no owner check, cooldown or attempt cap, so a stranger can remove the latched precondition the owner's amend remedy depends on.

    Seen in 6 reports
  14. The retry entry point is permissionless and resolves the protection by id without checking the caller, so a third party can consume the owner-only Latched repair state.

    Seen in 6 reports
  15. The retry entrypoint is permissionless and re-queues the stored failing ceilings, while the owner's amend, cancel and manual close all require the latched-with-empty-queue state the retry immediately overwrites.

    Seen in 6 reports
  16. The retry function is permissionless and can move the protection out of the only state where the owner may amend limits.

    Seen in 6 reports
  17. The retry function is permissionless with no ownership check, cooldown or owner priority, while amendment is only allowed in the Latched state with an empty order queue.

    Seen in 6 reports
  18. The reward calculation subtracts total supply from the contract's token balance, but total supply is reduced at the start of unstaking while the tokens remain in the contract.

    Seen in 6 reports
  19. The state machine had no terminal transition for a game past its deadline with fewer proofs than the threshold.

    Seen in 6 reports
  20. A balance increase on the fee path lacks the matching record_transfer call that the sibling exit path performs.

    Seen in 5 reports
  21. Client-supplied price values were accepted without validation against the expected amount.

    Seen in 5 reports
  22. Functions that transferred yield tokens out did not decrement the tracked deposited-shares accounting variable.

    Seen in 5 reports
  23. Liquidations are exempt from the frozen-close spread on the assumption they are forced, but during the freeze the trader controls when their position becomes liquidatable.

    Seen in 5 reports
  24. One unnormalised route parameter was passed to two lookups, normalised for owner and expiry but raw for address records.

    Seen in 5 reports
  25. The base strategy declares an empty reward-claiming hook and concrete strategies never override it.

    Seen in 5 reports
  26. The checkpoint sets epoch revenue to the whole token balance without subtracting unclaimed revenue from earlier epochs.

    Seen in 5 reports
  27. The contract approves a new non-zero amount without first resetting the allowance to zero.

    Seen in 5 reports
  28. The fee deduction was capped at the account's collateral balance but the full uncapped fee was transferred from the pooled contract balance.

    Seen in 5 reports
  29. The Junior net asset value counts refundable VPI as LP equity and omits the rebate reserve the pool is owed, so shares are mispriced while a charge or rebate is outstanding.

    Seen in 5 reports
  30. The login endpoint does not track or limit repeated failed authentication attempts.

    Seen in 5 reports
  31. The low-level call's success boolean is captured but never checked, so a failed call does not revert and the queue entry is still cleared.

    Seen in 5 reports
  32. The NAV snapshot used to price Junior deposits and redemptions excludes the VPI rebate reserve, even though that reserve is certain to return to the pool at close.

    Seen in 5 reports
  33. The pending recapitalization residual is re-capped against distributable assets already backing recognised principal, and the bootstrap branch assigns the high-water mark without taking a maximum against the stored mark.

    Seen in 5 reports
  34. The period-start asset lookup is inclusive of writes at the period-start timestamp, and commitments do not store an immutable copy of the assets that authorised them.

    Seen in 5 reports
  35. The recapitalisation bootstrap branch overwrites the Senior high-water mark with the recapitalisation amount whenever both principals are zero, discarding the preserved pre-wipe value.

    Seen in 5 reports
  36. The refundable positive VPI charge on an open is recognised as distributable pool revenue with no reserve held for the later rebate.

    Seen in 5 reports
  37. The rescue path writes the same claimed flag that the normal claim path treats as a hard gate, and nothing ever clears it.

    Seen in 5 reports
  38. The residual slice of an already-started recapitalisation cohort is passed as the recapitalisation target, so the zero-principal bootstrap branch assigns a fresh high-water mark instead of preserving the original.

    Seen in 5 reports
  39. The runtime kept a base weight benchmarked for a different signature scheme or runtime than the one it verifies.

    Seen in 5 reports
  40. The strategy returned a zero change value instead of reverting when the kill switch was active, so the vault completed the transfer without updating its allocation ledger.

    Seen in 5 reports
  41. The unstake function did not check that the remaining stake stayed at or above the minimum stake amount.

    Seen in 5 reports
  42. The wiped-pool branch assigns the Senior high-water mark from the recap amount instead of preserving the stored mark.

    Seen in 5 reports
  43. The withdraw function moved tokens out but did not decrement the total amount for sale accounting variable.

    Seen in 5 reports
  44. Token transfer and approval calls are made directly without checking return values or handling tokens that return nothing, instead of going through a wrapper for non-standard tokens.

    Seen in 5 reports
  45. A failed price read leaves the query data undefined and a default zero price flows through balance, availability and approval checks as if it were a real quote.

    Seen in 4 reports
  46. A rescue function that sets a permanent claimed flag against the source account which no code path ever resets.

    Seen in 4 reports
  47. A single cooldown entry per user and validator is overwritten on each unstake, resetting the end time for the whole amount.

    Seen in 4 reports
  48. A strict greater-than comparison is used where greater-than-or-equal was intended, so the fee transfer is skipped when collateral equals the fee.

    Seen in 4 reports
  49. Approve is called without first resetting the allowance to zero.

    Seen in 4 reports
  50. Carry collected at commit is recorded as zero in the commitment, so it escapes the pinned gross-debit and action-charge limits.

    Seen in 4 reports