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 balance helper adds the staked amount but not the paired token's pending rewards.
Seen in 1 report
-
The balance lookup uses a strict less-than comparison against the token's first timestamp, so a token created at the boundary is not excluded.
Seen in 1 report
-
The balance snapshot was updated even when a withdrawal did not liquidate the yield asset, double counting the withdrawal.
-
The balance-consistency modifier was not applied to all functions that move funds.
Seen in 1 report
-
The Balancer oracle weight limit used the wrong precision constant, so the maximum allowed weight was only one basis point.
Seen in 1 report
-
The bank contract caches the fee manager address at initialisation instead of reading it from config on each use.
Seen in 1 report
-
The bankruptcy check compares an unscaled deposit value, off by the bucket scale factor.
Seen in 1 report
-
The base gas calculation ignores the extra bytes added by the relay wrapper.
-
The base weight constant was never regenerated after the signature scheme changed, so it still priced the old cheaper verification.
-
The basket range estimation uses extreme price bounds, producing an overly wide range that misclassifies small deficits.
Seen in 1 report
-
The basket refresh access check blocks non-governance callers when paused, even if the basket is disabled.
-
The batch decoding function built the decoded call without carrying the inner call's transfer summary upward, so the headline had no amount to render.
-
The batch function was payable and used delegatecall, so the message value was not reset between calls.
Seen in 1 report
-
The batch mint passes the per-receiver amount to the fee collector instead of the total amount.
Seen in 1 report
-
The batch reader gates Brotli usage on the decoded L2 batch timestamp rather than the L1 derivation origin timestamp.
Seen in 1 report
-
The batch struct does not track staked tokens, so the claim only checks the total contract balance and the claimed amount.
Seen in 1 report
-
The batch-taking path omits the complication validation that the single-order path performs.
Seen in 1 report
-
The batched function never assigns the integer division remainder, unlike the regular function which gives it to the last holder.
Seen in 1 report
-
The battery's last block value is never initialised, so the first redemption sees an enormous elapsed-block count.
Seen in 1 report
-
The before-payment hook does not subtract the payment amount from y-intercept as documented.
Seen in 1 report
-
The before-transfer hook skipped its delegation check when the recipient was the zero address, so burns did not reduce the recorded delegated amount.
Seen in 1 report
-
The bias increment was a difference divided by a large time constant, so tiny deposits truncated to zero in integer division.
Seen in 1 report
-
The bid function identifies an auction only by the comptroller address and does not check for a restart.
Seen in 1 report
-
The bid function is externally callable by anyone, allowing bids up to the maximum without member consent.
Seen in 1 report
-
The bid submission function does not check that the specified market exists and is open.
Seen in 1 report
-
The billing middleware failed open: an empty or invalid client-supplied organisation identifier skipped the quota deduction instead of rejecting the request.
-
The BIN file type was whitelisted as not dangerous in the download protection configuration.
Seen in 1 report
-
The bin is moved only after the swap logic, so a zero-amount swap updates the average price without moving the bin.
Seen in 1 report
-
The binary search breaks on the first exact timestamp match instead of the most recent one, while duplicate timestamps are possible in the history.
Seen in 1 report
-
The block builder sorted transactions by application priority before sequence number, so per-account ordering was not preserved.
-
The block check is applied without accounting for a blocked user who is still a listed organiser.
Seen in 1 report
-
The block conversion and submission functions performed no structural or semantic validation before serialising and signing the block.
-
The block feature did not prevent blocked users from replying to the blocker's tweets, and the reply visibility logic hid those replies from the blocker.
Seen in 1 report
-
Critical
-
-
The block lock was applied to the caller instead of the account whose tokens were being transferred.
Seen in 1 report
-
The block option was shown on all comments without checking whether the author was the current user.
Seen in 1 report
-
The blocklist check existed only in the Move adapter and was never mirrored in the Solidity adapter.
Seen in 1 report
-
The blocklist compares exact code points without normalising or restricting lookalike characters.
Seen in 1 report
-
The blocks-per-year constant was not updated when the contract was ported from a chain with 15-second blocks to one with 3-second blocks.
Seen in 1 report
-
The blog creation endpoint did not re-check eligibility on the final save request, relying on an earlier check.
Seen in 1 report
-
The bond payment factor is calculated before the auction price is replaced with the bucket price.
Seen in 1 report
-
The bond-with-delegate path does not apply the decaying bond discount when calculating required collateral.
-
The bonding contract does not check for the zero-amount edge case that the DEX handler handles by returning LP tokens.
Seen in 1 report
-
The bonus share uses the current spot pool share at withdrawal instead of a time-weighted or checkpointed share.
Seen in 1 report
-
The booking API accepts repeated lock requests for the same seat without checking whether the requester still holds a valid reservation.
Seen in 1 report
-
The boolean operands are ordered so the external fallible estimateRedeemAssets call is evaluated before the local full-balance exemption.
-
The boost update does not settle and claim rewards first, so the new multiplier applies to past stakes.
-
The bootloader uses a near-call panic that exhausts all gas to revert execution without reverting the whole bootloader, preventing any refund of unused gas.
Seen in 1 report
-
The bootloader uses an unchecked addition instead of a safe addition when summing refund gas and reserved gas, allowing an overflow.
Seen in 1 report
-
The bootstrap assignment path lacks the wiped-tranche check that ordinary deposit paths enforce, so it prices shares against a zero principal and revives the tranche.
-
The bootstrap assignment path prices shares against the tranche's principal without checking for a wiped-but-populated tranche, so zero principal mints roughly the entire supply.