Stopping Reentrancy: Implementing the Checks-Effects-Interactions Pattern
Learn how to prevent reentrancy attacks in Solidity using the Checks-Effects-Interactions (CEI) pattern to ensure contract state is updated before external calls.
ReadMeFeed / Community knowledge
Real questions. Useful conversations. Find the people who know your stack.
Learn how to prevent reentrancy attacks in Solidity using the Checks-Effects-Interactions (CEI) pattern to ensure contract state is updated before external calls.
An architecture note on where Vyper's @nonreentrant lock belongs: which functions need it, why checks-effects-interactions is still required, and how to verify the lock with a hostile receiver contract.