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 planner nets the VPI rebate and execution fee into one signed value and clamps the fee to the net collected charge, so a negative net erases the fee.
-
The planning snapshot omits the keeper's pending carry, which the live path realises before re-deciding.
-
The platform allowed branches and tags to share a name, creating ambiguity in name resolution.
-
The platform subsidy is paid from the venue's escrow balance without ensuring sufficient tokens are available.
Seen in 1 report
-
The platform trusted the payment gateway response without verifying it server-side, so a swapped success response credited the wallet.
Seen in 1 report
-
The platform validated the technical structure of the RSS feed but did not verify that the submitter controlled the email address declared in the feed's owner tag.
Seen in 1 report
-
The platform's invitation system only checks researcher reputation and does not validate location or other eligibility criteria against program rules before sending automated invites.
-
The player trusts ad-control values in API responses without server-side enforcement.
-
The plugin assumed Processing meant paid and awarded points without checking the payment method.
Seen in 1 report
-
The plugin authenticated the payment notification but failed to verify that the amount, currency and receiver matched the order.
Seen in 1 report
-
The plugin notification loop called the notification check without a try-catch, so a reverting plugin aborted the whole slash.
Seen in 1 report
-
The poke function initialised the boost variable to zero and passed it to the vote routine, recalculating power without the accumulated boost.
Seen in 1 report
-
The poke function initialises the boost variable to zero and does not retrieve the previously stored boost before voting.
Seen in 1 report
-
The poke function is missing the once-per-epoch guard that prevents multiple reward accruals in the same epoch.
Seen in 1 report
-
The poke function lacks an only-new-epoch modifier and the bribe withdrawal does not reduce total voting, so repeated pokes inflate it.
Seen in 1 report
-
The pokeTokens function lacks a check preventing a vote when the token has already voted in the current epoch.
Seen in 1 report
-
The policy only enforced character composition and did not compare the password against other profile fields.
Seen in 1 report
-
The policy was applied only when a password was set or changed, not at setup or login for existing passwords.
Seen in 1 report
-
The poll snapshot stored only the total staked amount, not individual balances, so stakes made after the snapshot counted in votes.
-
The poll's expiry check used the client device clock rather than server time.
Seen in 1 report
-
The pool accepts deposits at any time while tracking payouts with a per-recipient paid flag.
-
The pool allows deposits and withdrawals with only a short lockup, so LPs can time actions around expiries.
Seen in 1 report
-
The pool assumes NFT transfers always succeed although supported collections can pause transfers.
-
The pool balance variable was only updated on deposits and withdrawals, not on portfolio losses.
Seen in 1 report
-
The pool constructor does not check that the NFT used is not the factory contract itself.
Seen in 1 report
-
The pool deployer may specify any interest rate strategy contract without restriction.
-
The pool index is updated even when the deposit is too small to fund any validator, instead of reverting or leaving the index unchanged.
Seen in 1 report
-
The pool lacks a withdraw function for escrowed tokens but still increases the share price as if received.
Seen in 1 report
-
The pool lacks protection against flash loans or snapshot manipulation, so tokens acquired just before a snapshot can claim rewards.
Seen in 1 report
-
The pool last-update variable was never set in the constructor, so the first checkpoint integrates over the whole chain history.
-
The pool only queues trading revenue when both tranche principals are zero, so revenue arriving while a recapitalisation is pending is treated as ordinary surplus and consumed first.
Seen in 1 report
-
The pool settlement update is called with the pre-repayment liability instead of the post-repayment value.
Seen in 1 report
-
The pool status used to verify eligibility is cached and not refreshed during the purchase call, so it can be stale.
-
The pool trusts a reward amount returned by an untrusted caller-supplied contract and adds it to collateral without verifying the transfer.
Seen in 1 report
-
The pool uses oracle prices without enforcing a ratio between collateral reserves.
-
The pool was not designed to handle a stakeable token that accrues rewards, so reward tokens sent to the contract have no withdrawal path.
Seen in 1 report
-
The pool's returned output amount is treated as authoritative instead of validating the adapter's actual balance change after the external call.
Seen in 1 report
-
The pop, shift and clear methods did not call the modify check that enforces the frozen state.
Seen in 1 report
-
The portal treated the seller's inability to detach the resolver as a reason to hide the cleanup option and warning rather than blocking the transfer.
-
The POS sets its paid state from an unconfirmed mempool notification without waiting for execution or checking for a success event.
-
The position contract never calls the reward claim function, so accrued rewards remain unclaimed and dilute other users.
Seen in 1 report
-
The position helpers compute fees using only the taker rate and never add the maker fee that the market applies.
-
The position list validation compares only a hash and does not enforce uniqueness or a maximum length.
-
The position manager stores the user-supplied strike instead of querying the current strike.
Seen in 1 report
-
The position rate depended on free collateral, so temporarily raising collateral reduced the premium.
Seen in 1 report
-
The position size check read the spell contract's LP token balance, which only reflected the latest deposit.
Seen in 1 report
-
The position TVL function only checks the contract's pool token balance and does not add the gauge token balance representing staked liquidity.
Seen in 1 report
-
The position TVL function uses a positions mapping key that does not include the owner address, so it retrieves total liquidity for the tick range regardless of ownership.
-
The post-execution check compared only the threshold, so owner additions went unnoticed.
Seen in 1 report
-
The PostgreSQL adapter's string quoting stops at the first null byte, so the remainder of the parameter is discarded before the query is sent.
Seen in 1 report