Skip to content
This repository has been archived by the owner on Oct 14, 2022. It is now read-only.

Commit

Permalink
Merge branch 'deprecate-config' of github.com:solendprotocol/liquidat…
Browse files Browse the repository at this point in the history
…or into deprecate-config
  • Loading branch information
solendvega committed Jun 23, 2022
2 parents 4a833e6 + 0cad81e commit 1d3b646
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,15 @@ export async function getMarkets(): Promise<MarketConfig[]> {
backoffFactor *= 2;
}
attemptCount += 1;
const resp = await got(`https://api.solend.fi/v1/markets/configs?deployment=${getApp()}`, { json: true });
const resp = await got(`https://api.solend.fi/v1/markets/configs?scope=solend&deployment=${getApp()}`, { json: true });
const data = resp.body as MarketConfig[];
return data;
} catch (error) {
console.error('error fetching /v1/markets: ', error);
console.error('error fetching /v1/markets/configs ', error);
}
} while (attemptCount < maxAttempt);

throw new Error('failed to fetch /v1/markets');
throw new Error('failed to fetch /v1/markets/configs');
}

export const network = getApp();
Expand Down

0 comments on commit 1d3b646

Please sign in to comment.