use new api for stats page

This commit is contained in:
tjs 2022-03-30 22:53:00 -04:00
parent 6c7952e72e
commit 578846d9b9
2 changed files with 3 additions and 3 deletions

2
.env
View File

@ -1 +1 @@
NEXT_PUBLIC_GROUP=devnet.2
NEXT_PUBLIC_GROUP=mainnet.1

View File

@ -38,7 +38,7 @@ const useMangoStats = () => {
useEffect(() => {
const fetchHistoricalStats = async () => {
const response = await fetch(
`https://mango-stats-v3.herokuapp.com/spot?mangoGroup=${mangoGroupName}`
`https://mango-transaction-log.herokuapp.com/v3/stats/spot_stats_hourly?mango-group=${mangoGroupName}`
)
const stats = await response.json()
setStats(stats)
@ -49,7 +49,7 @@ const useMangoStats = () => {
useEffect(() => {
const fetchHistoricalPerpStats = async () => {
const response = await fetch(
`https://mango-stats-v3.herokuapp.com/perp?mangoGroup=${mangoGroupName}`
`https://mango-transaction-log.herokuapp.com/v3/stats/perp_stats_hourly?mango-group=${mangoGroupName}`
)
const stats = await response.json()
setPerpStats(stats)