futarchy
futarchy copied to clipboard
Programs for market-driven governance
We create the LP token amounts [based on the USDC amount provided](https://github.com/metaDAOproject/futarchy/blob/859cf30da6e7fb5e040378ec7d8e77c39b98638c/programs/amm/src/instructions/add_liquidity.rs#L92). USDC has 6 decimals. Currently the LP mint has 9 decimals, so it'll look to the user like...
[This line](https://github.com/metaDAOproject/futarchy/blob/859cf30da6e7fb5e040378ec7d8e77c39b98638c/programs/autocrat/src/instructions/finalize_proposal.rs#L120) assumes that proposals are created after or during AMMs, but we can create AMMs first.
The metadata upload is extremely rigid and requires mappings which need to be updated depending on the token etc. Ideally we afford some better descriptors and parameters such that we...
Similar to how `conditional_vault` has an [add_metadata_to_conditional_tokens](https://github.com/metaDAOproject/futarchy/blob/4485b3cfe29b8f73351377a9e0a4158c5fb79e23/programs/conditional_vault/src/lib.rs#L49-L54) function and a corresponding script that allows us to upload metadata to conditional tokens, we should add a function / script for the...
At least while we still use openbook and are opening up the metadao program to new DAOs, we can use the dollar value of a project's token to help determine...
Something annoying is that TypeScript generates `[TransactionInstruction](https://solana-labs.github.io/solana-web3.js/classes/TransactionInstruction.html)`s, which have programId, keys, and data, while Rust instructions have programId, accounts, and data. Since we're going to be mostly building instructions from...
The AMM swap and TWAP logic has been put in [struct implementations](https://github.com/metaDAOproject/futarchy/blob/5b1ed415573449d9ebde2a8dcd1a354cd4ed58eb/programs/amm/src/state/amm.rs#L81), which means we can test it from Rust-based unit tests. We have [some unit tests](https://github.com/metaDAOproject/futarchy/blob/5b1ed415573449d9ebde2a8dcd1a354cd4ed58eb/programs/amm/src/state/amm.rs#L240), but they're extremely...
I've updated this for review in DEVELOP. This includes - new tokens for the management of DAOs on Devnet - cleaned up initialize with guard rails and checks - finalize...
To mention some of the simple design decisions as well. Here's the flow of creating the metadata account and using it - the DAO treasury automatically signs and creates this...