From 3a22cd68be7d363bcd65697119fe5dba89518f9a Mon Sep 17 00:00:00 2001 From: Maxime Julian <44675210+therealemjy@users.noreply.github.com> Date: Fri, 6 Dec 2024 18:34:20 +0100 Subject: [PATCH] fix: limit when fetching markets from landing page (#3612) fix: fix limit when fetching markets from landing page --- .changeset/gorgeous-parrots-greet.md | 5 +++++ apps/landing/src/api/index.ts | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/gorgeous-parrots-greet.md diff --git a/.changeset/gorgeous-parrots-greet.md b/.changeset/gorgeous-parrots-greet.md new file mode 100644 index 0000000000..d4630a5790 --- /dev/null +++ b/.changeset/gorgeous-parrots-greet.md @@ -0,0 +1,5 @@ +--- +"@venusprotocol/landing": patch +--- + +fix limit when fetching markets from landing page diff --git a/apps/landing/src/api/index.ts b/apps/landing/src/api/index.ts index 0026000637..8b7548f55e 100644 --- a/apps/landing/src/api/index.ts +++ b/apps/landing/src/api/index.ts @@ -4,7 +4,7 @@ import { formatTvlData, mapMarketsData } from './utils'; const apiBaseUrl = 'https://api.venus.io/'; -const marketsRequestUrl = `${apiBaseUrl}markets/core-pool?limit=999999`; +const marketsRequestUrl = `${apiBaseUrl}markets/core-pool?limit=500`; const proposalsRequestUrl = `${apiBaseUrl}governance/proposals?limit=1`; const tvlRequestUrl = `${apiBaseUrl}markets/tvl`;