质押cec
This commit is contained in:
parent
4589e44839
commit
d2443a055a
@ -14,7 +14,7 @@
|
||||
</div>
|
||||
<div class="right">
|
||||
<div>CEC </div>
|
||||
<p>{{stakingStore.cecBalance != 0 ? priceCalculated(stakingStore.cecBalance,18) : 0 }}</p>
|
||||
<p>{{localWalletStore.cecBalance != 0 ? priceCalculated(cecInfoData.cecBalance,18) : 0 }}</p>
|
||||
</div>
|
||||
</li>
|
||||
<li>
|
||||
@ -25,7 +25,7 @@
|
||||
</div>
|
||||
<div class="right">
|
||||
<div>CEC staking</div>
|
||||
<p>{{ stakingStore.CecStaked }}</p>
|
||||
<p>{{ cecInfoData.CecStaked }}</p>
|
||||
</div>
|
||||
</li>
|
||||
<li>
|
||||
@ -36,7 +36,7 @@
|
||||
</div>
|
||||
<div class="right">
|
||||
<div>CEC disarm</div>
|
||||
<p>{{ stakingStore.CecDisarm }}</p>
|
||||
<p>{{ cecInfoData.CecDisarm }}</p>
|
||||
</div>
|
||||
</li>
|
||||
<li>
|
||||
@ -47,7 +47,7 @@
|
||||
</div>
|
||||
<div class="right">
|
||||
<div>CEC collection</div>
|
||||
<p>{{ stakingStore.CecCollection }}</p>
|
||||
<p>{{ cecInfoData.CecCollection }}</p>
|
||||
</div>
|
||||
</li>
|
||||
</div>
|
||||
@ -60,7 +60,7 @@
|
||||
</div>
|
||||
<div class="right">
|
||||
<div>esCEC</div>
|
||||
<p>{{ stakingStore.esCecBalance }}</p>
|
||||
<p>{{ cecInfoData.esCecBalance }}</p>
|
||||
</div>
|
||||
</li>
|
||||
<li>
|
||||
@ -71,7 +71,7 @@
|
||||
</div>
|
||||
<div class="right">
|
||||
<div>esCEC Staking</div>
|
||||
<p>{{ stakingStore.esCecStaked }}</p>
|
||||
<p>{{ cecInfoData.esCecStaked }}</p>
|
||||
</div>
|
||||
</li>
|
||||
<li>
|
||||
@ -82,7 +82,7 @@
|
||||
</div>
|
||||
<div class="right">
|
||||
<div>esCEC conversion</div>
|
||||
<p>{{ stakingStore.esCecConversion }}</p>
|
||||
<p>{{ cecInfoData.esCecConversion }}</p>
|
||||
</div>
|
||||
</li>
|
||||
<li>
|
||||
@ -93,7 +93,7 @@
|
||||
</div>
|
||||
<div class="right">
|
||||
<div>esCEC collection</div>
|
||||
<p>{{ stakingStore.esCecCollection }}</p>
|
||||
<p>{{ cecInfoData.esCecCollection }}</p>
|
||||
</div>
|
||||
</li>
|
||||
</div>
|
||||
@ -177,10 +177,10 @@ const getCecData = async () => {
|
||||
// esCecCollection: 0,
|
||||
let address = localWalletStore.address
|
||||
let timer = setInterval( async () => {
|
||||
stakingStore.cecBalance = parseInt(await bc.erc20.balanceOf(address)).toString()
|
||||
stakingStore.esCecBalance = parseInt(await bc.erc20.esCecBalanceOf(address)).toString()
|
||||
stakingStore.CecStaked = parseInt(await bc.staking.queryCECStaked()).toString()
|
||||
stakingStore.esCecStaked = parseInt(await bc.staking.queryEsCECStaked()).toString()
|
||||
cecInfoData.value.cecBalance = parseInt(await bc.erc20.balanceOf(address)).toString()
|
||||
cecInfoData.value.esCecBalance = parseInt(await bc.erc20.esCecBalanceOf(address)).toString()
|
||||
cecInfoData.value.CecStaked = parseInt(await bc.staking.queryCECStaked()).toString()
|
||||
cecInfoData.value.esCecStaked = parseInt(await bc.staking.queryEsCECStaked()).toString()
|
||||
// let ClaimableByCEC = await bc.staking.queryCumulativeByCEC()
|
||||
// let ClaimableByEsCEC = await bc.staking.queryClaimableByEsCEC()
|
||||
clearInterval(timer);
|
||||
|
Loading…
x
Reference in New Issue
Block a user