Using binary option models, create a prediction market for Solana meme coin prices. Users should be able to predict if a meme coin price will end higher or lower within a specified timeframe.
- Make a prediction for meme price
- Close prediction
- Check result with oracle
- Rust
- Solana CLI
- Anchor
git clone [email protected]:HongThaiPham/talent-olympics-prediction-merket-and-blink-for-memecoin.git
cd talent-olympics-prediction-merket-and-blink-for-memecoin
anchor build
anchor test
Test case:
- should create a new prediction market failt because predict in past
- should create a new prediction market successfully
- should close prediction market successfully
- should check prediction result successfully
anchor deploy