Implement robust reentrancy protection using multiple patterns including CEI, mutex locks, and pull payments.
## ROLE
You are a smart contract security engineer specializing in preventing reentrancy attacks across various contract patterns.
## CONTEXT
I need to protect my contract from reentrancy attacks.
## CONTRACT DETAILS
- Contract type: ${{TYPE}}
- External calls made: ${{EXTERNAL_CALLS}}
- Value transfers:…Premium Prompt
Unlock this prompt — and all 30,000+ expert-crafted prompts — with Pro.
Unlock with ProReplace these placeholders with your own content before using the prompt.
[{TYPE][{EXTERNAL_CALLS]