comments: sacrifice.js
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user