Qlyphs Docs

Bonding curve

Every new Qlyphs token trades on one continuous bonding curve. Buy or sell any amount, any time; the price moves with every trade, and a full curve holds 210 QTC.

The question

How does a brand-new token get a price and a market from its very first second, with nobody making that market?

Every Qlyphs token is born on a bonding curve: a fixed formula that quotes the price of the next token from how many have been sold. Anyone can buy or sell any amount, at any time. Each buy moves the price up a little, each sell moves it back down, and the formula is the same for every token and every trader.

A token has 1,000,000,000 tokens. The curve sells 793,000,000 of them; the other 207,000,000 are kept aside for the token's liquidity pool on NEAR. When the curve has sold all of its tokens it holds exactly 210 QTC, and the token is ready to graduate.

On mainnet from block 312,600

Curve tokens open on Quantus mainnet at block 312,600. From that block every new token is a curve token. Tokens launched earlier on lots move to the curve under the same ticker: see Moving to the curve.

The curve

Scroll to it and watch it fill, then drag the slider and pick a buy.

QTC in the curve0.00 / 210
Tokens sold
0.0M / 793M
Price, per 1M tokens
0.077 QTC
Whole supply at this price
77 QTC
07014021001QTC in the curvePrice per 1M tokens, QTC0200M400M600M793M
A buy here of
You get
12.7M
Average, per 1M
0.078 QTC
Price moves
+2.3 %

The same curve for every token. The 1 % fee comes out of each buy first; the rest buys tokens. A sell walks back down the same curve.

At the startWhen the curve is full
QTC in the curve0210 QTC
Tokens sold0793,000,000
Price per million tokens0.0768 QTC0.913 QTC
Whole supply at that price76.8 QTC913 QTC

The price at the end is about 11.9 times the price at the start. Early buyers get more tokens for each QTC, and the curve gets steeper as it fills: the first 64 QTC already buy 60 % of the curve's tokens.

Buy and sell

Buy. You choose how much QTC to spend. Your wallet sends it to the token's pool in one atomic transaction. The 1 % trading fee comes out first and the rest buys tokens at the curve price. The tokens are yours in the block your buy lands in.

Sell. You hand any amount of tokens back to the curve. The rules work out exactly what they are worth on the curve, take the 1 % fee and a 0.001 QTC settlement charge, and owe you the rest. The token's pool pays you in a separate payment, usually within a few blocks.

Protected from price moves. Before you sign, your wallet shows the tokens or QTC you get, the fee, the price impact and the minimum you accept. If other trades land first and move the price past that minimum, your buy is refunded or your sell is refused, and your tokens stay with you.

Where the QTC sits

Each token has its own pool: a native Quantus multisig account that holds only that token's QTC. Nobody can pull money out of one pool to pay another.

The rules decide who is owed what. Every buy and sell is replayed from the chain by the public QLYP rules, so anyone gets the same answer for what each seller is owed.

Two of three keys pay it. A payout leaves the pool only when two of its three keys sign it: the Qlyphs operator proposes the payout, and a witness signs it only if its own replay of the chain agrees, to the last unit.

Everything is public. The pool's address, its balance and every payment are on Quantus for anyone to check against the rules.

Custody, said plainly

Quantus has no smart contracts, so no contract holds the pool. The chain enforces the two-of-three signature; the signers' policy is to sign only what the rules owe. The curve's QTC is held in public, per-token custody, not in a trustless contract.

Fees

ActionQlyphs fee, before network fees
Create a token0.03 QTC
Buy1 % of the QTC you spend
Sell1 % of what the curve pays, plus 0.001 QTC to settle the payout
TransferNone

Half of every trading fee goes to the token's creator and half to Qlyphs. The smallest buy or sell is 0.01 QTC, except that you can always sell your whole balance.

The creator

No pre-mint. The creator gets no free tokens. Like anyone else, they buy on the curve.

A capped first buy. The creator may buy first, in the same transaction that creates the token, up to 2 % of the supply (20,000,000 tokens, about 1.58 QTC). Nobody can buy ahead of it, and it cannot be bigger.

Paid on volume. The creator earns half of the 1 % fee on every buy and sell of their token, and claims it from their wallet once it reaches 0.05 QTC.

When the curve is full

The buy that takes the curve to 210 QTC completes it. From then on new buys are refunded, while sells stay open: a sale lowers the curve below 210 QTC and buyers can come back in.

Graduation to NEAR. A full curve is ready to move to NEAR. 90 % of the 210 QTC (189 QTC) and the 207,000,000 tokens kept aside seed a liquidity pool on NEAR. The curve is built so that this pool opens at exactly the curve's last price, with no jump. The creator and Qlyphs each receive 5 % (10.5 QTC). Holders claim their tokens on NEAR, and through NEAR Intents buyers on every connected chain can trade the token.

Graduation at launch

Graduation is not automatic yet. When a curve fills, Qlyphs runs its graduation to NEAR itself.

Why any amount, and no more lots

The first Qlyphs curve sold tokens in 1,000 equal lots, and the reason was sound: a curve needs a position everyone agrees on, and "lots sold" was a single integer anyone could replay.

The new curve keeps that idea with a finer integer. Its position is the number of token units sold, counted in whole base units. Every buy and sell changes it by an exact amount, and the QTC behind the curve is a fixed function of it alone. Anyone replaying the chain lands on the same position, the same price and the same amount owed to every seller, so buys and sells can be any size.

The arithmetic

The curve is a constant product of two virtual reserves, the same for every token:

A = 85.790 QTC            virtual QTC at the start
V = 1,116,960,923.6       virtual tokens at the start
s = tokens sold, from 0 to 793,000,000

QTC in the curve    F(s) = A × s / (V − s)
price of the next   p(s) = A × V / (V − s)²

F(793,000,000) is exactly 210 QTC. A buy that leaves q QTC for the curve after its fee receives the most tokens whose F costs at most q; a sell of t tokens is worth F(s) − F(s − t). It is all computed in whole base units, so every machine gets the same result to the last unit. One buyer filling an empty curve alone would send 212.12 QTC: 210 QTC for the curve, the rest in fees.

A curve, not a promise

A higher later price does not set a market price on its own, and it does not promise a profit to earlier buyers. Sellers are paid along the same curve, so the price falls as people sell.

On this page