Keep negative-risk conversions collateralized after verdicts and redemption

This commit is contained in:
2026-12-03 13:10:44 +08:00
parent 0f608db47f
commit 98eece1c50
5 changed files with 128 additions and 29 deletions
@@ -0,0 +1,14 @@
{"op":"split","id":"more-a","account":"user","market":"a","qty_micros":500002}
{"op":"split","id":"more-b","account":"user","market":"b","qty_micros":500002}
{"op":"close","id":"close-a","market":"a"}
{"op":"finalize","id":"a-loses","market":"a","winner":"NO"}
{"op":"convert","id":"after-a","group":"winner","account":"user","no_markets":["a","b"],"qty_micros":250001}
{"op":"close","id":"close-other","market":"other"}
{"op":"finalize","id":"other-wins","market":"other","winner":"YES"}
{"op":"redeem","id":"first-user","account":"user","market":"other"}
{"op":"redeem","id":"first-vault","account":"vault","market":"other"}
{"op":"close","id":"close-b","market":"b"}
{"op":"finalize","id":"b-loses","market":"b","winner":"NO"}
{"op":"convert","id":"after-all","group":"winner","account":"user","no_markets":["a","b"],"qty_micros":250001}
{"op":"redeem","id":"second-user","account":"user","market":"other"}
{"op":"redeem","id":"second-vault","account":"vault","market":"other"}