A collection of common Dapp functions to facilitate Dapp management and use
We optimized the voting functionality and improved the front-end and contract design. On the front-end, we redesigned several pages and added new features, such as displaying the contract moderator address and current voting rights holders. To avoid repeated calls to the contract to check the remaining voting time, we switched to intermittent time retrieval and adjusted the countdown on the front-end. This method ensures accurate timing while saving resources and achieving smooth, consistent page rendering. These updates improve efficiency by reducing unnecessary time and resource usage