You're writing require statements wrong
- π»Tutorials
- π€
- βIntermediate
- π·οΈ
A new pattern for DeFi Smart Contract Security
Don't just write require statements for a specific function; write require statements for your protocol. Function Requirements-Effects-Interactions + Protocol Invariants or the FREI-PI pattern can help make your contracts safer by forcing developers to focus on protocol level invariants in addition to function level safety.