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

Commit 613701f

Browse files
committed
Merge branch 'igitter/ibe-js-helpers' of github.com:gitteri/solana-program-library into igitter/ibe-js-helpers
2 parents 24a8d37 + 35ce02f commit 613701f

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)