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 payment system enforces credit limits with a delay, allowing usage to continue after credits are exhausted.
-
The payment used a low-level ETH transfer that forwards all remaining gas instead of a stipend-limited transfer.
Seen in 1 report
-
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.
-
The payment-method requirement was enforced only by a client-side overlay and not by the invite endpoint.
Seen in 1 report
-
The payout calculation uses a hardcoded denominator while configuration only requires shares to sum to at most that value.
-
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
-
The payout discarded the free fee share and burned tokens without transferring it back.
Seen in 1 report
-
The payout function decreases accounted assets and transfers tokens but never decrements the pending recapitalisation or trading revenue memos.
-
The payout function did not update the foreclosed state after transferring funds.
Seen in 1 report
-
The payout function reduces total assets to zero without burning shares, and deposits reopen in the same transaction.
-
The payout is calculated from the current fund balance without a caller-specified minimum.
Seen in 1 report
-
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.
-
The payout transfers assets out without burning shares and deposit pricing divides by totalAssets with no guard against a crashed ratio.
-
The payout used the calling contract as recipient instead of the actual token holder.
Seen in 1 report
-
The payout used the instantaneous pool balance rather than a time-weighted average price.
Seen in 1 report
-
The payout uses the artist's proposed address percentages instead of the current primary split percentage.
Seen in 1 report
-
The payout uses the contract balance minus a hardcoded gas cost instead of the full balance.
Seen in 1 report
-
The payout uses the contract owner instead of the token owner.
Seen in 1 report
-
The payout was capped at the reserve balance with no minimum acceptable amount from the caller.
Seen in 1 report
-
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
-
The penalty is computed per withdrawal with integer maths that rounds down for small amounts.
Seen in 1 report
-
The penalty is distributed to pools the user is the sole member of, so it is credited back to their own locker.
-
The penalty returns a fixed 50 percent without checking whether the vesting duration has elapsed.
Seen in 1 report
-
The penalty was applied in the penalty function and then subtracted a second time in the unstake transaction.
Seen in 1 report
-
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.
-
The pending revenue bucket is recorded gross and never netted against trader payouts, and reconciliation reserves it before capping the ownerless reserve.
-
The pending rewards check only compared the asset reward index and ignored the debt reward index.
Seen in 1 report
-
The pending rewards function is unimplemented and returns empty arrays.
Seen in 1 report
-
The pending vault transfer did not reserve or deduct funds, so the same balance could be spent twice.
Seen in 1 report
-
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
-
The per-fraction price was cached at buyout start and never recalculated.
Seen in 1 report
-
The per-item gas budget omits the keeper-side work done when the caller holds a position.
-
The per-order starting gas variable is computed inside the loop, so its value changes each iteration.
-
The percentage check uses the post-stake total and is only enforced on staking, not on unstaking or slashing.
-
The percentage limit is only checked during staking, not after unstaking reduces the total.
Seen in 1 report
-
The percentage of missing collateral uses the remaining borrowed amount instead of the initial amount.
Seen in 1 report
-
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
-
The period-reset branch set the withdrawn amount to the requested amount without checking it against the limit.
Seen in 1 report
-
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.
-
The permit message did not include the liquidity pool address, so the same signature was valid across every pool sharing that tranche token.
-
The permit nonce was only consumed on successful execution, leaving a reverted call's signature reusable.
Seen in 1 report
-
The permit value came solely from an untrusted remote quote with no cap and no comparison to the on-chain register price.
-
The perpetual change function does not set the active flag to false when deleting.
Seen in 1 report
-
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
-
The phone number was compared for uniqueness before normalisation, so variants were accepted but later resolved to the same number.
Seen in 1 report
-
The PHP code used loose comparison on user-supplied identifiers before casting or rounding them to integers.
Seen in 1 report
-
The PIN comparison was done locally and the result trusted by the client with no server-side verification.
Seen in 1 report
-
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
-
The plan limit was checked per request or per mutation rather than across all mutations in a single batched request.
-
The plan-change endpoint lacked idempotency, so the same operation could be processed repeatedly.
Seen in 1 report