import{BigNumber as o}from"ethers";import{formatUnits as s,parseUnits as e}from"ethers/lib/utils";var p=(r,t=18)=>r?parseFloat(s(o.from(r),t)):0,a=r=>parseInt(r.toString()),f=(r,t=18)=>parseFloat(s(r,t)),u=(r,t=18)=>{if(!r)return e("0",t);let i=r.includes(".")?r.substring(0,r.indexOf(".")+t+1):r;return e(i,t)};export{a as bigNumAsInt,u as safelyParseUnits,f as weiBigNumAsFloat,p as weiStringAsFloat};
//# sourceMappingURL=parse.mjs.map