Commit 92f7d27
committed
markets/: the creator's escrow is a bond again, and voids cap on net cash in
Fifth-round economics review, with measured numbers. Three real
incentive bugs, all in settlement.
Refusing to resolve had become the creator's dominant strategy. The
void payout cap turns unpaid trader value into residual, the creator
could claim that residual up to their escrow, and the abandoned-market
backstop voids by itself after a week -- so going silent returned 68.5
of 69.3 escrowed where resolving honestly returned 11.3. That is a
57-credit reward for doing nothing, taken from the trader who was
right, and it makes the LMSR subsidy a refundable deposit rather than a
maker bond. Escrow now returns on a resolution, or on a void an operator
decided, and never on one the creator's own inaction produced.
The per-outcome cost-basis cap did not actually kill the sustained-pump
grief: releasing basis proportionally on a sell meant a trader could
pump, sell 51% to bank the gain, and still redeem the rest at full
remaining basis for a measured 5.8% risk-free. The same rule taxed a
market-neutral position about 12%, because a leg that gained could not
offset a leg that lost. Both go away by capping on net cash in over the
whole position.
A void proposal kept any prior resolvedOutcome, so an oracle could
resolve, publicly offer a void ("nobody wins, you get back at most what
you paid"), and have the market settle as the original resolution --
taking 100 credits off a holder who had been told they would be
refunded. The proposal kind is now an explicit journalled field rather
than something inferred from whether an outcome happens to be set, a
pending resolution cannot be overwritten by a void proposal, and markets
already in the voiding state from an older snapshot fall back to their
status rather than settling as a resolution and wedging.
Also: the void redemption anchors to when trading stopped rather than
when someone clicked -- stamping it at propose time let a late oracle
redeem at spot, 40 points from the backstop price on the same market,
chosen by waiting; chained disputes can no longer postpone settlement
indefinitely (each new disputer reset a 7-day clock, so N free accounts
bought N weeks of frozen payouts); voiding markets appear in the closed
filter, which is the window holders must object in; a voided market no
longer reports a winning outcome; twapWindowMs has a real floor, since
1ms is spot pricing in disguise; and a settlement that throws returns
503 with the reason rather than an unhandled 500.
73 plugin tests, 39 compose tests.1 parent 5029348 commit 92f7d27
6 files changed
Lines changed: 239 additions & 25 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
171 | 171 | | |
172 | 172 | | |
173 | 173 | | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
174 | 190 | | |
175 | 191 | | |
176 | 192 | | |
| |||
232 | 248 | | |
233 | 249 | | |
234 | 250 | | |
235 | | - | |
| 251 | + | |
236 | 252 | | |
237 | 253 | | |
238 | 254 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
44 | 48 | | |
45 | 49 | | |
46 | 50 | | |
| |||
50 | 54 | | |
51 | 55 | | |
52 | 56 | | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
53 | 60 | | |
54 | 61 | | |
55 | 62 | | |
| |||
79 | 86 | | |
80 | 87 | | |
81 | 88 | | |
82 | | - | |
83 | | - | |
84 | | - | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
85 | 97 | | |
86 | | - | |
| 98 | + | |
87 | 99 | | |
88 | 100 | | |
89 | 101 | | |
| |||
140 | 152 | | |
141 | 153 | | |
142 | 154 | | |
143 | | - | |
| 155 | + | |
144 | 156 | | |
145 | 157 | | |
146 | | - | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
147 | 167 | | |
148 | 168 | | |
149 | 169 | | |
| |||
166 | 186 | | |
167 | 187 | | |
168 | 188 | | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
169 | 214 | | |
170 | 215 | | |
171 | 216 | | |
172 | 217 | | |
173 | 218 | | |
174 | 219 | | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | | - | |
| 220 | + | |
180 | 221 | | |
181 | 222 | | |
182 | 223 | | |
183 | 224 | | |
184 | 225 | | |
185 | | - | |
186 | | - | |
| 226 | + | |
| 227 | + | |
187 | 228 | | |
188 | 229 | | |
189 | 230 | | |
| |||
201 | 242 | | |
202 | 243 | | |
203 | 244 | | |
204 | | - | |
| 245 | + | |
205 | 246 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
170 | 170 | | |
171 | 171 | | |
172 | 172 | | |
| 173 | + | |
173 | 174 | | |
174 | 175 | | |
175 | 176 | | |
176 | 177 | | |
177 | 178 | | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
178 | 185 | | |
179 | 186 | | |
180 | 187 | | |
| |||
432 | 439 | | |
433 | 440 | | |
434 | 441 | | |
435 | | - | |
| 442 | + | |
436 | 443 | | |
437 | 444 | | |
438 | 445 | | |
| |||
528 | 535 | | |
529 | 536 | | |
530 | 537 | | |
531 | | - | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
532 | 541 | | |
533 | 542 | | |
534 | 543 | | |
| |||
810 | 819 | | |
811 | 820 | | |
812 | 821 | | |
813 | | - | |
| 822 | + | |
| 823 | + | |
| 824 | + | |
| 825 | + | |
814 | 826 | | |
815 | 827 | | |
816 | 828 | | |
| |||
1000 | 1012 | | |
1001 | 1013 | | |
1002 | 1014 | | |
1003 | | - | |
| 1015 | + | |
| 1016 | + | |
| 1017 | + | |
| 1018 | + | |
| 1019 | + | |
| 1020 | + | |
1004 | 1021 | | |
1005 | 1022 | | |
1006 | 1023 | | |
| |||
1020 | 1037 | | |
1021 | 1038 | | |
1022 | 1039 | | |
1023 | | - | |
| 1040 | + | |
| 1041 | + | |
| 1042 | + | |
| 1043 | + | |
| 1044 | + | |
1024 | 1045 | | |
1025 | 1046 | | |
1026 | 1047 | | |
| |||
1062 | 1083 | | |
1063 | 1084 | | |
1064 | 1085 | | |
| 1086 | + | |
| 1087 | + | |
| 1088 | + | |
1065 | 1089 | | |
1066 | 1090 | | |
1067 | 1091 | | |
| |||
1197 | 1221 | | |
1198 | 1222 | | |
1199 | 1223 | | |
1200 | | - | |
| 1224 | + | |
1201 | 1225 | | |
1202 | 1226 | | |
1203 | 1227 | | |
| |||
1234 | 1258 | | |
1235 | 1259 | | |
1236 | 1260 | | |
1237 | | - | |
| 1261 | + | |
1238 | 1262 | | |
1239 | 1263 | | |
1240 | 1264 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
155 | 155 | | |
156 | 156 | | |
157 | 157 | | |
158 | | - | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
159 | 165 | | |
160 | 166 | | |
161 | 167 | | |
| |||
195 | 201 | | |
196 | 202 | | |
197 | 203 | | |
| 204 | + | |
| 205 | + | |
198 | 206 | | |
199 | 207 | | |
200 | 208 | | |
| |||
204 | 212 | | |
205 | 213 | | |
206 | 214 | | |
| 215 | + | |
207 | 216 | | |
208 | 217 | | |
209 | 218 | | |
| |||
254 | 263 | | |
255 | 264 | | |
256 | 265 | | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
257 | 269 | | |
258 | 270 | | |
259 | 271 | | |
| |||
0 commit comments