Skip to content

Commit

Permalink
atlendis fix
Browse files Browse the repository at this point in the history
  • Loading branch information
slasher125 committed Oct 25, 2023
1 parent a5586f2 commit ecd8369
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/adaptors/atlendis/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,11 @@ const urlPolygon = `${baseUrl}/atlendis-hosted-service-polygon`;

const query = gql`
{
poolStatuses {
v1PoolStatuses {
state
pool {
id
identifier
parameters {
underlyingToken
}
}
normalizedAvailableAmount
normalizedBorrowedAmount
Expand Down Expand Up @@ -62,7 +59,7 @@ const main = async () => {
let data = await request(urlPolygon, query);

// build pool objects
data = data.poolStatuses
data = data.v1PoolStatuses
.filter((p) => p.state !== 'Closed')
.map((el) => buildPool(el));

Expand Down

0 comments on commit ecd8369

Please sign in to comment.