const e=require(`../../types/ethereum-network.types.cjs`),t=require(`../../constants/protocol.constants.cjs`),n=require(`../utils/getSignerFromContract.cjs`);var r=async(r,i,a,o)=>{let s=r.getContractWithFetcher(i,e.ContractType.ERC20Contract,a);return a===t.zeroAddress?n.getProviderFromContract(s).getBalance(o):s.balanceOf(o)};exports.getPublicAddressBalance=r;