How do I prevent reentrancy attacks in Solidity?
Update state before any external call (checks-effects-interactions), add nonReentrant to every function sharing that state, and treat token hooks and user-supplied addresses as external calls.
#security#smart-contracts#solidity
JumpStart Blockchain · 5 min