Skip to content

Instantly share code, notes, and snippets.

View coderwithsense's full-sized avatar

Himanshu coderwithsense

View GitHub Profile
@coderwithsense
coderwithsense / PredictionFactory.sol
Created March 30, 2025 09:49
Deploys new PredictionGame contracts and tracks them by creator and token pair
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;
import "./PredictionGame.sol";
contract PredictionFactory {
address[] public allGames;
mapping(address => address[]) public userGames;
event GameCreated(address game, address creator);
@coderwithsense
coderwithsense / OracleProvider.sol
Created March 30, 2025 09:50
Deploys new PredictionGame contracts and tracks them by creator and token pair. Core contract per market. Handles mint, burn, snapshot, claim, and progressive fee logic.
// Still to be implemented