metaDAOproject / futarchy

Programs for market-driven governance
Other
43 stars 36 forks source link

Create Solution for Keying Proposals to DAOs #106

Closed R-K-H closed 5 months ago

R-K-H commented 6 months ago

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.

Henry-E commented 6 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

metaproph3t commented 5 months ago

I think I'm just going to do the quick & dirty solution, which is add dao to the Proposal struct

metaproph3t commented 5 months ago

Addressed via #110