Skip to content

In-depth lesson · Business logic

Typical fixes

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 251 to 300 of 427
  1. Enforce the retailer limit and entitlement server-side rather than trusting client state.

    Seen in 1 report
  2. Enforce the sample-order limit server-side and do not expose original premium image URLs in resizing responses.

    Seen in 1 report
  3. Enforce the subscription check on every request, not only the first attempt.

    Seen in 1 report
  4. Enforce the subscription plan on the backend when serving transcription and caption resources.

    Seen in 1 report
  5. Enforce the subscription tier in the GraphQL mutation, not only in the interface.

    Seen in 1 report
  6. Enforce the verified state server-side rather than trusting boolean flags returned to the client.

    Seen in 1 report
  7. Enforce upload size and count limits independently on the backend rather than trusting client-supplied configuration.

    Seen in 1 report
  8. Ensure the non-final claim cap leaves the vested unpaid amount zero or at least the minimum payout.

    Seen in 1 report
  9. Ensure the user-supplied increase value is consistent with the collateral transferred in.

    Seen in 1 report
  10. Escape or sanitise user-supplied name fields before inserting them into email templates.

    Seen in 1 report
  11. Exempt withdrawals signed by the vault fee wallet and program fee wallet from withdrawal fees.

    Seen in 1 report
  12. Expire preview tokens and invalidate them on uninstall, and reject invisible characters in names.

    Seen in 1 report
  13. Fail resolution when a name has no address record instead of falling back to the registry owner.

    Seen in 1 report
  14. Fix the duplicate check so it works for the first collateral token.

    Seen in 1 report
  15. Force an update of price and reserve averages in the same transaction.

    Seen in 1 report
  16. Generate nonces from a cryptographic source and delete them only after successful validation.

    Seen in 1 report
  17. Guard state transitions so the epoch process cannot restart after moving to group processing.

    Seen in 1 report
  18. Handle the case where the DEX handler returns LP tokens instead of underlying assets.

    Seen in 1 report
  19. Handle the case where the pool already exists.

    Seen in 1 report
  20. Handle the native currency zero address separately from ERC20 balance checks.

    Seen in 1 report
  21. Handle the not-yet-wrapped case when calculating the first sample index.

    Seen in 1 report
  22. Hash the ENSIP-15-normalised UTF-8 name rather than the punycode form when displaying the namehash.

    Seen in 1 report
  23. Identify pending edits by the numeric coin type rather than the display symbol.

    Seen in 1 report
  24. Include a rules version or hash in the signed customer payload.

    Seen in 1 report
  25. Include pending orders with fixed fill prices in the settlement NAV, or make settlement and execution ordering irrelevant.

    Seen in 1 report
  26. Include the funded negative-VPI clawback reserve as a receivable when pricing LP entry.

    Seen in 1 report
  27. Include the incident timestamp in the Merkle proof verification.

    Seen in 1 report
  28. Include the live V1 resolver and owner state in the migration plan cache key and re-read it before submitting.

    Seen in 1 report
  29. Include the ordered execution option in cross-chain withdrawal messages.

    Seen in 1 report
  30. Include the pending open's committed margin in the liquidation health test.

    Seen in 1 report
  31. Include the size constraint in the signed URL explicitly rather than relying on the SDK presigner.

    Seen in 1 report
  32. Include the tip field in the high-security policy check.

    Seen in 1 report
  33. Initialize the last reward timestamp before calculating rewards.

    Seen in 1 report
  34. Invalidate existing sessions when the password changes.

    Seen in 1 report
  35. Invalidate invitation links after use and after an admin revokes the user.

    Seen in 1 report
  36. Invalidate the session server-side on logout and send no-cache headers for authenticated pages.

    Seen in 1 report
  37. Key completion evidence by the specific account, registry, role change, wallet and chain rather than a constant operation ID.

    Seen in 1 report
  38. Key the rate limit on the requesting account as well as the address.

    Seen in 1 report
  39. Key the registration state machine to the selected name and cancel it when the selection changes.

    Seen in 1 report
  40. Let the caller specify a minimum output amount on deposit.

    Seen in 1 report
  41. Lock and validate the pairing of payment reference and invoice number across concurrent transactions.

    Seen in 1 report
  42. Mark a verification code as consumed after a successful password change.

    Seen in 1 report
  43. Mark the execute function payable and forward ETH from the Timelock.

    Seen in 1 report
  44. Match the contract's interface definitions to the actual DEX gauge and router interfaces.

    Seen in 1 report
  45. Migrate the accepted per-feed timestamp floor when rotating the oracle.

    Seen in 1 report
  46. Multiply by the index's share instead of dividing when calculating the deduction.

    Seen in 1 report
  47. Net off the marked receivable when recording seized cash as claimant revenue.

    Seen in 1 report
  48. Net trader payouts against the pending revenue bucket before reserving it at reconciliation.

    Seen in 1 report
  49. Normalise coupon codes consistently before both validation and duplicate detection.

    Seen in 1 report