Added total deposit balance for smart contract info

This commit is contained in:
sairaj mote 2023-06-12 13:36:04 +05:30
parent 6ad9ef0d98
commit b90d0e22b9

View File

@ -877,7 +877,8 @@
totalParticipationAmount, totalParticipationAmount,
priceType, priceType,
oracle_address, oracle_address,
price price,
currentDepositBalance
} = obj; } = obj;
console.log(obj) console.log(obj)
return html` return html`
@ -985,6 +986,12 @@
<h4>${formatAmount(totalHonorAmount, 'usd')} ${sellingToken}</h4> <h4>${formatAmount(totalHonorAmount, 'usd')} ${sellingToken}</h4>
</div> </div>
`: ''} `: ''}
${currentDepositBalance ? html`
<div class="flex info-row">
<h5 class="label">Total deposit balance </h5>
<h4>${formatAmount(currentDepositBalance, 'usd')} ${sellingToken}</h4>
</div>
`: ''}
</div> </div>
${userChoices ? html` ${userChoices ? html`
<h3>Available Choices</h3> <h3>Available Choices</h3>
@ -1521,7 +1528,8 @@
maximumsubscriptionamount, maximumsubscriptionamount,
totalHonorAmount, totalHonorAmount,
totalParticipationAmount, totalParticipationAmount,
price price,
currentDepositBalance
}, contractAddress, }, contractAddress,
contractName contractName
} = info } = info
@ -1546,7 +1554,8 @@
oracle_address, oracle_address,
totalHonorAmount, totalHonorAmount,
totalParticipationAmount, totalParticipationAmount,
price price,
currentDepositBalance
} }
} }