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,451 to 3,500 of 5,700
  1. The interest rate is recalculated on every borrow or repay, so frequent updates compound the effective rate more often than intended.

    Seen in 1 report
  2. The interest rate is stored at the pool level and can be updated by the lender at any time, while the borrower cannot specify a maximum acceptable rate.

    Seen in 1 report
  3. The interest rate model allows zero interest even at high utilisation, removing the incentive to repay.

    Seen in 1 report
  4. The interest realisation function unconditionally called the vault's borrow even when realised interest was zero, and that call was blocked while paused.

    Seen in 1 report
  5. The interest update check uses stale total asset and borrow values, so the calculated rate change often falls below the threshold and interest is skipped.

    Seen in 1 report
  6. The interface declares a function name that does not match the actual vesting contract's function.

    Seen in 1 report
  7. The interface does not mark buyPunk as payable and the call attaches no value, so the target's value check fails.

    Seen in 1 report
  8. The interface tracks the active voice separately from the identity used to submit the action, so they can diverge after certain interactions.

    Seen in 1 report
  9. The internal batch swap call omits forwarding the received ETH value, so ETH sent to the payable entry function is never passed on.

    Seen in 1 report
  10. The internal check uses less-than-or-equal instead of less-than when comparing the individual collateral ratio against the total collateral ratio.

    Seen in 1 report
  11. The internal locked-ETH counter is incremented by the requested amount rather than the actual stETH balance change, ignoring Lido's one or two wei rounding corner case.

    Seen in 1 report
  12. The internal message handler for initial account data does not verify the sender or the data before validators use it.

    Seen in 1 report
  13. The internal rate helper always reads the stored exchange rate and never checks the use-current parameter.

    Seen in 1 report
  14. The internal transfer function lacks the pause modifier that allocate and depositAndAllocate have.

    Seen in 1 report
  15. The internal withdraw path skipped the reserve deposit-allowed check that the deposit path enforced.

    Seen in 1 report
  16. The intersection check runs on the full sell and buy lists instead of only the constructed items.

    Seen in 1 report
  17. The interval start time was set to the current timestamp instead of advanced by whole intervals, discarding the remainder.

    Seen in 1 report
  18. The intervals setter updates two tuning parameters but omits the dependent tune-below-capacity value.

    Seen in 1 report
  19. The invariant and upper-bound design lets liquidity providers withdraw at will when the safe upper bound shifts, so timing rather than fairness decides who exits first.

    Seen in 1 report
  20. The invariant calculation summed raw token amounts without scaling by decimals, unlike the swap path.

    Seen in 1 report
  21. The invariant compares a rent-inclusive lamport balance against a rent-exclusive reserve figure without subtracting the rent-exemption amount.

    Seen in 1 report
  22. The invariant function multiplies after division, causing rounding errors that make the invariant check inaccurate.

    Seen in 1 report
  23. The investedAssets calculation does not deduct the performance fee that would be charged upon withdrawal.

    Seen in 1 report
  24. The invitation flow did not preserve the pending state across login, so signing in completed the join automatically.

    Seen in 1 report
  25. The invitation flow did not verify the sender's email address and did not enforce the intended length limit on the name field.

    Seen in 1 report
  26. The invitation flow reserves an email for the organisation without consent and the app enforces single-organisation membership with no way to leave.

    Seen in 1 report
  27. The invitation handler did not verify that the referenced project ID existed before storing the request.

    Seen in 1 report
  28. The invitation identifier was returned in the resend response and the signup endpoint accepted it without checking that the person completing signup was the invited user.

    Seen in 1 report
  29. The invitation limit is enforced only in the default UI and not in the underlying endpoint.

    Seen in 1 report
  30. The invitation link is built from a client-supplied host header instead of a fixed trusted hostname.

    Seen in 1 report
  31. The invitation link was not invalidated after its first use, so it stayed valid indefinitely.

    Seen in 1 report
  32. The invitation process reserved the email address immediately without checking consent or existing legitimate signups.

    Seen in 1 report
  33. The invitation token is not bound to the invited email address.

    Seen in 1 report
  34. The invitation token was base64-encoded user data with no integrity protection.

    Seen in 1 report
  35. The invitation token was not validated as a genuine token, so a user ID could be used instead.

    Seen in 1 report
  36. The invitation was not marked as used or deleted after acceptance, so the token stayed valid.

    Seen in 1 report
  37. The invitation workflow for an existing account left the account in a state where the forgot-password restriction was not applied.

    Seen in 1 report
  38. The invite endpoint lacked rate limiting and CAPTCHA, allowing automated repeated requests.

    Seen in 1 report
  39. The invite feature creates a user record for the invited email without requiring the invite to be accepted, and the signup flow treats that record as an existing account.

    Seen in 1 report
  40. The invite flow attached the invitee before acceptance without checking the plan was paid, and the seat limit trusted a client-supplied seat count.

    Seen in 1 report
  41. The invite flow compared email addresses case-sensitively instead of normalising them before checking for duplicates.

    Seen in 1 report
  42. The invite flow creates a user record for any unregistered email without checking whether that email belongs to an existing service account, and the predictable email format lets an outsider target it.

    Seen in 1 report
  43. The is_liquidation parameter was hardcoded to 1 in all calls to transfer_internal, including regular transfers, instead of being set based on the transfer type.

    Seen in 1 report
  44. The isIncrease flag was passed to the liquidatable check instead of false.

    Seen in 1 report
  45. The issuance handler called a rewards calculation that performs storage reads without first charging the storage-read gas.

    Seen in 1 report
  46. The issue creator is taken from the Reply-To header rather than the From header.

    Seen in 1 report
  47. The issue function did not clear the staked-at timestamp when minting an irrevocable token, unlike the revocable path.

    Seen in 1 report
  48. The issue function has no minimum output parameter.

    Seen in 1 report
  49. The issue function lacks access control and accepts an arbitrary recipient.

    Seen in 1 report