update menu

This commit is contained in:
EmberSpirit
2023-08-14 18:34:12 +02:00
parent ceac2a1083
commit 7d33f225ce
13 changed files with 290 additions and 179 deletions
+6 -3
View File
@@ -35,9 +35,9 @@ export const useRewardLockerStore = defineStore("rewardlocker", {
console.log("getRewardsForAllToken");
const tokenStore = useTokenStore();
const walletStore = useWalletStoreV2();
const contracts = [];
for (let index = 0; index < tokenStore.token.length; index++) {
const token = tokenStore.token[index];
const contracts = [];
for (let index = 0; index < tokenStore.sacrificeToken.length; index++) {
const token = tokenStore.sacrificeToken[index];
// calls.push(this.contract.methods.rewards(walletStore.address, roundNumber, token.contractAddress));
contracts.push({
...this.contract,
@@ -68,5 +68,8 @@ export const useRewardLockerStore = defineStore("rewardlocker", {
async getTotalRewardsOf(address, rounds) {
return await this.contract.read.getTotalRewardsOf([address, rounds]);
},
async getStaked(address) {
return await this.contract.read.staked([address]);
},
},
});