Skip to content

Commit

Permalink
Merge pull request #458 from beethovenxfi/add-create-time-filter
Browse files Browse the repository at this point in the history
Add pool create time filter
  • Loading branch information
franzns authored Sep 19, 2023
2 parents 8004836 + ce0c5af commit aa78834
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions modules/pool/lib/pool-gql-loader.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,10 @@ export class PoolGqlLoaderService {
in: where?.poolTypeIn || undefined,
notIn: where?.poolTypeNotIn || undefined,
},
createTime: {
gt: where?.createTime?.gt || undefined,
lt: where?.createTime?.lt || undefined,
},
AND: allTokensFilter,
id: {
in: where?.idIn || undefined,
Expand Down
6 changes: 6 additions & 0 deletions modules/pool/pool.gql
Original file line number Diff line number Diff line change
Expand Up @@ -561,6 +561,11 @@ type GqlPoolAprTotal {
total: BigDecimal!
}

input GqlPoolTimePeriod {
gt: Int
lt: Int
}

enum GqlPoolOrderBy {
totalLiquidity
totalShares
Expand All @@ -587,6 +592,7 @@ input GqlPoolFilter {
filterNotIn: [String!]
chainIn: [GqlChain!]
chainNotIn: [GqlChain!]
createTime: GqlPoolTimePeriod
}

enum GqlPoolFilterCategory {
Expand Down

0 comments on commit aa78834

Please sign in to comment.