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 maximum coupon check did not account for the bond's coupon already existing in the set.
Seen in 1 report
-
The maximum liquidatable formula omits the liquidation bonus, so post-liquidation health lands below the intended target.
-
The maximum loss parameter is hardcoded to 100 percent, disabling slippage protection.
Seen in 1 report
-
The maximum refundable gas passed to the paymaster's post-transaction hook is computed as gas left plus reserved gas without subtracting gas already spent on pubdata.
Seen in 1 report
-
The maximum solver fee is based on the smallest prize size rather than the actual prize size.
Seen in 1 report
-
The maximum was calculated by rounding one conversion down while the actual mint converted back with rounding up, so the two disagreed by one unit.
-
The maximum-lock check compares against the current timestamp rather than the original lock start.
Seen in 1 report
-
The maxMint view mixes converted share units with raw total supply, and maxDeposit lacks a zero-share guard.
-
The median calculation includes votes from inactive observers because stale entries are not filtered by block height.
Seen in 1 report
-
The meeting did not limit how many times the same account could join and did not prevent a presenter's own screen being shown back to them.
Seen in 1 report
-
The Memcached cache implementation does not properly support the increment operation used by the rate limiter.
Seen in 1 report
-
The mempool did not correctly replace an existing transaction when the gas price was raised, and sequence validation allowed duplicates with the same sequence number.
Seen in 1 report
-
The merchant platform did not verify webhook signatures, and the gateway exposed the webhook URL and secret client-side.
Seen in 1 report
-
The merge burns the source token without transferring or preserving its associated claims in external contracts.
Seen in 1 report
-
The merge function burns the source token without first claiming its pending rewards.
Seen in 1 report
-
The merge increases the destination balance without first claiming rewards already accrued for that destination in the current epoch.
Seen in 1 report
-
The merge of a new licence into an account overwrote the existing licence's user count and expiry instead of keeping them separate.
-
The merge request approval status was not invalidated when the source branch was deleted and recreated with different content.
Seen in 1 report
-
The Merkle proof is computed over index, beneficiary and amount only, omitting the tranches that are part of the leaf in the corresponding Merkle tree.
-
The Merkle proof verification omits the incident timestamp, allowing replay if the timestamp is in the future.
Seen in 1 report
-
Medium
-
-
The message handler for submitting bad signature evidence was omitted from the module's handler file.
Seen in 1 report
-
The message status is set to success based solely on the handler callback returning true, instead of using the status parameter.
-
The message type defines the salt as a 64-bit integer instead of a 32-byte value, so many valid addresses are unreachable.
Seen in 1 report
-
The message-apply function only updates the sender's nonce for contract creation transactions, not for regular calls.
-
The message-edit feature does not re-check the user's plan or remaining quota before allowing a premium model response.
Seen in 1 report
-
The metadata service did not consider that a single name can contain a dot and treated it as a valid subdomain without checking parent ownership.
Seen in 1 report
-
$15,000
-
-
The MEV boundary check is gated on the oracle's frozen status at execution time rather than at commit time.
-
The middleware returns the input version instead of the final version negotiated by the underlying app.
Seen in 1 report
-
The migrate function did not verify the old strategy's total value was zero after withdrawal.
Seen in 1 report
-
The migrate function does not require the new reward token to differ from the current one.
-
The migrated amount was subtracted from total staking power without checking whether the source validator had already unstaked.
-
The migration event recorded only the two addresses, omitting the transferred amount and reward.
-
The migration function does not ensure the new epoch is at least the smoothing period ahead of the active epoch.
Seen in 1 report
-
The migration mints the new token for the post-fee amount without accounting for the withdrawal fee charged by the old token contract.
-
The migration path calls the staking rewards withdrawal with the old user address, so rewards are updated on the old account instead of being transferred.
Seen in 1 report
-
The migration period outlasted the buyout period and the contract did not track fractions returned from a failed buyout.
Seen in 1 report
-
The migration plan cache key omits the V1 resolver and owner state, and execution never re-reads the live V1 registry before submitting.
-
The migration plan was not bound to a canonical snapshot of the authority-bearing state and had no final freshness check before submission.
Seen in 1 report
-
The migration wipes predeployed contract storage and the new storage layout does not match, emptying the replay guard.
Seen in 1 report
-
The migration write set is built from prior-owner records with no allowlist, and the post-state verifier compares against the same tainted objects.
-
The migrator path in the first mint bypassed the minimum liquidity lock, allowing an arbitrarily small total supply.
-
The minimum acceptable output for a derivative-to-underlying swap was calculated from the underlying's 1:1 price, ignoring that the derivative can trade below it.
Seen in 1 report
-
The minimum and maximum price selection is inverted when choosing the worst-case price.
-
The minimum borrow check applies only when borrowing, not when repaying.
Seen in 1 report
-
The minimum borrow check is skipped during vault settlement and only one currency's debt can be reduced at a time during liquidation.
Seen in 1 report
-
The minimum borrow size check only compared the primary debt and did not apply the same check to secondary debts.
Seen in 1 report
-
The minimum collateral required after a dirty liquidation is set to zero because its setter is commented out.
-
The minimum collateral threshold is enforced only in the borrow path and not in the collateral withdrawal path.
Seen in 1 report
-
The minimum contribution check ran before the excess refund reduced the amount.
Seen in 1 report
-
The minimum contribution is checked after refunding excess over the maximum, without ensuring the remainder still meets the minimum.