Commit 990d173
feat(pit): the operator sets the price, not the form (#170)
$2 a name and $5 an ending are defaults, not ceilings. The server already
knew that -- setTldPrice deliberately does not enforce MAX_CHILD_PRICE_USD,
which is why .love sits at $10,000 today. The claim form did not: it shipped
max="2" on the price input, so the UI refused what the API would have
accepted and looked like policy while being a typo's worth of markup.
The remaining bound was $1,000,000, low enough to be a policy decision nobody
made. It is now MAX_LISTING_PRICE_USD, a named overflow guard at $1e9 whose
only job is keeping Infinity, NaN and 1e300 out of a column that later gets
charged.
MAX_CHILD_PRICE_USD is untouched: it is part of the vendored namespace rules
that must match the published package byte for byte in behaviour, and it is
still the right default. It just is not a limit.
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>1 parent 681ca9e commit 990d173
3 files changed
Lines changed: 41 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
32 | 46 | | |
33 | 47 | | |
34 | 48 | | |
| |||
334 | 348 | | |
335 | 349 | | |
336 | 350 | | |
337 | | - | |
338 | | - | |
339 | | - | |
340 | | - | |
341 | | - | |
342 | | - | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
343 | 356 | | |
344 | 357 | | |
345 | 358 | | |
| |||
773 | 786 | | |
774 | 787 | | |
775 | 788 | | |
776 | | - | |
| 789 | + | |
777 | 790 | | |
778 | 791 | | |
779 | 792 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
| 45 | + | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| |||
658 | 658 | | |
659 | 659 | | |
660 | 660 | | |
661 | | - | |
| 661 | + | |
662 | 662 | | |
663 | | - | |
| 663 | + | |
664 | 664 | | |
665 | 665 | | |
666 | 666 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
48 | 50 | | |
49 | 51 | | |
50 | 52 | | |
51 | 53 | | |
52 | 54 | | |
53 | 55 | | |
54 | 56 | | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
55 | 72 | | |
56 | 73 | | |
57 | 74 | | |
| |||
0 commit comments