Atomic Swaps are the Cryptix Layer-1 liquidity bridge for Atomic Tokens. They allow tokens to be created with immediate CPAY trading through a native DEX model, without smart contracts and without a separate Layer-2 system.
Everything is designed to be usable from the Web Wallet, but the system is not locked to the Web Wallet. Users, builders and platforms can self-host locally and still access the full DEX program through native Layer-1 rules.
When bridge mode is selected at token creation, the token receives a deterministic CPAY liquidity curve. Users can buy and sell against the CPAY reserve directly. There is no order book and no smart-contract pool contract: the bridge behavior is validated natively by the Cryptix network.
For liquidated tokens, also called Atomic Swap Tokens, the max supply can be selected in a fixed range. Decimals are intentionally disabled for this mode to keep deterministic handling simple and less error-prone.
Choose 100,000 for fewer tokens and a higher value per token. Choose 10,000,000 for a larger community or meme-token supply. Choose 1,000,000 for a balanced, tradable default.
The curve adapts to the selected max supply. Economically, the bridge behaves the same for 100k, 1M or 10M max supply; only the number of token units changes.
Atomic Swaps use a mempool-based trading layer with parent-built transactions. When a swap is submitted, the transaction can be prevalidated by the mempool and immediately become visible as a pending trade. Instead of waiting for this trade to be included in a block, the wallet can already use its expected output as a pending parent and build the next transaction on top of it. This allows users to react and continue trading before final block confirmation. Planned owner nonces, asset nonces, and pool nonces keep these parent-child transaction chains ordered and deterministic, so pending trades can be handled safely without treating them as final state. Final settlement still happens through L1 consensus. The mempool layer only provides fast trade availability, while confirmed balances, pool reserves, and trade history are finalized through blocks and Atomic state verification. This makes trades possible within 50–150 ms.
The Atomic Swap curve starts relatively smooth and stays close to the actual CPAY liquidity. As more of the token supply is bought, the curve becomes more aggressive. Near the upper supply range it becomes very aggressive, while avoiding an extreme leverage effect. Early buyers still receive the strongest position.
During token creation, the creator can choose how the bridge curve is configured:
Basic mode is smoother and more conservative. Aggressive mode starts close to Basic but rises much harder when a large share of the supply has already been bought. Free mode is for creators who want to define their own bridge behavior inside the allowed parameter range.
Example values for a 1,000,000 max supply token, without fees:
| Token supply bought | Basic CPAY needed | Aggressive CPAY needed |
|---|---|---|
| 1 token at start | about 2.083 CPAY | about 1.905 CPAY |
| 5% | about 108,696 CPAY | about 100,000 CPAY |
| 10% | about 227,273 CPAY | about 210,526 CPAY |
| 25% | about 657,895 CPAY | about 625,000 CPAY |
| 50% | about 1,785,714 CPAY | about 1,818,182 CPAY |
| 75% | about 4,166,667 CPAY | about 5,000,000 CPAY |
| 90% | about 7,500,000 CPAY | about 12,000,000 CPAY |
| 99% | about 11,785,714 CPAY | about 33,000,000 CPAY |
| 99.99% | about 12,492,504 CPAY | about 39,916,168 CPAY |
A 1,000,000 max supply Atomic Swap token can absorb roughly 12.5 million CPAY in Basic mode and roughly 40 million CPAY in Aggressive mode through the bridge curve. Free mode depends on the creator's selected parameters. This is real CPAY liquidity absorbed by the curve; it is not the token price and not the token market cap.
Atomic Swaps can be used for native ICO-like launches. The creator can buy at the earliest curve position during creation, because price rises with each CPAY invested. Buyers can then participate through the same deterministic Layer-1 bridge instead of depending on a manually managed pool.
Lock Gate is an optional rug-pull friction layer for Atomic Swap launches. If enabled, the creator defines a fixed CPAY liquidity threshold that must be reached once before selling becomes unlocked. For example, a token can require 1,000,000 CPAY in bridge liquidity before sells are allowed.
This does not provide 100% protection. It makes common launch scams less efficient by forcing a minimum real CPAY liquidity level before exits become possible.
The Basic curve already acts as a soft anti-bot mechanism because it starts very flat. Early buys do not immediately push the curve into a vertical price zone, which makes simple launch sniping less attractive and gives human users a fairer entry window.
An additional anti-bot layer is planned for the Web Wallet. This can add friction for automated wallet usage, but it cannot fully block bots because the bridge is decentralized and can be accessed directly through RPC and custom nodes.
Lock Gate can also be used to make some bot strategies unattractive. Tokens can require liquidity thresholds that prevent early exit behavior until the threshold is reached. Clear warnings and metadata signals can protect human users, while bots that ignore those signals take the risk.
Atomic Swaps bring DEX-like behavior into native Layer 1. The advantage is not only easier UX, but a smaller trust surface: no smart contract pool, no external contract owner, no separate execution environment and no requirement to use a central website.
The curve is designed to work with current CPAY values and possible future CPAY value changes. CPAY may be worth less or more in the future. This is not a price promise. Token markets remain volatile, and Lock Gate does not remove all risk.
The bridge uses a constant-product curve with virtual reserves. For max supply S, Basic, Aggressive and Free mode only change the initial reserve values.
x * y = k
x = virtual CPAY reserve
y = virtual token reserve
k = x * y
Initial state for max supply S:
Basic mode:
x0 = 2,500,000 CPAY
y0 = 1.20 * S
k = x0 * y0
Aggressive mode:
x0 = 2,000,000 CPAY
y0 = 1.05 * S
k = x0 * y0
Free mode:
x0 = 1,000,000-8,000,000 CPAY
y0 = 1.01-1.50 * S
k = x0 * y0
Cumulative buy curve without fee:
CPAY(q) = x0 * q / (y0 - q)
As supply share p = q / S and y0 = m * S:
Basic: CPAY(p) = 2,500,000 * p / (1.20 - p)
Aggressive: CPAY(p) = 2,000,000 * p / (1.05 - p)
Free: CPAY(p) = custom_x0 * p / (custom_m - p)
Exact buy formula per trade with net Delta x CPAY:
x' = x + Delta x
y' = ceil(k / x')
token_out = y - y'
With fee:
fee = floor(gross_in * fee_bps / 10000)
Delta x = gross_in - fee
Exact sell formula per trade with Delta y tokens:
y' = y + Delta y
x' = floor(k / y')
gross_cpay_out = x - x'
With fee:
fee = floor(gross_cpay_out * fee_bps / 10000)
cpay_out = gross_cpay_out - fee