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 handler did not verify the Ethereum extension option was present, so the gas-charging step was skipped while refund logic still ran.
Seen in 1 report
-
The handler does not verify that the participant address matches the transaction initiator.
-
The handler field was decoded as an application ID in one function and compared as an application address in another, so the digest and check disagreed.
Seen in 1 report
-
The handler is created with the elevated extension security level but without the extension ID, so cleanup routines that look up handlers by extension ID never find it.
Seen in 1 report
-
The handler passed the timer's round instead of the round stored on the scheduled vote.
-
The handler uses its own address instead of the token state variable when populating the from-token field and event.
-
The handler's receive function unconditionally returns true after its assertions pass, so the settlement never sees a failure.
-
The hard-coded Uniswap v3 VIP selector constant is wrong, so valid calldata is rejected.
Seen in 1 report
-
The harvest amount depended on the pool price at that moment, so it could be manipulated by trades around the harvest.
Seen in 1 report
-
The hash used to verify loan integrity left out a fee field, so later changes to that field went undetected.
Seen in 1 report
-
The heal check requires two rounds to have passed when the rule only requires one.
Seen in 1 report
-
The health calculation compounds the current debt from the initial checkpoint, ignoring later additions.
-
The health check is performed only at transaction time without requiring collateral to remain.
Seen in 1 report
-
The health check only adjusts collateral for the current intent and ignores all other pending intents.
-
The health check panics when total risk is zero after full liquidation instead of allowing it.
Seen in 1 report
-
The health check to close the liquidation used the debt after repayment but before slashing collateral, overstating the health factor.
-
The health check used the same threshold for borrowing and liquidation, leaving no gap between maximum loan-to-value and the liquidation threshold.
-
The heavy ad intervention only accounted for network usage attributed to the ad frame itself, so SharedWorker requests escaped the accounting.
Seen in 1 report
-
The helper assumes a single asset ordering for all swap types and does not branch on exact-output swaps where assets are reversed.
Seen in 1 report
-
The helper decodes the output amount without checking that the destination token and receiver match the expected asset and wrapper.
Seen in 1 report
-
The helper did not reject msg.value when the token was an ERC20.
Seen in 1 report
-
The helper only populated the ETH value when ETH was the primary token, ignoring the secondary-token case.
Seen in 1 report
-
The high-risk check only inspects module upgrades and policy changes, omitting kernel migration and changes to the risk-level mapping.
Seen in 1 report
-
The high-security check models value outflow only as a runtime call and ignores the uncapped transaction tip settled by a separate extension.
-
The high-security gate validates only the call and ignores the transaction tip charged before dispatch.
Seen in 1 report
-
The high-security policy inspects only the call type and ignores the transaction tip charged by a later extension.
Seen in 1 report
-
The high-water mark is overwritten unconditionally without checking it is higher than the existing mark.
-
The high-water mark is scaled down by the ratio of paid assets to principal, so paying the entire principal even one atom zeroes the mark while other Senior shares remain outstanding.
-
The high-water mark is updated to the current NAV per share on every permissionless debt report with no decay or time adjustment.
Seen in 1 report
-
The high-water mark reduction uses the fraction of net principal paid while ownership reduction uses shares burned, so the two diverge after impairment.
Seen in 1 report
-
The high-water mark reduction uses the payout-to-principal ratio, which ERC-4626 virtual offsets inflate when principal is tiny.
Seen in 1 report
-
The high-water mark was increased by the new minipool's amount rather than reset to the current total assigned.
Seen in 1 report
-
The high-water-mark scaling uses the funded-asset fraction instead of checking whether all senior shares actually exited, so a one-atom principal makes the fraction collapse.
-
The highest voting power variable was not updated when a block with greater power was found.
-
The hold check was only added to the deposit admission path and not to the redemption request paths, while the documentation describes the hold as stopping all new senior requests.
-
The hook calculated its invariant from a single global reserves array shared across all pools instead of isolating reserves per pool.
-
The hook checks the output token variable instead of the native input variable when deciding whether fees are covered.
-
The host could set the rage quit timestamp to any value without restricting decreases.
Seen in 1 report
-
The hourly average counted each trade equally regardless of size.
Seen in 1 report
-
The HTTP fallback accepted not-modified responses without cryptographic verification, letting an attacker control the date header and pin security-critical state.
Seen in 1 report
-
The idempotency key was committed before the delivery rows in a non-transactional statement, so a retry returned early and never created deliveries.
Seen in 1 report
-
The if-statements compared the difference between pool amounts to the pool amount itself rather than to the user's deposit amount, leading to incorrect branching.
Seen in 1 report
-
The illegal payment challenge lacked a check that the challenged transaction occurred after the agent's creation block, unlike the top-up payment confirmation which did have such a check.
Seen in 1 report
-
The immutability check was applied per token storage slot inside a loop instead of to the strategy hash as a whole.
Seen in 1 report
-
The immutable pair address is checked before the mutable pool set, so removal from the set has no effect.
Seen in 1 report
-
The implied volatility formula assumes an efficient market, but Uniswap liquidity is long-only so mispricing is not corrected.
Seen in 1 report
-
The import allowed a branch name that looks like a full reference, and the web interface and download resolved the default branch differently.
-
The import trusted the size limit value from the uploaded export file instead of applying the instance limit.
Seen in 1 report
-
The inbound tracker path does not enforce the same block confirmation threshold as the normal handler.
Seen in 1 report
-
The inbound vote message uses the transaction signer instead of the immediate caller of the deposit function.
Seen in 1 report