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 due date calculation adds an extra payment cycle when the last repayment timestamp falls on a later day than the accepted timestamp or after a full cycle.
Seen in 1 report
-
The due date calculation and the liquidation check use different time bases or formulas.
Seen in 1 report
-
The duplicate check relies on a hash of the whole message, including fields that may change over time.
Seen in 1 report
-
The duplicate check uses a condition that is false when the collateral is the first element.
Seen in 1 report
-
The duplicate-email check compared the raw submitted string, so a trailing space made an existing address look new.
Seen in 1 report
-
The duration check compares the new expiration to the old expiration instead of the current timestamp, so it never exceeds the maximum.
Seen in 1 report
-
The duration-update routine does not reset stored capacity when moving from an infinite bucket back to a finite one.
Seen in 1 report
-
The dust limit formula omitted the one-byte scriptPubKey length prefix, undercounting output size.
-
The earlier fix blocked only certain FILE URL patterns and missed alternative formats that resolve to SMB paths.
-
The early return for zero rewards happens before any validation or refund of the attached value.
Seen in 1 report
-
The early return in addFee skipped the fee accounting updates when the reward token supply exceeded the maximum.
Seen in 1 report
-
The early return when total supply is zero still advances the last update timestamp, and the caller passes the post-burn supply.
Seen in 1 report
-
The early-execution path calls an internal helper that does not set the executed flag.
Seen in 1 report
-
The earmark call inside redeem runs first and absorbs prefunded cover into the reference balance before the delta is computed.
-
The earmark call returns early in the same block as repay, leaving a stale reference balance so cover is counted twice.
-
The earmark function advances the last transmuter balance to the full current balance instead of only the portion actually consumed.
-
The earmark function saturates the cover subtraction at zero without persisting the surplus for later calls.
-
The earmark logic subtracts the rise in the transmuter balance as cover without accounting for the repayment that already reduced the global earmarked counter.
-
The earmark routine cancels valid signals when the graph query is at or below the cover amount, yet the claim still deletes the position.
Seen in 1 report
-
The earmark runs before the cover calculation and updates the last balance, so the delta and cover are always zero.
Seen in 1 report
-
The edit action does not re-check the poll's allow-anyone-to-add-options setting.
Seen in 1 report
-
The edit guard only checks that the last check-out time has passed, not that all rentals are finalised or that no payments are pending.
-
The eject function transfers the whole target asset balance instead of only the amount returned by the combine operation.
Seen in 1 report
-
The EL derived build path skips invalid sequencer transactions with a mempool-style policy while the proof path executes the list strictly.
Seen in 1 report
-
The eligibility check compared the stored streak rather than the value computed from missed days.
Seen in 1 report
-
The eligibility check read the stored streak before it was updated, creating a one-spin lag against the freshly computed streak.
-
The eligibility check reads a stale status because the refresh that updates eligibility runs after the check instead of before it.
Seen in 1 report
-
The eligible token amount was calculated from the current total pool deposits, which change within an epoch, so early exercisers take more than their share.
Seen in 1 report
-
The eligible total supply is recomputed from live balances on each batch call instead of a snapshot taken when distribution began.
-
The else branch handles both the case where no time has passed and the case where the full decay time has passed.
Seen in 1 report
-
The else branch of a conditional was not updated to use the correct variables for the second asset.
Seen in 1 report
-
The else branch of the collateral sale logic lacked a sell path check unlike the if branch.
Seen in 1 report
-
The EMA return values were destructured in the wrong order, swapping fast and slow and omitting the eons EMA.
-
The email address is updated immediately without a confirmation link to the new address or re-authentication.
-
The email change feature lacked the verification step enforced during signup.
Seen in 1 report
-
The email confirmation endpoint lacked rate limiting on the confirmation code.
Seen in 1 report
-
The email domain blacklist check used a case-sensitive comparison without normalising the domain to lowercase.
-
The email domain restriction is enforced only on the client side.
Seen in 1 report
-
The email domain restriction was enforced only in the browser, and student roles were assigned before verification.
Seen in 1 report
-
The email field was only checked for the presence of an at sign and a dot, without rejecting other special or control characters.
Seen in 1 report
-
The email field was used only for pre-reset validation and was not bound to the reset token during the actual reset step.
Seen in 1 report
-
The email parameter was not type-checked, so an array was processed as multiple recipients while the quota counted one invite.
Seen in 1 report
-
The email reply-to-comment feature did not check whether the sender's account was still active or allowed to access the project.
-
The email restriction was implemented only in the traditional signup handler, not the OAuth account-creation path.
Seen in 1 report
-
The email update endpoint wrote the new address to the database without any verification step or confirmation flow.
-
The email validation logic does not normalise the parameter, so double encoding bypasses checks.
Seen in 1 report
-
The email validation only checked that the allowed domain appeared somewhere in the string rather than matching the exact domain.
-
The email verification endpoint did not enforce rate limiting or throttling on repeated requests.
Seen in 1 report
-
The email was stored in a fixed-length column without length validation, so the database truncated it and the domain check ran on the truncated string.
Seen in 1 report
-
The email-based merge request path did not apply the same push rule validation as regular pushes.
Seen in 1 report