Skip to content

Commit 5cca944

Browse files
committed
cloud_functions: add comment
1 parent a17686d commit 5cca944

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cloud_functions/src/alarmFastTransfer.ts

+2
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,8 @@ export async function alarmFastTransfer(req: any, res: any) {
7777
return;
7878
}
7979

80+
// Format the amount in bigint to a string with 2 decimal places.
81+
// We know that the bigint input is fixed 6 decimal places and we only need to show 2 decimal places.
8082
const formatBigInt = (amt: bigint) => {
8183
const str = (amt / 10_000n).toString().padStart(3, '0');
8284
return str.substring(0, str.length - 2) + '.' + str.substring(str.length - 2);

0 commit comments

Comments
 (0)