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 minimum debt check uses an either/or condition that skips the dust check once the loan count reaches ten.
Seen in 1 report
-
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
-
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.
-
The minimum fill amount excludes the fee while the fill amount it is compared against includes the fee, so the comparison is inconsistent.
-
The minimum lock check compares rounded-down week values instead of the actual unlock time.
Seen in 1 report
-
The minimum margin is enforced on opening but not on decreasing, so a position can be left below the minimum.
Seen in 1 report
-
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
-
The minimum output formula multiplies the amount by the price instead of dividing by it.
Seen in 1 report
-
The minimum output is derived from an on-chain quote taken in the same transaction as the swap.
Seen in 1 report
-
The minimum output is taken from the current pool rate, so the slippage check is always satisfied.
-
The minimum output was computed inside the swap transaction from current pool state, so it reflected an already-manipulated price.
Seen in 1 report
-
The minimum payment is derived from time since the last repayment rather than from the scheduled next due date.
Seen in 1 report
-
The minimum period check used the creation timestamp of the user-supplied last proposal without verifying eligibility.
Seen in 1 report
-
The minimum purchase check uses the original price rather than the discounted price, so discounted purchases can round to zero.
Seen in 1 report
-
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
-
The minimum quote value check compares the remaining amount to the requested close amount, so it is skipped on a full close request.
-
The minimum received amount was set equal to the computed amount, giving zero slippage tolerance.
Seen in 1 report
-
The minimum received amount was set to the full amount without subtracting the dust removed during decimal conversion.
-
The minimum redeem amount check runs before the fee is deducted, so the final transfer can fall below the minimum.
Seen in 1 report
-
The minimum reserve check was applied only in the manager withdrawal hook, not the ordinary withdraw function.
Seen in 1 report
-
The minimum reversible delay is shorter than the maximum accepted timestamp drift, and the scheduler runs before cancellation extrinsics.
-
The minimum reward rate was validated against the gross amount before fees and never re-checked against the net.
Seen in 1 report
-
The minimum was lowered to the smaller of the configured minimum and available lots.
Seen in 1 report
-
The minimum withdrawal check sits inside a block that only runs when the calculated amount is above zero.
-
The minimum-one-trove rule is enforced per asset, so one asset with a single trove blocks a global redemption.
Seen in 1 report
-
The minimum-output parameter is not checked against the final token balance on every pool branch.
Seen in 1 report
-
The minimum-shares-out parameter is hard-coded to zero, leaving the deposit without slippage protection.
Seen in 1 report
-
The minizip coherency check never compared the encryption bit between the Local File Header and the Central Directory.
Seen in 1 report
-
The mint amount was derived from the perpetual market quote instead of a spot oracle.
Seen in 1 report
-
The mint and lend functions lack a check that the current time is before maturity.
Seen in 1 report
-
The mint calculation assumes a fixed one-to-one stablecoin price and never consults a price oracle.
Seen in 1 report
-
The mint computed deposits as balance minus reserve while the reserve already excluded accrued fees.
-
The mint flow called permit inside the same transaction that needed it, exposing the signature to front-running.
Seen in 1 report
-
The mint forwards the full value to the fee manager instead of only the required fee.
Seen in 1 report
-
The mint function accepted a recipient different from the sender, letting anyone update another user's cooldown.
-
The mint function accepts an arbitrary user-supplied token URI without validation.
Seen in 1 report
-
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
-
The mint function did not ensure the CID NFT ID in the add list matched the newly minted ID.
Seen in 1 report
-
Medium
-
-
The mint function did not validate that the provided increases were reasonable relative to the pool's state.
Seen in 1 report
-
The mint function did not verify the caller transferred the required assets, relying on a prior transfer and a balance check.
-
The mint function does not automatically refund excess ETH sent by the borrower, leaving it in the contract where anyone can claim it.
-
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
-
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
-
The mint function does not clear token approvals for sacrificed tokens, leaving the previous owner's approval intact.
Seen in 1 report
-
The mint function does not convert the external principal token's decimals to match the underlying before minting.
Seen in 1 report
-
The mint function does not exclude Illuminate principal tokens from being used as the input principal token.
Seen in 1 report
-
The mint function does not prevent the principal token from being the same as the Illuminate principal token.
-
The mint function does not verify that the external principal token's protocol is not paused or in emergency mode.
Seen in 1 report
-
The mint function does not verify that the principal token address returned by the marketplace is non-zero.
-
The mint function had no user-specified minimum LP tokens, so a frontrunner could shrink the minted amount.
Seen in 1 report