Skip to content

Commit

Permalink
feat: cleanup negative more in NS and describe deposits required
Browse files Browse the repository at this point in the history
  • Loading branch information
dmccartney committed Oct 24, 2024
1 parent 3d9d170 commit 0e4d2a0
Show file tree
Hide file tree
Showing 2 changed files with 217 additions and 55 deletions.
4 changes: 2 additions & 2 deletions web/src/hooks/useRplEthPrice.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import useK from "./useK";
import { ethers } from "ethers";

export default function useRplEthPrice() {
export default function useRplEthPrice(defaultValue = ethers.constants.Zero) {
let { data: rplEthPrice } = useK.RocketNetworkPrices.Read.getRPLPrice();
return rplEthPrice || ethers.constants.Zero;
return rplEthPrice || defaultValue;
}
Loading

0 comments on commit 0e4d2a0

Please sign in to comment.