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,701 to 1,750 of 5,700
  1. The address ghost read passes true for increment instead of false.

    Seen in 1 report
  2. The address length is validated before whitespace is stripped, so the premium check runs on unnormalised input.

    Seen in 1 report
  3. The address update function replaces the old address without checking for duplicates.

    Seen in 1 report
  4. The adjust function stores the absolute amount instead of dividing by the compounded factor.

    Seen in 1 report
  5. The adjusted cap is computed but never passed to or checked against the vault call.

    Seen in 1 report
  6. The adjustment branch only handled the case where actual maximum bond exceeded the pre-credited value, with no branch to subtract the over-credit.

    Seen in 1 report
  7. The ADL execution logic only verified global PnL thresholds and lacked a per-position eligibility check at execution time.

    Seen in 1 report
  8. The ADL order set acceptablePrice to the extreme and minOutputAmount to zero, so no slippage check was performed.

    Seen in 1 report
  9. The ADL order used a block number from the oracle parameters that might not be the current block, and if it fell outside the allowed range, the order failed.

    Seen in 1 report
  10. The ADL start check used reserve-wide total debt instead of the per-group borrow amount.

    Seen in 1 report
  11. The admin address was set once at initialisation with no setter, making the client wallet address unchangeable.

    Seen in 1 report
  12. The admin function applies the same KYC check to redeemers and refundees, preventing the admin from moving funds for unverified users.

    Seen in 1 report
  13. The admission check only requires a small buffer over the larger side's maximum profit, and closing a winning position on the smaller side pays out cash without reducing that liability.

    Seen in 1 report
  14. The admission check only verifies the leverage bound is nonzero, not that the committed partial close can meet it, while execution re-evaluates against margin the owner can change.

    Seen in 1 report
  15. The admission check reserves endpoint liabilities but does not deduct positive marked profit an open winner can realise.

    Seen in 1 report
  16. The admission gate sizes capacity using only the larger side's maximum profit plus a small buffer, so a smaller-side position consumes no capacity while its realised profit is paid in cash.

    Seen in 1 report
  17. The admission logic projects the live position through queued orders only for the side check, but the preview that decides rejection is still computed on the live position.

    Seen in 1 report
  18. The AdvancedDistributorInitializable._executeClaim function overrides the data parameter with an empty byte array instead of forwarding the original data, breaking downstream decoding.

    Seen in 1 report
  19. The after-transfer hook resets withdrawal preparation on every transfer, including zero-value ones.

    Seen in 1 report
  20. The after-write check reconstructs the popup's browser context late from a frame id instead of snapshotting it, so a torn-down popup yields an unknown verdict that is mapped to allow.

    Seen in 1 report
  21. The age check subtracted the supplied timestamp from the current time and only compared against a maximum, so future timestamps produced a negative age that passed.

    Seen in 1 report
  22. The agent identifier is lazily initialised only during swaps, so the first agent's record stays at the default zero.

    Seen in 1 report
  23. The aggregate score was stored at a regular address that accepted ordinary transfers.

    Seen in 1 report
  24. The aggregator applies the minimum of the two oracle prices to the combined reserves instead of valuing each reserve at its own price.

    Seen in 1 report
  25. The aggregator relied on a spot price from the protocol's own pools, which could be moved within a single transaction.

    Seen in 1 report
  26. The airdrop calculation uses the live total supply of tranche tokens, which can be reduced by burning, instead of a fixed snapshot.

    Seen in 1 report
  27. The alias is applied without checking whether the caller is a contract or an externally owned account.

    Seen in 1 report
  28. The allocate function does not update the allocator's voice credits, so the limit check always compares against zero.

    Seen in 1 report
  29. The allocate function returns the requested amount rather than the amount actually deposited after rounding.

    Seen in 1 report
  30. The allocation end time is inclusive in both the active and after-allocation checks, creating a one-second overlap.

    Seen in 1 report
  31. The allocation formula multiplied by the token's own decimal scale instead of the fixed 18-decimal scale.

    Seen in 1 report
  32. The allocation setter does not check whether the strategy is in emergency exit.

    Seen in 1 report
  33. The allocation update ran before the reward calculation, so rewards were based on the new allocation rather than the previous period's.

    Seen in 1 report
  34. The allocator and payout read the same historical vault checkpoint at different moments, and a withdrawal callback can overwrite the period-start value.

    Seen in 1 report
  35. The allocator does not validate the strategy's killswitch before transferring assets, and the strategy returns a zero change after receiving funds.

    Seen in 1 report
  36. The allocator uses strategy-reported deltas for cap maths without normalising to a canonical precision or checking the reported change against the requested assets.

    Seen in 1 report
  37. The allowance check used the borrow part while the actual withdrawal used the larger elastic amount including interest.

    Seen in 1 report
  38. The allowance check uses the message sender instead of the contract's own address.

    Seen in 1 report
  39. The allowance check uses the wrong spender address, causing repeated approvals without resetting to zero, which USDT rejects.

    Seen in 1 report
  40. The allowance check was only performed for internal transfers, not external ones.

    Seen in 1 report
  41. The allowance-granting function is blocked while paused, though redemption is meant to work during a pause.

    Seen in 1 report
  42. The already-set check uses an index that stays zero until after the first distribution.

    Seen in 1 report
  43. The amendment overwrote the order amount without accounting for the quantity already filled.

    Seen in 1 report
  44. The amount out is not converted between asset and share units before comparisons and minting.

    Seen in 1 report
  45. The amount-out variable is only assigned inside the discount condition, leaving it zero otherwise.

    Seen in 1 report
  46. The amount-owed logic uses a time-proportional formula for the last cycle instead of the full remaining principal.

    Seen in 1 report
  47. The Android UI reads the raw total from the payment spec while the signing code resolves the total through payment modifiers, so the two paths disagree.

    Seen in 1 report
  48. The anti-tampering token was generated client-side as a plain hash of the request body, so it could be recomputed for any modified payload.

    Seen in 1 report
  49. The API accepted client-supplied record content without checking it against an authoritative source and reported ownership validation as successful.

    Seen in 1 report
  50. The API accepts reaction type values outside the valid set and the front end does not handle the unknown value.

    Seen in 1 report