update m issues + digit change numbers

This commit is contained in:
EmberSpirit
2023-10-22 17:14:00 +02:00
parent fa4fa54033
commit bf76e55fb5
26 changed files with 2704 additions and 2361 deletions
+3 -1
View File
@@ -54,10 +54,12 @@ const emit = defineEmits(["close", "update:modelValue"]);
async function addTokensPercent(value) {
console.log("value", value);
console.log("props.amount", props.amount);
console.log("props.amount * 100)", props.amount * 1000);
let amount;
if (props.amount !== undefined || props.amount !== null) {
console.log("props.amount", props.amount);
amount = (props.amount * value) / 100n;
console.log("value", value);
amount = (BigInt(props.amount * 1000) * value) / 100000n;
} else if (props.stake) {
amount = (walletStore.memeToken.balanceOf * value) / 100n;
} else {