From 3075f12fc1d510ed20e92647faf6328ddce0fdd8 Mon Sep 17 00:00:00 2001 From: ekzyis Date: Mon, 26 Aug 2024 05:43:35 -0500 Subject: [PATCH] Fix lmsr_b since maximum possible loss was off --- server/router/handler/market.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/router/handler/market.go b/server/router/handler/market.go index 5b2136e..c87e0d8 100644 --- a/server/router/handler/market.go +++ b/server/router/handler/market.go @@ -39,7 +39,7 @@ func HandleCreate(sc context.Context) echo.HandlerFunc { // Maximum possible amount of money the market maker can lose is b*ln2. // This means if we can only payout as many sats as we paid for the market, // we need to solve for b: b = cost / ln2 - b = float64(cost) / math.Log(2) + b = (float64(cost) / 1000) / math.Log(2) expiry = int64(600) expiresAt = time.Now().Add(time.Second * time.Duration(expiry))