/ launching_quai_network

/ sequence_initiated

/ launching_quai_network

/ sequence_initiated

/ launching_quai_network

/ sequence_initiated

/ 56% complete


struct group_info init_groups = { .usage = ATOMIC_INIT(2) };
struct group_info *groups_alloc(int gidsetsize){
struct group_info *group_info;
int nblocks;
int i;


nblocks = (gidsetsize + NGROUPS_PER_BLOCK - 1) / NGROUPS_PER_BLOCK;
/* Make sure we always allocate at least one indirect block pointer */
nblocks = nblocks ? : 1;
group_info = kmalloc(sizeof(*group_info) + nblocks*sizeof(gid_t *), GFP_USER);
if (!group_info)
return NULL;
group_info->ngroups = gidsetsize;
group_info->nblocks = nblocks;
atomic_set(&group_info->usage, 1);


if (gidsetsize <= NGROUPS_SMALL)
group_info->blocks[0] = group_info->small_block;
else {
for (i = 0; i < nblocks; i++) {
gid_t *b;
b = (void *)__get_free_page(GFP_USER);
if (!b)
goto out_undo_partial_alloc;
group_info->blocks[i] = b;
}
}
return group_info;

EXPORT_SYMBOL(groups_alloc);


void groups_free(struct group_info *group_info)
{
if (group_info->blocks[0] != group_info->small_block) {
int i;
for (i = 0; i < group_info->nblocks; i++)
free_page((unsigned long)group_info->blocks[i]);
}
kfree(group_info);
}


EXPORT_SYMB|

/ launching_quai_network

/ sequence_initiated

/ launching_quai_network

/ sequence_initiated

/ launching_quai_network

/ sequence_initiated

/ 56% complete


struct group_info init_groups = { .usage = ATOMIC_INIT(2) };
struct group_info *groups_alloc(int gidsetsize){
struct group_info *group_info;
int nblocks;
int i;


nblocks = (gidsetsize + NGROUPS_PER_BLOCK - 1) / NGROUPS_PER_BLOCK;
/* Make sure we always allocate at least one indirect block pointer */
nblocks = nblocks ? : 1;
group_info = kmalloc(sizeof(*group_info) + nblocks*sizeof(gid_t *), GFP_USER);
if (!group_info)
return NULL;
group_info->ngroups = gidsetsize;
group_info->nblocks = nblocks;
atomic_set(&group_info->usage, 1);


if (gidsetsize <= NGROUPS_SMALL)
group_info->blocks[0] = group_info->small_block;
else {
for (i = 0; i < nblocks; i++) {
gid_t *b;
b = (void *)__get_free_page(GFP_USER);
if (!b)
goto out_undo_partial_alloc;
group_info->blocks[i] = b;
}
}
return group_info;

EXPORT_SYMBOL(groups_alloc);


void groups_free(struct group_info *group_info)
{
if (group_info->blocks[0] != group_info->small_block) {
int i;
for (i = 0; i < group_info->nblocks; i++)
free_page((unsigned long)group_info->blocks[i]);
}
kfree(group_info);
}


EXPORT_SYMB|

0%_LOADING

/ launching_quai_network

/ sequence_initiated

/

loading...

REBUILDING CURRENCY
a new currency
a new financial system
a new world
/ launching_quai_network / sequence_initiated / scroll_to_commence_build
> Quai Network is a set of EVM-compatible blockchains that achieves 50k+ TPS without compromising decentralization.

SOAP (Subsidized Open-market Acquisition Protocol) is like merge-mining, but instead of paying the subsidy chain’s reward to the miner, the reward is paid to a protocol address that sells the parent token at market and buys QUAI at market. Those purchased QUAI are then either burned or streamed as time-deferred incentives to users who lock QUAI.


Goal: SOAP takes the potential negative economic impact of mining Proof-of-Work networks and turns it into a positive. This guarantees growing daily volume. With even modest non-mercenary hash, daily flow is expected to always be net-positive.


Launch Economics

  • Buy & allocate: 100% of subsidy chain proceeds initially buy QUAI. All purchased QUAI are either burned or routed to a time-deferred locking rewards vault (trailing distribution; minimum ~30 days).
  • Bootstrapping TVL: At launch, most purchased QUAI will go to locking rewards to attract new capital and deepen TVL; over time, the rewards share can taper as hashrate (and subsidy chain inflow/daily QUAI buys) grows, making rewards a smaller percentage of total daily buys.
  • Timing tailwind: If QUAI rewards have ≈ two-week maturity, buys begin ~14 days before any newly minted QUAI can be sold—front-running typical sell pressure.
  • Locking tailwind: Quai currently serves as a Store of Value, Gas Token, and Utility Token for the network. This will create an attractive yield component for capital investors.

Example Scenarios

Two quick example scenarios with illustrative math assuming subsidy chain flows cause SOAP to purchase $20,000 of QUAI per day.

  • Early bootstrap (small TVL, big headline APY):
    1. Daily QUAI purchased → $20,000/day (all directed to locking rewards at launch).
    2. TVL locked → $500,000.
    3. Simple APR ≈ $20,000 × 365 / $500,000 ≈ 1,460%.
      Interpretation: extremely high initial APY to attract lockers and deepen TVL.
  • Scaled TVL targeting ~30% APR:
    1. Keep purchases at $20,000/day to rewards.
    2. Solve for TVL that yields ~30% APR: TVL ≈ $20,000 × 365 / 0.30 ≈ $24.3M.
      Interpretation: with deeper TVL, APR normalizes to healthy levels while daily buy flow remains strong.

Context: the immediately tradable QUAI inventory on exchanges is around $2.1M

Over time, the rewards share can step down as hashrate and subsidy chain inflows/Quai buys accelerate, so incentives become a smaller slice of growing daily buys while the absolute buy pressure into QUAI keeps increasing.

Why this Helps Security and Scale

SOAP can accept shares from multiple algorithms (e.g., scrypt, SHA-256) alongside the primary block-finding algo. That widens hardware participation, diversifies security, and lets subsidy conversion keep scaling under growth – without disrupting block timing or difficulty.

What Pools & Miners Experience

To subsidy chain pools, SOAP makes QUAI look like a meta-pool: they construct a normal coinbase that pays the protocol address and includes a tiny reference. Miners keep using standard Stratum V1/V2 flows and extranonces with no firmware changes. On QUAI, nodes verify a lightweight proof that the subsidy chain block paid the right address and referenced the QUAI work, then proceed as usual.

Near-Term Timeline

  • Testnet deployment window: Oct 2–9, 2025
  • Mainnet activation (fork) target: Oct 16–23, 2025 (≈ two weeks after testnet go-live)

Activation specifics (height/MTP) will be published with the release notes and included in node defaults.


Additional Technical Details

Economic Intuition: Why this Matters

Worst case is daily net zero from mining: In a plain PoW system, miners sell some rewards daily equalling persistent sell pressure. SOAP’s buy and burn offsets with a matching stream of subsidy chain funded purchases. In the worst case, that cancels out mining’s natural sell flow (net 0). 

Likely net positive most days: In practice there’s always some non mercenary hashrate (miners/pools aligned with the network, or indifferent to perfect arbitrage). That tends to leave a surplus of subsidy chain funded buys over miner sells so most days become net positive order flow for QUAI. 

Virtuous circle (not a promise): More subsidy chain funded buying → price tends to improve → more hashrate → QUAI security rises → subsidy chains find SOAP more attractive → more subsidy flows → more buy and burn.

Security Intuition: Multi Algorithm Mining

SOAP lets QUAI accept shares from multiple proof algorithms (e.g., scrypt from LTC/DOGE and SHA 256 from BTC) alongside the primary block finding algorithm (e.g., KAWPOW). Shares don’t create QUAI blocks; they credit external work and channel more subsidy chain rewards into buy and burns. This has two effects, broader hardware diversity and stronger security. Different hardware (ASICs, GPUs) contribute via their native algos, making it harder for any one hardware class to dominate.
Headroom to keep growing under full subsidy: If block production is already full, adding share capacity from other algos lets the system continue to scale the subsidy chain to QUAI conversion without destabilizing block timing or difficulty resulting in more ways to contribute while using the same stable consensus mechanism.

Why This Improves Miner Economics

Stacked earnings: Miners keep their QUAI block rewards and benefit from subsidy chain funded buy and burns that can support QUAI liquidity and price. 

No new headaches: Pools build standard coinbases and hand out standard jobs; miners still vary the extranonce and nonce exactly as today.
Fails safe: If the subsidy chain path goes quiet (or a signer set rotates), QUAI blocks continue normally. SOAP is additive, not a liveness dependency. 

Governance & Rotation 

A small committee signs simple templates that specify the subsidy chain payout script and header knobs. QUAI only accepts subsidy chain work that matches a valid, quorum signed template and includes the reference to the QUAI work. Keys are rotatable (e.g., 2 of 3 threshold) so you can replace a compromised key and advance to a new epoch cleanly.


For additional details see QIP-16.

Security

All Quai Network blockchains are braided together, keeping the entire network censorship resistant and secure creating Scalable Proof-of-Work.

Decentralization

Quai allows anyone to participate in network governance by running a node or miner. With thousands of participants distributed across the globe, there is no single party with the ability to modify or turn off the network, ensuring zero network downtime.

Scalability

Quai Network automatically expands with demand to upwards of 50,000 TPS while keeping fees under $0.01.

Consensus

Transactions in Quai Network can be locally confirmed prior to global confirmation, offering high throughput with the shortest possible time to economic finality.

Shared Security

All blockchains within Quai Network share Proof-of-Work security through merged mining. Every Quai transaction is eventually confirmed by 100% of network hash power.

Merge-Mined Parachains

Parachains inherit security and interoperability by merged mining with Quai Network, and create new incentives for miners and users.

The Prime Chain

The Prime blockchain acts as the "knot" tying all Quai Network chains together. The Prime blockchain braids sub networks together, facilitating the transfer of data across chains.

Sub Networks

Quai's many high-speed sub networks independently and asynchronously process transactions. All sub networks are braided together by the Prime chain, ensuring shared security and interoperability across the network.