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 rating mutation lacked authentication, CSRF protection, rate limiting and per-user vote validation, so identical requests could be replayed indefinitely.
Seen in 1 report
-
The ratio check used loop-accumulated variables that were still zero on the first iteration.
Seen in 1 report
-
The ratio decrease formula computes previous divided by current minus one instead of the difference divided by previous.
-
The raw email string was compared without trimming or canonicalising, so variants slipped past the duplicate check.
Seen in 1 report
-
The raw sync/import path omits the post-Isthmus requestsHash invariant check that the Engine path enforces.
-
The raw token balance was used to judge success instead of tracking deposits through the intended function.
-
The raw URL string was compared against the blocklist without normalising the host or resolving path traversal.
Seen in 1 report
-
The re-registration path updates the status but leaves the stored review counts untouched.
Seen in 1 report
-
A read helper mutates the lifetime of a security-critical stored baseline and is reachable through an unauthenticated public entry point.
Seen in 1 report
-
The readiness check did not wait for the asynchronous funding quote, so the displayed total differed from the later-resolved budget.
-
The realised premium is passed as a positive value without negating it, so the collateral tracker treats it as owed to the user.
-
The rebalance deposited before pulling, but those protocols forbid deposit and withdrawal in the same block.
Seen in 1 report
-
The rebalance function is missing the when-not-paused modifier.
Seen in 1 report
-
The rebalancer sets itself as depositor so refunds go to it, but it has no mechanism to handle or recover them.
Seen in 1 report
-
The rebalancing function exits all positions entirely and re-enters them based on new weights instead of adjusting only the positions that need to change.
-
The rebalancing function uses a require that reverts the entire transaction if any currency is no longer unhealthy instead of skipping it.
Seen in 1 report
-
The rebalancing period was incremented before the corresponding reward was settled, and the basket rebalance was not restricted in that interval.
Seen in 1 report
-
The rebase function uses the total token balance instead of the adjusted balance when capping the additional amount.
Seen in 1 report
-
The rebase function was permissionless and the remote side did not check that the multiplier was newer than the current one.
Seen in 1 report
-
The rebate branch of the close planner sets only the net rebate amount and leaves the withheld and collected charge fields at zero, so the fee-allocation step credits nobody.
-
The rebate is paid from free cash without being tied to the LP cohort that received the original charge, so an LP can exit between charge and rebate.
Seen in 1 report
-
The recalculated delta is used to update debt but the original requested amount is used to mint tokens.
Seen in 1 report
-
The recalculation on reopen awarded a fixed amount rather than restoring the previous value.
Seen in 1 report
-
The recapitalisation amount stays queued as pending claimant value after the trader claim is paid, so the queue is no longer backed by cash and is reserved from LP withdrawals.
Seen in 1 report
-
The recapitalisation reconciliation branch sets the Senior high-water mark to the recapitalisation target instead of keeping the larger of the existing mark and the target.
Seen in 1 report
-
The recapitalisation recording function adds the full inflow to the pending bucket without subtracting the portion consumed by the terminal trader-claim deficit.
-
The receive callback is gated behind an interface support check that the standard does not require.
Seen in 1 report
-
The receive callback requires the caller to be the underlying NFT contract, so other airdrops revert.
Seen in 1 report
-
The receive function did not verify that the transaction status was unknown before processing, allowing replay of processed messages.
Seen in 1 report
-
The receive function maps lock-mint and burn-unlock to the opposite token operation because the same mode setting is reused for sending and receiving.
Seen in 1 report
-
The receive function starts the timelock whenever the confirmation wallet sends enough ether, without checking that a wallet-change proposal exists.
-
The receive function unconditionally calls stake on every incoming payment, including validator returns.
-
The receive handler encoded a call to exercise without the required module address argument, causing a decoding failure on the destination.
-
The receive path passed the whole leftover buffer to the body writer without clamping to the declared message size.
Seen in 1 report
-
The receiver validation assumed the sender was always the original user, but during single-sided provision the contract called itself.
Seen in 1 report
-
The receiver's cooldown was recalculated as a weighted average including the sender's cooldown on every transfer.
Seen in 1 report
-
The receiver's xReceive function performs a deposit call that can revert without a try/catch or other defensive handling, and the L2 side does not mirror L1 limits or pause state.
Seen in 1 report
-
The receiving code credited internal ETH transfers without verifying that the entire smart contract transaction had completed successfully.
Seen in 1 report
-
The receiving contract does not record or check the unique message identifier before processing.
Seen in 1 report
-
The recipient counter starts at zero while zero is also the default index for an unregistered recipient.
-
The recipient variable is passed into the sender field of the emitted event.
-
The reclaim function transferred tokens without reducing the rewards-unclaimed field, allowing repeated claims.
Seen in 1 report
-
The reconcile applies surplus routing to restore senior before applying the queued recapitalisation, so later revenue is consumed by the senior gap.
-
The reconcile pass routes a delta against the principal pair that the previous pass itself rewrote, so the split depends on how many times the value was observed.
Seen in 1 report
-
The reconcile plan caps unassigned assets against a distributable value that includes unrealised trader profit and stores the reduced reserve without recording the shortfall.
-
The reconcile plan used by the view functions returns early when the mark is stale, so the preview stops after the senior coupon and never includes mark-independent collected cash.
-
The reconcile planner reserves the same physical cash twice because it does not track which pending buckets are already backed.
Seen in 1 report
-
The reconcile snapshot used for LP share pricing omits outstanding VPI (rebate or charge) from its asset or liability calculation.
-
The reconcile stores the minimum of the ownerless balance and distributable value without recording the clipped amount.
-
The reconciliation planner reserves residual pending recapitalization and revenue buckets against cash already stored as Senior principal, causing a false empty-pool bootstrap.