const e=require(`../../functions/utils/amounts.utils.cjs`);require(`../error-codes.constants.cjs`);const t=require(`../../functions/web3/etherFunctions.cjs`);require(`./FeeOverTransactionValueError.cjs`);const n=require(`../types.cjs`);var r=(r,i)=>{let{totalFeeWEI:a,feeUnit:o}=r.data;if(!o)return r.message;let s=t.getAmountInToken(o,a),c=`transact`,l=`an equivalent of `;return i===n.ErrorCategory.WITHDRAW&&(c=`withdraw`,l=``),`Fees are over transaction value. Please ${c} at least ${l} ${e.fixDecimalsAmount(Number(s))} of ${o?.symbol} (subject to real-time price)`};exports.getGenericFeeOverTransactionValueErrorMessage=r;