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 gas fee for Zeta token transactions uses the user-supplied gas limit without enforcing a minimum.
Seen in 1 report
-
The gas formula applies only the 63/64 rule without subtracting base costs for cold access and value transfer.
Seen in 1 report
-
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
-
The gas payment function quotes from a pool and executes the swap without checking the quote against a slippage tolerance.
-
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
-
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
-
The gas snapshot used to calculate the refund was taken before additional gas-consuming operations, so those costs were not deducted.
-
The gas usage calculation did not account for the 1/64 gas reserved by EIP-150.
Seen in 1 report
-
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
-
The gateway implemented a four-parameter outbound transfer while the router calls a six-parameter version.
-
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
-
The gauge read the vault balance without forcing the lazy rebase to run, so the exchange rate used stale data.
Seen in 1 report
-
The gauge weight change updates bias and time weight but not the slope, so the global weight falls below the sum of individual weights.
-
The generation increment and price calculation are ordered so the first NFT of a new generation is priced from the previous count.
-
The generation increment function does not verify that the new generation does not exceed the maximum.
Seen in 1 report
-
The generation increment resets the per-generation mint counter instead of preserving entities already forged into it.
Seen in 1 report
-
The genesis validator list was only appended on first deposit and never updated on later stake changes.
Seen in 1 report
-
The geometry helper treats coordinates as abstract maths and does not check they are valid Earth positions.
-
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
-
The getters used a total that included the contract's own base token balance while withdraw used only the strategy controller's value.
-
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
-
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
-
The gift is delivered before or independently of validating that a payment source is attached.
Seen in 1 report
-
The global account is saved before the local account, so zero-address local data overwrites global data.
Seen in 1 report
-
The global all-winners-drawn check runs before individual winner validation, blocking every claim.
-
The global cap is checked against a per-execution accumulator rather than a persistent cumulative total.
Seen in 1 report
-
The global collateral weight was updated by the admin setter while each account's stored last weight was not resynced.
Seen in 1 report
-
The global current position is loaded without adjustment after an invalid oracle version.
-
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.
-
The global locked total was incremented with a yield-converted amount at each mint instead of being recomputed from the per-account value.
-
The global settlement fee was subtracted in full for both deposits and redeems instead of being weighted by order proportion.
-
The global total is reduced by the returned amount including the loss instead of the original deposit.
-
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
-
The globally undercollateralised branch returns a zero base fee, shifting the incentive to an exhaustible fee vault.
-
The Gmail OAuth-only rule was enforced only in the frontend and the backend accepted any email with a password.
Seen in 1 report
-
The gossip handler passed sender-supplied appData into validation instead of re-deriving it from the transaction.
Seen in 1 report
-
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
-
The grab function overwrote the stored original owner on each call.
Seen in 1 report
-
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
-
The GraphQL update mutation does not check the subscription tier, so the paid-plan restriction exists only in the user interface.
-
The greedy founder minting loop stops at the first unassigned slot, so token ID modulo 100 alignment skews distribution.
Seen in 1 report
-
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
-
The guard overwrote its stored reference price and block before checking the velocity limit, giving each same-block swap a fresh full budget.
-
The guard validated only the first and last tokens of a swap path, not the intermediate tokens.
Seen in 1 report
-
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.
-
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.
-
The guardian nomination accepts an arbitrary account without consent and writes to a bounded index with no removal path.
-
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.
-
The handler checks a timestamp in unsigned account data instead of whether the receipt was already applied.
Seen in 1 report
-
The handler did not check that the new password differed from the existing one.
Seen in 1 report