Definition
What is Modifier?
A modifier is a reusable Solidity construct that wraps a function with pre- or post-conditions, such as checking that the caller is the owner before the body runs.
Modifiers keep permission and validation logic in one place. onlyOwner, nonReentrant, and whenNotPaused are the ones you see most.
Go deeper
Related terms
Definition by Adwait Keshari, founder of Monsmith.
See it in practice
Open Monsmith, paste a contract, and watch the audit and profiler explain it.
Open the studio