Skip to content

confused by logic of "FundMe" #1670

Answered by cromewar
frank0532 asked this question in Q&A
Aug 26, 2022 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

Hello @frank0532

  1. The funding goes to the address of the contract Fundme which keeps the amount funded, so neither the account 1 or 2 have that funds.
  2. The withdraw logic is to retrieve all the funds stored on the contract Fundme so if 10 accounts send funds, the one using the withdraw function, will get all the funds (of the 10 accounts).
    Here you have to take something in consideration, we suppose the creator of the crowdfunding campaign is the same one who deploys the contract, so all the funds are withdraw to the account_1 (as is the owner of the contract).
    But let's suppose the person creating the contract is not the same as the one requesting the funding, well there are a lot of solu…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@frank0532
Comment options

@cromewar
Comment options

Answer selected by frank0532
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants