Skip to content
This repository was archived by the owner on Mar 11, 2025. It is now read-only.

Commit 35ce02f

Browse files
gitterijoncinque
andauthored
Update token/js/src/actions/amountToUiAmount.ts
Co-authored-by: Jon C <[email protected]>
1 parent c16944f commit 35ce02f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

token/js/src/actions/amountToUiAmount.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,8 +225,8 @@ export function uiAmountToAmountWithoutSimulation(
225225
const totalScale = preUpdateExp * postUpdateExp;
226226

227227
// Calculate original principal by dividing the UI amount (principal + interest) by the total scale
228-
const originalprincipal = uiAmountScaled / totalScale;
229-
return BigInt(Math.trunc(originalprincipal));
228+
const originalPrincipal = uiAmountScaled / totalScale;
229+
return BigInt(Math.trunc(originalPrincipal));
230230
}
231231

232232
/**

0 commit comments

Comments
 (0)