From a264d4b4b2c0c8fbfe8d7f0c8d3d5bf476aeb6e8 Mon Sep 17 00:00:00 2001 From: danilo neves cruz Date: Wed, 26 Jun 2024 23:39:52 -0300 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20circulating-exa:=20send=20origin=20?= =?UTF-8?q?header?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/api/circulating-exa.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/pages/api/circulating-exa.ts b/pages/api/circulating-exa.ts index 7294e61a4..6d68722db 100644 --- a/pages/api/circulating-exa.ts +++ b/pages/api/circulating-exa.ts @@ -48,8 +48,12 @@ async function withdrawableFromCategory(category: 'LockupLinear' | 'LockupDynami let totalWithdrawable = 0n; do { - const query = getStreamsByCategory(exa.address.toLowerCase(), last, category); - const { streams } = await request<{ streams: Stream[] }>(subgraphUrl, query); + const { streams } = await request<{ streams: Stream[] }>( + subgraphUrl, + getStreamsByCategory(exa.address.toLowerCase(), last, category), + null, + { origin: 'https://app.exact.ly' }, + ); if (category === 'LockupLinear') { totalWithdrawable += ( await client.multicall({