code: async function getBalance(address, tokenAddress) {
    if (tokenAddress !== gbl.constants.ADDRESS_ZERO) {
      let token = new web3.eth.Contract(abis.erc20(), tokenAddress);
      return await token.methods.balanceOf(address).call();
    } else {
      return await web3.eth.getBalance(address);
    }
  }
docs: Helper functions