update cycleview, pageview + profileview

This commit is contained in:
EmberSpirit
2023-08-30 18:08:51 +02:00
parent c8f7c7cd5e
commit cd773e16c9
19 changed files with 2093 additions and 20238 deletions
+10 -1
View File
@@ -14,6 +14,15 @@ export const useRoundsStore = defineStore("rounds", {
currentRound: null
}),
getters: {
getRoundWinner() {
const goal = this.getCurrentRoundData?.goal;
const winnerCoin = this.rounds[this.activeRound]?.token.find((token) => token.amount === goal)
if (winnerCoin) {
return winnerCoin;
} else {
return false;
}
},
getCurrentRoundData() {
return this.rounds[this.activeRound];
}
@@ -31,7 +40,7 @@ export const useRoundsStore = defineStore("rounds", {
for (let index = 0; index < this.currentRound; index++) {
console.log("load round: " + index);
// await this.fillRound(index)
console.log({index, address: walletStore.address});
contracts.push({
...rewardLockerStore.contract,
functionName: "getTotalRewardsOf",