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 1,551 to 1,600 of 5,700
  1. Server-side validation for tag name prefixes was not applied.

    Seen in 1 report
  2. Sessions are not invalidated when the account password changes.

    Seen in 1 report
  3. setRatio updates the ratio without ensuring the payout variables are updated when melt reverts.

    Seen in 1 report
  4. setRoyaltyVault does not check that the vault's royalty asset equals the collection's payable token.

    Seen in 1 report
  5. Setter functions for reward period and ratio do not accrue rewards before updating parameters.

    Seen in 1 report
  6. A supply setter lacked checks that new values are at least the minted count and that their sum stays within maximum supply.

    Seen in 1 report
  7. Settlement charges only the taker fee and ignores the maker fee, so a negative taker rate makes the total fee negative.

    Seen in 1 report
  8. Settlement computes assets received as the balance difference before and after, so a pre-existing deficit hits the first cohort only.

    Seen in 1 report
  9. Settlement gates read principals from a reconcile snapshot that counts refundable charges as revenue with no term for fees still owed back to open positions.

    Seen in 1 report
  10. Settlement is blocked while trading is paused, allowing a late bidder to settle lower after unpausing.

    Seen in 1 report
  11. Settlement liveness is gated on a single sticky latch that untrusted order flow can set, with recovery only via a non-timelocked owner action.

    Seen in 1 report
  12. The settlement loop processes every non-zero deposit with no minimum deposit size.

    Seen in 1 report
  13. Settlement never reads the pending order queue, so orders with a published fill price are excluded from the settlement NAV.

    Seen in 1 report
  14. Settlement overwrote the minimum balance using only the pool's fixed slippage limit, ignoring the dynamic oracle parameter.

    Seen in 1 report
  15. Settlement reads only the withdrawal vault balance and does not include the node reward vault when deciding whether earnings cover the penalty.

    Seen in 1 report
  16. Settlement required the private key with no fallback for bidders to claim refunds if it was never provided.

    Seen in 1 report
  17. Settlement reserves the full recorded pending claimant amount against pool cash without capping it at cash held above claimed principal.

    Seen in 1 report
  18. The settlement sidecar records gross seized cash as claimant revenue without netting off the marked receivable it replaces.

    Seen in 1 report
  19. setToProcessGroups had no timing restriction beyond the epoch process having started.

    Seen in 1 report
  20. setYieldSource updated the yield source without first transferring the underlying balances, leaving share calculations using an incomplete token balance.

    Seen in 1 report
  21. Several functions compare the health factor to a hardcoded constant instead of reading the stored configurable threshold.

    Seen in 1 report
  22. Share accounting was not updated when tokens were minted directly to the vault, so previewDeposit rounded shares down to zero.

    Seen in 1 report
  23. Share calculation divides by the current balance without accounting for pending obligations.

    Seen in 1 report
  24. Share calculation rounds down to zero when supply is tiny and balance is large, with no check preventing zero-share minting.

    Seen in 1 report
  25. Share calculation rounds down with no minimum initial deposit or reserve, letting the first depositor set an extreme price per share.

    Seen in 1 report
  26. Share calculation used integer division that rounded to zero when the balance was inflated by a direct transfer, with no minimum stake.

    Seen in 1 report
  27. Share calculation used integer division that rounds down, and direct token donations could move the price per share.

    Seen in 1 report
  28. Share minting uses the contract's token balance, so a direct donation changes the share price.

    Seen in 1 report
  29. Share price calculation is vulnerable to inflation when total supply is low or zero, letting the first depositor skew price per share.

    Seen in 1 report
  30. Share price uses the vault's token balance directly, which direct transfers inflate.

    Seen in 1 report
  31. Share value is derived from a reserve figure that includes fees and can exceed the pool's real balance.

    Seen in 1 report
  32. The shared resolver returns a bare address with no provenance flag, so owner-fallback reaches irreversible paths.

    Seen in 1 report
  33. Shareholder balances are only updated when the holder fee is above zero, so zeroing the fee stops balance updates.

    Seen in 1 report
  34. Shares are burned before computing the exchange rate, inflating the per-share value.

    Seen in 1 report
  35. Shares are calculated before the funding update that increases total collateral.

    Seen in 1 report
  36. Shares are calculated dynamically from mutable factory parameters without accounting for previously released amounts.

    Seen in 1 report
  37. Shares to burn are computed from a view function that does not account for losses during the actual withdrawal.

    Seen in 1 report
  38. Shares were minted on total assets while the market rounded small deposits away.

    Seen in 1 report
  39. Shelter does not clear the depositor's staked balance in the master contract.

    Seen in 1 report
  40. Shelter entry assigns the pool balance instead of adding to the existing recorded amount.

    Seen in 1 report
  41. Short funding fees are stored in USD but converted to tokens at settlement using the current price, ignoring price changes over the accrual period.

    Seen in 1 report
  42. The sign-in endpoint enforces no rate limiting or account lockout.

    Seen in 1 report
  43. Signature verification accepts a document as authenticated when only a partial signature is present.

    Seen in 1 report
  44. Signature verification uses a recovery method that does not support smart contract wallet signatures.

    Seen in 1 report
  45. Signed integers were cast to unsigned without checking for negative values.

    Seen in 1 report
  46. Signers persist a sweep transaction only when a separate notification arrives, not during the signing round itself.

    Seen in 1 report
  47. A claim is silently capped at the contract balance instead of reverting or recording the shortfall.

    Seen in 1 report
  48. A single token balance is used for both staked principal and payout rewards.

    Seen in 1 report
  49. Slashing does not clear the delegate address, so voting logic still treats a zero-bonded account as a transcoder.

    Seen in 1 report
  50. Slashing logic looks only at current shares and ignores shares temporarily debited during over-commitment recording.

    Seen in 1 report