From bab27b3aa098d8cf12fe4858efa71cbcc17d6285 Mon Sep 17 00:00:00 2001
From: Kappa16 Live Impact Preview Total voting weight will increase from {totalWeight} to {totalWeight + 1}. New owner percentage share: {(totalWeight + 1 > 0 ? (1 / (totalWeight + 1)) * 100 : 0).toFixed(1)}%. Note: The contract assigns a minimum weight of 1 (MIN_OWNER_WEIGHT) to newly added owners. Custom weights are not supported during owner creation. Live Impact Preview Owner's current weight: {currentWeights[selectedOwner] ?? 1}. Resulting total voting weight: {totalWeight - (currentWeights[selectedOwner] ?? 1)} (threshold: {quorumWeight}).
- Warning: Removing this owner drops remaining total weight ({totalWeight - (currentWeights[selectedOwner] ?? 1)}) below the required quorum threshold ({quorumWeight}). Future proposals will not be executable.
-
Live Impact Preview
-Resulting total voting weight: {nextTotalW}.
-Owner's new share: {newSharePct.toFixed(1)}% (cap: {weightCapPct}%).
-
+
Live Impact Preview
+ + {type === "add_owner" && ( + <> ++ Total voting weight will increase from{" "} + {beforeWeight} to{" "} + {afterWeight}. +
++ New owner percentage share:{" "} + + {formatWeightPercent(1, totalWeight)} + + . +
+ > + )} + + {type === "remove_owner" && ( + <> ++ Owner's current weight:{" "} + {beforeWeight}. +
++ Resulting total voting weight:{" "} + {totalWeight} + {threshold !== undefined && ( + <> + {" "}(threshold:{" "} + {threshold}) + > + )} + . +
+ > + )} + + {type === "change_owner_weight" && ( + <> ++ Resulting total voting weight:{" "} + {totalWeight}. +
++ Owner's new share:{" "} + + {formatWeightPercent(afterWeight, totalWeight)} + + {weightCapPct !== undefined && ( + <> + {" "}(cap:{" "} + {weightCapPct}%) + > + )} + . +
+ > + )} + + {note && ( ++ {note} +
+ )} ++ Live Impact Preview +
++ Total voting weight will increase from + + + 5 + + to + + + 6 + + . +
++ New owner percentage share: + + + 16.7% + + . +
++ Note: Test owner addition. +
++ Live Impact Preview +
++ Resulting total voting weight: + + + 12 + + . +
++ Owner's new share: + + + 41.7% + + + (cap: + + + 50 + % + + ) + . +
++ Live Impact Preview +
++ Owner's current weight: + + + 3 + + . +
++ Resulting total voting weight: + + + 7 + + + (threshold: + + + 8 + + ) + . +
++ Warning: Total weight falls below threshold! +
+