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.
-
A zero-amount withdrawal reset the unlock timestamp to the current time instead of extending the lock.
Seen in 1 report
-
Abandoned usernames could be re-registered without verifying a link to the original owner or checking old links.
Seen in 1 report
-
Aborted transaction amounts are summed without filtering on coin type.
Seen in 1 report
-
Access control was enforced on the client side instead of redacting premium content on the server before sending it.
Seen in 1 report
-
Accessors key the checkpoint mapping by token alone while checkpoints are only written for a token and validator pair.
Seen in 1 report
-
Account deletion did not deactivate the referral code, and reward issuance never checked the code belonged to an active account.
Seen in 1 report
-
Account deletion did not retain or transfer cancellation charges, and the new account was treated as a fresh user.
Seen in 1 report
-
Account deletion removed only email and password, leaving the username record so the uniqueness check still saw it as taken.
Seen in 1 report
-
Account lockout is keyed on the username alone without considering request origin.
Seen in 1 report
-
Accrued yield is only recorded when the sync function is called, so it is not reflected in share pricing until then.
Seen in 1 report
-
Activation used a lagging EMA weight and the end blocker only deactivated topics, never activated them later.
Seen in 1 report
-
Active treasury resolved in a view by timestamp comparison, so a digest input changes with no transaction or event.
-
Actors were keyed by a constant operation-only ID, so completion evidence was not bound to the specific account or role change.
-
Ad update endpoint accepts privileged status fields from the client.
Seen in 1 report
-
Adding a validator set the commission field but never created a commission rate checkpoint, so the rate was treated as zero.
-
Adding debt updates the user's locked amount using the current ratio but only adds the new lock to the global total.
Seen in 1 report
-
Adding value updated balances and target proportionally without recalculating the target to enforce the minimum.
Seen in 1 report
-
Medium
-
-
addQuoteToken has no maximum slippage or minimum LUP parameter.
Seen in 1 report
-
Adjusting the voting power snapshot block when the current block equals the vote start block.
-
Administrative reward-parameter setters mutate emission state without checkpointing the current reward index first.
Seen in 1 report
-
Admission projection applies a linked pending close without checking its execution deadline or pinned configuration hash.
-
Admission relies on free settlement that is never locked, so a flat account can withdraw it before execution and make its own pending open fail.
-
After capping the execution fee to the user fee, the loss fee is computed as the difference between the capped fee and the user fee, which is always zero.
Seen in 1 report
-
After recalculating the token share in the fallback branch, the minimum supply check is not re-applied.
Seen in 1 report
-
Agent collateral is not touched when a transferToCoreVault redemption defaults, so the agent can delay and self-mint.
-
Aggregator min and max answers are cached at construction time instead of fetched on each call.
Seen in 1 report
-
All tickets were checked for prior claims before any were marked claimed, and the reward function did not verify a ticket was not already marked, so duplicate IDs in one call paid repeatedly.
Seen in 1 report
-
Allocated balances are stored as unsigned integers so a negative result underflows and reverts.
-
Allocations are tracked in asset amounts rather than shares and there is no function to withdraw accrued yield after depletion.
Seen in 1 report
-
Allowance is deducted in nominal units while the balance transfer uses a rounded-up scaled share amount.
Seen in 1 report
-
Allowances are not reset after swaps and the user controls swap order.
Seen in 1 report
-
Amounts were not converted from 18 decimals to the token's native decimals.
Seen in 1 report
-
An absolute token amount is compared directly with a relative percentage without converting to the same units.
Seen in 1 report
-
An all-zero source root matched the stored zero root, so the proof searched for a sender that could not exist.
-
An assignment was used instead of an addition assignment when updating the idle increase, overwriting accumulated rewards.
-
An early break that discards invalid royalty shares also aborts the seller-is-recipient detection.
Seen in 1 report
-
An early return before the callback registration meant only the first request per oracle version was recorded.
-
An early return for zero-duration buckets skips the event emission that finite buckets perform.
Seen in 1 report
-
An early return in the success branch skipped the code that reset the temporary pool adjustment.
Seen in 1 report
-
An early return on a zero reward amount skips the balance refresh that yield withdrawal depends on.
Seen in 1 report
-
An early-return condition uses logical OR instead of AND with a sign check, skipping the update when margins are equal and the amount is negative.
-
An empty catch block swallows permit errors and lets execution continue to a transfer that then fails for a different reason.
Seen in 1 report
-
An empty confirmPayment value was treated as a successful payment confirmation.
Seen in 1 report
-
$443
-
-
An empty proof is treated as a special case that compares the token ID directly to the Merkle root.
Seen in 1 report
-
An inequality check on the input balance allowed excess tokens to be accepted.
-
An internal counter was used instead of querying the actual staked amount.
-
An inverted condition tests whether one asset amount is zero but then uses that same asset, selecting the wrong one.
-
An inverted ternary selected the grey list when white was requested and the white list otherwise.
-
An off-by-one adds one to the computed protocol fee and clips the result.
Seen in 1 report
-
An off-by-one comparison means the liquidation check uses strict less-than while the maximum liquidatable debt uses strict greater-than.