From 7c9efb32a4a1a0cd5bcfad462506960962ba74c8 Mon Sep 17 00:00:00 2001 From: Zied Dahmani Date: Tue, 1 Oct 2024 15:53:44 +0100 Subject: [PATCH] style: remove TODO --- lib/core/extension/base_proposal_model_extension.dart | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/core/extension/base_proposal_model_extension.dart b/lib/core/extension/base_proposal_model_extension.dart index bb9ec515..a8c6487c 100644 --- a/lib/core/extension/base_proposal_model_extension.dart +++ b/lib/core/extension/base_proposal_model_extension.dart @@ -31,7 +31,6 @@ extension BaseProposalModelExtension on BaseProposalModel { double unityToPercent() => unity==null?0:unity!*.01; double commitmentToPercent() => commitment == null ? 0 : commitment! * .01; bool isExpired() => expiration!.toLocal().isBefore(DateTime.now()); - // TODO(saif): Replace hardcoded values (.2 and .8) with dynamic values fetched from the server. - // These thresholds are relative to each DAO and should be retrieved from the DAO settings. + bool isPassing() => (quorum ?? 0) >= (pastQuorum ?? 0) && (unity ?? 0) >= (pastUnity ?? 0); }