var o=Object.defineProperty;var f=Object.getOwnPropertyDescriptor;var n=Object.getOwnPropertyNames;var u=Object.prototype.hasOwnProperty;var P=(t,e)=>{for(var s in e)o(t,s,{get:e[s],enumerable:!0})},m=(t,e,s,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let c of n(e))!u.call(t,c)&&c!==s&&o(t,c,{get:()=>e[c],enumerable:!(a=f(e,c))||a.enumerable});return t};var G=t=>m(o({},"__esModule",{value:!0}),t);var d={};P(d,{default:()=>p});module.exports=G(d);var r=require("react"),i=require("@web3-react/core"),g=()=>{let[t,e]=(0,r.useState)(0),{provider:s}=(0,i.useWeb3React)();return(0,r.useEffect)(()=>{s&&(async()=>{try{let c=await s.getGasPrice();e(c.div(1e9).toNumber())}catch(c){console.log(c)}})()},[s]),t},p=g;
