"use strict";var o=Object.defineProperty;var p=Object.getOwnPropertyDescriptor;var a=Object.getOwnPropertyNames;var f=Object.prototype.hasOwnProperty;var u=(r,t)=>{for(var e in t)o(r,e,{get:t[e],enumerable:!0})},b=(r,t,e,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of a(t))!f.call(r,i)&&i!==e&&o(r,i,{get:()=>t[i],enumerable:!(n=p(t,i))||n.enumerable});return r};var x=r=>b(o({},"__esModule",{value:!0}),r);var B={};u(B,{bigNumAsInt:()=>c,safelyParseUnits:()=>m,weiBigNumAsFloat:()=>l,weiStringAsFloat:()=>N});module.exports=x(B);var g=require("ethers"),s=require("ethers/lib/utils"),N=(r,t=18)=>r?parseFloat((0,s.formatUnits)(g.BigNumber.from(r),t)):0,c=r=>parseInt(r.toString()),l=(r,t=18)=>parseFloat((0,s.formatUnits)(r,t)),m=(r,t=18)=>{if(!r)return(0,s.parseUnits)("0",t);let e=r.includes(".")?r.substring(0,r.indexOf(".")+t+1):r;return(0,s.parseUnits)(e,t)};0&&(module.exports={bigNumAsInt,safelyParseUnits,weiBigNumAsFloat,weiStringAsFloat});
//# sourceMappingURL=parse.js.map