About
## Wave 1 submission
In the first phase, we finalized the concept and began building an unstoppable on-chain prediction market on Massa. Using Autonomous Smart Contracts (ASC), markets are settled automatically with no manual intervention, supporting prediction data from Dusa DEX, network metrics, and BTC, ETH, and MAS prices via the Umbrella Network oracle.
Wave#1 Video Demo:
https://youtu.be/mbhAv_9PX-g
Problem:
Platforms like Polymarket have sometimes intervened to change outcomes or close markets silently, leading to user dissatisfaction and trust issues
Flow:
1. Users create markets predicting Dusa DEX prices, on-chain metrics, or BTC, ETH, MAS prices via Umbrella Oracle. 2. The market creator must lock MAS tokens into either the "YES" or "NO" outcome. - Example: “Will MAS/USDC.e on Dusa DEX reach 0.013 by July 15? 3. Other users can join the market on either side, receiving proportional share tokens 4. At settlement time, the ASC fetches the final data (on-chain or via oracle) and rewards are automatically distributed to the winning side
Smart Contract Progress
- We've written and deployed a minimal smart contract that allows users to create a market entry, set a target price, and fetch the current price from Dusa DEX (Buildnet) and also can store a settlement date and other necessary fields. - During development, we also created test files to ensure the contract works as expected. You can find the code and tests here: - https://github.com/pisuthd/predict-exe/blob/main/assembly/contracts/main.ts - https://github.com/pisuthd/predict-exe/blob/main/assembly/contracts/library.ts - https://github.com/pisuthd/predict-exe/blob/main/assembly/__tests__/e2e.spec.ts For the Dusa integration, we followed the instructions from the trading bot and used smart contract addresses from their documentation. However, we haven't been able to fetch live price data (likely due to a Buildnet issue).
For now, we’ll continue development using internal test price logic, and integrate Dusa DEX, Umbrella Network, and on-chain metrics once those sources are stable and accessible.
Frontend Progress:
- The frontend is built with Vite + React, using a retro UI style via React95. It features a shared desktop interface to display all available markets and a taskbar for actions like creating a new market and connecting/disconnecting a wallet. - Currently, it includes a mock market that displays live price data fetched from the smart contract on Massa Buildnet. - Live now at: https://predict-exe.vercel.app/
## Wave 2 submission
On this wave, we have completed 70–80% of the core functions we aim to achieve, and we can now demonstrate the following flow: - Create a prediction market on BTC, MAS, or ETH prices on the smart contract. The initial creator must stake at least 1 MAS on either the "YES" or "NO" outcome. - Each market has an async call to automatically resolve the result using an on-chain source like an oracle or Dusa DEX (currently using a mock on-chain source), - For example, for a market such as "Will BTC reach $120,000 by July 28, 2025?", the contract will check the on-chain price after the deadline (specifically after 10 periods) and mark whether the result is "YES" or "NO." - During the active period, anyone can stake MAS on either outcome. After the market is resolved, winners can claim their prize based on the amount they staked on the winning side.
The question to predict is fixed to a token price, unlike other prediction markets that can use various event types (e.g., sports or politics,). However, with ASC, this enables us to build a fully decentralized prediction market that is unstoppable and immune to result manipulation.
Improvements:
- Smart Contract: Completed full market creation flow from a create a market, assign data source, asset name, target price and setup async resolution. Functions are also implemented for placing stakes, checking active positions, claiming prizes, and other necessary actions. E2E test has also been implemented. https://github.com/pisuthd/predict-exe/blob/main/assembly/contracts/main.ts https://github.com/pisuthd/predict-exe/blob/main/assembly/__tests__/e2e.spec.ts - UI Integration: Integrated with MassaStation wallet. Users can view their MAS balance and positions across all prediction markets. Users must select an account before interacting (and connect to Buildnet) - UI Features: Users can now create markets, view all active markets, and place stakes by locking MAS tokens into the smart contract using Massa's Web3 & Wallet Providers https://github.com/pisuthd/predict-exe/blob/main/client/src/contexts/account.jsx https://github.com/pisuthd/predict-exe/blob/main/client/src/contexts/market.jsx - Deployment: Deployed on Deweb at predict.massa on Buildnet at the smart contract address: AS1kS2kiaSPqrbj6yTr56GUESdHVfjCciam5dcZ2ge911ngNjZk3. Vercel mirror is also available at https://predict-exe.vercel.app/
Video Summary for Wave#2
https://youtu.be/06XhTdBxgWE
## Wave 3 submission
Wave #3: 3-Minute Video Summary https://youtu.be/5CdKKnwLZgI
We have just completed a rewritten smart contract and introduced a new concept that is more fun and fully leverages Massa’s unique Autonomous Smart Contracts (ASC) with deferred calls. Alongside this, we’ve built a new UI using Next.js and Tailwind CSS, as the previous React95 version was difficult to maintain.
The new Predict.exe allows users to bet on the price direction within a 60-minute timeframe. Users can predict whether the BTC price in the next hour will go up or down and stake with MAS tokens. Each round is automatically created and settled using ASC deferred calls..
Round Breakdown:
- Each round lasts 60 minutes. - Users can place bets during the first 40 minutes. - The last 20 minutes serve as the cutoff period. - Settlement occurs automatically after the round ends, with a delay of about 10 minutes.
This version also introduces the House Pool concept, which acts as a counterparty to user bets.
How to Use
- Connect with MassaWallet, ensuring the network is set to Buildnet. - Go to https://predict-exe.vercel.app and choose the account you want to use. - Check the current round conditions and review odds for “UP” or “DOWN”. - Wait until the round is finalized. - If you win, claim your rewards on the History page.
The new version of the smart contract can be found here (with all tests available): https://github.com/pisuthd/predict-exe/blob/main/assembly/contracts/main.ts
Dapp: https://predict-exe.vercel.app/
The new version has not yet been deployed on DeWeb, but the previous version is still available at: https://predict.dev.massa-deweb.xyz/
Prizes
- Wave 2 grant · 270 USDT
- Wave 3 grant · 189 USDT
From the public Akindo product page. Votes, swipes and the judge score are hackfeed's own.





