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,751 to 3,800 of 5,700
  1. The minimum debt check uses an either/or condition that skips the dust check once the loan count reaches ten.

    Seen in 1 report
  2. The minimum deposit formula returns a fixed token amount for any token with fewer than 18 decimals without considering the token's actual value.

    Seen in 1 report
  3. The minimum execution window is only checked against zero, with no floor tied to keeper latency or the settlement window, so a trader can set a deadline that expires before any keeper can fill it.

    Seen in 1 report
  4. The minimum fill amount excludes the fee while the fill amount it is compared against includes the fee, so the comparison is inconsistent.

    Seen in 1 report
  5. The minimum lock check compares rounded-down week values instead of the actual unlock time.

    Seen in 1 report
  6. The minimum margin is enforced on opening but not on decreasing, so a position can be left below the minimum.

    Seen in 1 report
  7. The minimum order size was checked both at stop-limit creation and again at bracket creation without accounting for price changes between them.

    Seen in 1 report
  8. The minimum output formula multiplies the amount by the price instead of dividing by it.

    Seen in 1 report
  9. The minimum output is derived from an on-chain quote taken in the same transaction as the swap.

    Seen in 1 report
  10. The minimum output is taken from the current pool rate, so the slippage check is always satisfied.

    Seen in 1 report
  11. The minimum output was computed inside the swap transaction from current pool state, so it reflected an already-manipulated price.

    Seen in 1 report
  12. The minimum payment is derived from time since the last repayment rather than from the scheduled next due date.

    Seen in 1 report
  13. The minimum period check used the creation timestamp of the user-supplied last proposal without verifying eligibility.

    Seen in 1 report
  14. The minimum purchase check uses the original price rather than the discounted price, so discounted purchases can round to zero.

    Seen in 1 report
  15. The minimum purchase range check used a not-equal comparison against the single listing type, so it applied to single listings instead of partial ones.

    Seen in 1 report
  16. The minimum quote value check compares the remaining amount to the requested close amount, so it is skipped on a full close request.

    Seen in 1 report
  17. The minimum received amount was set equal to the computed amount, giving zero slippage tolerance.

    Seen in 1 report
  18. The minimum received amount was set to the full amount without subtracting the dust removed during decimal conversion.

    Seen in 1 report
  19. The minimum redeem amount check runs before the fee is deducted, so the final transfer can fall below the minimum.

    Seen in 1 report
  20. The minimum reserve check was applied only in the manager withdrawal hook, not the ordinary withdraw function.

    Seen in 1 report
  21. The minimum reversible delay is shorter than the maximum accepted timestamp drift, and the scheduler runs before cancellation extrinsics.

    Seen in 1 report
  22. The minimum reward rate was validated against the gross amount before fees and never re-checked against the net.

    Seen in 1 report
  23. The minimum was lowered to the smaller of the configured minimum and available lots.

    Seen in 1 report
  24. The minimum withdrawal check sits inside a block that only runs when the calculated amount is above zero.

    Seen in 1 report
  25. The minimum-one-trove rule is enforced per asset, so one asset with a single trove blocks a global redemption.

    Seen in 1 report
  26. The minimum-output parameter is not checked against the final token balance on every pool branch.

    Seen in 1 report
  27. The minimum-shares-out parameter is hard-coded to zero, leaving the deposit without slippage protection.

    Seen in 1 report
  28. The minizip coherency check never compared the encryption bit between the Local File Header and the Central Directory.

    Seen in 1 report
  29. The mint amount was derived from the perpetual market quote instead of a spot oracle.

    Seen in 1 report
  30. The mint and lend functions lack a check that the current time is before maturity.

    Seen in 1 report
  31. The mint calculation assumes a fixed one-to-one stablecoin price and never consults a price oracle.

    Seen in 1 report
  32. The mint computed deposits as balance minus reserve while the reserve already excluded accrued fees.

    Seen in 1 report
  33. The mint flow called permit inside the same transaction that needed it, exposing the signature to front-running.

    Seen in 1 report
  34. The mint forwards the full value to the fee manager instead of only the required fee.

    Seen in 1 report
  35. The mint function accepted a recipient different from the sender, letting anyone update another user's cooldown.

    Seen in 1 report
  36. The mint function accepts an arbitrary user-supplied token URI without validation.

    Seen in 1 report
  37. The mint function did not enforce that add calls used the token ID just minted, so any approved token ID could be used.

    Seen in 1 report
  38. The mint function did not ensure the CID NFT ID in the add list matched the newly minted ID.

    Seen in 1 report
  39. The mint function did not validate that the provided increases were reasonable relative to the pool's state.

    Seen in 1 report
  40. The mint function did not verify the caller transferred the required assets, relying on a prior transfer and a balance check.

    Seen in 1 report
  41. The mint function does not automatically refund excess ETH sent by the borrower, leaving it in the contract where anyone can claim it.

    Seen in 1 report
  42. The mint function does not call the liquidity position update routine before increasing liquidity, unlike other functions such as burn and transferLiquidity.

    Seen in 1 report
  43. The mint function does not call the valid-recipient check that transfer and transferFrom use to block the token contract as a recipient.

    Seen in 1 report
  44. The mint function does not clear token approvals for sacrificed tokens, leaving the previous owner's approval intact.

    Seen in 1 report
  45. The mint function does not convert the external principal token's decimals to match the underlying before minting.

    Seen in 1 report
  46. The mint function does not exclude Illuminate principal tokens from being used as the input principal token.

    Seen in 1 report
  47. The mint function does not prevent the principal token from being the same as the Illuminate principal token.

    Seen in 1 report
  48. The mint function does not verify that the external principal token's protocol is not paused or in emergency mode.

    Seen in 1 report
  49. The mint function does not verify that the principal token address returned by the marketplace is non-zero.

    Seen in 1 report
  50. The mint function had no user-specified minimum LP tokens, so a frontrunner could shrink the minted amount.

    Seen in 1 report