From 5e6f3732930fd6f6c10d3af93e2bfad371345593 Mon Sep 17 00:00:00 2001 From: butterscotch Date: Wed, 18 Oct 2023 21:35:54 +0300 Subject: [PATCH] comments: sacrifice.js --- src/stores/sacrifice.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/stores/sacrifice.js b/src/stores/sacrifice.js index cdb694a..7ff0d0e 100644 --- a/src/stores/sacrifice.js +++ b/src/stores/sacrifice.js @@ -65,6 +65,7 @@ export const useSacrificeStore = defineStore("sacrifice", { console.log("rewardData", rewardData); //output const outputSacrifice = rewardData.reduce((x, y) => { + // CHECK: when you divide like this you are losing remainder, let's better work on formatShowNumber(BigInt: number) function return x + BigInt(y.data) / 10n ** token.decimals; }, 0n); console.log("outputSacrifice", outputSacrifice);