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 minting cap check runs on the base mint value before the pool fee is added, while the mint includes both.
-
The negation in the registration check is inverted, so the push and flag update only run for pools already marked as registered.
Seen in 2 reports
-
The open planner clamps the post-open reserve to the previous reserve whenever the recomputed target is lower, and the settlement sidecar only moves collateral into the reserve, never back out.
Seen in 2 reports
-
Medium -
Medium
-
-
The open-order path leaves the carryCollectedAssets field of the commitment effects at zero, so the bound check never sees the carry the margin reservation actually takes.
-
The opening-order branch records carryCollectedAssets as zero after the clearinghouse has already collected old-position carry, and the execution-time policy only adds commitment carry for closes.
-
The ownership pricing snapshot omits the secured negative impact receivable still owed back to the pool.
-
The ownership query normalises the name while the records query uses the raw parameter, so the two queries resolve to different on-chain names.
-
The password policy does not reject passwords equal to the username or identical to the current password.
-
The payment check uses greater-than-or-equal instead of requiring an exact match, so overpayment is accepted and the difference is never computed or refunded.
-
The payout helper caps the amount with a minimum-of calculation instead of reverting, and the caller burns tokens regardless of the amount paid.
-
The pending recapitalisation bucket is only decremented inside reconcile, which is capped to distributable value and rolled back by the no-progress revert, so a residual keeps reserving cash after the claim it backed is paid.
Seen in 2 reports
-
High -
High
-
-
The pending recapitalisation is not reduced when cash is paid out to a trader, so a leftover with no cash behind it blocks settlements.
Seen in 2 reports
-
High -
High
-
-
The pending recapitalization bucket is only decremented by a reconcile, while payouts reduce accounted assets without touching the bucket, so the reservation outlives its cash.
Seen in 2 reports
-
The pending-payment formula multiplies the whole historical inflow by the current dynamic share, rewriting past entitlements.
Seen in 2 reports
-
The pending-rescue cap is applied against the same split-ready value on every settlement instead of only the value above already-credited balances.
-
The platform counted duplicates towards totals without checking whether the same researcher already received credit.
-
The pool forwards the user's permit signature to the token contract without protecting against front-running, so whoever submits it first consumes the nonce.
Seen in 2 reports
-
The precompiled contract did not verify it was not invoked via delegatecall and trusted the call value without confirming funds arrived.
-
The price-impact charge is skipped only at exactly zero depth while the curve has no upper bound as depth approaches zero, and it is collected from the account's entire free settlement balance.
-
The protection admission path calls an order-enforcing oracle view that rejects a state the book's own lenient guard would accept.
Seen in 2 reports
-
Low -
Low
-
-
The quantity parameter had no lower-bound validation, so negative values reduced the cart total.
Seen in 2 reports
-
The quorum threshold is not checkpointed per proposal, so a later change to the quorum numerator applies retroactively.
Seen in 2 reports
-
The reconcile logic caps the entire stored residual against the entire current distributable equity without tracking which part already backs principal credited by an earlier pass.
Seen in 2 reports
-
High -
High
-
-
The reconcile snapshot counts refundable volume price impact as earned cash and omits the signed lifetime impact term from LP net asset value.
-
The redeem request accepts any controller address and skips the minimum-size check for full-balance requests, letting a dust request head another account's queue.
Seen in 2 reports
-
The redeem request function accepts any controller named by the caller without consent, and the no-ID ERC-4626 calls only read the queue head.
-
The redemption path uses the raw borrowed mapping instead of the getter that includes fees.
-
The registration condition checks isPool instead of its negation, so the pool list is never populated.
Seen in 2 reports
-
The reimbursement formula uses the user-supplied gas price without a cap against a trusted oracle.
Seen in 2 reports
-
The renewal routes use two different parsers on the same input: full normalisation for validation and display, and a naive lowercase-plus-denylist parser for pricing and the renew call.
-
The repay function does not check for an outstanding deficit, so repayment and withdrawal can skip replenishment.
-
The repayment check converts shares to assets at the current donation-inflated rate and rejects the repayment when that value exceeds the recorded debt.
-
The replace owner function did not reject the zero address.
Seen in 2 reports
-
The request path never checks that the named controller consented, so a third party can nominate any controller and the refund rules force a share delivery and cooldown onto them.
-
The reserved-token calculation rounded up to one token when nothing had been minted yet, letting a project mint a reserve token per tier without contributing.
-
The reset endpoint has no per-account or per-IP throttling and no captcha.
Seen in 2 reports
-
The reward debt variable was not updated after a payout finished, so it stayed zero and the contract could not tell rewards had already been allocated.
-
The reward update function does not check whether the gauge is alive before adding to claimable.
Seen in 2 reports
-
The router approves the vault for the asset amount instead of the share amount, or sets an unnecessary allowance, leaving a residual that makes the next safeApprove revert.
-
The Rust anchor state registry binding exposes only the anchor root and block number, not the current anchor game address, so recovery falls back to the registry address.
-
The same collateralisation rate variable was used for both the maximum LTV check and the liquidation start threshold, leaving no safety buffer.
-
The same interface is used for native and ERC20 cTokens, so the mint selector is wrong for native.
-
The save transformer emits additions before deletions and never coalesces operations sharing the same name and coin type, so a delete overwrites the replacement.
Seen in 2 reports
-
The Senior high-water mark is re-bootstrapped from the live, decremented pending recapitalization bucket on each reconcile instead of from a persisted full recapitalization target.
-
The server did not enforce the terms acceptance check on the registration or deletion endpoint, relying on the UI.
Seen in 2 reports
-
The server iterated over whatever value the password field held instead of requiring a single string, so request-based rate limits undercounted guesses.
-
The server trusted a client-controlled flag or skipped verification entirely instead of validating the CAPTCHA token server-side.
-
The server trusted client-supplied quantities and did not validate they were positive or recompute the total.
-
The server trusted the client-supplied rating without validating its range.
-
The server trusts a client-supplied amount field when creating the payment checkout instead of recalculating the fee from its own records.
Seen in 2 reports