Working tree is now the canonical repo. Off-chain play-money + trustless on-chain (FPMM AMM + CLOB via UMA settlement), AI market factory, creator/social/distribution, mobile shell + push, one-command demo + deploy-kit. Secrets excluded (see ENV-AND-KEYS.md). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
34 lines
601 B
Markdown
34 lines
601 B
Markdown
# Assets
|
|
|
|
Stores the addresses of the ERC20 collateral and ERC155 outcome tokens.
|
|
|
|
## `constructor`
|
|
|
|
Initializes the contract, setting the collateral token address and ctf token address state variables. Also approves the ctf contract to spend usdc on the contract's behalf.
|
|
|
|
Parameters:
|
|
|
|
```java
|
|
address _collateral // collateral token (ERC20)
|
|
address _ctf // ctf outcome token (ERC1155)
|
|
```
|
|
|
|
## `getCollateral`
|
|
|
|
Gets the stored `collateral` address.
|
|
|
|
Returns:
|
|
|
|
```java
|
|
address // collateral token address
|
|
```
|
|
|
|
## `getCtf`
|
|
|
|
Gets the stored `ctf` address.
|
|
|
|
Returns:
|
|
|
|
```java
|
|
address // ctf address
|
|
``` |