{"repo":"fluidity-money/9lives.so","free":true,"listed":false,"github":"https://github.com/fluidity-money/9lives.so","clone":"git clone https://github.com/fluidity-money/9lives.so.git","description":"9lives is Arbitrum's most advanced short-term prediction market.","language":"TypeScript","stars":21,"topics":["arbitrum","ethereum","evm","stylus","amm","dpm","dppm","market","prediction-market"],"license":"MIT","category":"blockchain-web3","readme_excerpt":"9lives 9lives is a prediction market protocol built on Arbitrum Stylus, supporting both a Dynamic Pari-Mutuel Prediction Market (DPPM) model and a Constant Product AMM model. The core contracts are written in Rust and compiled to WASM, with supporting Solidity contracts for proxies, the Vault, and the TradingBeacon. If you're interested in running prediction markets using 9lives (including hosted graph infrastructure), reach out via this form. --- How the contracts work The system follows a factory/proxy pattern. The Factory deploys Trading contract proxies and Share ERC20 proxies for each market. Each Trading contract is a beacon proxy that delegates calls to one of four implementation facets (mint, extras, quotes, price) based on the function selector, looked up via the TradingBeacon. There are separate implementations for DPPM and AMM backends, selected at deploy time. Contract facets Each Trading contract is split into four facets, each compiled as a separate WASM binary with either the trading-backend-dppm or trading-backend-amm feature flag. The TradingBeacon maps function selectors to the correct facet address using a byte in the selector: Facet Responsibility Key functions ------- --------------- --------------- Mint ( contract trading mint.rs ) Buying and selling shares mint , burn (AMM only) Extras ( contract trading extras.rs ) Constructor, state queries, deciding outcomes ctor , decide , details , share addr , outcome list Quotes ( contract trading quotes.rs ) Quo","default_branch":null,"files":null,"tree":[],"storefront":"/r/fluidity-money","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/fluidity-money/9lives.so/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}