Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/Polymarket/ctf-exchange/llms.txt

Use this file to discover all available pages before exploring further.

Overview

The Assets mixin stores the addresses of the ERC20 collateral token and ERC1155 Conditional Token Framework (CTF) contract. It initializes these immutable addresses during construction and provides getter functions to retrieve them. Source: src/exchange/mixins/Assets.sol

State Variables

collateral

address internal immutable collateral
The address of the ERC20 collateral token (e.g., USDC).

ctf

address internal immutable ctf
The address of the ERC1155 Conditional Token Framework contract that manages outcome tokens.

Constructor

constructor(address _collateral, address _ctf)
Initializes the contract with the collateral and CTF addresses. Also approves the CTF contract to spend the maximum amount of collateral on behalf of the exchange.

Parameters

  • _collateral (address): The ERC20 collateral token address
  • _ctf (address): The ERC1155 CTF outcome token address

Functions

getCollateral

function getCollateral() public view override returns (address)
Gets the stored collateral token address.

Returns

  • address: The collateral token address

getCtf

function getCtf() public view override returns (address)
Gets the stored CTF contract address.

Returns

  • address: The CTF contract address

Build docs developers (and LLMs) love