Beginner Plutus Questions

Yesterday, I posted an idea for a DApp in the DApp idea thread. It would be a Simple Resource Allocation Voting Contract that would allow for this:

  1. funds are locked in the SC,
  2. users offer various options,
  3. users vote on the various options,
  4. votes are tallied, and
  5. funds go to the address that offered the winning option.

It’s not really something I would particularly want to use, or even see in use necessarily…I still remember the DAO recursive call attack. But, I thought it would be a good way to better understand voting mechanics.

Instead of waiting for someone to show me how to do it, I thought I would just take a stab at it as a learning project.

Obviously, I’m a raw beginner at coding and this thing is riddled with conceptual and technical mistakes. But, if anyone wants to take a peek at it and give me some pointers, that would be awesome:

4 Likes