{"version":"8.0.0","ontology":{"version":"36.6.0","iri":"https://eidos.software/ontology","class":"https://eidos.software/ontology#Decision"},"type":"decision","key":{"type":"decision","engine":"metadao","chain":"solana-mainnet-beta","decisionId":"CF9QUBS251FnNGZHLJ4WbB2CVRi5BtqJbCqMi47NX1PG"},"id":"kmr05jkvjns85bse","status":"resolved","reason":null,"source":{"store":"published-database","relation":"/data/decisions.json#decisions","authority":"edge-copy","key":"/data/decisions.json","reference":{"revision":"15ca96c1c4949632d726a20e9ad97a89a77bb27f3740ab83474441f613c33f36","digest":"334c3f443cc3ea61e262f782076cdb5e8a483ad54a8706b4bd6bbef539202b35","observedAt":"2026-11-29T05:57:33.898Z","recordedAt":"2026-11-29T14:42:39.552Z"}},"object":{"id":"metadao-solana-mainnet-beta-CF9QUBS251FnNGZHLJ4WbB2CVRi5BtqJbCqMi47NX1PG","eidosId":"kmr05jkvjns85bse","iri":"https://eidos.software/decisions/kmr05jkvjns85bse/","engine":"metadao","chain":"solana-mainnet-beta","decisionId":"CF9QUBS251FnNGZHLJ4WbB2CVRi5BtqJbCqMi47NX1PG","decider":{"account":"7J5yieabpMoiN3LrdfJnRjQiXHgi7f47UuMnyMyR78yy","name":"MetaDAO"},"title":"Develop AMM Program for Futarchy?","openedAt":"2024-01-24T01:00:03.000Z","closesAt":null,"wallets":null,"counted":true,"ledgerCoverage":"not-collected","form":{"engine":"metadao","chain":"solana-mainnet-beta","options":[{"id":"pass","label":"Pass","noOp":false},{"id":"fail","label":"Fail (no change)","noOp":true}],"measure":{"kind":"token-value","metric":"time-weighted conditional token price over the window","thresholdPct":null},"selectedOptionIds":["pass"]},"purpose":{"status":"recorded","source":"/data/proposal-captures.json","title":"Develop AMM Program for Futarchy?","text":["Develop AMM Program for Futarchy?","Overview","In the context of Futarchy, CLOBs have a couple of drawbacks:","Lack of liquidity","Somewhat susceptible to manipulation","Pass/fail market pairs cost 3.75 SOL in state rent, which cannot currently be recouped","Lack of liquidity","Estimating a fair price for the future value of MetaDao under pass/fail conditions is difficult, and most reasonable estimates will have a wide range. This uncertainty discourages people from risking their funds with limit orders near the midpoint price, and has the effect of reducing liquidity (and trading). This is the main reason for switching to AMMs.","Somewhat susceptible to manipulation","With CLOBs there is always a bid/ask spread, and someone with 1 $META can push the midpoint towards the current best bid/ask. Though this could be countered with a defensive for-profit bot, and as Proph3t puts it: this is a 1/n problem.","Still, users can selectively crank the market of their choosing. Defending against this (cranking markets all the time) would be a bit costly.","Similarly, VWAP can be manipulated by wash trading. An exponential moving average has the same drawbacks in this context as the existing linear-time system.","State rent costs","If we average 3-5 proposals per month, then annual costs for market creation is 135-225 SOL, or $11475-$19125 at current prices. AMMs cost almost nothing in state rent.","Solution","An AMM would solve all of the above problems and is a move towards simplicity. We can use the metric: liquidity-weighted price over time. The more liquidity that is on the books, the more weight the current price of the pass or fail market is given. Every time there is a swap, these metrics are updated/aggregated. By setting a high fee (3-5%) we can both: encourage LPs, and aggressively discourage wash-trading and manipulation.","These types of proposals would also require that the proposer lock-up some initial liquidity, and set the starting price for the pass/fail markets.","With this setup, liquidity would start low when the proposal is launched, someone would swap and move the AMM price to their preferred price, and then provide liquidity at that price since the fee incentives are high. Liquidity would increase over the duration of the proposal.","The current CLOB setup requires a minimum order size of 1 META, which is effectively a spam filter against manipulating the midpoint within a wide bid/ask spread. AMMs would not have this restriction, and META could be traded at any desired granularity.","Additional considerations","What if a user wants to provide one-sided liquidity?","The most recent passing proposal will create spot markets outside of the pass/fail markets. There will be an AMM, and there is no reason not to create a CLOB as well. Most motivations for providing one-sided liquidity can be satisfied by regular spot-markets, or by arbitraging between spot markets and pass/fail markets. In the future, it may be possible to setup limit orders similarly to how Jupiter limit orders work with triggers and keepers.","Switching to AMMs is not a perfect solution, but I do believe it is a major improvement over the current low-liquidity and somewhat noisy system that we have now.","Implementation","Program + Review","Frontend","Program + Review","Program changes:","Write a basic AMM, which tracks liquidity-weighted average price over its lifetime","Incorporate the AMM into autocrat + conditional vault","Get feedback to decide if the autocrat and conditional vault should be merged","Feature to permissionlessly pause AMM swaps and send back positions once there is a verdict (and the instructions have been run, in the case of the pass market)","Feature to permissionlessly close the AMMs and return the state rent SOL, once there are no positions","Additional quality-of-life changes:","Loosen time restrictions on when a proposal can be created after the markets are created (currently set to 50 slots, which is very restrictive and has led to extra SOL costs to create redundant markets). Alternatively, bundle these commands in the same function call.","If a proposal instruction does not work, then revert to fail after X number of days (so that funds dont get stuck forever).","Ownership:","joebuild will write the program changes","A review will be done by an expert in MetaDAO with availability","Frontend","The majority of the frontend integration changes will be completed by 0xNalloK.","Timeline","Estimate is 3 weeks from passing proposal, with an additional week of review and minor changes.","Budget and Roles","400 META on passing proposal, with an additional 800 META on completed migration.","program changes (joebuild)","program review (tbd)","frontend work (0xNalloK)","Rollout & Risks","The main program will be deployed before migration of assets. This should allow for some testing of the frontend and the contract on mainnet. We can use a temporary test subdomain.","The risks here include:","Standard smart contract risk","Adoption/available liquidity: similar to an orderbook, available liquidity will be decided by LPs. AMMs will incentivize LP'ing, though adoption within the DAO is not a certainty.","Section for feedback changes","Any important changes or feedback brought up during the proposal vote will be reflected here, while the text above will remain unchanged.","It was pointed out that there are ways to recoup openbook state rent costs, though it would require a migration of the current autocrat program."],"url":"https://metadao.fi/decisions/metadao-005"},"execution":{"status":"recorded","source":"/data/metadao-legacy-decisions.json","state":"executed","at":null,"evidence":["CF9QUBS251FnNGZHLJ4WbB2CVRi5BtqJbCqMi47NX1PG"],"note":"As read at slot 475248267 (2026-11-29T05:57:50.741Z): autocrat_v0 runs a passed proposal's instruction inside its finalization, which fails whole if the instruction does: the account reads Passed only once it ran. The account does not keep when."},"outcome":{"status":"withheld","reason":"Earlier program (Autocrat v0.1): the proposal account does not keep when its market closed, so there is no close to measure from."},"impact":{"status":"withheld","reason":"The proposal's finalization TWAPs are not on the record."},"capital":{"status":"withheld","reason":"The account reads the decision executed, but its program keeps no execution transaction and the record has not located it, so what it moved is not read."},"agents":[{"role":"proposer","account":"XXXvLz1B89UtcTsg2hT3cL9qUJi5PqEEBTHg57MfNkZ","name":null}],"authorities":[{"role":"dao","account":"7J5yieabpMoiN3LrdfJnRjQiXHgi7f47UuMnyMyR78yy","name":"MetaDAO"}],"analysisRun":{"eidosId":"6yj2vhj7xt04s1ex","runId":"7b749830e9704382c5be0121863ca666191d3efcf0bb1794a87c17fb1568cdef","inputDigest":"cb7a5e37d292d348f6d04cfa625c626b6eb3677ef6c20d64cdb3edcde7913fc6","codeVersion":"8f3eab9164a74d6157f3a609c817ec48d132daa6d47975dce8fd14d8465f64ba","supersedes":null},"analysis":{"schemaVersion":1,"subject":{"engine":"metadao","chain":"solana-mainnet-beta","decisionId":"CF9QUBS251FnNGZHLJ4WbB2CVRi5BtqJbCqMi47NX1PG"},"evaluatedAt":"2026-11-24T06:09:42.215Z","cutoffAt":"2026-11-24T06:09:42.215Z","evidence":[{"id":"cb7a5e37d292d348f6d04cfa625c626b6eb3677ef6c20d64cdb3edcde7913fc6","source":"retained-input:cb7a5e37d292d348f6d04cfa625c626b6eb3677ef6c20d64cdb3edcde7913fc6","revision":"cb7a5e37d292d348f6d04cfa625c626b6eb3677ef6c20d64cdb3edcde7913fc6","digest":"cb7a5e37d292d348f6d04cfa625c626b6eb3677ef6c20d64cdb3edcde7913fc6","observedAt":null,"knownAt":"2026-11-24T06:09:42.215Z"}],"results":[{"id":"disclosures","instrument":{"id":"disclosures","version":"1.0.1"},"applicability":"applicable","availability":"available","completeness":"partial","freshness":"historical","reason":"","evidenceIds":["cb7a5e37d292d348f6d04cfa625c626b6eb3677ef6c20d64cdb3edcde7913fc6"],"assumptions":[],"limitations":["Presence of a disclosed term does not verify its truth or execution."],"payload":{"kind":"disclosures","fields":[{"id":"proposal-account","label":"Proposal account","state":"present","note":"Confirmed onchain at the address shown, on Autocrat v0.1 (metaX99LHn3A7Gr7VAcCfXhpfocvpMpqQ3eyp3PGUUq)."},{"id":"options","label":"Options","state":"present","note":"2 options: Pass; Fail (no change)."},{"id":"selection-rule","label":"Selection rule","state":"missing","note":"The threshold finalization applied was the DAO's at that moment, which the proposal account does not keep."},{"id":"window-timing","label":"Window timing","state":"missing","note":"The opening is on the record; the close is not: the program finalizes against the DAO's proposal length at finalization, which the proposal does not keep."},{"id":"question","label":"Question","state":"present","note":"The proposal links its description: https://hackmd.io/@joebuild/proposal-clob-to-amm."},{"id":"proposer","label":"Proposer","state":"present","note":"Proposed by XXXvLz1B89UtcTsg2hT3cL9qUJi5PqEEBTHg57MfNkZ."},{"id":"instruction","label":"Stored action","state":"present","note":"The stored instruction calls TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA."}]}},{"id":"participation","instrument":{"id":"participation","version":"2.0.0"},"applicability":"applicable","availability":"unavailable","completeness":"unknown","freshness":"historical","reason":"No swap record is available.","evidenceIds":["cb7a5e37d292d348f6d04cfa625c626b6eb3677ef6c20d64cdb3edcde7913fc6"],"assumptions":[],"limitations":[],"payload":null},{"id":"market-selection","instrument":{"id":"market-selection","version":"1.0.0"},"applicability":"applicable","availability":"unavailable","completeness":"unknown","freshness":"historical","reason":"No time-weighted price observation is available.","evidenceIds":["cb7a5e37d292d348f6d04cfa625c626b6eb3677ef6c20d64cdb3edcde7913fc6"],"assumptions":[],"limitations":[],"payload":null},{"id":"selection-rule","instrument":{"id":"selection-rule","version":"1.0.0"},"applicability":"applicable","availability":"available","completeness":"partial","freshness":"historical","reason":"","evidenceIds":["cb7a5e37d292d348f6d04cfa625c626b6eb3677ef6c20d64cdb3edcde7913fc6"],"assumptions":[],"limitations":["Semantic observations describe disclosed terms only — never an attack finding, an indicator, or a classification. Monitored playbooks stay withheld without indexed forensics."],"payload":{"kind":"rule-observations","observations":[]}},{"id":"closing-window","instrument":{"id":"closing-window","version":"1.0.0"},"applicability":"applicable","availability":"unavailable","completeness":"unknown","freshness":"historical","reason":"The closing stretch requires the threshold and both window bounds.","evidenceIds":["cb7a5e37d292d348f6d04cfa625c626b6eb3677ef6c20d64cdb3edcde7913fc6"],"assumptions":[],"limitations":[],"payload":null},{"id":"recycled-stake-treasury-extraction","instrument":{"id":"recycled-stake-treasury-extraction","version":"1.0.3"},"applicability":"applicable","availability":"unavailable","completeness":"unknown","freshness":"historical","reason":"the trade ledger does not read Autocrat v0.1's markets, so this decision's trades and prices are not held","evidenceIds":["cb7a5e37d292d348f6d04cfa625c626b6eb3677ef6c20d64cdb3edcde7913fc6"],"assumptions":[],"limitations":[],"payload":null},{"id":"late-window-outcome-steering","instrument":{"id":"late-window-outcome-steering","version":"3.0.0"},"applicability":"applicable","availability":"unavailable","completeness":"unknown","freshness":"historical","reason":"the trade ledger does not read Autocrat v0.1's markets, so this decision's trades and prices are not held","evidenceIds":["cb7a5e37d292d348f6d04cfa625c626b6eb3677ef6c20d64cdb3edcde7913fc6"],"assumptions":[],"limitations":[],"payload":null},{"id":"wash-volume-alignment-inflation","instrument":{"id":"wash-volume-alignment-inflation","version":"4.0.0"},"applicability":"applicable","availability":"unavailable","completeness":"unknown","freshness":"historical","reason":"the trade ledger does not read Autocrat v0.1's markets, so this decision's trades and prices are not held","evidenceIds":["cb7a5e37d292d348f6d04cfa625c626b6eb3677ef6c20d64cdb3edcde7913fc6"],"assumptions":[],"limitations":[],"payload":null},{"id":"coordinated-multiwallet-stake-assembly","instrument":{"id":"coordinated-multiwallet-stake-assembly","version":"3.0.0"},"applicability":"applicable","availability":"unavailable","completeness":"unknown","freshness":"historical","reason":"the trade ledger does not read Autocrat v0.1's markets, so this decision's trades and prices are not held","evidenceIds":["cb7a5e37d292d348f6d04cfa625c626b6eb3677ef6c20d64cdb3edcde7913fc6"],"assumptions":[],"limitations":[],"payload":null},{"id":"prior-decisions","instrument":{"id":"prior-decisions","version":"1.0.0"},"applicability":"applicable","availability":"unavailable","completeness":"unknown","freshness":"historical","reason":"Earlier decisions or the window opening time are unavailable.","evidenceIds":["cb7a5e37d292d348f6d04cfa625c626b6eb3677ef6c20d64cdb3edcde7913fc6"],"assumptions":[],"limitations":[],"payload":null},{"id":"case-studies","instrument":{"id":"case-studies","version":"1.0.0"},"applicability":"applicable","availability":"unavailable","completeness":"unknown","freshness":"historical","reason":"No published case study in the attack library names this organization.","evidenceIds":["cb7a5e37d292d348f6d04cfa625c626b6eb3677ef6c20d64cdb3edcde7913fc6"],"assumptions":[],"limitations":[],"payload":null},{"id":"measured-outcome","instrument":{"id":"measured-outcome","version":"1.0.0"},"applicability":"not-applicable","availability":"unavailable","completeness":"unknown","freshness":"historical","reason":"This instrument reads measured-outcome resolution records.","evidenceIds":["cb7a5e37d292d348f6d04cfa625c626b6eb3677ef6c20d64cdb3edcde7913fc6"],"assumptions":[],"limitations":[],"payload":null}],"interpretations":[]}},"links":[{"id":"decision-governed-by","target":"dao-account","keys":[{"dao":"7J5yieabpMoiN3LrdfJnRjQiXHgi7f47UuMnyMyR78yy"}]},{"id":"decision-for-organization","target":"organization","keys":[{"slug":"metadao"}]},{"id":"decision-has-window","target":"window","keys":[{"engine":"metadao","chain":"solana-mainnet-beta","decisionId":"CF9QUBS251FnNGZHLJ4WbB2CVRi5BtqJbCqMi47NX1PG"}]}],"limitations":["Joined every fifteen minutes from the documents it cites; each part names its source or is withheld with the reason. What followed, impact and capital are withheld until they are measured."]}