Langstroth

Fixing a Small Bug in the CuteHIVE Proposal List: Baseline Proposal Display Logic

by @cutehive.com · 0 votes · 0.000 HBD
While recently browsing the proposal list in CuteHIVE Monitor, I noticed something unusual. As I was checking the current DHF proposals, I found that **two different proposals were simultaneously marked as "Baseline" proposals**. From the perspective of how the Hive Proposal System works, this clearly didn't look right. At any given time, there should only be **one true Baseline Proposal**โ€”the proposal that determines the funding threshold for all other proposals. ![image.png](https://images.hive.blog/DQmY3rWAp5z7MX4WwuijMeCv9NFHRpvrvFnnMS6JiUUbiYc/image.png) ## How Did This Happen? After noticing the issue, I reviewed the logic that had originally been implemented in CuteHIVE. It turned out that the early version used a very simple rule: > Any Refund Proposal was treated and displayed as a Baseline Proposal. In most situations, this seemed reasonable because the actual Baseline Proposal is indeed a special type of Refund Proposal. However, once multiple Refund Proposals exist in the system, this approach starts to break down. As a result: - Every Refund Proposal received Baseline styling. - Multiple proposals could display a "Baseline" badge. - Users could not immediately identify which proposal was actually setting the funding threshold. Fortunately, this was only a **display issue** and did not affect any blockchain data. More importantly, the Support % calculations for all proposals were already based on the correct Baseline Proposalโ€”the Refund Proposal with the highest vote total. Therefore, all calculations remained accurate. Even so, incorrect visual labeling can be misleading, so I decided to fix it. ![780900a9085bf34bcd463c74fcbfa514.png](https://images.hive.blog/DQmSVqmDHpJKWW71SYVY87tEs7JFvCyhirD3Vu2GNsXZs3X/780900a9085bf34bcd463c74fcbfa514.png) ## What Is a Baseline Proposal? For anyone who is new to the Hive Decentralized Hive Fund (DHF), here's a quick explanation. In the Hive Proposal System, proposals do not automatically receive funding. Instead, proposals are ranked according to their net votes. To qualify for funding, a proposal must receive more support than the current Baseline Proposal. In most cases, the Baseline Proposal is a Refund Proposal that returns funds back to the DAO. In other words: - Proposals with more votes than the Baseline receive funding. - Proposals with fewer votes than the Baseline do not receive funding. You can think of the Baseline Proposal as the **funding threshold** for the entire DHF system. ![58fcf8a25b2a49f8524034fe21dfaed2.png](https://images.hive.blog/DQmehnmrfS8BjdeEE5pzo3XvKbXTot7c6pvvk1yRto6RgeN/58fcf8a25b2a49f8524034fe21dfaed2.png) ## The Fix To address this issue, I updated the proposal display logic in CuteHIVE Monitor. ### ๐ŸŽฏ More Accurate Baseline Detection The system now correctly identifies: **The highest-voted Refund Proposal that is actually being used as the funding threshold.** Only this proposal will receive: - The Baseline badge - The amber-colored background - The special visual highlighting This makes it immediately obvious where the current funding threshold is. ### ๐Ÿ“Š Better Display of Other Refund Proposals Any additional Refund Proposals in the system will now: - Display a standard Refund badge - Be rendered like normal proposals - Show their actual Support % relative to the current Baseline This makes it easier to identify the true Baseline Proposal while still allowing users to see how other Refund Proposals are performing. ![5cae810a9254b4b9c6553ce1deb4976d.png](https://images.hive.blog/DQmZ6gVaQTvTy5Bet4bQ6iFEubSDSXWvPREU37TQBFzqosT/5cae810a9254b4b9c6553ce1deb4976d.png) ## ๐ŸŒ Give It a Try! You can explore the latest version of **CuteHIVE Monitor DHF proposals** using the link below: ๐Ÿ”— https://www.cutehive.com/proposals If you find CuteHIVE useful, feel free to leave your suggestions and feedback in the comments. Thank you for your continued support! ๐Ÿ’–