Skip to content

Commit

Permalink
convert 5 minute buffer to seconds
Browse files Browse the repository at this point in the history
  • Loading branch information
sophialittlejohn committed Aug 9, 2024
1 parent b42647c commit 32f1b55
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion centrifuge-app/src/pages/Loan/ExternalRepayForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ export function ExternalRepayForm({ loan, destination }: { loan: ExternalLoan; d
? loan.outstandingPrincipal
: CurrencyBalance.fromFloat(0, pool.currency.decimals)

const fiveMinuteBuffer = 5 * 60 * 1000
const fiveMinuteBuffer = 5 * 60
const time = Date.now() + fiveMinuteBuffer - loan.fetchedAt.getTime()
const mostUpToDateInterest = CurrencyBalance.fromFloat(
outstandingPrincipal
Expand Down
2 changes: 1 addition & 1 deletion centrifuge-app/src/pages/Loan/RepayForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ function InternalRepayForm({ loan, destination }: { loan: ActiveLoan | CreatedLo
? loan.outstandingPrincipal
: CurrencyBalance.fromFloat(0, pool.currency.decimals)

const fiveMinuteBuffer = 5 * 60 * 1000
const fiveMinuteBuffer = 5 * 60
const time = Date.now() + fiveMinuteBuffer - loan.fetchedAt.getTime()
const mostUpToDateInterest = CurrencyBalance.fromFloat(
outstandingPrincipal
Expand Down

0 comments on commit 32f1b55

Please sign in to comment.