Skip to content

Commit

Permalink
Merge pull request #33111 from abhinavxd/fix-disbursable-amount
Browse files Browse the repository at this point in the history
fix: Loan disbursable amount on current security price
  • Loading branch information
deepeshgarg007 authored Nov 25, 2022
2 parents 722e29d + fe87c27 commit c6984cd
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,9 @@ def get_total_pledged_security_value(loan):

for security, qty in pledged_securities.items():
after_haircut_percentage = 100 - hair_cut_map.get(security)
security_value += (loan_security_price_map.get(security) * qty * after_haircut_percentage) / 100
security_value += (
loan_security_price_map.get(security, 0) * qty * after_haircut_percentage
) / 100

return security_value

Expand Down

0 comments on commit c6984cd

Please sign in to comment.