TrendMarket is an innovative prediction market using LLM technology to create and execute markets with minimal human involvement. It addresses liquidity fragmentation by having LLMs select popular markets and automatically determine outcomes through multi-LLM voting.
What We Are Solving:
In prediction markets, there exists a dilemma between the quality/quantity of markets available and the fragmentation of liquidity. While markets should leverage user preferences to create appealing opportunities, the more markets that are created, the more liquidity gets fragmented, leading to a poor user experience. We solve this problem by utilizing AI-driven curation.
Another issue in existing prediction markets is the presence of trust points in every aspect—market creation, matching, and execution (e.g., Polymarket's operations). These markets rely heavily on human intervention. In contrast, our product enables likely fully on-chain transactions without the involvement of malicious actors, covering everything from market creation to trading and closing.
Additionally, existing prediction markets often use oracles like Chainlink or UMA. However, these oracles cannot be considered fully trustless. Since they rely on trusted nodes or token-based decision mechanisms, they cannot fundamentally prevent attacks when there is a market with returns that outweigh the cost. We address this issue by using a collective decision-making process powered by multiple AIs.
Overview of the Application:
This application is divided into three main components: the creation of market topics for the prediction market, the AMM contract where users buy and sell tokens, and the integration of proposal outcomes determined by LLMs.
For the AMM contract, we have implemented the CPAMM, which is commonly used in prediction markets. The creation of proposals and the determination of their outcomes are handled by LLMs, eliminating the influence of malicious actors or staking-based manipulation.
Application Details:
The involved entities are the market creators, prediction market participants, as well as the LLM and the AMM smart contract.
Prediction Market Creation
b. Preventing Liquidity Fragmentation
c. Market Details Setup
Token Trading via AMM
Existing prediction markets often rely on oracles like Chainlink and UMA. Chainlink is operated by trusted third-party nodes, and information is updated quickly, with nodes building reputation. On the other hand, UMA uses an Optimistic Oracle, where participants vote using UMA tokens if there is opposition within a set period. However, neither Chainlink nor UMA can be considered fully trustless. Whether due to node trust or token-based voting, they cannot fully prevent attacks if a market exists where the returns exceed the cost. We solve this issue by using a consensus-driven approach involving multiple Als.
To build this prediction market, I implemented a Constant Product AMM in Solidity, referencing Uniswap V2's AMM. The created contracts were deployed on both AirDAO and Ethereum testnets, and I accessed their information using Dynamic and ether.js. A particularly notable and innovative feature is the dynamic market generation system that utilizes the OpenAI API. This system automatically generates markets from news articles and deploys them on the blockchain. This allows us to provide prediction markets based on the most current topics. The project combines various technologies, including Solidity for smart contract development, blockchain networks (AirDAO and Ethereum testnets) for deployment, Dynamic and ether.js for interfacing with the blockchain, and the OpenAI API for generating market content. The integration of AI-powered market generation with blockchain technology is a unique aspect of this project, enabling real-time creation of relevant prediction markets based on current events.