Skip to content

Commit

Permalink
gitcoin API update
Browse files Browse the repository at this point in the history
  • Loading branch information
RamRamez committed Jul 29, 2024
1 parent c06d76b commit 79cac72
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/adapters/gitcoin/gitcoinAdapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,14 @@ export class GitcoinAdapter implements GitcoinAdapterInterface {
async getUserAnalysisScore(address: string): Promise<number> {
try {
const result = await axios.get(
`${GITCOIN_API_BASE_URL}/passport/analysis/${address.toLowerCase()}?model_list=ethereum_activity`,
`${GITCOIN_API_BASE_URL}/passport/analysis/${address.toLowerCase()}`,
{
headers: {
'X-API-KEY': this.GitcoinApiKey,
},
},
);
return result.data?.details?.models?.ethereum_activity?.score;
return result.data?.details?.models?.aggregate?.score;
} catch (e) {
logger.error('getUserAnalysisScore error', e);
throw new Error(
Expand Down

0 comments on commit 79cac72

Please sign in to comment.