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

Function checkStableBalance

CLI/commands/sto_manager.js:758–765  ·  view source on GitHub ↗
(walletAddress, stableAddress)

Source from the content-addressed store, hash-verified

756}
757
758async function checkStableBalance(walletAddress, stableAddress) {
759 let stableCoin = common.connect(abis.erc20(), stableAddress);
760 try {
761 return await stableCoin.methods.balanceOf(walletAddress).call();
762 } catch (e) {
763 return ""
764 }
765}
766
767async function getStableCoinsRaised(currentSTO, address) {
768 return await currentSTO.methods.stableCoinsRaised(address).call()

Callers 1

usdTieredSTO_statusFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected