Book lover, unstoppable yield farmer, diving into dApps
2 Followers
Hello friends. This week, let's take a look and understand what a "Reentrancy Attack" is and how it works. Reentrancy attacks are popular with Smart Contracts which has a deposit and withdrawal function. First of, let's simplify it with an example of running a Coffee Shop with a voucher system in which you allow customers to top up cash into their Member Card for credits in which they can either redeem for coffee or withdraw as cash later on. So let's say for example, a customer tops up their member card with $50 Example continued in next page :)
recast:farcaster://casts/0xc570e4a97926a0e5cf558dcc614fa4386347dc7cf8ea9d14154fc5693c2bfc81
recast:farcaster://casts/0x4b965a2db8edf1bcb3db4a9f16c6be3e22d9c5a8911d463ba5202fff5362061c