Skip to content

Commit

Permalink
update readability
Browse files Browse the repository at this point in the history
  • Loading branch information
sdpisreddevil committed Feb 10, 2024
1 parent 830afd7 commit b10cadc
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1396,9 +1396,9 @@ private void updateProgressReportResult() {
ProposalDataDb.updatePercentageCompleted(proposal_prefix, 100);

// Transfer the Sponsor - Bond back to the Sponsor P - Rep after the project is completed.
this.sponsorBondReturn.at(_sponsor_address.toString()).set(flag,
this.sponsorBondReturn.at(_sponsor_address.toString()).getOrDefault(flag, BigInteger.ZERO).
add(_sponsor_deposit_amount));
DictDB<String, BigInteger> userSponsorBond = this.sponsorBondReturn.at(_sponsor_address.toString());
BigInteger sponsorBond = userSponsorBond.getOrDefault(flag, BigInteger.ZERO);
userSponsorBond.set(flag, sponsorBond.add(_sponsor_deposit_amount));
sponsorDepositStatus.at(proposal_prefix).set(BOND_RETURNED);
SponsorBondReturned(_sponsor_address,
_sponsor_deposit_amount + " " + flag + " returned to sponsor address.");
Expand Down

0 comments on commit b10cadc

Please sign in to comment.