diff --git a/web/src/pages/NodeSetPage.js b/web/src/pages/NodeSetPage.js index 0b64d89..2325359 100644 --- a/web/src/pages/NodeSetPage.js +++ b/web/src/pages/NodeSetPage.js @@ -22,13 +22,14 @@ import WalletChip from "../components/WalletChip"; import NodeSetIcon from "../components/NodeSetIcon"; import CurrencyValue from "../components/CurrencyValue"; import { ethers } from "ethers"; -import { etherscanUrl, shortenAddress } from "../utils"; +import { etherscanUrl, shortenAddress, trimValue } from "../utils"; import { ExpandLess, ExpandMore } from "@mui/icons-material"; import { useTransaction, useBalance } from "wagmi"; import moment from "moment"; import { useState } from "react"; import contracts from "../contracts"; import useBlock from "../hooks/useBlock"; +import useGasPrice from "../hooks/useGasPrice"; import { Link } from "react-router-dom"; import useRplEthPrice from "../hooks/useRplEthPrice"; import useNodeDetails from "../hooks/useNodeDetails"; @@ -504,6 +505,7 @@ function NodeSetWalletChip({ walletAddress }) { const oneEth = ethers.utils.parseEther("1"); function NodeSetMiniPoolsColumn() { let [isShowingAll, setShowingAll] = useState(false); + let gasPrice = useGasPrice(); let rplEthPrice = useRplEthPrice(ethers.utils.parseEther(".004")); // default until loaded const { data: superNodeDetails } = useNodeDetails({ nodeAddress: contracts.SuperNodeAccount.address, @@ -760,6 +762,7 @@ function NodeSetMiniPoolsColumn() { - + more from available deposits + + gas @ + + {trimValue(ethers.utils.formatUnits(gasPrice, "gwei"), { + maxDecimals: 0, + })} + + gwei +