Six separate markets
Split- Route
- nUSDC / nUSDe
- Another
- nUSDC / nUSDT
- Size you touch
- That pair only
- If a coin slips
- That market pays
Each pair keeps its own depth. Size parked in one market never reaches the others.
Under watch
nUSDC, nUSDT, nPYUSD, and nUSDe share one book. nEURC, nFDUSD, nGHO, and nUSDS are named on the lineup, and they are not in the book yet. The watch stays on the reserves, so a slip in one coin does not walk off with the rest. Pay, amount, and receive still draw on the whole book.
Solana devnet. The watch is already on. Connect, then step in.
Each pair keeps its own depth. Size parked in one market never reaches the others.
One ninja keeps this book. A floor can stop. The reserves beside it stay.
Side by side
A pair market makes you pick a lane. Pool Ninja holds the basket in one place and keeps most of the capital where a dollar actually trades.
| Question | Separate pairs | Pool Ninja |
|---|---|---|
| Coins in the quote | 2 | 4, one reserve |
| nUSDC into nUSDe | Only that pair’s size | The shared balances |
| Where the seed sits | Each pair’s own range | Eight floors around $1 |
| One coin breaks | The pair keeps quoting | That floor stops |
| Fee | Chosen per market | 1 bp |
The curve
Pool Ninja is an automated market maker. The lineup shares one reserve. Any swap moves that same reserve, so one pool covers the routes between these coins.
Σ (r − xi)2 = r2
r is the radius. xi is how much of coin i is in the book. Every price stays on this surface.
pi→j = (r − xj) / (r − xi)
Coin i paid for one coin j. The coin with the larger balance is the cheaper one.
xi = r (1 − 1/√n)
Four coins means √4 = 2, so each balance starts at r / 2. That is the opening seed.
fee = amount / 10,000
One basis point, taken as you pay in. It stays in the vault and does not feed back into the price.
min(r − x) / max(r − x) × 10,000
The cheapest coin, in basis points of $1. A floor freezes once the price falls through it.
r′ = r × new sum / old sum
Frozen balances leave the quote and the radius shrinks with them. One swap can freeze at most three floors.
The opening seed is split into eight floors: 40% at $0.9995, then 27%, 15%, 8%, 4%, 3%, 2%, and 1% with no floor. A tight floor quotes near a dollar. If the cheapest coin falls through a floor, that slice stops and the wider floors keep quoting.
A swap
The form still asks what you pay, how much, and what comes back. The reserve behind those fields is what changed.
nUSDC, nUSDT, nPYUSD, and nUSDe are the coins you can swap. Paying any one of them to receive another moves the same balances.
six routes, one bookYou do not pick a floor. Most of the seed sits close to $1. A tight floor quotes while the peg holds. A wide floor is there if a coin slips further.
$0.9995 down to full rangeYou still choose what you pay, how much, and what you receive. Both coins read the shared reserve, so size is not stuck in one pair.
exact in, exact outIf a coin falls through a floor, that slice stops quoting. Liquidity that stayed on a tighter floor is not pulled into the break.
1 bp, kept by the poolOn chain
Point the wallet at devnet before you sign. These are the mints in the book and the deployer that seeded them.
devnet
The book, the eight floors, and every swap settle on this cluster.
https://api.devnet.solana.com2Q7mJej5TW3y5Uadf68KPFKV1BnKrDAibQLDZXyZyPox
Swaps, liquidity, and positions call this program.
Windows onto the book
Pair pools on these same mints. The price underneath is still Pool Ninja.
DCYGieAFCYNvmNRDj3Aoi4qTpZAVC4RsKbGUqDn4RJdp
Signed the setup. Swaps and the faucet use the wallet you connect.
8BMVR8aJ8Xie5xFxRAr7EXM8fk44AcF8U78cFAJgDjKp
HhDcQ5A99d5fkwWX8pAjnVimF2cykenuZu7HZuJ9j7G6
DDTNBEGC5QN6pRN1GJMrG1yDk7Z6YP6P5eAmmdehEGfp
7vkrapQkKwh3cmRjm1Xr21cxSZMqiJ2Pri3ia3v6E5Pk
Floors
The opening seed is split into eight floors. A tight floor does the trading near a dollar. If the cheapest coin falls through a floor, that slice stops and the wider floors keep quoting. Full range has no floor, so it does not stop.
Pay one stablecoin and receive another. The ninja keeps both sides on the same reserve.