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 mint function lacked an end-time check and the signed hash had no deadline.
Seen in 1 report
-
The mint function lacked validation that the base parameter is one of the accepted base tokens.
Seen in 1 report
-
The mint function lacks a minimum bound on the initial state.y.
-
The mint function lacks the same-block guard that burn has, so debt can be temporarily reduced around a redemption.
Seen in 1 report
-
The mint function rejected any receiver with a pending withdrawal request, blocking the top-up path.
Seen in 1 report
-
The mint function sets the token URI unconditionally with no check that the token id is new.
-
The mint function trusts a user-supplied source address instead of the caller's address.
Seen in 1 report
-
The mint function uses the caller's address as owner instead of the supplied owner parameter.
Seen in 1 report
-
The mint limit is decreased on mint but not increased on burn.
Seen in 1 report
-
The mint loop recalculates the price per NFT without letting the caller bound the total cost.
Seen in 1 report
-
The mint loop uses the total token count instead of the per-generation mint count.
Seen in 1 report
-
The mint operation did not enforce that the vault balance and reward accounting were updated before new shares were issued.
Seen in 1 report
-
The mint pass is not tied to the fighter properties, so the redeemer chooses type and DNA.
-
The mint path credits the full base-unit amount while the leaf hash truncates by a scale factor, and the derived miner account cannot sign a direct transfer.
-
The mint path does not require at least one property to be configured before a token can be created.
Seen in 1 report
-
The mint-from-merging-pool function does not validate custom attributes before creating the fighter.
Seen in 1 report
-
The minting functions did not check that the amount to mint was greater than zero, allowing a zero-mint operation when supply was zero.
-
The minting logic verifies the Merkle proof but does not validate that the player's generation ID and season ID match the current season.
Seen in 1 report
-
The minting pool ratio can be set lower than the top-up ratio, allowing discounted top-ups to be triggered at will.
-
The missing validation of the signed amount_collateral parameter allowed a negative value to pass the balance check and invert the balance update.
Seen in 1 report
-
The missing-vote count is cached at creation and never recalculated on extension or reward increase.
Seen in 1 report
-
The mitigation set a minimum length of two and kept an exclusive upper bound, making the valid range two to nineteen.
-
The mobile app and web interfaces did not isolate settings, so changing one overwrote another.
-
The mobile app did not check the device block status on the server, so existing sessions were not invalidated.
Seen in 1 report
-
The mobile version of the verification endpoint did not enforce the same requirements as the main site.
Seen in 1 report
-
The mode switch checks borrowing for the new mode but not repayment, so a position can move into a mode where liquidation is paused.
Seen in 1 report
-
The modified safe transfer library omitted the check that the token address contains code, so calls to a non-existent token returned success.
Seen in 1 report
-
The modifier relied on tx.origin instead of tracking individual user addresses.
Seen in 1 report
-
The modifier variable is declared as a small integer, limiting the random seed to 256 values.
Seen in 1 report
-
The move and recover functions do not check that the recipient is not the contract itself, and the receive function mints for any ETH received.
Seen in 1 report
-
The multi-invoker fails to adjust the pending position before invalidating the latest position.
-
The multi-round deposit function does not validate that each deposit amount is greater than zero.
Seen in 1 report
-
The multibuy method lacked the drawing-phase check that the buy method had.
Seen in 1 report
-
The multicall path measures the contract's own token balance instead of total supply, so the cap check compares against zero.
Seen in 1 report
-
The multiplier for the new lock duration did not account for time already elapsed, so short extensions lowered the share amount.
-
The multiplier storage variable was never initialised to a non-zero neutral value, so the above-kink branch always yielded zero.
Seen in 1 report
-
The name field had no maximum length and the member management page did not handle very long names gracefully.
Seen in 1 report
-
The name length was only checked in the browser, not on the server.
Seen in 1 report
-
The name validation used a blocklist of invisible characters that missed one separator.
Seen in 1 report
-
The names hook forwarded parameters to the library unchanged, so the default relation set included resolvedAddress, which is not an ownership relation.
-
The names query was called without a filter override, so its default set included names that merely resolve to the address, and every returned row was mapped as owned.
-
The native fee override returned the input fee instead of the full message value, so extra native tokens were not accounted for.
Seen in 1 report
-
The native value was read inside a loop, so the same amount was forwarded on every iteration.
Seen in 1 report
-
The native wrapper's gas charge was not updated when the underlying function was changed to perform additional storage reads.
Seen in 1 report
-
The NAV snapshot is built from physical assets plus a price-only delta and omits the aggregate non-withdrawable VPI rebate reserve, which is a certain receivable.
-
The navigation handler erased only one tracking map entry and did not cancel pending lookups or reset stored history URL and visit time on a 404 commit.
Seen in 1 report
-
The negative remaining margin check sits inside the fully-closed branch, so it is skipped when any position remains.
-
The neutral price is derived from the current average loan debt, which a single large loan can move.
Seen in 1 report
-
The new account transfer function did not check whether the source account was in a flash loan.
Seen in 1 report
-
The new average price adds weighted prices instead of dividing total position value by total base amount.
Seen in 1 report