const MinWindow, MaxWindow, MinLife, MaxLife, MinBasePrice, MaxBasePrice, MaxNameLen, HistoryLen, RosterMax, MaxBoost, MinClock, PotShare, DivShare, RefShare, CreatorShare, TeamShare, ShotMaxBps, ShotFair, ShotDelay, ShotWindow, MinShot, RevealTip, KeeperFresh, LiveFloor, MaxCommits, CommitBatch, CommitCompact
1const (
2 MinWindow int64 = 10 // seconds
3 MaxWindow int64 = 30 * 24 * 3600 // 30 days
4 MinLife int64 = 3600 // an hour
5 MaxLife int64 = 30 * 24 * 3600 // 30 days
6 MinBasePrice int64 = 1_000 // ugnot, 0.001 GNOT
7 MaxBasePrice int64 = 1_000_000_000_000 // ugnot, 1,000,000 GNOT
8 MaxNameLen = 40
9 HistoryLen = 50 // bids kept per pool for the feed
10 RosterMax = 100 // distinct bidders a pool pays dividends, team shares and the close split to
11 MaxBoost int64 = 10 // the shortest clock a bid can buy is window/MaxBoost...
12 MinClock int64 = 300 // ...and never under five minutes: people must be able to answer
13
14 // where every bid goes, in percent
15 PotShare int64 = 55
16 DivShare int64 = 30 // to earlier bidders of the pool, pro-rata by weight
17 RefShare int64 = 10 // to the bidder's inviter
18 CreatorShare int64 = 5
19 // of the pot at the close, to the other bidders under the winner's flag
20 TeamShare int64 = 35
21
22 ShotMaxBps int64 = 100 // 1% a shot, whatever is paid
23 ShotFair int64 = 8000 // chance in bps = ShotFair × shot / take (0.8 of fair odds)
24 ShotDelay int64 = 3 // blocks after the shot was paid for before it can be revealed...
25 ShotWindow int64 = 2 // ...and how many more blocks it may still be revealed in: three blocks, as v3 drew; three rolls at most for the secret's holder
26 MinShot int64 = 100_000 // ugnot: no shot under 0.1 GNOT, so dust cannot make reveals cost more than they tip
27 RevealTip int64 = 20_000 // ugnot: off every shot, to whoever reveals it
28 KeeperFresh int64 = 300 // seconds: shots are sold only this soon after the keeper's last sign of life (it heartbeats every two minutes)
29 LiveFloor int64 = 2500 // bps: no shots once the winner's live share has slid under a quarter (which also keeps every reveal window clear of the last day)
30 MaxCommits = 500 // unused commitments the queue holds at most
31 CommitBatch = 100 // hashes one Commit may bring
32 CommitCompact = 200 // used commitments kept before the queue is compacted
33)