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.
-
The compare function lacks bounds checks on offset and length relative to the actual byte array lengths.
Seen in 1 report
-
The comparison operands in the gte and lte checks were swapped.
Seen in 1 report
-
The comparison operator and variable naming are inverted, checking a minimum rate where a maximum is intended.
-
The comparison operator in the LTV check is reversed.
Seen in 1 report
-
The comparison operator was inverted, using greater-than-or-equal where less-than-or-equal was intended.
Seen in 1 report
-
The comparison used greater-than-or-equal instead of greater-than, rejecting amounts equal to the threshold.
-
The comparison used strict greater-than and less-than instead of inclusive comparisons, so the boundary answers were not treated as circuit-breaking.
-
The compatibility check accepts either interface but the bridge unconditionally calls a function from the legacy one.
Seen in 1 report
-
The compiler did not cache a non-literal iterable before the loop, re-evaluating it each iteration.
Seen in 1 report
-
The compound function does not distribute rewards before converting reward tokens, so pending rewards are compounded after the attacker's deposit.
-
The compounding assumed a one-to-one reward ratio between operator and liquid staker, ignoring the commission fee.
Seen in 1 report
-
The compounding calculation divides by a smaller precision than the rate is stored with, scaling interest by ten.
-
The compounding function added rewards to an internal counter without reconciling with the real staked balance.
-
The compounding swap uses a fixed slippage tolerance that an outside party can deliberately exceed, leaving rewards unclaimed and shared with later depositors.
-
The compression function does not verify that every chunk in the dictionary is actually referenced by the encoded data.
Seen in 1 report
-
The compute function returned the last estimated value even when Newton's method failed to converge.
Seen in 1 report
-
The computed safe amount was discarded and the original amount was passed to the external call.
Seen in 1 report
-
The conclusion check used a strict less-than comparison, so at the exact conclusion timestamp the auction was neither active nor concluded.
Seen in 1 report
-
The condition checked if msg.value exceeded fee plus gas allowance, but the code only transferred the fee to the protocol and refunded the rest, failing to retain the gas allowance.
-
The condition compares the absolute value of the hedge amount instead of checking whether it is positive.
-
The condition deciding the absorption penalty uses the trove threshold rather than its LTV.
Seen in 1 report
-
The condition for detecting underflow in boundedSub() was incorrect: it checked b <= type(int256).min - a instead of a <= type(int256).min + b, so some underflow cases were not caught.
Seen in 1 report
-
The condition in the time-to-epoch-end function is inverted, returning zero when the epoch end is in the future.
Seen in 1 report
-
The condition used less-than-or-equal instead of greater-than-or-equal, resetting stepdown when rewards were below the tail rate rather than when they reached it.
Seen in 1 report
-
The condition uses logical AND instead of OR, so the revert only triggers when both sub-conditions are true.
Seen in 1 report
-
The condition uses OR instead of AND, so it reverts when the sender is whitelisted or the receiver is not.
Seen in 1 report
-
The conditional branches for minimum output use the wrong price function for each swap direction.
Seen in 1 report
-
The configurator invokes router setters with an extra leading caller argument while the router expects only asset and value.
Seen in 1 report
-
The confirm button is disabled only when fetching call bytes fails, not when decoding fails, so a decode exception falls back to a headline built from pallet and call names only.
-
The confirm endpoint did not re-check the two-factor code and allowed the same confirm action to be replayed on a deleted recurring payment.
Seen in 1 report
-
$200 Low
-
-
The confirmation endpoint lacked rate limiting, cooldown timers and abuse detection.
Seen in 1 report
-
The confirmation input was never compared with the new password.
Seen in 1 report
-
The confirmation sheet treats a successful storage read as sufficient and its blocking condition omits semantic decode failure, falling back to indexer display data.
Seen in 1 report
-
The confirmation step credited rewards on every page load instead of recording that the deposit had already been rewarded.
Seen in 1 report
-
The Connect OAuth account creation flow did not enforce email verification before granting full account capabilities, unlike the standard registration flow.
Seen in 1 report
-
The connection-reuse comparison used case-insensitive path matching and ignored some certificate options.
Seen in 1 report
-
The connector does not expose a wrapper for the lending protocol's claim collateral function, so surplus balances cannot be withdrawn.
Seen in 1 report
-
The consensus check uses a strict greater-than comparison instead of greater-than-or-equal, so exactly two-thirds is not counted.
Seen in 1 report
-
The consent modifier recorded consent and returned false on the first call instead of reverting, trapping any ETH sent.
Seen in 1 report
-
The consolidation comparator uses a non-exact EIP-2718 decode that does not verify the whole input slice was consumed.
-
The constant marking the highest precompile address was not updated to include the newly added precompile addresses.
Seen in 1 report
-
The constructor and setters failed to validate that the slippage parameter was at most the maximum.
Seen in 1 report
-
The constructor approves the strategy asset for the market instead of the market's loan token and never enforces that the two are the same.
Seen in 1 report
-
The constructor gated Convex booster configuration on a hardcoded mainnet chain ID check.
-
The constructor passed a quorum numerator of four out of one hundred instead of the intended twenty-five.
Seen in 1 report
-
The constructor required a deprecated oracle flag that was no longer relevant.
Seen in 1 report
-
The constructor set the governor but never called the configure-claimable-gas function, leaving the yield mode at void.
Seen in 1 report
-
The constructor set the total supply without minting corresponding tokens to any address.
Seen in 1 report
-
The constructor stored zero as the last timestamp rather than the block timestamp, inflating elapsed time in the APR calculation.
-
The contact endpoint had no server-side throttling or per-user submission limit.
Seen in 1 report