Skip to content

Commit

Permalink
style: remove TODO
Browse files Browse the repository at this point in the history
  • Loading branch information
Zied-Dahmani committed Oct 1, 2024
1 parent f723512 commit 7c9efb3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/core/extension/base_proposal_model_extension.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

0 comments on commit 7c9efb3

Please sign in to comment.