Docs · For traders
Trading and the curve
At a glance
Opens at
1,875 ZRO
Market cap, about $3K, whatever the supply
Moves to a pool at
6,000 ZRO raised
A market cap of 30,000 ZRO
Sold on the curve
80%
Of the supply. 20% opens the pool
Virtual reserve
2,000 ZRO
Sets the starting price
Pool liquidity
Locked
Nobody can ever remove it
Fee per trade
1% base
Plus up to 10% the creator may add at launch
How the curve sets a price
The curve is a constant product, like a classic AMM pool, except one side starts with ZRO that isn't there: a virtual 2,000 ZRO. The other side holds 16/15 of the supply in virtual tokens. Multiply the two sides and you get a number that no trade can change. A buy adds ZRO, so fewer tokens are left, and each one costs more.
Those two numbers are chosen so that every token opens at a market cap of 1,875 ZRO and reaches 30,000 ZRO exactly when it has sold 80% of its supply for 6,000 ZRO. A token with 1 trillion coins and one with 1 billion follow the same path in market cap. Only the price per coin differs.
| Raised | Share of supply sold | Market cap | Price, 1B supply |
|---|---|---|---|
| 0 ZRO | 0% | 1,875 ZRO | 0.0000019 ZRO |
| 400 ZRO | 17.8% | 2,700 ZRO | 0.0000027 ZRO |
| 800 ZRO | 30.5% | 3,675 ZRO | 0.0000037 ZRO |
| 2,000 ZRO | 53.3% | 7,500 ZRO | 0.0000075 ZRO |
| 4,000 ZRO | 71.1% | 16,875 ZRO | 0.0000169 ZRO |
| 6,000 ZRO | 80.0% | 30,000 ZRO | 0.00003 ZRO |
Early buyers pay much less than late ones: the first 400 ZRO buys almost 18% of the supply, and the last 400 ZRO buys about 1.4%.
A worked example
A fresh token with the default terms: a supply of 1 billion and no own fee, so just the 1% base. You buy with 400 ZRO.
| Step | Amount |
|---|---|
| You send | 400 ZRO |
| Fee, 1% of the trade | 4 ZRO |
| Into the curve | 396 ZRO |
| Tokens you get | 176,293,823 |
| Average price you paid | 0.0000023 ZRO |
| Market cap after | 2,691 ZRO |
Sell all 176,293,823 straight back and the curve returns 396 ZRO, less the 1% fee on the sale, so you get 392.04 ZRO. The two fees are the whole cost of the round trip. Where those fees go, and how a volume rank lowers them, is on Fees.
Later buys get fewer tokens for the same ZRO. With 4,000 ZRO already raised, 400 ZRO buys about 22,013,759 tokens, an eighth of what it bought at the start.
From launch to pool
- The creator launches it, often with a first buy in the same transaction, so nobody can buy before them. See Launching a token.
- Anyone buys and sells on the curve. The price follows Figure 1.
- The buy that brings the raise to 6,000 ZRO only pays for what was left. The rest of its ZRO comes back in the same transaction.
- That same buy moves the token to its pool. Trading carries on there without a pause.
The last buy, worked out
5,800 ZRO is raised and you send 400 ZRO at a 1% fee, a token with no own fee. Only 200 ZRO fits, so the contract takes 202.02 ZRO (200 ZRO plus its 1% fee), gives you the last 6,837,607 tokens on the curve, and sends 197.98 ZRO back.
Moving to a pool
The 6,000 ZRO raised and the 20% of the supply held back open a pool on PancakeSwap Infinity at exactly the price the curve ended on, so there is no jump for a bot to catch. They go in as one position over the whole price range, owned by Submarine's pools contract, which has no way to take it out. The pool refuses liquidity from anyone else and refuses every removal, so this liquidity stays for good.
The token's fee doesn't change at the move. The pool's hook takes the same 1% base and own fee the curve did, Submarine's 0.4% included, so everyone keeps the same share, as Fees shows. Only graduation can open a Submarine pool for one of these tokens, so nobody can set one up at a skewed price. Pools someone makes elsewhere, including plain Infinity pools without Submarine's hook, are not Submarine's, and the router doesn't trade on them.
Trading on a pool
A pool runs on PancakeSwap Infinity's concentrated-liquidity engine, but with its one position spread over the whole price range it prices like a constant product, with real ZRO and the token on its two sides. It has no fee of its own. Its hook, Submarine's pools contract, takes the token's fee on the ZRO side of every trade, through any router or straight on Infinity. The first 400 ZRO buy on a freshly graduated pool of a 1 billion supply token with no own fee gets about 12.38 million tokens.
For now the graduation's position is the only liquidity in each pool. Positions of your own, over a price range you choose, are planned for later.
Best price and slippage
Every trade from Submarine goes through the router. It asks every connected market for a price and trades on the best. A token on its curve trades on the curve and a token with a pool trades on the pool. A market that quotes well and then fails is passed over for the next one.
Your slippage limit is a minimum the contracts enforce: if the price moves past it before your trade lands, the trade fails and you only lose the gas. The router checks what actually arrived in your wallet, not what a market claims it sent.
The default is Auto, which lets the price slip 1% at most. Zero's blocks come a fraction of a second apart, so a fresh quote hardly moves before the trade lands, and a tight limit leaves a bot nothing to take. Pick 3% or 10% for a token moving fast. Every trade through the router also adds to your volume, which lowers your fee as it passes each rank, and earns points.
Sandwich protection
A sandwich is a bot buying just before your buy and selling just after it, in the same block, to pocket the price your buy moved. Tokens launched on Submarine stop it in the token itself: a wallet that got coins from the curve or the pool can't send or sell any of that token until the next block. The bot's sale after yours would revert, so the risk-free version of the trade is gone.
- It applies to every token launched here, plain and holder tokens alike, for good.
- The next block is a fraction of a second later, so a person trading by hand never notices.
- Coins sent to you by another wallet don't hold you. Only coins straight from the curve or the pool do.
- The curve and the pool themselves are never held, so the market keeps trading with everyone in the same block.
- A contract that buys and sells in one transaction fails with
BoughtThisBlock. See Buy and sell.
Tokens from other launchpads follow their own contracts, which may have no such protection. A tight slippage limit is the defence there.
The trade card
| Setting | Choices | Default |
|---|---|---|
| Buy amount | 50, 200, 500, 2,000 ZRO or Max (your balance less 1 ZRO for gas) | Your quick size, 50 ZRO |
| Sell amount | 25%, 50%, 75%, All, or Paid in (sells what you paid back out) | |
| Slippage | Auto (1%), 3% or 10% | Auto |
| Presets P1 to P3 | An amount and a slippage each. Double click to edit | 20 ZRO at 3%, 80 at 10%, 400 at 20% |
| Mode | Market, Limit, or TP / SL | Market |
- Price impact turns red above 5%.
- Sell right after says what a sale straight after your buy would bring back. For a token from another launchpad it is a test sale: Submarine asks the chain to buy and sell back in one call, through the same contract. For a token launched here the one-block hold would stop that test, and the contract is Submarine's and can't tax or block a sale, so the figure is worked out from its fees. It warns if the sale would revert or lose 15% or more. It runs as you type and every 12 seconds. It's a check at that moment and can't promise the token will still sell later.
- A trade has 120 seconds to land, then it expires and fails.
- While anti-snipe is on, a banner says what a buy pays right now.
What happens after you press buy
Each trade shows its real progress, timed in your browser:
| Stage | What it means |
|---|---|
| Sent | The node has your transaction |
| In a block | It is in a block |
| Executed | It ran, and you can see whether it succeeded. Only this tells you that |
Submarine estimates the gas for each trade and adds 20%, so it still goes through if the state moves a little before it lands.
Tokens from other launchpads
The list shows every new token on the chain, wherever it launched, found by watching the chain itself, so nothing here is checked or endorsed. You can launch on any connected launchpad from the Launch page and trade its tokens from here, with their chart, holders and trades like any other, and Submarine adds no fee of its own.
Someone else's launchpad sets its own curve, fees and what happens at the end. Its tokens trade on its contract, not through our router, so limit orders aren't available for them. The test sale still runs against its contract before you buy. A token from a launchpad that isn't connected becomes tradable once its launchpad is connected. Submarine pools are only for tokens that graduated here.
Launchpad.sol has them in full.