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.
-
Validity was inferred from a non-zero price rather than tracked explicitly, so expired versions backfilled with the previous price looked valid.
-
Vault and slasher contracts store a fixed epoch duration that is not updated when the epoch manager's duration changes.
Seen in 1 report
-
Vault asset calculation checks for an oracle version that may not exist because products can skip versions.
Seen in 1 report
-
Vaults relied on a deprecated oracle that could become unreliable as liquidity moved, causing settlement to fail on deviation checks.
Seen in 1 report
-
Venue tokens are only burned inside the promoter payment path, with no standalone redemption function.
-
Verification only checked the email domain suffix, not the institution or student status.
-
Verification only checks the transaction's recipient address instead of the event logs emitted by the deposit function.
Seen in 1 report
-
Verification tokens were not checked for context such as content redistribution, filename collisions or redirects.
Seen in 1 report
-
Version segments are converted with bitwise double negation, which truncates multi-digit numbers and does not validate malformed input.
-
Virtual inventory was updated unconditionally while the price impact calculation skipped it under some conditions.
Seen in 1 report
-
Volatility uses combined bull and bear utilisation while their premiums differ.
-
Vote counting used the current token balance rather than a previous block's balance or a capped weight.
Seen in 1 report
-
Votes are locked for the lifetime of an active proposal with no time-based expiry, so a failed proposal can trap votes permanently.
-
Votes are tracked by a client-controlled cookie identifier rather than authenticated sessions, with no rate limit.
Seen in 1 report
-
Votes from shadowbanned accounts were still displayed, so the manipulation detection could be triggered to remove a post.
Seen in 1 report
-
Voting overwrites the voted flag in the last checkpoint instead of creating a new checkpoint.
-
Voting power is calculated from the current timestamp instead of a past block, allowing repeated voting after delegation.
-
Voting power is read at a single historical block instead of averaged over time.
Seen in 1 report
-
Voting power is recalculated at unstake time from changeable parameters instead of being stored at stake time.
-
Voting power is taken at vote acceptance time instead of at proposal creation time.
Seen in 1 report
-
Voting power is tracked per deposited NFT without preventing the same NFT from being redeposited elsewhere.
Seen in 1 report
-
Voting power was based on current staked balance rather than a snapshot, so tokens could be re-staked under another account to vote again.
-
Voting weight is read from a transferable staking balance rather than from a non-transferable lock, so unstaking and restaking under a new address duplicates voting power.
Seen in 1 report
-
Voting weight is stored at the time of the last vote and never recalculated as time passes, so decay only applies when the user votes again.
-
Wallet sharing lacked a confirmation step and notifications for the recipient, and had no rate limiting on phone lookups.
Seen in 1 report
-
Weekly limits and privacy restrictions were enforced only in the standard web interface and not in the responsive version.
Seen in 1 report
-
Weight validation only compared array lengths and never required at least one token.
Seen in 1 report
-
Weight was stored per member rather than per member and synth.
Seen in 1 report
-
When an observer was removed from the observer set, the voter lists of already-active ballots were not updated, so the threshold was still calculated against the original, larger voter set.
Seen in 1 report
-
When no terminator is found the code uses the input length instead of the end of the range.
Seen in 1 report
-
The whitelist function does not check whether the address is already listed.
Seen in 1 report
-
Winning tickets are not removed or marked used, so they stay eligible for later draws.
-
Withdraw and redeem do not revert when actual assets are less than requested, violating the standard.
Seen in 1 report
-
Withdraw and reset voting do not mirror the accounting and checkpoint calls that deposit performs.
Seen in 1 report
-
Withdraw hardcodes the payout recipient to the caller and requires the native transfer to succeed, with no alternative path.
-
Withdrawable assets are clamped to the previously recorded supply-to-assets value.
-
Withdrawal confirmation pays the amount stored at queue time rather than recalculating at the current exchange rate.
-
Withdrawal logic assumed the contract balance equalled the sum of original contributions.
-
Withdrawal requests lock in a share amount at request time but settlement uses the current, higher exchange rate, creating a mismatch.
-
Withdrawal time is calculated using the delay at draft creation, and new drafts are blocked until all existing drafts pass.
-
Withdrawing a contribution refunded without updating the proposal totals.
Seen in 1 report
-
Withdrawing tokens without reducing internal supply accounting makes later mint calculations assume more tokens exist than the contract holds.
Seen in 1 report
-
The liquidity withdrawal function does not check whether the pool price has been manipulated.
Seen in 1 report
-
Wrapped status is inferred from the registry owner equalling the contract address, which can be spoofed.
Seen in 1 report
-
The wrapper assumes every ERC-4626 vault allows instant withdrawals.
Seen in 1 report
-
Yang balances are updated before a continue statement but the new yang totals are not, leaving debt cleared with collateral intact.
-
Yield is split by current balance at distribution time without considering holding duration.
Seen in 1 report
-
Zero average assets is treated as zero utilisation, giving the lowest possible rate instead of the maximum.
-
Zero consensus losses were replaced with epsilon only in the distance calculation, not in the norm.
Seen in 1 report
-
Zeroing the tracked LP balance on bankruptcy happens before accrued rewards can be claimed.
Seen in 1 report