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.
-
Pushing allocations to the controller and vaults within one transaction let a temporary token balance influence allocation weights.
Seen in 1 report
-
Queue contracts assume static token balances and do not track or forward rebase increases.
Seen in 1 report
-
Queued trading revenue is recorded gross and never netted against rebates paid out, so the shortfall is charged to unassigned assets.
-
Quorum and proposal thresholds are computed as supply times basis points divided by 10,000, so very low supply rounds the result to zero.
Seen in 1 report
-
Quorum is calculated from a cumulative burn total that only grows instead of from active voting power.
Seen in 1 report
-
Quorum is calculated with the current numerator rather than the value at the proposal snapshot.
Seen in 1 report
-
Quorum is fixed at proposal creation from current supply, but tokens minted later in the same block still count as voters.
Seen in 1 report
-
Quorum is fixed from total community voting power at creation while users can change delegated power afterwards.
Seen in 1 report
-
Quorum is recalculated from the current total stake at finalisation time instead of being fixed when the proposal is created.
Seen in 1 report
-
Quorum is recomputed at execution time instead of being recorded when the proposal was voted on.
Seen in 1 report
-
Quota accounting only happened at job finish while shared runners were still enabled.
Seen in 1 report
-
Quota is enforced against weak identifiers such as IP or session rather than the conversation or a strong token.
-
Rage quit did not claim pending distributions before burning the governance NFT.
Seen in 1 report
-
Randomness was derived from on-chain values a user could influence or predict, and reverts were allowed.
Seen in 1 report
-
Rate limit is keyed on a token whose MAC field is client-supplied and not validated against the server record.
Seen in 1 report
-
Rate-limit counters for IP address and username were reset independently, so changing either value cleared the limit.
-
Ratio updates are applied instantly with no grace period.
Seen in 1 report
-
A raw string from an external deeplink is passed into the transfer model without numeric validation.
Seen in 1 report
-
Raw user input was passed to the address resolver without applying the standard normalisation first.
-
Re-adding a removed reward token leaves stale per-user reward accounting.
Seen in 1 report
-
Re-registering an expired domain does not clear the name-to-address and address-to-name mappings.
Seen in 1 report
-
Reactivation does not reconcile existing checkpoints against the inactivity timestamp.
-
Rebalance functions check the pre-operation state against thresholds but omit a post-operation check.
Seen in 1 report
-
rebalanceAll lacks minimum amount parameters for liquidity operations.
Seen in 1 report
-
Rebalancing logic ignores maker fees when long and short fees differ.
-
Recapitalisation cash is counted in total assets for trading depth but held out of distributable equity at reconcile, so a loss on the exposure it enabled zeroes senior.
-
The receiver blocklist is not checked at creation and push payment fails on exercise.
Seen in 1 report
-
Recipient checks only run for executions that involve transfers, so zero-execution rentals skip them.
-
Reclaim does not burn the option token or mark it as reclaimed.
-
Reconciliation clamps the ownerless reserve to terminal distributable equity without recording the reduction, and the waterfall has no high-water mark or restoration step.
-
Reconciliation overwrites the stored unassigned assets balance with the current distributable amount instead of keeping a recovery target.
Seen in 1 report
-
Recorded weights are never decayed or removed as time passes; they only update on explicit vote or reset calls.
Seen in 1 report
-
Records are read from the raw route parameter without ENSIP-15 normalisation while ownership is read from the normalised node, so the two reads hit different nodes.
Seen in 1 report
-
Recovery caches a descendant based only on UUID reachability and the retry path assumes the cached parent stays valid across failures.
Seen in 1 report
-
Redeem and withdraw check the allowance but never decrement it after burning tokens.
Seen in 1 report
-
Redeem applies a debt and earmark reduction already accounted for by repay, causing double counting.
-
Redeem reverts when the maximum redeemable amount is zero because one market failed, with no emergency withdrawal path.
Seen in 1 report
-
Redeem subtracts plain yield units from a total stored in collateralisation-scaled units, and sync mixes the two unit systems again.
Seen in 1 report
-
Redemption amounts use a fixed base instead of the actual remaining unredeemed supply, so direct transfers are not accounted for.
Seen in 1 report
-
Redemption funding uses a marked receivable as if it were collected cash, and a permissionless close at an older accepted tick prevents the pledge from ever being paid in.
Seen in 1 report
-
Redemption is gated only on a non-zero reward token balance rather than on a sufficient deposit having been made.
-
Redemption logic does not check whether the remaining balance would drop below the minimum.
-
Redemption uses the ratio of collateral to total shares instead of the current token price.
Seen in 1 report
-
Redemptions are allowed while undercollateralised and can be fulfilled with whatever small backup collateral is present.
Seen in 1 report
-
Referral rewards are granted on signup with no email verification, rate limit or referral cap.
Seen in 1 report
-
The refund amount is computed from a gas price the submitting node controls with no upper bound.
Seen in 1 report
-
Refunds use the immediate sender, which becomes the contract itself during internal calls.
Seen in 1 report
-
Registration and renewal validate labels with a hand-written character blacklist instead of normalisation, so the on-chain node can differ from what compliant clients compute.
Seen in 1 report
-
Reimbursement paid relayers without checking whether the relayer was also the fee payer.
Seen in 1 report
-
Rejection set the timelock to maximum but did not reset the proposed wallet addresses, so the guard permanently blocked new proposals.
Seen in 1 report