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 301 to 350 of 5,700
  1. The backend relies on the UI to restrict email changes and does not enforce or verify them server-side.

    Seen in 2 reports
  2. The base fee payout is conditional on post-debit leftover collateral instead of being paid from the gross seizure.

    Seen in 2 reports
  3. The batch price path reads the cached price before loading the asset configuration, and admin functions that change oracle settings never invalidate the cache.

    Seen in 2 reports
  4. The burn function subtracted only the fee amounts from reserves instead of the full burned amounts.

    Seen in 2 reports
  5. The burn function used the contract's live pool token balance, which direct transfers can inflate, instead of a cached internal value.

    Seen in 2 reports
  6. The canCall functions assumed tokens were always sent to the caller, but router functions allow a different receiver.

    Seen in 2 reports
  7. The cancel function does not restore the buffer or remove the pending operation, and redelegation happens without moving funds first.

    Seen in 2 reports
  8. The capacity formula mixed a live first-loss buffer with a period-start vault snapshot, and the payout checkpoint was keyed after the period start so the reduction was invisible.

    Seen in 2 reports
  9. The captcha answer was rendered into the page HTML rather than kept server-side or shown only as an image.

    Seen in 2 reports
  10. The checked-in base and payment weights were generated against a generic upstream runtime and never regenerated for the custom signature scheme and fee collector storage.

    Seen in 2 reports
  11. The checkout display and the registration machine compute the funding amount from separate sources with no binding between them.

    Seen in 2 reports
  12. The checkpoint variable was declared as a memory pointer rather than a storage pointer, so assignments to it did not persist.

    Seen in 2 reports
  13. The child strategy does not override the empty internal claim function, so the public claim is a no-op.

    Seen in 2 reports
  14. The circuit enforces a fee inequality per leaf while the runtime takes one ceiling over the summed bundle output.

    Seen in 2 reports
  15. The claim check required the prize to be fully drawn (inactive) instead of checking that the caller is a recorded winner for a drawn slot.

    Seen in 2 reports
  16. The claim path reused a strict active-token check instead of checking the caller's accrued balance for that token.

    Seen in 2 reports
  17. The claimable-period bounds check let the window extend past the delegation's end period and the reward calculation never verified the token was staked in that period.

    Seen in 2 reports
  18. The claimable-period check only caps the first claim at the exit period, and later claims are treated as valid once the last claimed period moves past it.

    Seen in 2 reports
  19. The close fee is waived only at exactly zero depth rather than treating small or non-positive depths as protected, leaving the inverse-depth term unbounded.

    Seen in 2 reports
  20. The close path nets the VPI rebate against the execution fee and then budgets the pool top-up from that already-reduced fee, so the treasury top-up is always zero.

    Seen in 2 reports
  21. The close pricing kernel divides skew cost by execution-time net pool depth and only clamps the rebate side of lifetime VPI at zero, leaving the charge side unbounded.

    Seen in 2 reports
  22. The close rebate branch nets the execution fee into the action amount but leaves the fee-eligible counters at zero, so no protocol fee top-up is requested.

    Seen in 2 reports
  23. The close VPI charge is uncapped and inversely proportional to net depth, and the zero-depth exemption only applies at exactly zero depth.

    Seen in 2 reports
  24. The close-side charge divides by pool depth with no cap relative to the closed notional or the closer's account, and collection draws from all free settlement and margin.

    Seen in 2 reports
  25. The code assumes delegation always starts in the period after the last completed one, which is wrong for pending or queued validators.

    Seen in 2 reports
  26. The code called the vault or swapper without first approving the token spend.

    Seen in 2 reports
  27. The code calls balanceOf and transfer on the reward contract address instead of the actual reward token address returned by the reward token accessor.

    Seen in 2 reports
  28. The code did not check the boolean return value of the ERC20 transfer call.

    Seen in 2 reports
  29. The code passed the current block timestamp as the deadline, so the deadline check compared the current time against itself.

    Seen in 2 reports
  30. The code uses safeTransfer and safeTransferFrom without checking the actual balance change, assuming the recipient receives the full amount.

    Seen in 2 reports
  31. The collateralisation ratio is checked before the repayment fee is deducted and never re-checked afterwards.

    Seen in 2 reports
  32. The commission lookup fell back to the current commission when no checkpoint existed, and the validator add path omitted the initial commission checkpoint.

    Seen in 2 reports
  33. The constructor's require statement checked the uninitialised state variable rather than the input parameter.

    Seen in 2 reports
  34. The contract assumed block.number advances at a constant rate, which is false on some chains.

    Seen in 2 reports
  35. The contract credited the requested amount instead of measuring the balance increase after transfer.

    Seen in 2 reports
  36. The contract omitted initialising the liquidation threshold, leaving it at its default zero.

    Seen in 2 reports
  37. The contract used the requested transfer amount instead of the actual received amount.

    Seen in 2 reports
  38. The contract used the transfer amount instead of checking the actual balance change to determine how many tokens arrived.

    Seen in 2 reports
  39. The conversion and repayment logic only handles a plain lending pair as the paired LP token and does not account for a podded fTKN variant.

    Seen in 2 reports
  40. The dialog read a live refetchable value instead of binding an immutable pending action when it opened.

    Seen in 2 reports
  41. The dispatcher caps the redeemable share amount by the yield token balance instead of the principal token balance, even after maturity.

    Seen in 2 reports
  42. The displayed expiry was computed from a normalised name while the submitted label came from a parser that only trimmed and lowercased.

    Seen in 2 reports
  43. The distributeEx function does not verify that the provided token is not the main reward token and never decrements the per-gauge claimable amount.

    Seen in 2 reports
  44. The dust redistribution logic assumed the last holder was eligible, and integer division remainders were never reconciled at the end of the final batch.

    Seen in 2 reports