Skip to content

Commit

Permalink
πŸ› push: fix penaltyRate percentage on msg
Browse files Browse the repository at this point in the history
  • Loading branch information
itofarina committed Mar 15, 2023
1 parent cfc66fa commit e16da65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion actions/onNotifyDebtors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ const bodyMsg = (
) => {
const intro = bodyIntro(daysLeft, decimals, principal, symbol);
const debtOf = `debt of ${totalDebt} ${symbol}`;
const thePenalty = `The penalty for not repaying on time is ${(Number(penaltyRate.mul(84_400)) * 100).toFixed(2)}% per day.`;
const thePenalty = `The penalty for not repaying on time is ${Number(formatUnits(penaltyRate.mul(8_640_000), 18)).toFixed(2)}% per day.`;

if (daysLeft >= 0) {
return `${intro}. Please, remember to repay your ${debtOf} on time. ${thePenalty}`;
Expand Down

0 comments on commit e16da65

Please sign in to comment.