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 dust-cleanup branch treats a zero scaled repayment as a full debt wipe and the router does not check the actual burn result.
Seen in 2 reports
-
The eligible total supply was recalculated on every batch instead of using a snapshot from the first batch.
-
The else branch sent the whole value to the fee collector without refunding overpayment below the combined threshold.
Seen in 2 reports
-
The empty-bootstrap branch of the recapitalisation preview sets the Senior high-water mark to the larger of the recap target and the recap amount, ignoring the larger mark preserved by the loss.
-
The engine mark advances on order execution even when the order fails, while the protection freshness check reads only the accepted basket.
Seen in 2 reports
-
Low -
Low
-
-
The executed bootstrap quote reuses the share-conversion formula without the zero-principal guard the indicative estimate applies, so the denominator collapses.
Seen in 2 reports
-
Critical -
Critical
-
-
The execution config digest includes the protocol treasury address, which can change by timestamp or an immediate setter outside the timelock, so orders pinned to the old hash fail.
Seen in 2 reports
-
Low -
Low
-
-
The execution-config digest hashes the mutable protocol treasury address without a separate config version, so a non-execution change invalidates config-pinned orders.
Seen in 2 reports
-
The extension fee uses the absolute maximum deadline instead of the actual extended period.
Seen in 2 reports
-
The fee condition checked for expired puts instead of exercised puts, and the exercise path for puts lacked fee deduction.
Seen in 2 reports
-
The fee distribution reads the agent's live fee share from storage instead of the value saved in the reservation record.
-
The fee is already included in the seized amount yet a further check requires remaining collateral to cover it again.
-
The fee payout was gated on the account's post-seizure collateral balance even though the fee had already been deducted from the gross amount.
-
The fee transfer is conditioned on the victim's post-seizure remaining collateral rather than on the seized amount that already contains the fee.
Seen in 2 reports
-
The fee transfer is guarded by a strict comparison against the full fee amount with no partial-payment branch.
Seen in 2 reports
-
The fee update timestamp is only refreshed when fees are collected, not when the fee rate changes or on deposits and withdrawals.
-
The fee was burned from msg.sender instead of the actual sender or recipient.
Seen in 2 reports
-
The fee-paid formula omits the referral fee component that was subtracted when computing the DAO fee.
-
The first key's syndicate membership gated the entire claim and the reward-per-share refresh, so other key orderings used stale data.
-
The fresh close VPI divides squared skew by pool depth with no cap relative to notional or margin, and only exempts a depth of exactly zero.
-
The frozen-oracle mode replays a cached mark that cannot be advanced, while the calendar permits frozen days of unbounded length unrelated to the staleness limit.
Seen in 2 reports
-
The function transferred yield tokens before verifying that at least one holder was eligible, and lacked any recovery mechanism.
-
The generated client codec is stale or mismatched against the runtime type, so nested call boundaries shift between the two decoders.
-
The global locked total is updated using the collateral outflow or a fee-inflated amount instead of the debt converted to yield tokens times the minimum collateralisation ratio.
-
The helpdesk trusts the sender address of incoming email without verification.
-
The high-water mark is updated on every deposit, mint and withdraw rather than only when fees are accrued.
-
The high-water-mark reduction assumes all recovery-bearing shares exit when principal is fully paid, which virtual-offset rounding breaks.
-
The historical execution path installs the Engine mark without updating the oracle's accepted basket, and the protection Book reads the accepted-basket view before its own tolerant guard.
-
The if_else decoder summarises only the primary branch and the approval screen masks nested branch amounts.
-
The insolvency check compares effective assets against the open side's maximum-profit envelope rather than realised cash obligations, so a hedged pair with one leg closed can trip the latch without a real shortfall.
-
The insolvency test compares cash against gross maximum liability without counting locked margin of open opposing positions, and the latch returns early once set.
Seen in 2 reports
-
High -
High
-
-
The intermediate block interval cache is keyed only by game type and never invalidated when the implementation address changes.
-
The internal burn calls the public approve function, which requires owner or operator rights.
Seen in 2 reports
-
The internal deposited-shares variable was not updated when shares were transferred out during liquidation.
Seen in 2 reports
-
The invitation endpoint had no rate limit or CAPTCHA for free-plan accounts.
-
The invite code endpoint lacked rate limiting and used a predictable response marker for valid codes.
Seen in 2 reports
-
The last index is computed before checking whether the array is empty, so unsigned subtraction underflows or goes negative.
-
The latch compares raw effective cash against maximum directional liability without netting offsetting hedged exposure, so a neutral pair can drive the comparison below the threshold.
Seen in 2 reports
-
High -
High
-
-
The liquidation path never applies the frozen-close spread that a voluntary close pays.
-
The LP share pricing snapshot excludes the outstanding negative-VPI rebate reserve, so deposits are priced on a temporarily reduced asset base.
-
The manager trusts the orchestrator-returned destination execution and only verifies status, owner and resolver afterwards, never binding the label, secret or subregistry to its own request.
Seen in 2 reports
-
The maxWithdraw override converts shares to assets without adding the exit fee that previewWithdraw applies, so the two disagree.
-
The merge function picks the later end time and deposits into the target without re-validating that the resulting span does not exceed the maximum time.
Seen in 2 reports
-
The migration plan caches the V1 resolver from indexed state and the final batch and post-state verification reuse that cached value without re-reading the live registry.
-
The migration plan was cached by domain ID only and never reconciled against live V1 owner and resolver state before submission.
-
The miner fee path credits the balance directly without calling the transfer-proof recorder that creates the spendable leaf.
-
The minimum collateralisation setter does not check the new value against the lower bound.
Seen in 2 reports
-
The minimum output is derived from an on-chain quoter that reflects manipulable pool state.
Seen in 2 reports
-
The minimum output is derived from the same spot price the swap executes at, so it cannot detect prior price movement.
-
The mint function compares the contract's token balance before and after the transfer against the nominal collateral amount, without accounting for tokens that deduct a fee on transfer.
Seen in 2 reports