const TotalSupply, CurveSupply, PoolSeed, VirtualUgnot0, VirtualToken0, GraduationThreshold, FeeBPS, CreatorFeeShareBPS, ProtocolFeeShareBPS, CreateBondUgnot, BondRefundBuyers, BondRefundMinRaised, BondRefundMaxHeights, AntiSnipeHeights, AntiSnipeMaxBuyBPS, StatusCurve, StatusGraduated, MaxTradeHistory, TradeSideBuy, TradeSideSell, TradeSideOpen, DenomUgnot, GnoswapFeeTier, GnoswapTickSpacing, GnoswapMinTick, GnoswapMaxTick, GnoswapMaxFeeWugnot
1const (
2 // Token economics
3 TotalSupply int64 = 1_000_000_000
4 CurveSupply int64 = 800_000_000 // sold on bonding curve
5 // PoolSeed is legacy: graduation seeds LP with ALL remaining tokens
6 // (TotalSupply - RealSold), not a fixed 200M reserve.
7 PoolSeed int64 = 200_000_000
8
9 // Virtual constant-product seed (Pump-style)
10 VirtualUgnot0 int64 = 30_000_000 // 30 GNOT virtual
11 VirtualToken0 int64 = 1_073_000_191 // virtual token side
12
13 // Graduation when net ugnot raised into the curve reaches this.
14 // Sapphire deploy patches to 100 GNOT.
15 // Keep below the ugnot needed to exhaust CurveSupply on the virtual CPMM.
16 GraduationThreshold int64 = 100_000_000
17
18 // Fees: 1.20% total. Of the fee: 40% creator, 40% protocol, 20% LP/k remainder.
19 FeeBPS int64 = 120
20 CreatorFeeShareBPS int64 = 4000
21 ProtocolFeeShareBPS int64 = 4000
22
23 // Fallback create bond for unit tests / if bond realm unavailable.
24 // Production pad uses createbond.CurrentBondUgnot() (see bond package).
25 // Sapphire normal bond = 2 GNOT; promo ≈ $20 in ugnot set on bond.StartPromo.
26 CreateBondUgnot int64 = 2_000_000
27 BondRefundBuyers int = 5
28 BondRefundMinRaised int64 = 10_000_000 // ≥5 GNOT raised
29 BondRefundMaxHeights int64 = 100_000
30
31 // Anti-snipe: first N heights, max cumulative tokens per address (BPS of TotalSupply).
32 AntiSnipeHeights int64 = 30
33 AntiSnipeMaxBuyBPS int64 = 300 // 5% per address in window
34
35 // Status
36 StatusCurve = 0
37 StatusGraduated = 1
38
39 // Trade history ring buffer.
40 MaxTradeHistory = 256
41 // Trade sides stored in history
42 TradeSideBuy = 0
43 TradeSideSell = 1
44 TradeSideOpen = 2 // initial listing mark
45
46 DenomUgnot = "ugnot"
47
48 // --- Gnoswap auto-list (Sapphire) ---
49 // CreatePool fee is fixed in GNS (pool.GetPoolCreationFee, typically 100e6 = 100 GNS).
50 // GNOT cost of that fee MOVES with market (~10 GNOT/GNS on Sapphire probe → ~1000 GNOT/listing).
51 //
52 // Funding model (price-safe):
53 // LP = raised-sized WUGNOT (protected — never sold for fee)
54 // Fee = pre-funded GNS on pad OR surplus WUGNOT above raised (ExactOut → GNS)
55 // wugnot.Deposit is EOA-only — protocol wraps off-pad and transfers inventory in.
56 GnoswapFeeTier uint32 = 3000 // 0.3% meme tier
57 GnoswapTickSpacing int32 = 60
58 GnoswapMinTick int32 = -887272
59 GnoswapMaxTick int32 = 887272
60 // Max WUGNOT (ugnot units) allowed for ExactOut fee buy — price ceiling / slippage cap.
61 // Not tied to raised/2. At ~10 GNOT/GNS, 100 GNS needs ~1006 GNOT; 5000 leaves headroom
62 // if GNS becomes ~5× more expensive vs GNOT. Prefer pre-funding GNS to skip this path.
63 GnoswapMaxFeeWugnot int64 = 5_000_000_000 // 5000 GNOT
64)