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 state proof was requested with the post-execution version instead of the pre-execution version, so the epoch change branch was skipped.
-
The state sync function is not called for all bank balance changes, such as staking operations, leaving the EVM state out of step with the bank balance.
Seen in 1 report
-
The state transition guard only checked for the Started status, so the process could be restarted after moving to group processing.
-
The state transition logic checks for Expired before Late and has no transition from Late to Expired, so capital locking and unlocking are skipped in certain timing scenarios.
Seen in 1 report
-
The state transition logic does not set the late timestamp when moving from 'not supported' to 'late', allowing a subsequent assessment to see a zero timestamp and default the pool.
Seen in 1 report
-
The state variables for all tokens, token indices and current index are updated in the wrong order or not decremented on burn, so they only increase.
Seen in 1 report
-
The static transfer-counting matcher cannot see inside a stored proposal, so it falls through to a zero weight.
Seen in 1 report
-
The status endpoint trusted any signer key to set a deposit to accepted without verifying it was processed.
-
The status is updated as soon as a count reaches the threshold without checking the existing status or votes for other statuses.
-
The status timestamp is rounded up while the request records the current block timestamp.
-
The stop-emissions check used a supply value that virtual shares keep at a minimum, so the halt condition never fires.
Seen in 1 report
-
The stop-loss price is used as the execution price instead of only as a trigger.
Seen in 1 report
-
The storage layer accepted the raw null byte while the authentication layer normalised it differently.
Seen in 1 report
-
The store trusted a client-supplied payment amount and tax, and the merchant checked only the transaction ID rather than the amount actually paid.
Seen in 1 report
-
The stored mint fee was forwarded as the call value instead of validating the user's actual payment.
Seen in 1 report
-
The stored transmuter balance was set to the current balance minus used yield, which re-included the used yield in future calculations.
Seen in 1 report
-
The stored underlying amount was never updated to include accrued interest, so the collateral value was understated.
-
The strain parameter was not capped and the assembly division truncated to zero.
-
The strategy assumed the trading module returns WETH, but it returns native ETH when ETH is the buy token.
Seen in 1 report
-
The strategy assumed depositMax deploys the full amount, but the router caps it, leaving the remainder with no recovery path.
Seen in 1 report
-
The strategy called the lending pool's withdraw with zero when there was no position, and the pool rejects zero withdrawals.
Seen in 1 report
-
The strategy called the market mint function without checking its return value, so a failed mint did not revert and funds stayed undeposited.
-
The strategy contract's flashloan function was callable by anyone and let the caller set the repayment amount and fee.
Seen in 1 report
-
The strategy contracts omitted the receive function that other strategies include.
Seen in 1 report
-
The strategy deposit path called the protocol deposit without increasing the tracked underlying balance.
Seen in 1 report
-
The strategy did not perform an initial deposit during construction, allowing an attacker to inflate the share value.
Seen in 1 report
-
The strategy did not verify that shares received matched the amount requested, and deallocation assumed it held the needed shares without handling a shortfall.
-
The strategy did not verify the freshness of the pool's debt reporting before depositing or withdrawing.
Seen in 1 report
-
The strategy hardcoded the pool address as an immutable instead of resolving it dynamically.
Seen in 1 report
-
The strategy priced its position using a manipulable spot simulation and cached the result.
-
The strategy read the pool's stored slot0 tick instead of converting the precise square-root price into a tick, so boundary prices gave a shifted range.
-
The strategy relied on a manipulable Curve spot price instead of a manipulation-resistant oracle.
-
The strategy reported a loss based only on the reduced BOLD balance while ignoring unprocessed collateral gains, so the share price temporarily dropped below its true value.
-
The strategy returned the requested amount instead of the amount actually deposited after rounding, inflating the vault's cap counter by the dust.
Seen in 1 report
-
The strategy used a withdrawal request that could burn unlimited BPT for a fixed token amount, with no slippage protection.
-
The strategy used the number of role holders for quorum supply but raw quantity for approval counting, creating a unit mismatch.
-
The stream creation function lacked a check that the stop time is after the current block timestamp.
Seen in 1 report
-
The streaming path did not enforce that a block executes only after all its parent blocks, so the sequencer's original order was lost.
Seen in 1 report
-
The subdomain name was not trimmed or normalised before the uniqueness check, so a trailing space made it look different.
Seen in 1 report
-
The subgroup-check function referenced the public-key deserialisation gas constant instead of the subgroup-check constant.
Seen in 1 report
-
The subnode-creation check only looked at the registry owner and the subnode's fuses, so an expired subnode whose registry owner was the wrapper and whose wrapper owner was zero was not treated as unregistered.
Seen in 1 report
-
The subprotocol name was set immutably in the constructor rather than being assignable after deployment.
Seen in 1 report
-
The subscription check was applied only on the first attempt or not enforced on every request, so repeated interactions bypassed it.
Seen in 1 report
-
The subscription entitlement was checked only in the frontend while the backend served the resources without checking the plan.
-
The subscription status was trusted from a client-side response value the user could edit.
Seen in 1 report
-
The success flag of an external call through a proxy was discarded.
Seen in 1 report
-
The successful-state check used a strict less-than comparison, so both success and failure checks passed at the boundary.
-
The sufficiency check on bad debt ran before settlement, and the debt was not re-checked after settlement reduced it.
Seen in 1 report
-
The supplier reward update functions were commented out, leaving only borrower distributions active.
Seen in 1 report
-
The supply checker assumed a transaction was settled as soon as it was added to the outbound tracker.