Closed R-K-H closed 5 months ago
Possible solution, make proposal account into a PDA that takes the DAO pubkey and proposal number as seeds? https://github.com/metaDAOproject/futarchy/blob/0bb2ee53f393b1491ccce32a46f954d7563f3892/programs/autocrat_v0/src/lib.rs#L449
I think I'm just going to do the quick & dirty solution, which is add dao
to the Proposal
struct
Addressed via #110
Currently the multi-DAO system affords flexibility for creation of DAOs under one program. This is great and can be SOMEWHAT easily supported in the UI, however tracing proposals ownership is not intuitive.
Under current design schema one would have to trace a proposal through its base and quote vaults to match on a DAO. And requires fetching the DAOs to do so.
A proposed solution is to key the proposal to the DAO is some form or fashion.