update new contracts
This commit is contained in:
@@ -55,7 +55,6 @@ export const useRoundsStore = defineStore("rounds", {
|
||||
const data = await multicall({
|
||||
contracts,
|
||||
});
|
||||
console.log("data123abc", data);
|
||||
// var test = await rewardLockerStore.getTotalRewardsOf(walletStore.address, rounds)
|
||||
for (let index = 0; index < data.length; index++) {
|
||||
const element = data[index];
|
||||
@@ -70,7 +69,6 @@ export const useRoundsStore = defineStore("rounds", {
|
||||
const tokenStore = useTokenStore();
|
||||
const memeBurnerStore = useMemeburnerStore();
|
||||
var data = await memeBurnerStore.getSacrificedRound(this.currentRound);
|
||||
console.log("data123", data);
|
||||
var tokenIndex = this.rounds[this.currentRound].token.findIndex(
|
||||
(tokenData) => tokenData.contractAddress === sacrificedToken
|
||||
);
|
||||
@@ -96,7 +94,6 @@ export const useRoundsStore = defineStore("rounds", {
|
||||
rewardData = await rewardLockerStore.getRewardsForAllToken(roundNumber);
|
||||
console.log("hier2", rewardData);
|
||||
}
|
||||
console.log("rewardData123", rewardData);
|
||||
|
||||
var goal = await memeBurnerStore.getGoal(roundNumber);
|
||||
console.log("goal", goal);
|
||||
@@ -144,15 +141,19 @@ export const useRoundsStore = defineStore("rounds", {
|
||||
} else {
|
||||
console.log("round already filled");
|
||||
}
|
||||
console.log("this.rounds123", this.rounds);
|
||||
},
|
||||
async getFinshedRoundNumbers() {
|
||||
const array = [];
|
||||
const rewardLockerStore = useRewardLockerStore();
|
||||
const lastCompletedRound = await rewardLockerStore.lastCompletedRound();
|
||||
for (let index = 1; index <= Number(lastCompletedRound) + 1; index++) {
|
||||
const lastCompletedRound = await rewardLockerStore.lastCompletedRound();
|
||||
console.log("lastCompletedRound", lastCompletedRound);
|
||||
for (let index = 0; index <= Number(lastCompletedRound); index++) {
|
||||
array.push(index);
|
||||
}
|
||||
}
|
||||
// for (let index = 1; index <= Number(lastCompletedRound) + 1; index++) {
|
||||
// array.push(index);
|
||||
// }
|
||||
console.log("array", array);
|
||||
return array;
|
||||
},
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user