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 3,301 to 3,350 of 5,700
  1. The gas fee for Zeta token transactions uses the user-supplied gas limit without enforcing a minimum.

    Seen in 1 report
  2. The gas formula applies only the 63/64 rule without subtracting base costs for cold access and value transfer.

    Seen in 1 report
  3. The gas issuance multiplies the number of L1 blocks since the last sync by the per-block target, but the sync marker is only updated every few blocks.

    Seen in 1 report
  4. The gas payment function quotes from a pool and executes the swap without checking the quote against a slippage tolerance.

    Seen in 1 report
  5. The gas price was stored in memory before the vote to agree on it succeeded, so a failed vote left an unvalidated price in use.

    Seen in 1 report
  6. The gas refund withdrawal was included in the same atomic transaction block as the user callback, so a callback failure also rolled back the refund.

    Seen in 1 report
  7. The gas snapshot used to calculate the refund was taken before additional gas-consuming operations, so those costs were not deducted.

    Seen in 1 report
  8. The gas usage calculation did not account for the 1/64 gas reserved by EIP-150.

    Seen in 1 report
  9. The gate used a sum of squared distances from the median, which stays small when ticks are far apart on opposite sides.

    Seen in 1 report
  10. The gateway implemented a four-parameter outbound transfer while the router calls a six-parameter version.

    Seen in 1 report
  11. The gateway never stores or verifies a payment request id or amount against the order, and its signature check fails open.

    Seen in 1 report
  12. The gauge read the vault balance without forcing the lazy rebase to run, so the exchange rate used stale data.

    Seen in 1 report
  13. The gauge weight change updates bias and time weight but not the slope, so the global weight falls below the sum of individual weights.

    Seen in 1 report
  14. The generation increment and price calculation are ordered so the first NFT of a new generation is priced from the previous count.

    Seen in 1 report
  15. The generation increment function does not verify that the new generation does not exceed the maximum.

    Seen in 1 report
  16. The generation increment resets the per-generation mint counter instead of preserving entities already forged into it.

    Seen in 1 report
  17. The genesis validator list was only appended on first deposit and never updated on later stake changes.

    Seen in 1 report
  18. The geometry helper treats coordinates as abstract maths and does not check they are valid Earth positions.

    Seen in 1 report
  19. The getMintRate function is declared view and returns the oracle price without writing it to lastPrice and lastPriceTimestamp, so the stored price only changes through the separate updatePrice path.

    Seen in 1 report
  20. The getters used a total that included the contract's own base token balance while withdraw used only the strategy controller's value.

    Seen in 1 report
  21. The getVotes function called the internal balance calculation directly without checking the ownership-change mapping for the current block, unlike the token balance function.

    Seen in 1 report
  22. The getVotingPower function calculates voting power using the current balance and total supply without recording a checkpoint at a specific block number.

    Seen in 1 report
  23. The gift is delivered before or independently of validating that a payment source is attached.

    Seen in 1 report
  24. The global account is saved before the local account, so zero-address local data overwrites global data.

    Seen in 1 report
  25. The global all-winners-drawn check runs before individual winner validation, blocking every claim.

    Seen in 1 report
  26. The global cap is checked against a per-execution accumulator rather than a persistent cumulative total.

    Seen in 1 report
  27. The global collateral weight was updated by the admin setter while each account's stored last weight was not resynced.

    Seen in 1 report
  28. The global current position is loaded without adjustment after an invalid oracle version.

    Seen in 1 report
  29. The global last update timestamp is set to the current block time while each pool's last reward time is capped at the end time, so the two diverge.

    Seen in 1 report
  30. The global locked total was incremented with a yield-converted amount at each mint instead of being recomputed from the per-account value.

    Seen in 1 report
  31. The global settlement fee was subtracted in full for both deposits and redeems instead of being weighted by order proportion.

    Seen in 1 report
  32. The global total is reduced by the returned amount including the loss instead of the original deposit.

    Seen in 1 report
  33. The global withdrawable variable is only updated when funds are moved to parked state, while the per-user calculation includes unprocessed matured cooldowns.

    Seen in 1 report
  34. The globally undercollateralised branch returns a zero base fee, shifting the incentive to an exhaustible fee vault.

    Seen in 1 report
  35. The Gmail OAuth-only rule was enforced only in the frontend and the backend accepted any email with a password.

    Seen in 1 report
  36. The gossip handler passed sender-supplied appData into validation instead of re-deriving it from the transaction.

    Seen in 1 report
  37. The governor contract has no receive or payable function, so it cannot hold the native balance needed to send value with proposals.

    Seen in 1 report
  38. The grab function overwrote the stored original owner on each call.

    Seen in 1 report
  39. The GraphQL server did not enforce a limit on the number of mutations that could be batched in a single request.

    Seen in 1 report
  40. The GraphQL update mutation does not check the subscription tier, so the paid-plan restriction exists only in the user interface.

    Seen in 1 report
  41. The greedy founder minting loop stops at the first unassigned slot, so token ID modulo 100 alignment skews distribution.

    Seen in 1 report
  42. The gross premium update sits inside a conditional that only runs when leg premium is non-zero, so it is skipped when liquidity changes with zero premium.

    Seen in 1 report
  43. The guard overwrote its stored reference price and block before checking the velocity limit, giving each same-block swap a fresh full budget.

    Seen in 1 report
  44. The guard validated only the first and last tokens of a swap path, not the intermediate tokens.

    Seen in 1 report
  45. The guarded setter did not seek to the start of the file before reading, so it read an empty string and overwrote the whole file.

    Seen in 1 report
  46. The guardian index was written from an unauthenticated caller-supplied account with no consent, deposit or removal path, making a bounded per-address resource globally consumable.

    Seen in 1 report
  47. The guardian nomination accepts an arbitrary account without consent and writes to a bounded index with no removal path.

    Seen in 1 report
  48. The guest epilogue compared output roots but never checked that the reached block number equalled the claimed one, and the verifier bound proofs to a proposer-chosen L1 head.

    Seen in 1 report
  49. The handler checks a timestamp in unsigned account data instead of whether the receipt was already applied.

    Seen in 1 report
  50. The handler did not check that the new password differed from the existing one.

    Seen in 1 report