contract changes init
This commit is contained in:
@@ -154,7 +154,7 @@ async function getRewardsFor(e) {
|
||||
return;
|
||||
}
|
||||
console.log("activeToken.value.decimals", activeToken.value.decimals);
|
||||
const rewardsForResult = await memeburnerStore.getRewardsFor(
|
||||
const rewardsForResult = await memeburnerStore.getRewardFor(
|
||||
BigInt(e.target.value * Math.pow(10, activeToken.value.decimals))
|
||||
);
|
||||
// var test = await memeburnerStore.getRewardsFor(10000);
|
||||
@@ -167,7 +167,7 @@ async function getRewardsFor(e) {
|
||||
Math.pow(10, tokenStore.memeToken.decimals)
|
||||
);
|
||||
output.value =
|
||||
rewardsForResult / Math.pow(10, tokenStore.memeToken.decimals);
|
||||
rewardsForResult / BigInt(Math.pow(10, tokenStore.memeToken.decimals));
|
||||
}
|
||||
|
||||
async function addTokens(value) {
|
||||
|
||||
Reference in New Issue
Block a user