Skip to content

Factory: Enhance query_pools to include more information #124

Closed
@msteiner96

Description

@msteiner96

Problem:
Currently, the query_pools function returns only an array of pool addresses. However, to provide users with a more comprehensive view of the pools and to facilitate various operations, we should consider extending this query to include additional information.

Solution:
Enriching the query_pools function to return more detailed information about each pool. Specifically, I suggest including the following data:

  1. Pool Tokens:

    • Addresses of both tokens involved in the pool.
    • Address of the LP (Liquidity Provider) Share token.
    • The current balance in the pool for each token.

    This information will allow the frontend to quickly identify the assets in each pool and their current holdings.

  2. Fees:

    • Include information about the fees associated with each pool.

Implementation Steps:
To implement this enhancement, the following steps are proposed:

  1. Update the query_pools function in the smart contract to include the requested information.
  2. Modify the documentation to reflect the changes made to the query function, ensuring that users and developers are aware of the expanded data available.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions