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,201 to 1,250 of 5,700
  1. Liveness and deepfake detectors rely on classifiers that synthetic media can fool and do not combine multiple signals.

    Seen in 1 report
  2. Loan storage was deleted before the debt transfer, so the lender address was zero.

    Seen in 1 report
  3. Location was decided from a client-controlled forwarding header rather than the real network source address.

    Seen in 1 report
  4. Lock bookkeeping is keyed to deposit events only, so share transfers change balances without updating the per-user stake entries.

    Seen in 1 report
  5. Lock duration is calculated from the current block timestamp without rounding to the start of the weekly cycle.

    Seen in 1 report
  6. The lock position is stored per NFT index without checking for an existing owner.

    Seen in 1 report
  7. Locked collateral is computed from the pre-subtraction debt and then a globally clamped free amount is subtracted without recomputing the raw locked value.

    Seen in 1 report
  8. Locked tokens were released twice, once during the burn and again in the acquire function.

    Seen in 1 report
  9. Locking funds omits the call that increases the action-locked balance.

    Seen in 1 report
  10. The loop increment is placed only in the else branch so skipped indices are reprocessed.

    Seen in 1 report
  11. Loss deduction is calculated per position against the current allocated balance instead of netting all positions first.

    Seen in 1 report
  12. Loss protection applied to all pools without restricting which tokens could be paired.

    Seen in 1 report
  13. Low participation and lack of oversight let a single large token holder propose and vote through a transfer to themselves.

    Seen in 1 report
  14. LP positions are valued from current manipulable pool reserves rather than a manipulation-resistant ratio.

    Seen in 1 report
  15. LP value is derived from live token balances instead of the pair's stored reserves.

    Seen in 1 report
  16. LP value was calculated from current pool balances and price, which a flash loan can manipulate within one transaction.

    Seen in 1 report
  17. LP balances from several users are aggregated under one address and the pool only allows transferring the whole aggregated balance.

    Seen in 1 report
  18. LP tokens are burned before the reward fee is deducted.

    Seen in 1 report
  19. LP tokens were calculated from the minimum share ratio, so excess from disproportionate deposits was not returned to the user.

    Seen in 1 report
  20. LP tokens were minted from the minimum of the two proportional shares without adjusting deposits to the pool ratio.

    Seen in 1 report
  21. LUP is calculated after removing the deposit but before adding it to the destination.

    Seen in 1 report
  22. LUP is calculated before the kicking penalty is added and not recalculated afterwards.

    Seen in 1 report
  23. The LUP used in the check is calculated from the old deposit state with increased debt.

    Seen in 1 report
  24. Mail routing settings did not enforce the domain ownership verification step required elsewhere in signup.

    Seen in 1 report
  25. The manager only trims and lowercases instead of applying full normalisation before availability checks.

    Seen in 1 report
  26. manageToken only melts when the registry was not refreshed in the current block.

    Seen in 1 report
  27. Mappings were keyed only by the shift index rather than by market index.

    Seen in 1 report
  28. Margin calculation hard-codes six decimals and does not rescale AMM values.

    Seen in 1 report
  29. Mass assignment: the server deserialised the whole request body into the transaction record without checking which fields the client could set.

    Seen in 1 report
  30. Matching compares an aggregated item count and per-item membership instead of checking the taker multiset equals the maker multiset.

    Seen in 1 report
  31. Max deposit and max mint return a constant instead of checking the external vault's limits.

    Seen in 1 report
  32. MAX_BPS is defined as 1000 instead of the standard 10000.

    Seen in 1 report
  33. maxDebtCached was set to the full debt when it was the last collateral, making neededToSaveVault zero.

    Seen in 1 report
  34. maxDeposit checks only the deposit limit while deposit additionally reverts when the amount rounds down to zero shares.

    Seen in 1 report
  35. Maximum liability took the larger of long and short envelopes without netting offsetting exposure held by the same owner, so a hedged pair consumed the whole risk capacity.

    Seen in 1 report
  36. maxMint converted the absolute deposit limit to shares and subtracted totalSupply, which is not equivalent to converting only the remaining asset capacity once rounding and virtual shares apply.

    Seen in 1 report
  37. maxMint converted the deposit limit to shares with floor rounding while mint converted those shares back to assets with ceiling rounding, so the round trip could exceed the limit.

    Seen in 1 report
  38. maxMint converted the deposit limit with floor rounding while mint enforced an asset ceiling with ceiling rounding, and maxDeposit ignored the same limit.

    Seen in 1 report
  39. Merkle proof verification accepts empty proofs when the leaf equals the root and does not enforce minimum proof lengths.

    Seen in 1 report
  40. Merkle proof verification does not distinguish leaf hashes from intermediate hashes.

    Seen in 1 report
  41. Migration built from a cached subgraph snapshot instead of reading the live registry immediately before submission.

    Seen in 1 report
  42. The migration plan is built from cached discovery and submit only compares approval keys.

    Seen in 1 report
  43. Minimum amount checks are hardcoded assuming 18-decimal tokens.

    Seen in 1 report
  44. Minimum output is calculated without adjusting for the token's decimals, so it is only correct for six-decimal tokens.

    Seen in 1 report
  45. Mint and burn functions lacked a slippage protection parameter.

    Seen in 1 report
  46. Mint and burn use different conversion methods that do not preserve the share amount when yield accrues.

    Seen in 1 report
  47. Mint and burn used one price feed instead of the ratio of both prices.

    Seen in 1 report
  48. Mint and redeem lacked minimum output parameters so users could not set slippage tolerance.

    Seen in 1 report
  49. Minted units were calculated from current reserves without a user-supplied minimum.

    Seen in 1 report
  50. Minted voting shares are not reduced when unvested backing tokens are recalled.

    Seen in 1 report