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,601 to 1,650 of 5,700
  1. Slashing subtracts the full base bond rather than a percentage and does not track the number of slashes.

    Seen in 1 report
  2. Slate validation does not check that proposal IDs are unique, so duplicates inflate the allocated budget.

    Seen in 1 report
  3. The slippage parameter is only enforced inside the zapping proxy path, not when burning from the caller directly.

    Seen in 1 report
  4. Slippage protection aggregates liquidity across multiple fee tiers, so offsetting price manipulations cancel out in the check.

    Seen in 1 report
  5. Slippage tolerance was applied to an amount that already reflected the pool's current state, making the check useless when imbalanced.

    Seen in 1 report
  6. Smart lockout's differentiation between familiar and unfamiliar locations relies partly on source IP address, which can be rotated.

    Seen in 1 report
  7. SolidlyV3 moved fee distribution to a separate rewards distributor, so burnAndCollect no longer collects LP fees.

    Seen in 1 report
  8. The solvency check uses gross max-profit liability for the dominant side without subtracting locked margin of the opposing position.

    Seen in 1 report
  9. Solvency gates compute free assets as cash minus recorded claims and use entry-based maximum payouts, never reserving marked profit of open winners.

    Seen in 1 report
  10. Solvency is re-checked against pool cash at execution time, and the order owner can move that cash after committing.

    Seen in 1 report
  11. Sorting compared rounded quote-per-base values instead of cross-multiplying the raw amounts, so distinct bids compared as equal.

    Seen in 1 report
  12. Squaring each delegate's votes before dividing gives large delegates disproportionate rewards.

    Seen in 1 report
  13. Stake and draft rates reset independently, letting users move funds between buckets to dodge the reset.

    Seen in 1 report
  14. Stake and unstake reset the last reward index without settling pending rewards.

    Seen in 1 report
  15. Staking admission does not verify that a contract staker can receive native tokens.

    Seen in 1 report
  16. Staking and draft eras advance independently, so drafts under an old draft era are not carried over.

    Seen in 1 report
  17. Staking did not reset the withdrawal request timestamp, so a pre-existing request stayed valid.

    Seen in 1 report
  18. Standard approve was used instead of a safe variant that handles non-returning tokens.

    Seen in 1 report
  19. Standard approve was used without handling tokens that require the allowance to be reset to zero first.

    Seen in 1 report
  20. Standard IERC20 transferFrom is used, assuming a boolean return that some tokens do not provide.

    Seen in 1 report
  21. Starting a new campaign updates the start date but does not reset the last jackpot claim week.

    Seen in 1 report
  22. State variables for the last event and last decay were not initialised in the constructor and are used without a non-zero check.

    Seen in 1 report
  23. Static per-currency prices are stored instead of converting from a single base price using a current exchange rate.

    Seen in 1 report
  24. Step ids carry no attempt identity and the shared transaction manager is not cleared at the start of a new attempt.

    Seen in 1 report
  25. stop uses safeTransferFrom, so a reverting callback on the lender blocks the whole stop.

    Seen in 1 report
  26. Stored total assets is decremented before the reward sync is called, so the sync sees a higher balance.

    Seen in 1 report
  27. Streak is computed from the oracle callback timestamp rather than the time the user submitted the spin.

    Seen in 1 report
  28. Strict inequality checks on block timestamp allowed actions at the exact boundary second.

    Seen in 1 report
  29. String slicing reads the same character on every loop iteration instead of advancing.

    Seen in 1 report
  30. Subscription status was enforced only client-side and the content endpoint did not check it.

    Seen in 1 report
  31. Subscription validity was checked against the device's local clock instead of a server-side timestamp.

    Seen in 1 report
  32. Subscriptions are not linked to user lifecycle events, so deleted users leave permanent follower records.

    Seen in 1 report
  33. Only proposal payouts are subtracted from the treasury, ignoring delegation rewards paid out.

    Seen in 1 report
  34. Subtracting the protocol balance from the cached total underlying underflowed when the balance was greater.

    Seen in 1 report
  35. The unutilised leverage percentage is subtracted from the liquidation threshold when computing the net repay limit.

    Seen in 1 report
  36. Subtraction is performed before addition, and the subtracted value is rounded up while the added value is rounded down.

    Seen in 1 report
  37. Swap calls use the maximum timestamp in one place and no deadline at all in the other.

    Seen in 1 report
  38. Swap functions accept no minimum-return parameter and never compare realised output to a limit.

    Seen in 1 report
  39. Swap functions only checked that the external call succeeded, not that the expected tokens arrived, and allowed any function on a whitelisted router.

    Seen in 1 report
  40. Swap functions validate only token addresses in the path, not the liquidity pair contract.

    Seen in 1 report
  41. Switching from parallel to serial clears the received slices but does not reset the partial hash state.

    Seen in 1 report
  42. Symbol generation truncates the expiry year to two digits.

    Seen in 1 report
  43. Sync advances the last-updated timestamp before checking liquidity, consuming the reward window without accumulating it.

    Seen in 1 report
  44. Sync calculates the collateral to remove from a stale raw locked value before updating it to the current yield token price.

    Seen in 1 report
  45. Target contracts were refactored to use permit approvals but the router was not updated to grant them.

    Seen in 1 report
  46. Tax logic lives in a user-chosen delegatecall target rather than in a trusted contract.

    Seen in 1 report
  47. Team members are identified by email and the case where an admin changes email to match a pending invite is not handled.

    Seen in 1 report
  48. Terminal transaction actors are never evicted from the active map and all revocations share one fixed descriptor ID.

    Seen in 1 report
  49. The /confirm endpoint did not limit how many confirmation attempts a user could make, allowing brute force guessing of the code.

    Seen in 1 report
  50. The _burn function inherited from VoteEscrowCore.sol was not overridden in VoteEscrowDelegation.sol to call removeDelegation, so the delegation reference was never cleaned up.

    Seen in 1 report