code: async function getBalance(from, type) {
    switch (type) {
      case gbl.constants.FUND_RAISE_TYPES.ETH:
        return await web3.eth.getBalance(from);
      case gbl.constants.FUND_RAISE_TYPES.POLY:
        return await polyToken.methods.balanceOf(from).call();
      default:
        return '0';
    }
  }
docs: //////////////////// HELPER FUNCTIONS // ////////////////////