52! · e · π · √2

The floor is not a hope.
It is a mathematical certainty.

Where mathematics meets decentralised finance.

A DeFi protocol on QF Network where every parameter — every tax rate, every threshold, every boundary — is derived from the fundamental constants of mathematics. Not arbitrary. Not governance. Constants.

QF Network · Chain ID 3426 Solidity 0.8.26 · PolkaVM 280+ Tests Passing

Project 52F is a decentralised finance protocol built on QF Network, a Substrate-based blockchain with 0.1-second block time and PolkaVM smart contract execution. The protocol introduces a token economy where every parameter, threshold, and mechanism is derived from mathematical constants — not arbitrary choices, not copy-pasted defaults, but values drawn from the fundamental constants of mathematics: 52 (the project's identity number), Euler's number e, the ratio of a circle's circumference to its diameter π, and the square root of 2.

The result is a self-reinforcing system. Tax revenue funds autonomous liquidity. Autonomous liquidity stabilises the floor. Floor stability enables a prize mechanism. The prize mechanism attracts volume. Volume generates tax revenue. Each component feeds the next.

52F is built on QF Network but is a distinct, independent protocol. QF Network is the infrastructure layer; 52F is an application built on top of it.

Project 52F is built by a single founder — a British mathematician and educator who returned to university in his late thirties, three years into sobriety, to master the mathematics he now teaches. He currently teaches mathematics and engineering at higher education level. He has no formal software development background.

The protocol was built using AI-assisted development and a deep understanding of the underlying mathematics. This is not a venture-backed project with a development team, a marketing department, and a treasury. It is one person, a set of mathematical constants, and the question of whether a protocol can be made structurally resistant to snipers, rug pulls, and founder trust risk from first principles — with minimal funding and no team.

The design reflects this constraint. Every mechanism that would normally require ongoing human judgement has been replaced with a mathematical rule. Tax rates are derived from constants, not set by governance. Liquidity management is autonomous, not discretionary. The prize system runs on probability theory, not admin intervention. The founder's vesting allocation is locked in contract bytecode with no override.

The constants do the rest.

Every numerical parameter in the protocol is derived from one of four mathematical constants. No arbitrary choices. No round numbers. No governance decisions. Mathematical facts.

Why 52?

Take a standard deck of playing cards and shuffle it. The number of possible orderings is 52 factorial — written 52! — a number so vast it defies intuition. It is larger than the number of atoms on Earth, larger than the number of seconds since the Big Bang, larger than any quantity the human mind encounters in daily life.

There is a famous thought experiment: set a timer for 52! seconds. Stand on the equator. Every billion years, take a single step. When you have circled the Earth, take a single drop of water from the Pacific Ocean. When the Pacific is empty, lay a single sheet of paper on the ground. Refill the ocean. Start walking again. When the stack of paper reaches the Sun — you are not even close to being a fraction of the way through.

Every time anyone has ever shuffled a deck of cards, the resulting order has almost certainly never existed before in the history of the universe, and will almost certainly never exist again. That is the scale of 52 factorial. It is a way of holding infinity in your hand.

This is the number that defines Project 52F. The total token supply is its first 11 digits. Epochs hold exactly 52 entries. Vesting releases across 52 tranches. The project's identity is not a brand exercise — it is a mathematical constant with extraordinary depth.

52!
The Identity Number
Supply from 52!, epochs hold 52 entries, 52 vesting tranches, zone boundaries at multiples of 5,200
e
Euler's Number ≈ 2.718
Buy tax: 272 BPS. Exponential growth governs the mechanism that compounds participation
π
Pi ≈ 3.14159
Sell tax: 314 BPS. The cyclical constant feeds the circular defence mechanism
√2
Square Root of 2 ≈ 1.414
Founder allocation: 12.077% from √2 × π × e. The diagonal that binds orthogonal dimensions

3.1 Total Supply

The total token supply is the first 11 digits of 52 factorial:

$$52! = 80{,}658{,}175{,}170{,}943{,}878{,}571{,}660{,}636{,}856{,}403{,}766{,}975{,}289{,}505{,}440{,}883{,}277{,}824{,}000{,}000{,}000{,}000$$

Yielding a fixed supply of 80,658,175,170 tokens. No mint function, no inflation, no governance pathway to increase supply.

3.2 Founder Allocation

The vesting allocation is derived from the product of the three irrational constants: $\sqrt{2} \times \pi \times e \approx 12.077\%$

3.3 Verifiability

Every numerical constant in Project 52F can be independently verified by any holder with a scientific calculator. The protocol's parameters are mathematical facts, not governance decisions.
Protocol Architecture

Three smart contracts handle token logic, liquidity management, and prize distribution. A keeper bot maintains them. The protocol trades on a Uniswap V2-compatible DEX.

ComponentTypeResponsibility
TokenEngineSolidity contractERC-20 token, tax routing, Great Drain, vesting, TWAP oracle, team wallet
DampenerVaultSolidity contractFloor injection, sell-into-strength, emergency mode, permanent LP lock
CryptographicSequencerSolidity contractBirthday Paradox epochs, collision detection, winner payouts
Keeper BotOff-chain scriptTWAP snapshots, drain checks, injection triggers, sell-into-strength triggers

All three contracts are written in Solidity 0.8.26 and compiled with resolc, the PolkaVM-compatible Solidity compiler. Zero inline assembly — a constraint imposed by the target runtime.

4.1 Information Flow

Every transaction passes through TokenEngine, which routes tax to the appropriate destination. TokenEngine is intentionally agnostic to the internal mechanics of both satellite contracts — it sends funds according to fixed BPS allocations. Either satellite could be upgraded via the governance timelock without modifying TokenEngine's core logic.

DEX TokenEngine ERC-20 · Tax Routing · TWAP · Great Drain · Vesting buys sells DampenerVault Floor · Sell-Into-Strength · Emergency CryptographicSequencer Birthday Paradox · Epochs · Prizes 239 BPS sell tax 39/52 prize tax permanent LP 75 BPS → Team (every tx, every phase) Keeper Bot (off-chain)
Tokenomics

5.1 Supply

AllocationTokens% of Supply
Circulating at launch70,917,080,93787.923%
Founder vesting vault9,741,094,23312.077%
Total supply (fixed)80,658,175,170100.000%

The total supply is the first 11 digits of 52 factorial. Minted at deployment, permanently fixed — no mint function, no inflation mechanism, no governance pathway to increase supply. The only direction supply can move is down, via the burn mechanism in the Scarcity phase.

5.2 Vesting

The founder allocation of 12.077% (derived from $\sqrt{2} \times \pi \times e$) vests across 52 tranches, one every 5,200,000 blocks (approximately 6 days at QF Network's 0.1-second block time). Each tranche releases 187,328,735 tokens, with 13 tokens of dust added to the final tranche to ensure the vault empties exactly. Total vesting duration: approximately 10.4 months.

Vesting is claim-based: the founder must actively call claimVesting() to receive earned tranches. Unclaimed tranches accumulate but do not auto-release.

5.3 Seed Liquidity

At launch, 52,000 QF is sent to the DampenerVault in batches — a dust amount first to establish the pair and verify the plumbing, then the remainder once confirmed. The vault handles pair creation and LP setup autonomously via its one-time bootstrap function: 80% (41,600 QF) deployed as liquidity paired with matching 52F tokens, 20% (10,400 QF) retained as operating reserve.

The LP tokens are minted directly to the DampenerVault — the founder never holds them, never interacts with the DEX directly. Since the vault contains no LP withdrawal function, this liquidity is permanently locked from the moment of creation.

Economic Mechanics
75 BPS is routed to the team wallet on every transaction, in every phase, with no exceptions. Carved from the headline rate, not added on top.

6.1 Steady-State Rates (Hardening & Scarcity)

DirectionTotal TaxPrize PotDampenerTeam
Buy (e) 272 BPS197 BPS0 BPS75 BPS
Sell (π) 314 BPS0 BPS239 BPS75 BPS

The asymmetry is intentional. Buys fund the prize pot via the CryptographicSequencer, incentivising purchase volume. Sells fund the DampenerVault, which converts sell-side revenue into permanent liquidity — directly counteracting the price impact of the sells that generated it.

Arithmetic verification: Buy 197 + 0 + 75 = 272. Sell 0 + 239 + 75 = 314. Both check sums are exact.

6.2 Anti-Sniper Zones (Launch Protection)

The first 10,400 blocks (~17 minutes) operate under elevated tax designed to prevent sniper bots.

Zone A — Blocks 0–5,200 · ~8.7 minutes

All transactions incur 9,500 BPS (95%) tax. Of this, 9,425 BPS flows to the DampenerVault and 75 BPS to the team. Prize allocation is zero. This deters snipers while simultaneously capitalising the DampenerVault with its long-term operating funds.

Zone B — Blocks 5,200–10,400 · ~8.7 minutes

Tax decays linearly from 9,500 BPS toward the steady-state floor. Decay occurs in steps of 100 BPS every 104 blocks. Buy tax decays toward the e floor (272 BPS), sell tax toward the π floor (314 BPS). Team remains at 75 BPS throughout. By block 10,400, rates have reached their permanent values.

Protocol Mechanics

The Great Drain converts accumulated prize-pot QF into structural liquidity or deflationary pressure, depending on the protocol's phase and health.

7.1 Trigger

Fires when the prize pot accumulates QF equivalent to 520,000,000 tokens multiplied by the current TWAP. At low token prices, this threshold is small and fires frequently — building liquidity aggressively when it matters most. At higher prices, it requires more accumulation, allowing the prize pot to grow before each event.

7.2 Seizure and Routing

Each Drain seizes 50% of the prize pot (5,000 BPS). The remaining 50% continues accumulating.

PhaseConditionAction
HardeningAlways100% seized QF paired with 52F from supply → addLiquidity, deepening LP and reducing circulating 52F
ScarcityLP ratio ≥ 15%50% buys & burns 52F to dead address; 50% QF to dead address
ScarcityLP ratio < 15%100% → addLiquidity (health check overrides burn)

The health check is critical. Burning QF when liquidity is thin would destroy market structure. The 15% LP ratio threshold ensures burn only activates when the protocol can absorb the deflationary pressure.

7.3 Cooldown

Minimum 5,200 blocks between Drains, plus 0–519 random blocks from blockhash entropy. The cooldown variable (nextDrainBlock) is updated before external calls as a reentrancy safeguard.

7.4 Self-Scaling Economics

The Drain creates a positive feedback loop: low price → low threshold → frequent drains → LP builds → price support → higher threshold → larger prize pots → larger drain events. The system finds its own equilibrium without governance intervention.

Autonomous Liquidity

The DampenerVault is a three-strategy autonomous liquidity engine. It receives funds from sell-side tax (239 BPS) and from Great Drain events, then deploys them through three independent mechanisms.

StrategyTriggerActionPhase
Floor Injection LP ratio < 15% Pull QF, market buy 52F, add as permanent LP All phases
Drain Routing Great Drain fires (Hardening) Seized QF paired with 52F from supply → permanent LP, deepening liquidity and reducing circulating tokens Hardening
Sell-Into-Strength Spot > TWAP by 18–25.9% Sell 52F into pump (fires only on 18%+ pumps, reduces pump by max ~2%), all proceeds to permanent LP Scarcity only

8.1 Floor Injection

When the vault's QF balance relative to pair reserves falls below 15%, injection activates. Normal mode (7.5%–15%): 50% market-buys 52F, paired with the other 50% as liquidity. Emergency mode (below 7.5%): direct LP addition without market buy — depth over price impact. Each injection is capped at 10% of vault balance, with a randomised cooldown of 48–72 minutes.

8.2 Sell-Into-Strength

Activates exclusively in the Scarcity phase (after block 26,000,000). When speculative buying pushes spot price 18–25.9% above TWAP, the vault sells a precisely calculated quantity of 52F into the pump. The sell quantity is derived from the AMM's constant product formula — producing a price impact of at most ~2%. An 18% pump gets trimmed to roughly 16%. The organic movement stays intact.

This is mathematically self-limiting: a shallow pool produces a tiny sell, a deep pool allows a larger sell. The mechanism cannot over-sell because the formula is bounded by the pool's own reserves. All QF proceeds are immediately paired with remaining 52F and added as permanent liquidity.

8.3 Permanent Liquidity

All LP tokens received by the DampenerVault are permanently locked. There is no withdrawal function, no governance override, and no mechanism by which LP tokens can leave the vault. This is not a timelock — it is the absence of any withdrawal code. You cannot call a function that does not exist.

Prize Mechanism

The CryptographicSequencer implements a probabilistic prize system based on the birthday paradox — the counterintuitive result that in a group of just 23 people, there is a greater than 50% chance that two share a birthday. Project 52F exploits this principle with 52 entries across a space of 1,000 possible IDs.

9.1 Collision Probability

The probability of at least one collision among n entries in a space of d possible IDs:

$$P = 1 - \frac{d!}{(d-n)! \cdot d^n}$$

With n = 52 and d = 1,000: $P \approx 0.739$ — roughly three out of four epochs produce a winner. The 26% no-collision rate ensures pots roll over and grow, creating occasional larger payouts.

9.2 Epoch Lifecycle

Each epoch accepts up to 52 entries. Any buy of at least 52,000,000 tokens qualifies. Each entry receives a numeric ID between 0 and 999, derived from a hash of transaction origin, blockhash, nonce, and block number. A collision resolves the epoch.

9.3 Prize Pool Split

The prize flow operates in two stages. First, TokenEngine retains 13 parts of every 52 (25%) of buy-side prize tax as Drain fuel, forwarding the remaining 39 parts to the Sequencer. The Sequencer splits this 39 into 34 (winner share) and 5 (liquidity contribution to the DampenerVault).

OutcomeWinner (34/39)Liquidity (5/39)Rollover
Collision (~74%)Paid to colliding entries→ DampenerVaultNone
No collision (~26%)Rolls to next epoch→ DampenerVaultWinner share grows

9.4 Entropy

Entry IDs use keccak256 of transaction origin, previous block's hash, an incrementing nonce, and current block number. This prevents both validator front-running and user prediction while remaining gas-efficient.

Structural Advantage

Most DeFi protocols have one mechanism for building liquidity. Project 52F has six — each independent, each feeding permanently locked LP tokens into the DampenerVault. There is no withdrawal function. There is no governance override. Every route terminates in liquidity that can never be removed.

01
Zone A Capitalisation
94.25% of all launch volume flows to the DampenerVault in the first ~9 minutes
02
Sell Tax
239 BPS of every sell, every phase, forever — sell pressure converted to floor depth
03
Floor Injection
When LP ratio drops below 15%, the vault buys into weakness and adds permanent LP
04
Great Drain Routing
Seized prize pot QF paired with 52F from supply — liquidity deepens, circulating supply contracts
05
Sequencer Liquidity Share
5/39 of every epoch's prize allocation flows to the DampenerVault — win or lose, liquidity grows
06
Sell-Into-Strength
Excess pump volatility harvested into permanent LP — the vault converts speculation into floor
Six independent mechanisms. One destination. Every route terminates in permanently locked liquidity. You cannot call a function that does not exist.

The three contracts are autonomous in their logic but require an external caller. The keeper bot monitors state and calls permissionless functions at regular intervals.

#CallPurpose
1TokenEngine.maintain()TWAP snapshot + drain check
2Sequencer.registerFromKeeper()Register qualifying buy events as epoch entries
3DampenerVault.pull()Pull QF, assess injection need
4DampenerVault.executeBuy()Normal: market-buy 52F (ratio 7.5%–15%)
4aDampenerVault.executeEmergency()Emergency: direct LP (ratio < 7.5%)
5DampenerVault.addLiq()Add as permanent liquidity
6DampenerVault.initiateSell()Detect pump, execute sell (Scarcity only)
7DampenerVault.completeSell()Pair proceeds → permanent LP

11.1 Multi-Step State Machine

PolkaVM limits cross-contract calls to ~7 per transaction. The DampenerVault splits operations across multiple keeper calls: pull()executeBuy()addLiq() for injection, and initiateSell()completeSell() for sell-into-strength. Both state machines are independent.

11.2 Centralisation and Liveness

All keeper functions are permissionless — any address can call them. A malicious or absent keeper cannot steal funds, alter parameters, or redirect tax. It can only delay maintenance. Any community member can run a keeper using the published call sequence.

Protocol Lifecycle

Four phases, defined by block number. Transitions are automatic and irreversible.

Phase 1
Zone A
Blocks 0–5,200 · ~8.7 minutes. 9,500 BPS both directions. Sniper deterrence; DampenerVault capitalisation. 95% of all volume flows to the vault.
Phase 2
Zone B
Blocks 5,200–10,400 · ~8.7 minutes. Linear decay from 9,500 BPS toward e/π floors. Tax normalises in 100 BPS steps every 104 blocks.
Phase 3
Hardening
Blocks 10,400–26,000,000 · ~30 days. Steady-state 272/314 BPS. Liquidity building via Great Drain (100% → LP) and floor injection. No sell-into-strength.
Phase 4 — Indefinite
Scarcity
Block 26,000,000+. Full mechanism set active. All three Dampener strategies operational. Conditional burn pathway. Sell-into-strength harvests volatility into permanent floor.

The Hardening → Scarcity transition at block 26,000,000 is the most significant boundary. It activates sell-into-strength and changes Drain routing from pure LP to conditional burn/LP. By this point, ~30 days of liquidity accumulation through all six routes has established the protocol's baseline.

Minimal governance by design. Economic parameters — tax rates, drain thresholds, phase boundaries, vesting schedule — are immutable constants in contract bytecode. They cannot be changed after deployment.

13.1 What Can Be Changed

Two — and only two — contract addresses: DampenerVault and CryptographicSequencer. This allows satellite contracts to be upgraded if a critical bug is found, without redeploying TokenEngine.

13.2 Two-Step Timelock

Any address change requires a mandatory 24-hour delay. Propose → wait → confirm, in separate transactions. Either step can be cancelled. A pre-trading bypass allows rapid wiring during deployment; once enableTrading() is called, the full delay is permanently enforced.

13.3 Team Wallet

Set at deployment, receives 75 BPS from every transaction. The address can be changed for key rotation without contract redeployment.

Reentrancy Protection

All state variables controlling fund flows are updated before external calls. The multi-step state machine inherently prevents reentrancy — each step transitions to a new state that cannot re-enter the previous step.

Integer Arithmetic

Solidity 0.8.26 built-in overflow/underflow protection. Tax calculations use BPS with explicit sum verification to prevent rounding errors.

Access Control

Critical functions restricted by modifier: onlyOwner, onlyDampener, onlyTokenEngine. Dedicated tests verify each restricted function reverts when called by unauthorised addresses.

Oracle Design

TWAP: circular buffer of 60 snapshots, 36,000-block lookback (~1 hour). Resists single-block manipulation — an attacker would need to sustain distortion across the full window.

Entropy

Sell-into-strength uses enriched entropy: blockhash + sell nonce + cumulative injection total + vault address + caller address. Not cryptographically secure against a validator controlling block production, but the economic cost of exploitation exceeds the reward at launch-scale TVL. The threat model is explicit.

Test Coverage

280+ passing tests across two test files, covering core functionality, edge cases, access control, phase transitions, drain routing, vesting, and 20 dedicated sell-into-strength tests including adversarial cases.

Project 52F has not been formally audited by a third-party security firm. The absence of a formal audit should be considered a risk factor.

15.1 QF Network

Substrate-based blockchain, Chain ID 3426, 0.1-second block time, PolkaVM execution. Contracts compiled with resolc v0.5.0 producing PolkaVM bytecode. The network rejects EVM bytecode entirely.

15.2 Deployment Sequence

Strict eight-step order: DEX infrastructure → TokenEngine → DampenerVault & CryptographicSequencer → cross-contract wiring → seed liquidity → pair registration → enableTrading(). The verifyWiring() function must return all-true before trading is enabled.

15.3 AMM Integration

Compatible with any Uniswap V2 AMM. At launch, 52F trades on the Nucleus X DEX. All interfaces match standard Uniswap V2 function signatures, allowing migration to alternative AMMs without contract modification.