diff --git a/src/components/chain/contract/Vester.js b/src/components/chain/contract/Vester.js index e531330..a94f62a 100644 --- a/src/components/chain/contract/Vester.js +++ b/src/components/chain/contract/Vester.js @@ -55,10 +55,11 @@ export class Vester { * @returns */ async claim() { + const userAddress = await this.bc.eoaProvider.getSigner().getAddress() return this.execMethod({ provider: this.bc.eoaProvider, method: 'claim', - params: [] + params: [userAddress] }); } /** @@ -89,10 +90,11 @@ export class Vester { * 查询当前用户可以领取的CEC数量 */ async queryClaimable() { + const userAddress = await this.bc.eoaProvider.getSigner().getAddress() return this.queryMethod({ provider: this.bc.eoaProvider, method: 'claimable', - params: [] + params: [userAddress] }); } /** diff --git a/src/components/staking/header.vue b/src/components/staking/header.vue index 440e539..498fecd 100644 --- a/src/components/staking/header.vue +++ b/src/components/staking/header.vue @@ -36,7 +36,7 @@
{{ cecInfoData.CecDisarm }}
+{{ priceCalculated(cecInfoData.CecDisarm) }}
{{ cecInfoData.CecCollection }}
+{{ priceCalculated(cecInfoData.CecCollection) }}
{{ cecInfoData.esCecBalance }}
+{{ priceCalculated(cecInfoData.esCecBalance) }}
{{ cecInfoData.esCecStaked }}
+{{ priceCalculated(cecInfoData.esCecStaked) }}
{{ cecInfoData.esCecConversion }}
+{{ priceCalculated(cecInfoData.esCecConversion) }}
{{ cecInfoData.esCecCollection }}
+{{ priceCalculated(cecInfoData.esCecCollection) }}