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.
-
Borrow interest compounds while supply interest is linear, leaving a surplus with no way to claim it.
-
Borrow-cap and debt-ceiling validation computes total debt from live supply plus the new borrow but omits the tracked reserve deficit.
-
Bot email addresses are predictable and the system does not verify ownership or handle collisions when the address is already linked.
Seen in 1 report
-
Both the expected output and the slippage tolerance are derived from the manipulable spot price.
-
Both values were derived from the same clamped input, bounding their divergence below the trigger threshold.
Seen in 1 report
-
Boundary comparisons were inconsistent: the cooldown start used a strict less-than against the lock end while other checks used strict greater-than, so the exact end timestamp fell through the fee branch.
Seen in 1 report
-
Bounded and plain arithmetic were mixed inconsistently in funding amount per size calculations.
Seen in 1 report
-
Branch and tag name conflicts are not validated during import, unlike during manual creation.
Seen in 1 report
-
Branch names are not validated, so a crafted ref is treated as the protected branch.
Seen in 1 report
-
Branch names that look like commit hashes were not rejected, so they could collide with hash references.
Seen in 1 report
-
Branch names were compared inexactly so a similarly named branch could be matched.
Seen in 1 report
-
Bribe rewards are stored per epoch and distribution only reads the current epoch, so past epochs are never carried forward.
Seen in 1 report
-
Brute force protection is applied only to the POST authentication endpoint, not the GET path.
Seen in 1 report
-
Brute-force protection was applied only after the token resolved to a password-protected or file-drop share.
Seen in 1 report
-
Bulk pricing is applied before quantity validation and prices are not re-validated after quantity changes.
-
Bundle eligibility was a sticky flag set when the threshold was crossed and pricing was never recomputed when the qualifying transaction failed.
-
Burn allowed reducing total supply without proportional withdrawal and liquidity calculation rounded down to zero.
Seen in 1 report
-
Burn-unlock burns tokens on the source chain before confirming a successful unlock on the destination chain.
-
Burnt debt shares are assigned to the next debt shares instead of the remaining debt shares.
Seen in 1 report
-
Business rules and state transitions were enforced only on the client side across the payment lifecycle.
Seen in 1 report
-
buyoutLien does not call transferWithdrawReserve before executing, unlike commitLien.
-
The cache reuse branch checks each feed's stored timestamp against the basket maximum instead of the feed's own component timestamp.
-
The voting threshold is calculated from current total supply instead of a snapshot at proposal submission.
-
Calendar configuration and freshness limit are validated independently, with no check on the longest continuous frozen span.
-
Product open and close are called with zero amounts that the product modifiers reject.
Seen in 1 report
-
The base reserve configuration getter is called instead of the eMode-aware one.
Seen in 1 report
-
Cancellation computes the initiator fee on the full reserve price instead of only the difference from the current bid.
Seen in 1 report
-
Cancellation deducts the initiator fee from the reserve before repaying liens and does not remove the liens as the normal end path does.
Seen in 1 report
-
Cancellation deleted the buyer's epoch entry unconditionally instead of checking for other active orders.
Seen in 1 report
-
Cancellation deleted the whole promotion record instead of marking it cancelled or adjusting the epoch count.
Seen in 1 report
-
Cancellation enforced no cooling-off period and kept no record of the cancelled phone number, so re-registration counted as a new user.
Seen in 1 report
-
The cancellation flow does not revoke promotional credit granted at order placement.
-
Cancellation minted debt to reach the minimum without checking that collateral was still sufficient after the collateral decrease.
-
Cancellation recomputes the deposit from live governance parameters instead of the amount recorded at funding.
Seen in 1 report
-
Cancellation refunds the recipient instead of the order creator.
Seen in 1 report
-
Cancellation required the full order parameters, which were only reliably available from a centralised service, with no on-chain bulk cancellation.
Seen in 1 report
-
Cancellation reset only the vote count and left the start time and finalising flag intact.
Seen in 1 report
-
Cancelling a bid refunds the bidder but does not remove the bidder from the token approval list.
-
Cancelling a minipool did not reset the node runner's rewards start time when the minipool count reached zero.
-
cancelUnstake mints shares at the current exchange rate without first calling payoutRewards.
Seen in 1 report
-
canLiquidate allowed liquidation when the caller owned the collateral without checking that the loan was overdue or that the caller was not the borrower.
Seen in 1 report
-
The cap on unassigned assets is applied as a one-way minimum during a negative delta and never recomputed upward.
Seen in 1 report
-
Cap values denominated in different units (asset wei versus basis points) are compared without normalising.
Seen in 1 report
-
Capacity read the live first-loss buffer and the period-start staked snapshot without deducting assessed-but-unpaid exposure from the previous period.
-
Capacity used the immutable period-start vault balance and did not subtract previous-period cover exposure that remained payable during the new period.
Seen in 1 report
-
Capacity used the vault's opening balance without reserving collateral still liable for unresolved previous-period incidents, and settlement did not block older incidents.
-
Capacity values assets at the current period start without subtracting remaining liability from the previous period's settled cover.
Seen in 1 report
-
Captcha verification sat inside a conditional block that only ran when a hidden parameter was set, so omitting it skipped verification.
Seen in 1 report
-
Captcha verification was tied to the POST handler only, so PUT requests processed without a fresh check.
Seen in 1 report
-
Carry delinquency alone is treated as sufficient for liquidation, while the collateral that can pay carry is narrower than the collateral that satisfies price health.