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 new contract started with empty last-claimed-epoch state and the dispenser allowed re-adding an existing nominee.
Seen in 1 report
-
The new credit value was assigned directly to the total instead of being added to it.
Seen in 1 report
-
The new cumulative index formula uses a profit variable that includes cumulative quota interest instead of only the interest portion of the repayment.
Seen in 1 report
-
The new duration is computed by adding the full auction duration to the current time rather than the intended short buffer.
Seen in 1 report
-
The new email is marked as linked when the change starts rather than after OTP confirmation, and pending records are not cleaned up on cancel or timeout.
-
The new end time is derived from the full reward token balance instead of the unallocated remainder.
Seen in 1 report
-
The new rate is assigned before updating the reward index, so the elapsed interval is priced at the new rate.
-
The new reward rate is recalculated from amount plus leftover without adjusting for rewards already accrued at the old rate.
Seen in 1 report
-
The new rewards variable is overwritten by adding existing queued rewards, and the combined value is used in the token transfer.
Seen in 1 report
-
The new total supply could be set arbitrarily low and integer division truncated small shares.
Seen in 1 report
-
The newly accrued delta is capped against the total balance instead of the balance minus what is already available.
Seen in 1 report
-
The newsletter plugin did not validate the confirmation token against the email address.
Seen in 1 report
-
The next distribution timestamp is initialised to zero and then incremented by 30 days instead of being set relative to the current block time.
Seen in 1 report
-
The next epoch is calculated from the loop index plus the epoch length instead of the epoch start plus the epoch length.
Seen in 1 report
-
The next funding timestamp is derived from the current duration times a monotonic pointer, so duration changes shift epoch boundaries retroactively.
-
The next tier count is set to the largest claimed tier plus two and returned even when threshold checks fail.
Seen in 1 report
-
The NFT is transferred before the rental order existence check.
Seen in 1 report
-
The NFT remained transferable after claiming, so a buyer could not tell whether the reward was still available.
-
The node checked whether a block identifier had been processed but not whether its height had already been used.
Seen in 1 report
-
The node checks only the block ID for prior execution and never verifies whether the block height is already occupied, and it has no fork-choice or reorg logic.
Seen in 1 report
-
The node did not verify that the Ethereum transaction message included the Ethereum extension option, so the gas consumption handler was skipped.
-
The node parsed a 256-bit value into a 128-bit integer, truncating transfer amounts.
Seen in 1 report
-
The non-close commit path collects carry during reservation but reports it as zero to the order book, and the evaluator only includes the stored commitment for closes.
-
The non-existence check compared the index to -1 while the lookup returned 0 for missing entries.
Seen in 1 report
-
The nonce comes from a non-cryptographic shared buffer that advances one character per call, and the handler deletes the nonce before validating the message.
-
The nonce is incremented only when a bundle is executed, not when a recovery is cancelled.
Seen in 1 report
-
The notification email can be set to an unconfirmed address because verification is not required.
-
The notification logic treated an unrecognised User-Agent as a reason to skip the alert instead of still sending it.
Seen in 1 report
-
The notification logic was not updated to include the newly added profile field.
Seen in 1 report
-
The off-chain proposer used the anchor registry address as parent after the anchor advanced, while the contract interpreted that address as the genesis sentinel.
-
The offer function called by make is missing the require statement enforcing the minimum sell amount for the pay token.
Seen in 1 report
-
The old lock's bias is recalculated after rounding its end time down to a week boundary.
Seen in 1 report
-
The onboarding endpoint trusted the user identifier in the URL without checking the verification step was completed.
Seen in 1 report
-
The once-per-epoch guard is tracked per token identifier, so moving voting power to a fresh identifier resets the guard.
Seen in 1 report
-
The one-invite limit was enforced only on the add action, not on the combined add-remove sequence.
Seen in 1 report
-
The one-like-per-user limit was tracked with a client-controlled cookie rather than the user's identity in the database.
Seen in 1 report
-
The one-trial-per-company rule was checked when generating a trial but not when registering the licence.
Seen in 1 report
-
The ongoing-withdrawals check uses a strict less-than comparison that reverts once the withdrawal window end is reached.
-
The onlyWhenNoActiveAuction modifier only checks if an auction has ended, not if it has started, and totalAssets uses the current balance.
Seen in 1 report
-
The opcode switch listed PUSH1 through PUSH32 but omitted PUSH0.
Seen in 1 report
-
The open accounting path stores the VPI curve delta as the trade cost and pays it as a rebate without the lifetime clamp or free-cash waiver that the close path enforces.
Seen in 1 report
-
The open borrow position function passes true for the remove-position flag, so a circuit-breaker check skips adding the position.
-
The open fee is calculated and transferred before the actual paired token amount used is known, using the desired amount instead.
Seen in 1 report
-
The open planner clamps the new liquidation reserve to at least the old one and never returns the excess to the PnL pledge.
-
The open position function lacks a check that the symbol is still valid, unlike the quote creation function.
Seen in 1 report
-
The open-commitment path hard-codes collected carry to zero in its commitment effects, and execution only re-adds commitment carry to the bounds for closes.
-
The open-order reservation path returns a commitment with zero carry and zero settlement balances, so the lifecycle bound check misses the carry that was accrued.
-
The open-position function did not enforce a minimum value for the premium portions, allowing them to be zero.
Seen in 1 report
-
The open-position function does not check the liquidity provider's renewal cutoff time, so a borrower can always reset the loan start time.
-
The open-trade function uses the contract's total token balance instead of only the amount gained from the swap.