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.
-
Server-side validation for tag name prefixes was not applied.
Seen in 1 report
-
Sessions are not invalidated when the account password changes.
Seen in 1 report
-
setRatio updates the ratio without ensuring the payout variables are updated when melt reverts.
Seen in 1 report
-
setRoyaltyVault does not check that the vault's royalty asset equals the collection's payable token.
-
Setter functions for reward period and ratio do not accrue rewards before updating parameters.
Seen in 1 report
-
A supply setter lacked checks that new values are at least the minted count and that their sum stays within maximum supply.
Seen in 1 report
-
Settlement charges only the taker fee and ignores the maker fee, so a negative taker rate makes the total fee negative.
Seen in 1 report
-
Settlement computes assets received as the balance difference before and after, so a pre-existing deficit hits the first cohort only.
Seen in 1 report
-
Settlement gates read principals from a reconcile snapshot that counts refundable charges as revenue with no term for fees still owed back to open positions.
-
Settlement is blocked while trading is paused, allowing a late bidder to settle lower after unpausing.
Seen in 1 report
-
Settlement liveness is gated on a single sticky latch that untrusted order flow can set, with recovery only via a non-timelocked owner action.
-
The settlement loop processes every non-zero deposit with no minimum deposit size.
-
Settlement never reads the pending order queue, so orders with a published fill price are excluded from the settlement NAV.
-
Settlement overwrote the minimum balance using only the pool's fixed slippage limit, ignoring the dynamic oracle parameter.
-
Settlement reads only the withdrawal vault balance and does not include the node reward vault when deciding whether earnings cover the penalty.
-
Settlement required the private key with no fallback for bidders to claim refunds if it was never provided.
Seen in 1 report
-
Settlement reserves the full recorded pending claimant amount against pool cash without capping it at cash held above claimed principal.
-
The settlement sidecar records gross seized cash as claimant revenue without netting off the marked receivable it replaces.
Seen in 1 report
-
setToProcessGroups had no timing restriction beyond the epoch process having started.
Seen in 1 report
-
setYieldSource updated the yield source without first transferring the underlying balances, leaving share calculations using an incomplete token balance.
Seen in 1 report
-
Several functions compare the health factor to a hardcoded constant instead of reading the stored configurable threshold.
Seen in 1 report
-
Share accounting was not updated when tokens were minted directly to the vault, so previewDeposit rounded shares down to zero.
-
Share calculation divides by the current balance without accounting for pending obligations.
Seen in 1 report
-
Share calculation rounds down to zero when supply is tiny and balance is large, with no check preventing zero-share minting.
Seen in 1 report
-
Share calculation rounds down with no minimum initial deposit or reserve, letting the first depositor set an extreme price per share.
-
Share calculation used integer division that rounded to zero when the balance was inflated by a direct transfer, with no minimum stake.
Seen in 1 report
-
Share calculation used integer division that rounds down, and direct token donations could move the price per share.
Seen in 1 report
-
Share minting uses the contract's token balance, so a direct donation changes the share price.
Seen in 1 report
-
Share price calculation is vulnerable to inflation when total supply is low or zero, letting the first depositor skew price per share.
-
Share price uses the vault's token balance directly, which direct transfers inflate.
-
Share value is derived from a reserve figure that includes fees and can exceed the pool's real balance.
Seen in 1 report
-
The shared resolver returns a bare address with no provenance flag, so owner-fallback reaches irreversible paths.
-
Shareholder balances are only updated when the holder fee is above zero, so zeroing the fee stops balance updates.
Seen in 1 report
-
Shares are burned before computing the exchange rate, inflating the per-share value.
Seen in 1 report
-
Shares are calculated before the funding update that increases total collateral.
Seen in 1 report
-
Shares are calculated dynamically from mutable factory parameters without accounting for previously released amounts.
-
Shares to burn are computed from a view function that does not account for losses during the actual withdrawal.
-
Shares were minted on total assets while the market rounded small deposits away.
Seen in 1 report
-
Medium
-
-
Shelter does not clear the depositor's staked balance in the master contract.
-
Shelter entry assigns the pool balance instead of adding to the existing recorded amount.
-
Short funding fees are stored in USD but converted to tokens at settlement using the current price, ignoring price changes over the accrual period.
Seen in 1 report
-
The sign-in endpoint enforces no rate limiting or account lockout.
Seen in 1 report
-
Signature verification accepts a document as authenticated when only a partial signature is present.
Seen in 1 report
-
Signature verification uses a recovery method that does not support smart contract wallet signatures.
Seen in 1 report
-
Signed integers were cast to unsigned without checking for negative values.
-
Signers persist a sweep transaction only when a separate notification arrives, not during the signing round itself.
-
A claim is silently capped at the contract balance instead of reverting or recording the shortfall.
-
A single token balance is used for both staked principal and payout rewards.
-
Slashing does not clear the delegate address, so voting logic still treats a zero-bonded account as a transcoder.
Seen in 1 report
-
Slashing logic looks only at current shares and ignores shares temporarily debited during over-commitment recording.
Seen in 1 report