Forkast Knowledge Center
Platform Mechanics
Smart Contracts
14 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 the following list of contracts are deployed for supporting the cgx token ecosystem cgx token contract purpose the primary utility token of the company and platform, designed to facilitate transactions, incentivize user engagement, and drive ecosystem growth functionality a fungible erc 20 token, enabling seamless integration with various platform features such as staking and rewards distribution note as the backbone of the platform economy, the cgx token contract includes provisions for minting, burning, and governance to adapt to evolving ecosystem needs rewards contract purpose facilitates the distribution of cgx token rewards during the token generation event (tge) and subsequent incentive campaigns functionality supports reward allocation to eligible users based on predefined criteria, such as activity history, staking history, etc utilizes signature proof verification for eligibility validation and ensures transparent and efficient reward claims staking contract purpose provides a robust staking mechanism for users to lock cgx tokens and earn rewards, encouraging long term participation and platform loyalty functionality allows users to stake cgx tokens with flexible lock durations and configurable reward multipliers tracks multiple user stakes, integrates with reward distribution mechanisms, and supports withdrawal structures for early unstaking loot box contracts purpose owned and operated by lync world , these contracts provide cgx staking rewards in the form of loot boxes, adding gamification elements to user incentives functionality allocates loot boxes as rewards based on usersβ total stakes each loot box contains randomized rewards, which are distributed upon claiming the contract ensures fairness through provable randomness and maintains transparency in reward allocation note learn more about loot box functionality here 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 0x5e43470ea6d946f31920b09904a51a53a4557eb5 view https //app roninchain com/address/0x5e43470ea6d946f31920b09904a51a53a4557eb5 gnosissafe 0xb588a9b41ba6b9645e680e3a4b725240c186bdaf view https //app roninchain com/address/0xb588a9b41ba6b9645e680e3a4b725240c186bdaf gnosissafeproxyfactory 0x02f376fe3e11634a866d2087f01427b09a235599 view https //app roninchain com/address/0x02f376fe3e11634a866d2087f01427b09a235599 platform credits 0x5e43470ea6d946f31920b09904a51a53a4557eb5 view https //app roninchain com/address/0x5e43470ea6d946f31920b09904a51a53a4557eb5 conditionaltokens 0xf74159bc0c8ef2f9660af1b131bea9bba675c710 view https //app roninchain com/address/0xf74159bc0c8ef2f9660af1b131bea9bba675c710 ctfexchange 0x520fe655590e6fee13656590f1be3edf31fe099c view https //app roninchain com/address/0x520fe655590e6fee13656590f1be3edf31fe099c multisend 0xe78e19491724e0acda38ecf3364a91a98fd1f33b view https //app roninchain com/address/0xe78e19491724e0acda38ecf3364a91a98fd1f33b rewards 0x1b3c309bd7f9d9a7e2da62964aadcd16e0b8ab8c view https //app roninchain com/address/0x1b3c309bd7f9d9a7e2da62964aadcd16e0b8ab8c staking 0xff5e3520626e66b9caa70b9d8cef7974e520ba76 view https //app roninchain com/address/0xff5e3520626e66b9caa70b9d8cef7974e520ba76 cgx token 0x656fe582b4c6dc95c598ea54dc820eb36152e2f7 view https //app roninchain com/address/0x656fe582b4c6dc95c598ea54dc820eb36152e2f7 loot box multicall tbd n/a