delvtech / hyperdrive

An automated market maker for fixed and variable yield with on-demand terms.
Apache License 2.0
33 stars 4 forks source link

Improve pool discoverability #284

Closed jalextowle closed 10 months ago

jalextowle commented 1 year ago

The HyperdriveFactory emits a Deployed event that can be used to get a list of all of the Hyperdrive pools deployed by a given factory. As of right now, there isn't a single address that can be used to traverse through the factories and get a list of all of the Hyperdrive pools tracked by the Element DAO.

We're in a good position to build a Hyperdrive Registry as all that really remains to be done is to create a registry contract that wraps the Hyperdrive factories and stores an array of factory addresses (or a richer data-structure with more metadata). The best approach may be to re-architect the factories and deployers so that a single registry contract can serve all Hyperdrive deployment needs, which would also solve the problem.

jalextowle commented 10 months ago

This was addressed by @lucas-manuel in his factory PRs.