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 401 to 450 of 5,700
  1. The minting cap check runs on the base mint value before the pool fee is added, while the mint includes both.

    Seen in 2 reports
  2. The negation in the registration check is inverted, so the push and flag update only run for pools already marked as registered.

    Seen in 2 reports
  3. The open planner clamps the post-open reserve to the previous reserve whenever the recomputed target is lower, and the settlement sidecar only moves collateral into the reserve, never back out.

    Seen in 2 reports
  4. The open-order path leaves the carryCollectedAssets field of the commitment effects at zero, so the bound check never sees the carry the margin reservation actually takes.

    Seen in 2 reports
  5. The opening-order branch records carryCollectedAssets as zero after the clearinghouse has already collected old-position carry, and the execution-time policy only adds commitment carry for closes.

    Seen in 2 reports
  6. The ownership pricing snapshot omits the secured negative impact receivable still owed back to the pool.

    Seen in 2 reports
  7. The ownership query normalises the name while the records query uses the raw parameter, so the two queries resolve to different on-chain names.

    Seen in 2 reports
  8. The password policy does not reject passwords equal to the username or identical to the current password.

    Seen in 2 reports
  9. The payment check uses greater-than-or-equal instead of requiring an exact match, so overpayment is accepted and the difference is never computed or refunded.

    Seen in 2 reports
  10. The payout helper caps the amount with a minimum-of calculation instead of reverting, and the caller burns tokens regardless of the amount paid.

    Seen in 2 reports
  11. The pending recapitalisation bucket is only decremented inside reconcile, which is capped to distributable value and rolled back by the no-progress revert, so a residual keeps reserving cash after the claim it backed is paid.

    Seen in 2 reports
  12. The pending recapitalization bucket is only decremented by a reconcile, while payouts reduce accounted assets without touching the bucket, so the reservation outlives its cash.

    Seen in 2 reports
  13. The pending-payment formula multiplies the whole historical inflow by the current dynamic share, rewriting past entitlements.

    Seen in 2 reports
  14. The pending-rescue cap is applied against the same split-ready value on every settlement instead of only the value above already-credited balances.

    Seen in 2 reports
  15. The platform counted duplicates towards totals without checking whether the same researcher already received credit.

    Seen in 2 reports
  16. The pool forwards the user's permit signature to the token contract without protecting against front-running, so whoever submits it first consumes the nonce.

    Seen in 2 reports
  17. The precompiled contract did not verify it was not invoked via delegatecall and trusted the call value without confirming funds arrived.

    Seen in 2 reports
  18. The price-impact charge is skipped only at exactly zero depth while the curve has no upper bound as depth approaches zero, and it is collected from the account's entire free settlement balance.

    Seen in 2 reports
  19. The quantity parameter had no lower-bound validation, so negative values reduced the cart total.

    Seen in 2 reports
  20. The quorum threshold is not checkpointed per proposal, so a later change to the quorum numerator applies retroactively.

    Seen in 2 reports
  21. The reconcile logic caps the entire stored residual against the entire current distributable equity without tracking which part already backs principal credited by an earlier pass.

    Seen in 2 reports
  22. The reconcile snapshot counts refundable volume price impact as earned cash and omits the signed lifetime impact term from LP net asset value.

    Seen in 2 reports
  23. The redeem request accepts any controller address and skips the minimum-size check for full-balance requests, letting a dust request head another account's queue.

    Seen in 2 reports
  24. The redeem request function accepts any controller named by the caller without consent, and the no-ID ERC-4626 calls only read the queue head.

    Seen in 2 reports
  25. The registration condition checks isPool instead of its negation, so the pool list is never populated.

    Seen in 2 reports
  26. The reimbursement formula uses the user-supplied gas price without a cap against a trusted oracle.

    Seen in 2 reports
  27. The renewal routes use two different parsers on the same input: full normalisation for validation and display, and a naive lowercase-plus-denylist parser for pricing and the renew call.

    Seen in 2 reports
  28. The repay function does not check for an outstanding deficit, so repayment and withdrawal can skip replenishment.

    Seen in 2 reports
  29. The repayment check converts shares to assets at the current donation-inflated rate and rejects the repayment when that value exceeds the recorded debt.

    Seen in 2 reports
  30. The replace owner function did not reject the zero address.

    Seen in 2 reports
  31. The request path never checks that the named controller consented, so a third party can nominate any controller and the refund rules force a share delivery and cooldown onto them.

    Seen in 2 reports
  32. The reserved-token calculation rounded up to one token when nothing had been minted yet, letting a project mint a reserve token per tier without contributing.

    Seen in 2 reports
  33. The reset endpoint has no per-account or per-IP throttling and no captcha.

    Seen in 2 reports
  34. The reward debt variable was not updated after a payout finished, so it stayed zero and the contract could not tell rewards had already been allocated.

    Seen in 2 reports
  35. The reward update function does not check whether the gauge is alive before adding to claimable.

    Seen in 2 reports
  36. The router approves the vault for the asset amount instead of the share amount, or sets an unnecessary allowance, leaving a residual that makes the next safeApprove revert.

    Seen in 2 reports
  37. The Rust anchor state registry binding exposes only the anchor root and block number, not the current anchor game address, so recovery falls back to the registry address.

    Seen in 2 reports
  38. The same collateralisation rate variable was used for both the maximum LTV check and the liquidation start threshold, leaving no safety buffer.

    Seen in 2 reports
  39. The same interface is used for native and ERC20 cTokens, so the mint selector is wrong for native.

    Seen in 2 reports
  40. The save transformer emits additions before deletions and never coalesces operations sharing the same name and coin type, so a delete overwrites the replacement.

    Seen in 2 reports
  41. The Senior high-water mark is re-bootstrapped from the live, decremented pending recapitalization bucket on each reconcile instead of from a persisted full recapitalization target.

    Seen in 2 reports
  42. The server did not enforce the terms acceptance check on the registration or deletion endpoint, relying on the UI.

    Seen in 2 reports
  43. The server iterated over whatever value the password field held instead of requiring a single string, so request-based rate limits undercounted guesses.

    Seen in 2 reports
  44. The server trusted a client-controlled flag or skipped verification entirely instead of validating the CAPTCHA token server-side.

    Seen in 2 reports
  45. The server trusted client-supplied quantities and did not validate they were positive or recompute the total.

    Seen in 2 reports
  46. The server trusted the client-supplied rating without validating its range.

    Seen in 2 reports
  47. The server trusts a client-supplied amount field when creating the payment checkout instead of recalculating the fee from its own records.

    Seen in 2 reports