One stock trigger. Two strictly separated capital paths.

PREtp does not simulate a stock market. It runs a tradable pre-token token market and a separate conditional stock-buying vault, and connects them only at a verified tokenization event.

Accounting buckets

Five buckets, reconciled independently, with distinct storage accounting and preferably distinct custody.

BucketSourceBefore the triggerAfter the trigger
Curve principalNet token buys less sell redemptionsBacks curve exitsBuys stock for protocol-owned LP
LP fee reserveFixed 3% of buy/sell notionalAccumulates outside the redemption reserveBuys additional stock for LP
Reward reserveFixed 1% of buy/sell notionalReserved for eligible holdersClaimable pro rata
Company feesTier remainder: 4/3/2/1%Company revenueNever used for redemptions or LP
Stock-vault principalDeposit less 0.5% entry feeConditional stock purchaseUser stock allocation or refund

Pre-token fee engine

Fees fall as the token proves demand, and the ladder is downward-only.

<$100K MC
8%
3% LP · 1% rewards · 4% company
$100K–$500K
7%
3% LP · 1% rewards · 3% company
$500K–$1M · active
6%
3% LP · 1% rewards · 2% company
$1M+
5%
3% LP · 1% rewards · 1% company
MARKET CAP

15-minute TWAP price × fixed token supply. Not the last transaction.

FEE TIER

The lowest milestone ever verified. Stored per ticker.

RATCHET

If market cap later falls, the fee does not rise. Ever.

Graduation math

A v4 pool's currencies are fixed at initialization, so a TOKEN/USDG pool cannot become TOKEN/STOCK in place. The executor opens a new pool after verification, preserving the curve's final token price.

CalculationFormulaDemo
Stock purchasedQstock = R ÷ S$449,940 ÷ $250 = 1,799.76
Token pairedQtoken = R ÷ P$449,940 ÷ $0.000742 = 606.4M
Opening price in stockPpair = P ÷ S0.000002968
Nominal opening TVL2R$899,880
Price gap policy. If actual stock execution deviates beyond the proof's bound, abort or partially fill. Never force the pool to preserve a stale nominal price.

Quantum Relay · the Entangled Proof

The trigger is a verified state transition, not a price feed. Prototype target is a 3-of-5 quorum with source-type diversity, so no single source can graduate a market.

OBSERVE
  • Issuer or transfer-agent registry
  • Token contract events
  • Chain explorer / registry
  • DEX or market-maker route
  • Reference pricing venue
VERIFY
  • Canonical identity and symbol
  • Decimals and supply hash
  • Verified bytecode and owner
  • Minimum executable liquidity
  • Bounded, non-stale price route
PROVE
  • targetId + chainId
  • stockToken
  • route + minLiquidity
  • referencePrice + bounds
  • sourceRoot + quorum
  • nonce + deadline
A listing headline is insufficient. Graduation begins only when canonical identity, executable liquidity and a bounded price route are proven simultaneously.

Contract state machine

Every transition has a failure path.

StateAllowedBlockedExit condition
CURVE_LIVEToken buy/sell; vault deposit/withdrawMigration callsValid, fresh Entangled Proof
FROZENRead, verify snapshotNew trades and depositsExecution route accepted
CONVERTINGStock purchase and pool setupUser mutationsSettlement or failure deadline
V4_LIVEPool swaps, reward and stock claimsReturn to curveTerminal
REFUNDPro-rata USDG/stock withdrawalFurther acquisitionAll users settled

Failure policy

Modules

ModuleResponsibilityTrust boundary
TickerFactoryDeploy token, curve vault and immutable configApproved implementations; deterministic IDs
BondingCurveVaultQuote and execute trades; hold principal; route fees; checkpoint rewardsSolvency invariant; non-reentrant
StockPurchaseVaultDeposit and withdraw; track buying capital; user claimsNever callable as an LP funding source
QuantumRelayAdapterValidate proof signer, quorum, nonce, freshness and targetSigner rotation behind a timelock
GraduationExecutorFreeze, acquire stock, initialize the pool and settleBounded route approvals and deadlines
PtpHookPost-launch swap policy and stock-aware reward logicCannot change pool currencies

Non-negotiable invariants

What the contracts must never allow.

Stock-vault principal never funds token liquidity.
Company and reward fees never fund curve redemptions.
No graduation without a canonical, fresh stock-token proof.
A fee tier never rises after a lower tier unlocks.
Protocol-owned migration LP cannot be withdrawn by an administrator.
A failed or partial execution cannot strand USDG indefinitely.
Migration inventory never enters reward calculations.
Every external call is reentrancy-protected and bounded by explicit min-output rules.
Not yet audited. This is a product and contract-design specification, not an audit, legal opinion or securities analysis. Smart-contract audit, oracle threat model, market-manipulation review and jurisdiction-specific legal advice are all required before handling real funds.