Smart Contract Deployment Status
Last Updated: January 27, 2026Network: Base Sepolia (Chain ID: 84532)
Latest Deployment: January 26, 2026 at 15:57:37 UTC
β Current Deployed Contracts (v2.1.0)
1. PredictaCoreV2 (UUPS Upgradeable Proxy)
Proxy Address:0x0828FCc983E7d0e9DD58B2a0A985c62e3ecb6eB6Implementation Address:
0xda057595F1667FfA1436eFCd98102b437c3bF7f1Version: 2.1.0 (with Conditional Orders)
Deployment Date: January 26, 2026 15:57:37 UTC
Upgrade Transaction:
0x262c48eb0bc740e689ff96de61b438330de25e4575449b3100c15398e4345c3c
Features:
- β Gasless betting with PUSD token
- β Market creation and resolution
- β Limit orders (on-chain)
- β Conditional orders: Take Profit, Stop Loss, Trailing Stop Loss
- β UUPS upgradeable pattern
- β ReentrancyGuard protection
- β Ownable access control
2. SimplePUSD (ERC-20 Token)
Address:0x3a0bc621A6f1A80529C6C214c3dAa9386D045957Symbol: PUSD
Decimals: 18
Type: Non-transferable platform token
Purpose: Gasless betting currency Features:
- β Minting controlled by RewardsController
- β Non-transferable (platform-specific)
- β ERC-20 compatible for approvals
3. SimplePUSDController (Rewards Controller)
Proxy Address:0x0b861fBDEeC6f6800019453189EFfB25a5f84828Purpose: Mint PUSD for user rewards and signup bonuses
Features:
- β 100 PUSD signup bonus
- β Milestone-based rewards
- β Admin-controlled minting
π Deployment History
v2.1.0 - Conditional Orders Upgrade
Date: January 26, 2026 15:57:37 UTCBroadcast:
/broadcast/UpgradePredictaCoreV2.s.sol/84532/run-1769443057484.json
Changes:
- Added
ConditionalOrderstruct and mappings - Added
ConditionalOrderTypeenum (TP/SL/TSL) - Added functions:
createConditionalOrder()executeConditionalOrder()updateTrailingStop()cancelConditionalOrder()getUserConditionalOrders()getMarketConditionalOrders()
- Deploy new implementation:
0x42bc2e8ae0ce59d4ed1d1e404a328287f5f9239eab86247a7e1486bef9005ec7 - Upgrade proxy:
0x262c48eb0bc740e689ff96de61b438330de25e4575449b3100c15398e4345c3c - Configure PUSD token:
0xa54b3315e3295c619f4dcc8a2288181cca2cf35b69d1166b0e8c0341655b6181 - Configure rewards controller:
0x1c469b9823eeb9643592105f1d96bdffaf51d59e177d645935527dcf203416eb
v2.0.0 - PUSD Integration
Date: January 25, 2026 16:57 UTCBroadcast:
/broadcast/UpgradePredictaCoreV2.s.sol/84532/run-1769360223728.json
Changes:
- Migrated from ETH-based to PUSD-based betting
- Added gasless transaction support
- Integrated with SimplePUSD token
- Added RewardsController support
- Maintained backward compatibility with ETH betting
v1.0.0 - Initial PUSD Ecosystem Deployment
Date: January 25, 2026 16:55 UTCBroadcast:
/broadcast/DeployPUSDEcosystem.s.sol/84532/run-1769360100543.json
Deployed:
- SimplePUSD token
- SimplePUSDController proxy
- Initial token configuration
π Contract Verification Status
PredictaCoreV2
- β Source code deployed
- β UUPS proxy verified
- β Implementation contract functional
- β οΈ Etherscan verification: PENDING (manual verification needed)
SimplePUSD
- β Source code deployed
- β οΈ Etherscan verification: PENDING
SimplePUSDController
- β Source code deployed
- β UUPS proxy configured
- β οΈ Etherscan verification: PENDING
π Configuration Summary
PredictaCoreV2 Settings
Keeper Wallet
Address: Configured viaKEEPER_PRIVATE_KEY environment variablePurpose: Execute automated limit orders and conditional orders
Gas: Sponsored by Pimlico/CDP paymasters (gasless)
Execution Frequency: Every 30 seconds via Cloud Scheduler
π Upgrade Process
UUPS Upgrade Pattern
The contract uses OpenZeppelinβs UUPS (Universal Upgradeable Proxy Standard) pattern:- Proxy Contract:
0x0828FCc983E7d0e9DD58B2a0A985c62e3ecb6eB6(never changes) - Implementation Contract:
0xda057595F1667FfA1436eFCd98102b437c3bF7f1(can be upgraded) - Storage: All state stored in proxy, preserved during upgrades
How to Upgrade
π§ͺ Testing Status
Unit Tests
- β Market creation and betting
- β PUSD approval and transfer
- β Limit order placement
- β Conditional order creation
- β οΈ Conditional order execution: NEEDS TESTING
- β οΈ Trailing stop loss updates: NEEDS TESTING
Integration Tests
- β Gasless transactions via Pimlico
- β Gasless transactions via CDP
- β PUSD minting and distribution
- β οΈ Keeper wallet execution: NEEDS TESTING
- β οΈ Cross-contract interactions: NEEDS TESTING
Test Command
π Known Issues
Issue #1: Firestore Sync for Automated Orders
Severity: π΄ CriticalStatus: Identified, solution proposed
Affected: Limit orders, TP/SL/TSL executed by keeper wallet
Details: See TRADING_SYSTEM_ANALYSIS.md
Issue #2: Etherscan Verification
Severity: π‘ MediumStatus: Pending manual verification
Affected: All contracts
Action Required: Manually verify contracts on Basescan
π¦ Contract Sizes
| Contract | Size | Limit | Status |
|---|---|---|---|
| PredictaCoreV2 | ~18 KB | 24 KB | β OK |
| SimplePUSD | ~2 KB | 24 KB | β OK |
| SimplePUSDController | ~8 KB | 24 KB | β OK |
π Important Links
Blockchain Explorers
- Base Sepolia: https://sepolia.basescan.org
- PredictaCoreV2 Proxy: https://sepolia.basescan.org/address/0x0828FCc983E7d0e9DD58B2a0A985c62e3ecb6eB6
- PUSD Token: https://sepolia.basescan.org/address/0x3a0bc621A6f1A80529C6C214c3dAa9386D045957
- Controller: https://sepolia.basescan.org/address/0x0b861fBDEeC6f6800019453189EFfB25a5f84828
Documentation
π Next Steps
Immediate Actions (This Week)
-
Verify contracts on Basescan
- PredictaCoreV2 implementation
- SimplePUSD token
- SimplePUSDController
-
Test keeper wallet execution
- Place limit orders on testnet
- Verify automated execution works
- Monitor Cloud Scheduler logs
-
Implement Firestore sync fix
- Add Firestore updates to keeper execution
- Test with real orders
- Deploy updated Cloud Function
Short-term (Next 2 Weeks)
-
Add contract events indexing
- Event listener for
LimitOrderExecuted - Event listener for
ConditionalOrderExecuted - Event listener for
TrailingStopUpdated
- Event listener for
-
Build event-driven indexer
- Cloud Function to parse events
- Update Firestore portfolios
- Handle all order types
Long-term (Next Month)
-
Security audit preparation
- Comprehensive test coverage
- Gas optimization
- Access control review
-
Mainnet deployment planning
- Migration strategy
- User communication
- Rollback procedures
π Security Considerations
Access Control
- β
Owner-only functions protected with
onlyOwnermodifier - β UUPS upgrade restricted to owner
- β Reentrancy guards on critical functions
- β RewardsController minting limited to authorized address
Emergency Procedures
- Pause Trading: Update
minBetAmountto max value (temporary) - Upgrade Contract: Deploy new implementation via UUPS
- Emergency Withdrawal: Admin can withdraw contract PUSD balance
- Kill Switch: Transfer ownership to multisig or burn (irreversible)
π Gas Optimization
Function Gas Costs (Estimated)
| Function | Avg Gas | Cost @ 1 Gwei |
|---|---|---|
placeBetWithPUSD() | ~150,000 | $0.0002 |
placeLimitOrder() | ~180,000 | $0.0003 |
createConditionalOrder() | ~200,000 | $0.0003 |
executeConditionalOrder() | ~120,000 | $0.0002 |
updateTrailingStop() | ~80,000 | $0.0001 |
π― Summary
β Whatβs Working
- PredictaCoreV2 v2.1.0 deployed and operational
- PUSD token integrated with gasless transactions
- Limit orders and conditional orders on-chain
- UUPS upgradeable architecture
- Keeper wallet configured for automated execution
β οΈ What Needs Attention
- Etherscan verification pending
- Firestore sync for automated orders missing
- Keeper execution needs production testing
- Event indexing not yet implemented
π Major Achievements
- Successfully upgraded to v2.1.0 with conditional orders
- All contracts deployed on Base Sepolia
- Gasless transaction architecture working
- Blockchain-first architecture implemented