Stork Protocol Architecture
One-signature Starknet meme launchpad deploying fixed 1B supply tokens at $5,000 initial FDV with zero upfront quote capital and configurable 80/20 swap fee streaming to Creator or Holders in the pool's exact quote pair (STRK or ETH).
01 · Constant-Product Bonding Curve & Price Discovery
x · y = k · $5K → $73.5K FDVSupply deploys single-sided above the launch tick so markets price smoothly along x · y = k from block zero with zero seed capital and zero round-trip arbitrage. Scrub demand below to inspect live reserves:
Constant-Product Curve & Price Discovery
x · y = kP(t) = P₀ / (1 − 0.7391·t)²Initial reserve: 142.9K STRK ↔ 1.00B tokensGraduation target: 100% Bonded → Locked LPOne-Signature Atomic Launch via Account Abstraction
Unlike EVM chains where token deployment, approval, pool initialization, and LP minting require 3–4 separate transactions (exposing a window for front-runners), Starknet's native Account Abstraction bundles all four operations into a single atomic multicall. Inspect each call in the execution envelope below.
Native Account Abstraction · 4-Call Atomic Multicall
1 signature · 1 L2 blockDeploys an immutable fixed-supply 1B ERC-20 token with ownership permanently burned.
udc.deployContract(
class_hash: OZ_ERC20_FIXED_SUPPLY,
salt: random_felt252,
unique: true,
calldata: [name, symbol, 1_000_000_000e18, caller, owner: 0x0]
)Selectable Fee Tiers & 80 / 20 Split (0% LP)
At token creation, the deployer selects both the swap fee tier (0.30%, 1.00%, 2.00%, or 5.00%) and who receives the primary 80% share: Creator or Holders. The remaining 20% funds Stork (split 50/50 between $STORK buybacks and protocol operations), with 0% retained by LP.
80 / 20 Fee Routing Sankey & Yield Calculator
0% LP deductionContinuous Quote-Pair Distribution in O(1) Gas
Looping over thousands of holders on every swap is impossible on-chain. For Holders-mode tokens, Stork converts collected fees into the market's exact quote pair (STRK or ETH) and updates a single magnified global index (acc_quote_per_token) in O(1) gas. Locked LP addresses are strictly excluded so 100% of the 80% fee flows exclusively to circulating holders, while ERC-20 before_update checkpoints prevent flash-loan fee sniping and preserve earned rewards upon selling.
O(1) Continuous Quote-Pair Holder Rewards Simulator
StorkHolderRewards.cairo// 1. O(1) Global Quote-Fee Deposit
let num = quote_80 * 1e27 + pool.dust;
pool.acc_quote_per_token += num / eligible_supply;
pool.dust = num % eligible_supply;
// 2. ERC-20 before_update Checkpoint
fn before_update(from, to, amount) {
checkpoint(from); // locks earned quote fees
checkpoint(to); // blocks past-fee sniping
if pending >= auto_threshold {
quote_erc20.transfer(holder, pending);
}
}Enforced On-Chain Invariants & STARK Validity
Every security guarantee on Stork is enforced directly at the Cairo contract layer rather than off-chain policy: fixed supply, zero admin ownership, capped launch allocations, optional 60-second linear decaying 90% → base fee Anti-Snipe protection routed to Creator or Holders, and hash-based post-quantum STARK proofs verified on Ethereum L1.
Launch Security Timeline & Enforced Invariants
Zero admin keys| Invariant | Enforcement Layer | On-Chain Guarantee |
|---|---|---|
| Fixed Supply & Burned Owner | LaunchToken.cairo / UDC | 1,000,000,000 minted once; owner set to 0x0 — zero post-deploy mint, freeze, or tax. |
| Permanent Liquidity Lock | StrkFunFactory + Positions NFT | 97%–100% of supply deposited single-sided; principal withdrawal entrypoint does not exist. |
| Optional 60s Anti-Snipe Shield | Factory Decay Curve (t < t₀ + 60s) | When enabled at launch, swap tax decays linearly from 90.00% → base fee over 60s; 100% of surcharge routes to Creator or Holders (creator launch buy exempt). |
| Anti-Snipe Holder Checkpoints | ERC-20 before_update Hook | Balance changes checkpoint reward index before transfer — zero flash-loan fee theft. |
| Post-Quantum Validity Proofs | Starknet STARK Prover | Hash-based STARK proofs require no trusted setup and resist Shor's algorithm. |
Verified Starknet Mainnet Contracts
| Contract | Spec | Starknet Mainnet Address | Explorer |
|---|---|---|---|
Universal Deployer (UDC) Token Factory Deployment | Canonical SN_MAIN | Voyager | |
Fixed-Supply ERC-20 Class OpenZeppelin Cairo 2 | 1B Fixed · owner 0x0 | Voyager | |
Liquidity Core Singleton Pool State & Tick Math | Concentrated Liquidity | Voyager | |
LP Positions Vault Single-Sided Locked LP | Fee Harvest & Lock | Voyager | |
LP Positions NFT (ERC-721) Position Custody | Factory-Held Lock | Voyager | |
Settlement Swap Router Atomic Swap & Slippage | clear_minimum Guard | Voyager | |
STRK Quote Token Canonical Quote Pair | 18 decimals | Voyager | |
ETH Quote Token Canonical Quote Pair | 18 decimals | Voyager | |
EKUBO / STRK Live Market Verified Mainnet Pool | 1.00% Fee Tier | Voyager |
