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.
-
Parental controls are enforced only by a client-side check rather than on the server.
-
Partial redemptions are allowed when the basket is disabled, and the redemption limit depends on an inflatable total supply.
Seen in 1 report
-
Passive energy generation is disabled at the fork block instead of when the new consensus actually becomes active.
Seen in 1 report
-
Password and captcha validation applied only inside the JSON parsing path.
Seen in 1 report
-
Password protection was disabled during testing while zero placeholder prices remained live.
-
Password strength validation was implemented only in the signup flow and not shared with the password reset flow.
Seen in 1 report
-
Password strength was enforced only in the browser and the server accepted whatever was submitted.
Seen in 1 report
-
Password validation checked length and character type but did not reject whitespace-only passwords or trim spaces before validation.
Seen in 1 report
-
Pause checks were placed inside only some functions rather than at the start of every state-changing function.
Seen in 1 report
-
Pausing sets the collateral validity flag to false and close and liquidation functions check it first.
Seen in 1 report
-
A maintenance reward is paid to whoever calls first with no randomness or restriction.
Seen in 1 report
-
Payment transfer and NFT return happen in one transaction, so a payment revert blocks the NFT return.
Seen in 1 report
-
Payments are pushed to the lien owner without checking whether the transfer will succeed, so a reverting transfer blocks repayment and auction settlement.
Seen in 1 report
-
Payout token decimals are read dynamically on every call instead of stored at deployment.
-
Pending download callbacks are stored in one origin-agnostic queue per tab, and accepting a prompt drains the whole queue without checking each callback's origin against the origin shown.
Seen in 1 report
-
Pending invitation tokens were not invalidated on organisation deletion and existence was not checked on acceptance.
Seen in 1 report
-
Pending payments apply the current dynamic shares to the total historical balance instead of snapshotting shares when each inflow arrived.
-
Pending randomness requests were keyed only by sequence number, not by provider address, so requests from different providers collided.
-
Pending-edit identity was built from the non-injective display symbol instead of the numeric coin type.
-
Per-address blocklist results are combined with an any check instead of an all check.
-
Per-token entitlement was divided by the full total supply, which still included tokens held by disapproved holders.
-
Permit failures are swallowed by a try-catch so execution continues without the token approval.
Seen in 1 report
-
Phone validation checked only format and did not detect premium-rate numbers or normalise variants of the same number.
Seen in 1 report
-
Placeholder implementations returned the maximum uint256 value without accounting for maxSupply.
Seen in 1 report
-
Poke proceeds with an empty pool list and marks the token as voted.
Seen in 1 report
-
Policy inspects only the call and ignores the separate tip field that also debits the signer.
Seen in 1 report
-
Pool accounting did not reserve liquidity for synth minters.
Seen in 1 report
-
The pool accounting update was placed inside the branch that only runs when an existing reward rate is positive.
-
The pool address for price calculations is selected by a hardcoded fee tier rather than the pool actually used.
Seen in 1 report
-
Pool cash is read from the live token balance, so donations count as cash without minting shares.
-
Pool creation did not validate that constant product pools have exactly two tokens, and the slippage check was skipped when no tolerance was given.
Seen in 1 report
-
Pool creation does not prevent the staking token from being the reward token.
Seen in 1 report
-
Pool creation does not verify that the collateral mint's freeze authority is disabled.
Seen in 1 report
-
Pool creation was permissionless and the initial price was set solely by the first liquidity provider with no minimum.
Seen in 1 report
-
The pool curve is computed from oracle price and reserves without accounting for the price impact of asymmetric liquidity additions.
-
Precision loss in the share-to-token conversion made the withdrawn amount smaller than the requested amount.
Seen in 1 report
-
Premium access was granted from an updated payment method or stale subscription state rather than a confirmed successful payment.
Seen in 1 report
-
Premium features were gated by client-side checks on a subscription-status response the client could alter.
Seen in 1 report
-
Premium restrictions were enforced per route or in the frontend rather than uniformly on every API endpoint and on the asset URLs themselves.
Seen in 1 report
-
Premium status was stored locally and checked only client-side with no server-side validation.
-
Previously generated checkout sessions were not invalidated and subscription state was not synchronised between frontend and backend.
Seen in 1 report
-
Price deviation was checked only before the swap and not before adding liquidity.
Seen in 1 report
-
Price fields are 64-bit integers instead of 128-bit, too small for 18-decimal token amounts.
Seen in 1 report
-
Price helpers read the global implied collateral ratio before it is synced, so calculations run on stale data.
-
Price impact depended on each individual swap size rather than cumulative volume, so splitting reduced total impact.
Seen in 1 report
-
Pricing and shipping calculations used the client-supplied quantity without validating it against sensible bounds.
-
Profit is calculated from the difference between deposited and returned amounts, which only reflects option fees.
Seen in 1 report
-
Profit is computed by subtracting the initial margin from the settled margin even though the initial margin was never invested in cross mode.
Seen in 1 report
-
Propose used a strict greater-than check and cancel used a strict less-than check, leaving equality unhandled.
-
provideLiquidity does not verify that the amount used stays within the available unstaked balance.
Seen in 1 report