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