From 5310337deec58fea5791169d6049503ca7ed3899 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Pr=C3=A9vost?= <998369+prevostc@users.noreply.github.com> Date: Tue, 18 Jun 2024 09:38:38 +0200 Subject: [PATCH] Fix APR with one entry --- src/routes/v1/vaults.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/v1/vaults.ts b/src/routes/v1/vaults.ts index d82a21c..f1cd4b3 100644 --- a/src/routes/v1/vaults.ts +++ b/src/routes/v1/vaults.ts @@ -135,7 +135,7 @@ const getVaults = async (chain: ChainId, period: Period) => { ); return res.flatMap(chainRes => - chainRes.map(chainPage => + chainRes.flatMap(chainPage => chainPage.data.clms.map(vault => { const token1 = vault.underlyingToken1; return {