@rosarioborgesi
📌Avoid subtraction in checks.
Solidity ≥ 0.8 auto-reverts on underflow / overflow.
That means your code can revert before your require / custom error runs.
Safer pattern:
• Avoid subtraction in checks.
• Compare using addition instead.