Chapter 9
Solidity Patterns I - Cybersecurity
Section 6
Should Contracts Be Allowed to Receive Funds? (Thought Experiment)
In the world of blockchain and cryptocurrencies, smart contracts have the ability to receive and transfer funds. However, this raises the question of whether contracts should be allowed to receive funds or not. On one hand, allowing contracts to receive funds can enable them to carry out certain functions such as paying out rewards or collecting fees. On the other hand, this could also make them vulnerable to attacks or mistakes that could result in the loss of funds. In this thought experiment video, we will explore the pros and cons of allowing contracts to receive funds and examine some potential scenarios where this feature could be useful or problematic. Ultimately, the decision of whether or not to allow contracts to receive funds depends on the specific use case and the level of risk that one is willing to accept.