๐Ÿ“œ Smart Contracts

Explore Forkast's core smart contracts, including Conditional Tokens, CTF Exchange, and Gnosis Safe Proxy, powering its prediction market ecosystem.

This section provides an overview of the core smart contracts within the Forkast prediction market architecture. Each contract plays a critical role in enabling smooth, secure, and efficient prediction market functionality.

Smart Contracts Deployed

Forkast utilizes a range of specialized smart contracts tailored to the needs of its prediction market and Web3 ecosystem. Below is an overview of these contracts, their purpose, and functionality.


The following list of contracts are deployed for supporting the operation of Forkast Prediction Market.

๐Ÿช™ Gnosis Conditional Tokens

  • Purpose: Manages conditional tokens in the prediction market.
  • Functionality: Enables the creation of tokens representing future events. These tokens can be transferred between users and redeemed once event outcomes are determined.

๐Ÿ›๏ธ CTF Exchange

  • Purpose: Facilitates the exchange of conditional tokens through an Order Book model.
  • Functionality: Orders for conditional tokens are created and matched offchain using a standard order book mechanism. Once matched, orders are submitted to the onchain contract for validation and execution.

๐Ÿ” Gnosis Safe Proxy

  • Purpose: Represents the user's wallet within the prediction market platform.
  • Functionality: Allows for gas-free, multi-call transactions. Users sign a message off-chain for transactions, which a relayer then submits to the Gnosis Safe Proxy contract. The contract validates and executes the transaction.
  • Note: This is a minimal proxy contract; all calls are executed via delegate calls to its implementation.

๐Ÿญ Gnosis Safe Proxy Factory

  • Purpose: Deploys Gnosis Safe Proxy contracts.
  • Functionality: Uses OpenZeppelin CREATE2, enabling the deployment and retrieval of wallet contract addresses deterministically.

๐Ÿช™ Platform Credits Token

  • Purpose: Manages the Platform Credit token, now called Trading Credit (TC) used on the Forkast platform.
  • Functionality: Allows users to convert Trading Credit to supported stablecoins. Once the minimum conditions are met, users can convert credits to stablecoins in their connected wallet.
  • Restriction: Only allows token transfers among whitelisted contracts within the system and from user EOA accounts to their UserWalletProxy.

๐Ÿ“ฎ MultiSend Contract

  • Purpose: A utility contract designed to streamline transaction batching for development companies managing complex operations in dApps or systems.
  • Functionality: Enables the bundling of multiple transactions into one, ensuring that all transactions succeed or none are executed. Transactions are encoded as packed bytes and processed through call or delegatecall. Particularly useful for optimizing gas costs and reducing on-chain operations in development pipelines.
  • Note: This contract should be called via delegatecall to ensure proper execution and transaction integrity.

๐Ÿ“œ Deployed Contracts

Below is a list of the deployed contracts, including their addresses and links to the blockchain explorer for verification.

NameAddressLink
Platform Credits0x4AC7b973fb4f10D94eda5Efa92fFABD6aDDFb65cView
GnosisSafe0x3780D45DeD72BD3cfDD49D2e213E6a329E8e8CfdView
GnosisSafeProxyFactory0x5c8789b886ADa0fF89Defebe27AAF954984350BFView
ConditionalTokens0x49598aae06f8ed6D82Cb9DFa503e731221fBf7E6View
CTFExchange0x2D7aa09fe8a9Af205aD6E0Fef1441834c4250cdcView
MultiSend0x0D2Bea44d8E9AE2ac6b9419431dea3e48aBF00BDView