158 - OZ PullPayment
OpenZeppelin PullPayment: provides a pull-payment strategy, where the paying contract doesn’t invoke any functions on the receiver account which must withdraw its payments itself.
Pull-payments are often considered the best practice when it comes to sending Ether, security-wise.
It prevents recipients from blocking execution and eliminates reentrancy concerns.
- Payment: Pull Vs. Push
- Avoid Reentrancy Attacks
- Paying Contract
- No Calls -> Receiver Fns
- Receiver Account
- Withdraws Payment
- Prevents Reentrancy
- Best Practice