Skip to content

Commit

Permalink
chore:code clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
naneey committed Nov 11, 2023
1 parent e7dc17c commit fa4206c
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -784,8 +784,8 @@ public void voteProposal(String ipfsKey, String vote, String voteReason, @Option
swapBNUsdToken();
}

@External(readonly = true) // todo: make this private
public List<Integer> getMilestoneDeadline(String ipfsHash){

private List<Integer> getMilestoneDeadline(String ipfsHash){

String ipfsHAshPRefix = proposalPrefix(ipfsHash);
ArrayDB<Integer> milestoneIDs = milestoneIds.at(ipfsHAshPRefix);
Expand Down Expand Up @@ -1345,7 +1345,7 @@ private void updateProgressReportResult() {
milestonePassed += 1;

if (milestoneStatus == MILESTONE_REPORT_COMPLETED){
milestoneBudget = milestoneBudget.add(MilestoneDb.budget.at(milestonePrefix).getOrDefault(BigInteger.ZERO)); // todo
milestoneBudget = milestoneBudget.add(MilestoneDb.budget.at(milestonePrefix).getOrDefault(BigInteger.ZERO));
MilestoneDb.status.at(milestonePrefix).set(MILESTONE_REPORT_APPROVED);
int percentageCompleted = (_approved_reports_count * 100) / milestoneCount;
ProposalDataDb.updatePercentageCompleted(proposal_prefix, percentageCompleted);
Expand Down

0 comments on commit fa4206c

Please sign in to comment.