Skip to content

Commit

Permalink
fix: removed obsolete script, added order fields to pools endpoint (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
tsifrer committed Jul 26, 2023
2 parents ff2a177 + e15d83b commit a875343
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 188 deletions.
188 changes: 0 additions & 188 deletions ajna/management/commands/fix_lend_apr.py

This file was deleted.

4 changes: 4 additions & 0 deletions ajna/v1/views/pools.py
Expand Up @@ -78,14 +78,18 @@ class PoolsView(RawSQLPaginatedChainView):
days_ago_options (list): List of allowed values for the `days_ago` parameter.
"""

order_nulls_last = True
days_ago_required = False
days_ago_default = 1
days_ago_options = [1, 7, 30, 365]
default_order = "-tvl"
ordering_fields = [
"pledged_collateral",
"pledged_collateral_usd",
"pool_size",
"pool_size_usd",
"debt",
"debt_usd",
"borrow_rate",
"lend_rate",
"total_ajna_burned",
Expand Down

0 comments on commit a875343

Please sign in to comment.