Skip to content Search Apps Documentation Source Content File Folder Download Copy Actions State String Boolean Number Struct Map Slice Pointer Function Closure Reference Nil Package Type Interface Unknown

Community realm. Read the code first. Community realm, deployed by its author. Read the code before you interact or send coins.

params.gno

0.97 Kb · 32 lines
 1package pado
 2
 3// Curve shape matches padv3 so a 300_000 GNOT raise uses the same virtual seed.
 4// VirtualUgnot0 is not a constant: Create scales it so the chosen raise is what
 5// selling CurveSupply locks.
 6//
 7//	vu0 = raise * (VirtualToken0 - CurveSupply) / CurveSupply
 8//	reachable = vu0 * CurveSupply / (VirtualToken0 - CurveSupply)
 9//
10// There is no trade fee. Buy spends the full quote. Sell returns the full quote
11// that this launch actually holds.
12
13const (
14	TotalSupply   int64 = 1_000_000_000
15	CurveSupply   int64 = 800_000_000
16	VirtualToken0 int64 = 1_073_000_191
17
18	// Creator-chosen raise, in ugnot. 1 GNOT = 1_000_000 ugnot.
19	MinRaiseUgnot int64 = 1_000_000             // 1 GNOT
20	MaxRaiseUgnot int64 = 1_000_000_000_000_000 // 1_000_000 GNOT
21
22	// Opening window only. This is a size cap, not a fee.
23	AntiSnipeHeights   int64 = 20
24	AntiSnipeMaxBuyBPS int64 = 500 // 5% of TotalSupply per address
25
26	MaxURILen = 256
27
28	StatusCurve     = 0
29	StatusGraduated = 1
30
31	DenomUgnot = "ugnot"
32)