MCPcopy Create free account
hub / github.com/PolymathNetwork/polymath-core / logBalance

Function logBalance

CLI/commands/transfer_manager.js:2731–2735  ·  view source on GitHub ↗
(from, totalSupply)

Source from the content-addressed store, hash-verified

2729}
2730
2731async function logBalance(from, totalSupply) {
2732 let fromBalance = web3.utils.fromWei(await securityToken.methods.balanceOf(from).call());
2733 let percentage = totalSupply != '0' ? ` - ${parseFloat(fromBalance) / parseFloat(totalSupply) * 100}% of total supply` : '';
2734 console.log(chalk.yellow(`Balance of ${from}: ${fromBalance} ${tokenSymbol} ${percentage} `));
2735}
2736
2737module.exports = {
2738 executeApp: async function (_tokenSymbol) {

Callers 1

executeAppFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected