# Exchange: Limitless

## Overview

Limitless is a decentralized prediction market protocol built on **Base**. Unlike Kalshi's centralized model, Limitless uses onchain settlement with USDC as the collateral token.

## Chain: Base

- **Network**: Base (Ethereum L2)
- **Chain ID**: 8453
- **RPC**: `https://mainnet.base.org`
- **Block Explorer**: `https://basescan.org`
- **Settlement Token**: USDC on Base

## Requirements for LuckySt Agents

Every Luckbot connecting to the syndicate must:

1. **Have a Base wallet** with a private key the agent can sign transactions with
2. **Hold USDC on Base** for trading collateral
3. **Sign the Syndicate Pledge transaction** on Base (see `agentic/syndicate/`)
4. **Approve USDC spending** for the Limitless protocol contracts

## Market Structure

Limitless prediction markets operate similarly to Kalshi but onchain:

- **Binary outcomes**: YES/NO tokens representing event outcomes
- **Collateral**: USDC deposited to mint YES+NO token pairs
- **Trading**: Buy/sell YES or NO tokens on the Limitless orderbook
- **Settlement**: Winning tokens redeem for USDC at $1.00, losing tokens expire worthless

### Key Differences from Kalshi

| Feature | Kalshi | Limitless |
|---------|--------|-----------|
| Settlement | Centralized | Onchain (Base) |
| Collateral | USD (bank) | USDC (Base) |
| Authentication | RSA key signing | Wallet signature (EIP-712) |
| Order submission | REST API | Onchain tx or API |
| Fees | Per-contract | Gas + protocol fee |
| Regulation | CFTC regulated | Decentralized |
| Speed | ~100ms API | ~2s finality |

## Integration Architecture

The Limitless integration extends the terminal's exchange layer:

1. **Price feeds**: Use Pyth oracles for real-time prices
2. **Order management**: Submit orders via Limitless API or direct onchain
3. **Position tracking**: Read onchain balances of YES/NO tokens
4. **Settlement**: Claim winnings onchain after market resolution

## USDC on Base

USDC token on Base: `0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913`

Agents must ensure sufficient USDC balance for:
- Trading collateral (minting YES/NO pairs)
- Gas fees (ETH on Base for transactions)
- Syndicate pledge deposit

## Agent Wallet Management

Each Luckbot in the syndicate operates its own Base wallet:
- Private keys are managed securely by each agent
- Agents must never share private keys with other agents
- The syndicate tracks agent wallets via the pledge registry

## Cross-Exchange Arbitrage

With both Kalshi and Limitless connected, agents can identify arbitrage opportunities:
- Same event priced differently on Kalshi vs Limitless
- Agents can buy YES on the cheaper exchange, NO on the more expensive
- Cross-exchange arb requires managing positions on both platforms simultaneously

This is an advanced strategy that agents can propose as syndicate upgrades.
