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 5,051 to 5,100 of 5,700
  1. The state proof was requested with the post-execution version instead of the pre-execution version, so the epoch change branch was skipped.

    Seen in 1 report
  2. The state sync function is not called for all bank balance changes, such as staking operations, leaving the EVM state out of step with the bank balance.

    Seen in 1 report
  3. The state transition guard only checked for the Started status, so the process could be restarted after moving to group processing.

    Seen in 1 report
  4. The state transition logic checks for Expired before Late and has no transition from Late to Expired, so capital locking and unlocking are skipped in certain timing scenarios.

    Seen in 1 report
  5. The state transition logic does not set the late timestamp when moving from 'not supported' to 'late', allowing a subsequent assessment to see a zero timestamp and default the pool.

    Seen in 1 report
  6. The state variables for all tokens, token indices and current index are updated in the wrong order or not decremented on burn, so they only increase.

    Seen in 1 report
  7. The static transfer-counting matcher cannot see inside a stored proposal, so it falls through to a zero weight.

    Seen in 1 report
  8. The status endpoint trusted any signer key to set a deposit to accepted without verifying it was processed.

    Seen in 1 report
  9. The status is updated as soon as a count reaches the threshold without checking the existing status or votes for other statuses.

    Seen in 1 report
  10. The status timestamp is rounded up while the request records the current block timestamp.

    Seen in 1 report
  11. The stop-emissions check used a supply value that virtual shares keep at a minimum, so the halt condition never fires.

    Seen in 1 report
  12. The stop-loss price is used as the execution price instead of only as a trigger.

    Seen in 1 report
  13. The storage layer accepted the raw null byte while the authentication layer normalised it differently.

    Seen in 1 report
  14. The store trusted a client-supplied payment amount and tax, and the merchant checked only the transaction ID rather than the amount actually paid.

    Seen in 1 report
  15. The stored mint fee was forwarded as the call value instead of validating the user's actual payment.

    Seen in 1 report
  16. The stored transmuter balance was set to the current balance minus used yield, which re-included the used yield in future calculations.

    Seen in 1 report
  17. The stored underlying amount was never updated to include accrued interest, so the collateral value was understated.

    Seen in 1 report
  18. The strain parameter was not capped and the assembly division truncated to zero.

    Seen in 1 report
  19. The strategy assumed the trading module returns WETH, but it returns native ETH when ETH is the buy token.

    Seen in 1 report
  20. The strategy assumed depositMax deploys the full amount, but the router caps it, leaving the remainder with no recovery path.

    Seen in 1 report
  21. The strategy called the lending pool's withdraw with zero when there was no position, and the pool rejects zero withdrawals.

    Seen in 1 report
  22. The strategy called the market mint function without checking its return value, so a failed mint did not revert and funds stayed undeposited.

    Seen in 1 report
  23. The strategy contract's flashloan function was callable by anyone and let the caller set the repayment amount and fee.

    Seen in 1 report
  24. The strategy contracts omitted the receive function that other strategies include.

    Seen in 1 report
  25. The strategy deposit path called the protocol deposit without increasing the tracked underlying balance.

    Seen in 1 report
  26. The strategy did not perform an initial deposit during construction, allowing an attacker to inflate the share value.

    Seen in 1 report
  27. The strategy did not verify that shares received matched the amount requested, and deallocation assumed it held the needed shares without handling a shortfall.

    Seen in 1 report
  28. The strategy did not verify the freshness of the pool's debt reporting before depositing or withdrawing.

    Seen in 1 report
  29. The strategy hardcoded the pool address as an immutable instead of resolving it dynamically.

    Seen in 1 report
  30. The strategy priced its position using a manipulable spot simulation and cached the result.

    Seen in 1 report
  31. The strategy read the pool's stored slot0 tick instead of converting the precise square-root price into a tick, so boundary prices gave a shifted range.

    Seen in 1 report
  32. The strategy relied on a manipulable Curve spot price instead of a manipulation-resistant oracle.

    Seen in 1 report
  33. The strategy reported a loss based only on the reduced BOLD balance while ignoring unprocessed collateral gains, so the share price temporarily dropped below its true value.

    Seen in 1 report
  34. The strategy returned the requested amount instead of the amount actually deposited after rounding, inflating the vault's cap counter by the dust.

    Seen in 1 report
  35. The strategy used a withdrawal request that could burn unlimited BPT for a fixed token amount, with no slippage protection.

    Seen in 1 report
  36. The strategy used the number of role holders for quorum supply but raw quantity for approval counting, creating a unit mismatch.

    Seen in 1 report
  37. The stream creation function lacked a check that the stop time is after the current block timestamp.

    Seen in 1 report
  38. The streaming path did not enforce that a block executes only after all its parent blocks, so the sequencer's original order was lost.

    Seen in 1 report
  39. The subdomain name was not trimmed or normalised before the uniqueness check, so a trailing space made it look different.

    Seen in 1 report
  40. The subgroup-check function referenced the public-key deserialisation gas constant instead of the subgroup-check constant.

    Seen in 1 report
  41. The subnode-creation check only looked at the registry owner and the subnode's fuses, so an expired subnode whose registry owner was the wrapper and whose wrapper owner was zero was not treated as unregistered.

    Seen in 1 report
  42. The subprotocol name was set immutably in the constructor rather than being assignable after deployment.

    Seen in 1 report
  43. The subscription check was applied only on the first attempt or not enforced on every request, so repeated interactions bypassed it.

    Seen in 1 report
  44. The subscription entitlement was checked only in the frontend while the backend served the resources without checking the plan.

    Seen in 1 report
  45. The subscription status was trusted from a client-side response value the user could edit.

    Seen in 1 report
  46. The success flag of an external call through a proxy was discarded.

    Seen in 1 report
  47. The successful-state check used a strict less-than comparison, so both success and failure checks passed at the boundary.

    Seen in 1 report
  48. The sufficiency check on bad debt ran before settlement, and the debt was not re-checked after settlement reduced it.

    Seen in 1 report
  49. The supplier reward update functions were commented out, leaving only borrower distributions active.

    Seen in 1 report
  50. The supply checker assumed a transaction was settled as soon as it was added to the outbound tracker.

    Seen in 1 report