Checks-Effects-Interactions pattern. A Solidity best practice where you first validate inputs (Checks), then update state (Effects), then make external calls (Interactions). This ordering prevents reentrancy attacks because state is already updated before any external code executes.
Security
CEI Pattern
Related terms in Security
Reentrancy Attack
An exploit where a malicious contract calls back into the vulnerable contract before the first execution is co...
Flash Loan Attack
An exploit that uses uncollateralized flash loans to temporarily manipulate prices, governance votes, or oracl...
Front-running
Observing a pending transaction in the mempool and submitting a transaction with a higher gas price to execute...
Invariant
A condition that must always be true throughout a contract's execution. In Uniswap V2, the key invariant is x ...