Skip to content

Commit

Permalink
Merge pull request #187 from balancer/onchain-pools
Browse files Browse the repository at this point in the history
update onchain pools info.
  • Loading branch information
johngrantuk authored Dec 4, 2024
2 parents ea6a925 + fdef779 commit cfefa5c
Showing 1 changed file with 19 additions and 4 deletions.
23 changes: 19 additions & 4 deletions docs/integration-guides/aggregators/fetching-pools-and-data.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,26 @@ query MyQuery {

## Onchain

It is also possible to query a list of pools from each pool factory.
It is possible to query a list of pools from each pool factory using the following:

:::info Work in progress
WIP for pool factories
:::
```solidity
/**
* @notice Return a subset of the list of pools deployed by this factory.
* @dev `start` must be a valid index, but if `count` exceeds the total length, it will not revert, but simply
* stop at the end and return fewer results than requested.
*
* @param start The index of the first pool to return
* @param count The maximum number of pools to return
* @return pools The list of pools deployed by this factory, starting at `start` and returning up to `count` pools
*/
function getPoolsInRange(uint256 start, uint256 count) external view returns (address[] memory pools);
/**
* @notice Return the complete list of pools deployed by this factory.
* @return pools The list of pools deployed by this factory
*/
function getPools() external view returns (address[] memory pools);
```

# Fetching Pool Data

Expand Down

0 comments on commit cfefa5c

Please sign in to comment.