Skip to content

Commit

Permalink
fix(atlendis-v1): Fix API query (Zapper-fi#874)
Browse files Browse the repository at this point in the history
  • Loading branch information
FredCoen authored and volt62 committed Aug 2, 2022
1 parent 34c1996 commit 538ea1d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/apps/atlendis-v1/graphql/getPositions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ export const GET_USER_POSITIONS = gql`
normalizedAmount
pool {
parameters {
underlyingToken
token {
address
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export class PolygonAtlendisV1BalanceFetcher implements BalanceFetcher {
const positions = await Promise.all(
data.positions.map(async position => {
const underlyingToken = baseTokens.find(
t => t.address.toLowerCase() === position.pool.parameters.underlyingToken.toLowerCase(),
t => t.address.toLowerCase() === position.pool.parameters.token.address.toLowerCase(),
);
if (!underlyingToken) return null;
const positionManagerAddress = '0x55E4e70a725C1439dac6B9412B71fC8372Bd73e9';
Expand Down

0 comments on commit 538ea1d

Please sign in to comment.