From 7c1d99489a2e3e35e99df6a1da9cd42351ad0eaf Mon Sep 17 00:00:00 2001 From: Ramin Date: Tue, 30 Jul 2024 01:53:56 +0330 Subject: [PATCH] gitcoin API update --- src/adapters/gitcoin/gitcoinAdapter.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/adapters/gitcoin/gitcoinAdapter.ts b/src/adapters/gitcoin/gitcoinAdapter.ts index c91169c8c..c8f950f9a 100644 --- a/src/adapters/gitcoin/gitcoinAdapter.ts +++ b/src/adapters/gitcoin/gitcoinAdapter.ts @@ -35,14 +35,14 @@ export class GitcoinAdapter implements GitcoinAdapterInterface { async getUserAnalysisScore(address: string): Promise { try { const result = await axios.get( - `${GITCOIN_API_BASE_URL}/passport/analysis/${address.toLowerCase()}`, + `${GITCOIN_API_BASE_URL}/passport/analysis/${address.toLowerCase()}?model_list=ethereum_activity`, { headers: { 'X-API-KEY': this.GitcoinApiKey, }, }, ); - return result.data?.details?.models?.aggregate?.score; + return result.data?.details?.models?.ethereum_activity?.score; } catch (e) { logger.error('getUserAnalysisScore error', e); throw new Error(