We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a17686d commit 5cca944Copy full SHA for 5cca944
cloud_functions/src/alarmFastTransfer.ts
@@ -77,6 +77,8 @@ export async function alarmFastTransfer(req: any, res: any) {
77
return;
78
}
79
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.
82
const formatBigInt = (amt: bigint) => {
83
const str = (amt / 10_000n).toString().padStart(3, '0');
84
return str.substring(0, str.length - 2) + '.' + str.substring(str.length - 2);
0 commit comments