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 4,051 to 4,100 of 5,700
  1. The planner nets the VPI rebate and execution fee into one signed value and clamps the fee to the net collected charge, so a negative net erases the fee.

    Seen in 1 report
  2. The planning snapshot omits the keeper's pending carry, which the live path realises before re-deciding.

    Seen in 1 report
  3. The platform allowed branches and tags to share a name, creating ambiguity in name resolution.

    Seen in 1 report
  4. The platform subsidy is paid from the venue's escrow balance without ensuring sufficient tokens are available.

    Seen in 1 report
  5. The platform trusted the payment gateway response without verifying it server-side, so a swapped success response credited the wallet.

    Seen in 1 report
  6. The platform validated the technical structure of the RSS feed but did not verify that the submitter controlled the email address declared in the feed's owner tag.

    Seen in 1 report
  7. The platform's invitation system only checks researcher reputation and does not validate location or other eligibility criteria against program rules before sending automated invites.

    Seen in 1 report
  8. The player trusts ad-control values in API responses without server-side enforcement.

    Seen in 1 report
  9. The plugin assumed Processing meant paid and awarded points without checking the payment method.

    Seen in 1 report
  10. The plugin authenticated the payment notification but failed to verify that the amount, currency and receiver matched the order.

    Seen in 1 report
  11. The plugin notification loop called the notification check without a try-catch, so a reverting plugin aborted the whole slash.

    Seen in 1 report
  12. The poke function initialised the boost variable to zero and passed it to the vote routine, recalculating power without the accumulated boost.

    Seen in 1 report
  13. The poke function initialises the boost variable to zero and does not retrieve the previously stored boost before voting.

    Seen in 1 report
  14. The poke function is missing the once-per-epoch guard that prevents multiple reward accruals in the same epoch.

    Seen in 1 report
  15. The poke function lacks an only-new-epoch modifier and the bribe withdrawal does not reduce total voting, so repeated pokes inflate it.

    Seen in 1 report
  16. The pokeTokens function lacks a check preventing a vote when the token has already voted in the current epoch.

    Seen in 1 report
  17. The policy only enforced character composition and did not compare the password against other profile fields.

    Seen in 1 report
  18. The policy was applied only when a password was set or changed, not at setup or login for existing passwords.

    Seen in 1 report
  19. The poll snapshot stored only the total staked amount, not individual balances, so stakes made after the snapshot counted in votes.

    Seen in 1 report
  20. The poll's expiry check used the client device clock rather than server time.

    Seen in 1 report
  21. The pool accepts deposits at any time while tracking payouts with a per-recipient paid flag.

    Seen in 1 report
  22. The pool allows deposits and withdrawals with only a short lockup, so LPs can time actions around expiries.

    Seen in 1 report
  23. The pool assumes NFT transfers always succeed although supported collections can pause transfers.

    Seen in 1 report
  24. The pool balance variable was only updated on deposits and withdrawals, not on portfolio losses.

    Seen in 1 report
  25. The pool constructor does not check that the NFT used is not the factory contract itself.

    Seen in 1 report
  26. The pool deployer may specify any interest rate strategy contract without restriction.

    Seen in 1 report
  27. The pool index is updated even when the deposit is too small to fund any validator, instead of reverting or leaving the index unchanged.

    Seen in 1 report
  28. The pool lacks a withdraw function for escrowed tokens but still increases the share price as if received.

    Seen in 1 report
  29. The pool lacks protection against flash loans or snapshot manipulation, so tokens acquired just before a snapshot can claim rewards.

    Seen in 1 report
  30. The pool last-update variable was never set in the constructor, so the first checkpoint integrates over the whole chain history.

    Seen in 1 report
  31. The pool only queues trading revenue when both tranche principals are zero, so revenue arriving while a recapitalisation is pending is treated as ordinary surplus and consumed first.

    Seen in 1 report
  32. The pool settlement update is called with the pre-repayment liability instead of the post-repayment value.

    Seen in 1 report
  33. The pool status used to verify eligibility is cached and not refreshed during the purchase call, so it can be stale.

    Seen in 1 report
  34. The pool trusts a reward amount returned by an untrusted caller-supplied contract and adds it to collateral without verifying the transfer.

    Seen in 1 report
  35. The pool uses oracle prices without enforcing a ratio between collateral reserves.

    Seen in 1 report
  36. The pool was not designed to handle a stakeable token that accrues rewards, so reward tokens sent to the contract have no withdrawal path.

    Seen in 1 report
  37. The pool's returned output amount is treated as authoritative instead of validating the adapter's actual balance change after the external call.

    Seen in 1 report
  38. The pop, shift and clear methods did not call the modify check that enforces the frozen state.

    Seen in 1 report
  39. The portal treated the seller's inability to detach the resolver as a reason to hide the cleanup option and warning rather than blocking the transfer.

    Seen in 1 report
  40. The POS sets its paid state from an unconfirmed mempool notification without waiting for execution or checking for a success event.

    Seen in 1 report
  41. The position contract never calls the reward claim function, so accrued rewards remain unclaimed and dilute other users.

    Seen in 1 report
  42. The position helpers compute fees using only the taker rate and never add the maker fee that the market applies.

    Seen in 1 report
  43. The position list validation compares only a hash and does not enforce uniqueness or a maximum length.

    Seen in 1 report
  44. The position manager stores the user-supplied strike instead of querying the current strike.

    Seen in 1 report
  45. The position rate depended on free collateral, so temporarily raising collateral reduced the premium.

    Seen in 1 report
  46. The position size check read the spell contract's LP token balance, which only reflected the latest deposit.

    Seen in 1 report
  47. The position TVL function only checks the contract's pool token balance and does not add the gauge token balance representing staked liquidity.

    Seen in 1 report
  48. The position TVL function uses a positions mapping key that does not include the owner address, so it retrieves total liquidity for the tick range regardless of ownership.

    Seen in 1 report
  49. The post-execution check compared only the threshold, so owner additions went unnoticed.

    Seen in 1 report
  50. The PostgreSQL adapter's string quoting stops at the first null byte, so the remainder of the parameter is discarded before the query is sent.

    Seen in 1 report