const e=require(`./chains.constants.cjs`),t=require(`../functions/web3/etherFunctions.cjs`),n=require(`../functions/utils/erc20tokenFunctions.cjs`);var r={[e.chainIds.optimism]:{ETH:`0.5`,WETH:`0.5`,rETH:`0.5`,USDC:`1000`,"USDC.e":`1000`,USDT:`1000`,DAI:`1000`,WBTC:`0.0125`}},i=e=>{if(!(e in r))return{erc20Addresses:[],limits:[]};let i=Object.entries(r[e]),a=[],o=[];for(let r=0;r<i.length;r+=1){let[s,c]=i[r],l=n.getERC20TokenBySymbol(s,e);if(!l)throw Error(`no token in getTokenLimit`);a.push(l.erc20TokenAddress),o.push(t.getAmountInWei(l,c))}return{erc20Addresses:a,limits:o}};exports.TOKEN_LIMITS=r,exports.getTokensLimits=i;