Skip to content

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.

Back to the lesson 5,651 to 5,700 of 5,700
  1. Validity was inferred from a non-zero price rather than tracked explicitly, so expired versions backfilled with the previous price looked valid.

    Seen in 1 report
  2. Vault and slasher contracts store a fixed epoch duration that is not updated when the epoch manager's duration changes.

    Seen in 1 report
  3. Vault asset calculation checks for an oracle version that may not exist because products can skip versions.

    Seen in 1 report
  4. Vaults relied on a deprecated oracle that could become unreliable as liquidity moved, causing settlement to fail on deviation checks.

    Seen in 1 report
  5. Venue tokens are only burned inside the promoter payment path, with no standalone redemption function.

    Seen in 1 report
  6. Verification only checked the email domain suffix, not the institution or student status.

    Seen in 1 report
  7. Verification only checks the transaction's recipient address instead of the event logs emitted by the deposit function.

    Seen in 1 report
  8. Verification tokens were not checked for context such as content redistribution, filename collisions or redirects.

    Seen in 1 report
  9. Version segments are converted with bitwise double negation, which truncates multi-digit numbers and does not validate malformed input.

    Seen in 1 report
  10. Virtual inventory was updated unconditionally while the price impact calculation skipped it under some conditions.

    Seen in 1 report
  11. Volatility uses combined bull and bear utilisation while their premiums differ.

    Seen in 1 report
  12. Vote counting used the current token balance rather than a previous block's balance or a capped weight.

    Seen in 1 report
  13. Votes are locked for the lifetime of an active proposal with no time-based expiry, so a failed proposal can trap votes permanently.

    Seen in 1 report
  14. Votes are tracked by a client-controlled cookie identifier rather than authenticated sessions, with no rate limit.

    Seen in 1 report
  15. Votes from shadowbanned accounts were still displayed, so the manipulation detection could be triggered to remove a post.

    Seen in 1 report
  16. Voting overwrites the voted flag in the last checkpoint instead of creating a new checkpoint.

    Seen in 1 report
  17. Voting power is calculated from the current timestamp instead of a past block, allowing repeated voting after delegation.

    Seen in 1 report
  18. Voting power is read at a single historical block instead of averaged over time.

    Seen in 1 report
  19. Voting power is recalculated at unstake time from changeable parameters instead of being stored at stake time.

    Seen in 1 report
  20. Voting power is taken at vote acceptance time instead of at proposal creation time.

    Seen in 1 report
  21. Voting power is tracked per deposited NFT without preventing the same NFT from being redeposited elsewhere.

    Seen in 1 report
  22. Voting power was based on current staked balance rather than a snapshot, so tokens could be re-staked under another account to vote again.

    Seen in 1 report
  23. 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
  24. 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.

    Seen in 1 report
  25. Wallet sharing lacked a confirmation step and notifications for the recipient, and had no rate limiting on phone lookups.

    Seen in 1 report
  26. Weekly limits and privacy restrictions were enforced only in the standard web interface and not in the responsive version.

    Seen in 1 report
  27. Weight validation only compared array lengths and never required at least one token.

    Seen in 1 report
  28. Weight was stored per member rather than per member and synth.

    Seen in 1 report
  29. 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
  30. When no terminator is found the code uses the input length instead of the end of the range.

    Seen in 1 report
  31. The whitelist function does not check whether the address is already listed.

    Seen in 1 report
  32. Winning tickets are not removed or marked used, so they stay eligible for later draws.

    Seen in 1 report
  33. Withdraw and redeem do not revert when actual assets are less than requested, violating the standard.

    Seen in 1 report
  34. Withdraw and reset voting do not mirror the accounting and checkpoint calls that deposit performs.

    Seen in 1 report
  35. Withdraw hardcodes the payout recipient to the caller and requires the native transfer to succeed, with no alternative path.

    Seen in 1 report
  36. Withdrawable assets are clamped to the previously recorded supply-to-assets value.

    Seen in 1 report
  37. Withdrawal confirmation pays the amount stored at queue time rather than recalculating at the current exchange rate.

    Seen in 1 report
  38. Withdrawal logic assumed the contract balance equalled the sum of original contributions.

    Seen in 1 report
  39. Withdrawal requests lock in a share amount at request time but settlement uses the current, higher exchange rate, creating a mismatch.

    Seen in 1 report
  40. Withdrawal time is calculated using the delay at draft creation, and new drafts are blocked until all existing drafts pass.

    Seen in 1 report
  41. Withdrawing a contribution refunded without updating the proposal totals.

    Seen in 1 report
  42. Withdrawing tokens without reducing internal supply accounting makes later mint calculations assume more tokens exist than the contract holds.

    Seen in 1 report
  43. The liquidity withdrawal function does not check whether the pool price has been manipulated.

    Seen in 1 report
  44. Wrapped status is inferred from the registry owner equalling the contract address, which can be spoofed.

    Seen in 1 report
  45. The wrapper assumes every ERC-4626 vault allows instant withdrawals.

    Seen in 1 report
  46. Yang balances are updated before a continue statement but the new yang totals are not, leaving debt cleared with collateral intact.

    Seen in 1 report
  47. Yield is split by current balance at distribution time without considering holding duration.

    Seen in 1 report
  48. Zero average assets is treated as zero utilisation, giving the lowest possible rate instead of the maximum.

    Seen in 1 report
  49. Zero consensus losses were replaced with epsilon only in the distance calculation, not in the norm.

    Seen in 1 report
  50. Zeroing the tracked LP balance on bankruptcy happens before accrued rewards can be claimed.

    Seen in 1 report