diff --git a/components/MarketHeader.tsx b/components/MarketHeader.tsx index 6f6012f2..d9bee50b 100644 --- a/components/MarketHeader.tsx +++ b/components/MarketHeader.tsx @@ -47,6 +47,8 @@ const MarketHeader = () => { const volume = ohlcv ? ohlcv.v[0] : '--' const fetchPerpStats = useCallback(async () => { + console.log('fetching perp stats') + const perpStats = await fetch( `https://mango-stats-v3.herokuapp.com/perp/funding_rate?market=${selectedMarketName}` ) @@ -179,7 +181,9 @@ const MarketHeader = () => { {selectedMarketName.includes('PERP') ? ( <>
-
Funding (1h Ave)
+
+ Avg Funding Rate (1h) +
{calculateFundingRate(perpStats, selectedMarket)?.toFixed(4)}%