Skip to content

Conversation

gangov
Copy link
Contributor

@gangov gangov commented Sep 8, 2023

Factory: refactors the storage, so it keeps more information about th…e liquidity pool

@gangov gangov linked an issue Sep 8, 2023 that may be closed by this pull request
@gangov gangov self-assigned this Sep 8, 2023
@ueco-jb
Copy link
Member

ueco-jb commented Sep 8, 2023

Add two queries:
query_pool_details(pool_address)
query_all_pool_details()
Both of those queries invoke query_pool_info query on a given pool contract.

… or in bulk. Refactors the logic of what's saved in ledger
…ols. Initially it didn't worked because the wasm hash of the lp_contract fro the setup.rs file is the same. Alternative doesn't work either
@gangov
Copy link
Contributor Author

gangov commented Sep 8, 2023

how are we supposed to test the functionality of the factory deploying multiple liquidity_pools when the lp_wasm_hash is the same every time we deploy a new liquidity_pool?

@gangov gangov requested a review from ueco-jb September 8, 2023 22:38
@gangov
Copy link
Contributor Author

gangov commented Sep 8, 2023

btw what are the fees, something I couldn't understand

@ueco-jb ueco-jb marked this pull request as ready for review September 11, 2023 09:18
gangov and others added 5 commits September 11, 2023 20:24
Pair: adds function to query total_fee_bps for a pair
…th testing the deployment of multiple liquidity pools
…ration; Compare values of the new pairs in test
…hat will return 1:1 the struct needed in the Factory contract.

Factory: refacts, extends the test and reduces the number of calls to the Pair contract.
Copy link
Member

@ueco-jb ueco-jb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just some minor adjustments left. The most important would be to attach pool's address to the response.

…, updates tests. Pair: adds new field for the factory response. Updates CHANGELOG.md
@gangov gangov requested a review from ueco-jb September 14, 2023 14:07
Copy link
Member

@ueco-jb ueco-jb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@gangov gangov merged commit b4eb70b into main Sep 14, 2023
@gangov gangov deleted the 124-factory-enhance-query_pools-to-include-more-information branch September 14, 2023 15:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Factory: Enhance query_pools to include more information
2 participants