Constants
Invariant
Let:sbe sold curve tokens in base units;rbe active ETH principal in wei;Vtbe the virtual token reserve;Vebe the virtual ETH reserve;K = Vt × Ve.
Δr, the contract computes:
Δs tokens:
ceil((Ve + reserveCoordinate) × 1e18 / (Vt - s)) wei per whole token. Price rises as buys reduce virtual token inventory and add net reserve; sells reverse that movement before graduation.