Coding task · Blockchain and Web3 course · Module 12: Security & Audit

Practice: Safe Math

Solidity 0.8.x has built-in overflow protection, but you can use unchecked for optimization where it's safe.

Task

Fix the code using safe math operations