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);