Reentrancy Guards

Reentrancy

Whenever our contract makes an external call, it becomes potentially vulnerable to a type of attack known as a reentrancy attack. A reentrancy attack occurs when a malicious callee of one of our functions immediately calls back to our contract and attempts to drain funds. Therefore, external calls must be handled with care.

Get hands-on with 1400+ tech skills courses.