跳到主要內容

Built-In Bonding Curves and Anti-Sybil Graduation Gates: A Deterministic Approach to Bootstrapping Liquidity

Robert Mao
BlockchainBondingCurveAMMAntiSybilTokenFactory

Any team issuing utility points, community tokens, or a settlement unit for an application ecosystem faces the same engineering problem on day one: the cold-start liquidity paradox.

  • Listing a new token on an order book or in a constant-product automated market maker (AMM) requires substantial initial reserves on both sides. If the pool is shallow, even a few swaps can cause substantial slippage.
  • Using an external smart-contract launchpad to collect reserves and create a pool later introduces two risks: the creator may withdraw the reserves instead of establishing the pool, or an attacker may split one wallet across 500 Sybil wallets to fabricate broad participation and trick an automatic graduation mechanism.

ArcBlock's TokenFactory architecture defines a token's lifecycle as a two-stage deterministic state machine driven directly by the ledger kernel: BONDING_CURVE incubation, followed by CONSTANT_PRODUCT_AMM operation. A strict anti-Sybil graduation gate controls the transition between them.

The built-in bonding-curve incubation engine uses a deterministic reserve integral to bootstrap continuous two-way liquidity without an external market maker

1. Why Bootstrap with a Built-In Bonding Curve (BONDING_CURVE)?

When a creator selects bonding-curve mode through createToken, they do not need to supply a large two-sided liquidity pool or deploy a third-party market-making contract. The kernel allocates a protected curve reserve vault. A deterministic mathematical curve governs mint-on-swap-in and burn-on-redeem operations:

  1. Continuous redemption backed by reserves. During the curve phase, the underlying reserve assets paid into each swap are locked in the token's reserve vault. When tokens are returned to the curve, the state machine computes redemption along the same integral in reverse and releases the corresponding reserve assets. The vault's actual reserves and the outstanding curve supply must satisfy the reserve integral's conservation equation.
  2. Protocol-level integer precision and dust protection. Rounding errors in custom contracts can allow repeated transactions to erode reserves. ArcBlock's curve calculations use high-precision, deterministic big-integer arithmetic in the ledger kernel, with vault-favoring rounding: fractional remainders stay in the reserve vault. This prevents a rounding-only round trip from producing an extra minimum unit for the caller.

2. The Anti-Sybil Graduation Gate: Why Counting Addresses Is Not Enough

Once a curve has accumulated sufficient reserves, it can graduate to a two-sided constant-product AMM. But how should the protocol distinguish a sufficiently distributed holder base from activity manufactured by a single operator?

Some launchpads use a fragile rule: the number of holding addresses must reach a threshold, such as 100. A script can distribute tiny dust balances to 100 newly created addresses in seconds, manufacturing the appearance of a community.

To exclude those dust balances, ArcBlock's graduation state machine, graduateCurveToNativeAmmPool, introduces MIN_GRADUATION_HOLDER_SHARE_BPS = 50, a qualifying holding threshold of 0.50%, or 50 basis points.

The anti-Sybil graduation gate excludes balances below 50 bps and combines qualifying holdings with reserve-depth requirements

The kernel requires three mathematical checks to pass:

  1. Minimum reserve depth (minGraduationReserve). The actual underlying reserves locked in the curve vault must meet or exceed the graduation target specified in the token's charter, minGraduationReserve.
  2. Qualifying holder count (minGraduationUniqueHolders and >= 50 bps). When checking minGraduationUniqueHolders, addresses holding less than 0.50% (50 bps) of the current circulating supply are treated as dust and excluded. Total supply represents 100% (10,000 bps), so creating thousands of empty wallets cannot inflate this count through dust transfers. Every qualifying account must hold at least 0.50% of the circulating supply.
  3. Maximum whale concentration. Beyond the required number of >= 50 bps holders, the gate checks that the largest address holdings remain below the concentration limit, preventing a highly concentrated distribution from forcing graduation.

Embedding MIN_GRADUATION_HOLDER_SHARE_BPS = 50 in the kernel turns a distribution requirement into a deterministic assertion on every graduation transaction. It raises the cost of manipulating the holder count; an address threshold alone does not establish that different addresses have different controllers.

3. Graduation and Stake-for-Liquidity: Permanently Locked Protocol Liquidity

After the token passes the graduation gate, the protocol transitions from BONDING_CURVE to CONSTANT_PRODUCT_AMM within one atomic transaction.

Stake-for-Liquidity atomically migrates curve reserves into an AMM pool and locks the initial liquidity with revocable: false

  1. Atomic reserve migration. All underlying reserve assets accumulated in the curve vault, together with the corresponding token quantity calculated at the graduation conversion ratio, move directly into a newly initialized built-in constant-product AMM pool (x * y = k). No external intermediary account or separate migration transaction sits between the two stages.
  2. Permanent Stake-for-Liquidity locking (revocable: false). The initial liquidity position is not delivered to the creator's personal wallet. It is locked in a protocol-level Stake-for-Liquidity state slot with the mandatory revocable: false flag, making that position irrevocable and unavailable for unstaking.

In a conventional DEX, a party controlling an unlocked liquidity position can redeem it and remove its underlying reserves. ArcBlock's Stake-for-Liquidity protection makes the graduation baseline pool unavailable for such withdrawal: the creator, large holders, and node operators cannot withdraw that locked initial position through the protocol.

4. External Launchpads vs. a Built-In Two-Stage Engine

Engineering dimensionExternal smart-contract launchpad + DEXArcBlock's built-in BONDING_CURVE → AMM state machine
Deployment and auditingSeparate market-making contracts and migration scripts require review for reentrancy and arithmetic errorsNative TokenFactory primitives require no application-specific market-making contract
Rounding protectionDepends on the contract implementationKernel-level big-integer arithmetic with vault-favoring rounding
Dust-based Sybil resistanceSimple address counts can be inflated through dust transfersMandatory MIN_GRADUATION_HOLDER_SHARE_BPS = 50 (0.50%) filter
Graduation migrationCross-contract or multistep operations may expose intermediate statesCurve closure and AMM initialization occur atomically in one transaction
Initial liquidity withdrawal protectionDepends on third-party locking contracts or operator commitmentsProtocol-enforced Stake-for-Liquidity with revocable: false

From Mechanism Design to Deterministic Execution

Combining curve incubation, a 50 bps qualifying-holder filter, and permanent Stake-for-Liquidity locking in one ledger primitive gives applications and communities a defined liquidity bootstrap process. It removes the need to pre-fund a large two-sided pool, excludes dust balances from the graduation count, and prevents withdrawal of the locked graduation liquidity.

Once a token reaches the built-in CONSTANT_PRODUCT_AMM stage, how does the kernel handle swaps, slippage limits, and routed payments across currencies? The next article examines “Enshrining an AMM DEX in the Ledger Kernel: Asymmetric Rounding, No Positive-Slippage Skimming, and Atomic Multihop PathPayment.”