Skip to content

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.

Back to the lesson 3,201 to 3,250 of 5,700
  1. The force deploy function did not revert the whole transaction on failure and did not return unused ETH.

    Seen in 1 report
  2. The force exercise entry point settled the computed fee without accepting a caller-supplied maximum.

    Seen in 1 report
  3. The forced-repayment path transferred fees and repaid tokens out without decrementing the deposited-shares figure, overstating total underlying value.

    Seen in 1 report
  4. The foreclosure time added a duration measured from the current time to the last rent timestamp, double counting rent.

    Seen in 1 report
  5. The forging count is incremented after the limit check, allowing one extra forging.

    Seen in 1 report
  6. The forging function does not track which parent pairs have already been used.

    Seen in 1 report
  7. The form accepted unlimited submissions without a captcha or any rate limit, and the name field was not validated.

    Seen in 1 report
  8. The form normalised every social record before diffing against the raw on-chain snapshot, so non-canonical values looked modified.

    Seen in 1 report
  9. The form trusts client-supplied channel identifiers, does not check ownership, and duplicates the same field in two parts of the request used for different checks.

    Seen in 1 report
  10. The formula for shares received uses an incorrect expression for the ratio of shares to total shares.

    Seen in 1 report
  11. The four-day comparison failed to account for the 8-hour offset, so early Monday timestamps did not add a week.

    Seen in 1 report
  12. The fractionalisation proposal does not distribute newly created vault tokens to members, leaving a window for a follow-up proposal.

    Seen in 1 report
  13. The framework allowed the primary key to be mass-assigned through update calls.

    Seen in 1 report
  14. The framework's failed-login counting or lockout check could be avoided, so the attempt limit was never enforced.

    Seen in 1 report
  15. The freshly rotated aggregate key is passed into signing for a UTXO locked to the previous key.

    Seen in 1 report
  16. The freshness condition used less-than instead of greater-than-or-equal, so it always evaluated true for recent prices.

    Seen in 1 report
  17. The freshness helper calls an oracle getter that reverts when the accepted basket is older than the engine mark, so the book's own valid-state check is unreachable.

    Seen in 1 report
  18. The frontend trusts only the status code and JSON body with no server-issued proof that the password check succeeded.

    Seen in 1 report
  19. The frozen coin age penalty depends on the time since the staker's last reward withdrawal, which the staker can reset.

    Seen in 1 report
  20. The frozen exit fee is retained in the senior tranche and accrues to non-redeemable seed shares while the junior covenant still counts that seed exposure as protected senior capital.

    Seen in 1 report
  21. The frozen status was checked in one function but omitted in the withdrawal and recovery functions.

    Seen in 1 report
  22. The frozen-mode staleness limit is not checked against the length of the frozen run a calendar override creates.

    Seen in 1 report
  23. The fulfilment fee is only collected when the user claims, so users can avoid paying by never claiming.

    Seen in 1 report
  24. The full amount is withdrawn to native token before the rounded deposit amount is calculated, so dust stays in the contract.

    Seen in 1 report
  25. The full amount paid including fees is added to market funds after the fees have already been transferred out.

    Seen in 1 report
  26. The full asset balance was passed as liquidity instead of the balance minus reserves.

    Seen in 1 report
  27. The full bad debt is deducted from the accumulator but only the principal reduces the backup borrowed value, leaving unassigned earnings untracked.

    Seen in 1 report
  28. The full exit condition only checked primary debt and vault shares, not secondary debt.

    Seen in 1 report
  29. The full recapitalisation amount is queued as pending intent and not reduced when part of that cash pays trader claims, so later revenue is absorbed by the leftover intent.

    Seen in 1 report
  30. The full transmuted synthetic amount is burned even when distributable yield is less than owed, and the shortfall is not returned as synthetic tokens.

    Seen in 1 report
  31. The full-close exemption is decided from a projected position that subtracts earlier pending closes, and the minimum is never rechecked at execution when those closes fail.

    Seen in 1 report
  32. The full-closure check did not verify the position amount was zero after a partially filled order.

    Seen in 1 report
  33. The full-repayment path set the amount to the whole debt without verifying the received amount after transfer fees cleared it.

    Seen in 1 report
  34. The fully vested check did not subtract the initial unlock offset from the start time, so the partial vesting formula could exceed the total.

    Seen in 1 report
  35. The function burns all collateral and refunds the underlying tokens instead of keeping them in the position.

    Seen in 1 report
  36. The function burns the original amount rather than the scaled amount and has no slippage check.

    Seen in 1 report
  37. The function calculates a reduced total burned amount after refunds but does not write it back to storage, so subsequent calls use the original higher value.

    Seen in 1 report
  38. The function checked only token amount limits and gave the user no way to restrict the bin cursor, so a reset bin changed the composition behind the same share count.

    Seen in 1 report
  39. The function did not allow a minimum output amount and transferred the full input before placing an order that may partially fill.

    Seen in 1 report
  40. The function did not check that the value sent covered the total swap inputs and used the contract's whole token balance as available funds.

    Seen in 1 report
  41. The function did not check whether redemption was restricted for the adapter before redeeming mature PTs.

    Seen in 1 report
  42. The function did not compare the trade timestamp with the current block timestamp, allowing any positive value to pass validation.

    Seen in 1 report
  43. The function did not validate that from and to addresses were distinct, so writing both balances to the same storage slot created money.

    Seen in 1 report
  44. The function does not transfer the difference between the maximum input and the actual swapped amount back to the caller.

    Seen in 1 report
  45. The function getTotalBorrowingFees called getCumulativeBorrowingFactor instead of getNextCumulativeBorrowingFactor, so it used a stale factor.

    Seen in 1 report
  46. The function ignored the error from the clear method and always returned nil.

    Seen in 1 report
  47. The function initialised next open interest values to zero and only updated the side of the action, failing to carry over the unchanged side's current open interest.

    Seen in 1 report
  48. The function iterates over the bribe array without requiring the two arrays to be the same length.

    Seen in 1 report
  49. The function modifies a memory copy of the struct instead of storage.

    Seen in 1 report
  50. The function never checks that the supplied pod address is a legitimate registered pod, so a malicious contract can return duplicated token entries.

    Seen in 1 report