import{useEffect as r,useState as a}from"react";import{useWeb3React as o}from"@web3-react/core";var i=()=>{let[c,s]=a(0),{provider:e}=o();return r(()=>{e&&(async()=>{try{let t=await e.getGasPrice();s(t.div(1e9).toNumber())}catch(t){console.log(t)}})()},[e]),c},m=i;export{m as default};
