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:
- funds are locked in the SC,
- users offer various options,
- users vote on the various options,
- votes are tallied, and
- 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: