Info
Source on GitHub
Smart Contract Address
kf9aZfoVLBbSzDqBeRiDhuXQ2I4r8-z1m_xIGxtkw5in6zRz
Testing and Issues
You can test this entry and submit issues during the testing period of the Blockchain Contest, Stage 2 contest.
Entries with serious issues will not be able to win the contest, but even minor issues might be important for overall results.
Voting
by rating
Issues
Great submission in terms of quality of coding and presentation, however such delegation scheme will hardly work. You are trying to collect funds for each election, so your clients need to check all those things by their side, make transfer, you need to find 100k of to for each election. I believe this is rather strange scheme, especially for those who want to stake significant amounts of Grams. However I admire your team!
We found some issues in your contract.
- In `withdraw_remaining_funds` `amount` and `s_addr` are not protected by signature, so anyone can take a signature from real internal message and send their own correctly signed request.
- The contract ignores existence of processing and storage fees, so it is likely to run out of funds during withdrawal phase if stake wasn't sent.
- In `withdraw_remaining_funds` `amount` and `s_addr` are not protected by signature, so anyone can take a signature from real internal message and send their own correctly signed request.
- The contract ignores existence of processing and storage fees, so it is likely to run out of funds during withdrawal phase if stake wasn't sent.
Nobody added any issues yet...