Skip to content

Commit aa856ab

Browse files
authored
Merge pull request #1273 from curvefi/fix/remove-prices-api-pagination
fix: remove prices api pagination
2 parents 2c66db3 + 46e739e commit aa856ab

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/prices-api/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@curvefi/prices-api",
3-
"version": "1.1.14",
3+
"version": "1.1.16",
44
"license": "MIT",
55
"type": "module",
66
"scripts": {

packages/prices-api/src/pools/api.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ import { getTimeRange } from '../timestamp'
44
import * as Parsers from './parsers'
55
import type * as Responses from './responses'
66

7-
export async function getPools(chain: Chain, page: number = 1, perPage: number = 9999, options?: Options) {
7+
export async function getPools(chain: Chain, options?: Options) {
88
const host = getHost(options)
9-
const resp = await fetch<Responses.GetPoolsResponse>(`${host}/v1/chains/${chain}?page=${page}&per_page=${perPage}`)
9+
const resp = await fetch<Responses.GetPoolsResponse>(`${host}/v1/chains/${chain}`)
1010

1111
return {
1212
chain: resp.chain,

0 commit comments

Comments
 (0)