#33 Crowdfunding-2 Smart Contract (Part 3)

#33 Crowdfunding-2 Smart Contract (Part 3)

Welcome to this brand new course about blockchain. In this course, and in the upcoming ones, we will make you familiar with everything you need to know about blockchain. We will also teach you some of the latest blockchain coding skills so that you can enter the fascinating world of decentralized applications.

In this video, we will learn about a different crowdfunding smart contract. The smart contract “CrowdFunding” facilitates crowdfunding campaigns by allowing users to contribute funds towards a specific goal. The contract maintains information such as the project owner’s address, the goal amount to be raised, the current amount raised, and a mapping of contributors and their respective contribution amounts. It also includes a flag indicating whether the campaign is closed or not. Users can contribute funds through the contribute function, which updates the contribution mapping and the current amount raised. An event is emitted to notify observers of the contribution. If the current amount surpasses or equals the goal amount, the campaign is marked as closed and another event is emitted to indicate the success of the campaign. Contributors can then withdraw their funds using the withdrawFunds function. This smart contract can be used to conduct crowdfunding campaigns for various projects, allowing individuals to pool their resources and support initiatives in a decentralized manner.

Github Repository:
https://github.com/arashtad/Arashtad-Smart-Conrtacts

Watch The Video on Youtube