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 4,001 to 4,050 of 5,700
  1. The payment system enforces credit limits with a delay, allowing usage to continue after credits are exhausted.

    Seen in 1 report
  2. The payment used a low-level ETH transfer that forwards all remaining gas instead of a stipend-limited transfer.

    Seen in 1 report
  3. The payment verification logic only accepted Payment type transactions as valid proofs, while other transaction types that decrease balance were rejected and could not be challenged.

    Seen in 1 report
  4. The payment-method requirement was enforced only by a client-side overlay and not by the invite endpoint.

    Seen in 1 report
  5. The payout calculation uses a hardcoded denominator while configuration only requires shares to sum to at most that value.

    Seen in 1 report
  6. The payout cap on the yield-token side was not mirrored on the synthetic-asset side, so the full balance was burned without refunding the shortfall.

    Seen in 1 report
  7. The payout discarded the free fee share and burned tokens without transferring it back.

    Seen in 1 report
  8. The payout function decreases accounted assets and transfers tokens but never decrements the pending recapitalisation or trading revenue memos.

    Seen in 1 report
  9. The payout function did not update the foreclosed state after transferring funds.

    Seen in 1 report
  10. The payout function reduces total assets to zero without burning shares, and deposits reopen in the same transaction.

    Seen in 1 report
  11. The payout is calculated from the current fund balance without a caller-specified minimum.

    Seen in 1 report
  12. The payout reduced total assets to zero without burning shares, breaking the invariant that total supply is zero when total assets are zero and inverting the virtual-offset defence.

    Seen in 1 report
  13. The payout transfers assets out without burning shares and deposit pricing divides by totalAssets with no guard against a crashed ratio.

    Seen in 1 report
  14. The payout used the calling contract as recipient instead of the actual token holder.

    Seen in 1 report
  15. The payout used the instantaneous pool balance rather than a time-weighted average price.

    Seen in 1 report
  16. The payout uses the artist's proposed address percentages instead of the current primary split percentage.

    Seen in 1 report
  17. The payout uses the contract balance minus a hardcoded gas cost instead of the full balance.

    Seen in 1 report
  18. The payout uses the contract owner instead of the token owner.

    Seen in 1 report
  19. The payout was capped at the reserve balance with no minimum acceptable amount from the caller.

    Seen in 1 report
  20. The PDF format lets both a field default value and a widget annotation specify displayed text, and viewers prioritise them differently.

    Seen in 1 report
  21. The penalty is computed per withdrawal with integer maths that rounds down for small amounts.

    Seen in 1 report
  22. The penalty is distributed to pools the user is the sole member of, so it is credited back to their own locker.

    Seen in 1 report
  23. The penalty returns a fixed 50 percent without checking whether the vesting duration has elapsed.

    Seen in 1 report
  24. The penalty was applied in the penalty function and then subtracted a second time in the unstake transaction.

    Seen in 1 report
  25. The pending recapitalisation residual is reserved from distributable value that already backs Senior principal, and the empty-waterfall bootstrap then replaces the Senior high-water mark with the residual.

    Seen in 1 report
  26. The pending revenue bucket is recorded gross and never netted against trader payouts, and reconciliation reserves it before capping the ownerless reserve.

    Seen in 1 report
  27. The pending rewards check only compared the asset reward index and ignored the debt reward index.

    Seen in 1 report
  28. The pending rewards function is unimplemented and returns empty arrays.

    Seen in 1 report
  29. The pending vault transfer did not reserve or deduct funds, so the same balance could be spent twice.

    Seen in 1 report
  30. The per-account stake ledger was only appended on deposit and never reconciled on token transfers because there were no transfer hooks.

    Seen in 1 report
  31. The per-fraction price was cached at buyout start and never recalculated.

    Seen in 1 report
  32. The per-item gas budget omits the keeper-side work done when the caller holds a position.

    Seen in 1 report
  33. The per-order starting gas variable is computed inside the loop, so its value changes each iteration.

    Seen in 1 report
  34. The percentage check uses the post-stake total and is only enforced on staking, not on unstaking or slashing.

    Seen in 1 report
  35. The percentage limit is only checked during staking, not after unstaking reduces the total.

    Seen in 1 report
  36. The percentage of missing collateral uses the remaining borrowed amount instead of the initial amount.

    Seen in 1 report
  37. The period start was set to the start of the next period instead of the end of the current period, overcounting when a period was skipped.

    Seen in 1 report
  38. The period-reset branch set the withdrawn amount to the requested amount without checking it against the limit.

    Seen in 1 report
  39. The period-start exposure snapshot used an inclusive checkpoint lookup, so a withdrawal at exactly the period-start timestamp overwrote the pre-boundary balance used to cap payouts.

    Seen in 1 report
  40. The permit message did not include the liquidity pool address, so the same signature was valid across every pool sharing that tranche token.

    Seen in 1 report
  41. The permit nonce was only consumed on successful execution, leaving a reverted call's signature reusable.

    Seen in 1 report
  42. The permit value came solely from an untrusted remote quote with no cap and no comparison to the on-chain register price.

    Seen in 1 report
  43. The perpetual change function does not set the active flag to false when deleting.

    Seen in 1 report
  44. The phase user mapping was not reset at the start of each new epoch, so eligibility from a previous epoch persisted.

    Seen in 1 report
  45. The phone number was compared for uniqueness before normalisation, so variants were accepted but later resolved to the same number.

    Seen in 1 report
  46. The PHP code used loose comparison on user-supplied identifiers before casting or rounding them to integers.

    Seen in 1 report
  47. The PIN comparison was done locally and the result trusted by the client with no server-side verification.

    Seen in 1 report
  48. The pipeline shown to the maintainer did not reflect the current content of a remote included CI file, so a later change executed after merge.

    Seen in 1 report
  49. The plan limit was checked per request or per mutation rather than across all mutations in a single batched request.

    Seen in 1 report
  50. The plan-change endpoint lacked idempotency, so the same operation could be processed repeatedly.

    Seen in 1 report