Skip to content

Commit

Permalink
✨ circulating-exa: send origin header
Browse files Browse the repository at this point in the history
  • Loading branch information
cruzdanilo committed Jun 27, 2024
1 parent 99b4e06 commit a264d4b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions pages/api/circulating-exa.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down

0 comments on commit a264d4b

Please sign in to comment.