Contract Deployments
The Polymarket CTF Exchange is deployed on multiple networks for production and testing purposes.Production Deployments
Polygon Mainnet
Network: Polygon (Chain ID: 137)Contract Address:
0x4bFb41d5B3570DeFd03C39a9A4D8dE6Bd8B8982EExplorer: View on PolygonScanThis is the primary production deployment used by Polymarket for live trading.Testnet Deployments
Amoy Testnet
Network: Amoy (Polygon Testnet)Contract Address:
0xdFE02Eb6733538f8Ea35D585af8DE5958AD99E40Explorer: View on Amoy PolygonScanThis deployment is used for testing and development purposes.Deployment Details
Polygon Mainnet Configuration
The Polygon mainnet deployment was initialized with the following constructor parameters:| Parameter | Address | Description |
|---|---|---|
| Collateral Token | 0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174 | USDC on Polygon |
| CTF Contract | 0x4D97DCd97eC945f40cF65F87097ACe5EA0476045 | Conditional Tokens Framework |
| Proxy Factory | 0xaB45c5A4B0c941a2F231C04C3f49182e1A254052 | Gnosis Safe Proxy Factory |
| Safe Factory | 0xaacFeEa03eb1561C4e67d661e40682Bd20E3541b | Gnosis Safe Factory |
The exchange contract automatically approves the CTF contract to spend unlimited USDC, enabling efficient minting operations.
Deployment Process
The deployment followed these steps:- Contract Creation: Deploy CTFExchange with constructor parameters
- Admin Setup: Add authorized administrator address
- Operator Setup: Add authorized operator address
- Role Renunciation: Deployer renounces admin and operator roles
- Verification: Verify contract source code on block explorer
Contract Information
Version
The deployed contracts are built with:- Solidity Version: 0.8.15
- License: MIT
- Contract Name:
CTFExchange
Dependencies
The exchange integrates with:- Conditional Tokens Framework (CTF) - For outcome token management
- USDC - As the primary collateral asset
- Gnosis Safe - For smart contract wallet signatures (ERC-1271)
Security
Audit
Chainsecurity Audit
The CTF Exchange has been professionally audited by Chainsecurity.View Audit Report
Immutability
The core exchange logic is immutable after deployment. However, administrators retain the following capabilities:- Add/remove operators
- Add/remove administrators
- Pause/unpause trading
- Register new token complements
- Update proxy factory addresses
These admin functions are necessary for operational flexibility but do not allow modification of core trading logic or user funds.
Network Information
Polygon Mainnet
- Chain ID: 137
- RPC URL: https://polygon-rpc.com
- Currency: MATIC
- Block Explorer: https://polygonscan.com
Amoy Testnet
- Chain ID: 80002
- RPC URL: https://rpc-amoy.polygon.technology
- Currency: MATIC (testnet)
- Block Explorer: https://amoy.polygonscan.com
- Faucet: Polygon Faucet
Interacting with Deployments
Using Web3 Libraries
Using Foundry
For testing purposes, use the Amoy testnet deployment to avoid spending real MATIC on transaction fees.
Source Code
The complete source code is available on GitHub:GitHub Repository
View the full source code, tests, and deployment scripts on GitHub
Building from Source
To build and test the contracts locally:The project uses Foundry for development and testing. Make sure to run
foundryup regularly to keep your Foundry installation up to date.