Forkast Knowledge Center
Platform Mechanics
Smart Contracts
6 min
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 used on the forkast platform functionality allows users to convert platform 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 name address link platform credits 0x4ac7b973fb4f10d94eda5efa92ffabd6addfb65c https //arbiscan io/address/0x4ac7b973fb4f10d94eda5efa92ffabd6addfb65c gnosissafe 0x3780d45ded72bd3cfdd49d2e213e6a329e8e8cfd https //app roninchain com/address/0xb588a9b41ba6b9645e680e3a4b725240c186bdaf gnosissafeproxyfactory 0x5c8789b886ada0ff89defebe27aaf954984350bf https //app roninchain com/address/0x02f376fe3e11634a866d2087f01427b09a235599 conditionaltokens 0x49598aae06f8ed6d82cb9dfa503e731221fbf7e6 https //app roninchain com/address/0xf74159bc0c8ef2f9660af1b131bea9bba675c710 ctfexchange 0x2d7aa09fe8a9af205ad6e0fef1441834c4250cdc https //app roninchain com/address/0x520fe655590e6fee13656590f1be3edf31fe099c multisend 0x0d2bea44d8e9ae2ac6b9419431dea3e48abf00bd https //app roninchain com/address/0xe78e19491724e0acda38ecf3364a91a98fd1f33b