import { chainIds as e } from "./chains.constants.mjs";
import { getAmountInWei as t } from "../functions/web3/etherFunctions.mjs";
import { getERC20TokenBySymbol as n } from "../functions/utils/erc20tokenFunctions.mjs";
//#region libs/shared/common/src/constants/token.limits.constants.ts
var r = { [e.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(s, e);
		if (!l) throw Error("no token in getTokenLimit");
		a.push(l.erc20TokenAddress), o.push(t(l, c));
	}
	return {
		erc20Addresses: a,
		limits: o
	};
};
//#endregion
export { r as TOKEN_LIMITS, i as getTokensLimits };
