> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stonkme.fun/llms.txt
> Use this file to discover all available pages before exploring further.

# Programs and addresses

> The two Solana programs, their instructions, and the devnet addresses.

StonkMe is two Anchor programs. Every market action is an instruction, and every one a keeper runs (start, liquidate, unwind, settle, resolve) is open to anyone.

## Devnet

| | Address |
| - | - |
| `stonkme` (trading core) | `xxBZG1QR7xWNArM8LssvFoESzomYe1UrNoysZFPECDe` |
| `stock_venue` (devnet swap venue and price relay) | `E5XoF6nUokucSXx5CSYwUjFhSkAsH5YzyvTpg4xfbfgT` |
| Mock USDC (6 decimals) | `BFXURosQTqcte5J2i38qHtrPWfirUBi2BJyFq3KRXSHM` |
| Meteora DBC config for launches | `HRgL3Wex7tMjjP1k4nqqFK7TuVq87AmfaTHUB4A6HZm6` |
| Mock xStocks (8 decimals) | 76 mints, in `onchain/devnet.json` |

## `stonkme` instructions

| Group | Instructions |
| - | - |
| Stake | `open_stake`, `deposit_stake`, `withdraw_stake` |
| Market | `create_market`, `join`, `top_up`, `start`, `fund_sleeve`, `cancel`, `refund_sleeve`, `claim` |
| Trading | `trade`, `liquidate`, `unwind`, `settle_sleeve` |
| Predictions | `create_question`, `self_lock`, `mint_sets`, `redeem_sets`, `resolve`, `redeem_winning`, `claim_self_bet` |
| Launches | `set_launch_settings`, `launch_token`, `collect_launch` |
| Admin | `init_config`, `update_config`, `migrate_config` |

## `stock_venue` instructions

`init_venue`, `list`, `set_admin`, `post_price`, `swap`. On mainnet the trading program swaps through Jupiter instead, and prices come from Pyth.

## Market parameters the app uses

| Parameter | Value |
| - | - |
| `profit_share_bps` | 3000 (the trader's share of profit) |
| `liq_threshold_bps` | 8000 (loss as a share of collateral that allows liquidation) |
| `keeper_fee_bps` | 500 (of the loss covered, paid to the liquidator) |
| `max_deviation_bps` | 100 (fill price vs. oracle) |
| `per_trade_cap_bps` | 5000 (of the trader's slice, per trade) |
| `min_traders` / `max_traders` | 2 / 2 to 5 |
| Stocks per market | up to 4 |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.