Skip to content

asking doubt #5768

Answered by Shawon-Mandal
sivajisj asked this question in Q&A
Discussion options

You must be logged in to vote

@sivajisj
The fund function is public means anyone can call it and it is payable that means eth can be sent through this function
in the require statement, "msg.value.getConversionRate()>=MINIMUM_USD" means the fund sent through the fund function needs to be greater than the minimum usd set in the contract
next, in the addressToAmountFunded[msg.sender]+=msg.value; the fund amount gets updated to the addressToAmountFunded variable.
next, we see that whoever funds in this contract,their address gets pushed in the funders variable.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by alymurtazamemon
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants