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 address ghost read passes true for increment instead of false.
Seen in 1 report
-
The address length is validated before whitespace is stripped, so the premium check runs on unnormalised input.
Seen in 1 report
-
The address update function replaces the old address without checking for duplicates.
-
The adjust function stores the absolute amount instead of dividing by the compounded factor.
Seen in 1 report
-
The adjusted cap is computed but never passed to or checked against the vault call.
Seen in 1 report
-
The adjustment branch only handled the case where actual maximum bond exceeded the pre-credited value, with no branch to subtract the over-credit.
-
The ADL execution logic only verified global PnL thresholds and lacked a per-position eligibility check at execution time.
Seen in 1 report
-
The ADL order set acceptablePrice to the extreme and minOutputAmount to zero, so no slippage check was performed.
Seen in 1 report
-
The ADL order used a block number from the oracle parameters that might not be the current block, and if it fell outside the allowed range, the order failed.
Seen in 1 report
-
The ADL start check used reserve-wide total debt instead of the per-group borrow amount.
-
The admin address was set once at initialisation with no setter, making the client wallet address unchangeable.
Seen in 1 report
-
The admin function applies the same KYC check to redeemers and refundees, preventing the admin from moving funds for unverified users.
Seen in 1 report
-
The admission check only requires a small buffer over the larger side's maximum profit, and closing a winning position on the smaller side pays out cash without reducing that liability.
-
The admission check only verifies the leverage bound is nonzero, not that the committed partial close can meet it, while execution re-evaluates against margin the owner can change.
-
The admission check reserves endpoint liabilities but does not deduct positive marked profit an open winner can realise.
-
The admission gate sizes capacity using only the larger side's maximum profit plus a small buffer, so a smaller-side position consumes no capacity while its realised profit is paid in cash.
-
The admission logic projects the live position through queued orders only for the side check, but the preview that decides rejection is still computed on the live position.
-
The AdvancedDistributorInitializable._executeClaim function overrides the data parameter with an empty byte array instead of forwarding the original data, breaking downstream decoding.
Seen in 1 report
-
The after-transfer hook resets withdrawal preparation on every transfer, including zero-value ones.
Seen in 1 report
-
The after-write check reconstructs the popup's browser context late from a frame id instead of snapshotting it, so a torn-down popup yields an unknown verdict that is mapped to allow.
Seen in 1 report
-
The age check subtracted the supplied timestamp from the current time and only compared against a maximum, so future timestamps produced a negative age that passed.
Seen in 1 report
-
The agent identifier is lazily initialised only during swaps, so the first agent's record stays at the default zero.
Seen in 1 report
-
The aggregate score was stored at a regular address that accepted ordinary transfers.
Seen in 1 report
-
The aggregator applies the minimum of the two oracle prices to the combined reserves instead of valuing each reserve at its own price.
Seen in 1 report
-
The aggregator relied on a spot price from the protocol's own pools, which could be moved within a single transaction.
-
The airdrop calculation uses the live total supply of tranche tokens, which can be reduced by burning, instead of a fixed snapshot.
Seen in 1 report
-
The alias is applied without checking whether the caller is a contract or an externally owned account.
Seen in 1 report
-
The allocate function does not update the allocator's voice credits, so the limit check always compares against zero.
Seen in 1 report
-
The allocate function returns the requested amount rather than the amount actually deposited after rounding.
-
The allocation end time is inclusive in both the active and after-allocation checks, creating a one-second overlap.
-
The allocation formula multiplied by the token's own decimal scale instead of the fixed 18-decimal scale.
Seen in 1 report
-
The allocation setter does not check whether the strategy is in emergency exit.
Seen in 1 report
-
The allocation update ran before the reward calculation, so rewards were based on the new allocation rather than the previous period's.
Seen in 1 report
-
The allocator and payout read the same historical vault checkpoint at different moments, and a withdrawal callback can overwrite the period-start value.
Seen in 1 report
-
The allocator does not validate the strategy's killswitch before transferring assets, and the strategy returns a zero change after receiving funds.
Seen in 1 report
-
The allocator uses strategy-reported deltas for cap maths without normalising to a canonical precision or checking the reported change against the requested assets.
-
The allowance check used the borrow part while the actual withdrawal used the larger elastic amount including interest.
Seen in 1 report
-
The allowance check uses the message sender instead of the contract's own address.
-
The allowance check uses the wrong spender address, causing repeated approvals without resetting to zero, which USDT rejects.
Seen in 1 report
-
The allowance check was only performed for internal transfers, not external ones.
Seen in 1 report
-
The allowance-granting function is blocked while paused, though redemption is meant to work during a pause.
-
The already-set check uses an index that stays zero until after the first distribution.
Seen in 1 report
-
The amendment overwrote the order amount without accounting for the quantity already filled.
Seen in 1 report
-
The amount out is not converted between asset and share units before comparisons and minting.
Seen in 1 report
-
The amount-out variable is only assigned inside the discount condition, leaving it zero otherwise.
Seen in 1 report
-
The amount-owed logic uses a time-proportional formula for the last cycle instead of the full remaining principal.
Seen in 1 report
-
The Android UI reads the raw total from the payment spec while the signing code resolves the total through payment modifiers, so the two paths disagree.
Seen in 1 report
-
The anti-tampering token was generated client-side as a plain hash of the request body, so it could be recomputed for any modified payload.
-
The API accepted client-supplied record content without checking it against an authoritative source and reported ownership validation as successful.
-
The API accepts reaction type values outside the valid set and the front end does not handle the unknown value.