update cycleview, pageview + profileview
This commit is contained in:
+10
-1
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user