const e=require(`../../error-handling/error-codes.constants.cjs`),t=require(`../web3/etherFunctions.cjs`),n=require(`../utils/erc20tokenFunctions.cjs`),r=require(`../../API/getTokenPrice.cjs`);require(`../../error-handling/index.cjs`);const i=require(`../../constants/kyc.constants.cjs`);require(`../../constants/index.cjs`),require(`../utils/index.cjs`),require(`../../API/index.cjs`),require(`../web3/index.cjs`);var a=async(a,o,s)=>{if(!o.length||!s.length)return!1;let c=o.map(e=>n.getERC20Token(e,a)),l=[];try{l=(await r.getTokenPrices(a,o)).prices||[]}catch{throw Error(e.transactionErrorCodes.KYC_PRICE_FETCH_FAILED)}for(let e=0;e<o.length;e++){let n=c[e],r=s[e],a=l[e];if(!n||r===0n||!a)continue;let o=t.getAmountInToken(n,r);if(Number(o)*a>i.KYC_LIMIT)return!0}return!1};exports.checkTokenLimitsUSD=a;