Credit goes to Patrick Collins @ Cyfrin for making this code available on his Youtube channel where he teaches this incredible stuff
FundMe is a decentralized crowd-sourcing application built on Ethereum using Solidity. This smart contract allows users to contribute funds, which only the contract owner can withdraw. The contract also uses Chainlink's Price Feed to set a minimum funding amount in USD.
- Secure Funding: Only the owner of the contract can withdraw the funds.
- Minimum Contribution: Enforces a minimum contribution amount in USD using Chainlink's Price Feed.
- Gas Optimization: Includes a gas-optimized withdraw function.
git clone https://github.com/rasta-dave/FundMe-Crowdsourcing
cd FundMe-Crowdsourcing
make
Users can fund the contract by sending ETH directly to it or by calling the fund
function.
Only the owner of the contract can withdraw funds using the withdraw
or cheaperWithdraw
function.