git clone https://github.com/openSVM/ammasm && cd ammasm/cli && zig build && ./zig-out/bin/aex pool list
Every sell permanently removes 80% of those tokens from circulation and adds them to the post-graduation farming pool. A scammer who dumps builds the farming program for the community. Pump-and-dump creates better farming rewards — the attack funds the defense.
No single address can hold more than 2.5% of a virtual pool's token supply. This forces wider distribution and prevents any one entity from controlling price action. A whale needing 40+ wallets to accumulate faces higher costs and coordination friction.
Post-graduation tokens unlock gradually. Holders claim 5% per hour over 20 hours; creators claim 2% per hour over 50 hours. This removes "instant dump at graduation" from the strategy space. Any sell pressure is spread across hours, giving the market time to absorb.
More trading activity (higher sell ratio) lowers the graduation target. Active communities graduate faster with larger farming pools. Wash trading raises the sell ratio but also extracts more tokens to farming — the attacker subsidizes the community while lowering the bar.
The hard deadline is the keystone of the entire mechanism. Without it, pools can linger indefinitely and creators face no urgency. With it, every participant has skin in the game: build real community traction in 1 hour, or everyone loses their position. Failed pools aren't wasted — their liquidity accrues value to AEX token holders, making the protocol token a bet on the failure rate of launches. This creates a self-sustaining economy: successful launches reward participants, failed launches reward protocol holders.
Hybrid curve blending constant-product (xy=k) and constant-sum (x+y=k) via amplification coefficient A. Newton-Raphson solving converges in 6–10 iterations. A=1 behaves like Uniswap, A=100K near-zero slippage for pegged assets. N-token generalization supports 2–8 token pools.
First production reinforcement learning on a blockchain. 27 states × 9 actions = 243 Q-values stored on-chain. V2: Volatility-aware states — volatile pools track volatility trend (not price) as primary dimension, so the brain raises fees in turbulent markets and lowers them when calm. Explicit action tracking eliminates misattribution. Delegated architecture: swaps record observations at ~200 CU; bot triggers batch training at ~100K CU. Users never pay for ML compute.
Five reward components, each configurable per pool. Stable pools penalize price deviation;
volatile pools maximize fee×volume product. V2 adds fee efficiency as an explicit objective
and lets pool operators tune weights via cfgml. ε-greedy exploration (10%, decaying) prevents local optima.
Zero-rent token launches via linear bonding curves with a hard 1-hour deadline. 1.49M holders per pool in 7-byte compact format (Caesar-rotated hash). 80% of sell tokens extracted for farming pool. Dynamic graduation target penalizes wash trading. If the pool fails to reach target and graduate within 1 hour, the pool is erased and all remaining liquidity is redistributed to AEX token holders. Vesting schedules (holders 5%/hr, creator 2%/hr) prevent post-graduation dumps.
Circular buffer candles updated every swap. TWAP oracle with confidence scores based on sample count, trade frequency, and price variance. Composable by other programs — no off-chain indexer dependency. Circuit breakers auto-pause on 10% price deviation or 10x volume spike.
| Feature | AeX-402 | Raydium | Orca | Curve (EVM) |
|---|---|---|---|---|
| On-chain ML | Q-Learning V2 brain | — | — | — |
| Adaptive fees | ML-optimized 1–100 bps | Fixed | Fixed tiers | Fixed per pool |
| StableSwap | A=1..100K | — | — | 3pool, metapools |
| Concentrated liq. | Tick ranges + CL | CLMM | Whirlpool | — |
| Token launches | Virtual pool grad. | — | — | — |
| LP governance | On-chain voting | — | — | veCRV |
| On-chain candles | 24h + 7d OHLCV | — | — | — |
| Flash loans | Dynamic fees | — | — | Fixed fee |
| Limit orderbook | Hybrid AMM+LOB | OpenBook | — | — |
| Binary size | 189 KB (C) | ~400 KB (Rust) | ~300 KB (Rust) | N/A (EVM) |
| N-token pools | 2–8 tokens | 2 tokens | 2 tokens | 2–4 tokens |